/* site-responsive.css */
/*
 * Site-wide responsive layer — V452
 * Loaded last from base.html so every section gets the same viewport rules.
 * Desktop geometry is preserved; only narrower screens are progressively adapted.
 */

:root {
    --app-page-pad: clamp(12px, 1.55vw, 28px);
    --app-section-gap: clamp(12px, 1.3vw, 22px);
    --app-control-height: 42px;
    --app-mobile-gutter: max(10px, env(safe-area-inset-left));
    --app-mobile-gutter-right: max(10px, env(safe-area-inset-right));
}

html {
    width: 100%;
    max-width: 100%;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: 86px;
}

body,
.site-shell,
.page-container {
    width: 100%;
    max-width: 100%;
}

body {
    min-width: 320px;
    overflow-x: clip;
}

img,
picture,
video,
canvas,
svg:not(.app-icon):not(.modern-nav-icon):not(.app-dropdown-chevron) {
    max-width: 100%;
}

img,
video {
    height: auto;
}

.page-container {
    padding-inline: var(--app-page-pad) !important;
}

.page-container > *,
.page-container :where(section, article, aside, main, header, footer, form, fieldset, div, label) {
    min-width: 0;
}

.page-container :where(input, select, textarea) {
    max-width: 100%;
}

.page-container :where(h1, h2, h3, h4, strong, p, small, span, a, button, td, th) {
    overflow-wrap: anywhere;
}

/* Common rows, toolbars and action groups. */
:where(
    .page-heading,
    .page-heading--actions,
    .page-header,
    .section-header,
    .panel-header,
    .table-toolbar,
    .toolbar,
    .toolbar-actions,
    .filter-toolbar,
    .filter-actions,
    .header-actions,
    .modal-actions,
    .dialog-actions,
    .pricing-footer,
    .orders-footer,
    .pagination-modern,
    .wh-page-head,
    .wh-address-head,
    .wh-editor-title-row
) {
    min-width: 0;
}

:where(
    .page-heading--actions,
    .page-header,
    .section-header,
    .panel-header,
    .table-toolbar,
    .toolbar,
    .toolbar-actions,
    .filter-toolbar,
    .filter-actions,
    .modal-actions,
    .dialog-actions,
    .pricing-footer,
    .pagination-modern
) {
    row-gap: 10px;
}

/* Tables remain tables. On narrow screens they scroll instead of turning into cards. */
.app-responsive-table-wrap,
:where(
    .responsive-table-wrap,
    .table-scroll,
    .table-wrap,
    .data-table-wrap,
    .table-container,
    .products-modern-table-wrap,
    .orders-table-wrap,
    .pricing-table-wrap,
    .communications-table-wrap,
    .wh-tree-card,
    .wh-list-card
) {
    position: relative;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
}

.app-responsive-table-wrap {
    border-radius: inherit;
}

.app-responsive-table-wrap > table,
:where(
    .responsive-table-wrap,
    .table-scroll,
    .table-wrap,
    .data-table-wrap,
    .table-container,
    .products-modern-table-wrap,
    .orders-table-wrap,
    .pricing-table-wrap,
    .communications-table-wrap,
    .wh-tree-card,
    .wh-list-card
) > table {
    width: max-content;
    min-width: 100%;
}

.app-responsive-table-wrap.is-overflowing::after,
.app-horizontal-scroll.is-overflowing::after {
    content: "";
    position: sticky;
    z-index: 6;
    right: 0;
    bottom: 0;
    float: right;
    width: 28px;
    height: 100%;
    margin-top: -100%;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.92));
}

/* Tabs and compact navigation keep their content reachable. */
:where(
    .tabs,
    .subtabs,
    .section-tabs,
    .product-platform-tabs,
    .orders-section-tabs,
    .communications-section-tabs,
    .profile-tabs,
    .pricing-tabs,
    .promotion-tabs,
    .warehouse-tabs,
    .segmented-control
) {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

:where(
    .tabs,
    .subtabs,
    .section-tabs,
    .product-platform-tabs,
    .orders-section-tabs,
    .communications-section-tabs,
    .profile-tabs,
    .pricing-tabs,
    .promotion-tabs,
    .warehouse-tabs,
    .segmented-control
) > * {
    flex: 0 0 auto;
}

/* Dropdowns and floating menus never leave the viewport. */
:where(
    .header-store-picker__menu,
    .header-profile-popover,
    .section-search-panel,
    .wh-export-popover,
    .dropdown-menu,
    .popover,
    .menu-popover,
    .filter-popover,
    .chat-template-popover
) {
    max-width: calc(100vw - 20px) !important;
    max-height: calc(100dvh - 88px) !important;
    overflow: auto;
    overscroll-behavior: contain;
}

/* Dialogs and the reusable window system use available viewport space. */
:where(
    dialog,
    .modal-card,
    .orders-dialog__card,
    .profile-modal__card,
    .columns-modal-card,
    .window-frame,
    .app-window,
    .floating-window,
    .rt-variable-modal__card
) {
    max-width: calc(100vw - 24px) !important;
    max-height: calc(100dvh - 24px) !important;
}

:where(
    .modal-body,
    .orders-dialog__body,
    .profile-modal__body,
    .window-content,
    .floating-window__content
) {
    max-height: calc(100dvh - 132px);
    overflow: auto;
    overscroll-behavior: contain;
}

/* Long controls must shrink inside grids/flex rows. */
:where(
    .field,
    .field-group,
    .control-input,
    .pc-field,
    .wh-field,
    .filter-card,
    .choice-line,
    .search-field,
    .search-wrap,
    .switch-filter
) {
    min-width: 0;
}

:where(input, select, textarea, button) {
    min-inline-size: 0;
}

/* Chart and media containers scale with their column. */
:where(
    .chart-container,
    .chart-wrap,
    .dashboard-chart,
    .dashboard-card canvas,
    .pc-rich-preview,
    .rich-content-preview,
    .product-media-preview
) {
    max-width: 100%;
    overflow: hidden;
}

/* Wide-screen refinement: reduce wasted space without changing layout. */
@media (max-width: 1440px) {
    :root {
        --app-page-pad: clamp(14px, 1.25vw, 20px);
        --app-section-gap: 16px;
    }

    .page-container {
        padding-block: 16px 34px !important;
    }

    :where(.panel, .card, .dashboard-card, .filter-card, .pc-panel, .wh-card) {
        max-width: 100%;
    }

    :where(
        .dashboard-grid--three,
        .review-dashboard-grid,
        .review-dashboard-grid--questions,
        .orders-metrics,
        .ai-stat-grid,
        .wh-stat-grid
    ) {
        gap: 12px !important;
    }
}

/* Laptop and small desktop. */
@media (max-width: 1280px) {
    .page-container {
        padding-inline: 16px !important;
    }

    :where(
        .page-heading--actions,
        .page-header,
        .section-header,
        .panel-header,
        .table-toolbar,
        .toolbar,
        .filter-toolbar,
        .modal-actions,
        .dialog-actions
    ) {
        flex-wrap: wrap !important;
    }

    :where(
        .products-modern-heading__actions,
        .page-heading__actions,
        .page-actions,
        .header-actions,
        .toolbar-actions,
        .filter-actions
    ) {
        max-width: 100%;
        flex-wrap: wrap !important;
    }

    :where(
        .dashboard-grid--three,
        .review-dashboard-grid,
        .review-dashboard-grid--questions,
        .ai-choice-grid--four,
        .orders-metrics
    ) {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    :where(
        .stores-layout,
        .form-layout,
        .pc-layout,
        .pricing-workspace,
        .products-modern-workspace,
        .orders-workspace,
        .wh-editor-layout,
        .wh-rack-layout
    ) {
        gap: 14px !important;
    }

    .chat-workspace.has-product {
        grid-template-columns: minmax(280px,.8fr) minmax(430px,1.2fr) !important;
    }

    .chat-workspace.has-product > :last-child {
        grid-column: 1 / -1;
    }

    .pc-rich-workspace {
        grid-template-columns: 140px minmax(280px, 1fr) !important;
    }

    .pc-rich-workspace > :last-child {
        grid-column: 1 / -1;
    }
}

/* Navigation switches to mobile at 1120px in global-modern.css. This layer
   aligns the utility bar and content under it. */
@media (max-width: 1120px) {
    html {
        scroll-padding-top: 72px;
    }

    .app-modern-shell .workspace-utility-bar {
        min-height: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px !important;
        padding: 8px 12px !important;
    }

    .workspace-utility-bar > * {
        min-width: 0;
    }

    .workspace-utility-bar .header-actions {
        flex: 0 1 auto;
        max-width: calc(100% - 52px);
        display: flex;
        align-items: center;
        gap: 8px;
        overflow-x: auto;
        overflow-y: visible;
        scrollbar-width: none;
    }

    .workspace-utility-bar .header-actions::-webkit-scrollbar {
        display: none;
    }

    .header-store-picker,
    .header-profile-menu {
        flex: 0 0 auto;
    }

    .header-store-picker__menu,
    .header-profile-popover {
        position: fixed !important;
        top: 64px !important;
        right: 10px !important;
        left: auto !important;
        width: min(390px, calc(100vw - 20px)) !important;
    }

    .page-container {
        padding-top: 14px !important;
    }

    :where(
        .chat-workspace.is-split,
        .chat-workspace.has-product,
        .pc-rich-workspace,
        .rt-editor-grid,
        .stores-layout,
        .orders-modern-body .orders-workspace,
        .pricing-workspace,
        .products-modern-workspace,
        .wh-editor-layout,
        .wh-rack-layout,
        .wh-map-layout
    ) {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    :where(
        .pricing-workspace > aside,
        .products-modern-workspace > aside,
        .orders-modern-body .orders-workspace > aside
    ) {
        width: 100% !important;
        max-width: 100% !important;
    }

    .chat-workspace.has-product > :last-child,
    .pc-rich-workspace > :last-child {
        grid-column: auto;
    }

    .review-bulk-panel {
        left: 12px !important;
        right: 12px !important;
        grid-template-columns: minmax(0, 1fr) auto auto !important;
    }

    .review-bulk-panel > :first-child {
        grid-column: 1 / -1;
    }
}

/* Tablet landscape / narrow laptop. */
@media (max-width: 960px) {
    :root {
        --app-page-pad: 12px;
        --app-control-height: 44px;
    }

    .page-container {
        padding-inline: 12px !important;
        padding-bottom: 28px !important;
    }

    :where(
        .dashboard-grid,
        .dashboard-grid--three,
        .review-dashboard-grid,
        .review-dashboard-grid--questions,
        .ai-choice-grid--four,
        .ai-choice-grid--three,
        .orders-modern-body .orders-metrics,
        .return-facts,
        .cost-form-grid,
        .columns-config-grid,
        .store-checkbox-grid,
        .modal-store-grid,
        .attribute-grid,
        .pc-summary-grid,
        .wh-stat-grid
    ) {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    :where(
        .review-toolbar,
        .chat-toolbar,
        .table-toolbar,
        .filter-toolbar,
        .returns-search-field
    ) {
        grid-template-columns: minmax(0, 1fr) auto !important;
    }

    :where(
        .review-toolbar,
        .chat-toolbar
    ) > :first-child {
        grid-column: 1 / -1;
    }

    .orders-modern-body .orders-footer {
        grid-template-columns: minmax(0,1fr) auto !important;
    }

    .orders-modern-body .orders-footer > :nth-child(2) {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    :where(
        .form-layout,
        .pc-rich-cover-card,
        .pc-markdown-source,
        .return-products__head,
        .return-product
    ) {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .pc-rich-cover-card > img,
    .pc-rich-cover-card > .pc-rich-cover-preview {
        width: min(100%, 420px) !important;
    }

    :where(.filter-card, .promotion-filter-box) {
        max-height: none !important;
    }

    .profile-modal__card,
    .modal-card,
    .orders-dialog__card,
    .columns-modal-card {
        width: calc(100vw - 24px) !important;
    }
}

/* Tablet portrait. */
@media (max-width: 760px) {
    html {
        scroll-padding-top: 66px;
    }

    body {
        font-size: 14px;
    }

    .app-modern-shell .app-header {
        padding-inline: 10px !important;
    }

    .app-modern-shell .brand-name {
        max-width: 64vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .app-modern-shell .workspace-utility-bar {
        padding: 7px 10px !important;
    }

    .header-profile-button__text,
    .header-store-picker summary > span {
        display: none !important;
    }

    .header-profile-button,
    .header-store-picker summary {
        min-width: 42px !important;
        min-height: 42px !important;
        padding: 6px 8px !important;
        justify-content: center !important;
    }

    .header-store-picker summary strong {
        font-size: 11px !important;
    }

    .page-container {
        padding: 10px 10px 24px !important;
    }

    :where(h1, .page-heading h1, .page-title) {
        font-size: clamp(22px, 6vw, 30px) !important;
        line-height: 1.12 !important;
    }

    :where(h2, .panel-title, .section-title) {
        line-height: 1.18;
    }

    :where(
        .page-heading,
        .page-heading--actions,
        .page-header,
        .section-header,
        .panel-header,
        .wh-page-head,
        .wh-address-head,
        .wh-editor-title-row
    ) {
        align-items: stretch !important;
        flex-direction: column !important;
        gap: 10px !important;
    }

    :where(
        .page-heading__actions,
        .page-actions,
        .products-modern-heading__actions,
        .wh-page-head__actions,
        .wh-editor-header-actions
    ) {
        width: 100%;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0,1fr)) !important;
        gap: 8px !important;
    }

    :where(
        .page-heading__actions,
        .page-actions,
        .products-modern-heading__actions,
        .wh-page-head__actions,
        .wh-editor-header-actions
    ) > :only-child {
        grid-column: 1 / -1;
    }

    :where(
        .dashboard-grid,
        .dashboard-grid--three,
        .review-dashboard-grid,
        .review-dashboard-grid--questions,
        .ai-choice-grid--four,
        .ai-choice-grid--three,
        .orders-modern-body .orders-metrics,
        .return-facts,
        .cost-form-grid,
        .columns-config-grid,
        .store-checkbox-grid,
        .modal-store-grid,
        .attribute-grid,
        .pc-summary-grid,
        .wh-stat-grid,
        .rt-variable-columns,
        .pc-rich-block-fields,
        .pc-rich-column-fields,
        .pc-rich-preview-columns,
        .review-filter-grid--questions,
        .pc-compliance-toggle,
        .pc-compliance-dates
    ) {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    :where(
        .review-toolbar,
        .chat-toolbar,
        .returns-search-field,
        .chat-message-search,
        .chat-composer__row,
        .pc-media-url-add,
        .pc-rich-url-control,
        .pc-barcode-entry,
        .rt-custom-variable
    ) {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    :where(
        .review-toolbar,
        .chat-toolbar,
        .returns-search-field,
        .chat-message-search,
        .chat-composer__row,
        .pc-media-url-add,
        .pc-rich-url-control,
        .pc-barcode-entry,
        .rt-custom-variable
    ) > * {
        min-width: 0 !important;
        max-width: 100% !important;
    }

    :where(.modal-actions, .dialog-actions, .rt-editor-actions, .rt-variable-modal__actions, .return-actions) {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0,1fr)) !important;
        width: 100%;
    }

    :where(.modal-actions, .dialog-actions, .rt-editor-actions, .rt-variable-modal__actions, .return-actions) > .button {
        width: 100%;
        justify-content: center;
    }

    :where(
        .product-platform-tabs,
        .orders-section-tabs,
        .communications-section-tabs,
        .profile-tabs,
        .pricing-tabs,
        .promotion-tabs,
        .warehouse-tabs
    ) {
        justify-content: flex-start !important;
        padding-bottom: 3px;
    }

    .pagination-modern {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }

    .pagination-modern .page-number,
    .pagination-modern .page-dots {
        min-width: 38px;
        min-height: 38px;
    }

    :where(
        .modal-card,
        .orders-dialog__card,
        .profile-modal__card,
        .columns-modal-card,
        .window-frame,
        .app-window,
        .floating-window
    ) {
        width: calc(100vw - 16px) !important;
        max-width: calc(100vw - 16px) !important;
        max-height: calc(100dvh - 16px) !important;
        border-radius: 14px !important;
    }

    :where(
        .modal-heading,
        .orders-dialog__head,
        .profile-modal__head,
        .window-titlebar,
        .floating-window__header
    ) {
        min-height: 52px !important;
        padding-inline: 12px !important;
    }

    .review-bulk-panel {
        bottom: 8px !important;
        left: 8px !important;
        right: 8px !important;
        grid-template-columns: minmax(0,1fr) !important;
        max-height: calc(100dvh - 20px);
        overflow: auto;
    }

    .review-bulk-panel > * {
        grid-column: auto !important;
    }

    .knowledge-chapter__title,
    .filter-card__title,
    .promotion-filter-box__head {
        min-height: 46px;
    }

    .app-responsive-table-wrap,
    :where(.responsive-table-wrap, .table-scroll, .table-wrap, .data-table-wrap, .table-container) {
        margin-inline: -2px;
        padding-bottom: 4px;
    }
}

/* Phone. */
@media (max-width: 520px) {
    :root {
        --app-page-pad: 8px;
    }

    .page-container {
        padding: 8px 8px 20px !important;
    }

    :where(.panel, .card, .dashboard-card, .filter-card, .pc-panel, .wh-card) {
        border-radius: 12px !important;
    }

    :where(
        .page-heading__actions,
        .page-actions,
        .products-modern-heading__actions,
        .wh-page-head__actions,
        .wh-editor-header-actions,
        .modal-actions,
        .dialog-actions,
        .rt-editor-actions,
        .rt-variable-modal__actions,
        .return-actions
    ) {
        grid-template-columns: minmax(0,1fr) !important;
    }

    :where(
        .page-heading__actions,
        .page-actions,
        .products-modern-heading__actions,
        .wh-page-head__actions,
        .wh-editor-header-actions
    ) :where(.button, button, a.button) {
        width: 100%;
        justify-content: center;
    }

    :where(input, select, textarea) {
        font-size: 16px !important; /* Prevent iOS zoom. */
    }

    :where(.button, button) {
        max-width: 100%;
    }

    .header-store-picker__menu,
    .header-profile-popover,
    .section-search-panel {
        top: 58px !important;
        right: 6px !important;
        left: 6px !important;
        width: auto !important;
        max-width: none !important;
    }

    .header-store-picker__menu {
        max-height: calc(100dvh - 70px) !important;
    }

    .auth-card,
    .auth-panel,
    .registration-card {
        width: 100% !important;
        max-width: 100% !important;
        padding: 18px 14px !important;
    }

    .chat-list-item {
        grid-template-columns: 38px minmax(0,1fr) !important;
    }

    .chat-list-item > :last-child {
        grid-column: 2;
    }

    .wh-product-card,
    .wh-aside-product {
        grid-template-columns: 40px minmax(0,1fr) !important;
    }

    .wh-product-card > :not(:first-child):not(:nth-child(2)),
    .wh-aside-product > :not(:first-child):not(:nth-child(2)) {
        grid-column: 2;
    }

    .orders-modern-body .orders-footer,
    .review-bulk-panel {
        grid-template-columns: minmax(0,1fr) !important;
    }

    .app-responsive-table-wrap {
        border-radius: 10px;
    }
}

/* Short screens: keep dialogs usable even when width is sufficient. */
@media (max-height: 700px) {
    :where(
        dialog,
        .modal-card,
        .orders-dialog__card,
        .profile-modal__card,
        .columns-modal-card,
        .window-frame,
        .app-window,
        .floating-window
    ) {
        max-height: calc(100dvh - 12px) !important;
    }

    :where(.modal-body, .orders-dialog__body, .profile-modal__body, .window-content) {
        max-height: calc(100dvh - 112px) !important;
    }
}

@media (orientation: landscape) and (max-height: 520px) {
    .app-modern-shell .main-nav {
        max-height: calc(100dvh - 62px) !important;
    }

    .header-store-picker__menu,
    .header-profile-popover,
    .section-search-panel {
        max-height: calc(100dvh - 62px) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-responsive-table-wrap,
    .app-horizontal-scroll {
        scroll-behavior: auto !important;
    }
}

/* Explicit coverage for the remaining sections. */
@media (max-width: 1100px) {
    .dashboard-kpis,
    .orders-card-grid,
    .knowledge-section-grid,
    .knowledge-definition-grid,
    .knowledge-formula-grid,
    .warehouse-summary-grid,
    .warehouse-stock-metrics,
    .mpw-metrics,
    .warehouse-group-grid,
    .profile-meta-grid,
    .profile-store-grid {
        grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    }

    .warehouse-layout,
    .offline-order-create__layout,
    .api-create-layout,
    .return-overview,
    .promotion-detail-layout {
        grid-template-columns: minmax(0,1fr) !important;
    }

    .api-toolbar,
    .offline-orders-toolbar,
    .warehouse-panel__head,
    .warehouse-groups-panel__head,
    .warehouse-stocks-heading,
    .warehouse-tree-heading,
    .news-center__header,
    .profile-section-head,
    .promotion-products-topline {
        flex-wrap: wrap !important;
        gap: 10px !important;
    }

    .api-toolbar__actions,
    .warehouse-stocks-heading__actions,
    .warehouse-tree-heading__actions,
    .profile-head-actions {
        max-width: 100%;
        flex-wrap: wrap !important;
    }

    .api-tabs,
    .offline-orders-subnav,
    .mpw-market-tabs,
    .promotion-section-tabs,
    .promotion-status-tabs,
    .mini-tabs {
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap !important;
        -webkit-overflow-scrolling: touch;
    }

    .api-tabs > *,
    .offline-orders-subnav > *,
    .mpw-market-tabs > *,
    .promotion-section-tabs > *,
    .promotion-status-tabs > *,
    .mini-tabs > * {
        flex: 0 0 auto;
    }

    .api-table-scroll,
    .offline-orders-table-wrap,
    .knowledge-table-wrap,
    .mpw-table-wrap,
    .warehouse-stock-table-wrap {
        max-width: 100%;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .news-create-modal,
    .warehouse-tree-settings-dialog__card,
    .warehouse-group-dialog__card,
    .warehouse-location-form {
        width: min(760px, calc(100vw - 24px)) !important;
        max-height: calc(100dvh - 24px) !important;
        overflow: auto;
    }

    .mpw-workspace,
    .warehouse-stock-app {
        grid-template-columns: minmax(0,1fr) !important;
    }

    .mpw-filters {
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 760px) {
    .dashboard-kpis,
    .orders-card-grid,
    .knowledge-section-grid,
    .knowledge-definition-grid,
    .knowledge-formula-grid,
    .warehouse-summary-grid,
    .warehouse-stock-metrics,
    .mpw-metrics,
    .warehouse-group-grid,
    .profile-meta-grid,
    .profile-store-grid,
    .warehouse-location-grid,
    .warehouse-location-form__grid,
    .warehouse-assign-form,
    .offline-step--grid,
    .price-update-stats,
    .price-result-summary {
        grid-template-columns: minmax(0,1fr) !important;
    }

    .dashboard-shell,
    .knowledge-directory,
    .knowledge-guide,
    .news-center,
    .api-shell,
    .pfi-shell,
    .price-update-shell,
    .profile-shell,
    .promotion-page-shell,
    .mpw-page-shell {
        width: 100% !important;
        max-width: 100% !important;
    }

    .knowledge-guide {
        grid-template-columns: minmax(0,1fr) !important;
    }

    .knowledge-toc {
        position: static !important;
        max-height: none !important;
    }

    .news-filter-row,
    .news-create-marketplace-fields,
    .pfi-organizations,
    .promotion-filter-row,
    .offline-marketplace-switch {
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap !important;
        -webkit-overflow-scrolling: touch;
    }

    .news-filter-row > *,
    .pfi-organizations > *,
    .promotion-filter-row > *,
    .offline-marketplace-switch > * {
        flex: 0 0 auto;
    }

    .api-toolbar__actions,
    .warehouse-stocks-heading__actions,
    .warehouse-tree-heading__actions,
    .profile-head-actions,
    .price-update-actions,
    .price-result-actions,
    .pfi-form,
    .price-upload-apply-form {
        width: 100%;
        display: grid !important;
        grid-template-columns: minmax(0,1fr) !important;
        gap: 8px !important;
    }

    .api-toolbar__actions > *,
    .warehouse-stocks-heading__actions > *,
    .warehouse-tree-heading__actions > *,
    .profile-head-actions > *,
    .price-update-actions > *,
    .price-result-actions > *,
    .pfi-form > *,
    .price-upload-apply-form > * {
        width: 100% !important;
        max-width: 100% !important;
        justify-content: center;
    }

    .change-preview-product,
    .warehouse-assignment-row,
    .offline-table-product {
        grid-template-columns: minmax(0,1fr) !important;
    }

    .change-preview-product__main,
    .change-preview-values {
        min-width: 0 !important;
    }

    .change-preview-line {
        grid-template-columns: minmax(0,1fr) !important;
        gap: 4px !important;
    }

    .price-update-card,
    .price-result-card,
    .pfi-state,
    .api-create-card,
    .returns-panel,
    .profile-section {
        padding: 16px 12px !important;
    }

    .returns-search-tools,
    .returns-section-heading--inline,
    .offline-orders-footer,
    .news-center__header,
    .profile-identity__top {
        align-items: stretch !important;
        flex-direction: column !important;
        gap: 8px !important;
    }

    .returns-search-tools > *,
    .offline-orders-footer > *,
    .news-center__header > *,
    .profile-identity__top > * {
        max-width: 100%;
    }

    .returns-camera-stage {
        min-height: 220px !important;
    }

    .profile-hero {
        align-items: flex-start !important;
        grid-template-columns: minmax(0,1fr) !important;
    }

    .profile-avatar-wrap {
        justify-self: start;
    }

    .promotion-card,
    .news-card,
    .warehouse-group-card,
    .warehouse-location-card {
        max-width: 100%;
    }
}

/* V453 — isolated repair for the Ozon/WB cost editor window only. */
#cost-modal .app-managed-window.cost-modal-card:not(.app-window-maximized) {
    width: min(920px, calc(100vw - 24px)) !important;
    max-width: min(920px, calc(100vw - 24px)) !important;
    max-height: min(820px, calc(100dvh - 24px)) !important;
    min-width: min(520px, calc(100vw - 24px)) !important;
    min-height: min(420px, calc(100dvh - 24px)) !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    border-radius: 14px !important;
}

#cost-modal .app-managed-window.cost-modal-card > .app-window-titlebar {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    margin: 0 0 0 0 !important;
    padding: 0 4px 0 16px !important;
    border-radius: 13px 13px 0 0 !important;
}

#cost-modal .app-managed-window.cost-modal-card > .app-window-titlebar .app-window-titlebar__title {
    min-width: 0 !important;
    padding-right: 12px !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

#cost-modal .app-managed-window.cost-modal-card > .modal-heading,
#cost-modal .app-managed-window.cost-modal-card > .cost-form-grid,
#cost-modal .app-managed-window.cost-modal-card > .cost-total-line,
#cost-modal .app-managed-window.cost-modal-card > .modal-actions {
    width: min(100%, 900px) !important;
    box-sizing: border-box !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

#cost-modal .app-managed-window.cost-modal-card > .modal-heading {
    position: static !important;
    inset: auto !important;
    margin-top: 0 !important;
    margin-bottom: 12px !important;
    padding: 18px 22px 14px !important;
    border-radius: 0 !important;
    background: #fff !important;
}

#cost-modal .app-managed-window.cost-modal-card > .modal-heading h2 {
    margin: 6px 0 4px !important;
    max-width: 100% !important;
    font-size: clamp(20px, 2.1vw, 28px) !important;
    line-height: 1.18 !important;
    overflow-wrap: anywhere !important;
}

#cost-modal .app-managed-window.cost-modal-card > .modal-heading p {
    margin: 0 !important;
    color: #697382 !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    overflow-wrap: anywhere !important;
}

#cost-modal .app-managed-window.cost-modal-card > .cost-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    padding: 0 22px !important;
}

#cost-modal .app-managed-window.cost-modal-card > .cost-form-grid label {
    min-width: 0 !important;
    gap: 7px !important;
    padding: 12px 14px !important;
    border-radius: 14px !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
}

#cost-modal .app-managed-window.cost-modal-card > .cost-form-grid input {
    min-width: 0 !important;
    min-height: 44px !important;
    height: 44px !important;
    padding: 9px 12px !important;
    border-radius: 11px !important;
    font-size: 14px !important;
}

#cost-modal .app-managed-window.cost-modal-card > .cost-total-line {
    margin-top: 16px !important;
    width: calc(min(100%, 900px) - 44px) !important;
    min-height: 62px !important;
    padding: 14px 18px !important;
    border-radius: 14px !important;
}

#cost-modal .app-managed-window.cost-modal-card > .modal-actions {
    position: static !important;
    inset: auto !important;
    width: calc(min(100%, 900px) - 44px) !important;
    margin-top: 14px !important;
    padding: 14px 0 18px !important;
    background: #fff !important;
}

#cost-modal .app-managed-window.cost-modal-card.app-window-maximized > .modal-heading,
#cost-modal .app-managed-window.cost-modal-card.app-window-maximized > .cost-form-grid,
#cost-modal .app-managed-window.cost-modal-card.app-window-maximized > .cost-total-line,
#cost-modal .app-managed-window.cost-modal-card.app-window-maximized > .modal-actions {
    max-width: 900px !important;
}

@media (max-width: 720px) {
    #cost-modal .app-managed-window.cost-modal-card,
    #cost-modal .app-managed-window.cost-modal-card:not(.app-window-maximized) {
        width: calc(100vw - 12px) !important;
        max-width: calc(100vw - 12px) !important;
        min-width: calc(100vw - 12px) !important;
        max-height: calc(100dvh - 12px) !important;
        min-height: min(420px, calc(100dvh - 12px)) !important;
    }

    #cost-modal .app-managed-window.cost-modal-card > .modal-heading {
        padding: 14px 14px 12px !important;
    }

    #cost-modal .app-managed-window.cost-modal-card > .cost-form-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        padding: 0 14px !important;
    }

    #cost-modal .app-managed-window.cost-modal-card > .cost-total-line,
    #cost-modal .app-managed-window.cost-modal-card > .modal-actions {
        width: calc(100% - 28px) !important;
    }

    #cost-modal .app-managed-window.cost-modal-card > .modal-actions {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }
}

@media (max-width: 440px) {
    #cost-modal .app-managed-window.cost-modal-card > .modal-actions {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}


/* V514: always show the current top-level section in desktop navigation. */
@media (min-width: 1121px) {
    .app-modern-shell .main-nav__link.active,
    .app-modern-shell .main-nav-menu.active > .main-nav__link,
    .app-modern-shell .main-nav-menu > .main-nav__link.active,
    .app-modern-shell.products-modern-body .main-nav__link.active,
    .app-modern-shell.products-modern-body .main-nav-menu.active > .main-nav__link {
        position: relative !important;
        background: transparent !important;
        color: #111317 !important;
        font-weight: 790 !important;
        box-shadow: none !important;
    }
    .app-modern-shell .main-nav__link.active::after,
    .app-modern-shell .main-nav-menu.active > .main-nav__link::after,
    .app-modern-shell .main-nav-menu > .main-nav__link.active::after,
    .app-modern-shell.products-modern-body .main-nav__link.active::after,
    .app-modern-shell.products-modern-body .main-nav-menu.active > .main-nav__link::after {
        content: "" !important;
        display: block !important;
        position: absolute !important;
        left: 6px !important;
        right: 6px !important;
        bottom: -11px !important;
        width: auto !important;
        height: 2px !important;
        border: 0 !important;
        border-radius: 2px !important;
        background: #17191d !important;
        opacity: 1 !important;
        transform: none !important;
    }
}


/* page-loading-visual.css */
/* Visual transition shown before a normal full-page navigation.
   Only the appearance changes: the project still uses the existing full-page
   navigation and server-side loading flow. */
html.app-page-navigation-loading,
html.app-page-navigation-loading body { min-height: 100%; }
body.is-page-navigation-loading { cursor: progress; }
body.is-page-navigation-loading .page-container { min-height: calc(100vh - 116px); }



/* Products navigation keeps the old page DOM alive but covers it with the
   catalogue loader. This restores immediate visual feedback without bringing
   back the destructive <main> replacement that caused product-card/BFCache
   instability. */
.page-container.has-page-navigation-overlay > :not(.page-loading-navigation-overlay) {
    display: none !important;
}
.page-loading-navigation-overlay {
    width: 100%;
    min-width: 0;
}

.page-loading-shell {
    width: 100%;
    max-width: 100%;
    display: grid;
    gap: 16px;
    animation: page-loading-enter .2s ease both;
}
.page-loading-status {
    position: relative;
    min-height: 70px;
    padding: 14px 18px 18px;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    overflow: hidden;
    border: 1px solid #dbe2e9;
    border-radius: 18px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 12px 34px rgba(25, 34, 47, .055);
}
.page-loading-status__spinner {
    width: 36px;
    height: 36px;
    display: block;
    border: 3px solid #e4e9ee;
    border-top-color: #252c35;
    border-right-color: #657180;
    border-radius: 50%;
    animation: page-loading-spin .78s linear infinite;
}
.page-loading-status__title {
    min-width: 0;
    overflow: hidden;
    color: #20262f;
    font-size: 15px;
    font-weight: 850;
    letter-spacing: -.01em;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.page-loading-status__percent {
    min-width: 58px;
    padding: 7px 10px;
    border: 1px solid #dfe5eb;
    border-radius: 999px;
    background: #f5f7f9;
    color: #46515f;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    transition: transform .18s ease, background .18s ease;
}
.page-loading-track {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 8px;
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8edf2;
    box-shadow: inset 0 1px 2px rgba(31, 39, 50, .055);
}
.page-loading-track > i {
    position: relative;
    width: 7%;
    height: 100%;
    display: block;
    overflow: hidden;
    border-radius: inherit;
    background: linear-gradient(90deg, #252c35 0%, #596574 58%, #8793a1 100%);
    box-shadow: 0 0 10px rgba(60, 70, 84, .18);
    transition: width .24s cubic-bezier(.22, .8, .32, 1);
}
.page-loading-track > i::after {
    content: "";
    position: absolute;
    inset: 0;
    width: 38%;
    transform: translateX(-130%);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.72), transparent);
    animation: page-loading-track-shine 1.05s ease-in-out infinite;
}
.page-loading-real-layout {
    min-width: 0;
    display: grid;
    gap: 16px;
}
.page-loading-box,
.page-loading-lines i,
.page-loading-chart-line,
.page-loading-message,
.page-loading-donut,
.page-loading-profile-avatar,
.page-loading-grid-pattern,
.page-loading-rack {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 10px;
    background: #e9edf2;
}
.page-loading-box::after,
.page-loading-lines i::after,
.page-loading-chart-line::after,
.page-loading-message::after,
.page-loading-donut::after,
.page-loading-profile-avatar::after,
.page-loading-rack::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-105%);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.82), transparent);
    animation: page-loading-shimmer 1.24s ease-in-out infinite;
}
.page-loading-lines {
    min-width: 0;
    display: grid;
    align-content: center;
    gap: 8px;
}
.page-loading-lines i {
    width: var(--line-width, 72%);
    height: 11px;
    animation-delay: var(--line-delay, 0ms);
}
.page-loading-lines i:first-child { height: 13px; }

/* Page heading and tabs */
.page-loading-real-heading {
    min-height: 96px;
    padding: 8px 2px 6px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}
.page-loading-real-heading.is-compact { min-height: 82px; }
.page-loading-real-heading__copy {
    min-width: 0;
    flex: 1 1 auto;
    display: grid;
    gap: 10px;
}
.page-loading-real-heading__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}
.page-loading-eyebrow { width: 155px; height: 10px; }
.page-loading-title { width: min(500px, 66vw); height: 35px; border-radius: 12px; }
.page-loading-subtitle { width: min(760px, 80vw); height: 14px; }
.page-loading-button { width: 142px; height: 43px; border-radius: 13px; }
.page-loading-button--light { width: 120px; background: #eef1f4; }
.page-loading-button--small { width: 46px; min-width: 46px; }
.page-loading-button--tiny { width: 72px; height: 30px; border-radius: 10px; }
.page-loading-tabs {
    min-height: 52px;
    padding: 0 14px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    overflow: hidden;
    border: 1px solid #dfe4ea;
    border-radius: 16px 16px 0 0;
    background: #fff;
}
.page-loading-tab {
    width: 132px;
    height: 42px;
    border-radius: 10px 10px 0 0;
    background: #eef1f5;
}
.page-loading-tab.is-active::before {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 0;
    height: 3px;
    border-radius: 999px 999px 0 0;
    background: #5e6874;
}

/* Cards, metrics and shared panels */
.page-loading-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.page-loading-metrics--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.page-loading-metrics article,
.page-loading-order-summary article,
.page-loading-chart-card,
.page-loading-donut-card,
.page-loading-settings-card,
.page-loading-tree-groups article,
.page-loading-integration-grid article,
.page-loading-content-grid article,
.page-loading-form-card,
.page-loading-form-aside,
.page-loading-upload-card,
.page-loading-fbo-form,
.page-loading-detail-sections article {
    animation: page-loading-card-enter .34s ease both;
    animation-delay: var(--card-delay, 0ms);
}
.page-loading-metrics article {
    min-height: 126px;
    padding: 18px;
    display: grid;
    align-content: start;
    gap: 13px;
    border: 1px solid #dfe4ea;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(26, 34, 46, .035);
}
.page-loading-metric-label { width: 47%; height: 11px; }
.page-loading-metric-value { width: 62%; height: 30px; border-radius: 11px; }
.page-loading-metric-note { width: 35%; height: 10px; }
.page-loading-panel {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dce2e8;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(26, 34, 46, .04);
}
.page-loading-toolbar {
    min-height: 72px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #e4e8ed;
}
.page-loading-toolbar--standalone {
    border: 1px solid #dfe4ea;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 9px 24px rgba(26,34,46,.03);
}
.page-loading-search { width: min(460px, 55%); height: 43px; margin-right: auto; border-radius: 13px; }
.page-loading-table { display: grid; }
.page-loading-row {
    min-height: 78px;
    padding: 12px 16px;
    display: grid;
    grid-template-columns: auto auto minmax(180px, 1.7fr) repeat(var(--table-columns, 3), minmax(70px, .7fr));
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #e7eaee;
    opacity: 0;
    animation: page-loading-row-enter .3s ease forwards;
    animation-delay: var(--row-delay, 0ms);
}
.page-loading-row.is-compact { min-height: 66px; }
.page-loading-row:last-child { border-bottom: 0; }
.page-loading-check { width: 22px; height: 22px; border-radius: 6px; }
.page-loading-image { width: 54px; height: 54px; border-radius: 12px; }
.page-loading-cell { width: var(--cell-width, 72%); height: 13px; }
.page-loading-cell--short { width: var(--cell-width, 56%); }

/* Dashboard */
.page-loading-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(270px, .7fr);
    gap: 14px;
}
.page-loading-chart-card,
.page-loading-donut-card {
    min-height: 330px;
    padding: 18px;
    border: 1px solid #dfe4ea;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(26,34,46,.035);
}
.page-loading-card-head {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.page-loading-card-head .page-loading-lines { width: 55%; }
.page-loading-chart {
    position: relative;
    height: 235px;
    margin-top: 20px;
    padding: 18px 16px 12px;
    display: flex;
    align-items: flex-end;
    gap: clamp(8px, 1.6vw, 18px);
    overflow: hidden;
    border-left: 1px solid #e6eaf0;
    border-bottom: 1px solid #e6eaf0;
    background: repeating-linear-gradient(to bottom, transparent 0, transparent 46px, #f0f3f6 47px);
}
.page-loading-chart > i {
    position: relative;
    z-index: 1;
    width: min(34px, 8%);
    height: var(--bar-height, 55%);
    display: block;
    border-radius: 8px 8px 3px 3px;
    background: #e1e6eb;
    animation: page-loading-chart-rise .55s ease both;
    animation-delay: var(--bar-delay, 0ms);
}
.page-loading-chart-line {
    position: absolute;
    z-index: 2;
    left: 7%;
    right: 4%;
    top: 35%;
    height: 4px;
    border-radius: 999px;
    transform: rotate(-4deg);
    background: #cfd7df;
}
.page-loading-donut-card {
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 18px;
}
.page-loading-donut-card > .page-loading-lines { width: 100%; justify-self: start; }
.page-loading-donut {
    width: 152px;
    height: 152px;
    border-radius: 50%;
    background: conic-gradient(#dce2e8 0 34%, #edf0f4 34% 58%, #d5dce4 58% 78%, #eef1f4 78% 100%);
}
.page-loading-donut::before {
    content: "";
    position: absolute;
    inset: 31px;
    border-radius: 50%;
    background: #fff;
}
.page-loading-legend-lines { width: 84%; }
.page-loading-dashboard-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Workspaces with filters */
.page-loading-workspace,
.page-loading-unit-layout,
.page-loading-reviews-layout {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(210px, 260px) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}
.page-loading-workspace__main { min-width: 0; display: grid; gap: 12px; }
.page-loading-filter-panel {
    padding: 18px;
    display: grid;
    gap: 15px;
    border: 1px solid #dfe4ea;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(26,34,46,.035);
}
.page-loading-filter-title { margin-bottom: 2px; }
.page-loading-filter-field,
.page-loading-detail-field {
    display: grid;
    gap: 8px;
    opacity: 0;
    animation: page-loading-row-enter .28s ease forwards;
    animation-delay: var(--field-delay, 0ms);
}
.page-loading-filter-label { width: 42%; height: 9px; }
.page-loading-filter-control,
.page-loading-detail-control { width: 100%; height: 40px; border-radius: 11px; }
.page-loading-detail-control--large { height: 92px; }

/* Orders and unit economics */
.page-loading-order-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.page-loading-order-summary article {
    min-height: 92px;
    padding: 15px;
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: center;
    gap: 12px;
    border: 1px solid #dfe4ea;
    border-radius: 16px;
    background: #fff;
}
.page-loading-order-icon { width: 42px; height: 42px; border-radius: 13px; }
.page-loading-orders-table .page-loading-row { min-height: 86px; }
.page-loading-unit-list {
    overflow: hidden;
    border: 1px solid #dfe4ea;
    border-radius: 18px;
    background: #fff;
}
.page-loading-unit-row {
    min-height: 86px;
    padding: 14px 16px;
    display: grid;
    grid-template-columns: 16px minmax(180px, 1.4fr) minmax(150px, .8fr) 100px 28px;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid #e6eaf0;
    opacity: 0;
    animation: page-loading-row-enter .3s ease forwards;
    animation-delay: var(--row-delay, 0ms);
}
.page-loading-unit-row:last-child { border-bottom: 0; }
.page-loading-market-dot { width: 12px; height: 12px; border-radius: 50%; }
.page-loading-profit-pill { width: 84px; height: 30px; border-radius: 999px; }
.page-loading-chevron { width: 24px; height: 24px; border-radius: 8px; }

/* Product detail */
.page-loading-product-hero {
    padding: 20px;
    display: grid;
    grid-template-columns: minmax(270px, .72fr) minmax(0, 1.28fr);
    gap: 28px;
    border: 1px solid #dfe4ea;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(26,34,46,.04);
}
.page-loading-gallery { min-width: 0; display: grid; gap: 12px; }
.page-loading-gallery-main { width: 100%; aspect-ratio: 1 / .82; border-radius: 18px; }
.page-loading-gallery-thumbs { display: grid; grid-template-columns: repeat(4, 58px); gap: 9px; }
.page-loading-gallery-thumb { width: 58px; height: 58px; border-radius: 12px; }
.page-loading-product-copy { display: grid; align-content: start; gap: 15px; }
.page-loading-product-title-lines { margin-bottom: 4px; }
.page-loading-product-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.page-loading-chip { width: 105px; height: 28px; border-radius: 999px; }
.page-loading-chip--short { width: 68px; }
.page-loading-detail-sections { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.page-loading-detail-sections article {
    min-height: 160px;
    padding: 18px;
    display: grid;
    align-content: start;
    gap: 14px;
    border: 1px solid #dfe4ea;
    border-radius: 18px;
    background: #fff;
}
.page-loading-detail-wide { width: 100%; height: 42px; }
.page-loading-detail-wide--short { width: 72%; }

/* Communications */
.page-loading-chat-layout {
    min-height: 560px;
    display: grid;
    grid-template-columns: minmax(270px, .72fr) minmax(0, 1.28fr);
    overflow: hidden;
    border: 1px solid #dfe4ea;
    border-radius: 18px;
    background: #fff;
}
.page-loading-chat-list { border-right: 1px solid #e4e8ed; }
.page-loading-chat-list > article {
    min-height: 78px;
    padding: 12px 15px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #e7eaee;
    opacity: 0;
    animation: page-loading-row-enter .3s ease forwards;
    animation-delay: var(--row-delay, 0ms);
}
.page-loading-avatar { width: 46px; height: 46px; border-radius: 50%; }
.page-loading-chat-thread { min-width: 0; display: grid; grid-template-rows: auto 1fr auto; }
.page-loading-chat-thread > header,
.page-loading-chat-thread > footer {
    min-height: 72px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #e5e9ee;
}
.page-loading-chat-thread > header .page-loading-lines { flex: 1; }
.page-loading-chat-thread > footer { border-top: 1px solid #e5e9ee; border-bottom: 0; }
.page-loading-messages { padding: 22px; display: flex; flex-direction: column; gap: 14px; background: #f7f8fa; }
.page-loading-message {
    width: var(--message-width, 55%);
    height: 52px;
    align-self: flex-start;
    border-radius: 15px 15px 15px 5px;
    opacity: 0;
    animation: page-loading-row-enter .32s ease forwards;
    animation-delay: var(--row-delay, 0ms);
}
.page-loading-message.is-own { align-self: flex-end; border-radius: 15px 15px 5px 15px; background: #dde3e9; }
.page-loading-chat-input { height: 44px; flex: 1; border-radius: 13px; }
.page-loading-review-list { display: grid; gap: 12px; }
.page-loading-review-card {
    min-height: 132px;
    padding: 16px;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: start;
    gap: 14px;
    border: 1px solid #dfe4ea;
    border-radius: 18px;
    background: #fff;
    opacity: 0;
    animation: page-loading-row-enter .32s ease forwards;
    animation-delay: var(--row-delay, 0ms);
}
.page-loading-stars { margin: 8px 0; display: flex; gap: 4px; }
.page-loading-star { width: 13px; height: 13px; border-radius: 4px; }
.page-loading-settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.page-loading-settings-card {
    min-height: 360px;
    padding: 20px;
    display: grid;
    align-content: start;
    gap: 16px;
    border: 1px solid #dfe4ea;
    border-radius: 18px;
    background: #fff;
}
.page-loading-setting-row {
    min-height: 56px;
    padding: 10px 0;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid #edf0f3;
    opacity: 0;
    animation: page-loading-row-enter .28s ease forwards;
    animation-delay: var(--field-delay, 0ms);
}
.page-loading-toggle { width: 46px; height: 26px; border-radius: 999px; }

/* Warehouse */
.page-loading-tree-layout {
    display: grid;
    grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
    gap: 14px;
    align-items: start;
}
.page-loading-tree-panel,
.page-loading-tree-groups article {
    padding: 18px;
    border: 1px solid #dfe4ea;
    border-radius: 18px;
    background: #fff;
}
.page-loading-tree-panel { display: grid; gap: 8px; }
.page-loading-tree-node {
    min-height: 44px;
    padding: 7px 8px;
    display: grid;
    grid-template-columns: 30px 1fr;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: page-loading-row-enter .28s ease forwards;
    animation-delay: var(--row-delay, 0ms);
}
.page-loading-tree-node.level-1 { margin-left: 22px; }
.page-loading-tree-node.level-2 { margin-left: 44px; }
.page-loading-tree-icon { width: 28px; height: 28px; border-radius: 9px; }
.page-loading-tree-groups { display: grid; gap: 12px; }
.page-loading-tree-groups article { min-height: 126px; display: grid; gap: 14px; }
.page-loading-tree-groups article .page-loading-button { justify-self: end; }
.page-loading-constructor {
    min-height: 600px;
    display: grid;
    grid-template-columns: 235px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid #dfe4ea;
    border-radius: 18px;
    background: #fff;
}
.page-loading-constructor > aside { padding: 18px; display: grid; align-content: start; gap: 12px; border-right: 1px solid #e4e8ed; }
.page-loading-constructor > aside > div {
    min-height: 44px;
    display: grid;
    grid-template-columns: 34px 1fr;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: page-loading-row-enter .28s ease forwards;
    animation-delay: var(--row-delay, 0ms);
}
.page-loading-tool-icon { width: 32px; height: 32px; border-radius: 10px; }
.page-loading-canvas { position: relative; min-height: 600px; overflow: hidden; background: #fafbfc; }
.page-loading-grid-pattern {
    position: absolute;
    inset: 0;
    border-radius: 0;
    background-image: linear-gradient(#e8ecf0 1px, transparent 1px), linear-gradient(90deg, #e8ecf0 1px, transparent 1px);
    background-size: 32px 32px;
}
.page-loading-rack {
    position: absolute;
    left: var(--rack-x);
    top: var(--rack-y);
    width: var(--rack-w);
    height: var(--rack-h);
    min-width: 72px;
    min-height: 42px;
    border: 1px solid #d2d9e1;
    border-radius: 8px;
    background: #e4e9ee;
    animation: page-loading-card-enter .4s ease both;
    animation-delay: var(--card-delay, 0ms);
}
.page-loading-fbo-form {
    padding: 20px;
    display: grid;
    gap: 18px;
    border: 1px solid #dfe4ea;
    border-radius: 18px;
    background: #fff;
}
.page-loading-fbo-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.page-loading-fbo-action { display: flex; justify-content: flex-end; }

/* Integrations, profile, content cards */
.page-loading-integration-grid,
.page-loading-content-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.page-loading-integration-grid article,
.page-loading-content-grid article {
    min-height: 230px;
    padding: 18px;
    display: grid;
    align-content: start;
    gap: 14px;
    border: 1px solid #dfe4ea;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(26,34,46,.03);
}
.page-loading-integration-logo { width: 54px; height: 54px; border-radius: 16px; }
.page-loading-integration-grid article > div,
.page-loading-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.page-loading-card-media { width: 100%; height: 110px; border-radius: 14px; }
.page-loading-content-grid article { min-height: 280px; }
.page-loading-profile-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}
.page-loading-profile-layout > aside,
.page-loading-profile-main {
    padding: 20px;
    border: 1px solid #dfe4ea;
    border-radius: 18px;
    background: #fff;
}
.page-loading-profile-layout > aside { display: grid; justify-items: center; gap: 14px; }
.page-loading-profile-avatar { width: 108px; height: 108px; border-radius: 50%; }
.page-loading-profile-nav {
    width: 100%;
    min-height: 44px;
    display: grid;
    grid-template-columns: 32px 1fr;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: page-loading-row-enter .28s ease forwards;
    animation-delay: var(--row-delay, 0ms);
}
.page-loading-profile-main { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.page-loading-profile-main > .page-loading-lines,
.page-loading-profile-actions { grid-column: 1 / -1; }
.page-loading-profile-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* Forms and uploads */
.page-loading-form-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(250px, .65fr); gap: 14px; align-items: start; }
.page-loading-form-card,
.page-loading-form-aside { padding: 20px; border: 1px solid #dfe4ea; border-radius: 18px; background: #fff; }
.page-loading-form-card { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.page-loading-form-card > .page-loading-lines,
.page-loading-form-card > .page-loading-profile-actions { grid-column: 1 / -1; }
.page-loading-form-aside { display: grid; gap: 16px; }
.page-loading-upload-card {
    width: min(980px, 100%);
    margin: 0 auto;
    padding: 28px;
    display: grid;
    gap: 20px;
    border: 1px solid #dfe4ea;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 40px rgba(26,34,46,.04);
}
.page-loading-upload-heading { width: 70%; margin: 0 auto; justify-items: center; }
.page-loading-dropzone {
    min-height: 290px;
    padding: 28px;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 16px;
    border: 2px dashed #d2d9e1;
    border-radius: 22px;
    background: #fafbfc;
}
.page-loading-dropzone .page-loading-lines { width: min(420px, 70vw); justify-items: center; }
.page-loading-upload-icon { width: 78px; height: 78px; border-radius: 24px; }

@keyframes page-loading-spin { to { transform: rotate(360deg); } }
@keyframes page-loading-track-shine { 100% { transform: translateX(360%); } }
@keyframes page-loading-shimmer { 100% { transform: translateX(105%); } }
@keyframes page-loading-enter { from { opacity: .45; transform: translateY(3px); } to { opacity: 1; transform: none; } }
@keyframes page-loading-row-enter { to { opacity: 1; } }
@keyframes page-loading-card-enter { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@keyframes page-loading-chart-rise { from { height: 0; opacity: .4; } }

@media (max-width: 1180px) {
    .page-loading-metrics--four,
    .page-loading-order-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .page-loading-integration-grid,
    .page-loading-content-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .page-loading-fbo-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .page-loading-row { grid-template-columns: auto auto minmax(160px, 1.5fr) repeat(var(--table-columns, 3), minmax(65px, .65fr)); gap: 12px; }
}
@media (max-width: 900px) {
    .page-loading-real-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
    .page-loading-real-heading__actions { width: 100%; justify-content: flex-start; }
    .page-loading-metrics { grid-template-columns: 1fr 1fr; }
    .page-loading-dashboard-grid,
    .page-loading-dashboard-bottom,
    .page-loading-settings-grid,
    .page-loading-detail-sections { grid-template-columns: 1fr; }
    .page-loading-workspace,
    .page-loading-unit-layout,
    .page-loading-reviews-layout { grid-template-columns: 1fr; }
    .page-loading-filter-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .page-loading-filter-title { grid-column: 1 / -1; }
    .page-loading-product-hero { grid-template-columns: 1fr; }
    .page-loading-gallery-main { max-height: 380px; }
    .page-loading-chat-layout { grid-template-columns: 1fr; }
    .page-loading-chat-list { display: none; }
    .page-loading-tree-layout { grid-template-columns: 1fr; }
    .page-loading-constructor { grid-template-columns: 190px minmax(0, 1fr); }
    .page-loading-profile-layout { grid-template-columns: 1fr; }
    .page-loading-profile-layout > aside { grid-template-columns: auto 1fr; justify-items: start; }
    .page-loading-profile-nav { display: none; }
    .page-loading-form-layout { grid-template-columns: 1fr; }
    .page-loading-form-aside { display: none; }
    .page-loading-row {
        grid-template-columns: auto auto minmax(150px, 1fr) 90px;
    }
    .page-loading-row .page-loading-cell:nth-last-child(-n+3) { display: none; }
}
@media (max-width: 620px) {
    .page-loading-shell { gap: 12px; }
    .page-loading-status { min-height: 66px; padding: 12px 12px 17px; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; }
    .page-loading-status__spinner { width: 30px; height: 30px; }
    .page-loading-status__title { font-size: 13px; }
    .page-loading-status__percent { min-width: 52px; padding: 6px 8px; font-size: 11px; }
    .page-loading-track { left: 12px; right: 12px; bottom: 7px; height: 5px; }
    .page-loading-title { height: 30px; width: 82vw; }
    .page-loading-subtitle { width: 88vw; }
    .page-loading-real-heading__actions { overflow: hidden; }
    .page-loading-real-heading__actions .page-loading-button { flex: 1; min-width: 90px; }
    .page-loading-tabs { min-height: 48px; overflow: hidden; }
    .page-loading-tab { min-width: 108px; height: 38px; }
    .page-loading-metrics,
    .page-loading-metrics--four,
    .page-loading-order-summary,
    .page-loading-integration-grid,
    .page-loading-content-grid { grid-template-columns: 1fr; }
    .page-loading-filter-panel { grid-template-columns: 1fr; }
    .page-loading-toolbar { flex-wrap: wrap; }
    .page-loading-search { width: 100%; flex-basis: 100%; }
    .page-loading-button { flex: 1 1 105px; }
    .page-loading-row { min-height: 70px; padding: 10px 12px; grid-template-columns: 20px 46px minmax(0, 1fr); gap: 11px; }
    .page-loading-row .page-loading-cell { display: none !important; }
    .page-loading-unit-row { grid-template-columns: 12px minmax(0, 1fr) 72px 24px; }
    .page-loading-unit-row > .page-loading-lines:nth-of-type(2) { display: none; }
    .page-loading-profit-pill { width: 68px; }
    .page-loading-product-hero { padding: 14px; }
    .page-loading-gallery-thumbs { grid-template-columns: repeat(4, 50px); }
    .page-loading-gallery-thumb { width: 50px; height: 50px; }
    .page-loading-review-card { grid-template-columns: 48px minmax(0, 1fr); }
    .page-loading-review-card > .page-loading-button { display: none; }
    .page-loading-constructor { grid-template-columns: 1fr; min-height: 480px; }
    .page-loading-constructor > aside { display: none; }
    .page-loading-canvas { min-height: 480px; }
    .page-loading-fbo-fields { grid-template-columns: 1fr; }
    .page-loading-profile-main,
    .page-loading-form-card { grid-template-columns: 1fr; }
    .page-loading-profile-main > *,
    .page-loading-form-card > * { grid-column: auto !important; }
    .page-loading-profile-actions { grid-column: 1 / -1 !important; }
    .page-loading-upload-card { padding: 18px; }
    .page-loading-dropzone { min-height: 230px; }
}
@media (prefers-reduced-motion: reduce) {
    .page-loading-status__spinner,
    .page-loading-track > i::after,
    .page-loading-box::after,
    .page-loading-lines i::after,
    .page-loading-chart-line::after,
    .page-loading-message::after,
    .page-loading-donut::after,
    .page-loading-profile-avatar::after,
    .page-loading-rack::after,
    .page-loading-shell,
    .page-loading-row,
    .page-loading-unit-row,
    .page-loading-review-card,
    .page-loading-tree-node,
    .page-loading-profile-nav,
    .page-loading-filter-field,
    .page-loading-detail-field,
    .page-loading-setting-row,
    .page-loading-chart > i,
    .page-loading-metrics article,
    .page-loading-order-summary article,
    .page-loading-chart-card,
    .page-loading-donut-card,
    .page-loading-settings-card,
    .page-loading-tree-groups article,
    .page-loading-integration-grid article,
    .page-loading-content-grid article,
    .page-loading-form-card,
    .page-loading-form-aside,
    .page-loading-upload-card,
    .page-loading-fbo-form,
    .page-loading-detail-sections article {
        animation: none !important;
    }
    .page-loading-row,
    .page-loading-unit-row,
    .page-loading-review-card,
    .page-loading-tree-node,
    .page-loading-profile-nav,
    .page-loading-filter-field,
    .page-loading-detail-field,
    .page-loading-setting-row { opacity: 1; }
}

/* v535: loading skeleton follows the selected dark theme instead of flashing white. */
html[data-app-theme="dark"] .page-loading-status,
html[data-app-theme="dark"] .page-loading-tabs,
html[data-app-theme="dark"] .page-loading-metrics article,
html[data-app-theme="dark"] .page-loading-panel,
html[data-app-theme="dark"] .page-loading-toolbar--standalone,
html[data-app-theme="dark"] .page-loading-chart-card,
html[data-app-theme="dark"] .page-loading-donut-card,
html[data-app-theme="dark"] .page-loading-settings-card,
html[data-app-theme="dark"] .page-loading-form-card,
html[data-app-theme="dark"] .page-loading-form-aside,
html[data-app-theme="dark"] .page-loading-upload-card,
html[data-app-theme="dark"] .page-loading-fbo-form{
  background:#171b21!important;border-color:#2a313a!important;box-shadow:0 10px 30px rgba(0,0,0,.14)!important;
}
html[data-app-theme="dark"] .page-loading-status__title{color:#e9edf2!important}
html[data-app-theme="dark"] .page-loading-status__percent{background:#20262e!important;color:#cbd4de!important;border-color:#343c47!important}
html[data-app-theme="dark"] .page-loading-status__spinner{border-color:#343c47!important;border-top-color:#dce2e8!important;border-right-color:#798797!important}
html[data-app-theme="dark"] .page-loading-track{background:#252c35!important}
html[data-app-theme="dark"] .page-loading-track>i{background:linear-gradient(90deg,#8c98a7,#c6ced8,#eef2f6)!important;box-shadow:none!important}
html[data-app-theme="dark"] .page-loading-box,
html[data-app-theme="dark"] .page-loading-lines i,
html[data-app-theme="dark"] .page-loading-chart-line,
html[data-app-theme="dark"] .page-loading-message,
html[data-app-theme="dark"] .page-loading-donut,
html[data-app-theme="dark"] .page-loading-profile-avatar,
html[data-app-theme="dark"] .page-loading-grid-pattern,
html[data-app-theme="dark"] .page-loading-rack,
html[data-app-theme="dark"] .page-loading-tab{
  background:#252c35!important;
}
html[data-app-theme="dark"] .page-loading-box::after,
html[data-app-theme="dark"] .page-loading-lines i::after,
html[data-app-theme="dark"] .page-loading-chart-line::after,
html[data-app-theme="dark"] .page-loading-message::after,
html[data-app-theme="dark"] .page-loading-donut::after,
html[data-app-theme="dark"] .page-loading-profile-avatar::after,
html[data-app-theme="dark"] .page-loading-rack::after{
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.08),transparent)!important;
}
html[data-app-theme="dark"] .page-loading-row{border-color:#2a313a!important}


/* dark-theme-universal.css */
/* MarketplaceAnalytics V538 — universal dark theme system.
   Loaded last so one token system wins over legacy page-specific light styles.
   The light theme is intentionally untouched. */

html[data-app-theme="dark"] {
  color-scheme: dark;

  /* Foundation */
  --dark-page: #101419;
  --dark-main: #12171d;
  --dark-nav: #151b22;
  --dark-surface-1: #171e26;
  --dark-surface-2: #1b232d;
  --dark-surface-3: #202a35;
  --dark-surface-4: #26313d;
  --dark-input: #141b23;
  --dark-disabled: #1a2028;

  /* Borders */
  --dark-border-soft: #252e39;
  --dark-border: #2c3642;
  --dark-border-strong: #394553;
  --dark-focus: #5f7288;
  --dark-focus-ring: rgba(95, 114, 136, .18);

  /* Text */
  --dark-text: #e7ebef;
  --dark-text-strong: #f0f3f6;
  --dark-text-secondary: #a5afbb;
  --dark-text-muted: #7f8995;
  --dark-text-disabled: #59636e;
  --dark-text-inverse: #15191e;

  /* Marketplace accents — deliberately softer than the source brands */
  --dark-ozon: #6e9dff;
  --dark-ozon-soft: rgba(110, 157, 255, .14);
  --dark-ozon-border: rgba(110, 157, 255, .30);
  --dark-wb: #d682df;
  --dark-wb-soft: rgba(214, 130, 223, .14);
  --dark-wb-border: rgba(214, 130, 223, .30);
  --dark-yandex: #ebcb68;
  --dark-yandex-soft: rgba(235, 203, 104, .14);
  --dark-yandex-border: rgba(235, 203, 104, .30);

  /* Semantic */
  --dark-success: #72c99a;
  --dark-success-soft: rgba(114, 201, 154, .13);
  --dark-danger: #f17f86;
  --dark-danger-soft: rgba(241, 127, 134, .13);
  --dark-warning: #e6b96a;
  --dark-warning-soft: rgba(230, 185, 106, .13);
  --dark-info: #75a8e8;
  --dark-info-soft: rgba(117, 168, 232, .13);

  /* Shadows */
  --dark-shadow-sm: 0 1px 2px rgba(0, 0, 0, .18);
  --dark-shadow-md: 0 10px 28px rgba(0, 0, 0, .24);
  --dark-shadow-menu: 0 18px 48px rgba(0, 0, 0, .36);
  --dark-shadow-modal: 0 24px 70px rgba(0, 0, 0, .44);

  /* Existing shared aliases */
  --app-bg: var(--dark-main);
  --app-surface: var(--dark-surface-1);
  --app-surface-2: var(--dark-surface-2);
  --app-surface-3: var(--dark-surface-3);
  --app-border: var(--dark-border-soft);
  --app-border-strong: var(--dark-border);
  --app-text: var(--dark-text);
  --app-muted: var(--dark-text-secondary);
  --ui-bg: var(--dark-main);
  --ui-surface: var(--dark-surface-1);
  --ui-surface-muted: var(--dark-surface-2);
  --ui-text: var(--dark-text);
  --ui-muted: var(--dark-text-secondary);
  --ui-line: var(--dark-border-soft);
  --ui-line-strong: var(--dark-border);
  --ui-focus: var(--dark-focus-ring);
  --ui-shadow-panel: var(--dark-shadow-sm);
  --ui-shadow-menu: var(--dark-shadow-menu);
  --glass-bg: var(--dark-surface-2);
  --glass-bg-strong: var(--dark-surface-3);
  --glass-line: var(--dark-border);
  --glass-shadow: var(--dark-shadow-md);

  /* Legacy global aliases from static.css */
  --bg: var(--dark-main);
  --surface: var(--dark-surface-1);
  --surface-soft: var(--dark-surface-2);
  --ink: var(--dark-text);
  --muted: var(--dark-text-secondary);
  --line: var(--dark-border-soft);
  --line-dark: var(--dark-border);
  --ui-page-bg: var(--dark-main);
  --ui-card-bg: var(--dark-surface-1);
  --ui-card-muted: var(--dark-surface-2);
  --ui-hover: var(--dark-surface-3);
  --ui-border: var(--dark-border-soft);
  --ui-border-strong: var(--dark-border);
}

/* --------------------------------------------------------------------------
   Global canvas and typography
   -------------------------------------------------------------------------- */
html[data-app-theme="dark"],
html[data-app-theme="dark"] body,
html[data-app-theme="dark"] .site-shell,
html[data-app-theme="dark"] .page-container,
html[data-app-theme="dark"] main,
html[data-app-theme="dark"] body.dashboard-page,
html[data-app-theme="dark"] body.products-modern-body,
html[data-app-theme="dark"] body.orders-modern-body,
html[data-app-theme="dark"] body.pricing-page,
html[data-app-theme="dark"] body.communications-page,
html[data-app-theme="dark"] body.profile-page,
html[data-app-theme="dark"] body.api-page,
html[data-app-theme="dark"] body.warehouse-page,
html[data-app-theme="dark"] body.warehouse-tree-page,
html[data-app-theme="dark"] body.warehouse-receiving-page,
html[data-app-theme="dark"] body.warehouse-transfer-page,
html[data-app-theme="dark"] body.fbo-planning-page,
html[data-app-theme="dark"] body.fbo-supply-page,
html[data-app-theme="dark"] body.site-settings-page,
html[data-app-theme="dark"] body.return-decisions-page,
html[data-app-theme="dark"] body.knowledge-page,
html[data-app-theme="dark"] body.news-page,
html[data-app-theme="dark"] body.offline-orders-page {
  background: var(--dark-main) !important;
  color: var(--dark-text) !important;
}

html[data-app-theme="dark"] :where(h1,h2,h3,h4,h5,h6,strong,b,.title,.heading,.card-title,.panel-title) {
  color: var(--dark-text-strong);
}
html[data-app-theme="dark"] :where(p,small,.muted,.subtitle,.hint,.help-text,.field-hint,.cell-subline,time) {
  color: var(--dark-text-secondary);
}
html[data-app-theme="dark"] :where(a:not(.button):not(.btn):not([class*="button"])) { color: #b6c4d4; }
html[data-app-theme="dark"] :where(a:not(.button):not(.btn):not([class*="button"]):hover) { color: #e4ebf2; }
html[data-app-theme="dark"] hr { border-color: var(--dark-border-soft) !important; }
html[data-app-theme="dark"] ::selection { background: rgba(110,157,255,.26); color: #fff; }

/* --------------------------------------------------------------------------
   Navigation chrome
   -------------------------------------------------------------------------- */
html[data-app-theme="dark"] .app-modern-shell {
  --gm-bg: var(--dark-main);
  --gm-text: var(--dark-text);
  --gm-muted: var(--dark-text-secondary);
  --gm-border: var(--dark-border-soft);
  --gm-border-strong: var(--dark-border);
  --gm-accent: #d9e0e7;
  --gm-accent-strong: #eef2f6;
  --gm-accent-soft: var(--dark-surface-3);
  background: var(--dark-main) !important;
  color: var(--dark-text) !important;
}
html[data-app-theme="dark"] .app-modern-shell .app-header,
html[data-app-theme="dark"] .products-modern-body .app-header,
html[data-app-theme="dark"] .app-header {
  background: var(--dark-nav) !important;
  border-color: var(--dark-border-soft) !important;
  color: var(--dark-text) !important;
  box-shadow: none !important;
}
html[data-app-theme="dark"] .app-modern-shell .brand,
html[data-app-theme="dark"] .app-modern-shell .brand-name,
html[data-app-theme="dark"] .products-modern-body .brand,
html[data-app-theme="dark"] .products-modern-body .brand-name {
  color: var(--dark-text-strong) !important;
}
html[data-app-theme="dark"] .workspace-utility-bar {
  background: var(--dark-nav) !important;
  border-color: var(--dark-border-soft) !important;
  color: var(--dark-text) !important;
  box-shadow: none !important;
}
html[data-app-theme="dark"] .main-nav__link { color: #9ba7b4 !important; background: transparent !important; }
html[data-app-theme="dark"] .main-nav__link:hover { color: var(--dark-text) !important; background: var(--dark-surface-3) !important; }
html[data-app-theme="dark"] .main-nav__link.active { color: var(--dark-text-strong) !important; background: transparent !important; }
html[data-app-theme="dark"] .main-nav__link.active::after { background: #cbd4dc !important; }
html[data-app-theme="dark"] :where(.nav-toggle,.header-profile-button,.header-store-picker>summary,.section-search-toggle,.logout-link,.header-auth-button) {
  background: var(--dark-surface-2) !important;
  border-color: var(--dark-border) !important;
  color: var(--dark-text) !important;
}
html[data-app-theme="dark"] :where(.main-nav-submenu,.header-profile-popover,.header-store-picker__menu,.section-search-popover,.fs-select__menu,.app-searchable-select__menu,.app-enhanced-multi__menu,.dropdown-menu,[role="listbox"]) {
  background: var(--dark-surface-2) !important;
  border-color: var(--dark-border) !important;
  color: var(--dark-text) !important;
  box-shadow: var(--dark-shadow-menu) !important;
}
html[data-app-theme="dark"] :where(.main-nav-submenu a,.header-profile-popover a,.header-store-picker__menu label,.section-search-popover a,.fs-select__option,.app-searchable-select__option,.app-enhanced-multi__option) { color: #cbd3dc !important; }
html[data-app-theme="dark"] :where(.main-nav-submenu a:hover,.header-profile-popover a:hover,.section-search-popover a:hover,.fs-select__option:hover,.fs-select__option.is-active,.app-searchable-select__option:hover,.app-enhanced-multi__option:hover) {
  background: var(--dark-surface-3) !important;
  color: #fff !important;
}

/* --------------------------------------------------------------------------
   Shared elevation system: panels/cards/sidebars/heroes
   -------------------------------------------------------------------------- */
html[data-app-theme="dark"] :where(
  .page-heading,.panel,.surface,.card,.dashboard-panel,.metric-card,
  .workspace-sidebar,.pricing-sidebar,.pricing-main,.orders-board,.orders-side-tabs,
  .api-toolbar,.api-table-panel,.store-card,.stores-panel,.store-add-panel,
  .knowledge-hero,.knowledge-directory,.knowledge-article__header,.knowledge-chapter,.knowledge-article__footer,
  .return-list-card,.return-kpis,.return-detail-card,.settings-sidebar,.settings-card,
  .profile-hero,.profile-section,.security-card,.referral-code-card,
  .products-modern-heading,.products-modern-filters-card,.products-modern-table-card,
  .orders-page-heading,.orders-metric-card,.orders-table-wrap,.orders-filter__menu,
  .promotion-hero,.promotion-filter-box,.promotion-table-wrap,
  .communications-summary-card,.communications-workspace,.communications-filter__popover,
  .chat-workspace,.chat-list-pane,.chat-center,.chat-product-pane,.chat-product-card,.chat-order-summary,
  .review-dashboard-card,.review-table-shell,.review-filter-modal,.review-columns-modal,
  .rt-workspace,.rt-templates-panel,.rt-editor,.rt-variable-modal,
  .ai-settings-panel,.ai-knowledge-panel,.ai-stat-card,
  .wh-card,.wh-stat-card,.wh-toolbox,.wh-properties,.wh-canvas-card,.wh-map-main,.wh-map-aside,.wh-create-card,.wh-list-card,
  .fbo-card,.fbo-sidebar,.fbo-main,.fbo-filter-card,.fbo-summary,.fbo-columns-modal-card,
  .fs-card,.fs-summary,.fs-remote-detail,
  .wr-form-card,.wr-items-panel,.wr-scanner-card,.wr-history-panel,.wr-complete-card,.wr-product-picker,
  .wt-form-panel,.wt-products-panel,.wt-history-panel,.wt-modal-card,
  .ue-summary,.ue-filter-panel,.ue-table-panel,.ue-pending-card,.ue-order-details,
  .offline-orders-list,.offline-order-create__cart,.offline-order-summary,.offline-client-card,.offline-columns-card,
  .actual-finance-card
) {
  background: var(--dark-surface-1) !important;
  border-color: var(--dark-border-soft) !important;
  color: var(--dark-text) !important;
  box-shadow: var(--dark-shadow-sm) !important;
}

/* Generic fallback for pages with one-off cards/panels. This intentionally
   excludes marketplace/status pills and buttons. */
html[data-app-theme="dark"] :where(
  [class$="-card"]:not([class*="status"]):not([class*="badge"]):not(button):not(a),
  [class*="-card "]:not([class*="status"]):not([class*="badge"]):not(button):not(a),
  [class$="-panel"]:not([class*="status"]):not(button):not(a),
  [class*="-panel "]:not([class*="status"]):not(button):not(a)
) {
  border-color: var(--dark-border-soft) !important;
}

html[data-app-theme="dark"] :where(.page-heading,.products-modern-heading,.orders-page-heading,.pricing-page-header,.pricing-heading,.promotion-hero,.marketplace-warehouse-hero,.page-hero,.content-hero,.fs-heading,.fbo-heading,.wt-page-heading,.wr-page-heading,.profile-hero) {
  background: var(--dark-surface-1) !important;
  color: var(--dark-text) !important;
  border-color: var(--dark-border-soft) !important;
}

/* --------------------------------------------------------------------------
   Controls
   -------------------------------------------------------------------------- */
html[data-app-theme="dark"] :where(
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  select,textarea,[contenteditable="true"],
  .control-input,.search-field,.orders-search,.mpw-search,.products-modern-global-search,
  .communications-search,.chat-search,.review-search,.rt-search,.fbo-search,.fs-search,.wr-search-field,.wt-search-field,
  button.fs-select__trigger,.app-searchable-select__trigger,.app-enhanced-multi__trigger
) {
  background: var(--dark-input) !important;
  border-color: var(--dark-border) !important;
  color: var(--dark-text) !important;
  box-shadow: none !important;
}
html[data-app-theme="dark"] :where(input,textarea,[contenteditable="true"])::placeholder { color: var(--dark-text-muted) !important; opacity: 1; }
html[data-app-theme="dark"] :where(input,select,textarea,[contenteditable="true"],button.fs-select__trigger):hover { border-color: var(--dark-border-strong) !important; }
html[data-app-theme="dark"] :where(input,select,textarea,[contenteditable="true"],button.fs-select__trigger):focus,
html[data-app-theme="dark"] :where(input,select,textarea,[contenteditable="true"],button.fs-select__trigger):focus-visible {
  border-color: var(--dark-focus) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px var(--dark-focus-ring) !important;
}
html[data-app-theme="dark"] option { background: var(--dark-surface-2); color: var(--dark-text); }
html[data-app-theme="dark"] :where(input:disabled,select:disabled,textarea:disabled,.is-disabled,[aria-disabled="true"]) { opacity: .62; }

html[data-app-theme="dark"] input[type="checkbox"],
html[data-app-theme="dark"] input[type="radio"] { accent-color: #7f91a4; }
html[data-app-theme="dark"] body[data-marketplace-theme="ozon"] input[type="checkbox"] { accent-color: var(--dark-ozon); }
html[data-app-theme="dark"] body[data-marketplace-theme="wildberries"] input[type="checkbox"] { accent-color: var(--dark-wb); }
html[data-app-theme="dark"] body[data-marketplace-theme="yandex"] input[type="checkbox"] { accent-color: var(--dark-yandex); }

/* Neutral buttons: marketplace colour stays reserved for meaningful actions. */
html[data-app-theme="dark"] :where(
  .button-light,.button-secondary,.file-button,.side-action,.app-filter-toggle,.column-settings-button,.page-settings-button,
  .table-settings-button,.orders-refresh,.products-modern-button:not(.products-modern-button--primary),.fbo-action-button,
  .communications-filter__trigger,.chat-filter-trigger,.review-filter-trigger,.rt-channel-tab
) {
  background: var(--dark-surface-2) !important;
  border-color: var(--dark-border) !important;
  color: var(--dark-text) !important;
  box-shadow: none !important;
}
html[data-app-theme="dark"] :where(.button-light,.button-secondary,.file-button,.side-action,.app-filter-toggle,.column-settings-button,.page-settings-button,.table-settings-button,.orders-refresh):hover {
  background: var(--dark-surface-3) !important;
  border-color: var(--dark-border-strong) !important;
}
html[data-app-theme="dark"] :where(.button-dark,.button-primary,.action-primary,.products-modern-button--primary,.fs-create-button,.wt-primary,.wr-primary-button) {
  background: #dfe5eb !important;
  border-color: #dfe5eb !important;
  color: var(--dark-text-inverse) !important;
  box-shadow: none !important;
}
html[data-app-theme="dark"] :where(.button-dark,.button-primary,.action-primary,.products-modern-button--primary,.fs-create-button,.wt-primary,.wr-primary-button):hover {
  background: #edf1f4 !important;
  border-color: #edf1f4 !important;
}
html[data-app-theme="dark"] :where(.button-danger,.danger-button,.api-icon-action--delete,.offline-order-delete,.wr-history-delete,.wt-history-delete,.fs-history-delete) {
  color: var(--dark-danger) !important;
}

/* --------------------------------------------------------------------------
   Tables — consistent across Products, Prices, Orders, Warehouse, API, Profile
   -------------------------------------------------------------------------- */
html[data-app-theme="dark"] :where(
  .app-table-scroll,.data-table-wrap,.pricing-table-wrap,.products-modern-table-wrap,.orders-table-wrap,.api-table-scroll,
  .warehouse-stock-table-wrap,.team-table-wrap,.wr-history-table-wrap,.wr-table-wrap,.wt-history-table-wrap,.wt-table-wrap,
  .fbo-table-wrap,.fs-table-wrap,.offline-orders-table-wrap,.ue-table-wrap,.review-table-shell
) {
  background: var(--dark-surface-1) !important;
  border-color: var(--dark-border-soft) !important;
  scrollbar-color: #4b5662 transparent;
}
html[data-app-theme="dark"] :where(table,.app-table,.data-table,.pricing-table,.products-modern-table,.orders-table,.api-token-table,.profile-table,.warehouse-stock-table,.wr-history-table,.wr-items-table,.wt-history-table,.wt-product-table,.fbo-table,.fs-table,.offline-orders-table,.review-table) {
  background: var(--dark-surface-1) !important;
  color: var(--dark-text) !important;
  border-color: var(--dark-border-soft) !important;
}
html[data-app-theme="dark"] :where(table thead,table thead tr,table th,.app-table th,.return-table-head,.communications-table-head,.review-table-head,.ue-table-head) {
  background: var(--dark-surface-2) !important;
  color: #aeb8c3 !important;
  border-color: var(--dark-border-soft) !important;
}
html[data-app-theme="dark"] :where(table tbody,table tbody tr,table td,.app-table td) {
  background: var(--dark-surface-1) !important;
  color: #cfd6de !important;
  border-color: var(--dark-border-soft) !important;
}
html[data-app-theme="dark"] :where(table tbody tr:hover td,.app-table tbody tr:hover td) { background: var(--dark-surface-3) !important; }
html[data-app-theme="dark"] :where(table tbody tr.is-selected td,table tbody tr.selected td,.app-table tbody tr.is-selected td) { background: #222e3a !important; }
html[data-app-theme="dark"] :where(.cell-subline,.table-muted,.products-modern-name-cell small,.product-cell small) { color: var(--dark-text-muted) !important; }

/* Pricing tables used hard-coded white in section-tables.css. */
html[data-app-theme="dark"] .pricing-page,
html[data-app-theme="dark"] .products-modern-body {
  --products-table-border: var(--dark-border-soft);
  --products-table-border-soft: #222c36;
  --products-table-head: var(--dark-surface-2);
  --products-table-hover: var(--dark-surface-3);
  --products-table-text: #cfd6de;
  --products-table-muted: var(--dark-text-muted);
  --pricing-table-border: var(--dark-border-soft);
  --pricing-table-border-soft: #222c36;
  --pricing-table-head: var(--dark-surface-2);
  --pricing-table-hover: var(--dark-surface-3);
  --pricing-table-text: #cfd6de;
  --pricing-table-muted: var(--dark-text-muted);
}
html[data-app-theme="dark"] .products-modern-body :where(.products-modern-table-card,.products-modern-table-head,.products-modern-table-wrap,.products-modern-table,.deleted-products-table-card,.deleted-products-summary,.deleted-products-table-card .table-scroll,.deleted-products-table) {
  background: var(--dark-surface-1) !important;
  border-color: var(--dark-border-soft) !important;
}
html[data-app-theme="dark"] .products-modern-body :where(.products-modern-table th,.deleted-products-table thead th) { background: var(--dark-surface-2) !important; color: #aeb8c3 !important; }
html[data-app-theme="dark"] .products-modern-body :where(.products-modern-table td,.deleted-products-table tbody td) { background: var(--dark-surface-1) !important; color: #cfd6de !important; }
html[data-app-theme="dark"] .pricing-page :where(.pricing-table,.pricing-table th,.pricing-table td,.wb-hk-table,.wb-hk-table th,.wb-hk-table td,.pricing-table-wrap) { border-color: var(--dark-border-soft) !important; }
html[data-app-theme="dark"] .pricing-page :where(.pricing-table,.wb-hk-table,.pricing-table td,.wb-hk-table td) { background: var(--dark-surface-1) !important; color: #cfd6de !important; }
html[data-app-theme="dark"] .pricing-page :where(.pricing-table th,.wb-hk-table th) { background: var(--dark-surface-2) !important; color: #aeb8c3 !important; }

/* --------------------------------------------------------------------------
   Tabs, pagination, chips and status surfaces
   -------------------------------------------------------------------------- */
html[data-app-theme="dark"] :where(
  .product-platform-tabs,.products-modern-market-tabs,.products-modern-state-tabs,.dashboard-marketplace-tabs,
  .promotion-section-tabs,.communications-section-tabs,.review-marketplace-tabs,.api-tabs,.profile-tabs,.return-marketplace-tabs,
  .offline-orders-subnav,.fs-platforms,.fs-history-tabs,.ai-channel-tabs,.chat-marketplace-switch,.chat-view-switch
) { background: transparent !important; border-color: var(--dark-border-soft) !important; }
html[data-app-theme="dark"] :where(
  .product-platform-tab,.products-modern-market-tab,.products-modern-state-tabs a,.dashboard-marketplace-tab,.promotion-section-tab,
  .communications-section-tab,.review-marketplace-tab,.api-tab,.profile-tabs a,.return-marketplace-tabs a,.offline-orders-subnav a,
  .fs-platform,.ai-channel-tabs button,.chat-marketplace-switch__item,.chat-view-switch__item
) { color: var(--dark-text-secondary) !important; }
html[data-app-theme="dark"] :where(
  .product-platform-tab.active,.products-modern-market-tab.is-active,.products-modern-state-tabs a.active,.dashboard-marketplace-tab.active,
  .promotion-section-tab.active,.communications-section-tab.active,.review-marketplace-tab.is-active,.api-tab.active,.api-tab.is-active,
  .profile-tabs a.active,.return-marketplace-tabs a.is-active,.offline-orders-subnav a.is-active,.fs-platform.is-active,.ai-channel-tabs button.is-active,
  .chat-marketplace-switch__item.is-active,.chat-view-switch__item.is-active
) {
  background: var(--dark-surface-3) !important;
  border-color: var(--dark-border) !important;
  color: var(--dark-text-strong) !important;
  box-shadow: none !important;
}
html[data-app-theme="dark"] :where(.pagination,.products-modern-pagination,.orders-pagination,.offline-orders-pagination,.ue-pagination,.fbo-pagination,.chat-pagination,.review-pagination) :where(a,button,span) {
  background: var(--dark-surface-2) !important;
  border-color: var(--dark-border) !important;
  color: var(--dark-text-secondary) !important;
}
html[data-app-theme="dark"] :where(.pagination,.products-modern-pagination,.orders-pagination,.offline-orders-pagination,.ue-pagination,.fbo-pagination,.chat-pagination,.review-pagination) :where(.active,.is-active,[aria-current="page"]) {
  background: var(--dark-surface-4) !important;
  color: var(--dark-text-strong) !important;
}

/* --------------------------------------------------------------------------
   Marketplace accent system
   -------------------------------------------------------------------------- */
html[data-app-theme="dark"] body[data-marketplace-theme="ozon"] {
  --mp-accent: var(--dark-ozon); --mp-accent-strong: #a9c4ff; --mp-soft: var(--dark-ozon-soft);
  --mp-soft-strong: rgba(110,157,255,.20); --mp-border: var(--dark-ozon-border); --mp-ring: rgba(110,157,255,.20); --mp-on-accent: #101722;
}
html[data-app-theme="dark"] body[data-marketplace-theme="wildberries"] {
  --mp-accent: var(--dark-wb); --mp-accent-strong: #e8adee; --mp-soft: var(--dark-wb-soft);
  --mp-soft-strong: rgba(214,130,223,.20); --mp-border: var(--dark-wb-border); --mp-ring: rgba(214,130,223,.20); --mp-on-accent: #1e1120;
}
html[data-app-theme="dark"] body[data-marketplace-theme="yandex"] {
  --mp-accent: var(--dark-yandex); --mp-accent-strong: #f1d98d; --mp-soft: var(--dark-yandex-soft);
  --mp-soft-strong: rgba(235,203,104,.20); --mp-border: var(--dark-yandex-border); --mp-ring: rgba(235,203,104,.20); --mp-on-accent: #1c190f;
}
html[data-app-theme="dark"] body[data-marketplace-theme] .app-managed-window { border-color: var(--dark-border-strong) !important; border-top-color: var(--mp-accent) !important; }
html[data-app-theme="dark"] body[data-marketplace-theme] .app-managed-window > .app-window-titlebar {
  background: var(--dark-surface-2) !important;
  border-bottom-color: var(--dark-border) !important;
  color: var(--dark-text) !important;
}
html[data-app-theme="dark"] :where(.products-modern-marketplace-badge--ozon,.api-platform-label--ozon,.communications-marketplace-badge--ozon,.marketplace-chip--ozon,.store-chip--ozon) {
  background: var(--dark-ozon-soft) !important; border-color: var(--dark-ozon-border) !important; color: #a9c4ff !important;
}
html[data-app-theme="dark"] :where(.products-modern-marketplace-badge--wildberries,.api-platform-label--wildberries,.communications-marketplace-badge--wildberries,.marketplace-chip--wildberries,.store-chip--wb,.store-chip--wildberries) {
  background: var(--dark-wb-soft) !important; border-color: var(--dark-wb-border) !important; color: #e5a8eb !important;
}
html[data-app-theme="dark"] :where(.products-modern-marketplace-badge--yandex,.api-platform-label--yandex,.communications-marketplace-badge--yandex,.communications-marketplace-badge--yandex_market,.marketplace-chip--yandex,.store-chip--yandex) {
  background: var(--dark-yandex-soft) !important; border-color: var(--dark-yandex-border) !important; color: #ead58f !important;
}
html[data-app-theme="dark"] :where(.button-wb,.action-primary--wb,[data-marketplace-primary="wildberries"]) { background: var(--dark-wb-soft) !important; border-color: var(--dark-wb-border) !important; color: #e7b0ec !important; }
html[data-app-theme="dark"] :where(.button-yandex,.action-primary--yandex,[data-marketplace-primary="yandex"]) { background: var(--dark-yandex-soft) !important; border-color: var(--dark-yandex-border) !important; color: #edd794 !important; }

/* --------------------------------------------------------------------------
   Dashboard
   -------------------------------------------------------------------------- */
html[data-app-theme="dark"] :where(.dashboard-status,.dashboard-warning,.chart-stage,.donut-wrap,.dashboard-news-item,.dashboard-activity-item,.chart-settings-modal,.info-tooltip) {
  border-color: var(--dark-border-soft) !important;
}
html[data-app-theme="dark"] .dashboard-status { background: var(--dark-surface-1) !important; color: var(--dark-text-secondary) !important; }
html[data-app-theme="dark"] .dashboard-warning { background: var(--dark-warning-soft) !important; color: #e3c686 !important; border-color: rgba(230,185,106,.26) !important; }
html[data-app-theme="dark"] :where(.chart-stage,.donut-wrap,.chart-settings-modal,.info-tooltip) { background: var(--dark-surface-1) !important; color: var(--dark-text) !important; }
html[data-app-theme="dark"] :where(.mini-tab,.dashboard-tab,.dashboard-marketplace-tab) { color: var(--dark-text-muted) !important; }
html[data-app-theme="dark"] :where(.mini-tab.active,.dashboard-tab.active,.dashboard-marketplace-tab.active) { color: var(--dark-text-strong) !important; }
html[data-app-theme="dark"] :where(.period-select-trigger,.period-select-menu,.chart-settings-button) { background: var(--dark-surface-2) !important; border-color: var(--dark-border) !important; color: var(--dark-text) !important; }
html[data-app-theme="dark"] .period-select-option:hover,
html[data-app-theme="dark"] .period-select-option.is-selected { background: var(--dark-surface-3) !important; color: #fff !important; }

/* --------------------------------------------------------------------------
   Products / product cards
   -------------------------------------------------------------------------- */
html[data-app-theme="dark"] .products-modern-body {
  --pm-bg: var(--dark-main); --pm-card: var(--dark-surface-1); --pm-text: var(--dark-text); --pm-muted: var(--dark-text-secondary);
  --pm-border: var(--dark-border-soft); --pm-border-strong: var(--dark-border); --pm-gray-soft: var(--dark-surface-2);
  --pm-purple-soft: var(--dark-surface-3); --pm-purple-border: var(--dark-border); --pm-purple: #dce3ea; --pm-purple-dark: #f2f5f7;
}
html[data-app-theme="dark"] :where(.products-modern-topbar,.products-modern-tabs-row,.products-modern-table-head,.products-modern-table-footer,.products-upload-mode) {
  background: var(--dark-surface-1) !important; border-color: var(--dark-border-soft) !important; color: var(--dark-text) !important;
}
html[data-app-theme="dark"] :where(.products-filter-card,.products-filter-card__title,.products-filter-card__body,.products-modern-filter-search,.products-modern-info) {
  background: transparent !important; border-color: var(--dark-border-soft) !important; color: var(--dark-text-secondary) !important;
}
html[data-app-theme="dark"] .product-card-page {
  --pc-bg: var(--dark-main); --pc-ink: var(--dark-text); --pc-muted: var(--dark-text-secondary); --pc-line: var(--dark-border-soft);
  --pc-accent-soft: var(--dark-surface-3); --pc-accent-line: var(--dark-border);
}
html[data-app-theme="dark"] :where(.pc-hero,.pc-left-column,.pc-right-column,.pc-characteristic,.pc-compliance-panel,.pc-media-grid,.pc-rich-library,.pc-rich-canvas-wrap,.pc-rich-preview-wrap,.pc-modal__card,.pc-variant-card,.pc-summary-grid) {
  background: var(--dark-surface-1) !important; border-color: var(--dark-border-soft) !important; color: var(--dark-text) !important;
}
html[data-app-theme="dark"] :where(.pc-multi-select__menu,.pc-multi-select__options,.pc-template-tip,.pc-rich-field) { background: var(--dark-surface-2) !important; border-color: var(--dark-border) !important; color: var(--dark-text) !important; }

/* --------------------------------------------------------------------------
   Prices / promotions
   -------------------------------------------------------------------------- */
html[data-app-theme="dark"] :where(.pricing-page-header,.pricing-heading,.pricing-sidebar,.pricing-main,.pricing-toolbar,.bulk-price-actions,.promotion-products-footer,.promotion-filter-box__head) {
  background: var(--dark-surface-1) !important; border-color: var(--dark-border-soft) !important; color: var(--dark-text) !important;
}
html[data-app-theme="dark"] :where(.pricing-sidebar .filter-card,.pricing-sidebar .filter-card__title,.pricing-sidebar .filter-card__body) { background: transparent !important; border-color: var(--dark-border-soft) !important; }
html[data-app-theme="dark"] :where(.promotion-products-table,.promotion-simple-table,.promotion-products-table th,.promotion-simple-table th,.promotion-products-table td,.promotion-simple-table td) { border-color: var(--dark-border-soft) !important; }
html[data-app-theme="dark"] :where(.promotion-products-table,.promotion-simple-table,.promotion-products-table td,.promotion-simple-table td) { background: var(--dark-surface-1) !important; color: #cfd6de !important; }
html[data-app-theme="dark"] :where(.promotion-products-table th,.promotion-simple-table th) { background: var(--dark-surface-2) !important; color: #aeb8c3 !important; }
html[data-app-theme="dark"] :where(.promotion-highlighted-row td) { background: #202a35 !important; }

/* --------------------------------------------------------------------------
   Orders / offline orders / unit economics
   -------------------------------------------------------------------------- */
html[data-app-theme="dark"] .orders-modern-body { --om-border: var(--dark-border-soft); --om-muted: var(--dark-text-secondary); --om-purple: #dce3ea; }
html[data-app-theme="dark"] :where(.orders-region-switch,.orders-side-tabs,.orders-toolbar,.orders-status-tabs,.orders-selection-bar,.orders-footer,.orders-filter__menu,.orders-dialog__card,.orders-history-dialog__card,.orders-scanner-card) {
  background: var(--dark-surface-1) !important; border-color: var(--dark-border-soft) !important; color: var(--dark-text) !important;
}
html[data-app-theme="dark"] .orders-region-switch a.active { background: var(--dark-surface-3) !important; color: var(--dark-text-strong) !important; }
html[data-app-theme="dark"] .orders-metric-card::after { background: var(--dark-surface-3) !important; box-shadow: none !important; }
html[data-app-theme="dark"] .orders-metric-content h3 { color: var(--dark-text-secondary) !important; }
html[data-app-theme="dark"] .orders-metric-content strong { color: var(--dark-text-strong) !important; }
html[data-app-theme="dark"] .offline-orders-page :where(.offline-orders-toolbar,.offline-orders-footer,.offline-order-form,.offline-order-create__layout,.offline-step,.offline-modal__card,.profile-modal__card,.offline-product-search__results) {
  background: var(--dark-surface-1) !important; border-color: var(--dark-border-soft) !important; color: var(--dark-text) !important;
}
html[data-app-theme="dark"] .orders-unit-page {
  --ue-text: var(--dark-text); --ue-muted: var(--dark-text-secondary); --ue-line: var(--dark-border-soft); --ue-soft: var(--dark-surface-2);
}
html[data-app-theme="dark"] :where(.ue-order,.ue-order-main,.ue-table-head,.ue-products-detail,.ue-expenses-detail,.ue-calculation-note) { background: var(--dark-surface-1) !important; border-color: var(--dark-border-soft) !important; color: var(--dark-text) !important; }
html[data-app-theme="dark"] .ue-table-head { background: var(--dark-surface-2) !important; color: var(--dark-text-secondary) !important; }

/* --------------------------------------------------------------------------
   Communications / reviews / templates / AI
   -------------------------------------------------------------------------- */
html[data-app-theme="dark"] :where(.communications-toolbar,.communications-row,.communications-reply-composer,.communications-history-panel,.communications-chat-composer,.communications-notice,.communications-empty-state) {
  background: var(--dark-surface-1) !important; border-color: var(--dark-border-soft) !important; color: var(--dark-text) !important;
}
html[data-app-theme="dark"] :where(.communications-history-bubble,.communications-history-message,.communications-reply-message) { background: var(--dark-surface-2) !important; border-color: var(--dark-border) !important; color: #d7dee5 !important; }
html[data-app-theme="dark"] :where(.communications-history-bubble.is-seller,.communications-history-message.is-seller) { background: #202d39 !important; }
html[data-app-theme="dark"] :where(.chat-manager-head,.chat-toolbar,.chat-list,.chat-list-item,.chat-workflow-bar,.chat-composer,.chat-template-popover,.chat-tags-menu,.chat-filter-modal,.chat-message-search,.chat-file-preview) {
  background: var(--dark-surface-1) !important; border-color: var(--dark-border-soft) !important; color: var(--dark-text) !important;
}
html[data-app-theme="dark"] .chat-list-item:hover,
html[data-app-theme="dark"] .chat-list-item.is-active { background: var(--dark-surface-3) !important; }
html[data-app-theme="dark"] :where(.review-toolbar,.review-row,.review-row-main,.review-details,.review-reply,.review-existing-answer,.review-template-menu,.review-filter-options,.review-media-modal) {
  background: var(--dark-surface-1) !important; border-color: var(--dark-border-soft) !important; color: var(--dark-text) !important;
}
html[data-app-theme="dark"] :where(.review-row:hover,.review-row.is-open .review-row-main) { background: var(--dark-surface-3) !important; }
html[data-app-theme="dark"] .response-templates-page {
  --rt-dark: var(--dark-text); --rt-muted: var(--dark-text-secondary); --rt-border: var(--dark-border-soft); --rt-soft: var(--dark-surface-2); --rt-soft-border: var(--dark-border);
  --rt-purple: var(--dark-wb); --rt-purple-soft: var(--dark-wb-soft);
}
html[data-app-theme="dark"] :where(.rt-template-row,.rt-editor-head,.rt-editor-message,.rt-filter-group,.rt-empty,.rt-custom-variable,.rt-token-editor) {
  background: var(--dark-surface-1) !important; border-color: var(--dark-border-soft) !important; color: var(--dark-text) !important;
}
html[data-app-theme="dark"] .communications-page--ai-assistant {
  --ai-panel: var(--dark-surface-1); --ai-line: var(--dark-border-soft); --ai-ink: var(--dark-text); --ai-muted: var(--dark-text-secondary);
  --ai-control: var(--dark-input); --ai-control-line: var(--dark-border); --ai-control-soft: var(--dark-surface-2); --ai-control-strong: var(--dark-surface-3);
  --ai-purple: var(--dark-wb); --ai-purple-soft: var(--dark-wb-soft); --ai-purple-strong: #e6a9ec;
}
html[data-app-theme="dark"] :where(.ai-assistant-header,.ai-settings-list,.ai-setting-row,.ai-choice-option,.ai-document,.ai-required-editor,.ai-schedule-editor,.ai-tag-editor,.ai-switch-card) {
  background: var(--dark-surface-1) !important; border-color: var(--dark-border-soft) !important; color: var(--dark-text) !important;
}

/* --------------------------------------------------------------------------
   Integrations / Knowledge / Profile / Settings / News / Finance
   -------------------------------------------------------------------------- */
html[data-app-theme="dark"] .integrations-modern-body { --im-border: var(--dark-border-soft); --im-muted: var(--dark-text-secondary); --im-purple: #dce3ea; }
html[data-app-theme="dark"] :where(.api-shell,.api-choice-card,.api-create-card,.api-columns-card,.api-rename-card,.api-success-card,.api-instruction,.api-security-note) {
  background: var(--dark-surface-1) !important; border-color: var(--dark-border-soft) !important; color: var(--dark-text) !important;
}
html[data-app-theme="dark"] :where(.api-status,.api-token-subtype) { border-color: var(--dark-border) !important; }
html[data-app-theme="dark"] :where(.knowledge-page .knowledge-search,.knowledge-directory a,.knowledge-chapter a,.knowledge-article__footer a) { background: var(--dark-surface-1) !important; border-color: var(--dark-border-soft) !important; color: var(--dark-text) !important; }
html[data-app-theme="dark"] :where(.knowledge-directory a:hover,.knowledge-chapter a:hover) { background: var(--dark-surface-3) !important; }
html[data-app-theme="dark"] .profile-page {
  --profile-accent: #cbd4dc; --profile-accent-soft: var(--dark-surface-3); --profile-accent-border: var(--dark-border); --profile-accent-ring: var(--dark-focus-ring);
}
html[data-app-theme="dark"] :where(.profile-store-card,.profile-actions-list article,.sessions-list article,.profile-invites-banner,.profile-meta-grid,.profile-checkbox-grid,.team-summary-switch) {
  background: var(--dark-surface-1) !important; border-color: var(--dark-border-soft) !important; color: var(--dark-text) !important;
}
html[data-app-theme="dark"] .header-profile-avatar,
html[data-app-theme="dark"] .profile-page .profile-avatar { background: var(--dark-surface-3) !important; color: var(--dark-text) !important; }
html[data-app-theme="dark"] :where(.settings-sidebar button,.theme-choice,.settings-switch,.settings-row) { border-color: var(--dark-border-soft) !important; color: var(--dark-text) !important; }
html[data-app-theme="dark"] .settings-sidebar button.is-active { background: var(--dark-surface-3) !important; color: #fff !important; }
html[data-app-theme="dark"] .theme-choice { background: var(--dark-surface-1) !important; }
html[data-app-theme="dark"] .theme-choice:has(input:checked) { background: var(--dark-surface-2) !important; border-color: var(--dark-border-strong) !important; box-shadow: 0 0 0 2px var(--dark-focus-ring) !important; }
html[data-app-theme="dark"] :where(.news-card,.news-item,.news-filter,.news-create-form,.finance-settings-card,.actual-finance-card) { background: var(--dark-surface-1) !important; border-color: var(--dark-border-soft) !important; color: var(--dark-text) !important; }

/* --------------------------------------------------------------------------
   Warehouse family
   -------------------------------------------------------------------------- */
html[data-app-theme="dark"] .warehouse-designer-page {
  --wh-bg: var(--dark-main); --wh-card: var(--dark-surface-1); --wh-soft: var(--dark-surface-2); --wh-soft-2: var(--dark-surface-3);
  --wh-text: var(--dark-text); --wh-muted: var(--dark-text-secondary); --wh-border: var(--dark-border-soft); --wh-border-strong: var(--dark-border);
  --wh-dark: #dce3ea; --wh-dark-hover: #f2f5f7; --wh-shadow: var(--dark-shadow-sm);
}
html[data-app-theme="dark"] :where(.wh-tool,.wh-product-card,.wh-product-row,.wh-placement-card,.wh-product-choice,.wh-selected-product,.wh-rack-settings,.wh-placement-settings,.wh-list-table,.wh-tree-table,.wh-cell) {
  background: var(--dark-surface-1) !important; border-color: var(--dark-border-soft) !important; color: var(--dark-text) !important;
}
/* Keep the warehouse drawing canvas usable while still dark. */
html[data-app-theme="dark"] .wh-canvas-viewport { background: #131a22 !important; border-color: var(--dark-border) !important; }
html[data-app-theme="dark"] .wh-grid { background-color: #171f28 !important; background-image: linear-gradient(#26313d 1px,transparent 1px),linear-gradient(90deg,#26313d 1px,transparent 1px) !important; border-color: #394553 !important; }
html[data-app-theme="dark"] .wh-zone-tag { background: rgba(27,35,45,.94) !important; border-color: var(--dark-border) !important; color: var(--dark-text) !important; }
html[data-app-theme="dark"] .wh-object { background: var(--dark-surface-2) !important; border-color: #687687 !important; color: #d3dae2 !important; }
html[data-app-theme="dark"] .fbo-planning-page {
  --fbo-bg: var(--dark-main); --fbo-card: var(--dark-surface-1); --fbo-soft: var(--dark-surface-2); --fbo-text: var(--dark-text); --fbo-muted: var(--dark-text-secondary);
  --fbo-border: var(--dark-border-soft); --fbo-border-strong: var(--dark-border); --fbo-primary: #dce3ea; --fbo-primary-soft: var(--dark-surface-3); --fbo-shadow: var(--dark-shadow-sm);
}
html[data-app-theme="dark"] :where(.fbo-select-popover,.fbo-multi-menu,.fbo-select-option,.fbo-filter-tree,.fbo-results-toolbar,.fbo-results-subtoolbar,.fbo-params-strip,.fbo-form-grid) {
  background: var(--dark-surface-1) !important; border-color: var(--dark-border-soft) !important; color: var(--dark-text) !important;
}
html[data-app-theme="dark"] .fbo-select-option:hover,
html[data-app-theme="dark"] .fbo-select-option.is-selected { background: var(--dark-surface-3) !important; }
html[data-app-theme="dark"] .fbo-supply-page { --fs-bg: var(--dark-main); --fs-card: var(--dark-surface-1); --fs-text: var(--dark-text); --fs-muted: var(--dark-text-secondary); --fs-border: var(--dark-border-soft); }
html[data-app-theme="dark"] :where(.fs-fields,.fs-toolbar,.fs-products-footer,.fs-history-tabs,.fs-remote-fields,.fs-document-row,.fs-mini-table) {
  background: var(--dark-surface-1) !important; border-color: var(--dark-border-soft) !important; color: var(--dark-text) !important;
}
html[data-app-theme="dark"] .warehouse-receiving-page { --wr-text: var(--dark-text); --wr-muted: var(--dark-text-secondary); --wr-border: var(--dark-border-soft); --wr-green-soft: var(--dark-success-soft); }
html[data-app-theme="dark"] :where(.wr-stepper,.wr-metrics,.wr-summary-grid,.wr-mode-option,.wr-field,.wr-dropzone,.wr-document-section,.wr-ai-progress,.wr-modal__card,.wr-picker-item,.wr-how-it-works) {
  background: var(--dark-surface-1) !important; border-color: var(--dark-border-soft) !important; color: var(--dark-text) !important;
}
html[data-app-theme="dark"] .warehouse-transfer-page { --wt-text: var(--dark-text); --wt-muted: var(--dark-text-secondary); --wt-border: var(--dark-border-soft); --wt-soft: var(--dark-surface-2); --wt-dark: #dce3ea; }
html[data-app-theme="dark"] :where(.wt-editor-heading,.wt-detail-heading,.wt-route,.wt-meta-grid,.wt-products-head,.wt-products-footer,.wt-editor-actions,.wt-picker-item,.wt-total-summary,.wt-selected-summary,.wt-result-note) {
  background: var(--dark-surface-1) !important; border-color: var(--dark-border-soft) !important; color: var(--dark-text) !important;
}
html[data-app-theme="dark"] :where(.warehouse-stock-filters,.warehouse-stock-table,.marketplace-warehouse-hero,.mpw-filter-list,.mpw-table,.mpw-hero,.mpw-metric,.mpw-group) {
  background: var(--dark-surface-1) !important; border-color: var(--dark-border-soft) !important; color: var(--dark-text) !important;
}

/* --------------------------------------------------------------------------
   Returns and semantic statuses
   -------------------------------------------------------------------------- */
html[data-app-theme="dark"] :where(.return-filter-panel,.return-rule-form,.return-row-details,.return-autoapproval-dialog,.return-autoapproval-dialog__body) {
  background: var(--dark-surface-2) !important; border-color: var(--dark-border) !important; color: var(--dark-text) !important;
}
html[data-app-theme="dark"] .return-row-main { background: var(--dark-surface-1) !important; }
html[data-app-theme="dark"] .return-row-main:hover { background: var(--dark-surface-3) !important; }
html[data-app-theme="dark"] .return-status--approved { background: var(--dark-success-soft) !important; color: #8ad9aa !important; }
html[data-app-theme="dark"] .return-status--rejected { background: var(--dark-danger-soft) !important; color: #f39a9f !important; }
html[data-app-theme="dark"] .return-status--clarification { background: var(--dark-warning-soft) !important; color: #e7c57d !important; }
html[data-app-theme="dark"] .return-status--waiting-ozon { background: var(--dark-ozon-soft) !important; color: #afc9ff !important; }
html[data-app-theme="dark"] .return-status--waiting-wildberries { background: var(--dark-wb-soft) !important; color: #e5a8eb !important; }
html[data-app-theme="dark"] .return-status--waiting-yandex { background: var(--dark-yandex-soft) !important; color: #ead58f !important; }
html[data-app-theme="dark"] .return-buyer--ozon i { background: var(--dark-ozon-soft) !important; color: var(--dark-ozon) !important; }
html[data-app-theme="dark"] .return-buyer--wildberries i { background: var(--dark-wb-soft) !important; color: var(--dark-wb) !important; }
html[data-app-theme="dark"] .return-buyer--yandex i { background: var(--dark-yandex-soft) !important; color: var(--dark-yandex) !important; }

/* Generic status families used outside Returns. */
html[data-app-theme="dark"] :where(.status-success,.is-success,.status-approved,.positive,.metric-positive) { color: var(--dark-success) !important; }
html[data-app-theme="dark"] :where(.status-error,.is-error,.status-rejected,.negative,.metric-negative) { color: var(--dark-danger) !important; }
html[data-app-theme="dark"] :where(.alert-warning,.warning,.status-warning) { background: var(--dark-warning-soft) !important; border-color: rgba(230,185,106,.28) !important; color: #e4c482 !important; }
html[data-app-theme="dark"] :where(.alert-error,.alert-danger,.error-banner) { background: var(--dark-danger-soft) !important; border-color: rgba(241,127,134,.28) !important; color: #f2a1a6 !important; }
html[data-app-theme="dark"] :where(.alert-success,.success-banner) { background: var(--dark-success-soft) !important; border-color: rgba(114,201,154,.28) !important; color: #91dbaf !important; }

/* --------------------------------------------------------------------------
   Modal/window system
   -------------------------------------------------------------------------- */
html[data-app-theme="dark"] :where(dialog,.modal-card,.profile-modal__card,.orders-dialog__card,.orders-history-dialog__card,.app-managed-window,.columns-modal-card,.fbo-columns-modal-card,.chart-settings-modal,.review-media-modal,.review-filter-modal,.review-columns-modal,.rt-variable-modal) {
  background: var(--dark-surface-1) !important;
  border-color: var(--dark-border-strong) !important;
  color: var(--dark-text) !important;
  box-shadow: var(--dark-shadow-modal) !important;
}
html[data-app-theme="dark"] :where(.app-managed-window>.app-window-titlebar,.modal-heading,.modal-header,.profile-modal__head,.orders-dialog__head,.review-media-modal__head,.rt-variable-modal__head) {
  background: var(--dark-surface-2) !important;
  border-color: var(--dark-border) !important;
  color: var(--dark-text) !important;
}
html[data-app-theme="dark"] :where(.modal-backdrop,.profile-modal,.review-filter-overlay,.review-media-overlay,.rt-modal-backdrop,.wt-modal-backdrop) { background: rgba(4,8,12,.66) !important; }
html[data-app-theme="dark"] .app-window-control { color: var(--dark-text-secondary) !important; }
html[data-app-theme="dark"] .app-window-control:hover { background: var(--dark-surface-3) !important; color: #fff !important; }
html[data-app-theme="dark"] .app-window-control--close:hover { background: #d95b63 !important; color: #fff !important; }

/* --------------------------------------------------------------------------
   Loading skeleton and scrollbars
   -------------------------------------------------------------------------- */
html[data-app-theme="dark"] :where(.page-loading-overlay,.page-loading-shell,.page-loading-stage,.page-loading-card,.page-loading-table,.page-loading-canvas) {
  background-color: var(--dark-main) !important;
  border-color: var(--dark-border-soft) !important;
  color: var(--dark-text) !important;
}
html[data-app-theme="dark"] :where(.page-loading-block,.page-loading-line,.page-loading-pill,.page-loading-cell,.skeleton,.skeleton-line) {
  background: linear-gradient(90deg,#1a222b 0%,#232e39 50%,#1a222b 100%) !important;
  background-size: 220% 100% !important;
}
html[data-app-theme="dark"] * { scrollbar-color: #4b5662 transparent; }
html[data-app-theme="dark"] ::-webkit-scrollbar { width: 10px; height: 10px; }
html[data-app-theme="dark"] ::-webkit-scrollbar-track { background: transparent; }
html[data-app-theme="dark"] ::-webkit-scrollbar-thumb { background: #46515d; border-radius: 999px; border: 2px solid var(--dark-surface-1); }
html[data-app-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: #596674; }

/* Preserve images/photos and explicit colour pickers. */
html[data-app-theme="dark"] :where(img,video,canvas,svg) { color-scheme: normal; }
html[data-app-theme="dark"] input[type="color"] { background: transparent !important; }

@media (prefers-reduced-motion: reduce) {
  html[data-app-theme="dark"] * { scroll-behavior: auto !important; }
}

/* V537 finishing layer — legacy pricing/promotion strips and selectors that
   still used explicit light marketplace colours. */
html[data-app-theme="dark"] .product-platform-tabs {
  background: var(--dark-surface-1) !important;
  border: 1px solid var(--dark-border-soft) !important;
  box-shadow: var(--dark-shadow-sm) !important;
}
html[data-app-theme="dark"] .product-platform-tab {
  background: transparent !important;
  border-color: transparent !important;
  color: var(--dark-text-secondary) !important;
}
html[data-app-theme="dark"] .product-platform-tab:hover { background: var(--dark-surface-2) !important; color: var(--dark-text) !important; }
html[data-app-theme="dark"] .product-platform-tab.active { background: var(--dark-surface-3) !important; color: var(--dark-text-strong) !important; }
html[data-app-theme="dark"] .product-platform-tab--ozon.active { color: #afc9ff !important; border-color: var(--dark-ozon-border) !important; }
html[data-app-theme="dark"] .product-platform-tab--wb.active { color: #e5a8eb !important; border-color: var(--dark-wb-border) !important; }
html[data-app-theme="dark"] .product-platform-tab--yandex.active { color: #ead58f !important; border-color: var(--dark-yandex-border) !important; }
html[data-app-theme="dark"] .pricing-search { background: var(--dark-input) !important; border-color: var(--dark-border) !important; }
html[data-app-theme="dark"] .pricing-app--wb .pricing-sidebar,
html[data-app-theme="dark"] .pricing-app--yandex .pricing-sidebar { background: var(--dark-surface-1) !important; }
html[data-app-theme="dark"] .mode-note { background: var(--dark-info-soft) !important; border-color: rgba(117,168,232,.26) !important; color: #a9c5e7 !important; }
html[data-app-theme="dark"] .mode-note strong { color: #bcd4ef !important; }
html[data-app-theme="dark"] .mode-note--wb { background: var(--dark-wb-soft) !important; border-color: var(--dark-wb-border) !important; color: #dfa9e5 !important; }
html[data-app-theme="dark"] .mode-note--wb strong { color: #efbdf3 !important; }
html[data-app-theme="dark"] .mode-note--yandex { background: var(--dark-yandex-soft) !important; border-color: var(--dark-yandex-border) !important; color: #ead58f !important; }
html[data-app-theme="dark"] .mode-note--yandex strong { color: #f1dd9c !important; }

/* Marketplace row markers stay visible on dark rows without repainting them. */
html[data-app-theme="dark"] :is(.orders-row--ozon,.product-row--ozon,.marketplace-row--ozon,[data-marketplace="ozon"]) { --row-mp-accent: var(--dark-ozon); --row-mp-soft: var(--dark-ozon-soft); }
html[data-app-theme="dark"] :is(.orders-row--wb,.orders-row--wildberries,.product-row--wb,.product-row--wildberries,.marketplace-row--wb,.marketplace-row--wildberries,[data-marketplace="wb"],[data-marketplace="wildberries"]) { --row-mp-accent: var(--dark-wb); --row-mp-soft: var(--dark-wb-soft); }
html[data-app-theme="dark"] :is(.orders-row--yandex,.product-row--yandex,.marketplace-row--yandex,[data-marketplace="yandex"],[data-marketplace="yandex_market"]) { --row-mp-accent: var(--dark-yandex); --row-mp-soft: var(--dark-yandex-soft); }

/* Orders uses page-scoped !important light backgrounds; match its specificity. */
html[data-app-theme="dark"] body.orders-modern-body .orders-metric-card {
  background: var(--dark-surface-1) !important;
  border-color: var(--dark-border-soft) !important;
  color: var(--dark-text) !important;
  box-shadow: var(--dark-shadow-sm) !important;
}
html[data-app-theme="dark"] body.orders-modern-body .orders-metric-card::after,
html[data-app-theme="dark"] body.orders-modern-body .orders-metric-card:nth-child(2)::after,
html[data-app-theme="dark"] body.orders-modern-body .orders-metric-card:nth-child(3)::after,
html[data-app-theme="dark"] body.orders-modern-body .orders-metric-card:nth-child(4)::after {
  background: var(--dark-surface-3) !important;
  box-shadow: inset 0 0 0 1px var(--dark-border-soft) !important;
}
html[data-app-theme="dark"] body.orders-modern-body .orders-table-wrap,
html[data-app-theme="dark"] body.orders-modern-body .orders-table {
  background: var(--dark-surface-1) !important;
  border-color: var(--dark-border-soft) !important;
}
html[data-app-theme="dark"] body.orders-modern-body .orders-table th {
  background: var(--dark-surface-2) !important;
  color: #aeb8c3 !important;
  border-color: var(--dark-border-soft) !important;
  box-shadow: 0 1px 0 var(--dark-border-soft) !important;
}
html[data-app-theme="dark"] body.orders-modern-body .orders-table td {
  background: var(--dark-surface-1) !important;
  color: #cfd6de !important;
  border-color: var(--dark-border-soft) !important;
}
html[data-app-theme="dark"] body.orders-modern-body .orders-table tbody tr:hover td {
  background: var(--dark-surface-3) !important;
}

/* Universal high-specificity safety net. Legacy modules contain many
   page-scoped !important light declarations; these rules guarantee that
   authenticated application pages cannot fall back to white surfaces. */
html[data-app-theme="dark"] body.app-modern-shell :is(
  [class$="-card"]:not([class*="status"]):not([class*="badge"]):not(button):not(a),
  [class*="-card "]:not([class*="status"]):not([class*="badge"]):not(button):not(a),
  [class$="-panel"]:not([class*="status"]):not(button):not(a),
  [class*="-panel "]:not([class*="status"]):not(button):not(a)
) {
  background-color: var(--dark-surface-1) !important;
  border-color: var(--dark-border-soft) !important;
  color: var(--dark-text) !important;
}
html[data-app-theme="dark"] body.app-modern-shell input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),
html[data-app-theme="dark"] body.app-modern-shell select,
html[data-app-theme="dark"] body.app-modern-shell textarea,
html[data-app-theme="dark"] body.app-modern-shell [contenteditable="true"] {
  background-color: var(--dark-input) !important;
  border-color: var(--dark-border) !important;
  color: var(--dark-text) !important;
  box-shadow: none !important;
}
html[data-app-theme="dark"] body.app-modern-shell table,
html[data-app-theme="dark"] body.app-modern-shell table tbody,
html[data-app-theme="dark"] body.app-modern-shell table tbody tr {
  background-color: var(--dark-surface-1) !important;
  border-color: var(--dark-border-soft) !important;
  color: var(--dark-text) !important;
}
html[data-app-theme="dark"] body.app-modern-shell table thead,
html[data-app-theme="dark"] body.app-modern-shell table thead tr,
html[data-app-theme="dark"] body.app-modern-shell table thead th {
  background-color: var(--dark-surface-2) !important;
  border-color: var(--dark-border-soft) !important;
  color: #aeb8c3 !important;
}
html[data-app-theme="dark"] body.app-modern-shell table tbody td {
  background-color: var(--dark-surface-1) !important;
  border-color: var(--dark-border-soft) !important;
  color: #cfd6de !important;
}
html[data-app-theme="dark"] body.app-modern-shell table tbody tr:hover td { background-color: var(--dark-surface-3) !important; }

/* High-specificity exceptions for modules that ship explicit white !important controls. */
html[data-app-theme="dark"] body.integrations-modern-body :is(.api-settings-button,.api-icon-action,.api-table-panel,.api-token-table) {
  background: var(--dark-surface-1) !important; border-color: var(--dark-border-soft) !important; color: var(--dark-text) !important;
}
html[data-app-theme="dark"] body.integrations-modern-body .api-icon-action:hover { background: var(--dark-surface-3) !important; }
html[data-app-theme="dark"] body.pricing-section-body :is(.pricing-topline,.pricing-search,.pricing-table-wrap,.pricing-table,.column-settings-button) {
  background: var(--dark-surface-1) !important; border-color: var(--dark-border-soft) !important; color: var(--dark-text) !important;
}
html[data-app-theme="dark"] body.pricing-section-body :is(.price-pill,.price-cell-input,.money-cell,.cost-editor-button) {
  background: var(--dark-input) !important; border-color: var(--dark-border) !important; color: var(--dark-text) !important;
}
html[data-app-theme="dark"] body.promotion-page :is(
  .promotion-search,.promotion-per-page,.promotion-detail-tabs,.promotion-products-topline,.products-pricing-search,
  .promotion-filter-row,.promotion-table-card,.promotion-table-wrap,.promotion-simple-table-wrap,.promotion-products-workspace,
  .promotion-side-filters,.promotion-filter-box,.promotion-filter-box__body,.promotion-toolbar-search,.promotion-wb-actions-toolbar
) {
  background: var(--dark-surface-1) !important; border-color: var(--dark-border-soft) !important; color: var(--dark-text) !important;
}
html[data-app-theme="dark"] body.promotion-page :is(.promotion-section-tab.active,.promotion-status-tab.active,.promotion-yandex-view-switch span.active) {
  background: var(--dark-surface-3) !important; color: var(--dark-text-strong) !important; border-color: var(--dark-border) !important;
}
html[data-app-theme="dark"] body.response-templates-page :is(.rt-variable-chip,.rt-add-variable) {
  background: var(--dark-surface-2) !important; border-color: var(--dark-border) !important; color: var(--dark-text) !important;
}
html[data-app-theme="dark"] body.fbo-planning-page :is(.fbo-multi-group,.fbo-market-outline) {
  background: var(--dark-surface-1) !important; border-color: var(--dark-border-soft) !important; color: var(--dark-text) !important;
}
html[data-app-theme="dark"] body.product-card-page :is(.pc-multi-select__search,.pc-characteristic .pc-multi-select__search,.pc-field .pc-multi-select__search) {
  background: var(--dark-input) !important; border-color: var(--dark-border) !important; color: var(--dark-text) !important;
}
html[data-app-theme="dark"] body.warehouse-designer-page :is(.button-secondary,.button-danger,.wh-placement-head) {
  background: var(--dark-surface-2) !important; border-color: var(--dark-border) !important; color: var(--dark-text) !important;
}

/* ========================================================================== 
   V538 — production dark-theme correction layer
   Goal: one visual language across every section, no accidental light islands,
   uniform top navigation, readable tables and predictable marketplace accents.
   This layer intentionally lives last in the cascade.
   ========================================================================== */
html[data-app-theme="dark"] {
  --dark-page: #0f151c;
  --dark-main: #111820;
  --dark-nav: #121920;
  --dark-surface-1: #17212a;
  --dark-surface-2: #1c2732;
  --dark-surface-3: #24313e;
  --dark-surface-4: #2b3a49;
  --dark-input: #141d26;
  --dark-disabled: #1a232c;
  --dark-border-soft: #283541;
  --dark-border: #344353;
  --dark-border-strong: #435467;
  --dark-focus: #6f8297;
  --dark-focus-ring: rgba(111, 130, 151, .20);
  --dark-text: #e6edf3;
  --dark-text-strong: #f2f6fa;
  --dark-text-secondary: #b3bec9;
  --dark-text-muted: #8b98a6;
  --dark-text-disabled: #697684;
  --dark-ozon: #7da8ff;
  --dark-ozon-soft: rgba(125, 168, 255, .13);
  --dark-ozon-border: rgba(125, 168, 255, .30);
  --dark-wb: #d98ae1;
  --dark-wb-soft: rgba(217, 138, 225, .13);
  --dark-wb-border: rgba(217, 138, 225, .30);
  --dark-yandex: #e4c96f;
  --dark-yandex-soft: rgba(228, 201, 111, .13);
  --dark-yandex-border: rgba(228, 201, 111, .30);
  --app-bg: var(--dark-main);
  --app-surface: var(--dark-surface-1);
  --app-surface-2: var(--dark-surface-2);
  --app-surface-3: var(--dark-surface-3);
  --app-border: var(--dark-border-soft);
  --app-border-strong: var(--dark-border);
  --app-text: var(--dark-text);
  --app-muted: var(--dark-text-secondary);
  --ui-bg: var(--dark-main);
  --ui-surface: var(--dark-surface-1);
  --ui-surface-muted: var(--dark-surface-2);
  --ui-text: var(--dark-text);
  --ui-muted: var(--dark-text-secondary);
  --ui-line: var(--dark-border-soft);
  --ui-line-strong: var(--dark-border);
  --ui-card-bg: var(--dark-surface-1);
  --ui-card-muted: var(--dark-surface-2);
  --ui-hover: var(--dark-surface-3);
  --ui-border: var(--dark-border-soft);
  --ui-border-strong: var(--dark-border);
  --bg: var(--dark-main);
  --surface: var(--dark-surface-1);
  --surface-soft: var(--dark-surface-2);
  --ink: var(--dark-text);
  --muted: var(--dark-text-secondary);
  --line: var(--dark-border-soft);
  --line-dark: var(--dark-border);
}

html[data-app-theme="dark"] body.app-modern-shell,
html[data-app-theme="dark"] body.app-modern-shell .site-shell,
html[data-app-theme="dark"] body.app-modern-shell .page-container {
  background: var(--dark-main) !important;
  color: var(--dark-text) !important;
}
html[data-app-theme="dark"] body.app-modern-shell .page-container :is(h1,h2,h3,h4,h5,h6) { color: var(--dark-text-strong) !important; }
html[data-app-theme="dark"] body.app-modern-shell .page-container :is(.muted,.subtitle,.hint,.help-text,.field-hint,.cell-subline) { color: var(--dark-text-secondary) !important; }

/* Header: every inactive top-level section has the same colour. */
html[data-app-theme="dark"] body.app-modern-shell .app-header,
html[data-app-theme="dark"] body.app-modern-shell .workspace-utility-bar {
  background: var(--dark-nav) !important;
  border-color: var(--dark-border-soft) !important;
  box-shadow: none !important;
}
html[data-app-theme="dark"] body.app-modern-shell .brand,
html[data-app-theme="dark"] body.app-modern-shell .brand:visited,
html[data-app-theme="dark"] body.app-modern-shell .brand-name { color: var(--dark-text-strong) !important; }
html[data-app-theme="dark"] body.app-modern-shell .main-nav .main-nav__link,
html[data-app-theme="dark"] body.app-modern-shell .main-nav .main-nav__link:visited,
html[data-app-theme="dark"] body.app-modern-shell .main-nav-menu > .main-nav__link,
html[data-app-theme="dark"] body.app-modern-shell .main-nav-menu > .main-nav__link:visited {
  color: #b4bfca !important;
  background: transparent !important;
  opacity: 1 !important;
  text-shadow: none !important;
}
html[data-app-theme="dark"] body.app-modern-shell .main-nav .main-nav__link .modern-nav-icon,
html[data-app-theme="dark"] body.app-modern-shell .main-nav .main-nav__link .app-dropdown-chevron,
html[data-app-theme="dark"] body.app-modern-shell .main-nav-menu > .main-nav__link .modern-nav-icon,
html[data-app-theme="dark"] body.app-modern-shell .main-nav-menu > .main-nav__link .app-dropdown-chevron {
  color: #8f9ca9 !important;
  opacity: 1 !important;
}
html[data-app-theme="dark"] body.app-modern-shell .main-nav .main-nav__link:hover,
html[data-app-theme="dark"] body.app-modern-shell .main-nav-menu > .main-nav__link:hover {
  color: #e8edf2 !important;
  background: var(--dark-surface-2) !important;
}
html[data-app-theme="dark"] body.app-modern-shell .main-nav .main-nav__link:hover .modern-nav-icon,
html[data-app-theme="dark"] body.app-modern-shell .main-nav-menu > .main-nav__link:hover .modern-nav-icon,
html[data-app-theme="dark"] body.app-modern-shell .main-nav .main-nav__link:hover .app-dropdown-chevron,
html[data-app-theme="dark"] body.app-modern-shell .main-nav-menu > .main-nav__link:hover .app-dropdown-chevron { color: #c8d1da !important; }
html[data-app-theme="dark"] body.app-modern-shell .main-nav .main-nav__link.active,
html[data-app-theme="dark"] body.app-modern-shell .main-nav-menu.active > .main-nav__link,
html[data-app-theme="dark"] body.app-modern-shell .main-nav-menu > .main-nav__link.active {
  color: var(--dark-text-strong) !important;
  background: transparent !important;
  box-shadow: none !important;
  opacity: 1 !important;
}
html[data-app-theme="dark"] body.app-modern-shell .main-nav .main-nav__link.active .modern-nav-icon,
html[data-app-theme="dark"] body.app-modern-shell .main-nav-menu.active > .main-nav__link .modern-nav-icon,
html[data-app-theme="dark"] body.app-modern-shell .main-nav-menu > .main-nav__link.active .modern-nav-icon,
html[data-app-theme="dark"] body.app-modern-shell .main-nav .main-nav__link.active .app-dropdown-chevron,
html[data-app-theme="dark"] body.app-modern-shell .main-nav-menu.active > .main-nav__link .app-dropdown-chevron { color: #dce4eb !important; }
html[data-app-theme="dark"] body.app-modern-shell .main-nav .main-nav__link.active::after,
html[data-app-theme="dark"] body.app-modern-shell .main-nav-menu.active > .main-nav__link::after,
html[data-app-theme="dark"] body.app-modern-shell .main-nav-menu > .main-nav__link.active::after {
  background: #d7dfe7 !important;
  opacity: .92 !important;
}

html[data-app-theme="dark"] body.app-modern-shell :is(.section-search-toggle,.header-store-picker > summary,.header-profile-button,.header-auth-button) {
  background: var(--dark-surface-2) !important;
  color: var(--dark-text) !important;
  border-color: var(--dark-border) !important;
  box-shadow: none !important;
}
html[data-app-theme="dark"] body.app-modern-shell :is(.section-search-toggle,.header-store-picker > summary,.header-profile-button,.header-auth-button):hover {
  background: var(--dark-surface-3) !important;
  border-color: var(--dark-border-strong) !important;
}
html[data-app-theme="dark"] body.app-modern-shell :is(.section-search-toggle svg,.header-store-picker > summary svg,.header-profile-button svg) { color: var(--dark-text-secondary) !important; }
html[data-app-theme="dark"] body.app-modern-shell .header-profile-avatar { background: var(--dark-surface-3) !important; color: var(--dark-text-strong) !important; }
html[data-app-theme="dark"] body.app-modern-shell .header-profile-button__text strong { color: var(--dark-text-strong) !important; }
html[data-app-theme="dark"] body.app-modern-shell .header-profile-button__text small { color: var(--dark-text-muted) !important; }

html[data-app-theme="dark"] body.app-modern-shell :is(.main-nav-submenu,.header-profile-popover,.header-store-picker__menu,.section-search-popover,.fs-select__menu,.app-searchable-select__menu,.app-enhanced-multi__menu,.dropdown-menu,[role="listbox"]) {
  background: var(--dark-surface-2) !important;
  border-color: var(--dark-border) !important;
  box-shadow: 0 18px 46px rgba(0,0,0,.34) !important;
}
html[data-app-theme="dark"] body.app-modern-shell .main-nav-submenu :is(a,a:visited,strong) { color: #e2e8ee !important; }
html[data-app-theme="dark"] body.app-modern-shell .main-nav-submenu small { color: #96a3b0 !important; }
html[data-app-theme="dark"] body.app-modern-shell .main-nav-submenu a:hover { background: var(--dark-surface-3) !important; }

/* Controls: remove glaring white primary actions. */
html[data-app-theme="dark"] body.app-modern-shell :is(.button-primary,.button-dark,.action-primary,.btn-primary) {
  background: #2d3b49 !important;
  border-color: #405264 !important;
  color: #eef3f7 !important;
  box-shadow: none !important;
}
html[data-app-theme="dark"] body.app-modern-shell :is(.button-primary,.button-dark,.action-primary,.btn-primary):hover {
  background: #354656 !important;
  border-color: #526579 !important;
  color: #fff !important;
}
html[data-app-theme="dark"] body.app-modern-shell :is(.button-light,.button-secondary,.file-button,.column-settings-button,.page-settings-button,.app-filter-toggle,.promotion-toolbar-button) {
  background: var(--dark-surface-2) !important;
  border-color: var(--dark-border) !important;
  color: var(--dark-text) !important;
  box-shadow: none !important;
}
html[data-app-theme="dark"] body.app-modern-shell :is(.button-light,.button-secondary,.file-button,.column-settings-button,.page-settings-button,.app-filter-toggle,.promotion-toolbar-button):hover {
  background: var(--dark-surface-3) !important;
  border-color: var(--dark-border-strong) !important;
}
html[data-app-theme="dark"] body.app-modern-shell input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),
html[data-app-theme="dark"] body.app-modern-shell select,
html[data-app-theme="dark"] body.app-modern-shell textarea,
html[data-app-theme="dark"] body.app-modern-shell [contenteditable="true"] {
  background: var(--dark-input) !important;
  color: var(--dark-text) !important;
  border-color: var(--dark-border) !important;
  box-shadow: none !important;
}
html[data-app-theme="dark"] body.app-modern-shell input::placeholder,
html[data-app-theme="dark"] body.app-modern-shell textarea::placeholder { color: #7f8c99 !important; opacity: 1 !important; }
html[data-app-theme="dark"] body.app-modern-shell input:focus,
html[data-app-theme="dark"] body.app-modern-shell select:focus,
html[data-app-theme="dark"] body.app-modern-shell textarea:focus {
  border-color: var(--dark-focus) !important;
  box-shadow: 0 0 0 3px var(--dark-focus-ring) !important;
}

/* Tables, including sticky identity columns. */
html[data-app-theme="dark"] body.app-modern-shell .page-container table,
html[data-app-theme="dark"] body.app-modern-shell .page-container table tbody,
html[data-app-theme="dark"] body.app-modern-shell .page-container table tbody tr,
html[data-app-theme="dark"] body.app-modern-shell .page-container table tbody td {
  background: var(--dark-surface-1) !important;
  border-color: var(--dark-border-soft) !important;
  color: #d5dde5 !important;
}
html[data-app-theme="dark"] body.app-modern-shell .page-container table thead,
html[data-app-theme="dark"] body.app-modern-shell .page-container table thead tr,
html[data-app-theme="dark"] body.app-modern-shell .page-container table thead th {
  background: var(--dark-surface-2) !important;
  border-color: var(--dark-border-soft) !important;
  color: #b5c0cb !important;
}
html[data-app-theme="dark"] body.app-modern-shell .page-container table tbody tr:hover td { background: var(--dark-surface-3) !important; }
html[data-app-theme="dark"] body.app-modern-shell .page-container table tbody td :is(strong,b) { color: #e9eef3 !important; }
html[data-app-theme="dark"] body.app-modern-shell .page-container table tbody td :is(small,.muted,.cell-subline) { color: #93a0ad !important; }
html[data-app-theme="dark"] body.app-modern-shell .page-container table tbody td a:not(.button):not(.btn),
html[data-app-theme="dark"] body.app-modern-shell .page-container table tbody td a:not(.button):not(.btn):visited { color: #d8e0e7 !important; }
html[data-app-theme="dark"] body.app-modern-shell .page-container table.app-table .app-sticky-col,
html[data-app-theme="dark"] body.app-modern-shell .page-container .promotion-page table.app-table .app-sticky-col,
html[data-app-theme="dark"] body.app-modern-shell .page-container .pricing-page table.app-table .app-sticky-col {
  background: var(--dark-surface-1) !important;
  border-color: var(--dark-border-soft) !important;
  box-shadow: 1px 0 0 var(--dark-border-soft), 8px 0 16px rgba(0,0,0,.12) !important;
}
html[data-app-theme="dark"] body.app-modern-shell .page-container table.app-table thead .app-sticky-col,
html[data-app-theme="dark"] body.app-modern-shell .page-container .promotion-page table.app-table thead .app-sticky-col,
html[data-app-theme="dark"] body.app-modern-shell .page-container .pricing-page table.app-table thead .app-sticky-col { background: var(--dark-surface-2) !important; }
html[data-app-theme="dark"] body.app-modern-shell .page-container table.app-table tbody tr:hover .app-sticky-col,
html[data-app-theme="dark"] body.app-modern-shell .page-container .promotion-page table.app-table tbody tr:hover .app-sticky-col { background: var(--dark-surface-3) !important; }
html[data-app-theme="dark"] body.app-modern-shell .page-container table.app-table tbody tr.price-row--changed .app-sticky-col { background: #1b2b39 !important; }
html[data-app-theme="dark"] body.app-modern-shell .page-container table.app-table tbody tr.is-loss .app-sticky-col { background: #2b2025 !important; }

/* Promotion detail: legacy CSS contained explicit white sticky cells and dark copy. */
html[data-app-theme="dark"] body.promotion-page .promotion-products-workspace {
  background: var(--dark-surface-1) !important;
  border-color: var(--dark-border-soft) !important;
  box-shadow: 0 10px 28px rgba(0,0,0,.16) !important;
}
html[data-app-theme="dark"] body.promotion-page :is(.promotion-side-filters,.promotion-side-filters form,.promotion-filter-box,.promotion-filter-box__body,.promotion-table-card,.promotion-products-topline,.promotion-table-wrap,.promotion-products-footer) {
  background: var(--dark-surface-1) !important;
  border-color: var(--dark-border-soft) !important;
  color: var(--dark-text) !important;
}
html[data-app-theme="dark"] body.promotion-page .promotion-side-filters h2 { color: var(--dark-text-strong) !important; }
html[data-app-theme="dark"] body.promotion-page .promotion-filter-box__head {
  background: var(--dark-surface-2) !important;
  color: #e5ebf0 !important;
  border-color: var(--dark-border-soft) !important;
}
html[data-app-theme="dark"] body.promotion-page .promotion-filter-box__head:hover { background: var(--dark-surface-3) !important; }
html[data-app-theme="dark"] body.promotion-page :is(.promotion-check-row,.promotion-radio-row) { color: #aeb9c4 !important; }
html[data-app-theme="dark"] body.promotion-page :is(.promotion-check-row,.promotion-radio-row):hover { color: #e1e7ed !important; }
html[data-app-theme="dark"] body.promotion-page .promotion-products-topline .products-pricing-search,
html[data-app-theme="dark"] body.promotion-page .promotion-products-topline .products-pricing-search input {
  background: var(--dark-input) !important;
  border-color: var(--dark-border) !important;
  color: var(--dark-text) !important;
}
html[data-app-theme="dark"] body.promotion-page .promotion-products-topline .products-pricing-search svg { color: #8794a2 !important; stroke: currentColor !important; }
html[data-app-theme="dark"] body.promotion-page .promotion-products-topline .table-count { color: var(--dark-text-muted) !important; }
html[data-app-theme="dark"] body.promotion-page .promotion-products-topline .table-count strong { color: var(--dark-text) !important; }
html[data-app-theme="dark"] body.promotion-page .promotion-products-table--ozon,
html[data-app-theme="dark"] body.promotion-page .promotion-products-table--ozon tbody,
html[data-app-theme="dark"] body.promotion-page .promotion-products-table--ozon tr,
html[data-app-theme="dark"] body.promotion-page .promotion-products-table--ozon td {
  background: var(--dark-surface-1) !important;
  color: #d5dde5 !important;
  border-color: var(--dark-border-soft) !important;
}
html[data-app-theme="dark"] body.promotion-page .promotion-products-table--ozon th {
  background: var(--dark-surface-2) !important;
  color: #b5c0cb !important;
  border-color: var(--dark-border-soft) !important;
}
html[data-app-theme="dark"] body.promotion-page .promotion-products-table--ozon :is(.promotion-article-cell strong,.promotion-name-cell strong) { color: #e9eef3 !important; }
html[data-app-theme="dark"] body.promotion-page .promotion-products-table--ozon :is(.promotion-cell--price,.promotion-cell--compact) { color: #dfe6ed !important; }
html[data-app-theme="dark"] body.promotion-page .promotion-products-table--ozon td small,
html[data-app-theme="dark"] body.promotion-page .promotion-products-table--ozon th small { color: #93a0ad !important; }
html[data-app-theme="dark"] body.promotion-page .promotion-products-table.app-table .app-sticky-col,
html[data-app-theme="dark"] body.promotion-page .promotion-simple-table.app-table .app-sticky-col {
  background: var(--dark-surface-1) !important;
  border-color: var(--dark-border-soft) !important;
  box-shadow: 1px 0 0 var(--dark-border-soft), 8px 0 14px rgba(0,0,0,.12) !important;
}
html[data-app-theme="dark"] body.promotion-page .promotion-products-table.app-table thead .app-sticky-col,
html[data-app-theme="dark"] body.promotion-page .promotion-simple-table.app-table thead .app-sticky-col { background: var(--dark-surface-2) !important; }
html[data-app-theme="dark"] body.promotion-page .promotion-products-table.app-table tbody tr:hover .app-sticky-col,
html[data-app-theme="dark"] body.promotion-page .promotion-simple-table.app-table tbody tr:hover .app-sticky-col { background: var(--dark-surface-3) !important; }
html[data-app-theme="dark"] body.promotion-page .promotion-product-photo {
  background: #eef1f4 !important;
  border: 1px solid rgba(255,255,255,.08) !important;
}
html[data-app-theme="dark"] body.promotion-page .promotion-add-product-button {
  background: var(--dark-ozon-soft) !important;
  border-color: var(--dark-ozon-border) !important;
  color: #bed1ff !important;
}
html[data-app-theme="dark"] body.promotion-page--wildberries .promotion-add-product-button {
  background: var(--dark-wb-soft) !important;
  border-color: var(--dark-wb-border) !important;
  color: #ecb5f0 !important;
}
html[data-app-theme="dark"] body.promotion-page--yandex .promotion-add-product-button {
  background: var(--dark-yandex-soft) !important;
  border-color: var(--dark-yandex-border) !important;
  color: #eadb9d !important;
}

/* Dashboard / analytics surfaces. */
html[data-app-theme="dark"] body.dashboard-page :is(.metric-card,.dashboard-panel,.dashboard-status,.dashboard-chart-card,.dashboard-news-card,.dashboard-activity-card) {
  background: var(--dark-surface-1) !important;
  border-color: var(--dark-border-soft) !important;
  color: var(--dark-text) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,.015), 0 8px 24px rgba(0,0,0,.10) !important;
}
html[data-app-theme="dark"] body.dashboard-page :is(.metric-card__main-value,.orders-card-primary strong,.stock-values strong,.dashboard-panel__eyebrow,.dashboard-news-item h3,.dashboard-activity-item strong) { color: var(--dark-text-strong) !important; }
html[data-app-theme="dark"] body.dashboard-page :is(.metric-card__note,.orders-card-primary span,.stock-values span,.orders-card-money,.dashboard-news-item p,.dashboard-news-item time,.dashboard-activity-item time) { color: var(--dark-text-secondary) !important; }
html[data-app-theme="dark"] body.dashboard-page :is(.period-select,.dashboard-period-select,.dashboard-chart-settings,.dashboard-settings-button) {
  background: var(--dark-surface-2) !important;
  color: var(--dark-text) !important;
  border-color: var(--dark-border) !important;
}
html[data-app-theme="dark"] body.dashboard-page :is(.metric-card__icon,.info-dot) {
  background: var(--dark-surface-2) !important;
  color: #aab6c2 !important;
  border-color: var(--dark-border) !important;
}

/* Marketplace selectors: accent is semantic, never a bright slab. */
html[data-app-theme="dark"] body.app-modern-shell .product-platform-tabs {
  background: var(--dark-surface-1) !important;
  border-color: var(--dark-border-soft) !important;
  box-shadow: none !important;
}
html[data-app-theme="dark"] body.app-modern-shell .product-platform-tab {
  background: transparent !important;
  color: #a7b3bf !important;
  border-color: transparent !important;
}
html[data-app-theme="dark"] body.app-modern-shell .product-platform-tab:hover { background: var(--dark-surface-2) !important; color: #e0e6ec !important; }
html[data-app-theme="dark"] body.app-modern-shell .product-platform-tab--ozon.active { background: var(--dark-ozon-soft) !important; color: #b9ceff !important; border-color: var(--dark-ozon-border) !important; }
html[data-app-theme="dark"] body.app-modern-shell .product-platform-tab--wb.active { background: var(--dark-wb-soft) !important; color: #ebb3ef !important; border-color: var(--dark-wb-border) !important; }
html[data-app-theme="dark"] body.app-modern-shell .product-platform-tab--yandex.active { background: var(--dark-yandex-soft) !important; color: #e9d999 !important; border-color: var(--dark-yandex-border) !important; }

html[data-app-theme="dark"] body.app-modern-shell :is(.status-approved,.return-status--approved,.badge-success) { background: rgba(91,190,132,.13) !important; color: #87d8a8 !important; }
html[data-app-theme="dark"] body.app-modern-shell :is(.status-rejected,.return-status--rejected,.badge-danger) { background: rgba(232,112,121,.13) !important; color: #f09aa1 !important; }
html[data-app-theme="dark"] body.app-modern-shell input[type="checkbox"],
html[data-app-theme="dark"] body.app-modern-shell input[type="radio"] { accent-color: #8091a3; }
html[data-app-theme="dark"] body.app-modern-shell :is(.marketplace-ozon,.promotion-page--ozon,[data-marketplace="ozon"]) input[type="checkbox"],
html[data-app-theme="dark"] body.app-modern-shell :is(.marketplace-ozon,.promotion-page--ozon,[data-marketplace="ozon"]) input[type="radio"] { accent-color: var(--dark-ozon); }
html[data-app-theme="dark"] body.app-modern-shell :is(.marketplace-wb,.marketplace-wildberries,.promotion-page--wildberries,[data-marketplace="wb"],[data-marketplace="wildberries"]) input[type="checkbox"],
html[data-app-theme="dark"] body.app-modern-shell :is(.marketplace-wb,.marketplace-wildberries,.promotion-page--wildberries,[data-marketplace="wb"],[data-marketplace="wildberries"]) input[type="radio"] { accent-color: var(--dark-wb); }
html[data-app-theme="dark"] body.app-modern-shell :is(.marketplace-yandex,.promotion-page--yandex,[data-marketplace="yandex"],[data-marketplace="yandex_market"]) input[type="checkbox"],
html[data-app-theme="dark"] body.app-modern-shell :is(.marketplace-yandex,.promotion-page--yandex,[data-marketplace="yandex"],[data-marketplace="yandex_market"]) input[type="radio"] { accent-color: var(--dark-yandex); }

/* Additional legacy light islands common across sections. */
html[data-app-theme="dark"] body.app-modern-shell :is(.pagination-modern a,.pagination-modern span,.orders-pagination a,.orders-pagination button,.news-pagination a,.news-pagination span,.page-number) {
  background: var(--dark-surface-2) !important;
  border-color: var(--dark-border) !important;
  color: var(--dark-text-secondary) !important;
}
html[data-app-theme="dark"] body.app-modern-shell :is(.pagination-modern a:hover,.orders-pagination a:hover,.orders-pagination button:hover,.news-pagination a:hover,.page-number:hover) {
  background: var(--dark-surface-3) !important;
  color: var(--dark-text) !important;
}
html[data-app-theme="dark"] body.app-modern-shell :is(.pagination-modern .active,.orders-pagination .active,.news-pagination .active,.page-number.active) {
  background: #304052 !important;
  border-color: #50657a !important;
  color: #f1f5f8 !important;
}
html[data-app-theme="dark"] body.app-modern-shell :is(.columns-modal-card,.column-settings-actions,.products-simple-modal__card,.product-export-modal__card,.export-category-panel,.export-category-card,.export-subcategory-option,.app-filter-drawer,.app-empty-state) {
  background: var(--dark-surface-1) !important;
  border-color: var(--dark-border-soft) !important;
  color: var(--dark-text) !important;
}
html[data-app-theme="dark"] body.app-modern-shell :is(.period-select-trigger,.period-select-menu,.period-select-option) {
  background: var(--dark-surface-2) !important;
  border-color: var(--dark-border) !important;
  color: var(--dark-text-secondary) !important;
}
html[data-app-theme="dark"] body.app-modern-shell .period-select-option:hover,
html[data-app-theme="dark"] body.app-modern-shell .period-select-option.is-active { background: var(--dark-surface-3) !important; color: var(--dark-text) !important; }


/* ========================================================================== 
   V539 · Products dark theme polish — first section-specific refinement.
   ========================================================================== */
html[data-app-theme="dark"] body.products-modern-body {
  --products-v539-page:#10161d;
  --products-v539-panel:#161f28;
  --products-v539-panel-2:#1b2631;
  --products-v539-panel-3:#22303c;
  --products-v539-line:#2a3744;
  --products-v539-line-strong:#3b4a59;
  --products-v539-text:#e6ebf0;
  --products-v539-muted:#9ba8b5;
  background:var(--products-v539-page)!important;
}
html[data-app-theme="dark"] body.products-modern-body .products-modern-heading{
  background:linear-gradient(180deg,#17212b 0%,#151e27 100%)!important;
  border:1px solid var(--products-v539-line)!important;
  border-radius:18px!important;
  box-shadow:0 10px 30px rgba(0,0,0,.16)!important;
}
html[data-app-theme="dark"] body.products-modern-body .products-modern-heading h1{color:#f1f4f7!important;text-shadow:none!important}
html[data-app-theme="dark"] body.products-modern-body .products-modern-heading p{color:#a6b2be!important}
html[data-app-theme="dark"] body.products-modern-body .products-modern-tabs-row{
  background:transparent!important;border:0!important;padding-inline:0!important;
}
html[data-app-theme="dark"] body.products-modern-body .products-modern-market-tabs,
html[data-app-theme="dark"] body.products-modern-body .products-modern-state-tabs{
  background:#151e27!important;border:1px solid var(--products-v539-line)!important;box-shadow:none!important;
}
html[data-app-theme="dark"] body.products-modern-body .products-modern-market-tab,
html[data-app-theme="dark"] body.products-modern-body .products-modern-state-tabs a{
  background:transparent!important;border-color:transparent!important;color:#9eabb7!important;box-shadow:none!important;
}
html[data-app-theme="dark"] body.products-modern-body .products-modern-market-tab:hover,
html[data-app-theme="dark"] body.products-modern-body .products-modern-state-tabs a:hover{
  background:#1d2934!important;color:#e7edf2!important;
}
html[data-app-theme="dark"] body.products-modern-body .products-modern-market-tab.is-active{
  background:#223248!important;border-color:#405d7d!important;color:#edf4ff!important;
}
html[data-app-theme="dark"] body.products-modern-body .products-modern-market-tab--wb.is-active{
  background:rgba(214,130,223,.12)!important;border-color:rgba(214,130,223,.35)!important;color:#edc1f1!important;
}
html[data-app-theme="dark"] body.products-modern-body .products-modern-market-tab--yandex.is-active{
  background:rgba(235,203,104,.11)!important;border-color:rgba(235,203,104,.34)!important;color:#f0dfa7!important;
}
html[data-app-theme="dark"] body.products-modern-body .products-modern-market-tab b{
  background:rgba(255,255,255,.07)!important;color:#c9d4de!important;
}
html[data-app-theme="dark"] body.products-modern-body .products-modern-state-tabs a.is-active,
html[data-app-theme="dark"] body.products-modern-body .products-modern-state-tabs a.active{
  background:#26333f!important;color:#eef2f5!important;border-color:#3a4958!important;
}
html[data-app-theme="dark"] body.products-modern-body .products-modern-workspace{
  background:transparent!important;gap:16px!important;
}
html[data-app-theme="dark"] body.products-modern-body .products-modern-filters-card,
html[data-app-theme="dark"] body.products-modern-body .products-modern-table-card{
  background:var(--products-v539-panel)!important;border:1px solid var(--products-v539-line)!important;box-shadow:0 12px 34px rgba(0,0,0,.14)!important;
}
html[data-app-theme="dark"] body.products-modern-body .products-modern-filters-head{
  border-bottom:1px solid var(--products-v539-line)!important;color:var(--products-v539-text)!important;
}
html[data-app-theme="dark"] body.products-modern-body .products-modern-filters-head h2{color:#edf1f5!important}
html[data-app-theme="dark"] body.products-modern-body .products-modern-filters-head a{color:#9aa8b5!important}
html[data-app-theme="dark"] body.products-modern-body .products-modern-filter-label{color:#93a0ad!important}
html[data-app-theme="dark"] body.products-modern-body .products-modern-filter-search{
  background:#111923!important;border:1px solid #2b3947!important;
}
html[data-app-theme="dark"] body.products-modern-body .products-modern-filter-search input{color:#e2e8ee!important}
html[data-app-theme="dark"] body.products-modern-body .products-modern-filter-search svg{color:#8795a3!important}
html[data-app-theme="dark"] body.products-modern-body .products-filter-card{
  background:#17212b!important;border:1px solid #293745!important;border-radius:12px!important;overflow:hidden!important;
}
html[data-app-theme="dark"] body.products-modern-body .products-filter-card__title{
  background:#1c2732!important;color:#d7dfe7!important;border:0!important;border-bottom:1px solid #2b3946!important;
}
html[data-app-theme="dark"] body.products-modern-body .products-filter-card__title:hover{background:#22303c!important}
html[data-app-theme="dark"] body.products-modern-body .products-filter-card__title b{background:#2a3744!important;color:#bcc8d3!important}
html[data-app-theme="dark"] body.products-modern-body .products-filter-card__body{background:#161f28!important;color:#a5b1bd!important}
html[data-app-theme="dark"] body.products-modern-body .products-filter-option{color:#aeb9c4!important}
html[data-app-theme="dark"] body.products-modern-body .products-filter-option:hover{color:#edf1f5!important;background:#1d2934!important}
html[data-app-theme="dark"] body.products-modern-body .products-filter-option strong{color:#dce3e9!important}
html[data-app-theme="dark"] body.products-modern-body .products-filter-option small{color:#8795a3!important}
html[data-app-theme="dark"] body.products-modern-body .products-modern-apply-button,
html[data-app-theme="dark"] body.products-modern-body [data-products-apply-filters]{
  background:#e3e8ed!important;color:#18202a!important;border-color:#e3e8ed!important;box-shadow:none!important;
}
html[data-app-theme="dark"] body.products-modern-body .products-modern-apply-button:hover,
html[data-app-theme="dark"] body.products-modern-body [data-products-apply-filters]:hover{background:#f0f3f6!important;color:#111820!important}
html[data-app-theme="dark"] body.products-modern-body .products-modern-table-head,
html[data-app-theme="dark"] body.products-modern-body .products-modern-table-footer{
  background:#18222c!important;border-color:var(--products-v539-line)!important;
}
html[data-app-theme="dark"] body.products-modern-body .products-modern-table-wrap{background:#141d26!important;border-color:var(--products-v539-line)!important}
html[data-app-theme="dark"] body.products-modern-body .products-modern-table thead th{
  background:#1d2934!important;color:#aebac6!important;border-color:#334250!important;font-weight:780!important;
}
html[data-app-theme="dark"] body.products-modern-body .products-modern-table tbody td{
  background:#161f28!important;color:#cbd4dc!important;border-color:#293744!important;
}
html[data-app-theme="dark"] body.products-modern-body .products-modern-table tbody tr:nth-child(even) td{background:#17212b!important}
html[data-app-theme="dark"] body.products-modern-body .products-modern-table tbody tr:hover td{background:#202d38!important}
html[data-app-theme="dark"] body.products-modern-body .products-modern-table :is(.products-modern-name-cell strong,.products-modern-article-cell strong,.products-modern-name-cell a){color:#e8edf2!important}
html[data-app-theme="dark"] body.products-modern-body .products-modern-table :is(.products-modern-name-cell small,.products-modern-article-cell small,.products-modern-organization-cell,.products-modern-category-cell){color:#9aa7b4!important}
html[data-app-theme="dark"] body.products-modern-body .products-modern-photo-wrap{background:#e9edf1!important;border-color:#44515f!important}
html[data-app-theme="dark"] body.products-modern-body .products-modern-marketplace-badge--ozon{background:rgba(110,157,255,.14)!important;color:#b9d0ff!important;border-color:rgba(110,157,255,.30)!important}
html[data-app-theme="dark"] body.products-modern-body .products-modern-marketplace-badge--wildberries{background:rgba(214,130,223,.14)!important;color:#e9b5ee!important;border-color:rgba(214,130,223,.30)!important}
html[data-app-theme="dark"] body.products-modern-body .products-modern-marketplace-badge--yandex{background:rgba(235,203,104,.13)!important;color:#eedb98!important;border-color:rgba(235,203,104,.28)!important}
html[data-app-theme="dark"] body.products-modern-body :is(.products-modern-button--secondary,.column-settings-button,.table-settings-button){
  background:#202b36!important;border-color:#364553!important;color:#dce4eb!important;box-shadow:none!important;
}
html[data-app-theme="dark"] body.products-modern-body :is(.products-modern-button--secondary,.column-settings-button,.table-settings-button):hover{background:#293744!important;border-color:#485967!important;color:#fff!important}
html[data-app-theme="dark"] body.products-modern-body .products-modern-button--primary{background:#e5e9ed!important;border-color:#e5e9ed!important;color:#17202a!important;box-shadow:none!important}
html[data-app-theme="dark"] body.products-modern-body .products-modern-button--primary:hover{background:#f3f5f7!important;color:#111820!important}
html[data-app-theme="dark"] body.products-modern-body .products-modern-pagination :is(a,button,span),
html[data-app-theme="dark"] body.products-modern-body .products-modern-page-size{
  background:#1b2631!important;border-color:#31404e!important;color:#b9c4cf!important;
}
html[data-app-theme="dark"] body.products-modern-body .products-modern-pagination :is(.active,.is-active,[aria-current="page"]){background:#2b3a48!important;color:#fff!important;border-color:#46596a!important}
html[data-app-theme="dark"] body.products-modern-body ::-webkit-scrollbar-thumb{background:#4b5a68!important;border-color:#161f28!important}

/* ========================================================================== 
   MarketplaceAnalytics V539 — Products dark-theme refinement
   This is intentionally page-scoped. We will refine the other sections one
   by one instead of letting a generic automatic darkener fight local styles.
   ========================================================================== */
html[data-app-theme="dark"] body.products-modern-body {
  --pm-bg: #101820;
  --pm-card: #17222c;
  --pm-text: #eaf0f5;
  --pm-muted: #9eabb7;
  --pm-border: #273542;
  --pm-border-strong: #344453;
  --pm-gray-soft: #1b2732;
  --pm-purple-soft: #203042;
  --pm-purple-border: #46627e;
  --pm-purple: #a9c7e7;
  --pm-purple-dark: #e9f2fb;
  background: #101820 !important;
}
html[data-app-theme="dark"] body.products-modern-body .products-modern-page {
  color: #dce5ed !important;
}
html[data-app-theme="dark"] body.products-modern-body .products-modern-heading {
  background: linear-gradient(180deg,#19252f 0%,#17222c 100%) !important;
  border: 1px solid #283744 !important;
  box-shadow: 0 10px 30px rgba(0,0,0,.12) !important;
}
html[data-app-theme="dark"] body.products-modern-body .products-modern-title-row h1 {
  color: #f1f5f8 !important;
  text-shadow: none !important;
}
html[data-app-theme="dark"] body.products-modern-body .products-modern-heading__copy > p,
html[data-app-theme="dark"] body.products-modern-body .products-modern-info {
  color: #a9b5c0 !important;
}
html[data-app-theme="dark"] body.products-modern-body .products-modern-heading__actions .products-modern-button,
html[data-app-theme="dark"] body.products-modern-body .products-modern-columns-button,
html[data-app-theme="dark"] body.products-modern-body .products-modern-table-head .button,
html[data-app-theme="dark"] body.products-modern-body .products-modern-table-head button {
  background: #1d2a35 !important;
  border-color: #314252 !important;
  color: #dce5ed !important;
  box-shadow: none !important;
}
html[data-app-theme="dark"] body.products-modern-body .products-modern-heading__actions .products-modern-button:hover,
html[data-app-theme="dark"] body.products-modern-body .products-modern-columns-button:hover,
html[data-app-theme="dark"] body.products-modern-body .products-modern-table-head button:hover {
  background: #263644 !important;
  border-color: #465b6e !important;
  color: #f3f7fa !important;
}
html[data-app-theme="dark"] body.products-modern-body .products-modern-button--primary {
  background: #2d4052 !important;
  border-color: #425c72 !important;
  color: #f4f7fa !important;
}

/* Marketplace + state tabs: no white pills in dark mode. */
html[data-app-theme="dark"] body.products-modern-body .products-modern-tabs-row {
  background: transparent !important;
  border: 0 !important;
  gap: 12px !important;
}
html[data-app-theme="dark"] body.products-modern-body .products-modern-market-tab,
html[data-app-theme="dark"] body.products-modern-body .products-modern-state-tabs a {
  background: #17222c !important;
  border: 1px solid #293846 !important;
  color: #aeb9c4 !important;
  box-shadow: none !important;
}
html[data-app-theme="dark"] body.products-modern-body .products-modern-market-tab strong,
html[data-app-theme="dark"] body.products-modern-body .products-modern-market-tab b,
html[data-app-theme="dark"] body.products-modern-body .products-modern-state-tabs a,
html[data-app-theme="dark"] body.products-modern-body .products-modern-state-tabs b {
  color: inherit !important;
}
html[data-app-theme="dark"] body.products-modern-body .products-modern-market-tab:hover,
html[data-app-theme="dark"] body.products-modern-body .products-modern-state-tabs a:hover {
  background: #1d2b37 !important;
  border-color: #3b4e60 !important;
  color: #dce5ed !important;
}
html[data-app-theme="dark"] body.products-modern-body .products-modern-market-tab--ozon.is-active {
  background: rgba(110,157,255,.13) !important;
  border-color: rgba(110,157,255,.55) !important;
  color: #c9dcff !important;
}
html[data-app-theme="dark"] body.products-modern-body .products-modern-market-tab--wb.is-active {
  background: rgba(214,130,223,.12) !important;
  border-color: rgba(214,130,223,.48) !important;
  color: #ebc4ef !important;
}
html[data-app-theme="dark"] body.products-modern-body .products-modern-market-tab--yandex.is-active {
  background: rgba(235,203,104,.12) !important;
  border-color: rgba(235,203,104,.45) !important;
  color: #efdda5 !important;
}
html[data-app-theme="dark"] body.products-modern-body .products-modern-state-tabs a.is-active {
  background: #263441 !important;
  border-color: #465969 !important;
  color: #eef3f7 !important;
}

/* Filters: one elevation language instead of white accordion headers. */
html[data-app-theme="dark"] body.products-modern-body .products-modern-filters-card {
  background: #151f28 !important;
  border-color: #263541 !important;
  box-shadow: none !important;
}
html[data-app-theme="dark"] body.products-modern-body .products-modern-filters-head h2 {
  color: #edf2f6 !important;
}
html[data-app-theme="dark"] body.products-modern-body .products-modern-filters-head a {
  color: #9eabb7 !important;
}
html[data-app-theme="dark"] body.products-modern-body .products-modern-filter-search,
html[data-app-theme="dark"] body.products-modern-body .products-modern-filter-search input {
  background: #121b23 !important;
  border-color: #2b3a47 !important;
  color: #e2e9ef !important;
}
html[data-app-theme="dark"] body.products-modern-body .products-modern-filter-search input::placeholder {
  color: #738291 !important;
}
html[data-app-theme="dark"] body.products-modern-body .products-filter-card {
  background: #17222c !important;
  border: 1px solid #273744 !important;
  overflow: hidden !important;
}
html[data-app-theme="dark"] body.products-modern-body .products-filter-card__title {
  background: #1b2833 !important;
  border: 0 !important;
  color: #d8e1e8 !important;
}
html[data-app-theme="dark"] body.products-modern-body .products-filter-card__title b,
html[data-app-theme="dark"] body.products-modern-body .products-filter-card__title > span {
  color: #d8e1e8 !important;
}
html[data-app-theme="dark"] body.products-modern-body .products-filter-card__body {
  background: #151f28 !important;
  color: #aab6c1 !important;
  border-color: #273744 !important;
}
html[data-app-theme="dark"] body.products-modern-body .products-filter-option,
html[data-app-theme="dark"] body.products-modern-body .products-modern-favorite-filter {
  color: #aab6c1 !important;
}
html[data-app-theme="dark"] body.products-modern-body .products-filter-option strong,
html[data-app-theme="dark"] body.products-modern-body .products-modern-favorite-filter strong {
  color: #dce4eb !important;
}
html[data-app-theme="dark"] body.products-modern-body .products-filter-option small,
html[data-app-theme="dark"] body.products-modern-body .products-modern-favorite-filter small {
  color: #7f8e9c !important;
}
html[data-app-theme="dark"] body.products-modern-body .products-modern-apply-button {
  background: #dce4eb !important;
  color: #17212a !important;
  border-color: #dce4eb !important;
}

/* Table: high readability without bright slabs. */
html[data-app-theme="dark"] body.products-modern-body .products-modern-table-card {
  background: #151f28 !important;
  border-color: #263541 !important;
  box-shadow: 0 14px 36px rgba(0,0,0,.13) !important;
}
html[data-app-theme="dark"] body.products-modern-body .products-modern-table-head,
html[data-app-theme="dark"] body.products-modern-body .products-modern-table-footer {
  background: #17222c !important;
  border-color: #273744 !important;
  color: #aeb9c4 !important;
}
html[data-app-theme="dark"] body.products-modern-body .products-modern-table-head strong {
  color: #dce5ed !important;
}
html[data-app-theme="dark"] body.products-modern-body .products-modern-table-wrap {
  background: #151f28 !important;
  border-color: #273744 !important;
}
html[data-app-theme="dark"] body.products-modern-body .products-modern-table {
  background: #17222c !important;
  color: #d8e1e8 !important;
}
html[data-app-theme="dark"] body.products-modern-body .products-modern-table thead th {
  background: #1c2934 !important;
  color: #9fadb9 !important;
  border-color: #2b3b48 !important;
}
html[data-app-theme="dark"] body.products-modern-body .products-modern-table tbody td {
  background: #17222c !important;
  color: #c8d2dc !important;
  border-color: #273744 !important;
}
html[data-app-theme="dark"] body.products-modern-body .products-modern-table tbody tr:hover td {
  background: #1d2b36 !important;
}
html[data-app-theme="dark"] body.products-modern-body .products-modern-name-cell a,
html[data-app-theme="dark"] body.products-modern-body .products-modern-article-link {
  color: #e9eef3 !important;
  font-weight: 720 !important;
}
html[data-app-theme="dark"] body.products-modern-body .products-modern-name-cell small {
  color: #8795a3 !important;
}
html[data-app-theme="dark"] body.products-modern-body .products-modern-organization,
html[data-app-theme="dark"] body.products-modern-body .products-modern-table td[data-column="category"],
html[data-app-theme="dark"] body.products-modern-body .products-modern-table td[data-column="brand"],
html[data-app-theme="dark"] body.products-modern-body .products-modern-table td[data-column="group_key"],
html[data-app-theme="dark"] body.products-modern-body .products-modern-table td[data-column="site_group_key"],
html[data-app-theme="dark"] body.products-modern-body .products-modern-table td[data-column="stock_group_key"] {
  color: #aab6c1 !important;
  opacity: 1 !important;
}
html[data-app-theme="dark"] body.products-modern-body .products-modern-sort {
  color: #a9b5c0 !important;
}
html[data-app-theme="dark"] body.products-modern-body .products-modern-sort.is-active {
  color: #eef3f7 !important;
}
html[data-app-theme="dark"] body.products-modern-body .products-modern-photo-wrap,
html[data-app-theme="dark"] body.products-modern-body .products-modern-photo-placeholder {
  border-color: #344553 !important;
  background: #e9edf1 !important;
}
html[data-app-theme="dark"] body.products-modern-body .products-modern-status {
  box-shadow: none !important;
}
html[data-app-theme="dark"] body.products-modern-body .products-modern-pagination,
html[data-app-theme="dark"] body.products-modern-body .products-modern-pagination :is(a,button,span,select) {
  background: #18232d !important;
  border-color: #2d3d4a !important;
  color: #b9c4ce !important;
}
html[data-app-theme="dark"] body.products-modern-body .products-modern-pagination :is(.active,.is-active,[aria-current="page"]) {
  background: #2a3b4a !important;
  color: #f0f4f7 !important;
}

/* Keep scrollbar visible but quiet. */
html[data-app-theme="dark"] body.products-modern-body .products-modern-table-wrap::-webkit-scrollbar-track,
html[data-app-theme="dark"] body.products-modern-body .products-filter-options::-webkit-scrollbar-track { background: #111a22; }
html[data-app-theme="dark"] body.products-modern-body .products-modern-table-wrap::-webkit-scrollbar-thumb,
html[data-app-theme="dark"] body.products-modern-body .products-filter-options::-webkit-scrollbar-thumb { background: #465665; border-radius: 999px; }

/* ========================================================================== 
   V540 · Products modals + deleted products dark refinement.
   ========================================================================== */
html[data-app-theme="dark"] body.products-modern-body .columns-modal-overlay,
html[data-app-theme="dark"] body.products-modern-body .products-simple-modal {
  background: rgba(7, 12, 18, 0.66) !important;
  backdrop-filter: blur(4px);
}
html[data-app-theme="dark"] body.products-modern-body :is(.columns-modal-card,.products-simple-modal__card,.product-export-modal__card) {
  background: linear-gradient(180deg,#17222c 0%,#141c24 100%) !important;
  border: 1px solid #283847 !important;
  color: #e6edf3 !important;
  box-shadow: 0 30px 80px rgba(0,0,0,.42) !important;
}
html[data-app-theme="dark"] body.products-modern-body :is(.columns-modal-card,.products-simple-modal__card,.product-export-modal__card) .modal-heading {
  background: linear-gradient(180deg,#1b2732 0%,#17222c 100%) !important;
  border-bottom: 1px solid #283846 !important;
}
html[data-app-theme="dark"] body.products-modern-body :is(.columns-modal-card,.products-simple-modal__card,.product-export-modal__card) .modal-heading h2,
html[data-app-theme="dark"] body.products-modern-body :is(.columns-modal-card,.products-simple-modal__card,.product-export-modal__card) .modal-heading h3,
html[data-app-theme="dark"] body.products-modern-body :is(.columns-modal-card,.products-simple-modal__card,.product-export-modal__card) .modal-heading p,
html[data-app-theme="dark"] body.products-modern-body :is(.columns-modal-card,.products-simple-modal__card,.product-export-modal__card) .modal-heading .eyebrow {
  color: inherit !important;
}
html[data-app-theme="dark"] body.products-modern-body :is(.columns-modal-card,.products-simple-modal__card,.product-export-modal__card) .modal-heading p {
  color: #9fb0bf !important;
}
html[data-app-theme="dark"] body.products-modern-body :is(.columns-modal-card,.products-simple-modal__card,.product-export-modal__card) .modal-close {
  background: transparent !important;
  color: #aebdcb !important;
  border: 1px solid transparent !important;
}
html[data-app-theme="dark"] body.products-modern-body :is(.columns-modal-card,.products-simple-modal__card,.product-export-modal__card) .modal-close:hover {
  background: #243240 !important;
  border-color: #334758 !important;
  color: #f2f6f9 !important;
}
html[data-app-theme="dark"] body.products-modern-body .columns-config-grid section {
  background: #121a22 !important;
  border: 1px solid #283846 !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02);
}
html[data-app-theme="dark"] body.products-modern-body .columns-config-grid h3 {
  color: #e6edf3 !important;
}
html[data-app-theme="dark"] body.products-modern-body .column-list {
  max-height: 58vh;
  overflow: auto;
  padding-right: 4px;
}
html[data-app-theme="dark"] body.products-modern-body .column-list:empty::before {
  content: 'Перетащите столбцы сюда';
  display: grid;
  place-items: center;
  min-height: 88px;
  border: 1px dashed #334758;
  border-radius: 14px;
  color: #7f91a1;
  font-size: 11px;
}
html[data-app-theme="dark"] body.products-modern-body .column-config-item {
  background: #1a2530 !important;
  border: 1px solid #2d404f !important;
  box-shadow: none !important;
}
html[data-app-theme="dark"] body.products-modern-body .column-config-item span {
  color: #e6edf3 !important;
}
html[data-app-theme="dark"] body.products-modern-body .column-config-item.is-dragging {
  border-style: dashed !important;
  opacity: .55 !important;
}
html[data-app-theme="dark"] body.products-modern-body .column-drag-handle {
  background: #12202a !important;
  border-color: #304352 !important;
  color: #98aab9 !important;
}
html[data-app-theme="dark"] body.products-modern-body .column-toggle-button {
  background: #243342 !important;
  border: 1px solid #385063 !important;
  color: #edf4fa !important;
}
html[data-app-theme="dark"] body.products-modern-body .column-toggle-button:hover {
  background: #2d4253 !important;
  border-color: #4a667b !important;
}
html[data-app-theme="dark"] body.products-modern-body .column-settings-actions {
  background: #17222c !important;
  border-top: 1px solid #283846 !important;
}
html[data-app-theme="dark"] body.products-modern-body .products-upload-form,
html[data-app-theme="dark"] body.products-modern-body .products-create-form {
  color: #d8e2ea !important;
}
html[data-app-theme="dark"] body.products-modern-body .products-upload-mode {
  background: #121a22 !important;
  border: 1px solid #283846 !important;
}
html[data-app-theme="dark"] body.products-modern-body .products-upload-mode legend {
  color: #dfe7ee !important;
}
html[data-app-theme="dark"] body.products-modern-body .products-upload-mode__option {
  background: #17222c !important;
  border-color: #2c3e4d !important;
}
html[data-app-theme="dark"] body.products-modern-body .products-upload-mode__option small {
  color: #8fa0af !important;
}
html[data-app-theme="dark"] body.products-modern-body .products-upload-dropzone {
  background: #121a22 !important;
  border: 2px dashed #324656 !important;
  color: #dce5ed !important;
}
html[data-app-theme="dark"] body.products-modern-body .products-upload-dropzone strong {
  color: #eef4f8 !important;
}
html[data-app-theme="dark"] body.products-modern-body .products-upload-dropzone small,
html[data-app-theme="dark"] body.products-modern-body .products-upload-dropzone em {
  color: #92a2b0 !important;
}
html[data-app-theme="dark"] body.products-modern-body .products-upload-dropzone__icon {
  background: color-mix(in srgb, var(--products-accent) 88%, #10161d) !important;
  color: #ffffff !important;
}
html[data-app-theme="dark"] body.products-modern-body.products-page-body--yandex .products-upload-dropzone__icon {
  color: #231d00 !important;
}
html[data-app-theme="dark"] body.products-modern-body .products-upload-dropzone.is-dragover,
html[data-app-theme="dark"] body.products-modern-body .products-upload-dropzone.has-file {
  background: color-mix(in srgb, var(--products-accent) 10%, #121a22) !important;
  border-color: color-mix(in srgb, var(--products-accent) 60%, #324656) !important;
}
html[data-app-theme="dark"] body.products-modern-body .products-create-organization {
  background: #17222c !important;
  border: 1px solid #2c3e4d !important;
}
html[data-app-theme="dark"] body.products-modern-body .products-create-organization strong {
  color: #ecf2f7 !important;
}
html[data-app-theme="dark"] body.products-modern-body .products-create-organization small {
  color: #93a4b3 !important;
}
html[data-app-theme="dark"] body.products-modern-body .products-create-organization:has(input:checked) {
  background: color-mix(in srgb, var(--products-accent) 10%, #17222c) !important;
  border-color: color-mix(in srgb, var(--products-accent) 55%, #2c3e4d) !important;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--products-accent) 22%, transparent) !important;
}
html[data-app-theme="dark"] body.products-modern-body.products-deleted-body .products-state-tabs a {
  background: #17222c !important;
  border-color: #2a3b49 !important;
  color: #aeb9c4 !important;
}
html[data-app-theme="dark"] body.products-modern-body.products-deleted-body .products-state-tabs a.is-active {
  background: #263544 !important;
  border-color: #455b6d !important;
  color: #f1f5f8 !important;
}
html[data-app-theme="dark"] body.products-modern-body.products-deleted-body .products-state-tabs b {
  background: rgba(255,255,255,.08) !important;
  color: inherit !important;
}
html[data-app-theme="dark"] body.products-modern-body.products-deleted-body .deleted-products-controls,
html[data-app-theme="dark"] body.products-modern-body.products-deleted-body .deleted-products-table-card,
html[data-app-theme="dark"] body.products-modern-body.products-deleted-body .deleted-products-summary {
  background: #151f28 !important;
  border-color: #273744 !important;
  color: #dce5ed !important;
}
html[data-app-theme="dark"] body.products-modern-body.products-deleted-body .deleted-products-filter {
  color: #cdd7df !important;
}
html[data-app-theme="dark"] body.products-modern-body.products-deleted-body .deleted-products-search {
  background: #121b23 !important;
  border-color: #2b3a47 !important;
  color: #e5edf3 !important;
}
html[data-app-theme="dark"] body.products-modern-body.products-deleted-body .deleted-products-search input {
  color: #e5edf3 !important;
}
html[data-app-theme="dark"] body.products-modern-body.products-deleted-body .deleted-products-search input::placeholder {
  color: #788796 !important;
}
html[data-app-theme="dark"] body.products-modern-body.products-deleted-body .deleted-products-organizations label {
  background: #17222c !important;
  border-color: #2c3e4d !important;
  color: #d7e0e8 !important;
}
html[data-app-theme="dark"] body.products-modern-body.products-deleted-body .deleted-products-summary span,
html[data-app-theme="dark"] body.products-modern-body.products-deleted-body .deleted-products-name small,
html[data-app-theme="dark"] body.products-modern-body.products-deleted-body .products-empty-state span,
html[data-app-theme="dark"] body.products-modern-body.products-deleted-body .deleted-products-bulk > span {
  color: #8ea0b0 !important;
}
html[data-app-theme="dark"] body.products-modern-body.products-deleted-body .deleted-products-photo img {
  background: #edf1f5 !important;
  border-color: #3d5060 !important;
}
html[data-app-theme="dark"] body.products-modern-body.products-deleted-body .deleted-products-table code {
  background: #202d38 !important;
  color: #dce7ef !important;
}
html[data-app-theme="dark"] body.products-modern-body.products-deleted-body .deleted-products-forget {
  background: rgba(200,73,73,.16) !important;
  color: #ffb1b1 !important;
}
html[data-app-theme="dark"] body.products-modern-body.products-deleted-body .deleted-products-copy-notice {
  background: #17232d !important;
  color: #eef4f8 !important;
  border: 1px solid #2c3e4d !important;
}

/* ================================================================
   MarketplaceAnalytics V540 — Products dark theme: modal/deleted audit
   Final, generic overrides intentionally do not depend on the window manager
   keeping the modal under a particular wrapper.  This closes the remaining
   white islands in Products that were visible in V539.
   ================================================================ */
html[data-app-theme="dark"] body.products-modern-body {
  --products-dark-page: #0f171f;
  --products-dark-panel: #16212b;
  --products-dark-panel-2: #1b2833;
  --products-dark-control: #111b24;
  --products-dark-hover: #22313e;
  --products-dark-line: #2b3d4b;
  --products-dark-line-strong: #3a5062;
  --products-dark-text: #e6edf3;
  --products-dark-copy: #b1bfcb;
  --products-dark-muted: #8293a2;
}

/* Column manager — no white list/card surfaces. */
html[data-app-theme="dark"] .columns-modal-overlay .columns-modal-card,
html[data-app-theme="dark"] .columns-modal-overlay .app-managed-window,
html[data-app-theme="dark"] .columns-modal-overlay .app-window-content {
  background: #16212b !important;
  color: #e6edf3 !important;
  border-color: #2b3d4b !important;
}
html[data-app-theme="dark"] .columns-modal-overlay .columns-config-grid section,
html[data-app-theme="dark"] body.products-modern-body .columns-config-grid section {
  background: #111b24 !important;
  border: 1px solid #2b3d4b !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.02) !important;
}
html[data-app-theme="dark"] .columns-modal-overlay .columns-config-grid h3,
html[data-app-theme="dark"] .columns-modal-overlay .columns-config-grid section > h3 {
  color: #dfe7ee !important;
}
html[data-app-theme="dark"] .columns-modal-overlay .column-config-item,
html[data-app-theme="dark"] body.products-modern-body .column-config-item {
  background: #1a2732 !important;
  border: 1px solid #314655 !important;
  color: #e4ebf1 !important;
  box-shadow: none !important;
}
html[data-app-theme="dark"] .columns-modal-overlay .column-config-item:hover {
  background: #1f2e3a !important;
  border-color: #415a6c !important;
}
html[data-app-theme="dark"] .columns-modal-overlay .column-config-item span,
html[data-app-theme="dark"] .columns-modal-overlay .column-config-item strong {
  color: #e4ebf1 !important;
}
html[data-app-theme="dark"] .columns-modal-overlay .column-drag-handle {
  background: #101a22 !important;
  color: #a2b2c0 !important;
  border: 1px solid #314655 !important;
}
html[data-app-theme="dark"] .columns-modal-overlay .column-toggle-button {
  background: #263745 !important;
  border: 1px solid #405768 !important;
  color: #eef3f7 !important;
}
html[data-app-theme="dark"] .columns-modal-overlay .column-toggle-button:hover {
  background: #304556 !important;
  border-color: #567085 !important;
}
html[data-app-theme="dark"] .columns-modal-overlay .column-list,
html[data-app-theme="dark"] body.products-modern-body .column-list {
  scrollbar-color: #4f6475 #101820 !important;
}
html[data-app-theme="dark"] .columns-modal-overlay .column-list::-webkit-scrollbar-track,
html[data-app-theme="dark"] body.products-modern-body .column-list::-webkit-scrollbar-track {
  background: #101820 !important;
}
html[data-app-theme="dark"] .columns-modal-overlay .column-list::-webkit-scrollbar-thumb,
html[data-app-theme="dark"] body.products-modern-body .column-list::-webkit-scrollbar-thumb {
  background: #4f6475 !important;
  border: 2px solid #101820 !important;
}

/* Create product — the selectable organization must remain readable. */
html[data-app-theme="dark"] .products-simple-modal__card .products-create-organization,
html[data-app-theme="dark"] body.products-modern-body .products-create-organization {
  background: #17242e !important;
  border-color: #314655 !important;
  color: #dfe7ee !important;
}
html[data-app-theme="dark"] .products-simple-modal__card .products-create-organization:hover {
  background: #1e2d39 !important;
  border-color: #425a6c !important;
}
html[data-app-theme="dark"] .products-simple-modal__card .products-create-organization:has(input:checked),
html[data-app-theme="dark"] body.products-modern-body .products-create-organization:has(input:checked) {
  background: color-mix(in srgb, var(--products-accent) 12%, #17242e) !important;
  border-color: color-mix(in srgb, var(--products-accent) 58%, #405362) !important;
}
html[data-app-theme="dark"] .products-simple-modal__card .products-create-organization strong {
  color: #f0f4f7 !important;
}
html[data-app-theme="dark"] .products-simple-modal__card .products-create-organization small {
  color: #91a3b2 !important;
}

/* Product import — keep the dropzone dark, spacious and legible. */
html[data-app-theme="dark"] .products-simple-modal__card .products-upload-dropzone,
html[data-app-theme="dark"] body.products-modern-body .products-upload-dropzone {
  background: #101a22 !important;
  border-color: #405364 !important;
  color: #dfe7ee !important;
}
html[data-app-theme="dark"] .products-simple-modal__card .products-upload-dropzone:hover {
  background: #15232d !important;
  border-color: color-mix(in srgb, var(--products-accent) 58%, #405364) !important;
}
html[data-app-theme="dark"] .products-simple-modal__card .products-upload-dropzone strong {
  color: #edf3f7 !important;
}
html[data-app-theme="dark"] .products-simple-modal__card .products-upload-dropzone :is(small,em) {
  color: #91a2b1 !important;
}

/* Deleted products — eliminate white search/chips/table scrollbar/footer islands. */
html[data-app-theme="dark"] body.products-deleted-body .deleted-products-controls,
html[data-app-theme="dark"] body.products-deleted-body .deleted-products-table-card,
html[data-app-theme="dark"] body.products-deleted-body .deleted-products-summary,
html[data-app-theme="dark"] body.products-deleted-body .pricing-footer {
  background: #16212b !important;
  border-color: #2b3d4b !important;
  color: #dfe7ee !important;
}
html[data-app-theme="dark"] body.products-deleted-body .deleted-products-search {
  background: #101a22 !important;
  border: 1px solid #314655 !important;
  color: #dfe7ee !important;
}
html[data-app-theme="dark"] body.products-deleted-body .deleted-products-search > span {
  color: #8193a2 !important;
}
html[data-app-theme="dark"] body.products-deleted-body .deleted-products-search input,
html[data-app-theme="dark"] body.products-deleted-body .deleted-products-search input[type="search"] {
  background: transparent !important;
  color: #e2e9ef !important;
  -webkit-text-fill-color: #e2e9ef !important;
}
html[data-app-theme="dark"] body.products-deleted-body .deleted-products-organizations label {
  background: #182630 !important;
  border: 1px solid #314655 !important;
  color: #dce5eb !important;
}
html[data-app-theme="dark"] body.products-deleted-body .deleted-products-organizations label:hover {
  background: #20303c !important;
  border-color: #435b6d !important;
}
html[data-app-theme="dark"] body.products-deleted-body .deleted-products-table,
html[data-app-theme="dark"] body.products-deleted-body .deleted-products-table tbody,
html[data-app-theme="dark"] body.products-deleted-body .deleted-products-table tbody tr,
html[data-app-theme="dark"] body.products-deleted-body .deleted-products-table tbody td {
  background: #16212b !important;
  border-color: #293b49 !important;
  color: #cbd6de !important;
}
html[data-app-theme="dark"] body.products-deleted-body .deleted-products-table thead th {
  background: #1b2934 !important;
  border-color: #314655 !important;
  color: #adbbc7 !important;
}
html[data-app-theme="dark"] body.products-deleted-body .deleted-products-table tbody tr:hover td {
  background: #1d2b36 !important;
}
html[data-app-theme="dark"] body.products-deleted-body .deleted-products-name strong {
  color: #edf2f6 !important;
}
html[data-app-theme="dark"] body.products-deleted-body .table-scroll {
  background: #16212b !important;
  scrollbar-color: #4f6475 #101820 !important;
}
html[data-app-theme="dark"] body.products-deleted-body .table-scroll::-webkit-scrollbar-track {
  background: #101820 !important;
}
html[data-app-theme="dark"] body.products-deleted-body .table-scroll::-webkit-scrollbar-thumb {
  background: #4f6475 !important;
  border: 2px solid #101820 !important;
}
html[data-app-theme="dark"] body.products-deleted-body .data-refresh-badge {
  background: #1c2b36 !important;
  border-color: #334a5a !important;
  color: #b8c5d0 !important;
}
html[data-app-theme="dark"] body.products-deleted-body :is(.button-light,.button-dark) {
  background: #21313e !important;
  border-color: #3b5365 !important;
  color: #eef3f7 !important;
}
html[data-app-theme="dark"] body.products-deleted-body :is(.button-light,.button-dark):hover {
  background: #2a3d4c !important;
}

/* ========================================================================== 
   MarketplaceAnalytics V543 · Dashboard + Offline Orders dark-theme pass
   Section-specific refinements. These rules intentionally live at the very
   end of the dark-theme stylesheet so legacy page CSS cannot re-introduce
   white controls or low-contrast copy.
   ========================================================================== */

/* ---------- Dashboard ---------------------------------------------------- */
html[data-app-theme="dark"] body.dashboard-page {
  --dash-page:#0f151c;
  --dash-panel:#17212a;
  --dash-panel-raised:#1b2732;
  --dash-panel-soft:#141d25;
  --dash-hover:#202e39;
  --dash-line:#293947;
  --dash-line-strong:#3a4d5c;
  --dash-text:#e8eef3;
  --dash-copy:#b0bdc8;
  --dash-muted:#8393a1;
  background:var(--dash-page)!important;
  color:var(--dash-text)!important;
}
html[data-app-theme="dark"] body.dashboard-page .dashboard-shell {
  color:var(--dash-text)!important;
}
html[data-app-theme="dark"] body.dashboard-page .dashboard-status {
  background:#141e27!important;
  border:1px solid var(--dash-line)!important;
  color:#a7b5c0!important;
  box-shadow:none!important;
}
html[data-app-theme="dark"] body.dashboard-page .dashboard-kpis {
  gap:14px!important;
}
html[data-app-theme="dark"] body.dashboard-page .metric-card {
  background:linear-gradient(180deg,#18232d 0%,#16202a 100%)!important;
  border:1px solid #2a3a48!important;
  border-radius:18px!important;
  box-shadow:0 10px 26px rgba(0,0,0,.14)!important;
}
html[data-app-theme="dark"] body.dashboard-page .metric-card:hover {
  border-color:#364b5b!important;
  box-shadow:0 12px 30px rgba(0,0,0,.18)!important;
}
html[data-app-theme="dark"] body.dashboard-page .metric-card__header h2 {
  color:#dce5ec!important;
}
html[data-app-theme="dark"] body.dashboard-page :is(.metric-card__main-value,.orders-card-primary strong,.stock-values strong) {
  color:#f1f5f8!important;
  text-shadow:none!important;
}
html[data-app-theme="dark"] body.dashboard-page :is(.orders-card-primary span,.stock-values span,.metric-card__note,.orders-card-money) {
  color:#98a7b4!important;
}
html[data-app-theme="dark"] body.dashboard-page .info-dot {
  background:#1d2a35!important;
  border:1px solid #354957!important;
  color:#a9b7c3!important;
}
html[data-app-theme="dark"] body.dashboard-page .info-dot:hover {
  background:#253541!important;
  border-color:#496071!important;
  color:#e4ebf0!important;
}
html[data-app-theme="dark"] body.dashboard-page .mini-tabs {
  background:#121b23!important;
  border:1px solid #2b3c49!important;
  border-radius:999px!important;
  padding:3px!important;
}
html[data-app-theme="dark"] body.dashboard-page .mini-tab {
  color:#7f8f9d!important;
  border-radius:999px!important;
  padding:5px 9px 6px!important;
}
html[data-app-theme="dark"] body.dashboard-page .mini-tab.active {
  background:#253443!important;
  color:#e8eef3!important;
  box-shadow:inset 0 0 0 1px #3b5061!important;
}
html[data-app-theme="dark"] body.dashboard-page .metric-change {
  color:#8d9aa6!important;
}
html[data-app-theme="dark"] body.dashboard-page .metric-change :is(.change-up,.positive) {
  color:#83c89d!important;
}
html[data-app-theme="dark"] body.dashboard-page .metric-change :is(.change-down,.negative) {
  color:#ef989c!important;
}
html[data-app-theme="dark"] body.dashboard-page .dashboard-content-grid {
  gap:16px!important;
}
html[data-app-theme="dark"] body.dashboard-page .dashboard-panel {
  background:linear-gradient(180deg,#17212a 0%,#151f28 100%)!important;
  border:1px solid #293947!important;
  border-radius:18px!important;
  box-shadow:0 10px 28px rgba(0,0,0,.13)!important;
}
html[data-app-theme="dark"] body.dashboard-page .dashboard-panel__eyebrow,
html[data-app-theme="dark"] body.dashboard-page .dashboard-news-head a,
html[data-app-theme="dark"] body.dashboard-page .dashboard-activity-head .dashboard-panel__eyebrow {
  color:#dce5ec!important;
}
html[data-app-theme="dark"] body.dashboard-page .dashboard-tabs {
  border-color:#293947!important;
}
html[data-app-theme="dark"] body.dashboard-page .dashboard-tab {
  color:#8494a2!important;
}
html[data-app-theme="dark"] body.dashboard-page .dashboard-tab:hover {
  color:#bdc8d2!important;
}
html[data-app-theme="dark"] body.dashboard-page .dashboard-tab.active {
  color:#e6edf3!important;
}
html[data-app-theme="dark"] body.dashboard-page .dashboard-tab.active::after {
  background:#8fa2b4!important;
}
html[data-app-theme="dark"] body.dashboard-page .period-select-trigger {
  background:#1a2732!important;
  border:1px solid #344958!important;
  color:#d8e1e8!important;
  box-shadow:none!important;
}
html[data-app-theme="dark"] body.dashboard-page .period-select-trigger:hover {
  background:#202f3b!important;
  border-color:#496174!important;
}
html[data-app-theme="dark"] body.dashboard-page .period-select-display {
  color:#d8e1e8!important;
  -webkit-text-fill-color:#d8e1e8!important;
}
html[data-app-theme="dark"] body.dashboard-page .period-select-trigger .period-select-chevron {
  stroke:#97a8b6!important;
}
html[data-app-theme="dark"] body.dashboard-page .period-select-menu {
  background:#1b2833!important;
  border:1px solid #344958!important;
  box-shadow:0 18px 42px rgba(0,0,0,.36)!important;
}
html[data-app-theme="dark"] body.dashboard-page .period-select-option {
  background:transparent!important;
  color:#bcc7d0!important;
  -webkit-text-fill-color:#bcc7d0!important;
}
html[data-app-theme="dark"] body.dashboard-page .period-select-option:hover {
  background:#243541!important;
  color:#edf2f5!important;
  -webkit-text-fill-color:#edf2f5!important;
}
html[data-app-theme="dark"] body.dashboard-page .period-select-option.is-selected {
  background:#293b49!important;
  color:#f0f4f7!important;
  -webkit-text-fill-color:#f0f4f7!important;
}
html[data-app-theme="dark"] body.dashboard-page .chart-settings-button {
  background:#1a2732!important;
  border:1px solid #344958!important;
  color:#a8b6c2!important;
}
html[data-app-theme="dark"] body.dashboard-page .chart-settings-button:hover {
  background:#243541!important;
  color:#e8eef3!important;
  border-color:#496174!important;
}
html[data-app-theme="dark"] body.dashboard-page .chart-stage {
  background:transparent!important;
}
html[data-app-theme="dark"] body.dashboard-page .chart-tooltip {
  background:rgba(24,35,45,.97)!important;
  border:1px solid #3a4d5c!important;
  color:#e7edf2!important;
  box-shadow:0 18px 40px rgba(0,0,0,.34)!important;
}
html[data-app-theme="dark"] body.dashboard-page .chart-tooltip span {
  color:#9eacb8!important;
}
html[data-app-theme="dark"] body.dashboard-page .chart-legend {
  color:#aebac5!important;
}
html[data-app-theme="dark"] body.dashboard-page .chart-legend em {
  color:#8494a2!important;
}

/* Marketplace selector stays semantic, but never turns into a bright slab. */
html[data-app-theme="dark"] body.dashboard-page .dashboard-marketplace-tabs {
  background:#121b23!important;
  border:1px solid #2b3c49!important;
  border-radius:13px!important;
  box-shadow:none!important;
}
html[data-app-theme="dark"] body.dashboard-page .dashboard-marketplace-tab {
  background:transparent!important;
  border:1px solid transparent!important;
  color:#91a0ad!important;
  border-radius:9px!important;
}
html[data-app-theme="dark"] body.dashboard-page .dashboard-marketplace-tab:hover {
  background:#1c2934!important;
  color:#c9d2da!important;
}
html[data-app-theme="dark"] body.dashboard-page .dashboard-marketplace-tab[data-marketplace="all"].active {
  background:#263542!important;
  border-color:#405565!important;
  color:#e9eef2!important;
  box-shadow:none!important;
}
html[data-app-theme="dark"] body.dashboard-page .dashboard-marketplace-tab--ozon.active {
  background:rgba(110,157,255,.12)!important;
  border-color:rgba(110,157,255,.34)!important;
  color:#b7ccff!important;
}
html[data-app-theme="dark"] body.dashboard-page .dashboard-marketplace-tab--wb.active {
  background:rgba(214,130,223,.12)!important;
  border-color:rgba(214,130,223,.32)!important;
  color:#e6afea!important;
}
html[data-app-theme="dark"] body.dashboard-page .dashboard-marketplace-tab--yandex.active {
  background:rgba(235,203,104,.12)!important;
  border-color:rgba(235,203,104,.30)!important;
  color:#ead998!important;
}
html[data-app-theme="dark"] body.dashboard-page .dashboard-marketplace-tab--offline.active {
  background:#263542!important;
  border-color:#405565!important;
  color:#e6edf3!important;
}

/* News: quieter tags, clearer hierarchy. */
html[data-app-theme="dark"] body.dashboard-page .dashboard-news-item {
  background:transparent!important;
  border-color:#293947!important;
}
html[data-app-theme="dark"] body.dashboard-page .dashboard-news-item h3 {
  color:#dfe7ed!important;
}
html[data-app-theme="dark"] body.dashboard-page .dashboard-news-item p {
  color:#99a8b5!important;
}
html[data-app-theme="dark"] body.dashboard-page .dashboard-news-more {
  color:#b8c5cf!important;
}
html[data-app-theme="dark"] body.dashboard-page .dashboard-news-more:hover {
  color:#eef3f6!important;
}
html[data-app-theme="dark"] body.dashboard-page .dashboard-news-item__tag .news-tag {
  background:#26343f!important;
  border:1px solid #384b59!important;
  color:#b8c5cf!important;
}
html[data-app-theme="dark"] body.dashboard-page .news-avatar {
  border-color:#334756!important;
  background:#1c2934!important;
}

/* Best products: explicitly prevent white live-change rows. */
html[data-app-theme="dark"] body.dashboard-page .top-products {
  background:transparent!important;
}
html[data-app-theme="dark"] body.dashboard-page .top-product-row,
html[data-app-theme="dark"] body.dashboard-page .top-product-row.app-value-changed,
html[data-app-theme="dark"] body.dashboard-page .top-product-row.is-increase,
html[data-app-theme="dark"] body.dashboard-page .top-product-row.is-decrease,
html[data-app-theme="dark"] body.dashboard-page .top-product-row.is-neutral {
  background:transparent!important;
  border-color:#293947!important;
  box-shadow:none!important;
  color:#cbd5dd!important;
}
html[data-app-theme="dark"] body.dashboard-page .top-product-row:hover {
  background:#1d2b36!important;
}
html[data-app-theme="dark"] body.dashboard-page .top-product-rank {
  color:#768796!important;
}
html[data-app-theme="dark"] body.dashboard-page .top-product-image {
  background:#202d37!important;
  border-color:#354958!important;
}
html[data-app-theme="dark"] body.dashboard-page .top-product-copy strong {
  color:#e7edf2!important;
}
html[data-app-theme="dark"] body.dashboard-page .top-product-copy small {
  color:#8595a3!important;
}
html[data-app-theme="dark"] body.dashboard-page .top-product-row > b {
  background:#1c2934!important;
  border-color:#384c5b!important;
  color:#e8eef3!important;
  box-shadow:none!important;
}

/* Recent activity / distribution. */
html[data-app-theme="dark"] body.dashboard-page .dashboard-activity-clear {
  background:#1c2934!important;
  border-color:#344958!important;
  color:#aebbc6!important;
}
html[data-app-theme="dark"] body.dashboard-page .dashboard-activity-clear:hover {
  background:#253541!important;
  border-color:#496174!important;
  color:#edf2f5!important;
}
html[data-app-theme="dark"] body.dashboard-page .dashboard-activity-item {
  background:transparent!important;
  border-color:#293947!important;
}
html[data-app-theme="dark"] body.dashboard-page .dashboard-activity-item strong {
  color:#cdd7df!important;
}
html[data-app-theme="dark"] body.dashboard-page .dashboard-activity-item time {
  color:#798a98!important;
}
html[data-app-theme="dark"] body.dashboard-page .distribution-row {
  color:#a7b5c0!important;
}
html[data-app-theme="dark"] body.dashboard-page .distribution-row :is(strong,b),
html[data-app-theme="dark"] body.dashboard-page .donut-center strong {
  color:#e3eaf0!important;
}
html[data-app-theme="dark"] body.dashboard-page .donut-center span {
  color:#81919f!important;
}

/* Dashboard settings modal. */
html[data-app-theme="dark"] body.dashboard-page .chart-settings-modal {
  background:#17212a!important;
  border:1px solid #334756!important;
  color:#e5ecf1!important;
}
html[data-app-theme="dark"] body.dashboard-page .chart-settings-modal__icon,
html[data-app-theme="dark"] body.dashboard-page .modal-close {
  background:#1e2c37!important;
  color:#b7c4ce!important;
  border:1px solid #354958!important;
}
html[data-app-theme="dark"] body.dashboard-page .chart-settings-section {
  border-color:#293947!important;
}
html[data-app-theme="dark"] body.dashboard-page .settings-radio {
  color:#aebbc6!important;
}

/* ---------- Offline order creation -------------------------------------- */
html[data-app-theme="dark"] body.offline-orders-page {
  --offline-page:#0f151c;
  --offline-surface:#17212a;
  --offline-surface-2:#1b2833;
  --offline-control:#111a22;
  --offline-hover:#202f3b;
  --offline-line:#2b3d4b;
  --offline-line-strong:#3a5060;
  --offline-text:#e7edf2;
  --offline-copy:#aab8c4;
  --offline-muted:#7f909e;
  background:var(--offline-page)!important;
  color:var(--offline-text)!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-orders-heading,
html[data-app-theme="dark"] body.offline-orders-page .offline-order-create__banner,
html[data-app-theme="dark"] body.offline-orders-page .offline-order-form,
html[data-app-theme="dark"] body.offline-orders-page .offline-order-summary {
  background:linear-gradient(180deg,#17212a 0%,#151f28 100%)!important;
  border:1px solid var(--offline-line)!important;
  color:var(--offline-text)!important;
  box-shadow:0 10px 26px rgba(0,0,0,.14)!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-orders-heading,
html[data-app-theme="dark"] body.offline-orders-page .offline-order-create__banner,
html[data-app-theme="dark"] body.offline-orders-page .offline-order-form,
html[data-app-theme="dark"] body.offline-orders-page .offline-order-summary {
  border-radius:16px!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-orders-heading :is(h1,.eyebrow),
html[data-app-theme="dark"] body.offline-orders-page .offline-order-create__banner h2,
html[data-app-theme="dark"] body.offline-orders-page .offline-order-form > h2,
html[data-app-theme="dark"] body.offline-orders-page .offline-step h3,
html[data-app-theme="dark"] body.offline-orders-page .offline-control-title,
html[data-app-theme="dark"] body.offline-orders-page .offline-field strong,
html[data-app-theme="dark"] body.offline-orders-page .offline-field-heading strong,
html[data-app-theme="dark"] body.offline-orders-page .offline-order-summary h3 {
  color:#e9eef2!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-orders-heading p,
html[data-app-theme="dark"] body.offline-orders-page .offline-order-create__banner p,
html[data-app-theme="dark"] body.offline-orders-page .offline-field-hint,
html[data-app-theme="dark"] body.offline-orders-page .offline-client-meta,
html[data-app-theme="dark"] body.offline-orders-page .offline-step__number {
  color:#8798a6!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-order-create__cart {
  color:#c9d5de!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-step {
  border-color:#293947!important;
}

/* Every form control uses one dark surface; native and enhanced selects match. */
html[data-app-theme="dark"] body.offline-orders-page :is(
  .offline-field input,.offline-field select,.offline-field textarea,.offline-step>select,
  .offline-client-card input,.offline-client-card select,.offline-cost-grid input,
  .offline-product-search input,.offline-order-item input,.offline-cost-button,
  button.fs-select__trigger,.app-searchable-select__trigger
) {
  background:#111a22!important;
  border:1px solid #344958!important;
  color:#dfe7ed!important;
  -webkit-text-fill-color:#dfe7ed!important;
  box-shadow:none!important;
}
html[data-app-theme="dark"] body.offline-orders-page :is(input,textarea)::placeholder {
  color:#718391!important;
  -webkit-text-fill-color:#718391!important;
  opacity:1!important;
}
html[data-app-theme="dark"] body.offline-orders-page :is(
  .offline-field input,.offline-field select,.offline-field textarea,.offline-step>select,
  .offline-product-search input,.offline-order-item input,.offline-cost-button,
  button.fs-select__trigger,.app-searchable-select__trigger
):hover {
  border-color:#465f71!important;
}
html[data-app-theme="dark"] body.offline-orders-page :is(
  .offline-field input,.offline-field select,.offline-field textarea,.offline-step>select,
  .offline-product-search input,.offline-order-item input,
  button.fs-select__trigger,.app-searchable-select__trigger
):focus,
html[data-app-theme="dark"] body.offline-orders-page :is(
  .offline-field input,.offline-field select,.offline-field textarea,.offline-step>select,
  .offline-product-search input,.offline-order-item input,
  button.fs-select__trigger,.app-searchable-select__trigger
):focus-visible {
  outline:0!important;
  border-color:#627b8d!important;
  box-shadow:0 0 0 3px rgba(108,137,161,.14)!important;
}
html[data-app-theme="dark"] body.offline-orders-page .fs-select__menu,
html[data-app-theme="dark"] body.offline-orders-page .app-searchable-select__menu,
html[data-app-theme="dark"] body.offline-orders-page .offline-product-search__results {
  background:#1a2732!important;
  border:1px solid #344958!important;
  box-shadow:0 18px 42px rgba(0,0,0,.38)!important;
}
html[data-app-theme="dark"] body.offline-orders-page :is(.fs-select__option,.app-searchable-select__option,.offline-product-search__results button) {
  background:transparent!important;
  color:#c6d1da!important;
}
html[data-app-theme="dark"] body.offline-orders-page :is(.fs-select__option,.app-searchable-select__option,.offline-product-search__results button):hover,
html[data-app-theme="dark"] body.offline-orders-page :is(.fs-select__option,.app-searchable-select__option).is-active {
  background:#243541!important;
  color:#eef3f6!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-product-search__icon {
  color:#8495a3!important;
}

/* Marketplace filter: neutral by default, pastel brand accent only when active. */
html[data-app-theme="dark"] body.offline-orders-page .offline-marketplace-switch button {
  background:#17242e!important;
  border:1px solid #304452!important;
  color:#9eadb9!important;
  box-shadow:none!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-marketplace-switch button:hover {
  background:#1e2d39!important;
  border-color:#41596a!important;
  color:#dce5ec!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-marketplace-switch button.is-active {
  background:#293947!important;
  border-color:#4a6172!important;
  color:#eef3f6!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-marketplace-switch button[data-product-marketplace="ozon"].is-active {
  background:rgba(110,157,255,.12)!important;
  border-color:rgba(110,157,255,.36)!important;
  color:#bdd0ff!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-marketplace-switch button[data-product-marketplace="wildberries"].is-active {
  background:rgba(214,130,223,.12)!important;
  border-color:rgba(214,130,223,.34)!important;
  color:#e7b2eb!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-marketplace-switch button[data-product-marketplace="yandex"].is-active {
  background:rgba(235,203,104,.12)!important;
  border-color:rgba(235,203,104,.32)!important;
  color:#ebd99b!important;
}

/* Selected products read as rows, not white mini-cards. */
html[data-app-theme="dark"] body.offline-orders-page .offline-item-head {
  color:#7f909e!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-order-item {
  background:#18252f!important;
  border:1px solid #2d414f!important;
  color:#dbe4ea!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-order-item:hover {
  background:#1d2b36!important;
  border-color:#3a5161!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-order-item__product strong {
  color:#e7edf2!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-order-item__product small,
html[data-app-theme="dark"] body.offline-orders-page .offline-order-item label,
html[data-app-theme="dark"] body.offline-orders-page .offline-cost-button small {
  color:#8697a5!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-product-image,
html[data-app-theme="dark"] body.offline-orders-page .offline-product-search__results img {
  background:#e9eef2!important;
  border-color:#415463!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-order-item__remove {
  color:#9babb7!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-order-item__remove:hover {
  background:rgba(239,127,134,.12)!important;
  color:#f2a0a5!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-add-product {
  background:#1b2934!important;
  border-color:#354b5a!important;
  color:#dce5ec!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-add-product:hover {
  background:#243541!important;
  border-color:#496174!important;
}

/* Payment and paid state. */
html[data-app-theme="dark"] body.offline-orders-page .offline-payment-switch span {
  color:#8293a1!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-payment-switch input:checked + span {
  color:#e3eaf0!important;
  border-color:#93a5b4!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-paid-check {
  color:#9aa9b5!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-paid-check input,
html[data-app-theme="dark"] body.offline-orders-page .offline-paid-toggle input {
  accent-color:#7f95a8!important;
}

/* Summary: slightly raised layer, stronger numeric hierarchy. */
html[data-app-theme="dark"] body.offline-orders-page .offline-order-summary {
  background:linear-gradient(180deg,#1a2732 0%,#17222c 100%)!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-order-summary :is(dt,dd) {
  color:#c6d1da!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-order-summary dd {
  color:#edf2f5!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-order-summary__profit {
  border-color:#344958!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-order-summary__profit dd[data-profit-state="zero"] {
  color:#91a1ae!important;
}

/* Buttons are calm, not luminous blocks. */
html[data-app-theme="dark"] body.offline-orders-page .offline-back-orders-button {
  background:#1c2934!important;
  border:1px solid #354958!important;
  color:#c7d2db!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-back-orders-button:hover {
  background:#253541!important;
  border-color:#496174!important;
  color:#eef3f6!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-cancel-button {
  background:rgba(239,127,134,.10)!important;
  border:1px solid rgba(239,127,134,.34)!important;
  color:#eea0a5!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-cancel-button:hover {
  background:rgba(239,127,134,.16)!important;
  border-color:rgba(239,127,134,.48)!important;
  color:#ffc0c4!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-create-button {
  background:#2b3a48!important;
  border:1px solid #43596a!important;
  color:#eef3f6!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-create-button:hover:not(:disabled) {
  background:#354858!important;
  border-color:#5a7386!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-create-button:disabled {
  background:#1a252e!important;
  border-color:#2c3c49!important;
  color:#687a89!important;
  opacity:1!important;
}

/* Offline setup notices and modal forms. */
html[data-app-theme="dark"] body.offline-orders-page .offline-setup-notice {
  background:rgba(230,185,106,.08)!important;
  border-color:rgba(230,185,106,.26)!important;
  color:#d9c18c!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-setup-notice span {
  color:#ad9b72!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-modal .profile-modal__card,
html[data-app-theme="dark"] body.offline-orders-page .offline-columns-card,
html[data-app-theme="dark"] body.offline-orders-page .offline-column-panel {
  background:#17212a!important;
  border-color:#2d414f!important;
  color:#e5ecf1!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-column-panel {
  background:#121c24!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-cost-total {
  background:#21313e!important;
  border:1px solid #3a5060!important;
  color:#edf2f5!important;
}

/* Scrollbars remain visible but subdued. */
html[data-app-theme="dark"] body.offline-orders-page :is(.offline-product-search__results,.offline-order-items,.fs-select__menu) {
  scrollbar-color:#4f6475 #111a22!important;
}
html[data-app-theme="dark"] body.offline-orders-page :is(.offline-product-search__results,.offline-order-items,.fs-select__menu)::-webkit-scrollbar-track {
  background:#111a22!important;
}
html[data-app-theme="dark"] body.offline-orders-page :is(.offline-product-search__results,.offline-order-items,.fs-select__menu)::-webkit-scrollbar-thumb {
  background:#4f6475!important;
  border:2px solid #111a22!important;
  border-radius:999px!important;
}

/* ========================================================================
   V544 · Offline orders — final dark-theme refinement
   Fixes the remaining bright/native controls shown in the offline workflow.
   ======================================================================== */

/* Real class names used by the shared searchable select.  Earlier dark rules
   targeted __trigger while the component renders __toggle, which left a
   bright native-looking control in otherwise dark screens. */
html[data-app-theme="dark"] .app-searchable-select__toggle,
html[data-app-theme="dark"] .app-searchable-select__search {
  background:#111a22!important;
  border:1px solid #344958!important;
  color:#dfe7ed!important;
  -webkit-text-fill-color:#dfe7ed!important;
  box-shadow:none!important;
}
html[data-app-theme="dark"] .app-searchable-select__toggle:hover,
html[data-app-theme="dark"] .app-searchable-select.is-open .app-searchable-select__toggle {
  background:#16232d!important;
  border-color:#496174!important;
  color:#eef3f6!important;
  -webkit-text-fill-color:#eef3f6!important;
}
html[data-app-theme="dark"] .app-searchable-select__toggle > i {
  border-color:#90a0ad!important;
}
html[data-app-theme="dark"] .app-searchable-select__search::placeholder {
  color:#738594!important;
  -webkit-text-fill-color:#738594!important;
}

/* The compact section-search button in the top utility bar used a different
   class than the old dark-theme selector and therefore stayed white. */
html[data-app-theme="dark"] .workspace-section-search__toggle {
  background:#17232d!important;
  border:1px solid #314451!important;
  color:#aebdc8!important;
  box-shadow:none!important;
}
html[data-app-theme="dark"] .workspace-section-search__toggle:hover,
html[data-app-theme="dark"] .workspace-section-search__toggle[aria-expanded="true"] {
  background:#22323e!important;
  border-color:#496174!important;
  color:#eef3f6!important;
}
html[data-app-theme="dark"] .workspace-section-search__panel {
  background:#17232d!important;
  border-color:#344958!important;
  box-shadow:0 18px 42px rgba(0,0,0,.38)!important;
}

/* ----- Offline create: structure and controls --------------------------- */
html[data-app-theme="dark"] body.offline-orders-page .offline-order-create__layout {
  gap:16px!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-order-form {
  background:#151f28!important;
  border-color:#2b3d4b!important;
  box-shadow:0 10px 26px rgba(0,0,0,.12)!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-order-summary {
  background:#18252f!important;
  border-color:#304653!important;
  box-shadow:0 12px 28px rgba(0,0,0,.16)!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-step {
  border-bottom-color:#293947!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-step__number {
  color:#718493!important;
  letter-spacing:.06em!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-field-heading [data-open-client] {
  color:#8fb7dd!important;
  background:transparent!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-field-heading [data-open-client]:hover {
  color:#bdd6ec!important;
}

/* Forced app dropdowns for organization/client/warehouse keep the native
   select hidden even when only the placeholder option exists. */
html[data-app-theme="dark"] body.offline-orders-page .app-searchable-select {
  width:100%!important;
}
html[data-app-theme="dark"] body.offline-orders-page .app-searchable-select__toggle {
  width:100%!important;
  min-height:42px!important;
  padding:9px 13px!important;
  border-radius:10px!important;
  background:#111a22!important;
  border-color:#344958!important;
  color:#dce5ec!important;
  -webkit-text-fill-color:#dce5ec!important;
}
html[data-app-theme="dark"] body.offline-orders-page .app-searchable-select:not(.has-value) .app-searchable-select__toggle > span {
  color:#93a3af!important;
}
html[data-app-theme="dark"] body.offline-orders-page .app-searchable-select__menu {
  background:#17242e!important;
  border:1px solid #3b5060!important;
  border-radius:12px!important;
  padding:7px!important;
  box-shadow:0 20px 48px rgba(0,0,0,.42)!important;
}
html[data-app-theme="dark"] body.offline-orders-page .app-searchable-select__search {
  min-height:38px!important;
  margin-bottom:6px!important;
  border-radius:9px!important;
  background:#101922!important;
  border-color:#304452!important;
}
html[data-app-theme="dark"] body.offline-orders-page .app-searchable-select__option {
  min-height:36px!important;
  padding:8px 10px!important;
  border-radius:8px!important;
  color:#c3ced7!important;
}
html[data-app-theme="dark"] body.offline-orders-page .app-searchable-select__option:hover {
  background:#22333f!important;
  color:#eef3f6!important;
}
html[data-app-theme="dark"] body.offline-orders-page .app-searchable-select__option.is-selected {
  background:#293c4a!important;
  color:#f0f4f7!important;
  box-shadow:inset 2px 0 0 #7594aa!important;
}

/* ----- New-client / cost modal ----------------------------------------- */
html[data-app-theme="dark"] body.offline-orders-page .offline-modal .profile-modal__card.app-managed-window {
  background:#151f28!important;
  border:1px solid #344958!important;
  box-shadow:0 24px 70px rgba(0,0,0,.46)!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-modal .app-window-titlebar {
  background:#1b2833!important;
  border-bottom:1px solid #344958!important;
  color:#e9eef2!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-modal .app-window-titlebar__title {
  color:#e9eef2!important;
}
/* Window manager already repeats the modal title in its own titlebar. Hide
   the original modal header to avoid the large duplicate title panel. */
html[data-app-theme="dark"] body.offline-orders-page .offline-modal .profile-modal__card.app-managed-window > header:not(.app-window-titlebar) {
  display:none!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-client-card form,
html[data-app-theme="dark"] body.offline-orders-page .offline-cost-card form {
  padding-top:18px!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-client-card label,
html[data-app-theme="dark"] body.offline-orders-page .offline-cost-grid label {
  color:#aab8c4!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-client-card :is(input,select),
html[data-app-theme="dark"] body.offline-orders-page .offline-cost-card input {
  background:#111a22!important;
  border-color:#344958!important;
  color:#dfe7ed!important;
  -webkit-text-fill-color:#dfe7ed!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-client-card .button-light,
html[data-app-theme="dark"] body.offline-orders-page .offline-cost-card .button-light {
  background:#192630!important;
  border:1px solid #344958!important;
  color:#bdc9d2!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-client-card .button-dark,
html[data-app-theme="dark"] body.offline-orders-page .offline-cost-card .button-dark {
  background:#2c3f4d!important;
  border:1px solid #465f71!important;
  color:#eef3f6!important;
}

/* ----- Created offline orders list ------------------------------------- */
html[data-app-theme="dark"] body.offline-orders-page .offline-orders-list {
  gap:10px!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-orders-toolbar,
html[data-app-theme="dark"] body.offline-orders-page .offline-orders-table-wrap,
html[data-app-theme="dark"] body.offline-orders-page .offline-orders-footer {
  background:#151f28!important;
  border-color:#2b3d4b!important;
  box-shadow:none!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-orders-search input[type="search"] {
  background:#111a22!important;
  border-color:#344958!important;
  color:#dce5ec!important;
  -webkit-text-fill-color:#dce5ec!important;
}
html[data-app-theme="dark"] body.offline-orders-page .table-settings-button {
  background:#192630!important;
  border-color:#344958!important;
  color:#aab8c4!important;
}
html[data-app-theme="dark"] body.offline-orders-page .table-settings-button:hover {
  background:#22333f!important;
  border-color:#496174!important;
  color:#eef3f6!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-orders-table {
  background:#151f28!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-orders-table th {
  background:#1c2a35!important;
  color:#aebbc6!important;
  border-color:#30424f!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-orders-table td {
  background:#151f28!important;
  color:#b8c5ce!important;
  border-color:#273845!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-orders-table tbody tr:hover td {
  background:#1b2934!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-orders-table th[data-col="order_number"] {
  background:#1c2a35!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-orders-table td[data-col="order_number"] {
  background:#151f28!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-orders-table tbody tr:hover td[data-col="order_number"] {
  background:#1b2934!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-sort__indicator::before,
html[data-app-theme="dark"] body.offline-orders-page .offline-sort__indicator::after {
  color:#617483!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-sort.is-active.is-asc .offline-sort__indicator::before,
html[data-app-theme="dark"] body.offline-orders-page .offline-sort.is-active.is-desc .offline-sort__indicator::after {
  color:#c4d0d9!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-order-number,
html[data-app-theme="dark"] body.offline-orders-page .offline-order-date,
html[data-app-theme="dark"] body.offline-orders-page .offline-table-product b {
  color:#e5ecf1!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-order-number {
  border-bottom-color:#5a7182!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-order-number:hover {
  color:#fff!important;
  border-bottom-color:#a9bcc9!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-table-product small,
html[data-app-theme="dark"] body.offline-orders-page .offline-orders-table td > small,
html[data-app-theme="dark"] body.offline-orders-page .offline-comment {
  color:#8294a2!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-table-product + .offline-table-product {
  border-top-color:#30424f!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-paid-toggle span {
  background:rgba(239,127,134,.10)!important;
  color:#ef9ba1!important;
  border:1px solid rgba(239,127,134,.22)!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-paid-toggle input:checked + span {
  background:rgba(114,201,154,.10)!important;
  color:#8dd6aa!important;
  border-color:rgba(114,201,154,.22)!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-order-delete {
  background:#192630!important;
  border-color:#344958!important;
  color:#92a4b1!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-order-delete:hover {
  background:rgba(239,127,134,.11)!important;
  border-color:rgba(239,127,134,.34)!important;
  color:#ef9ba1!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-orders-footer {
  color:#8294a2!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-orders-footer select,
html[data-app-theme="dark"] body.offline-orders-page .offline-orders-pagination a {
  background:#17242e!important;
  border-color:#304452!important;
  color:#aebbc6!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-orders-pagination a:hover {
  background:#22333f!important;
  color:#eef3f6!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-orders-pagination a.is-active {
  background:#304656!important;
  border-color:#4a6578!important;
  color:#f2f5f7!important;
}

/* Column settings modal is part of the offline-order workflow too. */
html[data-app-theme="dark"] body.offline-orders-page .offline-column-item {
  background:#17242e!important;
  border-color:#344958!important;
  box-shadow:none!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-column-item > strong {
  color:#dce5ec!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-column-drag {
  background:#22323e!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-column-drag i {
  background:#8295a3!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-column-toggle {
  background:#1b2a35!important;
  border-color:#3c5364!important;
  color:#b8c8d4!important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-column-toggle:hover {
  background:#253744!important;
  border-color:#587287!important;
  color:#eef3f6!important;
}


/* V545 · Orders, unit economics and return-window dark refinement. */
html[data-app-theme="dark"] body.app-modern-shell .main-nav-submenu>a.active,
html[data-app-theme="dark"] body.app-modern-shell .main-nav-submenu>a[aria-current="page"]{
  background:#24323e!important;color:#f0f4f7!important;box-shadow:inset 0 0 0 1px #344754!important;
}
html[data-app-theme="dark"] body.app-modern-shell .main-nav-submenu>a.active strong{color:#f4f7f9!important}
html[data-app-theme="dark"] body.app-modern-shell .main-nav-submenu>a.active small{color:#a9b6c1!important}

/* Marketplace orders: remove the remaining light canvas and make every layer explicit. */
html[data-app-theme="dark"] body.orders-modern-body{--om-border:#2b3b48!important;--om-muted:#8f9daa!important;--om-purple:#e7edf2!important;background:#0f151c!important}
html[data-app-theme="dark"] body.orders-modern-body .orders-page-heading,
html[data-app-theme="dark"] body.orders-modern-body .orders-shell{color:#dce5ec!important}
html[data-app-theme="dark"] body.orders-modern-body .orders-page-heading h1{color:#edf2f5!important}
html[data-app-theme="dark"] body.orders-modern-body .orders-page-heading p{color:#93a2ae!important}
html[data-app-theme="dark"] body.orders-modern-body :is(.orders-region-switch,.orders-metric-card,.orders-side-tabs,.orders-main,.orders-status-tabs,.orders-filter-form,.orders-filter-chips,.orders-toolbar,.orders-supply-actions,.orders-table-wrap,.orders-footer){
  background:#17212a!important;border-color:#2b3b48!important;color:#dce5ec!important;box-shadow:none!important;
}
html[data-app-theme="dark"] body.orders-modern-body .orders-main{overflow:hidden!important}
html[data-app-theme="dark"] body.orders-modern-body .orders-metric-card{background:linear-gradient(180deg,#18232d 0%,#16212a 100%)!important}
html[data-app-theme="dark"] body.orders-modern-body .orders-metric-card::after{background:#202e39!important;box-shadow:inset 0 0 0 1px #324553!important}
html[data-app-theme="dark"] body.orders-modern-body .orders-metric-icon{color:#a7b5c0!important}
html[data-app-theme="dark"] body.orders-modern-body .orders-metric-content h3{color:#b7c3cd!important}
html[data-app-theme="dark"] body.orders-modern-body .orders-metric-content strong{color:#f0f4f7!important}
html[data-app-theme="dark"] body.orders-modern-body .orders-metric-content small,
html[data-app-theme="dark"] body.orders-modern-body .orders-metric-updated{color:#8696a4!important}
html[data-app-theme="dark"] body.orders-modern-body .orders-side-tab{color:#9aa9b6!important}
html[data-app-theme="dark"] body.orders-modern-body .orders-side-tab:hover{background:#1f2d38!important;color:#e3eaf0!important}
html[data-app-theme="dark"] body.orders-modern-body .orders-side-tab.active{background:#24333f!important;color:#f1f5f7!important;box-shadow:inset 0 0 0 1px #3b5161!important}
html[data-app-theme="dark"] body.orders-modern-body .orders-side-tab span{background:#263541!important;color:#aab8c4!important}
html[data-app-theme="dark"] body.orders-modern-body .orders-side-tab.active span{background:#344957!important;color:#eaf0f4!important}
html[data-app-theme="dark"] body.orders-modern-body .orders-status-tab{background:#19252f!important;border-color:#30424f!important;color:#9eacb8!important}
html[data-app-theme="dark"] body.orders-modern-body .orders-status-tab:hover{background:#21303b!important;color:#dfe7ed!important}
html[data-app-theme="dark"] body.orders-modern-body .orders-status-tab.active{background:#283845!important;border-color:#445a69!important;color:#f0f4f7!important}
html[data-app-theme="dark"] body.orders-modern-body .orders-filter-form{background:#141e26!important}
html[data-app-theme="dark"] body.orders-modern-body .orders-filter summary,
html[data-app-theme="dark"] body.orders-modern-body .orders-search,
html[data-app-theme="dark"] body.orders-modern-body .orders-refresh{background:#18242d!important;border-color:#324451!important;color:#aebbc6!important}
html[data-app-theme="dark"] body.orders-modern-body .orders-filter summary:hover,
html[data-app-theme="dark"] body.orders-modern-body .orders-refresh:hover{background:#22313c!important;border-color:#465c6b!important;color:#edf2f5!important}
html[data-app-theme="dark"] body.orders-modern-body .orders-search input{color:#e1e8ed!important;-webkit-text-fill-color:#e1e8ed!important}
html[data-app-theme="dark"] body.orders-modern-body .orders-search input::placeholder{color:#748593!important;-webkit-text-fill-color:#748593!important}
html[data-app-theme="dark"] body.orders-modern-body .orders-filter__menu{background:#1b2832!important;border-color:#344754!important;color:#c9d4dc!important;box-shadow:0 18px 42px rgba(0,0,0,.32)!important}
html[data-app-theme="dark"] body.orders-modern-body .orders-filter__menu label:hover{background:#243541!important}
html[data-app-theme="dark"] body.orders-modern-body .orders-table,
html[data-app-theme="dark"] body.orders-modern-body .orders-table td{background:#17212a!important;color:#c9d4dc!important;border-color:#293a46!important}
html[data-app-theme="dark"] body.orders-modern-body .orders-table th{background:#1d2a34!important;color:#9dabb7!important;border-color:#30414e!important;box-shadow:0 1px 0 #30414e!important}
html[data-app-theme="dark"] body.orders-modern-body .orders-table tbody tr:hover td{background:#1d2b35!important}
html[data-app-theme="dark"] body.orders-modern-body .orders-table :is(strong,b){color:#e7edf2!important}
html[data-app-theme="dark"] body.orders-modern-body .orders-table small{color:#8797a4!important}
html[data-app-theme="dark"] body.orders-modern-body .orders-sort.is-active{color:#bfcad3!important}
html[data-app-theme="dark"] body.orders-modern-body .orders-reset{color:#b7c3cd!important}
html[data-app-theme="dark"] body.orders-modern-body .orders-reset:hover{color:#f0f4f7!important}
html[data-app-theme="dark"] body.orders-modern-body .orders-footer :is(select,input){background:#18242d!important;border-color:#324451!important;color:#dce5ec!important}
html[data-app-theme="dark"] body.orders-modern-body .button-light{background:#1b2832!important;border-color:#344754!important;color:#d7e0e7!important}
html[data-app-theme="dark"] body.orders-modern-body .button-light:hover{background:#253541!important;border-color:#486071!important;color:#fff!important}

/* Unit economics: KPI cards and filter/table layers no longer flash white. */
html[data-app-theme="dark"] body.orders-unit-page{--ue-line:#2b3b48!important;--ue-muted:#8e9ca8!important;--ue-text:#dce5ec!important;--ue-soft:#1d2a34!important;background:#0f151c!important}
html[data-app-theme="dark"] body.orders-unit-page .main-content{background:#0f151c!important}
html[data-app-theme="dark"] body.orders-unit-page .ue-heading h1{color:#edf2f5!important}
html[data-app-theme="dark"] body.orders-unit-page .ue-heading p{color:#93a2ae!important}
html[data-app-theme="dark"] body.orders-unit-page .ue-refresh{background:#18242d!important;border-color:#324451!important;color:#d8e1e8!important;box-shadow:none!important}
html[data-app-theme="dark"] body.orders-unit-page .ue-refresh:hover{background:#22313c!important;border-color:#465c6b!important}
html[data-app-theme="dark"] body.orders-unit-page .ue-refresh small{color:#8797a4!important}
html[data-app-theme="dark"] body.orders-unit-page .ue-summary article{background:linear-gradient(180deg,#18232d,#16212a)!important;border-color:#2b3b48!important;color:#e7edf2!important;box-shadow:none!important}
html[data-app-theme="dark"] body.orders-unit-page .ue-summary article>span{background:#202e39!important;color:#aebbc6!important;box-shadow:inset 0 0 0 1px #324553!important}
html[data-app-theme="dark"] body.orders-unit-page .ue-summary small{color:#a4b1bc!important}
html[data-app-theme="dark"] body.orders-unit-page .ue-summary strong{color:#f0f4f7!important}
html[data-app-theme="dark"] body.orders-unit-page .ue-summary p{color:#81919f!important}
html[data-app-theme="dark"] body.orders-unit-page :is(.ue-filter-panel,.ue-table-panel){background:#17212a!important;border-color:#2b3b48!important;box-shadow:none!important}
html[data-app-theme="dark"] body.orders-unit-page .ue-filter-panel form>header{border-color:#2b3b48!important}
html[data-app-theme="dark"] body.orders-unit-page .ue-filter-panel header strong{color:#e4ebf0!important}
html[data-app-theme="dark"] body.orders-unit-page .ue-filter-panel header a{color:#9babb8!important}
html[data-app-theme="dark"] body.orders-unit-page .ue-search input,
html[data-app-theme="dark"] body.orders-unit-page .ue-date-range input,
html[data-app-theme="dark"] body.orders-unit-page .ue-pagination select{background:#121c24!important;border-color:#324451!important;color:#d8e1e8!important;color-scheme:dark}
html[data-app-theme="dark"] body.orders-unit-page .ue-search input::placeholder{color:#748593!important}
html[data-app-theme="dark"] body.orders-unit-page .ue-filter-group{border-color:#293a46!important}
html[data-app-theme="dark"] body.orders-unit-page .ue-filter-group summary{color:#b7c3cd!important}
html[data-app-theme="dark"] body.orders-unit-page .ue-filter-group summary:hover{background:#1d2b35!important;color:#edf2f5!important}
html[data-app-theme="dark"] body.orders-unit-page .ue-filter-group>div>label{color:#9cabb7!important}
html[data-app-theme="dark"] body.orders-unit-page .ue-apply{background:#30414e!important;color:#edf2f5!important;border:1px solid #405665!important}
html[data-app-theme="dark"] body.orders-unit-page .ue-apply:hover{background:#3a4d5b!important}
html[data-app-theme="dark"] body.orders-unit-page :is(.ue-table-head,.ue-order-main,.ue-order-details,.ue-equation,.ue-products-detail,.ue-expenses-detail,.ue-expenses-detail>footer){background:#17212a!important;border-color:#293a46!important;color:#d4dde4!important}
html[data-app-theme="dark"] body.orders-unit-page .ue-table-head{background:#1d2a34!important;color:#9dabb7!important}
html[data-app-theme="dark"] body.orders-unit-page .ue-order-main:hover,
html[data-app-theme="dark"] body.orders-unit-page .ue-order.is-open .ue-order-main{background:#1d2b35!important}
html[data-app-theme="dark"] body.orders-unit-page .ue-product-image,
html[data-app-theme="dark"] body.orders-unit-page .ue-detail-image{background:#202d37!important;border-color:#354958!important}
html[data-app-theme="dark"] body.orders-unit-page .ue-order-main :is(strong,b),
html[data-app-theme="dark"] body.orders-unit-page .ue-products-detail :is(strong,h3),
html[data-app-theme="dark"] body.orders-unit-page .ue-expenses-detail :is(strong,h3){color:#e5ecf1!important}
html[data-app-theme="dark"] body.orders-unit-page .ue-equation>article{background:#1b2832!important;border-color:#344754!important;color:#dce5ec!important}
html[data-app-theme="dark"] body.orders-unit-page .ue-equation .ue-result.is-positive{background:#183127!important;color:#82d1a4!important}
html[data-app-theme="dark"] body.orders-unit-page .ue-equation .ue-result.is-negative{background:#351f23!important;color:#f09aa1!important}
html[data-app-theme="dark"] body.orders-unit-page .ue-equation .ue-result.is-zero{background:#202c36!important;color:#b8c3cc!important}
html[data-app-theme="dark"] body.orders-unit-page .ue-pending-card{background:#2b261b!important;border-color:#5a4b28!important;color:#d8c89c!important}
html[data-app-theme="dark"] body.orders-unit-page .ue-pending-card>span{background:#342d1e!important;color:#e8c96f!important}
html[data-app-theme="dark"] body.orders-unit-page .ue-pending-card p,
html[data-app-theme="dark"] body.orders-unit-page .ue-pending-card ul{color:#c3b587!important}
html[data-app-theme="dark"] body.orders-unit-page .ue-expenses-detail>div{border-color:#293a46!important}
html[data-app-theme="dark"] body.orders-unit-page .ue-expenses-detail>div i{background:#23313c!important;color:#9eacb8!important}
html[data-app-theme="dark"] body.orders-unit-page .ue-products-detail dd{color:#c6d0d8!important}
html[data-app-theme="dark"] body.orders-unit-page .ue-products-detail dt,
html[data-app-theme="dark"] body.orders-unit-page .ue-expenses-detail small{color:#8393a0!important}
html[data-app-theme="dark"] body.orders-unit-page .ue-pagination a{background:#18242d!important;border-color:#324451!important;color:#aebbc6!important}
html[data-app-theme="dark"] body.orders-unit-page .ue-pagination a.is-active{background:#324654!important;border-color:#4a6171!important;color:#fff!important}

/* Return autoapproval window: same shell geometry and calmer dark surfaces. */
html[data-app-theme="dark"] .return-autoapproval-host{background:transparent!important;color-scheme:dark}
html[data-app-theme="dark"] .return-autoapproval-dialog.return-dialog-card{background:#17212a!important;border-color:#344754!important;color:#dce5ec!important;box-shadow:0 24px 70px rgba(0,0,0,.42)!important}
html[data-app-theme="dark"] .return-autoapproval-dialog.return-dialog-card>.app-window-titlebar{background:#1c2934!important;border-color:#344754!important;color:#edf2f5!important}
html[data-app-theme="dark"] .return-autoapproval-dialog .eyebrow{color:#8797a4!important}
html[data-app-theme="dark"] .return-autoapproval-dialog>p{color:#a0aeb9!important}
html[data-app-theme="dark"] .return-autoapproval-dialog .return-rule-form{background:#141e26!important;border-color:#30414e!important}
html[data-app-theme="dark"] .return-autoapproval-dialog .return-rule-form label>span{color:#a8b5c0!important}
html[data-app-theme="dark"] .return-autoapproval-dialog .return-rule-form :is(input,select){background:#101a22!important;border-color:#344754!important;color:#dce5ec!important;color-scheme:dark}
html[data-app-theme="dark"] .return-autoapproval-dialog .return-rule-form :is(input,select)::placeholder{color:#748593!important}
html[data-app-theme="dark"] .return-autoapproval-dialog .return-rule-list>div{border-color:#293a46!important}


/* V547 · dark shell navigation final override */
html[data-app-theme="dark"] body.app-modern-shell .main-nav-submenu {
  background:#1b2731!important;
  border-color:#344957!important;
  box-shadow:0 20px 55px rgba(0,0,0,.38)!important;
}
html[data-app-theme="dark"] body.app-modern-shell .main-nav-submenu > a {
  background:transparent!important;
  color:#b7c3cd!important;
}
html[data-app-theme="dark"] body.app-modern-shell .main-nav-submenu > a strong { color:#dfe6eb!important; }
html[data-app-theme="dark"] body.app-modern-shell .main-nav-submenu > a small { color:#8495a2!important; }
html[data-app-theme="dark"] body.app-modern-shell .main-nav-submenu > a:hover {
  background:#22323d!important;
  color:#f0f4f7!important;
}
html[data-app-theme="dark"] body.app-modern-shell .main-nav-submenu > a:hover strong { color:#f0f4f7!important; }
html[data-app-theme="dark"] body.app-modern-shell .main-nav-submenu > a:hover small { color:#a7b5c0!important; }
html[data-app-theme="dark"] body.app-modern-shell .main-nav-submenu > a.active,
html[data-app-theme="dark"] body.app-modern-shell .main-nav-submenu > a[aria-current="page"] {
  background:#263642!important;
  color:#f2f5f7!important;
  box-shadow:inset 0 0 0 1px #3d5362!important;
}
html[data-app-theme="dark"] body.app-modern-shell .main-nav-submenu > a.active strong,
html[data-app-theme="dark"] body.app-modern-shell .main-nav-submenu > a[aria-current="page"] strong { color:#f4f7f9!important; }
html[data-app-theme="dark"] body.app-modern-shell .main-nav-submenu > a.active small,
html[data-app-theme="dark"] body.app-modern-shell .main-nav-submenu > a[aria-current="page"] small { color:#a9b6c1!important; }

/* ========================================================================== 
   V548 · Pricing + price-file import dark-theme refinement.
   Fixes the remaining light category cards/import canvas and low-contrast
   nested table text left by light-only marketplace heading/table rules.
   ========================================================================== */
html[data-app-theme="dark"] body.pricing-section-body {
  --pricing-v548-panel:#161f28;
  --pricing-v548-panel-2:#1b2631;
  --pricing-v548-panel-3:#22303c;
  --pricing-v548-line:#2b3946;
  --pricing-v548-line-strong:#3a4a59;
  --pricing-v548-text:#e5ebf0;
  --pricing-v548-muted:#99a7b4;
}
html[data-app-theme="dark"] body.pricing-section-body .pricing-app {
  background:var(--pricing-v548-panel)!important;
  border-color:var(--pricing-v548-line)!important;
  box-shadow:0 12px 34px rgba(0,0,0,.20)!important;
}
html[data-app-theme="dark"] body.pricing-section-body .pricing-sidebar {
  background:linear-gradient(180deg,#17212b 0%,#151e27 100%)!important;
  border-color:var(--pricing-v548-line)!important;
  color:var(--pricing-v548-text)!important;
}
html[data-app-theme="dark"] body.pricing-section-body :is(.filters-title,.filter-card__title,.choice-line,.switch-filter strong) {
  color:var(--pricing-v548-text)!important;
}
html[data-app-theme="dark"] body.pricing-section-body :is(.choice-line small,.switch-filter small,.filter-hint,.size-price-capability-note) {
  color:var(--pricing-v548-muted)!important;
}
html[data-app-theme="dark"] body.pricing-section-body .filter-card {
  background:#18232d!important;
  border-color:var(--pricing-v548-line)!important;
}
html[data-app-theme="dark"] body.pricing-section-body .filter-card__title {
  background:#1b2732!important;
  border-color:var(--pricing-v548-line)!important;
}
html[data-app-theme="dark"] body.pricing-section-body .filter-card__title:hover { background:#21303c!important; }
html[data-app-theme="dark"] body.pricing-section-body .filter-card__body { background:#17212a!important; }
html[data-app-theme="dark"] body.pricing-section-body .pricing-category-node {
  background:#19242e!important;
  border-color:#30404d!important;
}
html[data-app-theme="dark"] body.pricing-section-body .pricing-category-node > summary {
  background:#1b2732!important;
  color:#dce4ea!important;
}
html[data-app-theme="dark"] body.pricing-section-body .pricing-category-node > summary:hover { background:#22313d!important; }
html[data-app-theme="dark"] body.pricing-section-body .pricing-category-node__children {
  background:#151f28!important;
  border-color:#2a3945!important;
}
html[data-app-theme="dark"] body.pricing-section-body .pricing-category-choice,
html[data-app-theme="dark"] body.pricing-section-body .pricing-category-choice--all span,
html[data-app-theme="dark"] body.pricing-section-body .pricing-category-choice--child span { color:#cbd5de!important; }
html[data-app-theme="dark"] body.pricing-section-body .pricing-category-choice:hover { background:#202d38!important; }
html[data-app-theme="dark"] body.pricing-section-body .pricing-category-choice--child::before { border-color:#50606e!important; }
html[data-app-theme="dark"] body.pricing-section-body .switch-filter i { background:#34424f!important; }
html[data-app-theme="dark"] body.pricing-section-body .switch-filter i::after { background:#dbe2e8!important; box-shadow:0 2px 7px rgba(0,0,0,.34)!important; }
html[data-app-theme="dark"] body.pricing-section-body .pricing-topline {
  background:#17212a!important;
  border-color:var(--pricing-v548-line)!important;
}
html[data-app-theme="dark"] body.pricing-section-body :is(.pricing-search,.column-settings-button) {
  background:#111a22!important;
  border-color:#31414e!important;
  color:#dce4ea!important;
}
html[data-app-theme="dark"] body.pricing-section-body .column-settings-button:hover { background:#202d38!important; border-color:#445767!important; }
html[data-app-theme="dark"] body.pricing-section-body :is(.table-count,.rows-count-form,.page-dots) { color:#99a7b4!important; }
html[data-app-theme="dark"] body.pricing-section-body .table-count strong { color:#e8edf1!important; }
html[data-app-theme="dark"] body.pricing-section-body .mode-note--wb {
  background:rgba(214,130,223,.12)!important;
  border-color:rgba(214,130,223,.28)!important;
  color:#d9b2df!important;
}
html[data-app-theme="dark"] body.pricing-section-body .mode-note--wb strong { color:#ecbff0!important; }
html[data-app-theme="dark"] body.pricing-section-body .pricing-table-wrap,
html[data-app-theme="dark"] body.pricing-section-body .pricing-table {
  background:#151e27!important;
  border-color:var(--pricing-v548-line)!important;
}
html[data-app-theme="dark"] body.pricing-section-body .pricing-table thead th {
  background:#1a2530!important;
  border-color:#293845!important;
  color:#abb8c4!important;
}
html[data-app-theme="dark"] body.pricing-section-body .pricing-table :is(.pricing-sort-control,.table-sort),
html[data-app-theme="dark"] body.pricing-section-body .pricing-table :is(.pricing-sort-control,.table-sort):not(.is-active) :is(span,strong,b,label,i,svg,.app-icon,.pricing-sort-arrows) {
  color:#aebac6!important;
}
html[data-app-theme="dark"] body.pricing-section-body .pricing-table.marketplace-table--ozon :is(.pricing-sort-control,.table-sort).is-active,
html[data-app-theme="dark"] body.pricing-section-body .pricing-table.marketplace-table--ozon :is(.pricing-sort-control,.table-sort).is-active :is(span,strong,b,label,i,svg,.app-icon,.pricing-sort-arrows) { color:#a9c4ff!important; }
html[data-app-theme="dark"] body.pricing-section-body .pricing-table.marketplace-table--wildberries :is(.pricing-sort-control,.table-sort).is-active,
html[data-app-theme="dark"] body.pricing-section-body .pricing-table.marketplace-table--wildberries :is(.pricing-sort-control,.table-sort).is-active :is(span,strong,b,label,i,svg,.app-icon,.pricing-sort-arrows) { color:#e5a8eb!important; }
html[data-app-theme="dark"] body.pricing-section-body .pricing-table.marketplace-table--yandex :is(.pricing-sort-control,.table-sort).is-active,
html[data-app-theme="dark"] body.pricing-section-body .pricing-table.marketplace-table--yandex :is(.pricing-sort-control,.table-sort).is-active :is(span,strong,b,label,i,svg,.app-icon,.pricing-sort-arrows) { color:#ead58f!important; }
html[data-app-theme="dark"] body.pricing-section-body .pricing-table tbody td {
  background:#151e27!important;
  border-color:#24323e!important;
  color:#cfd8e0!important;
}
html[data-app-theme="dark"] body.pricing-section-body .pricing-table tbody tr:hover td { background:#1b2934!important; }
html[data-app-theme="dark"] body.pricing-section-body .pricing-table tbody tr:is(.is-changed,.price-row--changed) td { background:#1b2a36!important; }
html[data-app-theme="dark"] body.pricing-section-body .pricing-table tbody tr.is-loss td { background:#2a1d22!important; }
html[data-app-theme="dark"] body.pricing-section-body .pricing-table :is(.mono-value,.muted-value,.cell-subline,.financial-stack__row small,.cost-editor-button span,.size-price-mode-chip small) {
  color:#8f9daa!important;
}
html[data-app-theme="dark"] body.pricing-section-body .pricing-table :is(.product-name-cell strong,td>strong,.financial-stack__row strong) { color:#dfe6ec!important; }
html[data-app-theme="dark"] body.pricing-section-body .pricing-table .metric-positive { color:#79cf9e!important; }
html[data-app-theme="dark"] body.pricing-section-body .pricing-table .metric-negative { color:#ef9198!important; }
html[data-app-theme="dark"] body.pricing-section-body .pricing-table .metric-zero { color:#909daa!important; }
html[data-app-theme="dark"] body.pricing-section-body :is(.price-pill,.price-cell-input,.money-cell,.cost-editor-button,.size-price-mode-chip) {
  background:#111a22!important;
  border-color:#31414e!important;
  color:#dce4ea!important;
}
html[data-app-theme="dark"] body.pricing-section-body .cost-editor-button strong { color:#e6ebf0!important; }
html[data-app-theme="dark"] body.pricing-section-body .cost-editor-button:hover { background:#202d38!important; border-color:#5a6d7c!important; }
html[data-app-theme="dark"] body.pricing-section-body .percent-input > span { color:#93a0ad!important; }
html[data-app-theme="dark"] body.pricing-section-body :is(.currency-chip--wb,.status-chip--wb,.store-chip--wb) {
  background:rgba(214,130,223,.13)!important;
  border-color:rgba(214,130,223,.30)!important;
  color:#e4a9e9!important;
}
html[data-app-theme="dark"] body.pricing-section-body .pricing-footer { border-color:var(--pricing-v548-line)!important; }
html[data-app-theme="dark"] body.pricing-section-body .rows-count-form select { background:#17232c!important; border-color:#334452!important; color:#d8e0e6!important; }
html[data-app-theme="dark"] body.pricing-section-body .page-settings-button { background:#17232c!important; border-color:#334452!important; color:#cbd5dd!important; }
html[data-app-theme="dark"] body.pricing-section-body .page-settings-button:hover { background:#21303c!important; color:#edf2f5!important; }
html[data-app-theme="dark"] body.pricing-section-body .market-switch__item { color:#8997a4!important; }
html[data-app-theme="dark"] body.pricing-section-body .market-switch__item.active { color:#e7edf2!important; }
html[data-app-theme="dark"] body.pricing-section-body .wb-hk-origin-toolbar {
  background:#17212a!important;border-color:#30404d!important;box-shadow:none!important;
}
html[data-app-theme="dark"] body.pricing-section-body .wb-hk-origin-toolbar__label { color:#aab6c1!important; }
html[data-app-theme="dark"] body.pricing-section-body .wb-hk-origin-switch { background:#111a22!important;border-color:#30404d!important; }
html[data-app-theme="dark"] body.pricing-section-body .wb-hk-origin-switch__button { color:#9facb8!important; }
html[data-app-theme="dark"] body.pricing-section-body .wb-hk-origin-switch__button:hover { color:#e5ebef!important; }
html[data-app-theme="dark"] body.pricing-section-body .wb-hk-origin-switch__button.is-active { background:#2a3744!important;color:#edf2f5!important;box-shadow:none!important; }
html[data-app-theme="dark"] body.pricing-section-body .wb-hk-origin-toolbar__hint { color:#8f9daa!important; }

html[data-app-theme="dark"] body.pfi-page {
  --pfi-ink:#edf2f6;
  --pfi-muted:#9fabb7;
  background:var(--dark-main)!important;
  color:var(--dark-text)!important;
}
html[data-app-theme="dark"] body.pfi-page.pfi-page--wb { --pfi-accent:#d682df; --pfi-accent-dark:#e5a8eb; }
html[data-app-theme="dark"] body.pfi-page.pfi-page--ozon { --pfi-accent:#7da7ff; --pfi-accent-dark:#a9c4ff; }
html[data-app-theme="dark"] body.pfi-page.pfi-page--yandex { --pfi-accent:#e0c366; --pfi-accent-dark:#ead58f; }
html[data-app-theme="dark"] body.pfi-page .pfi-shell {
  border-color:#2b3946!important;
  background:radial-gradient(ellipse 65% 42% at 50% 8%,rgba(var(--pfi-accent-rgb),.09),transparent 72%),linear-gradient(180deg,#17212a 0%,#151e27 100%)!important;
  box-shadow:0 18px 52px rgba(0,0,0,.24)!important;
}
html[data-app-theme="dark"] body.pfi-page .pfi-back {
  background:#1c2833!important;border-color:#32424f!important;color:var(--pfi-accent)!important;box-shadow:none!important;
}
html[data-app-theme="dark"] body.pfi-page .pfi-back:hover { background:#243440!important;color:var(--pfi-accent-dark)!important; }
html[data-app-theme="dark"] body.pfi-page :is(.pfi-title,.pfi-drop-title) { color:#eef2f5!important; }
html[data-app-theme="dark"] body.pfi-page :is(.pfi-subtitle,.pfi-drop-meta) { color:#9fabb7!important; }
html[data-app-theme="dark"] body.pfi-page .pfi-drop-action { color:#cbd4dc!important; }
html[data-app-theme="dark"] body.pfi-page .pfi-organization {
  background:rgba(var(--pfi-accent-rgb),.12)!important;color:var(--pfi-accent-dark)!important;border:1px solid rgba(var(--pfi-accent-rgb),.22)!important;
}
html[data-app-theme="dark"] body.pfi-page .pfi-dropzone {
  border-color:rgba(var(--pfi-accent-rgb),.34)!important;
  background:radial-gradient(circle at 50% 45%,rgba(var(--pfi-accent-rgb),.07),transparent 36%),#141e27!important;
}
html[data-app-theme="dark"] body.pfi-page .pfi-dropzone:hover,
html[data-app-theme="dark"] body.pfi-page .pfi-dropzone.is-dragover {
  border-color:rgba(var(--pfi-accent-rgb),.58)!important;
  background:radial-gradient(circle at 50% 45%,rgba(var(--pfi-accent-rgb),.11),transparent 40%),#18242e!important;
}
html[data-app-theme="dark"] body.pfi-page .pfi-upload-icon,
html[data-app-theme="dark"] body.pfi-page .pfi-security-icon { background:rgba(var(--pfi-accent-rgb),.13)!important;color:var(--pfi-accent-dark)!important; }
html[data-app-theme="dark"] body.pfi-page .pfi-option {
  background:#1a2630!important;border:1px solid #30404d!important;color:#bac5ce!important;
}
html[data-app-theme="dark"] body.pfi-page .pfi-security { border-color:#2a3743!important;color:#a8b3bd!important; }
html[data-app-theme="dark"] body.pfi-page .pfi-state :is(.price-upload-result,.price-upload-file) {
  background:#17222c!important;border-color:#30404d!important;color:#dce5ec!important;
}
html[data-app-theme="dark"] body.pfi-page .pfi-state :is(.price-upload-result small,.price-upload-file small,.change-preview-line__old) { color:#95a3af!important; }

/* V549 · dark filter chips + loading skeleton refinement */
html[data-app-theme="dark"] .app-active-filters {
  background:linear-gradient(180deg,#17212a 0%,#151e27 100%)!important;
  border-color:#2b3b48!important;
  box-shadow:0 14px 34px rgba(0,0,0,.18)!important;
}
html[data-app-theme="dark"] .app-active-filters > strong {
  color:#93a2ae!important;
}
html[data-app-theme="dark"] .app-filter-chip-list {
  gap:8px!important;
}
html[data-app-theme="dark"] .app-filter-chip {
  background:linear-gradient(180deg,#202d38 0%,#1a2630 100%)!important;
  border-color:#344754!important;
  color:#dce5ec!important;
  box-shadow:none!important;
}
html[data-app-theme="dark"] .app-filter-chip span {
  color:#dce5ec!important;
}
html[data-app-theme="dark"] .app-filter-chip :is(b,svg,.app-icon) {
  color:#91a1ae!important;
}
html[data-app-theme="dark"] .app-filter-chip:hover {
  background:linear-gradient(180deg,#263642 0%,#20303b 100%)!important;
  border-color:#4c6272!important;
  color:#f1f5f7!important;
}
html[data-app-theme="dark"] .app-filter-chip:hover :is(b,svg,.app-icon) {
  color:#cbd6de!important;
}
html[data-app-theme="dark"] .app-filter-clear {
  color:#b8c4ce!important;
}
html[data-app-theme="dark"] .app-filter-clear:hover {
  color:#f0f4f7!important;
}

html[data-app-theme="dark"] :is(
  .page-loading-panel,
  .page-loading-toolbar--standalone,
  .page-loading-filter-panel,
  .page-loading-order-summary article,
  .page-loading-unit-list,
  .page-loading-unit-row,
  .page-loading-metrics article,
  .page-loading-chart-card,
  .page-loading-donut-card,
  .page-loading-tree-groups article,
  .page-loading-settings-card,
  .page-loading-form-card,
  .page-loading-form-aside,
  .page-loading-upload-card,
  .page-loading-fbo-form,
  .page-loading-detail-sections article,
  .page-loading-integration-grid article,
  .page-loading-content-grid article,
  .page-loading-profile-layout > aside,
  .page-loading-profile-main,
  .page-loading-chat-thread,
  .page-loading-chat-list > article,
  .page-loading-review-card,
  .page-loading-tree-panel,
  .page-loading-constructor > aside
) {
  background:#17212a!important;
  border-color:#2b3b48!important;
  box-shadow:none!important;
}
html[data-app-theme="dark"] :is(.page-loading-toolbar,.page-loading-chat-thread > header,.page-loading-chat-thread > footer) {
  background:#1a2630!important;
  border-color:#2b3b48!important;
}
html[data-app-theme="dark"] :is(.page-loading-row,.page-loading-unit-row,.page-loading-chat-list > article,.page-loading-review-card,.page-loading-setting-row,.page-loading-tree-node,.page-loading-constructor > aside > div) {
  border-color:#263744!important;
}
html[data-app-theme="dark"] :is(.page-loading-chart,.page-loading-messages,.page-loading-canvas) {
  background:#121a22!important;
}
html[data-app-theme="dark"] .page-loading-chart {
  border-left-color:#2d3f4c!important;
  border-bottom-color:#2d3f4c!important;
  background:repeating-linear-gradient(to bottom,transparent 0,transparent 46px,#1a2630 47px)!important;
}
html[data-app-theme="dark"] .page-loading-chart > i {
  background:#263744!important;
}
html[data-app-theme="dark"] .page-loading-chart-line {
  background:#415462!important;
}
html[data-app-theme="dark"] .page-loading-donut {
  background:conic-gradient(#253541 0 34%,#2d3f4c 34% 58%,#22313c 58% 78%,#314552 78% 100%)!important;
}
html[data-app-theme="dark"] .page-loading-donut::before {
  background:#17212a!important;
}
html[data-app-theme="dark"] .page-loading-chat-list {
  border-right-color:#2b3b48!important;
}
html[data-app-theme="dark"] .page-loading-chat-thread > footer {
  border-top-color:#2b3b48!important;
}
html[data-app-theme="dark"] .page-loading-message.is-own {
  background:#233341!important;
}
html[data-app-theme="dark"] .page-loading-constructor > aside {
  border-right-color:#2b3b48!important;
}

/* V550 · update badge + communications dark-theme polish */
html[data-app-theme="dark"] :where(body.pricing-page,body.warehouse-page,body.warehouse-tree-page,body.promotion-page,body.products-modern-body) .page-heading .data-refresh-badge,
html[data-app-theme="dark"] body.products-modern-body .data-refresh-badge,
html[data-app-theme="dark"] body.pricing-section-body .data-refresh-badge {
  background:linear-gradient(180deg,#1b2832 0%,#17222c 100%)!important;
  border-color:#334552!important;
  color:#d8e1e8!important;
  box-shadow:none!important;
}
html[data-app-theme="dark"] :where(body.pricing-page,body.warehouse-page,body.warehouse-tree-page,body.promotion-page,body.products-modern-body) .page-heading .data-refresh-badge span,
html[data-app-theme="dark"] body.pricing-section-body .data-refresh-badge span {
  color:#d8e1e8!important;
}
html[data-app-theme="dark"] :where(body.pricing-page,body.warehouse-page,body.warehouse-tree-page,body.promotion-page,body.products-modern-body) .page-heading .data-refresh-badge i,
html[data-app-theme="dark"] body.pricing-section-body .data-refresh-badge i {
  background:#67c488!important;
  box-shadow:0 0 0 4px rgba(103,196,136,.14)!important;
}
html[data-app-theme="dark"] :where(body.pricing-page,body.warehouse-page,body.warehouse-tree-page,body.promotion-page,body.products-modern-body) .page-heading .data-refresh-badge .data-refresh-tooltip,
html[data-app-theme="dark"] body.pricing-section-body .data-refresh-badge .data-refresh-tooltip {
  background:#1a2630!important;
  border-color:#344754!important;
  color:#d6dee6!important;
  box-shadow:0 18px 40px rgba(0,0,0,.34)!important;
}

html[data-app-theme="dark"] body.communications-page {
  --chat-dark-panel:#17212a;
  --chat-dark-soft:#1c2833;
  --chat-dark-hover:#22313c;
  --chat-dark-line:#2b3b48;
  --chat-dark-strong:#edf2f5;
  --chat-dark-text:#d7e0e7;
  --chat-dark-muted:#8e9daa;
}
html[data-app-theme="dark"] body.communications-page .communications-heading,
html[data-app-theme="dark"] body.communications-page .communications-heading p,
html[data-app-theme="dark"] body.communications-page .communications-heading .eyebrow {
  color:inherit!important;
}
html[data-app-theme="dark"] body.communications-page .chat-refresh {
  background:#1b2832!important;
  border-color:#344754!important;
  color:#e2e9ef!important;
}
html[data-app-theme="dark"] body.communications-page .chat-refresh:hover {
  background:#243440!important;
  border-color:#4b6272!important;
}
html[data-app-theme="dark"] body.communications-page :is(.chat-controls,.chat-workspace,.chat-list-pane,.chat-dialog-pane,.chat-product-pane,.chat-product-card,.chat-order-summary,.chat-filter-modal,.chat-confirm-modal) {
  background:var(--chat-dark-panel)!important;
  border-color:var(--chat-dark-line)!important;
  color:var(--chat-dark-text)!important;
  box-shadow:none!important;
}
html[data-app-theme="dark"] body.communications-page :is(.chat-marketplace-switch__item,.chat-view-switch__item,.chat-filter-trigger,.chat-dialog-actions button,.chat-tags-edit,.chat-pagination button,.chat-order-summary>div button,.chat-confirm-modal>header button) {
  background:#1b2832!important;
  border-color:#344754!important;
  color:#dbe3e9!important;
  box-shadow:none!important;
}
html[data-app-theme="dark"] body.communications-page :is(.chat-marketplace-switch__item b,.chat-view-switch__item b,.chat-manager-mini,.chat-status-pill,.chat-tag-pill) {
  background:#22313c!important;
  color:#c7d1d9!important;
}
html[data-app-theme="dark"] body.communications-page .chat-marketplace-switch__item:hover,
html[data-app-theme="dark"] body.communications-page .chat-view-switch__item:hover,
html[data-app-theme="dark"] body.communications-page .chat-filter-trigger:hover,
html[data-app-theme="dark"] body.communications-page .chat-dialog-actions button:hover,
html[data-app-theme="dark"] body.communications-page .chat-tags-edit:hover,
html[data-app-theme="dark"] body.communications-page .chat-pagination button:hover {
  background:var(--chat-dark-hover)!important;
  border-color:#4b6272!important;
  color:#f1f5f7!important;
}
html[data-app-theme="dark"] body.communications-page .chat-marketplace-switch__item.is-active,
html[data-app-theme="dark"] body.communications-page .chat-view-switch__item.is-active {
  background:#243440!important;
  color:#eef3f6!important;
}
html[data-app-theme="dark"] body.communications-page .chat-view-switch__item.is-active b,
html[data-app-theme="dark"] body.communications-page .chat-filter-trigger b,
html[data-app-theme="dark"] body.communications-page .chat-unread-badge {
  background:#304656!important;
  color:#f3f6f8!important;
}
html[data-app-theme="dark"] body.communications-page :is(.chat-toolbar,.chat-dialog-head,.chat-workflow-bar,.chat-pagination,.chat-composer,.chat-history-head,.chat-template-popover>header,.chat-manager-head,.chat-answer-actions,.communications-source-statuses) {
  background:var(--chat-dark-panel)!important;
  border-color:var(--chat-dark-line)!important;
  color:var(--chat-dark-text)!important;
}
html[data-app-theme="dark"] body.communications-page .chat-dialog-pane,
html[data-app-theme="dark"] body.communications-page .chat-history {
  background:#141d25!important;
}
html[data-app-theme="dark"] body.communications-page :is(.chat-search input,.chat-manager-head select,.chat-workflow-bar select,.chat-composer textarea,.chat-composer__row input,.chat-message-search input) {
  background:#121b23!important;
  border-color:#334552!important;
  color:#dce5ec!important;
}
html[data-app-theme="dark"] body.communications-page :is(.chat-search input,.chat-manager-head select,.chat-workflow-bar select,.chat-composer textarea,.chat-composer__row input,.chat-message-search input)::placeholder {
  color:#7d8d9a!important;
}
html[data-app-theme="dark"] body.communications-page :is(.chat-search__icon,.chat-manager-head>svg,.chat-result-count,.chat-list-item__organization,.chat-list-item__preview,.chat-dialog-customer small,.chat-workflow-bar>label>span,.chat-order-summary dt,.chat-context-product p,.chat-context-product__info,.chat-reset-inline) {
  color:var(--chat-dark-muted)!important;
}
html[data-app-theme="dark"] body.communications-page :is(.chat-list-item,.chat-pagination,.chat-dialog-head,.chat-workflow-bar,.chat-order-summary,.chat-context-product,.chat-confirm-modal ul,.chat-history .communications-history-bubble,.chat-template-popover,.chat-file-preview) {
  border-color:#263744!important;
}
html[data-app-theme="dark"] body.communications-page .chat-list-item {
  background:#17212a!important;
}
html[data-app-theme="dark"] body.communications-page .chat-list-item:hover {
  background:#1c2a34!important;
}
html[data-app-theme="dark"] body.communications-page .chat-list-item.is-active {
  background:#22313c!important;
  box-shadow:inset 4px 0 0 #4d6172!important;
}
html[data-app-theme="dark"] body.communications-page .chat-list-item :is(strong,.chat-result-count strong,.chat-dialog-customer strong,.chat-order-summary dd,.chat-context-product h3) {
  color:#eef2f5!important;
}
html[data-app-theme="dark"] body.communications-page .chat-empty-state>span,
html[data-app-theme="dark"] body.communications-page .chat-list-empty>span {
  background:#22313c!important;
}
html[data-app-theme="dark"] body.communications-page .chat-history .communications-history-bubble {
  background:#1b2832!important;
  color:#dbe4ea!important;
}
html[data-app-theme="dark"] body.communications-page .chat-history .communications-history-bubble.is-seller {
  background:#243440!important;
  border-color:#314654!important;
}
html[data-app-theme="dark"] body.communications-page .chat-history .communications-history-bubble.is-system {
  box-shadow:none!important;
}
html[data-app-theme="dark"] body.communications-page .chat-composer__row :is(.chat-attach-button,.chat-send-button,.chat-ai-draft) {
  background:#1b2832!important;
  border-color:#344754!important;
  color:#dbe3e9!important;
}
html[data-app-theme="dark"] body.communications-page .chat-composer__row :is(.chat-attach-button,.chat-send-button,.chat-ai-draft):hover:not(:disabled) {
  background:#253542!important;
  border-color:#506777!important;
  color:#fff!important;
}
html[data-app-theme="dark"] body.communications-page .chat-ai-draft {
  background:#211d2f!important;
  border-color:#4a3a66!important;
  color:#d4b8ff!important;
}
html[data-app-theme="dark"] body.communications-page .chat-template-popover,
html[data-app-theme="dark"] body.communications-page .chat-tags-menu {
  background:#1b2832!important;
  border-color:#344754!important;
  box-shadow:0 18px 44px rgba(0,0,0,.36)!important;
}
html[data-app-theme="dark"] body.communications-page .chat-confirm-modal ul {
  background:#2b241b!important;
  color:#d7c293!important;
}

html[data-app-theme="dark"] body.communications-page--ai-assistant .ai-assistant-page {
  color:#dce5ec!important;
}
html[data-app-theme="dark"] body.communications-page--ai-assistant :is(.ai-assistant-header,.ai-assistant-switch-card,.ai-manual-notice,.ai-stat-card,.ai-settings-panel,.ai-knowledge-panel,.ai-channel-tabs button,.ai-choice-grid button,.ai-inline-add input,.ai-inline-add button,.ai-upload-button,.ai-schedule-list,.ai-schedule-row,.ai-time-range input,.ai-required-list,.ai-required-item,.ai-knowledge-drop,.ai-settings-footer) {
  background:#17212a!important;
  border-color:#2b3b48!important;
  color:#dce5ec!important;
  box-shadow:none!important;
}
html[data-app-theme="dark"] body.communications-page--ai-assistant :is(.ai-assistant-switch-card small,.ai-manual-notice,.ai-stat-card p,.ai-setting-copy small,.ai-choice-grid button small,.ai-inline-add input::placeholder,.ai-knowledge-panel header p,.ai-knowledge-drop small,.ai-knowledge-drop em,.ai-document small,.ai-document-empty,.ai-knowledge-summary,.ai-document-message) {
  color:#95a3af!important;
}
html[data-app-theme="dark"] body.communications-page--ai-assistant :is(.ai-assistant-heading h1,.ai-knowledge-panel header h2,.ai-stat-card strong,.ai-setting-copy strong,.ai-document strong) {
  color:#eef2f5!important;
}
html[data-app-theme="dark"] body.communications-page--ai-assistant .ai-assistant-switch-card strong,
html[data-app-theme="dark"] body.communications-page--ai-assistant .ai-assistant-heading .eyebrow,
html[data-app-theme="dark"] body.communications-page--ai-assistant .ai-knowledge-panel .eyebrow {
  color:#d8b2de!important;
}
html[data-app-theme="dark"] body.communications-page--ai-assistant .ai-switch span,
html[data-app-theme="dark"] body.communications-page--ai-assistant .ai-mini-switch span {
  background:#31424f!important;
}
html[data-app-theme="dark"] body.communications-page--ai-assistant .ai-switch input:checked + span,
html[data-app-theme="dark"] body.communications-page--ai-assistant .ai-mini-switch input:checked + span {
  background:#586474!important;
}
html[data-app-theme="dark"] body.communications-page--ai-assistant :is(.ai-choice-grid button:hover,.ai-inline-add button:hover,.ai-upload-button:hover,.ai-knowledge-drop:hover,.ai-knowledge-drop.is-dragover) {
  background:#22313c!important;
  border-color:#445a69!important;
}
html[data-app-theme="dark"] body.communications-page--ai-assistant .ai-choice-grid button.is-active,
html[data-app-theme="dark"] body.communications-page--ai-assistant .ai-channel-tabs button.is-active {
  background:#243440!important;
  border-color:#4c6272!important;
  color:#f2f5f7!important;
  box-shadow:inset 0 0 0 1px #4c6272!important;
}
html[data-app-theme="dark"] body.communications-page--ai-assistant .ai-choice-icon,
html[data-app-theme="dark"] body.communications-page--ai-assistant .ai-stat-icon,
html[data-app-theme="dark"] body.communications-page--ai-assistant .ai-knowledge-drop > span,
html[data-app-theme="dark"] body.communications-page--ai-assistant .ai-setting-number {
  background:#22313c!important;
  color:#d8b2de!important;
}
html[data-app-theme="dark"] body.communications-page--ai-assistant .ai-tag {
  background:#321f2c!important;
  color:#ffb3c0!important;
}
html[data-app-theme="dark"] body.communications-page--ai-assistant .ai-document-type {
  background:#22313c!important;
  color:#b6c8ff!important;
}
html[data-app-theme="dark"] body.communications-page--ai-assistant .ai-document-type--pdf { background:#352026!important; color:#ffb4be!important; }
html[data-app-theme="dark"] body.communications-page--ai-assistant .ai-document-type--xlsx,
html[data-app-theme="dark"] body.communications-page--ai-assistant .ai-document-type--csv { background:#1d3026!important; color:#95deb0!important; }
html[data-app-theme="dark"] body.communications-page--ai-assistant .ai-document-type--docx { background:#1e2f3f!important; color:#a8c8ff!important; }
html[data-app-theme="dark"] body.communications-page--ai-assistant .ai-document-type--pptx { background:#3a2a1f!important; color:#f0c28e!important; }
html[data-app-theme="dark"] body.communications-page--ai-assistant .ai-settings-footer {
  background:#1b2832!important;
}
html[data-app-theme="dark"] body.communications-page--ai-assistant .ai-settings-footer > span {
  color:#8fd6aa!important;
}

/* V550 · dark refresh badge + communications + AI assistant refinement */
html[data-app-theme="dark"] body.pricing-section-body .page-heading .data-refresh-badge,
html[data-app-theme="dark"] body.communications-page .page-heading .data-refresh-badge,
html[data-app-theme="dark"] body.app-modern-shell .page-heading .data-refresh-badge:not(.data-refresh-badge--dashboard) {
  background:#18242d!important;
  border-color:#344754!important;
  color:#b9c5cf!important;
  box-shadow:none!important;
}
html[data-app-theme="dark"] body.app-modern-shell .page-heading .data-refresh-badge:not(.data-refresh-badge--dashboard) i {
  background:#5ec486!important;
  box-shadow:0 0 0 4px rgba(94,196,134,.13)!important;
}
html[data-app-theme="dark"] body.app-modern-shell .page-heading .data-refresh-badge:not(.data-refresh-badge--dashboard) .data-refresh-tooltip {
  background:#1b2832!important;
  border-color:#384b59!important;
  color:#d7e0e7!important;
  box-shadow:0 18px 42px rgba(0,0,0,.34)!important;
}

/* Chats: remove the remaining light islands while keeping marketplace colour cues. */
html[data-app-theme="dark"] body.communications-page .chat-center {
  --chat-line:#2b3b48;
  --chat-muted:#8d9aa6;
  --chat-accent-soft:#21303b;
}
html[data-app-theme="dark"] body.communications-page :is(
  .chat-controls,.chat-workspace,.chat-list-pane,.chat-dialog-pane,.chat-dialog-head,
  .chat-workflow-bar,.chat-composer,.chat-product-pane,.chat-message-search,.chat-pagination
) {
  background:#17212a!important;
  border-color:#2b3b48!important;
  color:#dce5ec!important;
}
html[data-app-theme="dark"] body.communications-page .chat-toolbar {
  border-color:#2b3b48!important;
}
html[data-app-theme="dark"] body.communications-page :is(.chat-marketplace-switch__item,.chat-view-switch__item) {
  background:#1a2630!important;
  border-color:#344754!important;
  color:#b8c4ce!important;
  box-shadow:none!important;
}
html[data-app-theme="dark"] body.communications-page :is(.chat-marketplace-switch__item,.chat-view-switch__item):hover {
  background:#22313c!important;
  border-color:#4a6070!important;
  color:#eef3f6!important;
}
html[data-app-theme="dark"] body.communications-page .chat-marketplace-switch__item.is-active,
html[data-app-theme="dark"] body.communications-page .chat-view-switch__item.is-active {
  background:#263642!important;
  border-color:#4c6374!important;
  color:#f1f5f7!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.025)!important;
}
html[data-app-theme="dark"] body.communications-page .chat-marketplace-switch__item--ozon.is-active { border-color:rgba(104,151,255,.55)!important;color:#c6d8ff!important; }
html[data-app-theme="dark"] body.communications-page .chat-marketplace-switch__item--wildberries.is-active { border-color:rgba(211,111,224,.52)!important;color:#edc1f1!important; }
html[data-app-theme="dark"] body.communications-page .chat-marketplace-switch__item--yandex_market.is-active { border-color:rgba(225,196,83,.50)!important;color:#ebdc9b!important; }
html[data-app-theme="dark"] body.communications-page :is(.chat-marketplace-switch__item b,.chat-view-switch__item b) {
  background:#24333f!important;
  color:#aebbc6!important;
}
html[data-app-theme="dark"] body.communications-page :is(.chat-search input,.chat-filter-trigger,.chat-manager-head select,.chat-workflow-bar select,.chat-composer textarea,.chat-composer__top select,.chat-message-search input) {
  background:#111a22!important;
  border-color:#344754!important;
  color:#dce5ec!important;
  -webkit-text-fill-color:#dce5ec!important;
  color-scheme:dark;
}
html[data-app-theme="dark"] body.communications-page :is(.chat-search input,.chat-composer textarea,.chat-message-search input)::placeholder {
  color:#748593!important;
  -webkit-text-fill-color:#748593!important;
}
html[data-app-theme="dark"] body.communications-page :is(.chat-filter-trigger,.chat-dialog-actions button,.chat-tags-edit,.chat-composer__row .chat-attach-button,.chat-pagination button) {
  background:#1a2630!important;
  border-color:#344754!important;
  color:#b9c5cf!important;
}
html[data-app-theme="dark"] body.communications-page :is(.chat-filter-trigger,.chat-dialog-actions button,.chat-tags-edit,.chat-composer__row .chat-attach-button,.chat-pagination button):hover {
  background:#243541!important;
  border-color:#4a6070!important;
  color:#eef3f6!important;
}
html[data-app-theme="dark"] body.communications-page .chat-source-statuses {
  padding:8px 10px!important;
  border:1px solid #2b3b48!important;
  border-radius:12px!important;
  background:#151f28!important;
}
html[data-app-theme="dark"] body.communications-page .communications-source-status {
  background:#1b2832!important;
  border-color:#344754!important;
  color:#b8c4ce!important;
}
html[data-app-theme="dark"] body.communications-page .chat-list-item {
  background:#17212a!important;
  border-color:#293a46!important;
}
html[data-app-theme="dark"] body.communications-page .chat-list-item:hover { background:#1d2b35!important; }
html[data-app-theme="dark"] body.communications-page .chat-list-item.is-active {
  background:#22313d!important;
  box-shadow:inset 4px 0 0 #52697a!important;
}
html[data-app-theme="dark"] body.communications-page .chat-list-item__head strong { color:#e4ebf0!important; }
html[data-app-theme="dark"] body.communications-page :is(.chat-list-item__preview,.chat-list-item__head time,.chat-list-item__organization) { color:#8797a4!important; }
html[data-app-theme="dark"] body.communications-page .chat-dialog-customer strong { color:#e5ecf1!important; }
html[data-app-theme="dark"] body.communications-page .chat-dialog-customer small { color:#8e9ca8!important; }
html[data-app-theme="dark"] body.communications-page .chat-history {
  background:linear-gradient(180deg,#111922 0%,#131d25 100%)!important;
  border-color:#2b3b48!important;
}
html[data-app-theme="dark"] body.communications-page .chat-history .communications-history-bubble.is-buyer {
  background:#1b2832!important;
  border-color:#344754!important;
  color:#d7e0e7!important;
  box-shadow:none!important;
}
html[data-app-theme="dark"] body.communications-page .chat-history .communications-history-bubble.is-buyer :is(strong,p,span,a) { color:#d7e0e7!important; }
html[data-app-theme="dark"] body.communications-page .chat-history .communications-history-bubble__head time { color:#8595a2!important; }
html[data-app-theme="dark"] body.communications-page .chat-product-card dl,
html[data-app-theme="dark"] body.communications-page .chat-order-summary,
html[data-app-theme="dark"] body.communications-page .chat-context-product {
  background:#1a2630!important;
  border-color:#344754!important;
  color:#cbd6de!important;
}
html[data-app-theme="dark"] body.communications-page .chat-product-card :is(h3,dd),
html[data-app-theme="dark"] body.communications-page .chat-context-product h3,
html[data-app-theme="dark"] body.communications-page .chat-order-summary dd { color:#dfe7ed!important; }
html[data-app-theme="dark"] body.communications-page :is(.chat-product-card p,.chat-product-card dt,.chat-context-product p,.chat-context-product__info,.chat-order-summary dt) { color:#8c9aa6!important; }

/* AI assistant: full dark surface hierarchy, not white controls inside a dark shell. */
html[data-app-theme="dark"] body.communications-page--ai-assistant .main-content { background:#0f151c!important; }
html[data-app-theme="dark"] body.communications-page--ai-assistant .ai-assistant-page { color:#dce5ec!important; }
html[data-app-theme="dark"] body.communications-page--ai-assistant :is(.ai-settings-panel,.ai-knowledge-panel,.ai-stat-card,.ai-manual-notice) {
  background:#17212a!important;
  border-color:#2b3b48!important;
  color:#dce5ec!important;
  box-shadow:none!important;
}
html[data-app-theme="dark"] body.communications-page--ai-assistant .ai-manual-notice {
  background:#151f28!important;
  color:#98a6b2!important;
}
html[data-app-theme="dark"] body.communications-page--ai-assistant .ai-assistant-heading h1,
html[data-app-theme="dark"] body.communications-page--ai-assistant .ai-knowledge-panel h2,
html[data-app-theme="dark"] body.communications-page--ai-assistant .ai-stat-card strong,
html[data-app-theme="dark"] body.communications-page--ai-assistant .ai-setting-copy strong { color:#edf2f5!important; }
html[data-app-theme="dark"] body.communications-page--ai-assistant :is(.ai-assistant-heading p,.ai-stat-card p,.ai-setting-copy small,.ai-document-empty,.ai-knowledge-summary) { color:#8e9ca8!important; }
html[data-app-theme="dark"] body.communications-page--ai-assistant .ai-stat-card small { color:#b4c0ca!important; }
html[data-app-theme="dark"] body.communications-page--ai-assistant .ai-stat-icon,
html[data-app-theme="dark"] body.communications-page--ai-assistant .ai-stat-card--operator .ai-stat-icon,
html[data-app-theme="dark"] body.communications-page--ai-assistant .ai-stat-card--share .ai-stat-icon {
  background:#202e39!important;
  color:#b8c5cf!important;
}
html[data-app-theme="dark"] body.communications-page--ai-assistant .ai-channel-tabs { border-color:#2b3b48!important; }
html[data-app-theme="dark"] body.communications-page--ai-assistant .ai-channel-tabs button {
  background:#17212a!important;
  border-color:#2b3b48!important;
  color:#9baab6!important;
}
html[data-app-theme="dark"] body.communications-page--ai-assistant .ai-channel-tabs button:hover { background:#1f2d38!important;color:#e1e8ee!important; }
html[data-app-theme="dark"] body.communications-page--ai-assistant .ai-channel-tabs button.is-active {
  background:#24333f!important;
  color:#eef3f6!important;
  box-shadow:inset 0 -2px 0 #61798b!important;
}
html[data-app-theme="dark"] body.communications-page--ai-assistant .ai-setting-row { border-color:#293a46!important; }
html[data-app-theme="dark"] body.communications-page--ai-assistant .ai-setting-number { background:#202e39!important;color:#aebcc7!important; }
html[data-app-theme="dark"] body.communications-page--ai-assistant :is(.ai-choice-grid button,.ai-choice-option,.ai-length-button,.ai-inline-add,.ai-upload-button,.ai-schedule-add) {
  background:#1a2630!important;
  border-color:#344754!important;
  color:#b9c5cf!important;
  box-shadow:none!important;
}
html[data-app-theme="dark"] body.communications-page--ai-assistant :is(.ai-choice-grid button,.ai-choice-option,.ai-length-button,.ai-inline-add,.ai-upload-button,.ai-schedule-add):hover {
  background:#243541!important;
  border-color:#4a6070!important;
  color:#eef3f6!important;
}
html[data-app-theme="dark"] body.communications-page--ai-assistant :is(.ai-choice-grid button.is-active,.ai-choice-option.is-active,.ai-length-button.is-active) {
  background:#2a3a47!important;
  border-color:#536a7b!important;
  color:#f0f4f7!important;
}
html[data-app-theme="dark"] body.communications-page--ai-assistant :is(.ai-required-editor,.ai-schedule-editor,.ai-tag-editor,.ai-knowledge-drop) {
  background:#141e27!important;
  border-color:#344754!important;
  color:#cbd6de!important;
}
html[data-app-theme="dark"] body.communications-page--ai-assistant .ai-knowledge-drop:hover,
html[data-app-theme="dark"] body.communications-page--ai-assistant .ai-knowledge-drop.is-dragover {
  background:#1c2a35!important;
  border-color:#566e80!important;
}
html[data-app-theme="dark"] body.communications-page--ai-assistant :is(.ai-required-item,.ai-document,.ai-schedule-row) {
  background:#18242d!important;
  border-color:#30424f!important;
  color:#cbd6de!important;
}
html[data-app-theme="dark"] body.communications-page--ai-assistant :is(.ai-schedule-label,.ai-schedule-days,.ai-time-range input,.ai-required-editor input,.ai-tag-editor input) {
  background:#111a22!important;
  border-color:#344754!important;
  color:#dce5ec!important;
  -webkit-text-fill-color:#dce5ec!important;
  color-scheme:dark;
}
html[data-app-theme="dark"] body.communications-page--ai-assistant .ai-schedule-delete {
  background:#24333f!important;
  color:#9eacb8!important;
}
html[data-app-theme="dark"] body.communications-page--ai-assistant .ai-schedule-delete:hover { background:#304451!important;color:#eef3f6!important; }
html[data-app-theme="dark"] body.communications-page--ai-assistant .ai-settings-footer {
  background:#151f28!important;
  border-color:#2b3b48!important;
}
html[data-app-theme="dark"] body.communications-page--ai-assistant .ai-switch span,
html[data-app-theme="dark"] body.communications-page--ai-assistant .ai-mini-switch span { background:#42515e!important; }
html[data-app-theme="dark"] body.communications-page--ai-assistant .ai-switch span::after,
html[data-app-theme="dark"] body.communications-page--ai-assistant .ai-mini-switch span::after { background:#dce5ec!important; }

/* V556 · product-card back navigation */
html[data-app-theme="dark"] body.product-card-page .pc-back-to-products{
  background:#1a2630!important;
  border-color:#344754!important;
  color:#b8c4ce!important;
}
html[data-app-theme="dark"] body.product-card-page .pc-back-to-products:hover{
  background:#22323e!important;
  border-color:var(--pc-accent-line)!important;
  color:var(--pc-accent)!important;
}


/* V557 · WB Hong Kong pricing switch + Yandex-style cost editor */
html[data-app-theme="dark"] body.pricing-section-body .cost-editor-button--wb.money-cell--details:hover,
html[data-app-theme="dark"] body.pricing-section-body .cost-editor-button--wb.money-cell--details:focus-visible {
  background:#211a28!important;
  border-color:#795184!important;
  box-shadow:0 0 0 3px rgba(214,130,223,.10)!important;
}
html[data-app-theme="dark"] body.pricing-section-body .wb-cost-modal-card .cost-editor-field label { color:#cbd5de!important; }
html[data-app-theme="dark"] body.pricing-section-body .wb-cost-modal-card .cost-editor-field input {
  background:#111a22!important; border-color:#31414e!important; color:#e3e9ee!important;
}
html[data-app-theme="dark"] body.pricing-section-body .wb-cost-modal-note {
  background:rgba(214,130,223,.08)!important; border-color:rgba(214,130,223,.22)!important; color:#c4a7ca!important;
}

/* V558 · Ozon pricing cost editor */
html[data-app-theme="dark"] body.pricing-section-body .cost-editor-button--ozon.money-cell--details:hover,
html[data-app-theme="dark"] body.pricing-section-body .cost-editor-button--ozon.money-cell--details:focus-visible {
  background:#14233a!important;
  border-color:#416fae!important;
  box-shadow:0 0 0 3px rgba(78,133,210,.10)!important;
}
html[data-app-theme="dark"] body.pricing-section-body .ozon-cost-modal-card .cost-editor-field label { color:#cbd5de!important; }
html[data-app-theme="dark"] body.pricing-section-body .ozon-cost-modal-card .cost-editor-field input {
  background:#111a22!important;
  border-color:#31414e!important;
  color:#e3e9ee!important;
}

/* V564 · Prices / Profile / API dark-theme precision pass
   Fix high-specificity legacy light styles that still surfaced after the
   universal dark palette. These overrides intentionally live last. */

/* Pricing cost editor: window-manager.css used an ID + !important white body. */
html[data-app-theme="dark"] #cost-modal .app-managed-window.cost-modal-card > .app-window-content,
html[data-app-theme="dark"] #yandex-cost-modal .app-managed-window.cost-modal-card > .app-window-content {
  background:#151e27!important;
  color:#dfe7ed!important;
}
html[data-app-theme="dark"] #cost-modal .app-managed-window.cost-modal-card .modal-heading,
html[data-app-theme="dark"] #yandex-cost-modal .app-managed-window.cost-modal-card .modal-heading {
  border-bottom-color:#2b3b48!important;
  background:transparent!important;
}
html[data-app-theme="dark"] #cost-modal .modal-heading :is(h2,h3),
html[data-app-theme="dark"] #yandex-cost-modal .modal-heading :is(h2,h3) { color:#eef3f6!important;-webkit-text-fill-color:#eef3f6!important; }
html[data-app-theme="dark"] #cost-modal .modal-heading :is(p,span,.eyebrow),
html[data-app-theme="dark"] #yandex-cost-modal .modal-heading :is(p,span,.eyebrow) { color:#96a5b2!important;-webkit-text-fill-color:#96a5b2!important; }
html[data-app-theme="dark"] #cost-modal .cost-form-grid label,
html[data-app-theme="dark"] #yandex-cost-modal .cost-editor-field { background:#17232c!important;border-color:#30414e!important;color:#dfe7ed!important; }
html[data-app-theme="dark"] #cost-modal .cost-form-grid label > span,
html[data-app-theme="dark"] #cost-modal .cost-form-grid label > strong,
html[data-app-theme="dark"] #yandex-cost-modal .cost-editor-field label { color:#dfe7ed!important; }
html[data-app-theme="dark"] #cost-modal :is(input,select),
html[data-app-theme="dark"] #yandex-cost-modal :is(input,select) {
  background:#111a22!important;border-color:#344754!important;color:#e5ebf0!important;-webkit-text-fill-color:#e5ebf0!important;color-scheme:dark!important;
}
html[data-app-theme="dark"] #cost-modal :is(input,select):focus,
html[data-app-theme="dark"] #yandex-cost-modal :is(input,select):focus { border-color:#60778a!important;box-shadow:0 0 0 3px rgba(96,119,138,.18)!important; }
html[data-app-theme="dark"] #cost-modal .cost-note,
html[data-app-theme="dark"] #cost-modal .cost-logistics-note { background:rgba(214,130,223,.08)!important;border-color:rgba(214,130,223,.22)!important;color:#cba6cf!important; }
html[data-app-theme="dark"] #cost-modal .cost-total-line { background:linear-gradient(100deg,#5a2870,#74408a)!important;color:#f5edf7!important; }
html[data-app-theme="dark"] #cost-modal .cost-total-line :is(span,strong) { color:#f5edf7!important;-webkit-text-fill-color:#f5edf7!important; }
html[data-app-theme="dark"] #cost-modal .app-managed-window.cost-modal-card .modal-actions,
html[data-app-theme="dark"] #yandex-cost-modal .app-managed-window.cost-modal-card .modal-actions { border-top-color:#2b3b48!important;background:transparent!important; }
html[data-app-theme="dark"] #cost-modal.is-cost-loading .app-window-content::after,
html[data-app-theme="dark"] #yandex-cost-modal.is-cost-loading .app-window-content::after { background:#1c2933!important;border-color:#3a4d5b!important;color:#cbd6de!important;box-shadow:0 8px 22px rgba(0,0,0,.26)!important; }

/* Pricing settings window: remove the last white control cards. */
html[data-app-theme="dark"] #page-settings-modal .page-settings-modal-card { background:#151f28!important;border-color:#334553!important;color:#dfe7ed!important; }
html[data-app-theme="dark"] #page-settings-modal .modal-heading { background:#1a2731!important;border-color:#30414e!important; }
html[data-app-theme="dark"] #page-settings-modal .modal-heading :is(h2,p) { color:#e9eef2!important; }
html[data-app-theme="dark"] #page-settings-modal .modal-heading p { color:#91a1ae!important; }
html[data-app-theme="dark"] #page-settings-modal .settings-tabs { border-color:#30414e!important; }
html[data-app-theme="dark"] #page-settings-modal .settings-tab { color:#9ba9b5!important; }
html[data-app-theme="dark"] #page-settings-modal .settings-tab:hover { color:#e5ebef!important;background:#1c2a35!important; }
html[data-app-theme="dark"] #page-settings-modal .settings-tab--general.is-active { color:#a8c5ff!important;background:#223244!important; }
html[data-app-theme="dark"] #page-settings-modal .settings-switch-row { background:#1a2731!important;border-color:#30414e!important; }
html[data-app-theme="dark"] #page-settings-modal .settings-switch-row:hover { background:#1e2d38!important;border-color:#3b5160!important; }
html[data-app-theme="dark"] #page-settings-modal .settings-switch-row strong { color:#e8edf1!important; }
html[data-app-theme="dark"] #page-settings-modal .settings-switch-row small { color:#99a8b4!important; }
html[data-app-theme="dark"] #page-settings-modal .settings-switch-row i { background:#4b5b68!important; }
html[data-app-theme="dark"] #page-settings-modal .settings-switch-row i::after { background:#e7edf2!important; }
html[data-app-theme="dark"] #page-settings-modal .settings-field-grid label { background:#18242e!important;border-color:#30414e!important;color:#b7c4ce!important; }
html[data-app-theme="dark"] #page-settings-modal .settings-field-grid :is(input[type="number"],select) { background:#111a22!important;border-color:#344754!important;color:#e5ebf0!important;-webkit-text-fill-color:#e5ebf0!important;color-scheme:dark!important; }
html[data-app-theme="dark"] #page-settings-modal .settings-info-row { background:#18242e!important;border-color:#30414e!important;color:#a9b6c0!important; }
html[data-app-theme="dark"] #page-settings-modal .settings-info-row strong { color:#e4ebf0!important; }
html[data-app-theme="dark"] #page-settings-modal .modal-actions { background:#151f28!important;border-color:#30414e!important; }

/* Profile shell: all sub-tabs and summary cards share one dark surface language. */
html[data-app-theme="dark"] body.profile-page :is(.profile-hero,.profile-tabs,.profile-section,.profile-invites-banner) { background:#17212a!important;border-color:#2b3b48!important;box-shadow:none!important; }
html[data-app-theme="dark"] body.profile-page :is(.profile-identity h1,.profile-section h2,.profile-section h3,.profile-store-card strong,.profile-person strong,.security-card h3) { color:#e9eef2!important; }
html[data-app-theme="dark"] body.profile-page :is(.profile-meta-grid strong,.profile-table td,.profile-person,.profile-cell-button,.profile-action-button) { color:#cbd5dd!important; }
html[data-app-theme="dark"] body.profile-page :is(.profile-meta-grid span,.profile-section-head span,.profile-store-card span,.profile-person small,.profile-action-button small,.profile-dashboard-grid span) { color:#8f9daa!important; }
html[data-app-theme="dark"] body.profile-page .profile-tabs a { color:#98a7b4!important; }
html[data-app-theme="dark"] body.profile-page .profile-tabs a:hover { color:#e5ebef!important;background:#1c2933!important; }
html[data-app-theme="dark"] body.profile-page .profile-tabs a.active { color:#eef3f6!important;background:#243441!important; }
html[data-app-theme="dark"] body.profile-page .profile-tabs a.active::after { background:#b9c8d4!important; }
html[data-app-theme="dark"] body.profile-page .profile-tabs b { background:#2b3d4a!important;color:#dce5ec!important; }
html[data-app-theme="dark"] body.profile-page .profile-store-card { background:#18242e!important;border-color:#2e3f4d!important; }
html[data-app-theme="dark"] body.profile-page .profile-store-card:hover { background:#1d2b36!important;border-color:#405565!important; }
html[data-app-theme="dark"] body.profile-page .profile-store-card__icon { background:#213141!important;color:#9fc0ed!important;box-shadow:inset 0 0 0 1px #31485e!important; }
html[data-app-theme="dark"] body.profile-page .profile-store-card--wildberries .profile-store-card__icon { background:rgba(214,130,223,.12)!important;color:#e0a3e7!important;box-shadow:inset 0 0 0 1px rgba(214,130,223,.24)!important; }
html[data-app-theme="dark"] body.profile-page .profile-store-card--yandex_market .profile-store-card__icon { background:rgba(235,203,104,.12)!important;color:#e7d28e!important;box-shadow:inset 0 0 0 1px rgba(235,203,104,.24)!important; }
html[data-app-theme="dark"] body.profile-page .profile-store-card em.is-active { background:rgba(114,201,154,.12)!important;color:#8cd7aa!important; }
html[data-app-theme="dark"] body.profile-page .team-summary-switch { background:#141e26!important;border:1px solid #2b3b48!important; }
html[data-app-theme="dark"] body.profile-page .team-summary-switch button { color:#93a2ae!important; }
html[data-app-theme="dark"] body.profile-page .team-summary-switch button:hover { background:#1d2b36!important;color:#dce5ec!important; }
html[data-app-theme="dark"] body.profile-page .team-summary-switch button.active { background:#263744!important;color:#eef3f6!important;box-shadow:none!important; }
html[data-app-theme="dark"] body.profile-page .team-summary-switch button strong,
html[data-app-theme="dark"] body.profile-page .team-summary-switch button.active strong { background:#344957!important;color:#e8eef2!important; }
html[data-app-theme="dark"] body.profile-page .team-table-wrap { border-color:#2b3b48!important; }
html[data-app-theme="dark"] body.profile-page .profile-table { background:#17212a!important; }
html[data-app-theme="dark"] body.profile-page .profile-table th { background:#1d2a34!important;border-color:#30414e!important;color:#9fadb9!important; }
html[data-app-theme="dark"] body.profile-page .profile-table td { background:#17212a!important;border-color:#293a46!important; }
html[data-app-theme="dark"] body.profile-page .profile-table tbody tr:hover td { background:#1d2b35!important; }
html[data-app-theme="dark"] body.profile-page .profile-store-list-button :is(span,b) { background:#243441!important;color:#b9c7d1!important; }
html[data-app-theme="dark"] body.profile-page .profile-icon-danger { background:rgba(241,127,134,.10)!important;color:#ef9198!important;border:1px solid rgba(241,127,134,.22)!important; }

/* Referral metrics were literal white cards. */
html[data-app-theme="dark"] body.profile-page .referral-code-card { background:linear-gradient(105deg,#1b2731,#243441)!important;border:1px solid #344754!important;color:#eaf0f4!important; }
html[data-app-theme="dark"] body.profile-page .profile-dashboard-grid article { background:#18242e!important;border-color:#30414e!important; }
html[data-app-theme="dark"] body.profile-page .profile-dashboard-grid strong { color:#edf2f5!important; }
html[data-app-theme="dark"] body.profile-page .profile-dashboard-grid small { color:#ef9ca2!important; }
html[data-app-theme="dark"] body.profile-page .profile-dashboard-grid small.is-positive { color:#83d3a4!important; }
html[data-app-theme="dark"] body.profile-page .referral-status { background:#24313c!important;color:#aebbc6!important; }
html[data-app-theme="dark"] body.profile-page .referral-status.is-paid { background:rgba(114,201,154,.12)!important;color:#87d5a6!important; }

/* Profile windows: profile.css uses direct >header and literal white input backgrounds. */
html[data-app-theme="dark"] body.profile-page .profile-modal__card { background:#151e27!important;border:1px solid #344754!important;color:#dce5ec!important;box-shadow:0 24px 70px rgba(0,0,0,.46)!important; }
html[data-app-theme="dark"] body.profile-page .profile-modal__card > header { background:#1b2832!important;border-color:#344754!important; }
html[data-app-theme="dark"] body.profile-page .profile-modal__card > header h3 { color:#eef3f6!important; }
html[data-app-theme="dark"] body.profile-page .profile-modal__card > header span { color:#98a7b4!important; }
html[data-app-theme="dark"] body.profile-page .profile-modal__card > header > button { background:#22313c!important;color:#b9c6cf!important;border:1px solid #354957!important; }
html[data-app-theme="dark"] body.profile-page .profile-modal__card > header > button:hover { background:#2b3d4a!important;color:#fff!important; }
html[data-app-theme="dark"] body.profile-page .profile-modal form > label,
html[data-app-theme="dark"] body.profile-page .profile-modal :is([data-2fa-setup-step],[data-2fa-qr-step],[data-2fa-disable-step]) > label { color:#b9c6cf!important; }
html[data-app-theme="dark"] body.profile-page .profile-modal :is(input,select,textarea) { background:#111a22!important;border-color:#344754!important;color:#e5ebf0!important;-webkit-text-fill-color:#e5ebf0!important;color-scheme:dark!important; }
html[data-app-theme="dark"] body.profile-page .profile-modal :is(input,select,textarea)::placeholder { color:#718392!important;-webkit-text-fill-color:#718392!important; }
html[data-app-theme="dark"] body.profile-page .profile-modal legend { color:#c4d0d9!important; }
html[data-app-theme="dark"] body.profile-page .profile-checkbox-grid > div,
html[data-app-theme="dark"] body.profile-page .profile-checkbox-grid--stores > label { background:#18242e!important;border-color:#30414e!important; }
html[data-app-theme="dark"] body.profile-page .profile-checkbox-grid > div > strong { color:#e0e7ec!important; }
html[data-app-theme="dark"] body.profile-page .profile-checkbox-grid label { color:#aab8c4!important; }
html[data-app-theme="dark"] body.profile-page .profile-password-field .auth-eye-button { background:#1e2c37!important;color:#aebcc7!important;border:1px solid #344958!important; }
html[data-app-theme="dark"] body.profile-page .two-factor-qr { background:#eef2f5!important;border-color:#485867!important; }
html[data-app-theme="dark"] body.profile-page .profile-modal code[data-2fa-secret],
html[data-app-theme="dark"] body.profile-page .recovery-code-grid code { background:#1e2b35!important;color:#dbe4ea!important; }

/* Section search: search result cards were still hard-coded light. */
html[data-app-theme="dark"] .workspace-section-search__field { background:#111a22!important;border-color:#344754!important;color:#dce5ec!important; }
html[data-app-theme="dark"] .workspace-section-search__field input { background:transparent!important;color:#e5ebf0!important;-webkit-text-fill-color:#e5ebf0!important; }
html[data-app-theme="dark"] .workspace-section-search__field input::placeholder { color:#748593!important;-webkit-text-fill-color:#748593!important; }
html[data-app-theme="dark"] .workspace-section-search__results { background:#17232d!important;border-color:#344958!important; }
html[data-app-theme="dark"] .workspace-section-search__results a { background:#18242e!important;border-color:#30414e!important;color:#d7e0e7!important; }
html[data-app-theme="dark"] .workspace-section-search__results a:hover,
html[data-app-theme="dark"] .workspace-section-search__results a[aria-selected="true"] { background:#243541!important;border-color:#496174!important;color:#f0f4f7!important; }
html[data-app-theme="dark"] .workspace-section-search__results a span { color:#8999a6!important; }
html[data-app-theme="dark"] .workspace-section-search__results a strong { color:#e6ecf1!important; }
html[data-app-theme="dark"] .workspace-section-search__empty { color:#8697a4!important; }

/* API token create/edit forms: override legacy !important light fields and white eye buttons. */
html[data-app-theme="dark"] body.api-form-page .api-create-card { background:#17212a!important;border-color:#2e3f4d!important;box-shadow:none!important; }
html[data-app-theme="dark"] body.api-form-page .api-back-link { color:#b9c6cf!important; }
html[data-app-theme="dark"] body.api-form-page .api-create-card h1,
html[data-app-theme="dark"] body.api-form-page .api-platform-heading { color:#edf2f5!important; }
html[data-app-theme="dark"] body.api-form-page .field-group label { color:#9eacb8!important; }
html[data-app-theme="dark"] body.api-form-page .api-create-form .field-group > input,
html[data-app-theme="dark"] body.api-form-page .api-create-form .field-group > select,
html[data-app-theme="dark"] body.api-form-page .api-create-form .secret-field { background:#111a22!important;border-color:#344754!important;color:#e5ebf0!important;box-shadow:none!important; }
html[data-app-theme="dark"] body.api-form-page .api-create-form .field-group > input,
html[data-app-theme="dark"] body.api-form-page .api-create-form .field-group > select,
html[data-app-theme="dark"] body.api-form-page .api-create-form .secret-field input { color:#e5ebf0!important;-webkit-text-fill-color:#e5ebf0!important;color-scheme:dark!important; }
html[data-app-theme="dark"] body.api-form-page .api-create-form :is(.field-group > input,.field-group > select,.secret-field):focus,
html[data-app-theme="dark"] body.api-form-page .api-create-form .secret-field:focus-within { border-color:#60778a!important;box-shadow:0 0 0 3px rgba(96,119,138,.18)!important; }
html[data-app-theme="dark"] body.api-form-page .api-create-form .api-auth-eye-button { background:#1d2a34!important;border-left:1px solid #344754!important;color:#aebbc6!important; }
html[data-app-theme="dark"] body.api-form-page .api-create-form .api-auth-eye-button:hover { background:#263744!important;color:#eef3f6!important; }
html[data-app-theme="dark"] body.api-form-page .api-save-button:disabled { background:#34414c!important;color:#75838e!important;opacity:1!important; }
html[data-app-theme="dark"] body.api-form-page .api-security-note { background:#16212a!important;border-color:#30414e!important;color:#a8b6c1!important; }
html[data-app-theme="dark"] body.api-form-page .api-instruction-toggle { box-shadow:none!important; }
html[data-app-theme="dark"] body.api-form-page .api-instruction { background:#17212a!important;border-color:#30414e!important;color:#c5d0d9!important; }

/* V565 · dark pricing modal + chats precision audit
   This block intentionally targets the actual DOM kept by window-manager.js.
   Since V453 the manager no longer wraps modal content in .app-window-content. */

/* --------------------------------------------------------------------------
   Pricing cost editor — real managed-window DOM, no light body islands
   -------------------------------------------------------------------------- */
html[data-app-theme="dark"] body.pricing-section-body #cost-modal .app-managed-window.cost-modal-card,
html[data-app-theme="dark"] body.pricing-section-body #yandex-cost-modal .app-managed-window.columns-modal-card {
  background:#151e27!important;
  border-color:#344754!important;
  color:#dfe7ed!important;
  box-shadow:0 28px 78px rgba(0,0,0,.46)!important;
}
html[data-app-theme="dark"] body.pricing-section-body #cost-modal .app-managed-window.cost-modal-card > .modal-heading,
html[data-app-theme="dark"] body.pricing-section-body #yandex-cost-modal .app-managed-window.columns-modal-card > .modal-heading {
  background:#151e27!important;
  border-bottom-color:#30414e!important;
}
html[data-app-theme="dark"] body.pricing-section-body #cost-modal .app-managed-window.cost-modal-card > .modal-heading :is(h2,h3),
html[data-app-theme="dark"] body.pricing-section-body #yandex-cost-modal .app-managed-window.columns-modal-card > .modal-heading :is(h2,h3) {
  color:#edf2f5!important;
  -webkit-text-fill-color:#edf2f5!important;
}
html[data-app-theme="dark"] body.pricing-section-body #cost-modal .app-managed-window.cost-modal-card > .modal-heading :is(.eyebrow,p),
html[data-app-theme="dark"] body.pricing-section-body #yandex-cost-modal .app-managed-window.columns-modal-card > .modal-heading :is(.eyebrow,p) {
  color:#93a2ae!important;
  -webkit-text-fill-color:#93a2ae!important;
}
html[data-app-theme="dark"] body.pricing-section-body #cost-modal .app-managed-window.cost-modal-card > :is(form,.cost-form-grid,.cost-editor-grid),
html[data-app-theme="dark"] body.pricing-section-body #yandex-cost-modal .app-managed-window.columns-modal-card > :is(form,.cost-editor-grid) {
  background:#151e27!important;
  color:#dce5ec!important;
}
html[data-app-theme="dark"] body.pricing-section-body #cost-modal .app-managed-window.cost-modal-card .cost-editor-field,
html[data-app-theme="dark"] body.pricing-section-body #yandex-cost-modal .app-managed-window.columns-modal-card .cost-editor-field {
  background:transparent!important;
  border-color:transparent!important;
}
html[data-app-theme="dark"] body.pricing-section-body #cost-modal .app-managed-window.cost-modal-card .cost-editor-field label,
html[data-app-theme="dark"] body.pricing-section-body #yandex-cost-modal .app-managed-window.columns-modal-card .cost-editor-field label {
  color:#d9e2e9!important;
  -webkit-text-fill-color:#d9e2e9!important;
}
html[data-app-theme="dark"] body.pricing-section-body #cost-modal .app-managed-window.cost-modal-card .cost-editor-field label :is(span,strong),
html[data-app-theme="dark"] body.pricing-section-body #yandex-cost-modal .app-managed-window.columns-modal-card .cost-editor-field label :is(span,strong) {
  color:#8797a4!important;
  -webkit-text-fill-color:#8797a4!important;
}
html[data-app-theme="dark"] body.pricing-section-body #cost-modal .app-managed-window.cost-modal-card .cost-editor-field input,
html[data-app-theme="dark"] body.pricing-section-body #yandex-cost-modal .app-managed-window.columns-modal-card .cost-editor-field input {
  background:#111a22!important;
  border-color:#344754!important;
  color:#e5ebf0!important;
  -webkit-text-fill-color:#e5ebf0!important;
  box-shadow:none!important;
  color-scheme:dark!important;
}
html[data-app-theme="dark"] body.pricing-section-body #cost-modal .app-managed-window.cost-modal-card .cost-editor-field input:focus,
html[data-app-theme="dark"] body.pricing-section-body #yandex-cost-modal .app-managed-window.columns-modal-card .cost-editor-field input:focus {
  background:#121d26!important;
  border-color:#637a8b!important;
  box-shadow:0 0 0 3px rgba(99,122,139,.18)!important;
}
html[data-app-theme="dark"] body.pricing-section-body #cost-modal .app-managed-window.cost-modal-card > .modal-actions,
html[data-app-theme="dark"] body.pricing-section-body #yandex-cost-modal .app-managed-window.columns-modal-card > .modal-actions {
  background:#151e27!important;
  border-top-color:#30414e!important;
}
html[data-app-theme="dark"] body.pricing-section-body #cost-modal .app-managed-window.cost-modal-card .button--ghost,
html[data-app-theme="dark"] body.pricing-section-body #yandex-cost-modal .app-managed-window.columns-modal-card .button--ghost {
  background:#1c2933!important;
  border-color:#3a4d5b!important;
  color:#d5dee5!important;
}
html[data-app-theme="dark"] body.pricing-section-body #cost-modal .app-managed-window.cost-modal-card .button--ghost:hover,
html[data-app-theme="dark"] body.pricing-section-body #yandex-cost-modal .app-managed-window.columns-modal-card .button--ghost:hover {
  background:#263743!important;
  border-color:#506777!important;
  color:#fff!important;
}

/* Marketplace colour must remain visible on the final cost total. */
html[data-app-theme="dark"] body.pricing-section-body #cost-modal .ozon-cost-modal-card .cost-total-line--ozon {
  background:linear-gradient(135deg,#0047c7 0%,#005bff 100%)!important;
  border:1px solid rgba(95,151,255,.38)!important;
  color:#fff!important;
  box-shadow:0 12px 30px rgba(0,91,255,.18)!important;
}
html[data-app-theme="dark"] body.pricing-section-body #cost-modal .wb-cost-modal-card .cost-total-line--wb {
  background:linear-gradient(135deg,#7800aa 0%,#a500e8 58%,#bb23d7 100%)!important;
  border:1px solid rgba(221,126,238,.34)!important;
  color:#fff!important;
  box-shadow:0 12px 30px rgba(165,0,232,.17)!important;
}
html[data-app-theme="dark"] body.pricing-section-body #yandex-cost-modal .columns-modal-card--yandex .cost-total-line--yandex {
  background:linear-gradient(135deg,#d7b600 0%,#f4cf19 58%,#f4df20 100%)!important;
  border:1px solid rgba(244,207,25,.42)!important;
  color:#262200!important;
  box-shadow:0 12px 30px rgba(244,207,25,.12)!important;
}
html[data-app-theme="dark"] body.pricing-section-body #cost-modal :is(.cost-total-line--ozon,.cost-total-line--wb) :is(span,strong) {
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
html[data-app-theme="dark"] body.pricing-section-body #yandex-cost-modal .cost-total-line--yandex :is(span,strong) {
  color:#262200!important;
  -webkit-text-fill-color:#262200!important;
}
html[data-app-theme="dark"] body.pricing-section-body #cost-modal .wb-cost-modal-note {
  background:rgba(165,0,232,.075)!important;
  border-color:rgba(202,98,224,.22)!important;
  color:#c9a5cf!important;
}
html[data-app-theme="dark"] body.pricing-section-body #yandex-cost-modal .actual-finance-card {
  background:#18242e!important;
  border-color:#30414e!important;
  color:#dce5ec!important;
}
html[data-app-theme="dark"] body.pricing-section-body #yandex-cost-modal .actual-finance-card__head strong,
html[data-app-theme="dark"] body.pricing-section-body #yandex-cost-modal .actual-finance-grid strong { color:#eaf0f4!important; }
html[data-app-theme="dark"] body.pricing-section-body #yandex-cost-modal :is(.actual-finance-card__head span,.actual-finance-grid small,.actual-finance-card__note) { color:#8f9daa!important; }
html[data-app-theme="dark"] body.pricing-section-body #yandex-cost-modal .actual-finance-grid > div { background:#1c2933!important;border-color:#344754!important; }

/* --------------------------------------------------------------------------
   Buyer chats — complete dark hierarchy including previously missed rows
   -------------------------------------------------------------------------- */
html[data-app-theme="dark"] body.communications-page--chats .chat-center {
  --chat-dark-panel:#17212a;
  --chat-dark-soft:#1b2832;
  --chat-dark-deep:#111922;
  --chat-dark-hover:#22313c;
  --chat-dark-line:#2b3b48;
  --chat-dark-text:#dce5ec;
  --chat-dark-muted:#8e9ca8;
}
html[data-app-theme="dark"] body.communications-page--chats :is(
  .chat-controls,.chat-workspace,.chat-list-pane,.chat-dialog-pane,.chat-dialog-head,
  .chat-dialog-mode,.chat-message-search,.chat-workflow-bar,.chat-history,.chat-composer,
  .chat-product-pane,.chat-product-pane>header,.chat-context-content,.chat-pagination
) {
  background:var(--chat-dark-panel)!important;
  border-color:var(--chat-dark-line)!important;
  color:var(--chat-dark-text)!important;
  box-shadow:none!important;
}
html[data-app-theme="dark"] body.communications-page--chats .chat-dialog-mode {
  background:#151f28!important;
  border-bottom-color:#2d3e4b!important;
}
html[data-app-theme="dark"] body.communications-page--chats .chat-dialog-mode button {
  background:transparent!important;
  color:#8f9daa!important;
  border:1px solid transparent!important;
}
html[data-app-theme="dark"] body.communications-page--chats .chat-dialog-mode button:hover {
  background:#1d2b36!important;
  color:#dce5ec!important;
}
html[data-app-theme="dark"] body.communications-page--chats .chat-dialog-mode button.is-active {
  background:#243541!important;
  border-color:#3b5160!important;
  color:#edf2f5!important;
}
html[data-app-theme="dark"] body.communications-page--chats .chat-message-search {
  background:#141e26!important;
}
html[data-app-theme="dark"] body.communications-page--chats :is(
  .chat-search input,.chat-manager-head select,.chat-workflow-bar select,.chat-message-search input,
  .chat-composer textarea,.chat-composer__top select,.chat-filter-date input,.chat-filter-number input
) {
  background:#111a22!important;
  border-color:#344754!important;
  color:#dce5ec!important;
  -webkit-text-fill-color:#dce5ec!important;
  color-scheme:dark!important;
}
html[data-app-theme="dark"] body.communications-page--chats :is(
  .chat-search input,.chat-message-search input,.chat-composer textarea,.chat-filter-date input,.chat-filter-number input
)::placeholder {
  color:#748593!important;
  -webkit-text-fill-color:#748593!important;
}
html[data-app-theme="dark"] body.communications-page--chats :is(
  .chat-filter-trigger,.chat-dialog-actions button,.chat-tags-edit,.chat-pagination button,
  .chat-composer__row .chat-attach-button,.chat-product-pane>header button,
  .chat-message-search button,.chat-template-popover>header button,.chat-order-summary>div button
) {
  background:#1b2832!important;
  border-color:#344754!important;
  color:#b9c6cf!important;
}
html[data-app-theme="dark"] body.communications-page--chats :is(
  .chat-filter-trigger,.chat-dialog-actions button,.chat-tags-edit,.chat-pagination button,
  .chat-composer__row .chat-attach-button,.chat-product-pane>header button,
  .chat-message-search button,.chat-template-popover>header button,.chat-order-summary>div button
):hover:not(:disabled) {
  background:#253642!important;
  border-color:#4d6373!important;
  color:#fff!important;
}
html[data-app-theme="dark"] body.communications-page--chats .chat-list-item {
  background:#17212a!important;
  border-bottom-color:#293a46!important;
}
html[data-app-theme="dark"] body.communications-page--chats .chat-list-item:hover { background:#1c2a35!important; }
html[data-app-theme="dark"] body.communications-page--chats .chat-list-item.is-active {
  background:#22313d!important;
  box-shadow:inset 4px 0 0 #52697a!important;
}
html[data-app-theme="dark"] body.communications-page--chats .chat-list-item.is-unread .chat-list-item__head strong { color:#eef3f6!important; }
html[data-app-theme="dark"] body.communications-page--chats .chat-list-item.is-unread .chat-list-item__preview { color:#bdc9d2!important; }
html[data-app-theme="dark"] body.communications-page--chats .chat-pagination { background:#151f28!important; }
html[data-app-theme="dark"] body.communications-page--chats .chat-history {
  background:linear-gradient(180deg,#101820 0%,#121c24 100%)!important;
}
html[data-app-theme="dark"] body.communications-page--chats .chat-history .communications-history-bubble {
  background:#1b2832!important;
  border-color:#344754!important;
  color:#dce5ec!important;
  box-shadow:none!important;
}
html[data-app-theme="dark"] body.communications-page--chats .chat-history .communications-history-bubble :is(p,strong,span,a) {
  color:#dce5ec!important;
  -webkit-text-fill-color:#dce5ec!important;
}
html[data-app-theme="dark"] body.communications-page--chats .chat-history .communications-history-bubble.is-seller {
  background:#243541!important;
  border-color:#3b5060!important;
}
html[data-app-theme="dark"] body.communications-page--chats .chat-history .communications-history-bubble.is-system {
  background:#202d37!important;
  border-color:#3a4b58!important;
  color:#b9c6cf!important;
}
html[data-app-theme="dark"] body.communications-page--chats .chat-history .communications-history-bubble.is-system :is(p,strong,span,a) {
  color:#b9c6cf!important;
  -webkit-text-fill-color:#b9c6cf!important;
}
html[data-app-theme="dark"] body.communications-page--chats .chat-history .communications-history-bubble.is-system.is-platform-yandex_market {
  background:#302c17!important;
  border-color:#665c24!important;
}
html[data-app-theme="dark"] body.communications-page--chats .chat-history .communications-history-bubble.is-system.is-platform-yandex_market :is(p,strong,span,a) {
  color:#eadb92!important;
  -webkit-text-fill-color:#eadb92!important;
}
html[data-app-theme="dark"] body.communications-page--chats .chat-history .communications-history-bubble.is-system.is-platform-ozon {
  background:#172944!important;
  border-color:#315985!important;
}
html[data-app-theme="dark"] body.communications-page--chats .chat-history .communications-history-bubble.is-system.is-platform-ozon :is(p,strong,span,a) {
  color:#bed3ff!important;
  -webkit-text-fill-color:#bed3ff!important;
}
html[data-app-theme="dark"] body.communications-page--chats .chat-history .communications-history-bubble.is-system.is-platform-wildberries {
  background:#2c1c31!important;
  border-color:#5b3764!important;
}
html[data-app-theme="dark"] body.communications-page--chats .chat-history .communications-history-bubble.is-system.is-platform-wildberries :is(p,strong,span,a) {
  color:#e4bfe9!important;
  -webkit-text-fill-color:#e4bfe9!important;
}
html[data-app-theme="dark"] body.communications-page--chats .chat-composer {
  background:#151f28!important;
  border-top-color:#2d3e4b!important;
}
html[data-app-theme="dark"] body.communications-page--chats .chat-composer__row .chat-send-button {
  background:#304656!important;
  color:#f3f6f8!important;
  border:1px solid #425c6d!important;
}
html[data-app-theme="dark"] body.communications-page--chats .chat-composer__row .chat-send-button:hover:not(:disabled) {
  background:#3b5364!important;
  border-color:#587286!important;
}
html[data-app-theme="dark"] body.communications-page--chats :is(.chat-template-popover,.chat-tags-menu,.chat-filter-modal,.chat-confirm-modal) {
  background:#17212a!important;
  border-color:#344754!important;
  color:#dce5ec!important;
  box-shadow:0 22px 64px rgba(0,0,0,.42)!important;
}
html[data-app-theme="dark"] body.communications-page--chats .chat-template-popover>header {
  background:#1a2731!important;
  border-bottom-color:#30414e!important;
}
html[data-app-theme="dark"] body.communications-page--chats :is(.chat-template-topic,.chat-template-choice) {
  background:#1b2832!important;
  color:#d4dde4!important;
}
html[data-app-theme="dark"] body.communications-page--chats :is(.chat-template-topic,.chat-template-choice):hover { background:#243541!important; }
html[data-app-theme="dark"] body.communications-page--chats .chat-template-choice span { color:#8e9da9!important; }
html[data-app-theme="dark"] body.communications-page--chats .chat-template-topic b { background:#263744!important;color:#cbd6de!important; }
html[data-app-theme="dark"] body.communications-page--chats .chat-tags-menu label:hover,
html[data-app-theme="dark"] body.communications-page--chats .chat-filter-options label:hover { background:#22313c!important; }
html[data-app-theme="dark"] body.communications-page--chats .chat-filter-grid fieldset {
  background:#18242e!important;
  border-color:#30414e!important;
}
html[data-app-theme="dark"] body.communications-page--chats .chat-filter-grid legend { color:#e2e9ee!important; }
html[data-app-theme="dark"] body.communications-page--chats .chat-filter-options label { color:#b7c4ce!important; }
html[data-app-theme="dark"] body.communications-page--chats .chat-filter-modal>footer { border-top-color:#30414e!important; }
html[data-app-theme="dark"] body.communications-page--chats :is(.chat-filter-reset,.chat-filter-cancel) {
  background:#1b2832!important;
  border-color:#344754!important;
  color:#cbd5dd!important;
}
html[data-app-theme="dark"] body.communications-page--chats .chat-confirm-modal ul {
  background:#2b241b!important;
  color:#dec89a!important;
}
html[data-app-theme="dark"] body.communications-page--chats .chat-confirm-modal footer button:first-child {
  background:#1b2832!important;
  border-color:#344754!important;
  color:#cbd5dd!important;
}
html[data-app-theme="dark"] body.communications-page--chats .chat-product-card img,
html[data-app-theme="dark"] body.communications-page--chats .chat-context-product img {
  background:#202d37!important;
  border:1px solid #344754!important;
}
html[data-app-theme="dark"] body.communications-page--chats .chat-product-card dl,
html[data-app-theme="dark"] body.communications-page--chats .chat-order-summary,
html[data-app-theme="dark"] body.communications-page--chats .chat-context-product {
  background:#1a2630!important;
  border-color:#344754!important;
}
html[data-app-theme="dark"] body.communications-page--chats .chat-reply-unavailable {
  background:#2a2020!important;
  border-color:#5b3939!important;
  color:#e5aaa6!important;
}
html[data-app-theme="dark"] body.communications-page--chats .chat-file-preview>span {
  background:#202d37!important;
  color:#b9c6cf!important;
}
html[data-app-theme="dark"] body.communications-page--chats .chat-file-preview button {
  background:#2a3a46!important;
  color:#cbd5dd!important;
}

/* --------------------------------------------------------------------------
   Audit guards: profile/pricing controls that still had literal light surfaces
   -------------------------------------------------------------------------- */
html[data-app-theme="dark"] body.profile-page :is(.profile-empty,.profile-invites-banner article,.security-card,.sessions-list,.sessions-list article,.profile-actions-list article) {
  background:#17212a!important;
  border-color:#2b3b48!important;
  color:#d4dde4!important;
}
html[data-app-theme="dark"] body.profile-page :is(.security-card__icon,.session-device-icon) {
  background:#22313c!important;
  color:#cbd6de!important;
}
html[data-app-theme="dark"] body.profile-page .profile-avatar--large {
  border-color:#344754!important;
  box-shadow:0 0 0 1px #50606d,0 10px 28px rgba(0,0,0,.24)!important;
}
html[data-app-theme="dark"] body.profile-page .profile-avatar-edit { border-color:#17212a!important; }
html[data-app-theme="dark"] body.profile-page .profile-status.is-online i { box-shadow:0 0 0 4px rgba(66,173,86,.13)!important; }
html[data-app-theme="dark"] body.profile-page .profile-switch span { background:#465461!important; }
html[data-app-theme="dark"] body.profile-page .profile-switch span::after { background:#dce5ec!important; }
html[data-app-theme="dark"] body.profile-page .profile-switch input:checked + span { background:#647483!important; }
html[data-app-theme="dark"] body.profile-page .sessions-list article>div strong,
html[data-app-theme="dark"] body.profile-page .profile-actions-list article strong { color:#dce5ec!important; }
html[data-app-theme="dark"] body.profile-page :is(.sessions-list article>div span,.sessions-list article>div small,.profile-actions-list article small,.profile-actions-list article time) { color:#8f9daa!important; }

/* V565 chat semantic accents: keep the dark shell but preserve useful colour. */
html[data-app-theme="dark"] body.communications-page--chats .chat-avatar {
  background:#24333f!important;
  color:#d4dee6!important;
  border:1px solid #344958!important;
}
html[data-app-theme="dark"] body.communications-page--chats .chat-list-item--ozon .chat-avatar {
  background:#172a46!important;color:#b9d0ff!important;border-color:#31547c!important;
}
html[data-app-theme="dark"] body.communications-page--chats .chat-list-item--wildberries .chat-avatar {
  background:#2d1d33!important;color:#e6bde9!important;border-color:#5d3a65!important;
}
html[data-app-theme="dark"] body.communications-page--chats .chat-list-item--yandex_market .chat-avatar {
  background:#302c18!important;color:#e6d68e!important;border-color:#625a27!important;
}
html[data-app-theme="dark"] body.communications-page--chats .chat-status-pill { background:#22313c!important;color:#c0ccd5!important; }
html[data-app-theme="dark"] body.communications-page--chats .chat-status-pill--new { background:#34241f!important;color:#e8a38c!important; }
html[data-app-theme="dark"] body.communications-page--chats .chat-status-pill--in_work { background:#1c2e43!important;color:#a9c8ed!important; }
html[data-app-theme="dark"] body.communications-page--chats .chat-status-pill--waiting_client { background:#302b1b!important;color:#dfce88!important; }
html[data-app-theme="dark"] body.communications-page--chats .chat-status-pill--need_help { background:#2d2033!important;color:#dcb1e4!important; }
html[data-app-theme="dark"] body.communications-page--chats .chat-status-pill--closed { background:#1c3127!important;color:#94d7af!important; }
html[data-app-theme="dark"] body.communications-page--chats .chat-status-pill--spam { background:#272c31!important;color:#a8b2ba!important; }
html[data-app-theme="dark"] body.communications-page--chats .chat-center[data-active-platform="ozon"] :is(.chat-dialog-mode button.is-active,.chat-send-button) {
  background:#15335d!important;border-color:#315f9e!important;color:#d4e2ff!important;
}
html[data-app-theme="dark"] body.communications-page--chats .chat-center[data-active-platform="wildberries"] :is(.chat-dialog-mode button.is-active,.chat-send-button) {
  background:#351d3d!important;border-color:#713d7d!important;color:#efc7f2!important;
}
html[data-app-theme="dark"] body.communications-page--chats .chat-center[data-active-platform="yandex_market"] :is(.chat-dialog-mode button.is-active,.chat-send-button) {
  background:#373018!important;border-color:#756824!important;color:#f0df98!important;
}

/* ========================================================================== 
   V566 — communications + product editor dark-theme audit
   Fixes light islands reported in questions/templates/product card and
   proactively covers related controls that share the same literal light CSS.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Questions / reviews: expanded row, composer, pagination, popovers
   -------------------------------------------------------------------------- */
html[data-app-theme="dark"] body.communications-page--questions,
html[data-app-theme="dark"] body.communications-page--reviews {
  --review-dark-panel:#17212a;
  --review-dark-soft:#1b2832;
  --review-dark-deep:#111a22;
  --review-dark-hover:#22313c;
  --review-dark-line:#2b3b48;
  --review-dark-line-strong:#3c5060;
  --review-dark-text:#dce5ec;
  --review-dark-muted:#8e9ca8;
}
html[data-app-theme="dark"] body:is(.communications-page--questions,.communications-page--reviews) :is(
  .review-table-shell,.review-toolbar,.review-table,.review-table-head,.review-row,.review-row-main,
  .review-details,.review-details-grid,.review-reply,.review-pagination,.review-template-menu,
  .review-filter-modal,.review-media-modal
) {
  background:var(--review-dark-panel)!important;
  border-color:var(--review-dark-line)!important;
  color:var(--review-dark-text)!important;
  box-shadow:none!important;
}
html[data-app-theme="dark"] body:is(.communications-page--questions,.communications-page--reviews) .review-table-head {
  background:#1c2934!important;
}
html[data-app-theme="dark"] body:is(.communications-page--questions,.communications-page--reviews) .review-row-main:hover,
html[data-app-theme="dark"] body:is(.communications-page--questions,.communications-page--reviews) .review-row.is-open .review-row-main {
  background:var(--review-dark-hover)!important;
}
html[data-app-theme="dark"] body:is(.communications-page--questions,.communications-page--reviews) .review-details {
  background:#141e26!important;
  padding-top:12px!important;
}
html[data-app-theme="dark"] body:is(.communications-page--questions,.communications-page--reviews) .review-details-grid {
  background:#18242e!important;
  border-color:#30414e!important;
}
html[data-app-theme="dark"] body:is(.communications-page--questions,.communications-page--reviews) .review-details-grid--questions {
  background:linear-gradient(180deg,#18242e 0%,#16212a 100%)!important;
}
html[data-app-theme="dark"] body:is(.communications-page--questions,.communications-page--reviews) :is(
  .review-text-block h3,.review-text-block strong,.review-details h3,.review-reply strong
) { color:#e7edf2!important; }
html[data-app-theme="dark"] body:is(.communications-page--questions,.communications-page--reviews) :is(
  .review-text-block p,.review-question-preview,.review-text-preview,.review-reply-message,.review-result-count,.review-pagination
) { color:#9eabb6!important; }
html[data-app-theme="dark"] body:is(.communications-page--questions,.communications-page--reviews) :is(
  .review-search input,.review-reply textarea,.review-bulk-panel textarea
) {
  background:var(--review-dark-deep)!important;
  border-color:#344754!important;
  color:#dce5ec!important;
  -webkit-text-fill-color:#dce5ec!important;
}
html[data-app-theme="dark"] body:is(.communications-page--questions,.communications-page--reviews) :is(
  .review-search input,.review-reply textarea,.review-bulk-panel textarea
)::placeholder { color:#748593!important;-webkit-text-fill-color:#748593!important; }
html[data-app-theme="dark"] body:is(.communications-page--questions,.communications-page--reviews) :is(
  .review-filter-trigger,.review-column-settings-trigger,.review-template-button,.review-pages button,
  .review-filter-modal>footer button:first-child,.review-filter-modal header button,.review-media-modal header button,
  .review-template-menu>header button,.review-pending-check
) {
  background:#1b2832!important;
  border-color:#344754!important;
  color:#c2ced7!important;
}
html[data-app-theme="dark"] body:is(.communications-page--questions,.communications-page--reviews) :is(
  .review-filter-trigger,.review-column-settings-trigger,.review-template-button,.review-pages button,
  .review-filter-modal>footer button:first-child,.review-filter-modal header button,.review-media-modal header button,
  .review-template-menu>header button,.review-pending-check
):hover:not(:disabled) {
  background:#253642!important;
  border-color:#4d6373!important;
  color:#fff!important;
}
html[data-app-theme="dark"] body:is(.communications-page--questions,.communications-page--reviews) .review-check span {
  background:#121b23!important;
  border-color:#536472!important;
}
html[data-app-theme="dark"] body:is(.communications-page--questions,.communications-page--reviews) .review-check input:checked + span {
  background:var(--review-accent)!important;
  border-color:var(--review-accent)!important;
}
html[data-app-theme="dark"] body:is(.communications-page--questions,.communications-page--reviews) :is(.review-product-cell img,.review-product-placeholder,.review-media-grid>button,.review-media-empty) {
  background:#202d37!important;
  border-color:#344754!important;
  color:#9faeba!important;
}
html[data-app-theme="dark"] body:is(.communications-page--questions,.communications-page--reviews) .review-existing-answer {
  background:#243541!important;
  border:1px solid #3b5060!important;
  color:#e4ebf0!important;
}
html[data-app-theme="dark"] body:is(.communications-page--questions,.communications-page--reviews) .review-existing-answer :is(p,strong) { color:#e4ebf0!important; }
html[data-app-theme="dark"] body:is(.communications-page--questions,.communications-page--reviews) .review-existing-answer small { color:#92a1ae!important; }
html[data-app-theme="dark"] body:is(.communications-page--questions,.communications-page--reviews) .review-reply-unavailable {
  background:#2d2020!important;border:1px solid #5d3b3b!important;color:#e5aaa6!important;
}
html[data-app-theme="dark"] body:is(.communications-page--questions,.communications-page--reviews) .review-reply-pending {
  background:#2e291b!important;border-color:#65572a!important;color:#dfcf96!important;
}
html[data-app-theme="dark"] body:is(.communications-page--questions,.communications-page--reviews) .review-reply-pending :is(strong,span,small) { color:inherit!important; }
html[data-app-theme="dark"] body:is(.communications-page--questions,.communications-page--reviews) .review-template-choice {
  background:#1b2832!important;color:#cbd5dd!important;
}
html[data-app-theme="dark"] body:is(.communications-page--questions,.communications-page--reviews) .review-template-choice:hover { background:#243541!important; }
html[data-app-theme="dark"] body:is(.communications-page--questions,.communications-page--reviews) .review-filter-options span {
  background:#18242e!important;border-color:#344754!important;color:#b9c6cf!important;
}
html[data-app-theme="dark"] body:is(.communications-page--questions,.communications-page--reviews) .review-pagination { background:#151f28!important; }
html[data-app-theme="dark"] body:is(.communications-page--questions,.communications-page--reviews) .review-pages button.is-active {
  background:#304656!important;border-color:#4b6578!important;color:#fff!important;
}
html[data-app-theme="dark"] body:is(.communications-page--questions,.communications-page--reviews) .review-rating-tooltip {
  background:#1b2832!important;border-color:#344754!important;color:#b9c6cf!important;box-shadow:0 18px 48px rgba(0,0,0,.38)!important;
}

/* --------------------------------------------------------------------------
   Response templates: editor footer/hints/filter overlay and form controls
   -------------------------------------------------------------------------- */
html[data-app-theme="dark"] body.response-templates-page :is(
  .rt-hero,.rt-list-card,.rt-editor-card,.rt-filter-popover,.rt-filter-head,.rt-editor-actions,
  .rt-variable-tip,.rt-variable-column,.rt-filter-actions
) {
  background:#17212a!important;
  border-color:#2b3b48!important;
  color:#dce5ec!important;
  box-shadow:none!important;
}
html[data-app-theme="dark"] body.response-templates-page .rt-editor-actions {
  background:linear-gradient(180deg,#17212a 0%,#151f28 100%)!important;
  border-top-color:#30414e!important;
}
html[data-app-theme="dark"] body.response-templates-page .rt-filter-actions {
  background:linear-gradient(to top,#17212a 78%,rgba(23,33,42,0))!important;
}
html[data-app-theme="dark"] body.response-templates-page :is(
  .rt-search,.rt-editor-title-wrap input,.rt-topic-select select,.rt-token-editor,
  .rt-variable-chip,.rt-add-variable,.rt-filter-button
) {
  background:#111a22!important;
  border-color:#344754!important;
  color:#dce5ec!important;
}
html[data-app-theme="dark"] body.response-templates-page :is(.rt-search input,.rt-editor-title-wrap input) {
  color:#dce5ec!important;-webkit-text-fill-color:#dce5ec!important;
}
html[data-app-theme="dark"] body.response-templates-page :is(.rt-search input,.rt-editor-title-wrap input)::placeholder {
  color:#748593!important;-webkit-text-fill-color:#748593!important;
}
html[data-app-theme="dark"] body.response-templates-page .rt-filter-button:hover,
html[data-app-theme="dark"] body.response-templates-page .rt-variable-chip:hover,
html[data-app-theme="dark"] body.response-templates-page .rt-add-variable:hover {
  background:#243541!important;border-color:#4d6373!important;color:#eef3f6!important;
}
html[data-app-theme="dark"] body.response-templates-page .rt-channel-tab {
  background:#17212a!important;border-color:#344754!important;color:#aebbc6!important;
}
html[data-app-theme="dark"] body.response-templates-page .rt-channel-tab:hover {
  background:#21303b!important;border-color:#465c6b!important;color:#edf2f5!important;
}
html[data-app-theme="dark"] body.response-templates-page .rt-channel-tab.is-active {
  background:#283845!important;border-color:#445a69!important;color:#f0f4f7!important;
}
html[data-app-theme="dark"] body.response-templates-page .rt-variable-tip {
  color:#8f9daa!important;
}
html[data-app-theme="dark"] body.response-templates-page .rt-variable-column h3,
html[data-app-theme="dark"] body.response-templates-page :is(.rt-template-copy h2,.rt-variables-heading h2,.rt-topic-select span) { color:#e4ebf0!important; }
html[data-app-theme="dark"] body.response-templates-page .rt-topic-select select option {
  background:#17212a!important;color:#dce5ec!important;
}
html[data-app-theme="dark"] body.response-templates-page .rt-template-row:hover,
html[data-app-theme="dark"] body.response-templates-page .rt-template-row.is-selected {
  background:#202e39!important;
}
html[data-app-theme="dark"] body.response-templates-page .rt-template-row.is-selected { box-shadow:inset 3px 0 0 #5e7180!important; }
html[data-app-theme="dark"] body.response-templates-page .rt-template-row__preview {
  background:#151f28!important;border-color:#30414e!important;color:#9fadb8!important;
}
html[data-app-theme="dark"] body.response-templates-page .rt-editor-message {
  background:#302123!important;color:#e6a0a5!important;
}
html[data-app-theme="dark"] body.response-templates-page .rt-editor-message.is-success {
  background:#1d3027!important;color:#91d5ad!important;
}

/* --------------------------------------------------------------------------
   AI assistant: remove remaining literal light controls from nested widgets
   -------------------------------------------------------------------------- */
html[data-app-theme="dark"] body.communications-page--ai-assistant :is(
  .ai-assistant-switch-card,.ai-manual-notice,.ai-stat-card,.ai-settings-panel,.ai-knowledge-panel,
  .ai-channel-tabs button,.ai-choice-grid button,.ai-inline-add button,.ai-upload-button,.ai-schedule-add,
  .ai-schedule-label,.ai-schedule-days
) {
  background:#17212a!important;border-color:#2b3b48!important;color:#dce5ec!important;box-shadow:none!important;
}
html[data-app-theme="dark"] body.communications-page--ai-assistant .ai-manual-notice { background:#151f28!important;color:#9aa8b4!important; }
html[data-app-theme="dark"] body.communications-page--ai-assistant .ai-channel-tabs button:hover,
html[data-app-theme="dark"] body.communications-page--ai-assistant .ai-choice-grid button:hover,
html[data-app-theme="dark"] body.communications-page--ai-assistant .ai-schedule-add:hover {
  background:#22313c!important;border-color:#435866!important;color:#eef3f6!important;
}
html[data-app-theme="dark"] body.communications-page--ai-assistant .ai-channel-tabs button.is-active,
html[data-app-theme="dark"] body.communications-page--ai-assistant .ai-choice-grid button.is-active {
  background:#283845!important;border-color:#4b6171!important;color:#f0f4f7!important;box-shadow:none!important;
}
html[data-app-theme="dark"] body.communications-page--ai-assistant .ai-choice-grid button.is-active .ai-choice-icon {
  background:#1b2832!important;color:#dce5ec!important;
}
html[data-app-theme="dark"] body.communications-page--ai-assistant :is(.ai-schedule-label,.ai-schedule-days) {
  color-scheme:dark!important;
}
html[data-app-theme="dark"] body.communications-page--ai-assistant .ai-knowledge-drop:hover,
html[data-app-theme="dark"] body.communications-page--ai-assistant .ai-knowledge-drop.is-dragover {
  background:#1d2b36!important;border-color:#4b6171!important;
}

/* --------------------------------------------------------------------------
   Unified product card: media, compliance, sticky footer and related editors
   -------------------------------------------------------------------------- */
html[data-app-theme="dark"] body.product-card-page :is(
  .pc-site-photo__upload,.pc-dimensions input,.pc-media-grid figure,.pc-dropzone,.pc-media-url-add input,
  .pc-media-url-add button,.pc-compliance-toggle,.pc-rich-view-switch,.pc-rich-device-switch,
  .pc-rich-library,.pc-rich-canvas-wrap,.pc-rich-preview-wrap,.pc-rich-json-view,.pc-rich-block,
  .pc-rich-canvas-head,.pc-rich-preview-head,.pc-rich-json-toolbar,.pc-rich-field input,.pc-rich-field textarea,
  .pc-rich-field select,.pc-rich-json-toolbar button,.pc-rich-cover-card,.pc-rich-cover-preview,
  .pc-rich-url-control button,.pc-special-value-actions button,.pc-characteristic-clear,.pc-rich-market-note,
  .pc-rich-column-actions button,.pc-barcode-chips,.pc-barcode-add,.pc-barcode-settings,.pc-markdown-editor,
  .pc-markdown-editor__head>b,.pc-markdown-source>span,.pc-markdown-fields textarea
) {
  background:#17212a!important;
  border-color:#30414e!important;
  color:#dce5ec!important;
  box-shadow:none!important;
}
html[data-app-theme="dark"] body.product-card-page .pc-dropzone {
  background:#141e26!important;border-color:#455965!important;color:#a6b3bd!important;
}
html[data-app-theme="dark"] body.product-card-page .pc-dropzone:hover,
html[data-app-theme="dark"] body.product-card-page .pc-dropzone.is-dragover {
  background:#1f2e39!important;border-color:var(--pc-accent)!important;color:#e6edf2!important;
}
html[data-app-theme="dark"] body.product-card-page :is(.pc-media-url-add input,.pc-rich-field input,.pc-rich-field textarea,.pc-rich-field select,.pc-markdown-fields textarea,.pc-dimensions input) {
  background:#111a22!important;color:#dce5ec!important;-webkit-text-fill-color:#dce5ec!important;color-scheme:dark!important;
}
html[data-app-theme="dark"] body.product-card-page :is(.pc-media-url-add input,.pc-rich-field input,.pc-rich-field textarea,.pc-markdown-fields textarea)::placeholder {
  color:#748593!important;-webkit-text-fill-color:#748593!important;
}
html[data-app-theme="dark"] body.product-card-page .pc-compliance-toggle {
  background:#121b23!important;border:1px solid #30414e!important;
}
html[data-app-theme="dark"] body.product-card-page .pc-compliance-toggle button {
  background:transparent!important;color:#9eabb6!important;border:0!important;
}
html[data-app-theme="dark"] body.product-card-page .pc-compliance-toggle button:hover {
  background:#1e2c37!important;color:#dfe7ed!important;
}
html[data-app-theme="dark"] body.product-card-page .pc-compliance-toggle button.is-active {
  background:#2a3a46!important;color:#f0f4f7!important;box-shadow:inset 0 0 0 1px #4a6171!important;
}
html[data-app-theme="dark"] body.product-card-page .pc-compliance-panel .pc-field>span { color:#cbd5dd!important; }
html[data-app-theme="dark"] body.product-card-page .pc-compliance-help { color:#8f9daa!important; }
html[data-app-theme="dark"] body.product-card-page .pc-sticky-actions {
  background:rgba(20,30,38,.96)!important;
  border-color:#344754!important;
  box-shadow:0 14px 36px rgba(0,0,0,.30)!important;
  backdrop-filter:blur(14px)!important;
}
html[data-app-theme="dark"] body.product-card-page :is(.pc-media-url-add button,.pc-rich-url-control button,.pc-rich-json-toolbar button,.pc-special-value-actions button,.pc-characteristic-clear,.pc-rich-column-actions button,.pc-barcode-add,.pc-barcode-settings) {
  background:#1b2832!important;border-color:#344754!important;color:#cbd5dd!important;
}
html[data-app-theme="dark"] body.product-card-page :is(.pc-media-url-add button,.pc-rich-url-control button,.pc-rich-json-toolbar button,.pc-special-value-actions button,.pc-characteristic-clear,.pc-rich-column-actions button,.pc-barcode-add,.pc-barcode-settings):hover {
  background:#253642!important;border-color:#4d6373!important;color:#fff!important;
}
html[data-app-theme="dark"] body.product-card-page :is(.pc-rich-view-switch,.pc-rich-device-switch) {
  background:#111a22!important;
}
html[data-app-theme="dark"] body.product-card-page :is(.pc-rich-view-switch button,.pc-rich-device-switch button) { color:#8f9daa!important; }
html[data-app-theme="dark"] body.product-card-page :is(.pc-rich-view-switch button.is-active,.pc-rich-device-switch button.is-active) {
  background:#283845!important;color:#eef3f6!important;box-shadow:none!important;
}
html[data-app-theme="dark"] body.product-card-page .pc-rich-canvas-head,
html[data-app-theme="dark"] body.product-card-page .pc-rich-preview-head,
html[data-app-theme="dark"] body.product-card-page .pc-rich-json-toolbar,
html[data-app-theme="dark"] body.product-card-page .pc-rich-block>header {
  background:#1b2832!important;border-color:#30414e!important;
}
html[data-app-theme="dark"] body.product-card-page .pc-rich-canvas { background:#111a22!important; }
html[data-app-theme="dark"] body.product-card-page .pc-rich-empty { background:#151f28!important;border-color:#425663!important;color:#94a3af!important; }
html[data-app-theme="dark"] body.product-card-page .pc-rich-preview { background:#151f28!important;box-shadow:none!important; }
html[data-app-theme="dark"] body.product-card-page .pc-rich-preview-media { background:linear-gradient(135deg,#1d2a34,#243440)!important;color:#8f9daa!important; }
html[data-app-theme="dark"] body.product-card-page .pc-rich-preview-cover { background:#17212a!important; }
html[data-app-theme="dark"] body.product-card-page .pc-rich-preview-spacer { background:repeating-linear-gradient(135deg,#151f28,#151f28 7px,#1d2a34 7px,#1d2a34 14px)!important; }
html[data-app-theme="dark"] body.product-card-page .pc-description-result__text { background:#151f28!important;border-color:#30414e!important;color:#d6dfe6!important; }
html[data-app-theme="dark"] body.product-card-page .pc-combo-multi { background:#111a22!important;border-color:#344754!important;color:#dce5ec!important; }
html[data-app-theme="dark"] body.product-card-page :is(.pc-characteristic .pc-multi-select__toggle,.pc-field .pc-multi-select__toggle,.pc-multi-select__add-custom) {
  background:#111a22!important;border-color:#344754!important;color:#dce5ec!important;
}
html[data-app-theme="dark"] body.product-card-page .pc-barcode-chip { background:#1c2e43!important;border-color:#365473!important;color:#b8d2f1!important; }
html[data-app-theme="dark"] body.product-card-page .pc-kiz-checkbox__box { background:#111a22!important;border-color:#536472!important; }
html[data-app-theme="dark"] body.product-card-page .pc-quick-actions button,
html[data-app-theme="dark"] body.product-card-page .pc-connection-status__head button,
html[data-app-theme="dark"] body.product-card-page .pc-site-photo__remove {
  background:#1b2832!important;border-color:#344754!important;color:#cbd5dd!important;box-shadow:none!important;
}
html[data-app-theme="dark"] body.product-card-page .pc-quick-actions button:hover,
html[data-app-theme="dark"] body.product-card-page .pc-connection-status__head button:hover,
html[data-app-theme="dark"] body.product-card-page .pc-site-photo__remove:hover {
  background:#253642!important;border-color:#4d6373!important;color:#fff!important;
}

/* Preserve marketplace colour in product editor action accents without using light cards. */
html[data-app-theme="dark"] body.product-card-page[data-active-marketplace="wildberries"] .pc-market-action,
html[data-app-theme="dark"] body.product-card-page .pc-market-action--wildberries { color:#fff!important; }


/* ==========================================================================
   V567 — warehouse marketplace stocks + product-card dark-theme deep polish
   Reported screenshots plus a late-cascade audit of adjacent light islands.
   ========================================================================== */

/* Marketplace warehouse stocks: the v176/v178 skin paints the workspace and
   filter column white in static.css. Keep the entire working area on one dark
   elevation system, including states that are only visible after expansion. */
html[data-app-theme="dark"] body.marketplace-warehouse-page {
  background:var(--dark-main)!important;
  color:var(--dark-text)!important;
}
html[data-app-theme="dark"] body.marketplace-warehouse-page .mpw-workspace.warehouse-stock-app {
  background:#141d25!important;
  border-color:#2b3b48!important;
  box-shadow:0 16px 40px rgba(0,0,0,.20)!important;
}
html[data-app-theme="dark"] body.marketplace-warehouse-page .mpw-filters {
  background:linear-gradient(180deg,#17212a 0%,#151e27 100%)!important;
  border-color:#2b3b48!important;
  color:#dce5ec!important;
}
html[data-app-theme="dark"] body.marketplace-warehouse-page .mpw-filters h2 {
  color:#edf2f5!important;
}
html[data-app-theme="dark"] body.marketplace-warehouse-page .mpw-main {
  background:#141d25!important;
}
html[data-app-theme="dark"] body.marketplace-warehouse-page .mpw-filter summary,
html[data-app-theme="dark"] body.marketplace-warehouse-page .mpw-reset {
  background:#1d2a34!important;
  border-color:#344754!important;
  color:#dce5ec!important;
  box-shadow:none!important;
}
html[data-app-theme="dark"] body.marketplace-warehouse-page .mpw-filter summary:hover,
html[data-app-theme="dark"] body.marketplace-warehouse-page .mpw-reset:hover {
  background:#253541!important;
  border-color:#4a6070!important;
  color:#f2f5f7!important;
}
html[data-app-theme="dark"] body.marketplace-warehouse-page .mpw-filter-list {
  background:#121b23!important;
  border-color:#30414e!important;
  color:#cbd5dd!important;
}
html[data-app-theme="dark"] body.marketplace-warehouse-page .mpw-filter-list label {
  color:#c5d0d9!important;
}
html[data-app-theme="dark"] body.marketplace-warehouse-page .mpw-filter-list label:hover {
  background:#1e2c37!important;
  color:#edf2f5!important;
}
html[data-app-theme="dark"] body.marketplace-warehouse-page .mpw-filter-list label.is-fixed {
  background:#1c2934!important;
  color:#d7e1e8!important;
  box-shadow:inset 0 0 0 1px #324754!important;
}
html[data-app-theme="dark"] body.marketplace-warehouse-page .mpw-filter-list label i {
  border-color:#687987!important;
}
html[data-app-theme="dark"] body.marketplace-warehouse-page .mpw-filter-list p {
  color:#8393a0!important;
}
html[data-app-theme="dark"] body.marketplace-warehouse-page .mpw-toolbar {
  background:transparent!important;
}
html[data-app-theme="dark"] body.marketplace-warehouse-page .mpw-search {
  background:#111a22!important;
  border-color:#30414e!important;
  color:#dce5ec!important;
  box-shadow:none!important;
}
html[data-app-theme="dark"] body.marketplace-warehouse-page .mpw-search:focus-within {
  border-color:var(--mpw-accent)!important;
  box-shadow:0 0 0 3px rgba(95,114,136,.14)!important;
}
html[data-app-theme="dark"] body.marketplace-warehouse-page .mpw-search input {
  color:#dce5ec!important;
  -webkit-text-fill-color:#dce5ec!important;
}
html[data-app-theme="dark"] body.marketplace-warehouse-page .mpw-search input::placeholder {
  color:#748593!important;
  -webkit-text-fill-color:#748593!important;
}
html[data-app-theme="dark"] body.marketplace-warehouse-page .mpw-refresh {
  background:#1b2832!important;
  border-color:#344754!important;
  color:#b8c6d0!important;
  box-shadow:none!important;
}
html[data-app-theme="dark"] body.marketplace-warehouse-page .mpw-refresh:hover {
  background:#253642!important;
  border-color:#4d6373!important;
  color:#fff!important;
}
html[data-app-theme="dark"] body.marketplace-warehouse-page .mpw-cost-note {
  background:#2a251b!important;
  border-color:#5a4a28!important;
  color:#d8c48d!important;
}
html[data-app-theme="dark"] body.marketplace-warehouse-page .mpw-unit-switch {
  background:#111a22!important;
  box-shadow:inset 0 0 0 1px #31414e!important;
}
html[data-app-theme="dark"] body.marketplace-warehouse-page .mpw-unit-switch button {
  color:#8f9daa!important;
}
html[data-app-theme="dark"] body.marketplace-warehouse-page .mpw-unit-switch button.is-active {
  background:#2b3a47!important;
  color:#edf2f5!important;
  box-shadow:inset 0 0 0 1px #506473!important;
}
html[data-app-theme="dark"] body.marketplace-warehouse-page .mpw-help>span,
html[data-app-theme="dark"] body.marketplace-warehouse-page .mpw-other-warehouse-help>span,
html[data-app-theme="dark"] body.marketplace-warehouse-page .mpw-export>div {
  background:#1b2832!important;
  border-color:#344754!important;
  color:#d7e0e7!important;
  box-shadow:0 18px 44px rgba(0,0,0,.35)!important;
}
html[data-app-theme="dark"] body.marketplace-warehouse-page .mpw-export>div a {
  color:#cbd5dd!important;
}
html[data-app-theme="dark"] body.marketplace-warehouse-page .mpw-export>div a:hover {
  background:#253642!important;
  color:#f2f5f7!important;
}
html[data-app-theme="dark"] body.marketplace-warehouse-page .mpw-other-warehouse-help {
  background:#1c2934!important;
  border-color:#405363!important;
  color:#aebbc6!important;
}
html[data-app-theme="dark"] body.marketplace-warehouse-page .mpw-group {
  background:#17212a!important;
  border-color:#2b3b48!important;
}
html[data-app-theme="dark"] body.marketplace-warehouse-page .mpw-group>summary:hover {
  background:#1c2a35!important;
}
html[data-app-theme="dark"] body.marketplace-warehouse-page .mpw-group-title strong,
html[data-app-theme="dark"] body.marketplace-warehouse-page .mpw-group-value {
  color:#edf2f5!important;
}
html[data-app-theme="dark"] body.marketplace-warehouse-page .mpw-group-stats {
  color:#a4b1bc!important;
}
html[data-app-theme="dark"] body.marketplace-warehouse-page .mpw-group-chevron {
  stroke:#8f9daa!important;
}
html[data-app-theme="dark"] body.marketplace-warehouse-page .mpw-table-wrap {
  border-color:#2b3b48!important;
  background:#151f28!important;
}
html[data-app-theme="dark"] body.marketplace-warehouse-page .mpw-table,
html[data-app-theme="dark"] body.marketplace-warehouse-page .mpw-table td {
  background:#151f28!important;
  border-color:#263744!important;
  color:#cbd5dd!important;
}
html[data-app-theme="dark"] body.marketplace-warehouse-page .mpw-table th {
  background:#1c2934!important;
  border-color:#30414e!important;
  color:#9fadb8!important;
}
html[data-app-theme="dark"] body.marketplace-warehouse-page .mpw-table tbody tr:hover td {
  background:#1d2b36!important;
}
html[data-app-theme="dark"] body.marketplace-warehouse-page .mpw-table .mpw-product strong {
  color:#e6edf2!important;
}
html[data-app-theme="dark"] body.marketplace-warehouse-page .mpw-table .mpw-product small {
  color:#8797a4!important;
}
html[data-app-theme="dark"] body.marketplace-warehouse-page .mpw-count,
html[data-app-theme="dark"] body.marketplace-warehouse-page .mpw-count--transit {
  background:#1b2832!important;
  border-color:#344754!important;
  color:#d5dee5!important;
}
html[data-app-theme="dark"] body.marketplace-warehouse-page .mpw-pagination {
  color:#9eabb7!important;
}
html[data-app-theme="dark"] body.marketplace-warehouse-page .mpw-pagination nav a,
html[data-app-theme="dark"] body.marketplace-warehouse-page .mpw-pagination nav span,
html[data-app-theme="dark"] body.marketplace-warehouse-page .mpw-pagination select {
  background:#17232c!important;
  border-color:#334452!important;
  color:#cbd5dd!important;
}
html[data-app-theme="dark"] body.marketplace-warehouse-page .mpw-pagination nav a:hover {
  background:#22313c!important;
  color:#eef3f6!important;
}
html[data-app-theme="dark"] body.marketplace-warehouse-page .mpw-pagination nav a.is-active {
  background:#304656!important;
  border-color:#4a6578!important;
  color:#f2f5f7!important;
}
html[data-app-theme="dark"] body.marketplace-warehouse-page .mpw-empty {
  background:#17212a!important;
  border:1px dashed #3a4d5b!important;
  color:#8f9daa!important;
}
html[data-app-theme="dark"] body.marketplace-warehouse-page .mpw-empty h2 {
  color:#e7edf2!important;
}

/* Product editor: characteristic helper rows were still hard-coded to a light
   card; searchable directories and auxiliary controls had the same issue. */
html[data-app-theme="dark"] body.product-card-page .pc-characteristic-hint,
html[data-app-theme="dark"] body.product-card-page .pc-price-edit-hint {
  background:#151f28!important;
  border:1px solid #30414e!important;
  color:#93a2ae!important;
  box-shadow:none!important;
}
html[data-app-theme="dark"] body.product-card-page :is(
  .pc-characteristic .pc-multi-select__menu,.pc-field .pc-multi-select__menu,
  .pc-characteristic .pc-multi-select__search,.pc-field .pc-multi-select__search,
  .pc-multi-select__add-custom,.pc-chip-editor,.pc-summary-grid article,.pc-readonly-values span,
  .pc-info-button,.pc-choice-group button,.pc-variant-card__image,.pc-plus
) {
  background:#151f28!important;
  border-color:#344754!important;
  color:#d6dfe6!important;
  box-shadow:none!important;
}
html[data-app-theme="dark"] body.product-card-page :is(.pc-characteristic .pc-multi-select__search,.pc-field .pc-multi-select__search) {
  background:#111a22!important;
  -webkit-text-fill-color:#dce5ec!important;
}
html[data-app-theme="dark"] body.product-card-page :is(.pc-characteristic .pc-multi-select__option,.pc-field .pc-multi-select__option) {
  color:#c9d4dc!important;
}
html[data-app-theme="dark"] body.product-card-page :is(.pc-characteristic .pc-multi-select__option:hover,.pc-field .pc-multi-select__option:hover) {
  background:#22313c!important;
  color:#eef3f6!important;
}
html[data-app-theme="dark"] body.product-card-page .pc-choice-group button:hover {
  background:#22313c!important;
  border-color:#4a6070!important;
  color:#eef3f6!important;
}
html[data-app-theme="dark"] body.product-card-page .pc-choice-group button.is-active {
  background:#2a3a46!important;
  border-color:#4b6171!important;
  color:#f2f5f7!important;
}
html[data-app-theme="dark"] body.product-card-page .pc-inline-copy {
  background:#1b2832!important;
  border-color:#344754!important;
  color:#aebbc6!important;
  box-shadow:none!important;
}
html[data-app-theme="dark"] body.product-card-page .pc-inline-copy:hover {
  background:#253642!important;
  border-color:var(--pc-accent)!important;
  color:#edf2f5!important;
}
html[data-app-theme="dark"] body.product-card-page .pc-inline-copy.is-copied {
  background:#193128!important;
  border-color:#3e7657!important;
  color:#88d5a7!important;
}
html[data-app-theme="dark"] body.product-card-page .pc-rating__gauge>div {
  background:conic-gradient(#65d981 var(--rating-percent),#26343f 0)!important;
}
html[data-app-theme="dark"] body.product-card-page .pc-rating__gauge>div::before {
  background:#17212a!important;
}
html[data-app-theme="dark"] body.product-card-page .pc-rating__gauge :is(b,small) {
  color:#dce5ec!important;
}

/* Rich content: library buttons and the preview shell were remaining white
   islands. Keep editor chrome dark while preserving uploaded media itself. */
html[data-app-theme="dark"] body.product-card-page .pc-rich-library button {
  background:#1b2832!important;
  border-color:#344754!important;
  color:#dce5ec!important;
  box-shadow:none!important;
}
html[data-app-theme="dark"] body.product-card-page .pc-rich-library button:hover {
  background:#253642!important;
  border-color:var(--pc-accent)!important;
  color:#fff!important;
  transform:translateY(-1px);
}
html[data-app-theme="dark"] body.product-card-page .pc-rich-library button b {
  background:#243440!important;
  color:var(--pc-accent)!important;
}
html[data-app-theme="dark"] body.product-card-page .pc-rich-library h3,
html[data-app-theme="dark"] body.product-card-page .pc-rich-library-head h3 {
  color:#e6edf2!important;
}
html[data-app-theme="dark"] body.product-card-page .pc-rich-library-head>span {
  background:#22313c!important;
  color:#aebbc6!important;
}
html[data-app-theme="dark"] body.product-card-page .pc-rich-preview-shell {
  background:#111a22!important;
  border-color:#30414e!important;
}
html[data-app-theme="dark"] body.product-card-page .pc-rich-preview {
  background:#151f28!important;
  border:1px solid #30414e!important;
  box-shadow:0 10px 28px rgba(0,0,0,.20)!important;
}
html[data-app-theme="dark"] body.product-card-page .pc-rich-preview-empty {
  color:#8696a4!important;
}
html[data-app-theme="dark"] body.product-card-page .pc-rich-preview-empty b {
  color:#dce5ec!important;
}
html[data-app-theme="dark"] body.product-card-page .pc-rich-preview-text,
html[data-app-theme="dark"] body.product-card-page .pc-rich-preview-copy,
html[data-app-theme="dark"] body.product-card-page .pc-rich-preview-columns article,
html[data-app-theme="dark"] body.product-card-page .pc-rich-preview-raw {
  background:#17212a!important;
  border-color:#30414e!important;
  color:#cbd5dd!important;
}
html[data-app-theme="dark"] body.product-card-page :is(.pc-rich-preview-copy h4,.pc-rich-preview-columns h4) {
  color:#edf2f5!important;
}
html[data-app-theme="dark"] body.product-card-page :is(.pc-rich-preview-copy p,.pc-rich-preview-columns p) {
  color:#9eabb7!important;
}
html[data-app-theme="dark"] body.product-card-page .pc-rich-column-fields {
  background:#151f28!important;
  border-color:#30414e!important;
}
html[data-app-theme="dark"] body.product-card-page .pc-rich-column-fields legend,
html[data-app-theme="dark"] body.product-card-page .pc-rich-field>span {
  color:#9eabb7!important;
}
html[data-app-theme="dark"] body.product-card-page .pc-rich-block-actions button:hover {
  background:#263744!important;
  color:#eef3f6!important;
}
html[data-app-theme="dark"] body.product-card-page .pc-rich-block-actions [data-pc-rich-remove]:hover {
  background:#3a2226!important;
  color:#f09aa1!important;
}
html[data-app-theme="dark"] body.product-card-page .pc-rich-json-error {
  background:#351f23!important;
  color:#f09aa1!important;
}

/* Related product-card surfaces found during the same audit. */
html[data-app-theme="dark"] body.product-card-page .pc-hero__meta {
  color:#a5b1bc!important;
}
html[data-app-theme="dark"] body.product-card-page .pc-readonly-values small,
html[data-app-theme="dark"] body.product-card-page .pc-barcode-field>small,
html[data-app-theme="dark"] body.product-card-page .pc-dimensions__hint {
  color:#8797a4!important;
}
html[data-app-theme="dark"] body.product-card-page .pc-summary-grid article {
  background:#17212a!important;
}
html[data-app-theme="dark"] body.product-card-page .pc-empty {
  background:#151f28!important;
  border-color:#405363!important;
  color:#8f9daa!important;
}

/* V567 audit follow-up: light-only states that are not visible until a dialog,
   recommendation, generator or dropdown is opened. */
html[data-app-theme="dark"] body.product-card-page :is(
  .pc-category-list button,.pc-multi-select__actions button,.pc-local-draft-note,.pc-inline-tip,
  .pc-rating__recommendations li,.pc-rating__recommendations-empty,.pc-summary-info,
  .pc-summary-card--prices,.pc-summary-card--stocks,.pc-description-editor>textarea,
  .pc-secondary-action,.pc-generator-help,.pc-generator-help-text
) {
  background:#17212a!important;
  border-color:#30414e!important;
  color:#cbd5dd!important;
  box-shadow:none!important;
}
html[data-app-theme="dark"] body.product-card-page .pc-category-list button:hover,
html[data-app-theme="dark"] body.product-card-page .pc-secondary-action:hover,
html[data-app-theme="dark"] body.product-card-page .pc-generator-help:hover,
html[data-app-theme="dark"] body.product-card-page .pc-rating__recommendations li>button:hover {
  background:#22313c!important;
  border-color:#4a6070!important;
  color:#eef3f6!important;
}
html[data-app-theme="dark"] body.product-card-page .pc-market-switch>div {
  background:#151f28!important;
  border-color:#30414e!important;
}
html[data-app-theme="dark"] body.product-card-page .pc-local-draft-note {
  background:#2b261b!important;
  border-color:#5a4b28!important;
  color:#d8c89c!important;
}
html[data-app-theme="dark"] body.product-card-page .pc-description-editor>textarea,
html[data-app-theme="dark"] body.product-card-page .pc-price-edit-grid input {
  background:#111a22!important;
  border-color:#344754!important;
  color:#dce5ec!important;
  -webkit-text-fill-color:#dce5ec!important;
  color-scheme:dark!important;
}
html[data-app-theme="dark"] body.product-card-page .pc-description-editor>textarea::placeholder,
html[data-app-theme="dark"] body.product-card-page .pc-price-edit-grid input::placeholder {
  color:#748593!important;
  -webkit-text-fill-color:#748593!important;
}
html[data-app-theme="dark"] body.product-card-page .pc-generator-help-text {
  color:#9eabb7!important;
}
html[data-app-theme="dark"] body.product-card-page .pc-rating__recommendations li strong,
html[data-app-theme="dark"] body.product-card-page .pc-summary-info strong {
  color:#e7edf2!important;
}
html[data-app-theme="dark"] body.product-card-page .pc-rating__recommendations li :is(p,small),
html[data-app-theme="dark"] body.product-card-page .pc-summary-info :is(p,small) {
  color:#8f9daa!important;
}

/* Warehouse table utility skin has separate !important app-table rules. Match
   those selectors explicitly so future expanded tables cannot flash light. */
html[data-app-theme="dark"] body.marketplace-warehouse-page .mpw-table-wrap.app-table-scroll {
  background:#151f28!important;
  border-color:#2b3b48!important;
}
html[data-app-theme="dark"] body.marketplace-warehouse-page .mpw-table.app-table th {
  background:#1c2934!important;
  border-color:#30414e!important;
  color:#9fadb8!important;
}
html[data-app-theme="dark"] body.marketplace-warehouse-page .mpw-table.app-table tbody tr:hover td,
html[data-app-theme="dark"] body.marketplace-warehouse-page .mpw-table.app-table tbody tr:hover .app-sticky-col {
  background:#1d2b36!important;
}
html[data-app-theme="dark"] body.product-card-page .pc-market-switch {
  background:#17212a!important;
  border-color:#30414e!important;
}
html[data-app-theme="dark"] body.product-card-page .pc-market-tab {
  color:#9eabb7!important;
}
html[data-app-theme="dark"] body.product-card-page .pc-market-tab:not(.is-active):not(:disabled):hover {
  background:#22313c!important;
  color:#eef3f6!important;
}
html[data-app-theme="dark"] body.product-card-page .pc-market-tab--ozon.is-active {
  background:var(--dark-ozon-soft)!important;
  border-color:var(--dark-ozon-border)!important;
  color:#b9d0ff!important;
}
html[data-app-theme="dark"] body.product-card-page .pc-market-tab--wildberries.is-active {
  background:var(--dark-wb-soft)!important;
  border-color:var(--dark-wb-border)!important;
  color:#e5b0ea!important;
}
html[data-app-theme="dark"] body.product-card-page .pc-market-tab--yandex.is-active {
  background:var(--dark-yandex-soft)!important;
  border-color:var(--dark-yandex-border)!important;
  color:#ead58f!important;
}

/* ========================================================================== 
   V568 — warehouse family dark-theme audit
   Seller stocks, receiving, transfers, warehouse groups/designer/addressing,
   supply creation and supply planning. These selectors intentionally live at
   the end of the cascade because several legacy warehouse skins use #fff and
   !important values internally.
   ========================================================================== */

/* Shared warehouse form chrome ------------------------------------------------ */
html[data-app-theme="dark"] :is(
  body.warehouse-stocks-page,
  body.warehouse-receiving-page,
  body.warehouse-transfer-page,
  body.warehouse-tree-page,
  body.warehouse-designer-page,
  body.warehouse-address-page,
  body.fbo-supply-page,
  body.fbo-planning-page
) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),textarea,select) {
  background-color:#131b23!important;
  border-color:#334351!important;
  color:#dce5ec!important;
  -webkit-text-fill-color:#dce5ec!important;
  color-scheme:dark!important;
  box-shadow:none!important;
}
html[data-app-theme="dark"] :is(
  body.warehouse-stocks-page,
  body.warehouse-receiving-page,
  body.warehouse-transfer-page,
  body.warehouse-tree-page,
  body.warehouse-designer-page,
  body.warehouse-address-page,
  body.fbo-supply-page,
  body.fbo-planning-page
) :is(input:not([type="checkbox"]):not([type="radio"]),textarea)::placeholder {
  color:#748593!important;
  -webkit-text-fill-color:#748593!important;
}
html[data-app-theme="dark"] :is(
  body.warehouse-stocks-page,
  body.warehouse-receiving-page,
  body.warehouse-transfer-page,
  body.warehouse-tree-page,
  body.warehouse-designer-page,
  body.warehouse-address-page,
  body.fbo-supply-page,
  body.fbo-planning-page
) :is(input:not([type="checkbox"]):not([type="radio"]),textarea,select):focus {
  border-color:#566d7e!important;
  box-shadow:0 0 0 3px rgba(93,119,139,.16)!important;
  outline:0!important;
}
html[data-app-theme="dark"] :is(
  body.warehouse-stocks-page,
  body.warehouse-receiving-page,
  body.warehouse-transfer-page,
  body.warehouse-tree-page,
  body.warehouse-designer-page,
  body.warehouse-address-page,
  body.fbo-supply-page,
  body.fbo-planning-page
) select option {
  background:#17212a!important;
  color:#dce5ec!important;
}

/* Seller stocks ---------------------------------------------------------------- */
html[data-app-theme="dark"] body.warehouse-stocks-page {
  --warehouse-stock-panel:#17212a;
  --warehouse-stock-panel-soft:#151f28;
  --warehouse-stock-line:#2c3b48;
}
html[data-app-theme="dark"] body.warehouse-stocks-page :is(
  .warehouse-stock-metric,.warehouse-stock-app,.warehouse-stock-toolbar,
  .warehouse-stock-main,.warehouse-stock-table-wrap,.warehouse-stock-upload-card,
  .warehouse-stock-columns-card,.warehouse-stock-linked-card,.warehouse-stock-empty
) {
  background:#17212a!important;
  border-color:#2c3b48!important;
  color:#dce5ec!important;
  box-shadow:none!important;
}
html[data-app-theme="dark"] body.warehouse-stocks-page .warehouse-stock-workspace {
  background:#151f28!important;
  border-color:#2c3b48!important;
}
html[data-app-theme="dark"] body.warehouse-stocks-page .warehouse-stock-filters {
  background:linear-gradient(180deg,#17212a 0%,#151f28 100%)!important;
  border-color:#2c3b48!important;
  color:#dce5ec!important;
}
html[data-app-theme="dark"] body.warehouse-stocks-page .warehouse-stock-filters>h2,
html[data-app-theme="dark"] body.warehouse-stocks-page .warehouse-stock-title h2,
html[data-app-theme="dark"] body.warehouse-stocks-page .warehouse-stock-metric h2 {
  color:#edf2f5!important;
}
html[data-app-theme="dark"] body.warehouse-stocks-page :is(.warehouse-stock-title p,.warehouse-stock-metric__scope,.warehouse-stock-results-meta,.warehouse-stock-group-form label) {
  color:#8f9daa!important;
}
html[data-app-theme="dark"] body.warehouse-stocks-page :is(.warehouse-stock-toggle,.warehouse-stock-filters fieldset) {
  background:#1a2630!important;
  border-color:#30414e!important;
  color:#cbd5dd!important;
}
html[data-app-theme="dark"] body.warehouse-stocks-page :is(.warehouse-stock-toggle:hover,.warehouse-stock-filters fieldset:focus-within) {
  background:#1f2e39!important;
  border-color:#465c6b!important;
}
html[data-app-theme="dark"] body.warehouse-stocks-page .warehouse-stock-unit-switch {
  background:#111a22!important;
  border-color:#30414e!important;
}
html[data-app-theme="dark"] body.warehouse-stocks-page .warehouse-stock-unit-switch button {
  background:transparent!important;
  color:#8f9daa!important;
}
html[data-app-theme="dark"] body.warehouse-stocks-page .warehouse-stock-unit-switch button.active {
  background:#344653!important;
  color:#f1f5f7!important;
}
html[data-app-theme="dark"] body.warehouse-stocks-page .warehouse-stock-cost-note {
  background:#2b261b!important;
  border:1px solid #554a2d!important;
  color:#d8c89c!important;
}
html[data-app-theme="dark"] body.warehouse-stocks-page .warehouse-stock-toolbar {
  border-bottom:1px solid #2c3b48!important;
}
html[data-app-theme="dark"] body.warehouse-stocks-page :is(.warehouse-stock-action-menu summary,.warehouse-stock-action-button,.warehouse-stock-columns-button,.warehouse-stock-upload-back) {
  background:#1c2933!important;
  border-color:#344754!important;
  color:#d8e1e8!important;
  box-shadow:none!important;
}
html[data-app-theme="dark"] body.warehouse-stocks-page :is(.warehouse-stock-action-menu summary:hover,.warehouse-stock-action-button:hover,.warehouse-stock-columns-button:hover,.warehouse-stock-upload-back:hover) {
  background:#263744!important;
  border-color:#506676!important;
  color:#fff!important;
}
html[data-app-theme="dark"] body.warehouse-stocks-page .warehouse-stock-action-menu>div {
  background:#1a2630!important;
  border-color:#344754!important;
  box-shadow:0 18px 42px rgba(0,0,0,.34)!important;
}
html[data-app-theme="dark"] body.warehouse-stocks-page .warehouse-stock-action-menu>div a {
  color:#cbd5dd!important;
}
html[data-app-theme="dark"] body.warehouse-stocks-page .warehouse-stock-action-menu>div a:hover {
  background:#253642!important;
  color:#fff!important;
}
html[data-app-theme="dark"] body.warehouse-stocks-page .warehouse-stock-table,
html[data-app-theme="dark"] body.warehouse-stocks-page .warehouse-stock-table td {
  background:#151f28!important;
  border-color:#263642!important;
  color:#cbd5dd!important;
}
html[data-app-theme="dark"] body.warehouse-stocks-page .warehouse-stock-table th {
  background:#1c2933!important;
  border-color:#30414e!important;
  color:#9facb8!important;
}
html[data-app-theme="dark"] body.warehouse-stocks-page .warehouse-stock-table tbody tr:hover td {
  background:#1d2b36!important;
}
html[data-app-theme="dark"] body.warehouse-stocks-page .warehouse-stock-product>div {
  background:#202d37!important;
  border-color:#354958!important;
  color:#8797a4!important;
}
html[data-app-theme="dark"] body.warehouse-stocks-page :is(.warehouse-stock-edit input,.warehouse-stock-readonly) {
  background:#111a22!important;
  border-color:#334653!important;
  color:#e1e8ed!important;
}
html[data-app-theme="dark"] body.warehouse-stocks-page .warehouse-stock-linked {
  color:#a9c4ff!important;
}
html[data-app-theme="dark"] body.warehouse-stocks-page .warehouse-stock-upload-dropzone {
  background:#141e27!important;
  border-color:#4b6170!important;
  color:#cbd5dd!important;
}
html[data-app-theme="dark"] body.warehouse-stocks-page :is(.warehouse-stock-column-list label,.warehouse-stock-linked-list article) {
  background:#1a2630!important;
  border-color:#344754!important;
  color:#d6dfe6!important;
}
html[data-app-theme="dark"] body.warehouse-stocks-page .warehouse-stock-warning,
html[data-app-theme="dark"] body.warehouse-stocks-page .alert-warning {
  background:#2b261b!important;
  border-color:#5a4b28!important;
  color:#d8c89c!important;
}

/* Receiving -------------------------------------------------------------------- */
html[data-app-theme="dark"] body.warehouse-receiving-page :is(
  .wr-stepper,.wr-form-card,.wr-document-section,.wr-intake-intro,.wr-items-panel,
  .wr-complete-card,.wr-history-panel,.wr-modal__card,.wr-supplier-card
) {
  background:#17212a!important;
  border-color:#2b3b48!important;
  color:#dce5ec!important;
  box-shadow:none!important;
}
html[data-app-theme="dark"] body.warehouse-receiving-page .wr-stepper>i {
  background:#344552!important;
}
html[data-app-theme="dark"] body.warehouse-receiving-page .wr-stepper>div>b {
  background:#1b2832!important;
  border-color:#465968!important;
  color:#aebbc6!important;
}
html[data-app-theme="dark"] body.warehouse-receiving-page .wr-stepper>div.is-active>b {
  background:#2d5b43!important;
  border-color:#4f8b67!important;
  color:#eaf5ef!important;
  box-shadow:0 0 0 5px rgba(114,201,154,.10)!important;
}
html[data-app-theme="dark"] body.warehouse-receiving-page .wr-stepper>div.is-complete>b {
  background:#193128!important;
  border-color:#4f8b67!important;
  color:#88d5a7!important;
}
html[data-app-theme="dark"] body.warehouse-receiving-page :is(.wr-stepper strong,.wr-section-title,.wr-field>span,.wr-mode-option strong) {
  color:#dce5ec!important;
}
html[data-app-theme="dark"] body.warehouse-receiving-page :is(.wr-stepper small,.wr-field small,.wr-mode-option small) {
  color:#8e9ca8!important;
}
html[data-app-theme="dark"] body.warehouse-receiving-page :is(.wr-number-field button,.wr-select-action button) {
  background:#1b2832!important;
  border-color:#344754!important;
  color:#9fcbb0!important;
}
html[data-app-theme="dark"] body.warehouse-receiving-page :is(.wr-number-field button:hover,.wr-select-action button:hover) {
  background:#263744!important;
  color:#c9ead6!important;
}
html[data-app-theme="dark"] body.warehouse-receiving-page .wr-mode-option>span {
  background:#151f28!important;
  border-color:#30414e!important;
  color:#cbd5dd!important;
}
html[data-app-theme="dark"] body.warehouse-receiving-page .wr-mode-option input:checked+span {
  background:#193128!important;
  border-color:#48795d!important;
  box-shadow:0 0 0 3px rgba(114,201,154,.09)!important;
}
html[data-app-theme="dark"] body.warehouse-receiving-page .wr-mode-option b {
  background:#17212a!important;
  border-color:#5c6b78!important;
  box-shadow:inset 0 0 0 4px #17212a!important;
}
html[data-app-theme="dark"] body.warehouse-receiving-page .wr-mode-option input:checked+span b {
  background:#72c99a!important;
  border-color:#72c99a!important;
  box-shadow:inset 0 0 0 4px #193128!important;
}
html[data-app-theme="dark"] body.warehouse-receiving-page .wr-mode-option input:checked+span strong {
  color:#a8e0bd!important;
}
html[data-app-theme="dark"] body.warehouse-receiving-page .wr-mode-hint {
  background:#183027!important;
  border:1px solid #315d45!important;
  color:#a6d9b8!important;
}
html[data-app-theme="dark"] body.warehouse-receiving-page .wr-info {
  border-color:#536473!important;
  color:#a5b2bd!important;
}
html[data-app-theme="dark"] body.warehouse-receiving-page .wr-dropzone {
  background:#141e27!important;
  border-color:#46765b!important;
}
html[data-app-theme="dark"] body.warehouse-receiving-page :is(.wr-ai-progress,.wr-how-it-works) {
  background:#151f28!important;
  border-color:#30414e!important;
}
html[data-app-theme="dark"] body.warehouse-receiving-page .wr-warning {
  background:#2b261b!important;
  color:#dbc98f!important;
}
html[data-app-theme="dark"] body.warehouse-receiving-page .wr-history-table th {
  background:#1c2933!important;
  border-color:#30414e!important;
  color:#9facb8!important;
}
html[data-app-theme="dark"] body.warehouse-receiving-page .wr-history-table td {
  background:#151f28!important;
  border-color:#263642!important;
  color:#cbd5dd!important;
}
html[data-app-theme="dark"] body.warehouse-receiving-page .wr-history-table tbody tr:hover td {
  background:#1d2b36!important;
}

/* Transfers -------------------------------------------------------------------- */
html[data-app-theme="dark"] body.warehouse-transfer-page :is(.wt-form-panel,.wt-products-panel,.wt-modal-card) {
  background:#17212a!important;
  border-color:#2b3b48!important;
  color:#dce5ec!important;
  box-shadow:none!important;
}
html[data-app-theme="dark"] body.warehouse-transfer-page .wt-editor-heading {
  background:#17212a!important;
  border-color:#2b3b48!important;
}
html[data-app-theme="dark"] body.warehouse-transfer-page .wt-back {
  background:#1b2832!important;
  border-color:#344754!important;
  color:#cbd5dd!important;
}
html[data-app-theme="dark"] body.warehouse-transfer-page .wt-back:hover {
  background:#263744!important;
  color:#fff!important;
}
html[data-app-theme="dark"] body.warehouse-transfer-page .wt-divider,
html[data-app-theme="dark"] body.warehouse-transfer-page .wt-products-head {
  border-color:#2b3b48!important;
}
html[data-app-theme="dark"] body.warehouse-transfer-page :is(.wt-field label,.wt-field>span,.wt-group-field>span,.wt-section-title h2,.wt-products-head h2) {
  color:#dce5ec!important;
}
html[data-app-theme="dark"] body.warehouse-transfer-page :is(.wt-section-title p,.wt-products-head p,.wt-field em) {
  color:#8f9daa!important;
}
html[data-app-theme="dark"] body.warehouse-transfer-page .wt-select-shell {
  background:#131b23!important;
  border-color:#344754!important;
  box-shadow:none!important;
}
html[data-app-theme="dark"] body.warehouse-transfer-page .wt-select-shell select {
  background:transparent!important;
  border:0!important;
  color:#dce5ec!important;
  -webkit-text-fill-color:#dce5ec!important;
}
html[data-app-theme="dark"] body.warehouse-transfer-page .wt-select-shell>svg {
  color:#8fa0ad!important;
}
html[data-app-theme="dark"] body.warehouse-transfer-page .wt-swap {
  background:#1b2832!important;
  border-color:#405363!important;
  color:#d5dfe6!important;
}
html[data-app-theme="dark"] body.warehouse-transfer-page .wt-swap:hover {
  background:#263744!important;
  border-color:#5b7181!important;
  color:#fff!important;
}
html[data-app-theme="dark"] body.warehouse-transfer-page .wt-product-table th {
  background:#1c2933!important;
  border-color:#30414e!important;
  color:#9facb8!important;
}
html[data-app-theme="dark"] body.warehouse-transfer-page .wt-product-table td {
  background:#151f28!important;
  border-color:#263642!important;
  color:#cbd5dd!important;
}
html[data-app-theme="dark"] body.warehouse-transfer-page .wt-product-table tbody tr:hover td {
  background:#1d2b36!important;
}
html[data-app-theme="dark"] body.warehouse-transfer-page :is(.wt-product-cell strong,.wt-identity-cell strong,.wt-total-summary>strong,.wt-selected-summary strong) {
  color:#e5ecf1!important;
}
html[data-app-theme="dark"] body.warehouse-transfer-page :is(.wt-product-cell small,.wt-identity-cell small,.wt-measure small,.wt-total-summary,.wt-table-placeholder) {
  color:#8797a4!important;
}
html[data-app-theme="dark"] body.warehouse-transfer-page :is(.wt-product-cell img,.wt-product-image-empty) {
  background:#202d37!important;
  border-color:#354958!important;
}
html[data-app-theme="dark"] body.warehouse-transfer-page .wt-add-product {
  background:#17242e!important;
  border-color:#435766!important;
  color:#cbd5dd!important;
}
html[data-app-theme="dark"] body.warehouse-transfer-page .wt-add-product:hover {
  background:#22333f!important;
  border-color:#5b7181!important;
  color:#eef3f6!important;
}
html[data-app-theme="dark"] body.warehouse-transfer-page .wt-products-footer {
  border-color:#2b3b48!important;
  background:#17212a!important;
}

/* Warehouse groups/tree -------------------------------------------------------- */
html[data-app-theme="dark"] body.warehouse-tree-page .warehouse-tree-settings-button {
  background:#1b2832!important;
  border-color:#344754!important;
  color:#dce5ec!important;
  box-shadow:none!important;
}
html[data-app-theme="dark"] body.warehouse-tree-page .warehouse-tree-settings-button:hover {
  background:#263744!important;
  border-color:#536979!important;
  color:#fff!important;
}
html[data-app-theme="dark"] body.warehouse-tree-page .warehouse-tree-summary article {
  background:linear-gradient(180deg,#19242e 0%,#17212a 100%)!important;
  border-color:#2c3b48!important;
  box-shadow:none!important;
}
html[data-app-theme="dark"] body.warehouse-tree-page .warehouse-tree-summary small {
  color:#8f9daa!important;
}
html[data-app-theme="dark"] body.warehouse-tree-page .warehouse-tree-summary strong {
  color:#edf2f5!important;
}
html[data-app-theme="dark"] body.warehouse-tree-page :is(.warehouse-groups-panel,.warehouse-group-card,.warehouse-groups-empty) {
  background:#17212a!important;
  border-color:#2b3b48!important;
  color:#dce5ec!important;
  box-shadow:none!important;
}
html[data-app-theme="dark"] body.warehouse-tree-page :is(.warehouse-groups-panel__head h2,.warehouse-group-card h3) {
  color:#edf2f5!important;
}
html[data-app-theme="dark"] body.warehouse-tree-page :is(.warehouse-groups-panel__head p,.warehouse-group-card header p) {
  color:#8f9daa!important;
}
html[data-app-theme="dark"] body.warehouse-tree-page .warehouse-group-card footer {
  border-color:#2b3b48!important;
}
html[data-app-theme="dark"] body.warehouse-tree-page .warehouse-group-edit {
  color:#aebbc6!important;
}
html[data-app-theme="dark"] body.warehouse-tree-page .warehouse-member-chip:not(.warehouse-member-chip--organization):not(.warehouse-member-chip--ozon):not(.warehouse-member-chip--wildberries):not(.warehouse-member-chip--yandex) {
  background:#202d37!important;
  border-color:#354958!important;
  color:#b9c5ce!important;
}
html[data-app-theme="dark"] body.warehouse-tree-page .warehouse-member-chip--ozon {
  background:var(--dark-ozon-soft)!important;border-color:var(--dark-ozon-border)!important;color:#b8d0ff!important;
}
html[data-app-theme="dark"] body.warehouse-tree-page .warehouse-member-chip--wildberries {
  background:var(--dark-wb-soft)!important;border-color:var(--dark-wb-border)!important;color:#e5b0ea!important;
}
html[data-app-theme="dark"] body.warehouse-tree-page .warehouse-member-chip--yandex {
  background:var(--dark-yandex-soft)!important;border-color:var(--dark-yandex-border)!important;color:#ead58f!important;
}
html[data-app-theme="dark"] body.warehouse-tree-page :is(.warehouse-tree-settings-dialog__card,.warehouse-group-dialog__card) {
  background:#17212a!important;
  border-color:#344754!important;
  color:#dce5ec!important;
  box-shadow:0 28px 80px rgba(0,0,0,.42)!important;
}
html[data-app-theme="dark"] body.warehouse-tree-page :is(.warehouse-tree-settings-dialog__card header,.warehouse-tree-settings-dialog__card footer,.warehouse-group-dialog__head,.warehouse-group-dialog__actions) {
  border-color:#2c3b48!important;
}
html[data-app-theme="dark"] body.warehouse-tree-page :is(.warehouse-tree-settings-dialog__card h2,.warehouse-settings-switch strong,.warehouse-group-dialog__head h2) {
  color:#e7edf2!important;
}
html[data-app-theme="dark"] body.warehouse-tree-page :is(.warehouse-tree-settings-close,.warehouse-group-dialog__close) {
  background:#1e2b35!important;
  border-color:#3a4d5b!important;
  color:#cbd5dd!important;
}
html[data-app-theme="dark"] body.warehouse-tree-page .warehouse-settings-switch>span {
  background:#40505e!important;
}
html[data-app-theme="dark"] body.warehouse-tree-page .warehouse-settings-switch>span::after {
  background:#dce5ec!important;
}
html[data-app-theme="dark"] body.warehouse-tree-page .warehouse-settings-switch input:checked+span {
  background:#4f7b61!important;
}
html[data-app-theme="dark"] body.warehouse-tree-page .warehouse-tree-warnings>div,
html[data-app-theme="dark"] body.warehouse-tree-page .warehouse-tree-row.is-archived {
  background:#2b261b!important;
  border-color:#594c2c!important;
}
html[data-app-theme="dark"] body.warehouse-tree-page .warehouse-archived-chip {
  background:#332b1d!important;
  border-color:#6a5528!important;
  color:#e2c477!important;
}

/* Designer + address storage --------------------------------------------------- */
html[data-app-theme="dark"] body.warehouse-designer-page :is(.wh-card,.wh-toolbox,.wh-canvas-card,.wh-properties,.wh-stat-card) {
  background:#17212a!important;
  border-color:#2b3b48!important;
  color:#dce5ec!important;
  box-shadow:none!important;
}
html[data-app-theme="dark"] body.warehouse-designer-page .wh-tool__icon {
  background:#22313c!important;
  color:#b7c4ce!important;
}
html[data-app-theme="dark"] body.warehouse-designer-page .wh-tool:hover .wh-tool__icon,
html[data-app-theme="dark"] body.warehouse-designer-page .wh-tool.is-active .wh-tool__icon {
  background:#2c3d4a!important;
  color:#eef3f6!important;
  box-shadow:none!important;
}
html[data-app-theme="dark"] body.warehouse-designer-page :is(.wh-editor-header,.wh-editor-header-actions,.wh-canvas-toolbar) {
  background:#17212a!important;
  border-color:#2b3b48!important;
}
html[data-app-theme="dark"] body.warehouse-designer-page :is(.button-secondary,.button-danger) {
  background:#1c2933!important;
  border-color:#3a4d5b!important;
  color:#d6dfe6!important;
}
html[data-app-theme="dark"] body.warehouse-designer-page .button-danger:hover {
  background:#3a2226!important;
  border-color:#754148!important;
  color:#f0a2a7!important;
}
html[data-app-theme="dark"] body.warehouse-designer-page :is(.toast,.app-toast,.wh-toast,[class*="toast--error"]) {
  background:#351f23!important;
  border-color:#6e3940!important;
  color:#f0a2a7!important;
  box-shadow:0 18px 42px rgba(0,0,0,.34)!important;
}

html[data-app-theme="dark"] body.warehouse-address-page :is(.wh-filter-card,.wh-tree-card,.wh-map-main,.wh-map-aside,.wh-placement-card,.wh-placement-products,.wh-placement-settings) {
  background:#17212a!important;
  border-color:#2b3b48!important;
  color:#dce5ec!important;
  box-shadow:none!important;
}
html[data-app-theme="dark"] body.warehouse-address-page .wh-view-switch {
  background:#17212a!important;
  border-color:#344754!important;
}
html[data-app-theme="dark"] body.warehouse-address-page .wh-view-switch a {
  color:#9eabb7!important;
}
html[data-app-theme="dark"] body.warehouse-address-page .wh-view-switch a:hover {
  background:#22313c!important;
  color:#eef3f6!important;
}
html[data-app-theme="dark"] body.warehouse-address-page .wh-view-switch a.is-active {
  background:#304250!important;
  color:#f1f5f7!important;
}
html[data-app-theme="dark"] body.warehouse-address-page .wh-filter-grid select[data-native-select],
html[data-app-theme="dark"] body.warehouse-address-page .wh-placement-settings select[data-native-select] {
  background-color:#131b23!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2397a8b5' stroke-width='2'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E")!important;
  border-color:#344754!important;
  color:#dce5ec!important;
  -webkit-text-fill-color:#dce5ec!important;
}
html[data-app-theme="dark"] body.warehouse-address-page .wh-placement-help {
  background:#17242e!important;
  border-color:#344754!important;
  color:#aebbc6!important;
}
html[data-app-theme="dark"] body.warehouse-address-page .wh-placement-help>span {
  background:#263744!important;
  color:#dce5ec!important;
}
html[data-app-theme="dark"] body.warehouse-address-page .wh-tree-table th {
  background:#1c2933!important;
  border-color:#30414e!important;
  color:#9facb8!important;
}
html[data-app-theme="dark"] body.warehouse-address-page .wh-tree-table td {
  background:#151f28!important;
  border-color:#263642!important;
  color:#cbd5dd!important;
}
html[data-app-theme="dark"] body.warehouse-address-page .wh-tree-row:hover td {
  background:#1d2b36!important;
}
html[data-app-theme="dark"] body.warehouse-address-page .wh-placement-card>.wh-placement-head,
html[data-app-theme="dark"] body.warehouse-address-page .wh-placement-actions {
  background:#17212a!important;
  border-color:#2b3b48!important;
}
html[data-app-theme="dark"] body.warehouse-address-page :is(.wh-product-choice,.wh-selected-product,.wh-picker-empty) {
  background:#1a2630!important;
  border-color:#344754!important;
  color:#cbd5dd!important;
}
html[data-app-theme="dark"] body.warehouse-address-page .wh-export-popover {
  background:#1a2630!important;
  border-color:#344754!important;
  box-shadow:0 18px 42px rgba(0,0,0,.34)!important;
}

/* Supply creation -------------------------------------------------------------- */
html[data-app-theme="dark"] body.fbo-supply-page .fs-card {
  background:#17212a!important;
  border-color:#2b3b48!important;
  color:#dce5ec!important;
  box-shadow:none!important;
}
html[data-app-theme="dark"] body.fbo-supply-page .fs-step {
  background:#263744!important;
  color:#dce5ec!important;
}
html[data-app-theme="dark"] body.fbo-supply-page .fs-api-state {
  background:#202d37!important;
  color:#aebbc6!important;
}
html[data-app-theme="dark"] body.fbo-supply-page .fs-platform {
  background:#18242d!important;
  border-color:#334754!important;
  color:#dce5ec!important;
  box-shadow:none!important;
}
html[data-app-theme="dark"] body.fbo-supply-page .fs-platform:hover {
  background:#21303b!important;
  border-color:#506676!important;
}
html[data-app-theme="dark"] body.fbo-supply-page .fs-platform strong {
  color:#dce5ec!important;
}
html[data-app-theme="dark"] body.fbo-supply-page .fs-platform small {
  color:#8f9daa!important;
}
html[data-app-theme="dark"] body.fbo-supply-page .fs-platform em {
  background:#243440!important;
  color:#aebbc6!important;
}
html[data-app-theme="dark"] body.fbo-supply-page .fs-platform--ozon:has(input:checked) {
  background:var(--dark-ozon-soft)!important;border-color:var(--dark-ozon-border)!important;
}
html[data-app-theme="dark"] body.fbo-supply-page .fs-platform--wildberries:has(input:checked) {
  background:var(--dark-wb-soft)!important;border-color:var(--dark-wb-border)!important;
}
html[data-app-theme="dark"] body.fbo-supply-page .fs-platform--yandex:has(input:checked) {
  background:var(--dark-yandex-soft)!important;border-color:var(--dark-yandex-border)!important;
}
html[data-app-theme="dark"] body.fbo-supply-page .fs-field>span {
  color:#b5c1cb!important;
}
html[data-app-theme="dark"] body.fbo-supply-page .fs-api-note {
  background:#18242d!important;
  border-color:#30414e!important;
  color:#9eabb7!important;
}
html[data-app-theme="dark"] body.fbo-supply-page .fs-api-note.is-warning {
  background:#2b261b!important;
  border-color:#594c2c!important;
  color:#d8c89c!important;
}
html[data-app-theme="dark"] body.fbo-supply-page .fs-table th,
html[data-app-theme="dark"] body.fbo-supply-page .fs-history-table th {
  background:#1c2933!important;
  border-color:#30414e!important;
  color:#9facb8!important;
}
html[data-app-theme="dark"] body.fbo-supply-page .fs-table td,
html[data-app-theme="dark"] body.fbo-supply-page .fs-history-table td {
  background:#151f28!important;
  border-color:#263642!important;
  color:#cbd5dd!important;
}
html[data-app-theme="dark"] body.fbo-supply-page :is(.fs-table tbody tr:hover td,.fs-history-table tbody tr:hover td) {
  background:#1d2b36!important;
}
html[data-app-theme="dark"] body.fbo-supply-page .fs-summary>div {
  background:#1a2630!important;
  border-color:#30414e!important;
}
html[data-app-theme="dark"] body.fbo-supply-page .fs-summary strong,
html[data-app-theme="dark"] body.fbo-supply-page .fs-selected strong {
  color:#e6edf2!important;
}
html[data-app-theme="dark"] body.fbo-supply-page .fs-history-tabs button {
  color:#96a5b1!important;
}
html[data-app-theme="dark"] body.fbo-supply-page .fs-history-tabs button:hover {
  background:#21303b!important;
  color:#dce5ec!important;
}
html[data-app-theme="dark"] body.fbo-supply-page .fs-history-tabs button.is-active {
  background:#2a3a46!important;
  color:#eef3f6!important;
}
html[data-app-theme="dark"] body.fbo-supply-page :is(.fs-remote-detail,.fs-remote-fields>div,.fs-mini-table,.fs-document-row) {
  background:#17212a!important;
  border-color:#30414e!important;
  color:#cbd5dd!important;
}
html[data-app-theme="dark"] body.fbo-supply-page .fs-inline-close {
  background:#22313c!important;
  color:#b8c4ce!important;
}
html[data-app-theme="dark"] body.fbo-supply-page .fs-history-delete {
  background:#351f23!important;
  border-color:#6e3940!important;
  color:#f09aa1!important;
}

/* Supply planning -------------------------------------------------------------- */
html[data-app-theme="dark"] body.fbo-planning-page :is(.fbo-market-outline,.fbo-card,.fbo-parameters,.fbo-sidebar,.fbo-main) {
  background:#17212a!important;
  border-color:#2b3b48!important;
  color:#dce5ec!important;
  box-shadow:none!important;
}
html[data-app-theme="dark"] body.fbo-planning-page .fbo-platform {
  background:#18242d!important;
  border-color:#334754!important;
  color:#cbd5dd!important;
  box-shadow:none!important;
}
html[data-app-theme="dark"] body.fbo-planning-page .fbo-platform:hover {
  background:#21303b!important;
  border-color:#506676!important;
}
html[data-app-theme="dark"] body.fbo-planning-page .fbo-platform--ozon:has(input:checked) {
  background:var(--dark-ozon-soft)!important;border-color:var(--dark-ozon-border)!important;color:#c9dcff!important;
}
html[data-app-theme="dark"] body.fbo-planning-page .fbo-platform--wildberries:has(input:checked) {
  background:var(--dark-wb-soft)!important;border-color:var(--dark-wb-border)!important;color:#ebc4ef!important;
}
html[data-app-theme="dark"] body.fbo-planning-page .fbo-platform--yandex:has(input:checked) {
  background:var(--dark-yandex-soft)!important;border-color:var(--dark-yandex-border)!important;color:#efdda5!important;
}
html[data-app-theme="dark"] body.fbo-planning-page :is(.fbo-field>span,.fbo-filter-label,.fbo-destination-select>span) {
  color:#aebbc6!important;
}
html[data-app-theme="dark"] body.fbo-planning-page :is(.fbo-select-trigger,.fbo-multi>button,.fbo-number,.fbo-date-field) {
  background:#131b23!important;
  border-color:#344754!important;
  color:#dce5ec!important;
}
html[data-app-theme="dark"] body.fbo-planning-page :is(.fbo-select-popover,.fbo-multi-menu) {
  background:#1a2630!important;
  border-color:#344754!important;
  box-shadow:0 18px 42px rgba(0,0,0,.34)!important;
}
html[data-app-theme="dark"] body.fbo-planning-page .fbo-select-option {
  background:transparent!important;
  color:#cbd5dd!important;
}
html[data-app-theme="dark"] body.fbo-planning-page :is(.fbo-select-option:hover,.fbo-select-option.is-selected) {
  background:#253642!important;
  color:#fff!important;
}
html[data-app-theme="dark"] body.fbo-planning-page .fbo-formula-note {
  background:#18242d!important;
  border-color:#30414e!important;
  color:#9eabb7!important;
}
html[data-app-theme="dark"] body.fbo-planning-page :is(.fbo-filter-card,.fbo-filter-tree,.fbo-filter-card-body,.fbo-filter-tree-body,.fbo-results-toolbar,.fbo-results-subtoolbar,.fbo-params-strip) {
  background:#17212a!important;
  border-color:#2b3b48!important;
  color:#cbd5dd!important;
}
html[data-app-theme="dark"] body.fbo-planning-page :is(.fbo-filter-card summary,.fbo-filter-tree summary) {
  background:#1b2832!important;
  color:#cbd5dd!important;
}
html[data-app-theme="dark"] body.fbo-planning-page :is(.fbo-filter-card summary:hover,.fbo-filter-tree summary:hover) {
  background:#243440!important;
  color:#eef3f6!important;
}
html[data-app-theme="dark"] body.fbo-planning-page .fbo-filter-check:hover {
  background:#21303b!important;
}
html[data-app-theme="dark"] body.fbo-planning-page .fbo-filter-switch {
  border-color:#30414e!important;
  color:#cbd5dd!important;
}
html[data-app-theme="dark"] body.fbo-planning-page .fbo-filter-switch small {
  color:#8595a2!important;
}
html[data-app-theme="dark"] body.fbo-planning-page .fbo-table,
html[data-app-theme="dark"] body.fbo-planning-page .fbo-table td {
  background:#151f28!important;
  border-color:#263642!important;
  color:#cbd5dd!important;
}
html[data-app-theme="dark"] body.fbo-planning-page .fbo-table th {
  background:#1c2933!important;
  border-color:#30414e!important;
  color:#9facb8!important;
}
html[data-app-theme="dark"] body.fbo-planning-page .fbo-table tbody tr:hover td {
  background:#1d2b36!important;
}
html[data-app-theme="dark"] body.fbo-planning-page .fbo-product-photo {
  background:#202d37!important;
  border-color:#354958!important;
}
html[data-app-theme="dark"] body.fbo-planning-page :is(.fbo-text-chip,.fbo-state,.fbo-category-text) {
  color:#cbd5dd!important;
}
html[data-app-theme="dark"] body.fbo-planning-page .fbo-pagination select {
  background:#17232c!important;
  border-color:#334452!important;
  color:#d8e0e6!important;
}
html[data-app-theme="dark"] body.fbo-planning-page .fbo-columns-modal-card {
  background:#17212a!important;
  border-color:#344754!important;
}

/* V568 audit addendum — hidden/secondary warehouse states found while scanning
   legacy light skins (history tables, pickers, summaries and empty states). */
html[data-app-theme="dark"] body.warehouse-receiving-page :is(.wr-metrics article,.wr-summary-grid article) {
  background:#17212a!important;border-color:#2b3b48!important;color:#dce5ec!important;
}
html[data-app-theme="dark"] body.warehouse-receiving-page .wr-metric-icon {
  background:#22313c!important;color:#b6c4cf!important;
}
html[data-app-theme="dark"] body.warehouse-receiving-page .wr-items-table th {
  background:#1c2933!important;border-color:#30414e!important;color:#9facb8!important;
}
html[data-app-theme="dark"] body.warehouse-receiving-page .wr-items-table td {
  background:#151f28!important;border-color:#263642!important;color:#cbd5dd!important;
}
html[data-app-theme="dark"] body.warehouse-receiving-page .wr-items-table tbody tr:hover td {background:#1d2b36!important;}
html[data-app-theme="dark"] body.warehouse-receiving-page :is(.wr-modal .profile-modal__card,.wr-product-picker,.wr-scanner-card) {
  background:#17212a!important;border-color:#344754!important;color:#dce5ec!important;box-shadow:0 24px 64px rgba(0,0,0,.42)!important;
}
html[data-app-theme="dark"] body.warehouse-receiving-page :is(.wr-supplier-card header,.wr-product-picker header,.wr-scanner-card header) {
  background:#17212a!important;border-color:#2b3b48!important;
}
html[data-app-theme="dark"] body.warehouse-receiving-page :is(.wr-picker-search,.wr-scanner-input) {
  background:#131b23!important;border-color:#344754!important;color:#dce5ec!important;
}
html[data-app-theme="dark"] body.warehouse-receiving-page .wr-selected-file {
  background:#193128!important;color:#8dd6aa!important;
}
html[data-app-theme="dark"] body.warehouse-receiving-page .wr-empty>span {
  background:#22313c!important;color:#aebbc6!important;
}
html[data-app-theme="dark"] body.warehouse-receiving-page .wr-history-counts {color:#8f9daa!important;}
html[data-app-theme="dark"] body.warehouse-receiving-page .wr-history-counts strong {color:#e4ebf0!important;}
html[data-app-theme="dark"] body.warehouse-receiving-page .wr-history-delete {
  background:#351f23!important;border-color:#6e3940!important;color:#f09aa1!important;
}
html[data-app-theme="dark"] body.warehouse-receiving-page .wr-status--draft {background:#332b1d!important;color:#e2c477!important;}
html[data-app-theme="dark"] body.warehouse-receiving-page .wr-status--completed {background:#193128!important;color:#88d5a7!important;}
html[data-app-theme="dark"] body.warehouse-receiving-page .wr-status--cancelled {background:#202d37!important;color:#aebbc6!important;}
html[data-app-theme="dark"] body.warehouse-receiving-page .wr-mode-chip--verified {background:var(--dark-info-soft)!important;color:#a9c9ef!important;}
html[data-app-theme="dark"] body.warehouse-receiving-page .wr-mode-chip--direct {background:var(--dark-success-soft)!important;color:#8dd6aa!important;}

html[data-app-theme="dark"] body.warehouse-transfer-page :is(.wt-search-field,.wt-picker-search) {
  background:#131b23!important;border-color:#344754!important;color:#aebbc6!important;
}
html[data-app-theme="dark"] body.warehouse-transfer-page .wt-modal-card>header {
  background:#17212a!important;border-color:#2b3b48!important;
}
html[data-app-theme="dark"] body.warehouse-transfer-page :is(.wt-picker-item,.wt-detail-summary article) {
  background:#17212a!important;border-color:#2b3b48!important;color:#cbd5dd!important;
}
html[data-app-theme="dark"] body.warehouse-transfer-page .wt-detail-summary strong {color:#e4ebf0!important;}
html[data-app-theme="dark"] body.warehouse-transfer-page .wt-result-note {background:#18242d!important;border-color:#30414e!important;color:#aebbc6!important;}
html[data-app-theme="dark"] body.warehouse-transfer-page .wt-picker-more {background:#1c2933!important;border-color:#344754!important;color:#cbd5dd!important;}
html[data-app-theme="dark"] body.warehouse-transfer-page .wt-picker-more:hover {background:#263744!important;color:#fff!important;}

html[data-app-theme="dark"] body.warehouse-tree-page :is(.warehouse-tree-row,.warehouse-tree-search,.warehouse-tree-list) {
  background:#17212a!important;border-color:#2b3b48!important;color:#cbd5dd!important;
}
html[data-app-theme="dark"] body.warehouse-tree-page :is(.warehouse-tree-row:hover,.warehouse-tree-row--organization:hover,.warehouse-tree-row--marketplace:hover,.warehouse-tree-row--warehouse:hover) {
  background:#1d2b36!important;
}
html[data-app-theme="dark"] body.warehouse-tree-page .warehouse-tree-empty-source {color:#8797a4!important;}
html[data-app-theme="dark"] body.warehouse-tree-page .warehouse-tree-empty-source strong {color:#dce5ec!important;}

html[data-app-theme="dark"] body.warehouse-designer-page :is(.wh-field input,.wh-field textarea,.wh-field select,.wh-angle-input) {
  background:#131b23!important;border-color:#344754!important;color:#dce5ec!important;-webkit-text-fill-color:#dce5ec!important;
}
html[data-app-theme="dark"] body.warehouse-designer-page .wh-properties-empty {color:#8797a4!important;}
html[data-app-theme="dark"] body.warehouse-designer-page .wh-canvas-note {color:#8f9daa!important;}

html[data-app-theme="dark"] body.warehouse-address-page :is(.wh-filter-actions .button,.wh-address-head__actions .button,.wh-inline-action,.wh-inline-danger) {
  background:#1c2933!important;border-color:#344754!important;color:#d6dfe6!important;
}
html[data-app-theme="dark"] body.warehouse-address-page :is(.wh-filter-actions .button:hover,.wh-address-head__actions .button:hover,.wh-inline-action:hover) {
  background:#263744!important;border-color:#506676!important;color:#fff!important;
}
html[data-app-theme="dark"] body.warehouse-address-page .wh-inline-danger:hover {background:#3a2226!important;border-color:#754148!important;color:#f0a2a7!important;}
html[data-app-theme="dark"] body.warehouse-address-page .wh-tree-empty {background:#151f28!important;border-color:#405363!important;color:#8797a4!important;}

html[data-app-theme="dark"] body.fbo-supply-page :is(.fs-product-cell img,.fs-product-image-empty) {
  background:#202d37!important;border-color:#354958!important;
}
html[data-app-theme="dark"] body.fbo-supply-page .fs-qty:disabled {background:#1a2028!important;color:#65717d!important;}
html[data-app-theme="dark"] body.fbo-supply-page .fs-status {background:#202d37!important;color:#aebbc6!important;}
html[data-app-theme="dark"] body.fbo-supply-page .fs-status--api_created {background:#193128!important;color:#88d5a7!important;}
html[data-app-theme="dark"] body.fbo-supply-page .fs-status--api_ready {background:var(--dark-info-soft)!important;color:#a9c9ef!important;}
html[data-app-theme="dark"] body.fbo-supply-page .fs-status--api_error {background:#351f23!important;color:#f09aa1!important;}
html[data-app-theme="dark"] body.fbo-supply-page .fs-status--manual_required {background:#332b1d!important;color:#e2c477!important;}

html[data-app-theme="dark"] body.fbo-planning-page .fbo-summary article {
  background:linear-gradient(180deg,#19242e 0%,#17212a 100%)!important;border-color:#2b3b48!important;box-shadow:none!important;
}
html[data-app-theme="dark"] body.fbo-planning-page .fbo-summary article:hover {box-shadow:none!important;border-color:#415462!important;}
html[data-app-theme="dark"] body.fbo-planning-page :is(.fbo-action-button,.fbo-page-size select,.fbo-pagination button,.fbo-destination-select select) {
  background:#1c2933!important;border-color:#344754!important;color:#d6dfe6!important;box-shadow:none!important;
}
html[data-app-theme="dark"] body.fbo-planning-page :is(.fbo-action-button:hover,.fbo-pagination button:hover) {
  background:#263744!important;border-color:#506676!important;color:#fff!important;
}
html[data-app-theme="dark"] body.fbo-planning-page .fbo-pagination {background:#17212a!important;border-color:#2b3b48!important;}
html[data-app-theme="dark"] body.fbo-planning-page .fbo-columns-modal-card .column-config-item {
  background:#1a2630!important;border-color:#344754!important;color:#d6dfe6!important;box-shadow:none!important;
}
html[data-app-theme="dark"] body.fbo-planning-page .fbo-columns-modal-card .column-settings-actions {background:#17212a!important;border-color:#2b3b48!important;}

/* ========================================================================== 
   V569 — warehouse dark finishing pass
   Fixes custom select skins that used legacy class names, FBO planning
   category/brand selectors, movement dropdown selected rows/toasts and removes
   green selection chrome from Receiving (green remains reserved for real
   success/completed statuses).
   ========================================================================== */

/* Shared custom selects: the live JS uses __toggle/__item, while several old
   dark selectors targeted the retired __trigger/__option names. */
html[data-app-theme="dark"] :is(
  .app-searchable-select__toggle,
  .app-enhanced-multi__toggle
) {
  background:#131b23!important;
  border-color:#344754!important;
  color:#dce5ec!important;
  -webkit-text-fill-color:#dce5ec!important;
  box-shadow:none!important;
}
html[data-app-theme="dark"] :is(
  .app-searchable-select__toggle:hover,
  .app-enhanced-multi__toggle:hover,
  .app-searchable-select.is-open .app-searchable-select__toggle,
  .app-enhanced-multi.is-open .app-enhanced-multi__toggle
) {
  background:#18242d!important;
  border-color:#4a6070!important;
  color:#eef3f6!important;
  box-shadow:0 0 0 3px rgba(93,119,139,.14)!important;
}
html[data-app-theme="dark"] :is(
  .app-searchable-select__search,
  .app-enhanced-multi__search
) {
  background:#111a22!important;
  border-color:#334754!important;
  color:#dce5ec!important;
  -webkit-text-fill-color:#dce5ec!important;
  box-shadow:none!important;
}
html[data-app-theme="dark"] :is(
  .app-searchable-select__search,
  .app-enhanced-multi__search
)::placeholder {
  color:#748593!important;
  -webkit-text-fill-color:#748593!important;
}
html[data-app-theme="dark"] :is(
  .app-searchable-select__option,
  .app-enhanced-multi__item
) {
  background:transparent!important;
  color:#cbd5dd!important;
  border-color:transparent!important;
}
html[data-app-theme="dark"] :is(
  .app-searchable-select__option:hover,
  .app-searchable-select__option.is-selected,
  .app-enhanced-multi__item:hover,
  .app-enhanced-multi__item:has(input:checked)
) {
  background:#253642!important;
  color:#f2f6f8!important;
}
html[data-app-theme="dark"] .app-searchable-select__empty {
  color:#8494a1!important;
}
html[data-app-theme="dark"] .app-enhanced-multi__actions {
  border-color:#30414e!important;
}
html[data-app-theme="dark"] .app-enhanced-multi__actions button {
  background:#1c2933!important;
  border-color:#344754!important;
  color:#d6dfe6!important;
}
html[data-app-theme="dark"] .app-enhanced-multi__actions button:hover {
  background:#263744!important;
  border-color:#506676!important;
  color:#fff!important;
}
html[data-app-theme="dark"] .app-enhanced-multi__actions .is-primary {
  background:#304352!important;
  border-color:#506676!important;
  color:#f2f5f7!important;
}

/* Error notifications should belong to the dark shell instead of flashing a
   white/pink card over warehouse screens. */
html[data-app-theme="dark"] .app-error-toast {
  background:#2a1d21!important;
  border-color:#673a42!important;
  color:#efb0b5!important;
  box-shadow:0 18px 46px rgba(0,0,0,.36)!important;
}
html[data-app-theme="dark"] .app-error-toast strong {color:#ffd9dc!important;}
html[data-app-theme="dark"] .app-error-toast small {
  border-color:#533139!important;
  color:#c99197!important;
}
html[data-app-theme="dark"] .app-error-toast__close {color:#d69aa0!important;}
html[data-app-theme="dark"] .app-error-toast__close:hover {
  background:#3a252a!important;
  color:#fff!important;
}

/* FBO / FBW / FBY planning: custom category and brand controls were <summary>
   elements, not buttons, so the V568 rule never touched their white surface. */
html[data-app-theme="dark"] body.fbo-planning-page .fbo-platform strong {
  color:#b5c1cb!important;
}
html[data-app-theme="dark"] body.fbo-planning-page .fbo-platform:has(input:disabled) strong {
  color:#697987!important;
}
html[data-app-theme="dark"] body.fbo-planning-page .fbo-platform--ozon:has(input:checked) strong {
  color:#c9dcff!important;
}
html[data-app-theme="dark"] body.fbo-planning-page .fbo-platform--wildberries:has(input:checked) strong {
  color:#ebc4ef!important;
}
html[data-app-theme="dark"] body.fbo-planning-page .fbo-platform--yandex:has(input:checked) strong {
  color:#efdda5!important;
}
html[data-app-theme="dark"] body.fbo-planning-page .fbo-multi>summary {
  background:#131b23!important;
  border-color:#344754!important;
  color:#dce5ec!important;
  box-shadow:none!important;
}
html[data-app-theme="dark"] body.fbo-planning-page .fbo-multi>summary:hover,
html[data-app-theme="dark"] body.fbo-planning-page .fbo-multi[open]>summary {
  background:#18242d!important;
  border-color:#4a6070!important;
  color:#eef3f6!important;
  box-shadow:0 0 0 3px rgba(93,119,139,.14)!important;
}
html[data-app-theme="dark"] body.fbo-planning-page .fbo-multi>summary b {
  background:#24323d!important;
  color:#aebbc6!important;
}
html[data-app-theme="dark"] body.fbo-planning-page .fbo-multi-menu {
  background:#1a2630!important;
  border-color:#344754!important;
  box-shadow:0 18px 42px rgba(0,0,0,.36)!important;
}
html[data-app-theme="dark"] body.fbo-planning-page .fbo-multi-option {
  background:transparent!important;
  color:#cbd5dd!important;
}
html[data-app-theme="dark"] body.fbo-planning-page .fbo-multi-option:hover,
html[data-app-theme="dark"] body.fbo-planning-page .fbo-multi-option:has(input:checked) {
  background:#253642!important;
  color:#f2f6f8!important;
}
html[data-app-theme="dark"] body.fbo-planning-page .fbo-multi-group {
  background:#17232c!important;
  border-color:#30414e!important;
}
html[data-app-theme="dark"] body.fbo-planning-page .fbo-multi-group>summary {
  background:#1b2832!important;
  color:#cbd5dd!important;
}
html[data-app-theme="dark"] body.fbo-planning-page .fbo-multi-group>summary:hover {
  background:#243440!important;
  color:#eef3f6!important;
}
html[data-app-theme="dark"] body.fbo-planning-page .fbo-multi-group-body {
  background:#151f28!important;
  border-color:#30414e!important;
}

/* Movement: selected placeholder/row in the searchable group dropdown used the
   light .is-selected skin even though the surrounding popover was dark. */
html[data-app-theme="dark"] body.warehouse-transfer-page .app-searchable-select__menu {
  background:#1a2630!important;
  border-color:#344754!important;
}
html[data-app-theme="dark"] body.warehouse-transfer-page .app-searchable-select__option.is-selected {
  background:#253642!important;
  color:#eef3f6!important;
}
html[data-app-theme="dark"] body.warehouse-transfer-page .app-searchable-select__option:disabled {
  background:transparent!important;
  color:#71818e!important;
}

/* Receiving: neutral operational selection language. Green is intentionally
   kept only for genuine success/completed states elsewhere on the page. */
html[data-app-theme="dark"] body.warehouse-receiving-page .wr-primary-button {
  background:#304352!important;
  border-color:#506676!important;
  color:#f2f5f7!important;
  box-shadow:none!important;
}
html[data-app-theme="dark"] body.warehouse-receiving-page .wr-primary-button:hover,
html[data-app-theme="dark"] body.warehouse-receiving-page .wr-primary-button:focus-visible {
  background:#3a4d5b!important;
  border-color:#60798b!important;
  color:#fff!important;
  box-shadow:none!important;
  transform:none!important;
}
html[data-app-theme="dark"] body.warehouse-receiving-page .wr-stepper>div.is-active>b {
  background:#2b3b48!important;
  border-color:#536979!important;
  color:#eef3f6!important;
  box-shadow:0 0 0 5px rgba(93,119,139,.10)!important;
}
html[data-app-theme="dark"] body.warehouse-receiving-page .wr-stepper>div.is-active strong {
  color:#eef3f6!important;
}
html[data-app-theme="dark"] body.warehouse-receiving-page .wr-stepper>div.is-complete>b {
  background:#22313c!important;
  border-color:#4a6070!important;
  color:#b9c6cf!important;
}
html[data-app-theme="dark"] body.warehouse-receiving-page .wr-stepper>div.is-complete+i {
  background:#425563!important;
}
html[data-app-theme="dark"] body.warehouse-receiving-page .wr-number-field button,
html[data-app-theme="dark"] body.warehouse-receiving-page .wr-select-action button {
  color:#aebbc6!important;
}
html[data-app-theme="dark"] body.warehouse-receiving-page .wr-number-field button:hover,
html[data-app-theme="dark"] body.warehouse-receiving-page .wr-select-action button:hover {
  color:#eef3f6!important;
}
html[data-app-theme="dark"] body.warehouse-receiving-page .wr-mode-option input:checked+span {
  background:#21303b!important;
  border-color:#506676!important;
  box-shadow:0 0 0 3px rgba(93,119,139,.10)!important;
}
html[data-app-theme="dark"] body.warehouse-receiving-page .wr-mode-option input:checked+span b {
  background:#b9c6cf!important;
  border-color:#b9c6cf!important;
  box-shadow:inset 0 0 0 4px #21303b!important;
}
html[data-app-theme="dark"] body.warehouse-receiving-page .wr-mode-option input:checked+span strong {
  color:#eef3f6!important;
}
html[data-app-theme="dark"] body.warehouse-receiving-page .wr-mode-hint {
  background:#1b2832!important;
  border-color:#344754!important;
  color:#aebbc6!important;
}
html[data-app-theme="dark"] body.warehouse-receiving-page .wr-dropzone {
  border-color:#4b6170!important;
}
html[data-app-theme="dark"] body.warehouse-receiving-page .wr-dropzone-icon,
html[data-app-theme="dark"] body.warehouse-receiving-page .wr-scanner-visual {
  color:#aebbc6!important;
}
html[data-app-theme="dark"] body.warehouse-receiving-page .wr-selected-file {
  background:#1d2d39!important;
  color:#b8c7d2!important;
}
html[data-app-theme="dark"] body.warehouse-receiving-page .wr-mode-chip--direct {
  background:#22313c!important;
  color:#b8c7d2!important;
}

/* V576 · Yandex price-model selector */
html[data-app-theme="dark"] body.pricing-section-body .yandex-pricing-scheme-row{background:#17212a!important;border-color:#2b3b48!important;box-shadow:none!important}
html[data-app-theme="dark"] body.pricing-section-body .yandex-pricing-scheme-row strong{color:#e4ebf0!important}
html[data-app-theme="dark"] body.pricing-section-body .yandex-pricing-scheme-row small{color:#8f9daa!important}
html[data-app-theme="dark"] body.pricing-section-body .yandex-pricing-scheme-switch{background:#111a22!important;border-color:#30404d!important}
html[data-app-theme="dark"] body.pricing-section-body .yandex-pricing-scheme-switch .market-switch__item{color:#93a1ad!important}
html[data-app-theme="dark"] body.pricing-section-body .yandex-pricing-scheme-switch .market-switch__item:hover{color:#dce5ec!important}
html[data-app-theme="dark"] body.pricing-section-body .yandex-pricing-scheme-switch .market-switch__item.active{background:#e0c366!important;color:#292500!important;box-shadow:none!important}

/* V578 · Yandex export scheme picker */
html[data-app-theme="dark"] body.pricing-section-body.pricing-page--yandex .yandex-export-modal-card{
  background:#151f28!important;
  border-color:#30414e!important;
  box-shadow:0 28px 90px rgba(0,0,0,.42)!important;
}
html[data-app-theme="dark"] body.pricing-section-body.pricing-page--yandex .yandex-export-modal-card .modal-heading{
  background:#18242d!important;
  border-color:#30414e!important;
}
html[data-app-theme="dark"] body.pricing-section-body.pricing-page--yandex .yandex-export-modal-card .modal-heading h2{color:#edf2f5!important}
html[data-app-theme="dark"] body.pricing-section-body.pricing-page--yandex .yandex-export-modal-card .modal-heading p{color:#91a0ad!important}
html[data-app-theme="dark"] body.pricing-section-body.pricing-page--yandex .yandex-export-select-all{
  background:#111a22!important;
  border-color:#30414e!important;
}
html[data-app-theme="dark"] body.pricing-section-body.pricing-page--yandex .yandex-export-scheme-option{
  background:#17232c!important;
  border-color:#31424f!important;
  box-shadow:none!important;
}
html[data-app-theme="dark"] body.pricing-section-body.pricing-page--yandex .yandex-export-scheme-option:hover{
  background:#1b2933!important;
  border-color:#756b39!important;
}
html[data-app-theme="dark"] body.pricing-section-body.pricing-page--yandex .yandex-export-scheme-option:has(input:checked){
  background:#262718!important;
  border-color:#8d7c32!important;
  box-shadow:0 0 0 3px rgba(224,195,62,.08)!important;
}
html[data-app-theme="dark"] body.pricing-section-body.pricing-page--yandex .yandex-export-check{
  background:#111a22!important;
  border-color:#53616d!important;
}
html[data-app-theme="dark"] body.pricing-section-body.pricing-page--yandex :is(.yandex-export-select-all,.yandex-export-scheme-option)>input:checked+.yandex-export-check,
html[data-app-theme="dark"] body.pricing-section-body.pricing-page--yandex .yandex-export-select-all>input:indeterminate+.yandex-export-check{
  background:#e0c366!important;
  border-color:#e0c366!important;
}
html[data-app-theme="dark"] body.pricing-section-body.pricing-page--yandex :is(.yandex-export-select-all,.yandex-export-scheme-option) strong{color:#e6edf2!important}
html[data-app-theme="dark"] body.pricing-section-body.pricing-page--yandex :is(.yandex-export-select-all,.yandex-export-scheme-option) small{color:#8e9ca8!important}
html[data-app-theme="dark"] body.pricing-section-body.pricing-page--yandex .yandex-export-actions{
  background:#121c24!important;
  border-color:#30414e!important;
}


/* V579 · Warehouse two-column navigation in dark theme. */
@media (min-width: 1121px) {
  html[data-app-theme="dark"] body.app-modern-shell .main-nav-submenu--warehouse {
    background:#17212a!important;
    border-color:#31404c!important;
    box-shadow:0 24px 64px rgba(0,0,0,.38)!important;
  }
}

/* V585 · Rounded window action buttons in the shared dark UI language. */
html[data-app-theme="dark"] body.app-modern-shell .app-managed-window > .app-window-titlebar .app-window-control {
  border-color: #35404c !important;
  background: #1b222b !important;
  color: #aeb8c4 !important;
  box-shadow: 0 1px 2px rgba(0,0,0,.18) !important;
}
html[data-app-theme="dark"] body.app-modern-shell .app-managed-window > .app-window-titlebar .app-window-control:hover {
  border-color: #485565 !important;
  background: #252e39 !important;
  color: #f4f7fa !important;
  box-shadow: 0 3px 9px rgba(0,0,0,.22) !important;
}
html[data-app-theme="dark"] body.app-modern-shell .app-managed-window > .app-window-titlebar .app-window-control:focus-visible {
  border-color: #69788a !important;
  box-shadow: 0 0 0 3px rgba(154,170,188,.14) !important;
}
html[data-app-theme="dark"] body.app-modern-shell .app-managed-window > .app-window-titlebar .app-window-control--close:hover {
  border-color: #73434a !important;
  background: #3b252a !important;
  color: #ffb8bf !important;
}
html[data-app-theme="dark"] body.app-modern-shell .app-managed-window > .app-window-titlebar .app-window-control--restore span::before {
  background: #1b222b !important;
}
html[data-app-theme="dark"] body.app-modern-shell .app-managed-window > .app-window-titlebar .app-window-control--restore:hover span::before {
  background: #252e39 !important;
}


/* V588 · compact marketplace notice avatars + search highlight. */
html[data-app-theme="dark"] body.communications-page--chats .chat-history .communications-history-bubble.is-system{
  background:#1b2832!important;
  border-color:#344754!important;
  color:#dce5ec!important;
  box-shadow:none!important;
}
html[data-app-theme="dark"] body.communications-page--chats .chat-history .communications-history-bubble.is-system :is(p,span,a){
  color:#dce5ec!important;
  -webkit-text-fill-color:#dce5ec!important;
}
html[data-app-theme="dark"] body.communications-page--chats .chat-history .communications-history-bubble.is-system .communications-history-bubble__head time{
  color:#8fa0ad!important;
  -webkit-text-fill-color:#8fa0ad!important;
}
html[data-app-theme="dark"] body.communications-page--chats .chat-history .communications-history-bubble.is-system.is-platform-yandex_market{background:#1b2832!important;border-color:#344754!important;border-left-color:#d4b300!important}
html[data-app-theme="dark"] body.communications-page--chats .chat-history .communications-history-bubble.is-system.is-platform-ozon{background:#1b2832!important;border-color:#344754!important;border-left-color:#397eff!important}
html[data-app-theme="dark"] body.communications-page--chats .chat-history .communications-history-bubble.is-system.is-platform-wildberries{background:#1b2832!important;border-color:#344754!important;border-left-color:#c84be0!important}
html[data-app-theme="dark"] body.communications-page--chats .chat-search-highlight{
  background:#d8b72a!important;
  color:#15191d!important;
  -webkit-text-fill-color:#15191d!important;
}

html[data-app-theme="dark"] body.communications-page--chats .chat-marketplace-message-icon--ozon,
html[data-app-theme="dark"] body.communications-page--chats .chat-marketplace-message-icon--wildberries{color:#fff!important;-webkit-text-fill-color:#fff!important}
html[data-app-theme="dark"] body.communications-page--chats .chat-marketplace-message-icon--yandex_market{color:#272300!important;-webkit-text-fill-color:#272300!important}

/* ========================================================================== 
   V596 · Products export chooser — complete dark-theme pass.
   Static export styles intentionally use opaque #fff surfaces for light mode;
   these selectors live at the very end of the dark sheet so none of those
   islands leak into the dark modal.
   ========================================================================== */
html[data-app-theme="dark"] body.products-modern-body .product-export-modal{
  background:rgba(4,9,14,.72)!important;
}
html[data-app-theme="dark"] body.products-modern-body .product-export-modal .product-export-modal__card,
html[data-app-theme="dark"] body.products-modern-body .product-export-modal .product-export-modal__card--wide{
  background:#151f28!important;
  background-image:linear-gradient(180deg,#17232d 0%,#131b23 100%)!important;
  border-color:#2a3a48!important;
  color:#e9eef3!important;
  box-shadow:0 28px 90px rgba(0,0,0,.48)!important;
}
html[data-app-theme="dark"] body.products-modern-body .product-export-modal .modal-heading{
  background:#18242e!important;
  border-bottom-color:#2b3b49!important;
}
html[data-app-theme="dark"] body.products-modern-body .product-export-modal .modal-heading h2{color:#f2f5f8!important}
html[data-app-theme="dark"] body.products-modern-body .product-export-modal .modal-heading p{color:#93a4b3!important}
html[data-app-theme="dark"] body.products-modern-body .product-export-modal form,
html[data-app-theme="dark"] body.products-modern-body .product-export-modal .product-export-selection,
html[data-app-theme="dark"] body.products-modern-body .product-export-modal .export-category-board{
  background:transparent!important;
  color:#e6edf3!important;
}
html[data-app-theme="dark"] body.products-modern-body .product-export-modal .modal-filter-block{
  background:#111922!important;
  border-color:#283845!important;
  color:#e6edf3!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.015)!important;
}
html[data-app-theme="dark"] body.products-modern-body .product-export-modal .modal-filter-block>.eyebrow{
  color:#94a3b2!important;
}
html[data-app-theme="dark"] body.products-modern-body .product-export-modal .modal-store-grid{
  background:#17232d!important;
  border:1px solid #293a48!important;
  border-radius:14px!important;
  scrollbar-color:#536575 #17232d!important;
}
html[data-app-theme="dark"] body.products-modern-body .product-export-modal .modal-store-grid .choice-line{
  background:#1c2934!important;
  border-color:#314452!important;
  color:#e2e8ed!important;
  box-shadow:none!important;
}
html[data-app-theme="dark"] body.products-modern-body .product-export-modal .modal-store-grid .choice-line:hover{
  background:#22313d!important;
  border-color:#405566!important;
}
html[data-app-theme="dark"] body.products-modern-body .product-export-modal .modal-store-grid .choice-line strong{color:#e9eef3!important}
html[data-app-theme="dark"] body.products-modern-body .product-export-modal .modal-store-grid .choice-line small{color:#8ea0af!important}
html[data-app-theme="dark"] body.products-modern-body .product-export-modal .modal-store-grid .choice-line input{
  accent-color:#287ff0!important;
}
html[data-app-theme="dark"] body.products-modern-body .product-export-modal .export-all-card{
  background:#17232d!important;
  border-color:#2d4050!important;
  color:#e8eef3!important;
}
html[data-app-theme="dark"] body.products-modern-body .product-export-modal .export-all-card:hover{
  background:#1c2a35!important;
  border-color:#3b5365!important;
}
html[data-app-theme="dark"] body.products-modern-body .product-export-modal .export-all-card__check{
  background:#101820!important;
  border-color:#657686!important;
}
html[data-app-theme="dark"] body.products-modern-body .product-export-modal .export-all-card strong{color:#edf2f6!important}
html[data-app-theme="dark"] body.products-modern-body .product-export-modal .export-all-card small{color:#8fa0ae!important}
html[data-app-theme="dark"] body.products-modern-body .product-export-modal .export-category-panel{
  background:#111922!important;
  border-color:#293946!important;
  box-shadow:none!important;
}
html[data-app-theme="dark"] body.products-modern-body .product-export-modal .export-category-panel__head h3{color:#e9eef3!important}
html[data-app-theme="dark"] body.products-modern-body .product-export-modal .export-category-count{
  background:#253542!important;
  color:#c6d0d9!important;
}
html[data-app-theme="dark"] body.products-modern-body .product-export-modal .export-category-search{
  background:#17232d!important;
  border-color:#314350!important;
  color:#dce4ea!important;
  caret-color:#dce4ea!important;
  box-shadow:none!important;
}
html[data-app-theme="dark"] body.products-modern-body .product-export-modal .export-category-search::placeholder{color:#738392!important}
html[data-app-theme="dark"] body.products-modern-body .product-export-modal .export-category-search:focus{
  border-color:#4d6780!important;
  box-shadow:0 0 0 3px rgba(58,127,197,.13)!important;
}
html[data-app-theme="dark"] body.products-modern-body .product-export-modal .export-choice-list{
  background:#111922!important;
  color:#cdd6de!important;
  scrollbar-color:#526575 #111922!important;
}
html[data-app-theme="dark"] body.products-modern-body .product-export-modal .export-choice-empty{color:#738493!important}
html[data-app-theme="dark"] body.products-modern-body .product-export-modal .export-category-card{
  background:#192630!important;
  border-color:#2d414f!important;
  box-shadow:none!important;
}
html[data-app-theme="dark"] body.products-modern-body .product-export-modal .export-category-card:hover{
  background:#1d2c37!important;
  border-color:#3a5263!important;
}
html[data-app-theme="dark"] body.products-modern-body .product-export-modal .export-drag-handle{
  background:#22323e!important;
  color:#9aabb9!important;
}
html[data-app-theme="dark"] body.products-modern-body .product-export-modal .export-drag-handle:hover{background:#2a3c49!important;color:#d5dde4!important}
html[data-app-theme="dark"] body.products-modern-body .product-export-modal .export-category-expand{background:#202f3a!important}
html[data-app-theme="dark"] body.products-modern-body .product-export-modal .export-category-expand:hover{background:#2b3d49!important}
html[data-app-theme="dark"] body.products-modern-body .product-export-modal .export-category-expand::before{border-color:#98a9b7!important}
html[data-app-theme="dark"] body.products-modern-body .product-export-modal .export-category-card__title strong{color:#e4ebf0!important}
html[data-app-theme="dark"] body.products-modern-body .product-export-modal .export-category-card__title small{color:#8193a2!important}
html[data-app-theme="dark"] body.products-modern-body .product-export-modal .export-category-toggle{
  background:rgba(38,126,234,.13)!important;
  border-color:rgba(74,149,238,.32)!important;
  color:#81b7ff!important;
}
html[data-app-theme="dark"] body.products-modern-body .product-export-modal .export-category-toggle:hover{
  background:rgba(38,126,234,.21)!important;
  color:#b2d3ff!important;
}
html[data-app-theme="dark"] body.products-modern-body .product-export-modal .export-category-card.is-selected .export-category-toggle{
  background:#263641!important;
  border-color:#384d5c!important;
  color:#a8b5c0!important;
}
html[data-app-theme="dark"] body.products-modern-body .product-export-modal .export-subcategory-option{
  background:#14202a!important;
  border-color:#2a3b48!important;
  color:#cbd5dc!important;
}
html[data-app-theme="dark"] body.products-modern-body .product-export-modal .export-subcategory-option:hover{
  background:#1c2b36!important;
  border-color:#3a5060!important;
}
html[data-app-theme="dark"] body.products-modern-body .product-export-modal .modal-actions{
  background:#151f28!important;
  border-top-color:#293a48!important;
}
html[data-app-theme="dark"] body.products-modern-body .product-export-modal .modal-actions .button-light{
  background:#1c2934!important;
  border-color:#334654!important;
  color:#cbd5dc!important;
}
html[data-app-theme="dark"] body.products-modern-body .product-export-modal .modal-actions .button-light:hover{
  background:#243440!important;
  border-color:#435969!important;
  color:#f0f4f7!important;
}
html[data-app-theme="dark"] body.products-modern-body .product-export-modal .export-category-board.is-disabled{
  background:transparent!important;
  opacity:.5!important;
}
html[data-app-theme="dark"] body.products-modern-body .product-export-modal :is(.modal-store-grid,.export-choice-list)::-webkit-scrollbar-track{background:#111922!important}
html[data-app-theme="dark"] body.products-modern-body .product-export-modal :is(.modal-store-grid,.export-choice-list)::-webkit-scrollbar-thumb{background:#4b5e6e!important;border-radius:999px!important}

/* V597 · no grey veil behind product export + dark progress card. */
html[data-app-theme="dark"] body.products-modern-body .product-export-modal{
  background:transparent!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
html[data-app-theme="dark"] body.products-modern-body .product-export-progress{
  background:#111a22!important;
  border-color:#2b3a47!important;
}
html[data-app-theme="dark"] body.products-modern-body .product-export-progress__ring{
  background:conic-gradient(#2d8cff var(--export-progress),#263541 0)!important;
}
html[data-app-theme="dark"] body.products-modern-body .product-export-modal--wb .product-export-progress__ring{
  background:conic-gradient(#bd49e4 var(--export-progress),#34283a 0)!important;
}
html[data-app-theme="dark"] body.products-modern-body .product-export-modal--yandex .product-export-progress__ring{
  background:conic-gradient(#f2cf19 var(--export-progress),#3d3820 0)!important;
}
html[data-app-theme="dark"] body.products-modern-body .product-export-progress__ring::before{background:#151f28!important}
html[data-app-theme="dark"] body.products-modern-body .product-export-progress__ring span,
html[data-app-theme="dark"] body.products-modern-body .product-export-progress__copy strong{color:#edf3f7!important}
html[data-app-theme="dark"] body.products-modern-body .product-export-progress__copy small{color:#91a1af!important}
html[data-app-theme="dark"] body.products-modern-body .product-export-progress.is-complete{background:#12201b!important;border-color:#29473a!important}


/* V598 · no dimming behind product export in dark theme either. */
html[data-app-theme="dark"] body.products-modern-body #exportModal.product-export-modal.modal-overlay{
    background:transparent!important;
    background-color:transparent!important;
    background-image:none!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
}

/* V604 · auth/login + compact legal consent in dark theme. */
html[data-app-theme="dark"] body.auth-page .auth-flow:has([data-auth-page="login"]),
html[data-app-theme="dark"] body.auth-page .auth-flow:has([data-auth-page="register-simple"]){background:#10171d!important}
html[data-app-theme="dark"] body.auth-page :is([data-auth-page="login"],[data-auth-page="register-simple"]){background:#17212a!important;border-color:#2f414f!important;box-shadow:none!important}
html[data-app-theme="dark"] body.auth-page :is([data-auth-page="login"],[data-auth-page="register-simple"]) .auth-flow-head h1{color:#eef3f6!important}
html[data-app-theme="dark"] body.auth-page :is([data-auth-page="login"],[data-auth-page="register-simple"]) .auth-input-wrap{background:#111a22!important;border-color:#344754!important}
html[data-app-theme="dark"] body.auth-page :is([data-auth-page="login"],[data-auth-page="register-simple"]) .auth-input-wrap input{color:#e5ebf0!important;-webkit-text-fill-color:#e5ebf0!important}
html[data-app-theme="dark"] body.auth-page [data-auth-page="register-simple"] .auth-square-check{background:#111a22!important;border-color:#667785!important}
html[data-app-theme="dark"] body.auth-page [data-auth-page="login"] .auth-input-wrap input:-webkit-autofill,
html[data-app-theme="dark"] body.auth-page [data-auth-page="login"] .auth-input-wrap input:-webkit-autofill:hover,
html[data-app-theme="dark"] body.auth-page [data-auth-page="login"] .auth-input-wrap input:-webkit-autofill:focus{
  -webkit-text-fill-color:#e5ebf0!important;
  -webkit-box-shadow:0 0 0 1000px #111a22 inset!important;
  box-shadow:0 0 0 1000px #111a22 inset!important;
  caret-color:#e5ebf0!important;
}

/* V672 · shared-shell Products and unified Dashboard */
html[data-app-theme="dark"] body.products-pricing-body {
  --pricing-border-soft:#2c3b4a;
  --pricing-border-strong:#344759;
  --pricing-surface:#121b25;
  --pricing-surface-alt:#172331;
  --pricing-text:#edf3f9;
  --pricing-muted:#91a1b2;
}
html[data-app-theme="dark"] body.products-pricing-body :is(.products-modern-filters-card.pricing-sidebar,.products-modern-table-card.pricing-main,.products-pricing-topline,.products-modern-table-wrap.pricing-table-wrap,.products-modern-table-footer.pricing-footer,.products-pricing-file-actions .products-modern-button,.deleted-products-controls,.deleted-products-table-card) {
  background:#121b25!important;
  border-color:#2c3b4a!important;
  box-shadow:none!important;
}
html[data-app-theme="dark"] body.products-pricing-body .products-modern-table :is(th,td){background:#121b25!important;border-color:#273746!important;color:#dbe5ef!important}
html[data-app-theme="dark"] body.products-pricing-body .products-modern-table th{background:#172331!important;color:#aebdcb!important}
html[data-app-theme="dark"] body.products-pricing-body .products-modern-table tbody tr:hover td{background:#182532!important}
html[data-app-theme="dark"] body.products-pricing-body :is(.products-filter-card.filter-card,.products-favorite-filter-card){background:#151f2a!important;border-color:#2c3b4a!important}
html[data-app-theme="dark"] body.products-pricing-body .products-filter-option:hover{background:#1b2936!important}
html[data-app-theme="dark"] body.products-pricing-body .products-filter-card__title> :is(b,i){background:#1c2a37!important;color:#9cabb9!important}
html[data-app-theme="dark"] body.products-pricing-body .products-pricing-file-actions .products-modern-button--primary{background:var(--pricing-accent)!important;border-color:var(--pricing-accent)!important;color:#fff!important}

html[data-app-theme="dark"] body.dashboard-unified-body {
  --du-border:#2d3d4d;
  --du-border-strong:#364a5c;
  --du-surface:#121b25;
  --du-surface-soft:#172330;
  --du-text:#edf3f8;
  --du-muted:#93a3b4;
  --du-shadow:none;
}
html[data-app-theme="dark"] body.dashboard-unified-body .dashboard-page-heading,
html[data-app-theme="dark"] body.dashboard-unified-body :is(.metric-card,.dashboard-panel,.dashboard-status,.dashboard-empty--unified){background:#121b25!important;border-color:#2d3d4d!important;box-shadow:none!important}
html[data-app-theme="dark"] body.dashboard-unified-body .dashboard-page-heading h1,
html[data-app-theme="dark"] body.dashboard-unified-body :is(.metric-card__main-value,.orders-card-primary strong,.stock-values strong,.dashboard-panel__eyebrow){color:#edf3f8!important}
html[data-app-theme="dark"] body.dashboard-unified-body .dashboard-heading-market{background:#172330!important;border-color:#304254!important;color:#b9c6d3!important}
html[data-app-theme="dark"] body.dashboard-unified-body :is(.dashboard-tabs,.dashboard-marketplace-tabs,.mini-tabs){background:#172330!important;border-color:#304254!important}
html[data-app-theme="dark"] body.dashboard-unified-body :is(.dashboard-tab.active,.dashboard-marketplace-tab.active,.mini-tab.active,.period-select,.period-select-trigger,.chart-stage){background:#1d2a37!important;color:#eef4f9!important;border-color:#34485a!important}


/* motion-system.css */
/* MarketplaceAnalytics V570 · unified motion system
   Purpose: make the interface feel responsive and alive without distracting
   from dense marketplace tables. Motion is disabled by the user's setting
   and by prefers-reduced-motion. */

:root {
  --motion-fast: 140ms;
  --motion-ui: 190ms;
  --motion-page: 420ms;
  --motion-ease: cubic-bezier(.2,.72,.22,1);
  --motion-spring: cubic-bezier(.18,.89,.32,1.18);
}

@keyframes app-motion-reveal {
  from { opacity: 0; transform: translate3d(0, 12px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes app-motion-row {
  from { opacity: 0; transform: translate3d(0, 7px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes app-motion-pop {
  from { opacity: 0; transform: translate3d(0, 7px, 0) scale(.985); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes app-motion-modal {
  from { opacity: 0; transform: translate3d(0, 12px, 0) scale(.992); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes app-motion-toast {
  from { opacity: 0; transform: translate3d(18px, 0, 0) scale(.985); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes app-motion-status-pulse {
  0%, 100% { opacity: .74; transform: scale(.9); }
  50% { opacity: 1; transform: scale(1.08); }
}
@keyframes app-motion-refresh-spin {
  to { transform: rotate(360deg); }
}

/* Page and card entrance. JS only adds these classes when motion is enabled,
   so content is never hidden if JavaScript fails. */
html.app-motion-enabled .app-motion-reveal {
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  will-change: opacity, transform;
}
html.app-motion-enabled .app-motion-reveal.is-motion-visible {
  animation: app-motion-reveal var(--motion-page) var(--motion-ease) both;
  animation-delay: var(--motion-delay, 0ms);
}
html.app-motion-enabled .app-motion-row {
  opacity: 0;
  transform: translate3d(0, 7px, 0);
}
html.app-motion-enabled .app-motion-row.is-motion-visible {
  animation: app-motion-row 300ms var(--motion-ease) both;
  animation-delay: var(--motion-delay, 0ms);
}

/* Buttons: subtle lift on hover, physical press on click. */
html.app-motion-enabled :is(
  .button,
  .products-modern-button,
  .page-settings-button,
  .column-settings-button,
  .app-table-reset-button,
  .orders-refresh,
  .fbo-select-trigger,
  .wt-add-product,
  .wr-primary-button,
  .header-profile-button,
  .section-search-trigger
) {
  transition:
    transform var(--motion-fast) var(--motion-ease),
    box-shadow var(--motion-ui) var(--motion-ease),
    border-color var(--motion-ui) var(--motion-ease),
    background-color var(--motion-ui) var(--motion-ease),
    color var(--motion-ui) var(--motion-ease),
    opacity var(--motion-ui) var(--motion-ease);
  transform-origin: center;
}
html.app-motion-enabled :is(
  .button,
  .products-modern-button,
  .page-settings-button,
  .column-settings-button,
  .app-table-reset-button,
  .orders-refresh,
  .fbo-select-trigger,
  .wt-add-product,
  .wr-primary-button
):not(:disabled):hover {
  transform: translate3d(0, -1px, 0);
}
html.app-motion-enabled :is(
  .button,
  .products-modern-button,
  .page-settings-button,
  .column-settings-button,
  .app-table-reset-button,
  .orders-refresh,
  .fbo-select-trigger,
  .wt-add-product,
  .wr-primary-button
):not(:disabled):active {
  transform: translate3d(0, 0, 0) scale(.985);
  transition-duration: 70ms;
}
html.app-motion-enabled :is(
  .button,
  .products-modern-button,
  .page-settings-button,
  .column-settings-button,
  .app-table-reset-button,
  .orders-refresh,
  .wt-add-product
) > :is(svg,.app-icon) {
  transition: transform var(--motion-ui) var(--motion-ease);
}
html.app-motion-enabled :is(
  .button,
  .products-modern-button,
  .page-settings-button,
  .column-settings-button,
  .app-table-reset-button,
  .orders-refresh,
  .wt-add-product
):not(:disabled):hover > :is(svg,.app-icon) {
  transform: translate3d(0, -1px, 0);
}

/* Actionable cards get a restrained depth response. */
html.app-motion-enabled :is(
  .orders-metric-card,
  .profile-store-card,
  .warehouse-group-card,
  .fbo-platform,
  .news-card,
  .integration-card,
  .promotion-action-card
) {
  transition:
    transform 220ms var(--motion-ease),
    box-shadow 220ms var(--motion-ease),
    border-color 220ms var(--motion-ease),
    background-color 220ms var(--motion-ease);
}
html.app-motion-enabled :is(
  .orders-metric-card,
  .profile-store-card,
  .warehouse-group-card,
  .fbo-platform,
  .news-card,
  .integration-card,
  .promotion-action-card
):hover {
  transform: translate3d(0, -2px, 0);
}

/* Inputs and custom selects feel responsive without moving layout. */
html.app-motion-enabled :is(
  input:not([type="checkbox"]):not([type="radio"]),
  textarea,
  select,
  .app-searchable-select__toggle,
  .app-enhanced-multi__toggle,
  .fs-select__toggle,
  .pricing-search,
  .orders-search
) {
  transition:
    border-color var(--motion-ui) var(--motion-ease),
    box-shadow var(--motion-ui) var(--motion-ease),
    background-color var(--motion-ui) var(--motion-ease),
    color var(--motion-ui) var(--motion-ease);
}

/* Checkboxes, radios and switches use a short spring instead of snapping. */
html.app-motion-enabled :is(
  input[type="checkbox"],
  input[type="radio"],
  .switch-filter i,
  .toggle-switch i,
  .profile-switch i,
  .wr-mode-option b
) {
  transition:
    transform var(--motion-ui) var(--motion-spring),
    background-color var(--motion-ui) var(--motion-ease),
    border-color var(--motion-ui) var(--motion-ease),
    box-shadow var(--motion-ui) var(--motion-ease),
    opacity var(--motion-ui) var(--motion-ease);
}
html.app-motion-enabled input[type="checkbox"]:active,
html.app-motion-enabled input[type="radio"]:active {
  transform: scale(.9);
}

/* Popovers and dropdown panels. Avoid the main navigation submenu here because
   its positioning already uses transforms on several responsive breakpoints. */
html.app-motion-enabled :is(
  .header-profile-menu[open] > .header-profile-popover,
  .header-store-picker[open] > .header-store-picker__menu,
  .section-search.is-open .section-search-popover,
  .app-searchable-select.is-open > .app-searchable-select__menu,
  .app-enhanced-multi.is-open > .app-enhanced-multi__menu,
  .fs-select.is-open > .fs-select__menu,
  .fbo-select.is-open > .fbo-select-popover,
  details[open] > .dropdown-menu
) {
  animation: app-motion-pop 190ms var(--motion-ease) both;
  transform-origin: top center;
}

/* Dialogs/windows enter once when opened. The JS class is intentionally
   separate from window dragging/maximising so those interactions stay crisp. */
html.app-motion-enabled .app-motion-modal-enter {
  animation: app-motion-modal 240ms var(--motion-ease) both;
}

/* Toasts/alerts arrive from the side instead of simply appearing. */
html.app-motion-enabled :is(.app-error-toast,.alert,.flash).app-motion-toast-enter {
  animation: app-motion-toast 260ms var(--motion-ease) both;
}

/* Tables should stay geometrically stable. Only color/selection transitions
   are animated; initial rows are staggered by JS without hover movement. */
html.app-motion-enabled :is(
  table tbody tr,
  .products-modern-row,
  .orders-row,
  .wt-product-row,
  .wr-item-row
) {
  transition:
    background-color var(--motion-fast) var(--motion-ease),
    border-color var(--motion-fast) var(--motion-ease),
    box-shadow var(--motion-fast) var(--motion-ease),
    opacity var(--motion-fast) var(--motion-ease);
}

/* Tabs, chips and pagination no longer snap between states. */
html.app-motion-enabled :is(
  .products-modern-market-tab,
  .products-modern-state-tabs a,
  .orders-status-tab,
  .profile-tabs a,
  .communications-tab,
  .page-dots a,
  .pagination a,
  .app-filter-chip,
  .market-switch__item,
  .fbo-platform
) {
  transition:
    background-color var(--motion-ui) var(--motion-ease),
    border-color var(--motion-ui) var(--motion-ease),
    color var(--motion-ui) var(--motion-ease),
    box-shadow var(--motion-ui) var(--motion-ease),
    transform var(--motion-fast) var(--motion-ease),
    opacity var(--motion-ui) var(--motion-ease);
}
html.app-motion-enabled :is(.app-filter-chip,.pagination a,.page-dots a):hover {
  transform: translate3d(0,-1px,0);
}

/* Live/updated dots can breathe very lightly; this is the only persistent
   ambient animation and is intentionally slow. */
html.app-motion-enabled :is(.data-refresh-badge,.refresh-badge,.update-badge) :is(.status-dot,.refresh-dot,.dot),
html.app-motion-enabled :is(.data-refresh-badge,.refresh-badge,.update-badge)::before {
  animation: app-motion-status-pulse 2.4s ease-in-out infinite;
}

html.app-motion-enabled .is-app-refreshing :is(svg,.app-icon),
html.app-motion-enabled :is(.orders-refresh,.page-refresh-button,.warehouse-refresh).is-app-refreshing :is(svg,.app-icon) {
  animation: app-motion-refresh-spin .8s linear infinite;
}

/* Never animate movable window controls or the drag surface itself. */
html.app-motion-enabled :is(.app-window,.app-window-header,.app-window-control) {
  transition-property: background-color,border-color,color,box-shadow,opacity;
}

/* User preference and OS accessibility preference always win. */
html:not(.app-motion-enabled) .app-motion-reveal,
html:not(.app-motion-enabled) .app-motion-row {
  opacity: 1 !important;
  transform: none !important;
}
body.app-reduce-motion *,
body.app-reduce-motion *::before,
body.app-reduce-motion *::after {
  animation-duration: .001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: .001ms !important;
  scroll-behavior: auto !important;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}


/* marketplace-switcher.css */
/* V703 — one visual language for marketplace switches in every section.
   Section-specific legacy classes are intentionally overridden here. */
:root {
  --mp-switch-bg: rgba(255, 255, 255, .94);
  --mp-switch-border: rgba(148, 163, 184, .20);
  --mp-switch-shadow: 0 12px 34px rgba(31, 45, 66, .075), inset 0 1px 0 rgba(255,255,255,.90);
  --mp-switch-text: #344054;
  --mp-switch-ozon: #0865f5;
  --mp-switch-wb: #9814c8;
  --mp-switch-yandex: #e29a00;
}

/* Important: compact/legacy variants have exactly the same visual metrics. */
.app-marketplace-switcher,
.app-marketplace-switcher.app-marketplace-switcher--compact {
  position: relative !important;
  isolation: isolate !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  width: min(100%, 1120px) !important;
  min-width: 0 !important;
  min-height: 60px !important;
  padding: 5px !important;
  gap: 0 !important;
  overflow: hidden !important;
  border: 1px solid var(--mp-switch-border) !important;
  border-radius: 999px !important;
  background: var(--mp-switch-bg) !important;
  box-shadow: var(--mp-switch-shadow) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
}

/* Top-level tabs keep the normal page spacing. Switchers embedded in a card
   keep the card's flow, but are otherwise visually identical. */
.app-marketplace-switcher:not(.app-marketplace-switcher--compact) {
  margin: 7px auto 28px !important;
}
.app-marketplace-switcher.app-marketplace-switcher--compact {
  margin: 0 !important;
}

.app-marketplace-switcher > :is(a, button, label),
.app-marketplace-switcher.app-marketplace-switcher--compact > :is(a, button, label) {
  position: relative !important;
  z-index: 2 !important;
  box-sizing: border-box !important;
  flex: 1 1 0 !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 48px !important;
  height: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  padding: 0 16px !important;
  margin: 0 !important;
  border: 0 !important;
  outline-offset: -2px !important;
  border-radius: 999px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--mp-switch-text) !important;
  font-family: inherit !important;
  font-size: 14px !important;
  line-height: 1.1 !important;
  font-weight: 800 !important;
  letter-spacing: .018em !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  transition: color .25s ease, opacity .2s ease, transform .18s ease !important;
}

/* Remove all section-specific tab underlines/dots/borders. */
.app-marketplace-switcher > :is(a, button, label)::before,
.app-marketplace-switcher > :is(a, button, label)::after {
  display: none !important;
  content: none !important;
  border: 0 !important;
  background: none !important;
}
.app-marketplace-switcher > :is(a,button) > i:empty { display:none !important; }

.app-marketplace-switcher > :is(a, button, label):hover { color:#111827 !important; }
.app-marketplace-switcher > :is(a, button, label):active { transform:scale(.987) !important; }
.app-marketplace-switcher > :is(a, button, label):is(.is-disabled,[disabled],[aria-disabled="true"]) {
  opacity:.36 !important;
  pointer-events:none !important;
  cursor:not-allowed !important;
}

.app-marketplace-switcher__indicator {
  position:absolute !important;
  z-index:1 !important;
  top:5px !important;
  left:0 !important;
  height:calc(100% - 10px) !important;
  width:0;
  border-radius:999px !important;
  pointer-events:none !important;
  background:rgba(100,116,139,.075);
  border:1px solid rgba(100,116,139,.065);
  box-shadow:0 6px 17px rgba(37,52,75,.055), inset 0 1px 0 rgba(255,255,255,.78);
  transform:translate3d(0,0,0);
  transition:
    transform .36s cubic-bezier(.22,.8,.24,1),
    width .36s cubic-bezier(.22,.8,.24,1),
    background-color .28s ease,
    border-color .28s ease,
    box-shadow .28s ease !important;
}

.app-marketplace-switcher[data-active-marketplace="ozon"] .app-marketplace-switcher__indicator {
  background:linear-gradient(135deg,rgba(45,123,255,.15),rgba(45,123,255,.075)) !important;
  border-color:rgba(0,91,255,.11) !important;
}
.app-marketplace-switcher[data-active-marketplace="wildberries"] .app-marketplace-switcher__indicator {
  background:linear-gradient(135deg,rgba(174,65,224,.16),rgba(155,17,200,.08)) !important;
  border-color:rgba(155,17,200,.11) !important;
}
.app-marketplace-switcher[data-active-marketplace="yandex"] .app-marketplace-switcher__indicator {
  background:linear-gradient(135deg,rgba(255,204,0,.22),rgba(255,183,0,.11)) !important;
  border-color:rgba(217,144,0,.12) !important;
}
.app-marketplace-switcher[data-active-marketplace="all"] .app-marketplace-switcher__indicator,
.app-marketplace-switcher[data-active-marketplace="offline"] .app-marketplace-switcher__indicator {
  background:rgba(100,116,139,.10) !important;
}
.app-marketplace-switcher[data-active-marketplace="ozon"] > .app-marketplace-option--active { color:var(--mp-switch-ozon) !important; }
.app-marketplace-switcher[data-active-marketplace="wildberries"] > .app-marketplace-option--active { color:var(--mp-switch-wb) !important; }
.app-marketplace-switcher[data-active-marketplace="yandex"] > .app-marketplace-option--active { color:var(--mp-switch-yandex) !important; }
.app-marketplace-switcher[data-active-marketplace="all"] > .app-marketplace-option--active,
.app-marketplace-switcher[data-active-marketplace="offline"] > .app-marketplace-option--active { color:#334155 !important; }

/* Data area transition for AJAX marketplace navigation. */
.page-container { transition:opacity .18s ease, transform .22s ease, filter .22s ease; }
.page-container.is-marketplace-switching {
  opacity:.56;
  transform:translateY(2px);
  filter:saturate(.92);
  pointer-events:none;
}
.page-container.is-marketplace-entering { animation:marketplacePageIn .30s cubic-bezier(.22,.8,.24,1) both; }
@keyframes marketplacePageIn { from{opacity:.36;transform:translateY(5px)} to{opacity:1;transform:translateY(0)} }

html[data-app-theme="dark"] .app-marketplace-switcher {
  --mp-switch-bg:rgba(27,34,44,.95);
  --mp-switch-border:rgba(255,255,255,.085);
  --mp-switch-shadow:0 14px 38px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.035);
  --mp-switch-text:#cbd5e1;
}
html[data-app-theme="dark"] .app-marketplace-switcher > :is(a,button,label):hover { color:#fff !important; }
html[data-app-theme="dark"] .app-marketplace-switcher__indicator { box-shadow:0 8px 21px rgba(0,0,0,.18),inset 0 1px 0 rgba(255,255,255,.04); }
html[data-app-theme="dark"] .app-marketplace-switcher[data-active-marketplace="ozon"] .app-marketplace-switcher__indicator { background:rgba(0,91,255,.20) !important; }
html[data-app-theme="dark"] .app-marketplace-switcher[data-active-marketplace="wildberries"] .app-marketplace-switcher__indicator { background:rgba(174,49,218,.20) !important; }
html[data-app-theme="dark"] .app-marketplace-switcher[data-active-marketplace="yandex"] .app-marketplace-switcher__indicator { background:rgba(255,204,0,.15) !important; }

@media (max-width:760px) {
  .app-marketplace-switcher,
  .app-marketplace-switcher.app-marketplace-switcher--compact {
    min-height:54px !important;
    padding:4px !important;
    overflow-x:auto !important;
    scrollbar-width:none;
  }
  .app-marketplace-switcher::-webkit-scrollbar { display:none; }
  .app-marketplace-switcher > :is(a,button,label),
  .app-marketplace-switcher.app-marketplace-switcher--compact > :is(a,button,label) {
    min-height:44px !important;
    min-width:108px !important;
    padding-inline:11px !important;
    font-size:11.5px !important;
  }
  .app-marketplace-switcher__indicator { top:4px !important; height:calc(100% - 8px) !important; }
}

@media (prefers-reduced-motion:reduce) {
  .app-marketplace-switcher__indicator,.page-container { transition:none !important; animation:none !important; }
}

/* Legacy switchers sometimes wrap the title in <span> and add dots/counters.
   Keep those children from re-introducing section-specific typography. */
.app-marketplace-switcher > :is(a,button,label) > span:not(.app-marketplace-switcher__indicator) {
  color: inherit !important;
  font: inherit !important;
  letter-spacing: inherit !important;
  line-height: inherit !important;
  text-transform: inherit !important;
}
.app-marketplace-switcher > :is(a,button,label) > i:empty,
.app-marketplace-switcher .knowledge-pricing-market-dot {
  display: none !important;
}
.app-marketplace-switcher > :is(a,button,label) > b {
  min-width: 0 !important;
  height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: currentColor !important;
  font: inherit !important;
  font-size: .86em !important;
  opacity: .68 !important;
}


/* ui-v705.css */
/* V705 — unified workspace marketplace switch + adaptive animated top navigation. */
.app-marketplace-switcher.app-marketplace-switcher--workspace {
  width: min(100%, 1680px) !important;
  min-height: 82px !important;
  padding: 7px !important;
  margin: 8px auto 26px !important;
  border: 1px solid rgba(203, 213, 225, .62) !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.96) !important;
  box-shadow: 0 14px 34px rgba(32,48,70,.07), inset 0 1px 0 rgba(255,255,255,.96) !important;
}
.app-marketplace-switcher.app-marketplace-switcher--workspace > :is(a,button,label) {
  min-height: 66px !important;
  padding-inline: clamp(14px, 2.2vw, 34px) !important;
  font-size: clamp(14px, 1.05vw, 18px) !important;
  font-weight: 850 !important;
  letter-spacing: .012em !important;
}
.app-marketplace-switcher.app-marketplace-switcher--workspace .app-marketplace-switcher__indicator {
  top: 7px !important;
  height: calc(100% - 14px) !important;
  border-width: 1px !important;
  box-shadow: 0 9px 24px rgba(30,50,80,.075), inset 0 1px 0 rgba(255,255,255,.92) !important;
}
.app-marketplace-switcher.app-marketplace-switcher--workspace[data-active-marketplace="ozon"] .app-marketplace-switcher__indicator {
  background: linear-gradient(135deg, rgba(213,229,255,.88), rgba(239,246,255,.78)) !important;
  border-color: rgba(52,129,255,.22) !important;
}
.app-marketplace-switcher.app-marketplace-switcher--workspace[data-active-marketplace="wildberries"] .app-marketplace-switcher__indicator {
  background: linear-gradient(135deg, rgba(238,220,255,.90), rgba(249,239,255,.80)) !important;
  border-color: rgba(165,72,218,.20) !important;
}
.app-marketplace-switcher.app-marketplace-switcher--workspace[data-active-marketplace="yandex"] .app-marketplace-switcher__indicator {
  background: linear-gradient(135deg, rgba(255,236,188,.92), rgba(255,248,224,.82)) !important;
  border-color: rgba(228,169,32,.22) !important;
}
html[data-app-theme="dark"] .app-marketplace-switcher.app-marketplace-switcher--workspace {
  background: rgba(24,31,40,.96) !important;
  border-color: rgba(255,255,255,.08) !important;
}

/* The short three-option Products filter is intentionally native; a searchable
   popup here used to escape the sidebar and overlap the table. */
.products-pricing-body .products-filter-select[data-native-select] {
  display:block !important; position:static !important; width:100% !important;
  min-height:44px !important; opacity:1 !important; pointer-events:auto !important;
  clip:auto !important; appearance:auto !important;
}

/* Desktop top nav: active section is a softly animated capsule instead of an underline. */
@media (min-width:1121px) {
  .app-modern-shell .app-header { min-width:0 !important; }
  .app-modern-shell .main-nav {
    min-width:0 !important;
    flex: 1 1 auto !important;
    gap: calc(1px + 3px * var(--gm-nav-fit, 1)) !important;
  }
  .app-modern-shell .main-nav__link,
  .app-modern-shell .main-nav-menu > .main-nav__link {
    min-width:0 !important;
    min-height: calc(35px + 5px * var(--gm-nav-fit, 1)) !important;
    height: calc(35px + 5px * var(--gm-nav-fit, 1)) !important;
    padding-block: 8px !important;
    padding-inline: calc(3px + 8px * var(--gm-nav-fit, 1)) !important;
    gap: calc(1px + 3px * var(--gm-nav-fit, 1)) !important;
    border-radius: calc(8px + 4px * var(--gm-nav-fit, 1)) !important;
    font-size: clamp(10.4px, calc(9.8px + 3px * var(--gm-nav-fit, 1)), 12.8px) !important;
    letter-spacing: calc(-.012em * (1 - var(--gm-nav-fit, 1))) !important;
    line-height:1.15 !important;
    transform: translateY(0) scale(1) !important;
    transition: color .22s ease, background-color .28s ease, box-shadow .28s ease,
                transform .28s cubic-bezier(.22,.8,.24,1) !important;
  }
  .app-modern-shell .main-nav__link::after,
  .app-modern-shell .main-nav-menu.active > .main-nav__link::after,
  .app-modern-shell .main-nav-menu > .main-nav__link.active::after { display:none !important; content:none !important; }
  .app-modern-shell .main-nav__link:hover {
    background: rgba(88,100,120,.055) !important;
    transform: translateY(-1px) !important;
  }
  .app-modern-shell .main-nav__link.active,
  .app-modern-shell .main-nav-menu.active > .main-nav__link,
  .app-modern-shell .main-nav-menu > .main-nav__link.active {
    background: linear-gradient(180deg, rgba(245,247,250,.98), rgba(235,239,244,.88)) !important;
    color:#15191f !important;
    box-shadow: 0 6px 18px rgba(31,43,60,.08), inset 0 0 0 1px rgba(115,128,148,.10) !important;
    transform: translateY(-1px) scale(1.015) !important;
  }
  /* Never use CSS/browser zoom for the header: keep natural text geometry and
     let flex + clamp adapt until the search control. */
  .app-modern-shell .app-header,
  .app-modern-shell .main-nav,
  .app-modern-shell .main-nav__list { zoom:1 !important; transform:none; }
}
@media (min-width:1121px) and (max-width:1450px) {
  .app-modern-shell .brand-name { font-size:clamp(16px,1.15vw,19px) !important; }
}
@media (max-width:760px) {
  .app-marketplace-switcher.app-marketplace-switcher--workspace { min-height:58px !important; padding:4px !important; }
  .app-marketplace-switcher.app-marketplace-switcher--workspace > :is(a,button,label) { min-height:48px !important; min-width:122px !important; font-size:11.5px !important; }
  .app-marketplace-switcher.app-marketplace-switcher--workspace .app-marketplace-switcher__indicator { top:4px !important; height:calc(100% - 8px) !important; }
}


/* ui-v706.css */
/* V706 · reliability pass for shared controls. */

/* Searchable selects are portalled to <body> while open.  A transformed,
   draggable or resized modal must never become the positioning containing
   block for the dropdown. */
body > .app-searchable-select__menu.is-portaled {
  position: fixed !important;
  z-index: 6200 !important;
  max-height: min(430px, calc(100vh - 16px)) !important;
  overflow: hidden !important;
}
body > .app-searchable-select__menu.is-portaled .app-searchable-select__list {
  max-height: min(340px, calc(100vh - 104px)) !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
}

/* A legacy section may still have very specific .active styles.  The moving
   indicator is the only background/border allowed inside the common switch. */
html body.app-modern-shell .app-marketplace-switcher.app-marketplace-switcher > :is(a,button,label).active,
html body.app-modern-shell .app-marketplace-switcher.app-marketplace-switcher > :is(a,button,label).is-active,
html body.app-modern-shell .app-marketplace-switcher.app-marketplace-switcher > :is(a,button,label)[aria-selected="true"],
html body.app-modern-shell .app-marketplace-switcher.app-marketplace-switcher > :is(a,button,label)[aria-pressed="true"] {
  background: transparent !important;
  border: 0 !important;
  border-color: transparent !important;
  box-shadow: none !important;
  filter: none !important;
}
html body.app-modern-shell .app-marketplace-switcher.app-marketplace-switcher > :is(a,button,label)::before,
html body.app-modern-shell .app-marketplace-switcher.app-marketplace-switcher > :is(a,button,label)::after {
  display: none !important;
  content: none !important;
  width: 0 !important;
  height: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html body.app-modern-shell .app-marketplace-switcher[data-active-marketplace="ozon"] > .app-marketplace-option--active {
  color: var(--mp-switch-ozon) !important;
}
html body.app-modern-shell .app-marketplace-switcher[data-active-marketplace="wildberries"] > .app-marketplace-option--active {
  color: var(--mp-switch-wb) !important;
}
html body.app-modern-shell .app-marketplace-switcher[data-active-marketplace="yandex"] > .app-marketplace-option--active {
  color: var(--mp-switch-yandex) !important;
}
html body.app-modern-shell .app-marketplace-switcher[data-active-marketplace="ozon"] > .app-marketplace-switcher__indicator {
  background: linear-gradient(135deg, rgba(45,123,255,.18), rgba(45,123,255,.075)) !important;
  border-color: rgba(0,91,255,.13) !important;
}
html body.app-modern-shell .app-marketplace-switcher[data-active-marketplace="wildberries"] > .app-marketplace-switcher__indicator {
  background: linear-gradient(135deg, rgba(174,65,224,.18), rgba(155,17,200,.075)) !important;
  border-color: rgba(155,17,200,.13) !important;
}
html body.app-modern-shell .app-marketplace-switcher[data-active-marketplace="yandex"] > .app-marketplace-switcher__indicator {
  background: linear-gradient(135deg, rgba(255,211,48,.28), rgba(255,190,35,.11)) !important;
  border-color: rgba(216,151,0,.16) !important;
}

/* Desktop navigation: no underline from any historical stylesheet.  The active
   section is a compact animated capsule and remains legible when the browser is
   zoomed; --gm-nav-fit only trims spacing rather than collapsing the text. */
@media (min-width: 1121px) {
  html body.app-modern-shell .main-nav__link::before,
  html body.app-modern-shell .main-nav__link::after,
  html body.app-modern-shell .main-nav-menu > .main-nav__link::before,
  html body.app-modern-shell .main-nav-menu > .main-nav__link::after,
  html body.app-modern-shell.products-modern-body .main-nav__link::before,
  html body.app-modern-shell.products-modern-body .main-nav__link::after {
    display: none !important;
    content: none !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  html body.app-modern-shell .main-nav,
  html body.app-modern-shell.products-modern-body .main-nav {
    min-width: 0 !important;
    gap: clamp(1px, calc(1px + 3px * var(--gm-nav-fit, 1)), 4px) !important;
  }
  html body.app-modern-shell .main-nav__link,
  html body.app-modern-shell .main-nav-menu > .main-nav__link,
  html body.app-modern-shell.products-modern-body .main-nav__link,
  html body.app-modern-shell.products-modern-body .main-nav-menu > .main-nav__link {
    min-width: 0 !important;
    min-height: 38px !important;
    height: 38px !important;
    padding-inline: clamp(4px, calc(3px + 7px * var(--gm-nav-fit, 1)), 10px) !important;
    border: 0 !important;
    border-radius: 11px !important;
    font-size: clamp(11.4px, calc(10.7px + 2.3px * var(--gm-nav-fit, 1)), 13px) !important;
    line-height: 1.05 !important;
    letter-spacing: -.006em !important;
    transform: translateY(0) scale(1) !important;
    transition: background-color .22s ease, color .20s ease, box-shadow .28s ease,
                transform .30s cubic-bezier(.22,.85,.24,1) !important;
  }
  html body.app-modern-shell .main-nav__link:hover,
  html body.app-modern-shell .main-nav-menu > .main-nav__link:hover {
    background: rgba(82,94,111,.06) !important;
    transform: translateY(-1px) !important;
  }
  html body.app-modern-shell .main-nav__link.active,
  html body.app-modern-shell .main-nav-menu.active > .main-nav__link,
  html body.app-modern-shell .main-nav-menu > .main-nav__link.active,
  html body.app-modern-shell.products-modern-body .main-nav__link.active,
  html body.app-modern-shell.products-modern-body .main-nav-menu.active > .main-nav__link {
    background: linear-gradient(180deg, rgba(247,249,252,.99), rgba(234,238,244,.94)) !important;
    color: #15191f !important;
    box-shadow: 0 7px 18px rgba(31,43,60,.075), inset 0 0 0 1px rgba(113,126,146,.11) !important;
    font-weight: 790 !important;
    transform: translateY(-1px) scale(1.018) !important;
  }
  html body.app-modern-shell .app-header,
  html body.app-modern-shell .main-nav,
  html body.app-modern-shell .main-nav__list {
    zoom: 1 !important;
  }
}

/* New minimal filter glyphs use the same neutral line treatment as Categories
   and Brands; they are intentionally not marketplace-coloured. */
.app-filter-label-icon:has(use[href$="#status"]),
.app-filter-label-icon:has(use[href$="#barcode"]) {
  color: #8090a4 !important;
}
.app-filter-label-icon:has(use[href$="#status"]) .app-icon,
.app-filter-label-icon:has(use[href$="#barcode"]) .app-icon {
  stroke-width: 1.65 !important;
}

/* Specificity shield for the historical desktop underline rules. */
@media (min-width: 1121px) {
  html body.app-modern-shell .main-nav .main-nav__link.active::after,
  html body.app-modern-shell .main-nav .main-nav-menu.active > .main-nav__link::after,
  html body.app-modern-shell .main-nav .main-nav-menu > .main-nav__link.active::after,
  html body.app-modern-shell.products-modern-body .main-nav .main-nav__link.active::after,
  html body.app-modern-shell.products-modern-body .main-nav .main-nav-menu.active > .main-nav__link::after {
    display: none !important;
    content: none !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
  }
}

/* Enforce the reference single-pill geometry even where old Products/Prices
   selectors have higher specificity than the original shared stylesheet. */
html body.app-modern-shell .app-marketplace-switcher.app-marketplace-switcher {
  display: flex !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  width: min(100%, 1120px) !important;
  min-width: 0 !important;
  min-height: 60px !important;
  padding: 5px !important;
  gap: 0 !important;
  overflow: hidden !important;
  border: 1px solid var(--mp-switch-border) !important;
  border-radius: 999px !important;
  background: var(--mp-switch-bg) !important;
  box-shadow: var(--mp-switch-shadow) !important;
}
html body.app-modern-shell .app-marketplace-switcher.app-marketplace-switcher--workspace {
  min-height: 82px !important;
  padding: 6px !important;
  border-radius: 999px !important;
}
html body.app-modern-shell .app-marketplace-switcher.app-marketplace-switcher > :is(a,button,label) {
  flex: 1 1 0 !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding-inline: 16px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
}
html body.app-modern-shell .app-marketplace-switcher.app-marketplace-switcher--workspace > :is(a,button,label) {
  min-height: 68px !important;
  height: auto !important;
  font-size: clamp(13px, 1.05vw, 16px) !important;
}
html body.app-modern-shell .app-marketplace-switcher.app-marketplace-switcher--workspace > .app-marketplace-switcher__indicator {
  top: 6px !important;
  height: calc(100% - 12px) !important;
}


/* ui-v707.css */
/* V707 · compact shared marketplace switcher + Apple-like desktop navigation. */

/* The Products / Prices / Marketplace warehouse switch is intentionally more
   compact than V706 while keeping the same animated shared indicator. */
html body.app-modern-shell .app-marketplace-switcher.app-marketplace-switcher--workspace {
  width: min(100%, 900px) !important;
  min-height: 56px !important;
  padding: 4px !important;
  border-radius: 999px !important;
  box-shadow: 0 9px 26px rgba(28, 42, 61, .055) !important;
}
html body.app-modern-shell .app-marketplace-switcher.app-marketplace-switcher--workspace > :is(a,button,label) {
  min-height: 46px !important;
  height: 46px !important;
  padding-inline: 12px !important;
  font-size: clamp(12px, .82vw, 14px) !important;
  font-weight: 760 !important;
  letter-spacing: -.012em !important;
}
html body.app-modern-shell .app-marketplace-switcher.app-marketplace-switcher--workspace > .app-marketplace-switcher__indicator {
  top: 4px !important;
  height: calc(100% - 8px) !important;
}
@media (max-width: 900px) {
  html body.app-modern-shell .app-marketplace-switcher.app-marketplace-switcher--workspace {
    width: 100% !important;
    min-height: 50px !important;
    padding: 3px !important;
  }
  html body.app-modern-shell .app-marketplace-switcher.app-marketplace-switcher--workspace > :is(a,button,label) {
    min-height: 42px !important;
    height: 42px !important;
    padding-inline: 8px !important;
    font-size: clamp(10.8px, 2.5vw, 13px) !important;
  }
  html body.app-modern-shell .app-marketplace-switcher.app-marketplace-switcher--workspace > .app-marketplace-switcher__indicator {
    top: 3px !important;
    height: calc(100% - 6px) !important;
  }
}

/* Apple-like top navigation: neutral text, more air, no capsule/underline.
   The current section is indicated by a tiny animated dot plus stronger text. */
@media (min-width: 1121px) {
  html body.app-modern-shell .app-header,
  html body.app-modern-shell.products-modern-body .app-header {
    --gm-top-navigation-height: 54px !important;
    padding-inline: 18px !important;
    gap: 18px !important;
    border-bottom-color: rgba(18, 24, 33, .075) !important;
    background: rgba(250, 250, 251, .965) !important;
    -webkit-backdrop-filter: saturate(150%) blur(18px) !important;
    backdrop-filter: saturate(150%) blur(18px) !important;
  }
  html body.app-modern-shell .brand-name,
  html body.app-modern-shell.products-modern-body .brand-name {
    font-size: 14.5px !important;
    font-weight: 820 !important;
    letter-spacing: -.032em !important;
  }
  html body.app-modern-shell .main-nav,
  html body.app-modern-shell.products-modern-body .main-nav {
    gap: clamp(0px, calc(1px + 2px * var(--gm-nav-fit, 1)), 3px) !important;
    overflow: visible !important;
  }
  html body.app-modern-shell .main-nav__link,
  html body.app-modern-shell .main-nav-menu > .main-nav__link,
  html body.app-modern-shell.products-modern-body .main-nav__link,
  html body.app-modern-shell.products-modern-body .main-nav-menu > .main-nav__link {
    position: relative !important;
    min-height: 36px !important;
    height: 36px !important;
    padding-inline: clamp(3px, calc(2px + 5px * var(--gm-nav-fit, 1)), 7px) !important;
    border: 0 !important;
    border-radius: 6px !important;
    background: transparent !important;
    color: #565b62 !important;
    box-shadow: none !important;
    font-size: clamp(11.3px, calc(10.7px + 1.8px * var(--gm-nav-fit, 1)), 12.5px) !important;
    font-weight: 560 !important;
    line-height: 1 !important;
    letter-spacing: -.006em !important;
    transform: none !important;
    transition: color .2s ease, opacity .2s ease, transform .24s cubic-bezier(.22,.8,.24,1) !important;
  }
  html body.app-modern-shell .main-nav__link:hover,
  html body.app-modern-shell .main-nav-menu > .main-nav__link:hover {
    background: transparent !important;
    color: #111317 !important;
    transform: translateY(-1px) !important;
  }
  html body.app-modern-shell .main-nav__link.active,
  html body.app-modern-shell .main-nav-menu.active > .main-nav__link,
  html body.app-modern-shell .main-nav-menu > .main-nav__link.active,
  html body.app-modern-shell.products-modern-body .main-nav__link.active,
  html body.app-modern-shell.products-modern-body .main-nav-menu.active > .main-nav__link {
    background: transparent !important;
    color: #111317 !important;
    box-shadow: none !important;
    font-weight: 720 !important;
    transform: none !important;
  }
  /* V710: active section is text-only. No dot/underline marker. */
  html body.app-modern-shell .main-nav .main-nav__link.active::after,
  html body.app-modern-shell .main-nav .main-nav-menu.active > .main-nav__link::after,
  html body.app-modern-shell .main-nav .main-nav-menu > .main-nav__link.active::after,
  html body.app-modern-shell.products-modern-body .main-nav .main-nav__link.active::after,
  html body.app-modern-shell.products-modern-body .main-nav .main-nav-menu.active > .main-nav__link::after {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    animation: none !important;
  }
  html body.app-modern-shell .main-nav__link::before,
  html body.app-modern-shell .main-nav-menu > .main-nav__link::before {
    display: none !important;
    content: none !important;
  }
  html body.app-modern-shell .main-nav__link .app-dropdown-chevron,
  html body.app-modern-shell .main-nav-menu > .main-nav__link .app-dropdown-chevron {
    width: 9px !important;
    height: 9px !important;
    flex-basis: 9px !important;
    margin-left: 1px !important;
    color: #777c83 !important;
  }
  html body.app-modern-shell.nav-fit-tight .main-nav__link,
  html body.app-modern-shell.nav-fit-tight .main-nav-menu > .main-nav__link {
    letter-spacing: -.018em !important;
  }
}
@keyframes appNavDotIn {
  from { opacity: 0; transform: translateX(-50%) translateY(3px) scale(.35); }
  to { opacity: .92; transform: translateX(-50%) translateY(0) scale(1); }
}

/* Payout services are mutually exclusive at interaction level, not only in
   the saved data. */
.settings-field-grid.is-payout-disabled {
  opacity: .48 !important;
  filter: saturate(.65) !important;
}
.settings-field-grid.is-payout-disabled select:disabled {
  cursor: not-allowed !important;
  background: rgba(238, 241, 245, .72) !important;
  color: #89919c !important;
}
html[data-app-theme="dark"] .settings-field-grid.is-payout-disabled select:disabled {
  background: rgba(36, 45, 57, .72) !important;
  color: #788798 !important;
}


/* ui-v708.css */
/* V708 · dropdown anchoring, compact Apple-like top navigation and settings theme sync. */

/* The current top-level section is identified only by stronger text.  Historical
   pills, underlines and V707's dot are all disabled at the final specificity. */
@media (min-width: 1121px) {
  html body.app-modern-shell .main-nav,
  html body.app-modern-shell.products-modern-body .main-nav {
    min-width: 0 !important;
    gap: clamp(0px, calc(3px * var(--gm-nav-fit, 1)), 3px) !important;
    overflow: visible !important;
  }
  html body.app-modern-shell .main-nav__link,
  html body.app-modern-shell .main-nav-menu > .main-nav__link,
  html body.app-modern-shell.products-modern-body .main-nav__link,
  html body.app-modern-shell.products-modern-body .main-nav-menu > .main-nav__link {
    min-width: 0 !important;
    min-height: 34px !important;
    height: 34px !important;
    padding-inline: clamp(2px, calc(1px + 5px * var(--gm-nav-fit, 1)), 6px) !important;
    gap: clamp(1px, calc(1px + 2px * var(--gm-nav-fit, 1)), 3px) !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #676c73 !important;
    font-size: clamp(9.6px, calc(8.6px + 3px * var(--gm-nav-fit, 1)), 11.6px) !important;
    font-weight: 535 !important;
    letter-spacing: -.008em !important;
    transform: none !important;
    transition: color .18s ease, opacity .18s ease !important;
  }
  html body.app-modern-shell .main-nav__link:hover,
  html body.app-modern-shell .main-nav-menu > .main-nav__link:hover {
    background: transparent !important;
    color: #1f2329 !important;
    transform: none !important;
  }
  html body.app-modern-shell .main-nav__link.active,
  html body.app-modern-shell .main-nav-menu.active > .main-nav__link,
  html body.app-modern-shell .main-nav-menu > .main-nav__link.active,
  html body.app-modern-shell.products-modern-body .main-nav__link.active,
  html body.app-modern-shell.products-modern-body .main-nav-menu.active > .main-nav__link {
    border: 0 !important;
    background: transparent !important;
    color: #111318 !important;
    box-shadow: none !important;
    font-weight: 790 !important;
    transform: none !important;
  }
  html body.app-modern-shell .main-nav__link::before,
  html body.app-modern-shell .main-nav__link::after,
  html body.app-modern-shell .main-nav-menu > .main-nav__link::before,
  html body.app-modern-shell .main-nav-menu > .main-nav__link::after,
  html body.app-modern-shell .main-nav__link.active::before,
  html body.app-modern-shell .main-nav__link.active::after,
  html body.app-modern-shell .main-nav-menu.active > .main-nav__link::before,
  html body.app-modern-shell .main-nav-menu.active > .main-nav__link::after {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    animation: none !important;
  }
  html body.app-modern-shell.nav-fit-tight .modern-nav-icon,
  html body.app-modern-shell.nav-fit-critical .modern-nav-icon,
  html body.app-modern-shell.products-modern-body.nav-fit-tight .modern-nav-icon,
  html body.app-modern-shell.products-modern-body.nav-fit-critical .modern-nav-icon {
    display: none !important;
  }
  html body.app-modern-shell.nav-fit-critical .main-nav__link,
  html body.app-modern-shell.nav-fit-critical .main-nav-menu > .main-nav__link {
    padding-inline: 1px !important;
    gap: 1px !important;
    font-size: 9.35px !important;
    letter-spacing: -.022em !important;
  }
}

/* Searchable menus are body-portalled while open. Keep their geometry tied to
   the trigger, rather than a historical minimum width or the previous filter. */
body > .app-searchable-select__menu.is-portaled {
  position: fixed !important;
  z-index: 7600 !important;
  min-width: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  transform: none !important;
}
body > .app-searchable-select__menu.is-portaled .app-searchable-select__search {
  box-sizing: border-box !important;
}
body > .app-searchable-select__menu.is-portaled .app-searchable-select__list {
  overscroll-behavior: contain;
}

/* Pricing settings inherit the marketplace that is actually selected. This
   also colours the window-manager titlebar, which is injected after render. */
#page-settings-modal {
  --settings-accent: #1769e8;
  --settings-accent-strong: #0d56c8;
  --settings-soft: #eef5ff;
  --settings-border: #c9dcfa;
  --settings-ring: rgba(23,105,232,.14);
}
#page-settings-modal[data-settings-theme="wildberries"] {
  --settings-accent: #9143a5;
  --settings-accent-strong: #743486;
  --settings-soft: #f7eff9;
  --settings-border: #dfcbe6;
  --settings-ring: rgba(145,67,165,.14);
}
#page-settings-modal[data-settings-theme="yandex"] {
  --settings-accent: #bd9300;
  --settings-accent-strong: #806400;
  --settings-soft: #fff8d9;
  --settings-border: #ead776;
  --settings-ring: rgba(189,147,0,.15);
}
#page-settings-modal[data-settings-theme="ozon"] {
  --settings-accent: #1769e8;
  --settings-accent-strong: #0d56c8;
  --settings-soft: #eef5ff;
  --settings-border: #c9dcfa;
  --settings-ring: rgba(23,105,232,.14);
}
#page-settings-modal .page-settings-modal-card {
  --wm-titlebar-bg: var(--settings-soft);
  --wm-titlebar-text: var(--settings-accent-strong);
  --wm-border: var(--settings-border);
  --wm-border-strong: var(--settings-border);
  --wm-control-hover: color-mix(in srgb, var(--settings-accent) 10%, white);
  --wm-focus: var(--settings-ring);
  --pricing-accent: var(--settings-accent);
  border-color: var(--settings-border) !important;
  transition: border-color .2s ease !important;
}
#page-settings-modal .page-settings-modal-card > .app-window-titlebar {
  border-bottom-color: var(--settings-border) !important;
  background: var(--settings-soft) !important;
  color: var(--settings-accent-strong) !important;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease !important;
}
#page-settings-modal .eyebrow {
  color: var(--settings-accent-strong) !important;
}
#page-settings-modal .settings-switch-row input:checked + i {
  background: var(--settings-accent) !important;
}
#page-settings-modal .settings-tab.is-active {
  color: var(--settings-accent-strong) !important;
}
#page-settings-modal .settings-tab.is-active::after {
  background: var(--settings-accent) !important;
}


/* ui-v709.css */
/* V709 · structural fixes: local dropdown geometry, collision-safe desktop nav,
   and marketplace-aware settings window theme. */

/* ---------- Searchable selects ---------- */
.app-searchable-select {
  position: relative !important;
  isolation: isolate;
}
.app-searchable-select.is-open { z-index: 7700 !important; }
.app-searchable-select__menu,
body > .app-searchable-select__menu.is-portaled {
  position: absolute !important;
  inset: calc(100% + 6px) 0 auto 0 !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  transform: none !important;
  z-index: 7800 !important;
}
.app-searchable-select.is-open-up > .app-searchable-select__menu {
  top: auto !important;
  bottom: calc(100% + 6px) !important;
}
.app-searchable-select__menu[hidden] { display: none !important; }
.products-filter-card.app-select-host-open,
.filter-card.app-select-host-open,
.products-modern-filters-card.app-select-host-open,
.pricing-sidebar.app-select-host-open,
.page-settings-modal-card.app-select-host-open,
.modal-card.app-select-host-open {
  overflow: visible !important;
}
.products-filter-card.app-select-host-open,
.filter-card.app-select-host-open {
  position: relative !important;
  z-index: 90 !important;
}
.page-settings-modal-card .settings-field-grid:has(.app-searchable-select.is-open) {
  position: relative !important;
  z-index: 120 !important;
  overflow: visible !important;
}

/* ---------- Desktop top navigation ---------- */
@media (min-width: 1121px) {
  html body.app-modern-shell .app-header,
  html body.app-modern-shell.products-modern-body .app-header {
    grid-template-columns: clamp(156px, 10.8vw, 205px) minmax(0, 1fr) !important;
    gap: clamp(8px, 1vw, 18px) !important;
    padding-left: 16px !important;
    padding-right: var(--gm-actions-reserve, 392px) !important;
    min-width: 0 !important;
    overflow: visible !important;
  }
  html body.app-modern-shell .brand,
  html body.app-modern-shell.products-modern-body .brand {
    min-width: 0 !important;
    max-width: none !important;
  }
  html body.app-modern-shell .brand-name,
  html body.app-modern-shell.products-modern-body .brand-name {
    font-size: clamp(13px, 1vw, 16px) !important;
    font-weight: 850 !important;
  }
  html body.app-modern-shell .main-nav,
  html body.app-modern-shell.products-modern-body .main-nav {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: var(--gm-top-navigation-height) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: clamp(0px, calc(5px * var(--gm-nav-fit, 1)), 5px) !important;
    overflow: hidden !important;
  }
  html body.app-modern-shell .main-nav-menu,
  html body.app-modern-shell.products-modern-body .main-nav-menu {
    min-width: 0 !important;
    width: auto !important;
    flex: 0 1 auto !important;
  }
  html body.app-modern-shell .main-nav__link,
  html body.app-modern-shell .main-nav-menu > .main-nav__link,
  html body.app-modern-shell.products-modern-body .main-nav__link,
  html body.app-modern-shell.products-modern-body .main-nav-menu > .main-nav__link {
    width: auto !important;
    min-width: 0 !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 clamp(1px, calc(5px * var(--gm-nav-fit, 1)), 5px) !important;
    gap: clamp(1px, calc(3px * var(--gm-nav-fit, 1)), 3px) !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #696e75 !important;
    box-shadow: none !important;
    font-size: clamp(9.4px, calc(8.2px + 3.2px * var(--gm-nav-fit, 1)), 11.4px) !important;
    font-weight: 570 !important;
    letter-spacing: -.012em !important;
    transform: none !important;
    transition: color .16s ease, opacity .16s ease !important;
  }
  html body.app-modern-shell .modern-nav-icon,
  html body.app-modern-shell.products-modern-body .modern-nav-icon {
    display: none !important;
  }
  html body.app-modern-shell .main-nav__link:hover,
  html body.app-modern-shell .main-nav-menu > .main-nav__link:hover {
    background: transparent !important;
    color: #24272c !important;
    box-shadow: none !important;
  }
  html body.app-modern-shell .main-nav__link.active,
  html body.app-modern-shell .main-nav-menu.active > .main-nav__link,
  html body.app-modern-shell .main-nav-menu > .main-nav__link.active,
  html body.app-modern-shell.products-modern-body .main-nav__link.active,
  html body.app-modern-shell.products-modern-body .main-nav-menu.active > .main-nav__link {
    background: transparent !important;
    color: #111318 !important;
    box-shadow: none !important;
    font-weight: 820 !important;
  }
  html body.app-modern-shell .main-nav__link::before,
  html body.app-modern-shell .main-nav__link::after,
  html body.app-modern-shell .main-nav-menu > .main-nav__link::before,
  html body.app-modern-shell .main-nav-menu > .main-nav__link::after,
  html body.app-modern-shell .main-nav__link.active::before,
  html body.app-modern-shell .main-nav__link.active::after,
  html body.app-modern-shell .main-nav-menu.active > .main-nav__link::before,
  html body.app-modern-shell .main-nav-menu.active > .main-nav__link::after {
    content: none !important;
    display: none !important;
  }
  html body.app-modern-shell .workspace-utility-bar,
  html body.app-modern-shell.sidebar-collapsed .workspace-utility-bar {
    right: 14px !important;
    width: max-content !important;
    max-width: calc(100vw - 28px) !important;
  }
  html body.app-modern-shell.nav-fit-critical .brand-name {
    font-size: 13px !important;
  }
}

/* ---------- Settings window theme ---------- */
.page-settings-modal-card {
  --settings-accent: #1769e8;
  --settings-accent-strong: #0d56c8;
  --settings-soft: #eef5ff;
  --settings-border: #c9dcfa;
  --settings-ring: rgba(23,105,232,.14);
}
.page-settings-modal-card[data-settings-theme="wildberries"] {
  --settings-accent: #8d28bd;
  --settings-accent-strong: #6f1f98;
  --settings-soft: #f7edfb;
  --settings-border: #ddc4e9;
  --settings-ring: rgba(141,40,189,.14);
}
.page-settings-modal-card[data-settings-theme="yandex"] {
  --settings-accent: #c79200;
  --settings-accent-strong: #8b6500;
  --settings-soft: #fff7d7;
  --settings-border: #ead36c;
  --settings-ring: rgba(199,146,0,.14);
}
.page-settings-modal-card[data-settings-theme="ozon"] {
  --settings-accent: #1769e8;
  --settings-accent-strong: #0d56c8;
  --settings-soft: #eef5ff;
  --settings-border: #c9dcfa;
  --settings-ring: rgba(23,105,232,.14);
}
.page-settings-modal-card[data-settings-theme] {
  --wm-titlebar-bg: var(--settings-soft) !important;
  --wm-titlebar-text: var(--settings-accent-strong) !important;
  --wm-border: var(--settings-border) !important;
  --wm-border-strong: var(--settings-border) !important;
  --wm-focus: var(--settings-ring) !important;
  --pricing-accent: var(--settings-accent) !important;
  border-color: var(--settings-border) !important;
}
.page-settings-modal-card[data-settings-theme] > .app-window-titlebar {
  background: var(--settings-soft) !important;
  color: var(--settings-accent-strong) !important;
  border-bottom-color: var(--settings-border) !important;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease !important;
}
.page-settings-modal-card[data-settings-theme] .settings-tab.is-active {
  color: var(--settings-accent-strong) !important;
}
.page-settings-modal-card[data-settings-theme] .settings-tab.is-active::after,
.page-settings-modal-card[data-settings-theme] .settings-switch-row input:checked + i {
  background: var(--settings-accent) !important;
}
@media (min-width: 1121px) {
  html body.app-modern-shell .main-nav,
  html body.app-modern-shell.products-modern-body .main-nav {
    overflow: visible !important;
  }
  html body.app-modern-shell.nav-fit-critical .app-header,
  html body.app-modern-shell.products-modern-body.nav-fit-critical .app-header {
    grid-template-columns: 145px minmax(0, 1fr) !important;
    gap: 6px !important;
  }
  html body.app-modern-shell.nav-fit-critical .main-nav__link,
  html body.app-modern-shell.nav-fit-critical .main-nav-menu > .main-nav__link {
    padding-inline: 1px !important;
    gap: 1px !important;
    font-size: 8.9px !important;
    letter-spacing: -.02em !important;
  }
}


/* ui-v710.css */
/* V710 · final fixes for select portals, active-nav marker and settings colours. */

/* Searchable selects are rendered in a viewport portal while open.  This keeps
   menus inside the visible screen and independent from draggable window
   transforms/overflow. Geometry is written by ui-enhancements.js. */
body > .app-searchable-select__menu.is-portaled {
  position: fixed !important;
  inset: auto !important;
  z-index: 10050 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  transform: none !important;
  overflow: hidden !important;
}
body > .app-searchable-select__menu.is-portaled .app-searchable-select__list {
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
}

/* V707 used a more specific selector than the later cleanup layers, which is
   why its black active dot survived.  Match that exact specificity (and more)
   and remove every pseudo marker. */
@media (min-width: 1121px) {
  html body.app-modern-shell .main-nav .main-nav__link::before,
  html body.app-modern-shell .main-nav .main-nav__link::after,
  html body.app-modern-shell .main-nav .main-nav__link.active::before,
  html body.app-modern-shell .main-nav .main-nav__link.active::after,
  html body.app-modern-shell .main-nav .main-nav-menu > .main-nav__link::before,
  html body.app-modern-shell .main-nav .main-nav-menu > .main-nav__link::after,
  html body.app-modern-shell .main-nav .main-nav-menu.active > .main-nav__link::before,
  html body.app-modern-shell .main-nav .main-nav-menu.active > .main-nav__link::after,
  html body.app-modern-shell.products-modern-body .main-nav .main-nav__link.active::before,
  html body.app-modern-shell.products-modern-body .main-nav .main-nav__link.active::after,
  html body.app-modern-shell.products-modern-body .main-nav .main-nav-menu.active > .main-nav__link::before,
  html body.app-modern-shell.products-modern-body .main-nav .main-nav-menu.active > .main-nav__link::after {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    animation: none !important;
  }
  html body.app-modern-shell .main-nav .main-nav__link.active,
  html body.app-modern-shell .main-nav .main-nav-menu.active > .main-nav__link,
  html body.app-modern-shell.products-modern-body .main-nav .main-nav__link.active,
  html body.app-modern-shell.products-modern-body .main-nav .main-nav-menu.active > .main-nav__link {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #111318 !important;
    font-weight: 820 !important;
  }
}

/* Pricing settings window: use the card's own marketplace identity.  These
   selectors intentionally outrank the generic body[data-marketplace-theme]
   window skin. */
html body.app-modern-shell #page-settings-modal-card.page-settings-modal-card[data-settings-theme] {
  border-color: var(--settings-border) !important;
  --wm-titlebar-bg: var(--settings-soft) !important;
  --wm-titlebar-text: var(--settings-accent-strong) !important;
  --wm-border: var(--settings-border) !important;
  --wm-border-strong: var(--settings-border) !important;
  --pricing-accent: var(--settings-accent) !important;
}
html body.app-modern-shell #page-settings-modal-card.page-settings-modal-card[data-settings-theme] > .app-window-titlebar {
  background: var(--settings-soft) !important;
  color: var(--settings-accent-strong) !important;
  border-bottom-color: var(--settings-border) !important;
  box-shadow: none !important;
}
html body.app-modern-shell #page-settings-modal-card.page-settings-modal-card[data-settings-theme="ozon"] {
  --settings-accent:#1769e8; --settings-accent-strong:#0d56c8; --settings-soft:#eef5ff; --settings-border:#c9dcfa;
}
html body.app-modern-shell #page-settings-modal-card.page-settings-modal-card[data-settings-theme="wildberries"] {
  --settings-accent:#8d28bd; --settings-accent-strong:#6f1f98; --settings-soft:#f7edfb; --settings-border:#ddc4e9;
}
html body.app-modern-shell #page-settings-modal-card.page-settings-modal-card[data-settings-theme="yandex"] {
  --settings-accent:#b88700; --settings-accent-strong:#755900; --settings-soft:#fff7d7; --settings-border:#ead36c;
}

/* Acquiring freshness is visible next to the table controls. */
.table-meta-chip--acquiring {
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:0 11px;
  border:1px solid #d8e1ee;
  border-radius:999px;
  background:#f8fafc;
  color:#5c6775;
  font-size:11px;
  font-weight:720;
  white-space:nowrap;
}


/* ui-v711.css */
/* V711 · native single-value selects and Excel export stability release. */

/* Generic single selects are now real browser controls.  The browser owns the
   popup geometry, which removes every modal/zoom/transform anchoring issue. */
html body.app-modern-shell select.app-native-single-select:not([multiple]) {
  display: block !important;
  position: static !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 46px !important;
  height: auto !important;
  padding: 10px 38px 10px 14px !important;
  border: 1px solid #cfd8e5 !important;
  border-radius: 14px !important;
  background-color: #fff !important;
  background-image: none !important;
  color: #202733 !important;
  font: inherit !important;
  font-weight: 650 !important;
  line-height: 1.25 !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  clip: auto !important;
  clip-path: none !important;
  appearance: auto !important;
  -webkit-appearance: menulist !important;
  transform: none !important;
  box-sizing: border-box !important;
}
html body.app-modern-shell select.app-native-single-select:not([multiple]):focus {
  outline: 2px solid color-mix(in srgb, var(--pricing-accent, #1769e8) 28%, transparent) !important;
  outline-offset: 1px !important;
  border-color: var(--pricing-accent, #1769e8) !important;
  box-shadow: none !important;
}
html body.app-modern-shell select.app-native-single-select:not([multiple]):disabled {
  cursor: not-allowed !important;
  opacity: .58 !important;
}

/* If PJAX leaves a stale V710 wrapper for a frame, never show two controls. */
select.app-native-single-select + .app-searchable-select {
  display: none !important;
}

html[data-app-theme="dark"] body.app-modern-shell select.app-native-single-select:not([multiple]) {
  background-color: #171b21 !important;
  border-color: #39424d !important;
  color: #e8edf3 !important;
}


/* ui-v712.css */
/* V712 — final compact Ozon FBS controls. */
#page-settings-modal .settings-ozon-logistics-grid{
  grid-template-columns:minmax(190px,.9fr) minmax(170px,.78fr) minmax(170px,.78fr)!important;
  gap:10px!important;
  align-items:start!important;
}
#page-settings-modal .settings-ozon-logistics-grid>.settings-field-grid,
#page-settings-modal .settings-ozon-logistics-grid>.settings-field-grid>label{
  min-height:0!important;height:auto!important;align-self:start!important;
}
#page-settings-modal .settings-ozon-logistics-grid>.settings-field-grid>label{
  padding:10px 12px!important;border-radius:14px!important;gap:6px!important;
}
#page-settings-modal .settings-ozon-logistics-grid select,
#page-settings-modal .settings-ozon-logistics-grid select.app-native-single-select{
  min-height:36px!important;height:36px!important;padding-block:4px!important;font-size:12px!important;border-radius:10px!important;
}
#page-settings-modal .settings-ozon-logistics-grid small{font-size:10px!important;line-height:1.35!important;}
#page-settings-modal .settings-field-grid--fbs>label{min-height:0!important;padding:11px 12px!important;border-radius:14px!important;}
#page-settings-modal .settings-field-grid--fbs select,
#page-settings-modal .settings-field-grid--fbs input[type="number"]{min-height:38px!important;height:38px!important;font-size:12px!important;}
#page-settings-modal .settings-switch-row--compact{min-height:68px!important;padding:10px 12px!important;}
#page-settings-modal .is-setting-disabled{opacity:.52;}
#page-settings-modal .is-setting-disabled input,
#page-settings-modal .is-setting-disabled select{cursor:not-allowed!important;}
@media(max-width:900px){
  #page-settings-modal .settings-ozon-logistics-grid{grid-template-columns:1fr!important;}
}


/* ui-v715.css */
/* V715 · Apple-inspired top navigation and Yandex Market naming pass. */

/* Desktop global navigation: compact translucent bar, typography-first, no item icons. */
@media (min-width: 1121px) {
  html body.app-modern-shell {
    --gm-top-navigation-height: 44px !important;
  }

  html body.app-modern-shell .app-header,
  html body.app-modern-shell.products-modern-body .app-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1300 !important;
    height: 44px !important;
    min-height: 44px !important;
    grid-template-columns: clamp(150px, 10vw, 190px) minmax(0, 1fr) !important;
    grid-template-rows: 44px !important;
    align-items: center !important;
    gap: clamp(8px, 1vw, 18px) !important;
    padding: 0 var(--gm-actions-reserve, 360px) 0 clamp(14px, 1.5vw, 28px) !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, .055) !important;
    background: rgba(250, 250, 252, .82) !important;
    -webkit-backdrop-filter: saturate(180%) blur(20px) !important;
    backdrop-filter: saturate(180%) blur(20px) !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  html body.app-modern-shell .brand,
  html body.app-modern-shell.products-modern-body .brand {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    background: transparent !important;
  }

  html body.app-modern-shell .brand-name,
  html body.app-modern-shell.products-modern-body .brand-name {
    color: rgba(0, 0, 0, .88) !important;
    font-size: clamp(13px, .84vw, 15px) !important;
    font-weight: 650 !important;
    line-height: 1 !important;
    letter-spacing: -.028em !important;
  }

  html body.app-modern-shell .main-nav,
  html body.app-modern-shell.products-modern-body .main-nav {
    position: static !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: clamp(0px, calc(3px * var(--gm-nav-fit, 1)), 3px) !important;
    overflow: visible !important;
    scrollbar-width: none !important;
  }
  html body.app-modern-shell .main-nav::-webkit-scrollbar { display: none !important; }

  html body.app-modern-shell .main-nav-menu,
  html body.app-modern-shell.products-modern-body .main-nav-menu {
    position: relative !important;
    width: auto !important;
    min-width: 0 !important;
    flex: 0 1 auto !important;
    overflow: visible !important;
  }

  html body.app-modern-shell .main-nav__link,
  html body.app-modern-shell .main-nav-menu > .main-nav__link,
  html body.app-modern-shell.products-modern-body .main-nav__link,
  html body.app-modern-shell.products-modern-body .main-nav-menu > .main-nav__link {
    position: relative !important;
    width: auto !important;
    min-width: 0 !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 clamp(2px, calc(7px * var(--gm-nav-fit, 1)), 7px) !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: rgba(0, 0, 0, .68) !important;
    box-shadow: none !important;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif !important;
    font-size: clamp(9.6px, calc(9.4px + 2.3px * var(--gm-nav-fit, 1)), 11.7px) !important;
    font-weight: 430 !important;
    line-height: 1 !important;
    letter-spacing: -.012em !important;
    white-space: nowrap !important;
    text-align: center !important;
    transform: none !important;
    transition: color .18s ease, opacity .18s ease !important;
  }

  html body.app-modern-shell .main-nav__link > span,
  html body.app-modern-shell .main-nav-menu > .main-nav__link > span {
    display: block !important;
    flex: 0 0 auto !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
  }

  /* Navigation is intentionally text-only, like Apple's primary product nav. */
  html body.app-modern-shell .main-nav .app-icon,
  html body.app-modern-shell .main-nav .modern-nav-icon,
  html body.app-modern-shell .main-nav .app-dropdown-chevron {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
  }

  html body.app-modern-shell .main-nav__link:hover,
  html body.app-modern-shell .main-nav-menu > .main-nav__link:hover {
    color: rgba(0, 0, 0, .92) !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
  }

  html body.app-modern-shell .main-nav__link.active,
  html body.app-modern-shell .main-nav-menu.active > .main-nav__link,
  html body.app-modern-shell .main-nav-menu > .main-nav__link.active,
  html body.app-modern-shell.products-modern-body .main-nav__link.active,
  html body.app-modern-shell.products-modern-body .main-nav-menu.active > .main-nav__link {
    color: #000 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    font-weight: 620 !important;
  }

  html body.app-modern-shell .main-nav__link::before,
  html body.app-modern-shell .main-nav__link::after,
  html body.app-modern-shell .main-nav-menu > .main-nav__link::before,
  html body.app-modern-shell .main-nav-menu > .main-nav__link::after,
  html body.app-modern-shell .main-nav__link.active::before,
  html body.app-modern-shell .main-nav__link.active::after,
  html body.app-modern-shell .main-nav-menu.active > .main-nav__link::before,
  html body.app-modern-shell .main-nav-menu.active > .main-nav__link::after {
    content: none !important;
    display: none !important;
  }

  /* Right-side utilities live in the same 44px top bar. */
  html body.app-modern-shell .workspace-utility-bar,
  html body.app-modern-shell.sidebar-collapsed .workspace-utility-bar {
    position: absolute !important;
    top: 0 !important;
    right: clamp(10px, 1.1vw, 20px) !important;
    left: auto !important;
    z-index: 1320 !important;
    width: max-content !important;
    max-width: min(42vw, 560px) !important;
    height: 44px !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 7px !important;
    border: 0 !important;
    background: transparent !important;
    overflow: visible !important;
  }

  html body.app-modern-shell .workspace-utility-bar .workspace-section-search { order: 1 !important; }
  html body.app-modern-shell .workspace-utility-bar .header-actions,
  html body.app-modern-shell.products-modern-body .workspace-utility-bar .header-actions {
    order: 2 !important;
    min-height: 36px !important;
    height: 36px !important;
    margin: 0 !important;
    gap: 7px !important;
    align-items: center !important;
  }

  html body.app-modern-shell .workspace-section-search {
    min-width: 36px !important;
    width: 36px !important;
  }
  html body.app-modern-shell .workspace-section-search__toggle {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    border-color: rgba(0,0,0,.09) !important;
    background: rgba(255,255,255,.70) !important;
    color: rgba(0,0,0,.68) !important;
    box-shadow: none !important;
  }
  html body.app-modern-shell .workspace-section-search__toggle:hover,
  html body.app-modern-shell .workspace-section-search__toggle[aria-expanded="true"] {
    background: rgba(232,232,237,.78) !important;
    color: #000 !important;
  }

  html body.app-modern-shell .header-store-picker > summary,
  html body.app-modern-shell .header-profile-button,
  html body.app-modern-shell .header-auth-button {
    min-height: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    border-color: rgba(0,0,0,.09) !important;
    background: rgba(255,255,255,.70) !important;
    box-shadow: none !important;
  }

  /* Apple-like compact floating submenu, preserving the existing click behaviour. */
  html body.app-modern-shell .main-nav-submenu,
  html body.app-modern-shell.products-modern-body .main-nav-submenu {
    top: calc(100% + 6px) !important;
    padding: 10px !important;
    border: 1px solid rgba(0,0,0,.08) !important;
    border-radius: 16px !important;
    background: rgba(255,255,255,.96) !important;
    -webkit-backdrop-filter: saturate(180%) blur(22px) !important;
    backdrop-filter: saturate(180%) blur(22px) !important;
    box-shadow: 0 18px 50px rgba(0,0,0,.12) !important;
  }
  html body.app-modern-shell .main-nav-submenu > a,
  html body.app-modern-shell.products-modern-body .main-nav-submenu > a {
    border-radius: 10px !important;
    color: #1d1d1f !important;
  }
  html body.app-modern-shell .main-nav-submenu > a:hover,
  html body.app-modern-shell .main-nav-submenu > a.active {
    background: #f5f5f7 !important;
    color: #000 !important;
  }
}

/* Dark mode keeps the same Apple-like glass hierarchy. */
@media (min-width: 1121px) {
  html[data-app-theme="dark"] body.app-modern-shell .app-header,
  html[data-app-theme="dark"] body.app-modern-shell.products-modern-body .app-header {
    border-bottom-color: rgba(255,255,255,.075) !important;
    background: rgba(29,29,31,.84) !important;
  }
  html[data-app-theme="dark"] body.app-modern-shell .brand-name,
  html[data-app-theme="dark"] body.app-modern-shell.products-modern-body .brand-name {
    color: rgba(255,255,255,.92) !important;
  }
  html[data-app-theme="dark"] body.app-modern-shell .main-nav__link,
  html[data-app-theme="dark"] body.app-modern-shell .main-nav-menu > .main-nav__link {
    color: rgba(255,255,255,.68) !important;
  }
  html[data-app-theme="dark"] body.app-modern-shell .main-nav__link:hover,
  html[data-app-theme="dark"] body.app-modern-shell .main-nav-menu > .main-nav__link:hover,
  html[data-app-theme="dark"] body.app-modern-shell .main-nav__link.active,
  html[data-app-theme="dark"] body.app-modern-shell .main-nav-menu.active > .main-nav__link {
    color: #fff !important;
  }
  html[data-app-theme="dark"] body.app-modern-shell .workspace-section-search__toggle,
  html[data-app-theme="dark"] body.app-modern-shell .header-store-picker > summary,
  html[data-app-theme="dark"] body.app-modern-shell .header-profile-button,
  html[data-app-theme="dark"] body.app-modern-shell .header-auth-button {
    border-color: rgba(255,255,255,.10) !important;
    background: rgba(44,44,46,.82) !important;
    color: rgba(255,255,255,.82) !important;
  }
  html[data-app-theme="dark"] body.app-modern-shell .main-nav-submenu,
  html[data-app-theme="dark"] body.app-modern-shell.products-modern-body .main-nav-submenu {
    border-color: rgba(255,255,255,.09) !important;
    background: rgba(29,29,31,.96) !important;
  }
  html[data-app-theme="dark"] body.app-modern-shell .main-nav-submenu > a,
  html[data-app-theme="dark"] body.app-modern-shell.products-modern-body .main-nav-submenu > a {
    color: #f5f5f7 !important;
  }
  html[data-app-theme="dark"] body.app-modern-shell .main-nav-submenu > a:hover,
  html[data-app-theme="dark"] body.app-modern-shell .main-nav-submenu > a.active {
    background: #2c2c2e !important;
    color: #fff !important;
  }
}


/* ui-v718.css */
/* V718 · slightly larger Apple-style top navigation typography. */
@media (min-width: 1121px) {
  html body.app-modern-shell .main-nav__link,
  html body.app-modern-shell .main-nav-menu > .main-nav__link,
  html body.app-modern-shell.products-modern-body .main-nav__link,
  html body.app-modern-shell.products-modern-body .main-nav-menu > .main-nav__link {
    font-size: clamp(13.8px, calc(13.3px + 4px * var(--gm-nav-fit, 1)), 16.8px) !important;
  }
}


/* ui-v726.css */
/* V726 · final verified dashboard/analytics hero and dashboard switcher fixes. */

/* The generated hero assets are already 3840x508 and include their own seamless
   neutral background. Show the full asset across the card instead of placing a
   narrower image over a second background, which caused the visible vertical seam. */
body.dashboard-unified-body .dashboard-hero-banner,
body.analytics-page-body .analytics-hub__hero-banner {
    position: relative !important;
    isolation: isolate !important;
    display: flex !important;
    align-items: stretch !important;
    height: 188px !important;
    min-height: 188px !important;
    overflow: hidden !important;
    border: 1px solid #e2e7ed !important;
    border-radius: 24px !important;
    background: #eff0f3 !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .04) !important;
}
body.dashboard-unified-body .dashboard-hero-banner { margin: 0 0 14px !important; }
body.analytics-page-body .analytics-hub__hero-banner { margin: 2px 0 14px !important; }
body.dashboard-unified-body .dashboard-hero-banner::before,
body.analytics-page-body .analytics-hub__hero-banner::before {
    display: none !important;
    content: none !important;
}
body.dashboard-unified-body .dashboard-hero-banner > img,
body.analytics-page-body .analytics-hub__hero-banner > img {
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    transform: none !important;
    object-fit: cover !important;
    object-position: right center !important;
    border: 0 !important;
    border-radius: inherit !important;
    background: transparent !important;
    box-shadow: none !important;
}
body.dashboard-unified-body .dashboard-hero-banner__content,
body.analytics-page-body .analytics-hub__hero-content {
    position: relative !important;
    z-index: 2 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 9px !important;
    width: min(54%, 760px) !important;
    max-width: min(54%, 760px) !important;
    padding: 0 34px !important;
}
body.dashboard-unified-body .dashboard-hero-banner__content h1,
body.analytics-page-body .analytics-hub__hero-content h1 {
    margin: 0 !important;
    color: #061a3d !important;
    font-size: clamp(42px, 4.15vw, 66px) !important;
    line-height: .94 !important;
    letter-spacing: -.052em !important;
    font-weight: 850 !important;
}
body.dashboard-unified-body .dashboard-hero-banner__content p,
body.analytics-page-body .analytics-hub__hero-content p {
    margin: 0 !important;
    max-width: 610px !important;
    color: #4d5d72 !important;
    font-size: clamp(14px, 1.18vw, 17px) !important;
    line-height: 1.45 !important;
    font-weight: 650 !important;
}

/* The Best Products marketplace control is a local dashboard filter, not a
   global marketplace page switcher. Keep it independent so the animated global
   indicator cannot overlap Wildberries/Yandex labels. */
body.dashboard-unified-body .dashboard-panel--top .dashboard-panel__head--wrap {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: start !important;
    gap: 18px !important;
}
body.dashboard-unified-body .dashboard-panel--top .dashboard-panel__head--wrap > div:first-child {
    box-sizing: border-box !important;
    min-width: 0 !important;
    width: 100% !important;
    display: grid !important;
    gap: 10px !important;
}
body.dashboard-unified-body .dashboard-panel--top .dashboard-marketplace-tabs {
    box-sizing: border-box !important;
    position: static !important;
    isolation: auto !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)) !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    width: min(100%, 760px) !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 4px !important;
    gap: 4px !important;
    overflow: visible !important;
    border: 1px solid #e1e6ec !important;
    border-radius: 14px !important;
    background: #f4f6f8 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
body.dashboard-unified-body .dashboard-panel--top .dashboard-marketplace-tabs > .app-marketplace-switcher__indicator {
    display: none !important;
}
body.dashboard-unified-body .dashboard-panel--top .dashboard-marketplace-tabs > .dashboard-marketplace-tab {
    box-sizing: border-box !important;
    position: relative !important;
    display: flex !important;
    flex: none !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 38px !important;
    height: 38px !important;
    margin: 0 !important;
    padding: 0 11px !important;
    gap: 0 !important;
    overflow: hidden !important;
    border: 1px solid transparent !important;
    border-radius: 10px !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #3f4b5a !important;
    font-family: inherit !important;
    font-size: 12px !important;
    font-weight: 850 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    cursor: pointer !important;
}
body.dashboard-unified-body .dashboard-panel--top .dashboard-marketplace-tabs > .dashboard-marketplace-tab::before,
body.dashboard-unified-body .dashboard-panel--top .dashboard-marketplace-tabs > .dashboard-marketplace-tab::after {
    display: none !important;
    content: none !important;
}
body.dashboard-unified-body .dashboard-panel--top .dashboard-marketplace-tabs > .dashboard-marketplace-tab.active {
    background: #fff !important;
    border-color: #dfe4ea !important;
    color: #26313d !important;
    box-shadow: 0 2px 7px rgba(15, 23, 42, .06) !important;
}
body.dashboard-unified-body .dashboard-panel--top .dashboard-marketplace-tabs > .dashboard-marketplace-tab--ozon.active {
    color: #005bff !important;
    background: #f3f7ff !important;
    border-color: #c8dcff !important;
}
body.dashboard-unified-body .dashboard-panel--top .dashboard-marketplace-tabs > .dashboard-marketplace-tab--wb.active {
    color: #9915c8 !important;
    background: #fbf3ff !important;
    border-color: #e7c9f1 !important;
}
body.dashboard-unified-body .dashboard-panel--top .dashboard-marketplace-tabs > .dashboard-marketplace-tab--yandex.active {
    color: #6b5900 !important;
    background: #fffbe7 !important;
    border-color: #ebdda0 !important;
}
body.dashboard-unified-body .dashboard-panel--top .dashboard-marketplace-tabs > .dashboard-marketplace-tab--offline.active {
    color: #3e4b58 !important;
    background: #f2f4f6 !important;
    border-color: #d7dde3 !important;
}
body.dashboard-unified-body .dashboard-panel--top .dashboard-tabs--small {
    display: flex !important;
    flex-wrap: wrap !important;
    width: max-content !important;
    max-width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 3px !important;
    gap: 3px !important;
    overflow: visible !important;
    border: 1px solid #e1e6ec !important;
    border-radius: 11px !important;
    background: #f5f7fa !important;
    box-shadow: none !important;
}
body.dashboard-unified-body .dashboard-panel--top .dashboard-tabs--small > .dashboard-tab {
    flex: 0 0 auto !important;
    min-height: 34px !important;
    padding: 7px 14px !important;
    white-space: nowrap !important;
}

@media (max-width: 900px) {
    body.dashboard-unified-body .dashboard-hero-banner,
    body.analytics-page-body .analytics-hub__hero-banner {
        height: 172px !important;
        min-height: 172px !important;
        border-radius: 22px !important;
    }
    body.dashboard-unified-body .dashboard-hero-banner__content,
    body.analytics-page-body .analytics-hub__hero-content {
        width: 65% !important;
        max-width: 65% !important;
        padding: 0 24px !important;
    }
    body.dashboard-unified-body .dashboard-panel--top .dashboard-panel__head--wrap {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    body.dashboard-unified-body .dashboard-panel--top .period-select-wrap {
        justify-self: start !important;
    }
    body.dashboard-unified-body .dashboard-panel--top .dashboard-marketplace-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        width: 100% !important;
    }
}

html[data-app-theme="dark"] body.dashboard-unified-body .dashboard-hero-banner,
html[data-app-theme="dark"] body.analytics-page-body .analytics-hub__hero-banner {
    background: #1a1f26 !important;
    border-color: #303944 !important;
}
html[data-app-theme="dark"] body.dashboard-unified-body .dashboard-hero-banner__content h1,
html[data-app-theme="dark"] body.analytics-page-body .analytics-hub__hero-content h1 { color: #f4f7fa !important; }
html[data-app-theme="dark"] body.dashboard-unified-body .dashboard-hero-banner__content p,
html[data-app-theme="dark"] body.analytics-page-body .analytics-hub__hero-content p { color: #d2dae3 !important; }


/* ui-v730.css */
/* V730 · neutral hero scaling for offline and marketplace orders */

/* Offline orders: use a true full-width 3840×508 background image instead of a narrow right-side image box. */
body.offline-orders-page .offline-orders-hero{
    height:210px !important;
    overflow:hidden !important;
    border:1px solid #e3e8ef !important;
    border-radius:26px !important;
    background:#f5f7fa !important;
    box-shadow:0 10px 28px rgba(15,23,42,.04) !important;
}
body.offline-orders-page .offline-orders-hero::before{
    z-index:1 !important;
    background:linear-gradient(90deg,rgba(246,248,250,.97) 0%,rgba(246,248,250,.93) 30%,rgba(246,248,250,.74) 46%,rgba(246,248,250,.16) 64%,rgba(246,248,250,0) 76%) !important;
}
body.offline-orders-page .offline-orders-hero__art{
    display:block !important;
    position:absolute !important;
    inset:0 !important;
    width:100% !important;
    height:100% !important;
    max-width:none !important;
    transform:none !important;
    object-fit:cover !important;
    object-position:center !important;
    opacity:1 !important;
}
body.offline-orders-page .offline-orders-hero__content{
    width:min(58%,760px) !important;
    max-width:min(58%,760px) !important;
    padding:0 38px !important;
}

/* Marketplace orders: same neutral panel language as offline, analytics and dashboard. */
body.orders-modern-body .orders-marketplace-hero{
    position:relative !important;
    display:flex !important;
    align-items:stretch !important;
    min-height:0 !important;
    height:210px !important;
    max-width:1580px !important;
    margin:0 auto 16px !important;
    padding:0 !important;
    overflow:hidden !important;
    border:1px solid #e3e8ef !important;
    border-radius:26px !important;
    background:#f5f7fa !important;
    box-shadow:0 10px 28px rgba(15,23,42,.04) !important;
    isolation:isolate;
}
body.orders-modern-body .orders-marketplace-hero::before{
    content:"";
    position:absolute;
    inset:0;
    z-index:1;
    background:linear-gradient(90deg,rgba(246,248,250,.97) 0%,rgba(246,248,250,.93) 30%,rgba(246,248,250,.74) 46%,rgba(246,248,250,.16) 64%,rgba(246,248,250,0) 76%);
    pointer-events:none;
}
body.orders-modern-body .orders-marketplace-hero__art{
    position:absolute;
    inset:0;
    z-index:0;
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
}
body.orders-modern-body .orders-marketplace-hero__content{
    position:relative;
    z-index:2;
    display:flex;
    flex-direction:column;
    justify-content:center;
    width:min(58%,760px);
    max-width:min(58%,760px);
    padding:0 38px;
}
body.orders-modern-body .orders-marketplace-hero .eyebrow{
    display:block !important;
    margin:0 0 8px !important;
    color:#687483 !important;
    font-size:10px !important;
    line-height:1.2 !important;
    font-weight:850 !important;
    letter-spacing:.06em !important;
}
body.orders-modern-body .orders-marketplace-hero h1{
    margin:0 !important;
    color:#071a38 !important;
    font-size:clamp(40px,4.15vw,64px) !important;
    line-height:.95 !important;
    letter-spacing:-.05em !important;
    font-weight:850 !important;
}
body.orders-modern-body .orders-marketplace-hero p{
    max-width:620px !important;
    margin:8px 0 0 !important;
    color:#536276 !important;
    font-size:clamp(14px,1.15vw,17px) !important;
    line-height:1.45 !important;
    font-weight:600 !important;
}
body.orders-modern-body .orders-marketplace-hero .heading-actions{
    position:relative;
    z-index:3;
    display:flex;
    align-items:flex-start;
    margin-left:auto;
    padding:18px 20px 0 0;
}
body.orders-modern-body .orders-marketplace-hero .orders-region-switch{
    background:rgba(255,255,255,.88) !important;
    backdrop-filter:none !important;
}

@media (max-width:1100px){
    body.offline-orders-page .offline-orders-hero,
    body.orders-modern-body .orders-marketplace-hero{height:194px !important;border-radius:24px !important}
    body.offline-orders-page .offline-orders-hero__content,
    body.orders-modern-body .orders-marketplace-hero__content{width:64% !important;max-width:64% !important;padding:0 28px !important}
    body.orders-modern-body .orders-marketplace-hero h1{font-size:clamp(36px,5vw,52px) !important}
    body.orders-modern-body .orders-marketplace-hero p{font-size:14px !important}
}
@media (max-width:720px){
    body.offline-orders-page .offline-orders-hero,
    body.orders-modern-body .orders-marketplace-hero{height:168px !important;border-radius:21px !important}
    body.offline-orders-page .offline-orders-hero::before,
    body.orders-modern-body .orders-marketplace-hero::before{background:linear-gradient(90deg,rgba(246,248,250,.98) 0%,rgba(246,248,250,.94) 48%,rgba(246,248,250,.54) 70%,rgba(246,248,250,.08) 100%) !important}
    body.offline-orders-page .offline-orders-hero__content,
    body.orders-modern-body .orders-marketplace-hero__content{width:76% !important;max-width:76% !important;padding:0 20px !important}
    body.orders-modern-body .orders-marketplace-hero .eyebrow{font-size:8px !important;margin-bottom:6px !important}
    body.orders-modern-body .orders-marketplace-hero h1{font-size:clamp(29px,8vw,40px) !important}
    body.orders-modern-body .orders-marketplace-hero p{max-width:330px !important;font-size:12px !important;line-height:1.38 !important}
    body.orders-modern-body .orders-marketplace-hero .heading-actions{padding:10px 10px 0 0}
    body.orders-modern-body .orders-marketplace-hero .orders-region-switch a{min-height:31px !important;padding:6px 9px !important;font-size:9px !important}
}

html[data-app-theme="dark"] body.offline-orders-page .offline-orders-hero,
html[data-app-theme="dark"] body.orders-modern-body .orders-marketplace-hero{
    border-color:#2c3641 !important;
    background:#171c22 !important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-orders-hero::before,
html[data-app-theme="dark"] body.orders-modern-body .orders-marketplace-hero::before{
    background:linear-gradient(90deg,rgba(22,27,33,.96) 0%,rgba(22,27,33,.90) 30%,rgba(22,27,33,.65) 46%,rgba(22,27,33,.14) 64%,rgba(22,27,33,0) 76%) !important;
}
html[data-app-theme="dark"] body.orders-modern-body .orders-marketplace-hero h1{color:#f4f7fa !important}
html[data-app-theme="dark"] body.orders-modern-body .orders-marketplace-hero p{color:#c6d0da !important}
html[data-app-theme="dark"] body.orders-modern-body .orders-marketplace-hero .eyebrow{color:#9ba8b5 !important}


/* ui-v731.css */
/* V731 · unified gray hero backgrounds for offline and marketplace orders */

body.offline-orders-page .offline-orders-hero,
body.orders-modern-body .orders-marketplace-hero{
    position:relative !important;
    display:flex !important;
    align-items:stretch !important;
    min-height:0 !important;
    height:208px !important;
    max-width:none !important;
    margin:0 0 14px !important;
    padding:0 !important;
    overflow:hidden !important;
    border:1px solid #e4e9f0 !important;
    border-radius:26px !important;
    background:linear-gradient(180deg,#f5f7fa 0%,#f2f5f9 100%) !important;
    box-shadow:0 10px 28px rgba(15,23,42,.04) !important;
    isolation:isolate !important;
}

body.offline-orders-page .offline-orders-hero::before,
body.orders-modern-body .orders-marketplace-hero::before{
    content:"" !important;
    position:absolute !important;
    inset:0 !important;
    z-index:1 !important;
    background:linear-gradient(90deg,rgba(245,247,250,.96) 0%,rgba(245,247,250,.93) 30%,rgba(245,247,250,.80) 46%,rgba(245,247,250,.28) 63%,rgba(245,247,250,0) 76%) !important;
    pointer-events:none !important;
}

body.offline-orders-page .offline-orders-hero__art,
body.orders-modern-body .orders-marketplace-hero__art{
    position:absolute !important;
    top:50% !important;
    right:18px !important;
    left:auto !important;
    bottom:auto !important;
    z-index:0 !important;
    display:block !important;
    width:auto !important;
    height:88% !important;
    max-width:min(34%, 520px) !important;
    transform:translateY(-50%) !important;
    object-fit:contain !important;
    object-position:right center !important;
    opacity:1 !important;
    background:transparent !important;
}

body.offline-orders-page .offline-orders-hero__content,
body.orders-modern-body .orders-marketplace-hero__content{
    position:relative !important;
    z-index:2 !important;
    display:flex !important;
    flex-direction:column !important;
    justify-content:center !important;
    width:min(60%, 820px) !important;
    max-width:min(60%, 820px) !important;
    padding:0 40px !important;
}

body.orders-modern-body .orders-marketplace-hero .heading-actions{display:none !important}

body.orders-modern-body .orders-marketplace-hero-controls{
    display:flex;
    justify-content:flex-end;
    margin:-2px 0 16px;
}

body.orders-modern-body .orders-marketplace-hero-controls .orders-region-switch{
    display:inline-flex;
    align-items:center;
    gap:0;
    padding:4px;
    border:1px solid #dde4eb;
    border-radius:16px;
    background:#ffffff;
    box-shadow:0 6px 18px rgba(15,23,42,.04);
}

body.orders-modern-body .orders-marketplace-hero-controls .orders-region-switch a{
    min-width:95px;
    min-height:40px;
    padding:0 18px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:12px;
    color:#6b7788;
    font-size:14px;
    line-height:1;
    font-weight:800;
    letter-spacing:.02em;
    text-decoration:none;
}

body.orders-modern-body .orders-marketplace-hero-controls .orders-region-switch a.active{
    background:#eef2f6;
    color:#162338;
}

@media (max-width:1100px){
    body.offline-orders-page .offline-orders-hero,
    body.orders-modern-body .orders-marketplace-hero{height:192px !important;border-radius:24px !important}
    body.offline-orders-page .offline-orders-hero__art,
    body.orders-modern-body .orders-marketplace-hero__art{right:14px !important;height:84% !important;max-width:min(36%, 380px) !important}
    body.offline-orders-page .offline-orders-hero__content,
    body.orders-modern-body .orders-marketplace-hero__content{width:64% !important;max-width:64% !important;padding:0 30px !important}
}

@media (max-width:720px){
    body.offline-orders-page .offline-orders-hero,
    body.orders-modern-body .orders-marketplace-hero{height:170px !important;border-radius:22px !important}
    body.offline-orders-page .offline-orders-hero::before,
    body.orders-modern-body .orders-marketplace-hero::before{background:linear-gradient(90deg,rgba(245,247,250,.98) 0%,rgba(245,247,250,.95) 44%,rgba(245,247,250,.64) 66%,rgba(245,247,250,.10) 100%) !important}
    body.offline-orders-page .offline-orders-hero__art,
    body.orders-modern-body .orders-marketplace-hero__art{right:6px !important;height:76% !important;max-width:42% !important}
    body.offline-orders-page .offline-orders-hero__content,
    body.orders-modern-body .orders-marketplace-hero__content{width:78% !important;max-width:78% !important;padding:0 20px !important}
    body.orders-modern-body .orders-marketplace-hero-controls{justify-content:flex-start;margin:0 0 14px}
    body.orders-modern-body .orders-marketplace-hero-controls .orders-region-switch a{min-width:82px;min-height:36px;padding:0 14px;font-size:12px}
}

html[data-app-theme="dark"] body.offline-orders-page .offline-orders-hero,
html[data-app-theme="dark"] body.orders-modern-body .orders-marketplace-hero{
    border-color:#2c3641 !important;
    background:linear-gradient(180deg,#171c22 0%,#141920 100%) !important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-orders-hero::before,
html[data-app-theme="dark"] body.orders-modern-body .orders-marketplace-hero::before{
    background:linear-gradient(90deg,rgba(22,27,33,.96) 0%,rgba(22,27,33,.92) 30%,rgba(22,27,33,.72) 46%,rgba(22,27,33,.20) 63%,rgba(22,27,33,0) 76%) !important;
}
html[data-app-theme="dark"] body.orders-modern-body .orders-marketplace-hero-controls .orders-region-switch{
    background:#171c22;
    border-color:#2c3641;
    box-shadow:none;
}
html[data-app-theme="dark"] body.orders-modern-body .orders-marketplace-hero-controls .orders-region-switch a{
    color:#aeb8c4;
}
html[data-app-theme="dark"] body.orders-modern-body .orders-marketplace-hero-controls .orders-region-switch a.active{
    background:#252c34;
    color:#f2f6fb;
}


/* ui-v732.css */
/* V732 · Apple-like top navigation typography refinement */
@media (min-width: 1121px) {
  html body.app-modern-shell .main-nav__link,
  html body.app-modern-shell .main-nav-menu > .main-nav__link,
  html body.app-modern-shell.products-modern-body .main-nav__link,
  html body.app-modern-shell.products-modern-body .main-nav-menu > .main-nav__link {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif !important;
    font-size: clamp(13.5px, calc(13px + 3.6px * var(--gm-nav-fit, 1)), 16.2px) !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    letter-spacing: -0.01em !important;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  html body.app-modern-shell .main-nav__link > span,
  html body.app-modern-shell .main-nav-menu > .main-nav__link > span,
  html body.app-modern-shell.products-modern-body .main-nav__link > span,
  html body.app-modern-shell.products-modern-body .main-nav-menu > .main-nav__link > span {
    font-family: inherit !important;
    font-weight: inherit !important;
    letter-spacing: inherit !important;
  }
}


/* ui-v733.css */
/* V733 · unify hero illustrations for offline and marketplace orders */
body.offline-orders-page .offline-orders-hero__art,
body.orders-modern-body .orders-marketplace-hero__art{
  max-width:min(35%, 540px) !important;
}
@media (max-width:1100px){
  body.offline-orders-page .offline-orders-hero__art,
  body.orders-modern-body .orders-marketplace-hero__art{
    max-width:min(37%, 400px) !important;
  }
}


/* ui-v734.css */
/* V734 · offline orders hero uses the approved full-width background */
body.offline-orders-page .offline-orders-hero{
  height:246px !important;
  background:#f4f6f9 !important;
}

body.offline-orders-page .offline-orders-hero::before{
  content:none !important;
  display:none !important;
}

body.offline-orders-page .offline-orders-hero__art{
  inset:0 !important;
  top:0 !important;
  right:0 !important;
  left:0 !important;
  bottom:0 !important;
  width:100% !important;
  max-width:none !important;
  height:100% !important;
  transform:none !important;
  object-fit:cover !important;
  object-position:center center !important;
  opacity:1 !important;
  z-index:0 !important;
}

body.offline-orders-page .offline-orders-hero__content{
  width:min(56%, 780px) !important;
  max-width:min(56%, 780px) !important;
  padding:0 56px !important;
  z-index:2 !important;
}

body.offline-orders-page .offline-orders-hero .eyebrow,
body.offline-orders-page .offline-orders-hero h1,
body.offline-orders-page .offline-orders-hero p{
  position:relative !important;
}

@media (max-width:1100px){
  body.offline-orders-page .offline-orders-hero{height:220px !important}
  body.offline-orders-page .offline-orders-hero__content{width:60% !important;max-width:60% !important;padding:0 34px !important}
}

@media (max-width:720px){
  body.offline-orders-page .offline-orders-hero{height:188px !important}
  body.offline-orders-page .offline-orders-hero__content{width:74% !important;max-width:74% !important;padding:0 22px !important}
}

html[data-app-theme="dark"] body.offline-orders-page .offline-orders-hero{
  background:#161b21 !important;
}


/* ui-v735.css */
/* V735 · marketplace orders hero uses a full-width dynamic background; pricing gear settings stacked top-down */
body.orders-modern-body .orders-marketplace-hero{
  position:relative !important;
  display:flex !important;
  align-items:stretch !important;
  min-height:0 !important;
  height:238px !important;
  max-width:none !important;
  margin:0 0 12px !important;
  padding:0 !important;
  overflow:hidden !important;
  border:1px solid #e4e9f0 !important;
  border-radius:26px !important;
  background:#f4f6f9 !important;
  box-shadow:0 10px 28px rgba(15,23,42,.04) !important;
  isolation:isolate !important;
}

body.orders-modern-body .orders-marketplace-hero::before{
  content:none !important;
  display:none !important;
}

body.orders-modern-body .orders-marketplace-hero::after{
  content:"" !important;
  position:absolute !important;
  inset:0 !important;
  z-index:1 !important;
  background:linear-gradient(90deg, rgba(244,246,249,.98) 0%, rgba(244,246,249,.94) 34%, rgba(244,246,249,.80) 46%, rgba(244,246,249,.18) 68%, rgba(244,246,249,0) 100%) !important;
  pointer-events:none !important;
}

body.orders-modern-body .orders-marketplace-hero__art{
  position:absolute !important;
  inset:0 !important;
  top:0 !important;
  right:0 !important;
  left:0 !important;
  bottom:0 !important;
  z-index:0 !important;
  display:block !important;
  width:100% !important;
  max-width:none !important;
  height:100% !important;
  transform:none !important;
  object-fit:cover !important;
  object-position:center center !important;
  opacity:1 !important;
  background:transparent !important;
}

body.orders-modern-body .orders-marketplace-hero__content{
  position:relative !important;
  z-index:2 !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
  width:min(58%, 820px) !important;
  max-width:min(58%, 820px) !important;
  padding:0 44px !important;
}

body.orders-modern-body .orders-marketplace-hero-controls{
  display:flex !important;
  justify-content:flex-end !important;
  margin:0 0 16px !important;
}

body.orders-modern-body .orders-marketplace-hero-controls .orders-region-switch{
  display:inline-flex;
  align-items:center;
  gap:0;
  padding:4px;
  border:1px solid #dde4eb;
  border-radius:16px;
  background:#ffffff;
  box-shadow:0 6px 18px rgba(15,23,42,.04);
}

body.orders-modern-body .orders-marketplace-hero-controls .orders-region-switch a{
  min-width:95px;
  min-height:40px;
  padding:0 18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  color:#6b7788;
  font-size:14px;
  line-height:1;
  font-weight:800;
  letter-spacing:.02em;
  text-decoration:none;
}

body.orders-modern-body .orders-marketplace-hero-controls .orders-region-switch a.active{
  background:#eef2f6;
  color:#162338;
}

#page-settings-modal .settings-panel .settings-yandex-inline-grid,
#page-settings-modal .settings-panel .settings-ozon-inline-grid,
#page-settings-modal .settings-panel .settings-ozon-logistics-grid{
  display:grid !important;
  grid-template-columns:minmax(0, 1fr) !important;
  gap:14px !important;
}

#page-settings-modal .settings-panel .settings-field-grid,
#page-settings-modal .settings-panel .settings-field-grid--yandex,
#page-settings-modal .settings-panel .settings-field-grid--compact{
  display:grid !important;
  grid-template-columns:minmax(0, 1fr) !important;
  gap:12px !important;
}

#page-settings-modal .settings-panel .settings-field-grid > label,
#page-settings-modal .settings-panel .settings-yandex-inline-grid > .settings-field-grid,
#page-settings-modal .settings-panel .settings-ozon-inline-grid > .settings-field-grid{
  width:100% !important;
}

@media (max-width:1100px){
  body.orders-modern-body .orders-marketplace-hero{height:218px !important;border-radius:24px !important}
  body.orders-modern-body .orders-marketplace-hero__content{width:62% !important;max-width:62% !important;padding:0 32px !important}
}

@media (max-width:720px){
  body.orders-modern-body .orders-marketplace-hero{height:184px !important;border-radius:22px !important}
  body.orders-modern-body .orders-marketplace-hero::after{background:linear-gradient(90deg, rgba(244,246,249,.98) 0%, rgba(244,246,249,.94) 50%, rgba(244,246,249,.56) 72%, rgba(244,246,249,.08) 100%) !important}
  body.orders-modern-body .orders-marketplace-hero__content{width:76% !important;max-width:76% !important;padding:0 20px !important}
  body.orders-modern-body .orders-marketplace-hero-controls{justify-content:flex-start !important}
  body.orders-modern-body .orders-marketplace-hero-controls .orders-region-switch a{min-width:82px;min-height:36px;padding:0 14px;font-size:12px}
}

html[data-app-theme="dark"] body.orders-modern-body .orders-marketplace-hero{
  border-color:#2c3641 !important;
  background:#171c22 !important;
}

html[data-app-theme="dark"] body.orders-modern-body .orders-marketplace-hero::after{
  background:linear-gradient(90deg, rgba(22,27,33,.96) 0%, rgba(22,27,33,.92) 34%, rgba(22,27,33,.72) 48%, rgba(22,27,33,.18) 68%, rgba(22,27,33,0) 100%) !important;
}

html[data-app-theme="dark"] body.orders-modern-body .orders-marketplace-hero-controls .orders-region-switch{
  background:#171c22;
  border-color:#2c3641;
  box-shadow:none;
}
html[data-app-theme="dark"] body.orders-modern-body .orders-marketplace-hero-controls .orders-region-switch a{color:#aeb8c4}
html[data-app-theme="dark"] body.orders-modern-body .orders-marketplace-hero-controls .orders-region-switch a.active{background:#252c34;color:#f2f6fb}


/* ui-v736.css */
/* V736 · smooth hero background transition for offline and marketplace orders */
body.offline-orders-page .offline-orders-hero{
  background:#f4f6f9 !important;
}

body.offline-orders-page .offline-orders-hero::before{
  content:"" !important;
  display:block !important;
  position:absolute !important;
  inset:0 !important;
  z-index:1 !important;
  pointer-events:none !important;
  background:linear-gradient(90deg,
    rgba(246,248,250,.94) 0%,
    rgba(246,248,250,.90) 24%,
    rgba(246,248,250,.78) 42%,
    rgba(246,248,250,.58) 58%,
    rgba(246,248,250,.34) 74%,
    rgba(246,248,250,.12) 88%,
    rgba(246,248,250,0) 100%) !important;
}

body.offline-orders-page .offline-orders-hero__content,
body.orders-modern-body .orders-marketplace-hero__content{
  position:relative !important;
  z-index:2 !important;
}

body.orders-modern-body .orders-marketplace-hero::after{
  background:linear-gradient(90deg,
    rgba(244,246,249,.96) 0%,
    rgba(244,246,249,.92) 26%,
    rgba(244,246,249,.82) 44%,
    rgba(244,246,249,.62) 58%,
    rgba(244,246,249,.36) 74%,
    rgba(244,246,249,.14) 88%,
    rgba(244,246,249,0) 100%) !important;
}

@media (max-width:720px){
  body.offline-orders-page .offline-orders-hero::before{
    background:linear-gradient(90deg,
      rgba(246,248,250,.97) 0%,
      rgba(246,248,250,.93) 40%,
      rgba(246,248,250,.72) 62%,
      rgba(246,248,250,.34) 80%,
      rgba(246,248,250,.06) 100%) !important;
  }
  body.orders-modern-body .orders-marketplace-hero::after{
    background:linear-gradient(90deg,
      rgba(244,246,249,.97) 0%,
      rgba(244,246,249,.93) 42%,
      rgba(244,246,249,.72) 64%,
      rgba(244,246,249,.34) 82%,
      rgba(244,246,249,.06) 100%) !important;
  }
}

html[data-app-theme="dark"] body.offline-orders-page .offline-orders-hero{
  background:#161b21 !important;
}
html[data-app-theme="dark"] body.offline-orders-page .offline-orders-hero::before{
  background:linear-gradient(90deg,
    rgba(22,27,33,.94) 0%,
    rgba(22,27,33,.90) 24%,
    rgba(22,27,33,.80) 42%,
    rgba(22,27,33,.60) 58%,
    rgba(22,27,33,.34) 74%,
    rgba(22,27,33,.12) 88%,
    rgba(22,27,33,0) 100%) !important;
}
html[data-app-theme="dark"] body.orders-modern-body .orders-marketplace-hero::after{
  background:linear-gradient(90deg,
    rgba(22,27,33,.96) 0%,
    rgba(22,27,33,.92) 26%,
    rgba(22,27,33,.82) 44%,
    rgba(22,27,33,.62) 58%,
    rgba(22,27,33,.36) 74%,
    rgba(22,27,33,.14) 88%,
    rgba(22,27,33,0) 100%) !important;
}


/* ui-v737.css */
/* V737 · align orders hero/region switch with workspace + WB supply move control */
body.orders-modern-body .orders-marketplace-hero,
body.orders-modern-body .orders-marketplace-hero-controls,
body.orders-modern-body .orders-shell{
  width:100% !important;
  max-width:1580px !important;
  margin-left:auto !important;
  margin-right:auto !important;
  box-sizing:border-box !important;
}
body.orders-modern-body .orders-marketplace-hero{
  margin-bottom:12px !important;
}
body.orders-modern-body .orders-marketplace-hero-controls{
  margin-top:0 !important;
  margin-bottom:16px !important;
}
body.orders-modern-body #wb-supply-move{
  white-space:nowrap;
}
@media(max-width:780px){
  body.orders-modern-body .orders-marketplace-hero,
  body.orders-modern-body .orders-marketplace-hero-controls,
  body.orders-modern-body .orders-shell{max-width:100% !important;}
}


/* ui-v740.css */
/* V740 · Ozon advertising controls in pricing settings */
#page-settings-modal .settings-switch-row--nested {
  margin: 0;
  border: 1px solid #e4e8ee;
  border-radius: 16px;
  background: #fbfcfd;
}
#page-settings-modal .settings-ozon-ads-grid { align-items: stretch; }
#page-settings-modal .settings-brand-card {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #e4e8ee;
  border-radius: 18px;
  background: #fbfcfd;
}
#page-settings-modal .settings-brand-card__head strong {
  display: block;
  font-size: 14px;
  color: #1f2937;
}
#page-settings-modal .settings-brand-card__head small {
  display: block;
  margin-top: 4px;
  color: #7a8696;
  line-height: 1.45;
}
#page-settings-modal .settings-brand-list {
  display: grid;
  gap: 10px;
  max-height: 320px;
  overflow: auto;
  padding-right: 4px;
}
#page-settings-modal .settings-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid #e2e7ee;
  border-radius: 14px;
  background: #fff;
}
#page-settings-modal .settings-brand-row > strong {
  font-size: 13px;
  color: #202936;
}
#page-settings-modal .settings-brand-row__toggles {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
#page-settings-modal .settings-brand-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #d9e1eb;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}
#page-settings-modal .settings-brand-toggle input { margin: 0; }
#page-settings-modal .settings-brand-toggle input:disabled + span { opacity: .45; }
#page-settings-modal .settings-brand-empty {
  padding: 12px 14px;
  border: 1px dashed #d9e1eb;
  border-radius: 14px;
  background: #fff;
  color: #7a8696;
  font-size: 12px;
  line-height: 1.5;
}
@media (max-width: 760px) {
  #page-settings-modal .settings-brand-row {
    align-items: flex-start;
    flex-direction: column;
  }
  #page-settings-modal .settings-brand-row__toggles { justify-content: flex-start; }
}


/* V748 · compact Apple-like top navigation + Promotion API manager */
@media (min-width: 1121px) {
  html body.app-modern-shell .main-nav__link,
  html body.app-modern-shell .main-nav-menu > .main-nav__link,
  html body.app-modern-shell.products-modern-body .main-nav__link,
  html body.app-modern-shell.products-modern-body .main-nav-menu > .main-nav__link {
    font-size: clamp(12px, calc(11.85px + 1.9px * var(--gm-nav-fit, 1)), 13.8px) !important;
    letter-spacing: -0.012em !important;
  }
}

.promotion-api-controlbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin:0 0 14px;
  padding:14px 16px;
  border:1px solid #e2e7ee;
  border-radius:16px;
  background:#fff;
  box-shadow:0 5px 18px rgba(15,23,42,.035);
}
.promotion-api-controlbar > div:first-child { min-width:0; }
.promotion-api-controlbar strong {
  display:block;
  color:#202936;
  font-size:13px;
  font-weight:800;
}
.promotion-api-controlbar span {
  display:block;
  margin-top:3px;
  color:#7b8796;
  font-size:11px;
  line-height:1.45;
}
.promotion-api-controlbar__actions {
  display:flex;
  align-items:center;
  gap:8px;
  flex:none;
}
.promotion-manage-button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:0 12px;
  border:1px solid #d9e1eb;
  border-radius:10px;
  background:#fff;
  color:#253142;
  font:inherit;
  font-size:11px;
  font-weight:800;
  line-height:1;
  text-decoration:none;
  cursor:pointer;
  transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease,background .15s ease;
}
.promotion-manage-button:hover {
  border-color:#bfc9d6;
  background:#fbfcfe;
  box-shadow:0 4px 12px rgba(15,23,42,.06);
  transform:translateY(-1px);
}
.promotion-readonly-badge {
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:0 10px;
  border-radius:999px;
  background:#f1f3f6;
  color:#7b8592;
  font-size:10px;
  font-weight:750;
  white-space:nowrap;
}
.promotion-api-actions-cell { white-space:nowrap; }

.promotion-manager[hidden] { display:none !important; }
.promotion-manager {
  position:fixed;
  inset:0;
  z-index:16000;
  display:grid;
  place-items:center;
  padding:24px;
}
.promotion-manager__backdrop {
  position:absolute;
  inset:0;
  background:rgba(18,24,34,.42);
  backdrop-filter:blur(2px);
}
.promotion-manager__card {
  position:relative;
  z-index:1;
  width:min(780px,calc(100vw - 48px));
  max-height:min(820px,calc(100vh - 48px));
  overflow:hidden;
  display:flex;
  flex-direction:column;
  border:1px solid #dfe5ec;
  border-radius:22px;
  background:#fff;
  box-shadow:0 24px 70px rgba(15,23,42,.22);
}
.promotion-manager__card > header {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding:20px 22px 17px;
  border-bottom:1px solid #edf0f4;
}
.promotion-manager__card > header h2 {
  margin:4px 0 4px;
  color:#17202d;
  font-size:22px;
  letter-spacing:-.025em;
}
.promotion-manager__card > header p {
  margin:0;
  color:#7d8794;
  font-size:11px;
}
.promotion-manager__close {
  width:36px;
  height:36px;
  flex:none;
  display:grid;
  place-items:center;
  border:0;
  border-radius:11px;
  background:#f1f3f6;
  color:#4b5563;
  font-size:23px;
  line-height:1;
  cursor:pointer;
}
.promotion-manager__body {
  min-height:0;
  overflow:auto;
  padding:18px 22px 22px;
}
.promotion-manager__quick-actions,
.promotion-manager__form-actions {
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.promotion-manager__quick-actions { margin-bottom:14px; }
.promotion-manager__section {
  margin-top:14px;
  padding:15px;
  border:1px solid #e5e9ef;
  border-radius:15px;
  background:#fbfcfd;
}
.promotion-manager__section:first-child { margin-top:0; }
.promotion-manager__section h3 {
  margin:0 0 12px;
  color:#2a3442;
  font-size:13px;
}
.promotion-manager__section-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}
.promotion-manager__section-head h3 { margin:0; }
.promotion-manager__section-head button {
  border:0;
  background:transparent;
  color:#536174;
  font-size:11px;
  font-weight:750;
  cursor:pointer;
}
.promotion-manager__form-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin-bottom:11px;
}
.promotion-manager__form-grid label {
  display:grid;
  gap:6px;
  color:#5c6878;
  font-size:10px;
  font-weight:800;
}
.promotion-manager__form-grid input,
.promotion-manager__form-grid select {
  box-sizing:border-box;
  width:100%;
  min-width:0;
  height:40px;
  padding:0 11px;
  border:1px solid #ccd5e0;
  border-radius:10px;
  background:#fff;
  color:#263140;
  font:inherit;
  font-size:12px;
  font-weight:650;
  outline:none;
}
.promotion-manager__form-grid input:focus,
.promotion-manager__form-grid select:focus {
  border-color:#9aabba;
  box-shadow:0 0 0 3px rgba(76,101,132,.08);
}
.promotion-manager__products {
  max-height:265px;
  overflow:auto;
  border:1px solid #e5e9ef;
  border-radius:12px;
  background:#fff;
}
.promotion-manager__products table {
  width:100%;
  border-collapse:collapse;
}
.promotion-manager__products th,
.promotion-manager__products td {
  padding:9px 10px;
  border-bottom:1px solid #edf0f4;
  text-align:left;
  font-size:10px;
  vertical-align:top;
}
.promotion-manager__products th {
  position:sticky;
  top:0;
  z-index:1;
  background:#f7f9fb;
  color:#6d7887;
  font-weight:800;
}
.promotion-manager__products td { color:#465160; }
.promotion-manager__products td strong { color:#263140; }
.promotion-manager__products td small { display:block;margin-top:2px;color:#8c96a3; }
.promotion-manager__loading,
.promotion-manager__empty,
.promotion-manager__recommendation {
  padding:13px;
  border-radius:10px;
  background:#f5f7f9;
  color:#748091;
  font-size:11px;
  line-height:1.45;
}
.promotion-manager__recommendation:empty { display:none; }
.promotion-manager__status {
  margin:0 22px 20px;
  padding:10px 12px;
  border-radius:11px;
  font-size:11px;
  font-weight:700;
}
.promotion-manager__status.is-info { background:#f2f5f9;color:#516174; }
.promotion-manager__status.is-success { background:#edf8f1;color:#2e7546; }
.promotion-manager__status.is-error { background:#fff0f0;color:#a63b3b; }

html[data-app-theme="dark"] .promotion-api-controlbar,
html[data-app-theme="dark"] .promotion-manager__card,
html[data-app-theme="dark"] .promotion-manager__products,
html[data-app-theme="dark"] .promotion-manager__form-grid input,
html[data-app-theme="dark"] .promotion-manager__form-grid select,
html[data-app-theme="dark"] .promotion-manage-button {
  background:#171c22;
  border-color:#303944;
  color:#e6ebf1;
}
html[data-app-theme="dark"] .promotion-manager__section { background:#1b2128;border-color:#303944; }
html[data-app-theme="dark"] .promotion-manager__card > header { border-color:#303944; }
html[data-app-theme="dark"] .promotion-manager__card > header h2,
html[data-app-theme="dark"] .promotion-manager__section h3,
html[data-app-theme="dark"] .promotion-api-controlbar strong { color:#f1f5f9; }
html[data-app-theme="dark"] .promotion-manager__card > header p,
html[data-app-theme="dark"] .promotion-api-controlbar span { color:#9ba6b4; }

@media (max-width:700px) {
  .promotion-api-controlbar { align-items:stretch;flex-direction:column; }
  .promotion-api-controlbar__actions { flex-wrap:wrap; }
  .promotion-manager { padding:10px; }
  .promotion-manager__card { width:calc(100vw - 20px);max-height:calc(100vh - 20px);border-radius:18px; }
  .promotion-manager__form-grid { grid-template-columns:1fr; }
}

/* V749 · Ozon Performance: expanded campaign and SKU analytics */
.promotion-simple-table-wrap--ozon-ads{overflow:auto}
.promotion-simple-table--ozon-ads{min-width:1960px}
.promotion-simple-table--ozon-ads th,.promotion-simple-table--ozon-ads td{white-space:nowrap}
.promotion-simple-table--ozon-ads td[data-column="name"]{min-width:260px;white-space:normal}
.promotion-simple-table--ozon-ads td[data-column="placement"],.promotion-simple-table--ozon-ads td[data-column="strategy"]{min-width:150px;white-space:normal}

.promotion-manager__card{width:min(1180px,calc(100vw - 48px));max-height:min(900px,calc(100vh - 48px))}
.promotion-manager__section-head>div{min-width:0}
.promotion-manager__section-head>div>small{display:block;margin-top:3px;color:#8a95a3;font-size:10px;line-height:1.4}
.promotion-manager__overview{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}
.promotion-manager__overview>.promotion-manager__loading,.promotion-manager__overview>.promotion-manager__empty{grid-column:1/-1}
.promotion-manager__overview article{min-width:0;padding:11px 12px;border:1px solid #e5e9ef;border-radius:12px;background:#fff}
.promotion-manager__overview article>small{display:block;color:#8a95a3;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.025em}
.promotion-manager__overview article>strong{display:block;margin-top:5px;color:#273241;font-size:13px;line-height:1.25;overflow-wrap:anywhere}
.promotion-manager__overview article>span{display:block;margin-top:3px;color:#8a95a3;font-size:9px;line-height:1.35}
.promotion-manager__strategy-note{margin:0 0 11px;padding:9px 11px;border-radius:10px;background:#f2f5f9;color:#5f6d7e;font-size:10px;line-height:1.45}
.promotion-manager__form-grid--ozon-product{grid-template-columns:repeat(4,minmax(0,1fr))}
.promotion-manager__form-grid--budget{grid-template-columns:minmax(260px,420px)}
.promotion-manager__form-grid label>small{display:block;color:#929daa;font-size:9px;font-weight:500;line-height:1.35}
.promotion-manager__products--ozon{max-height:390px}
.promotion-manager__products--ozon table{min-width:1680px}
.promotion-manager__products--ozon tbody tr{cursor:pointer}
.promotion-manager__products--ozon tbody tr:hover td{background:#f9fbfd}
.promotion-manager__products--ozon th,.promotion-manager__products--ozon td{white-space:nowrap}
.promotion-manager__products--ozon td:first-child{min-width:240px;white-space:normal}

html[data-app-theme="dark"] .promotion-manager__overview article{background:#171c22;border-color:#303944}
html[data-app-theme="dark"] .promotion-manager__overview article>strong{color:#eef3f8}
html[data-app-theme="dark"] .promotion-manager__strategy-note{background:#222a33;color:#b4bfcb}
html[data-app-theme="dark"] .promotion-manager__products--ozon tbody tr:hover td{background:#1d242c}

@media(max-width:1000px){.promotion-manager__overview{grid-template-columns:repeat(2,minmax(0,1fr))}.promotion-manager__form-grid--ozon-product{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.promotion-manager__overview{grid-template-columns:1fr}.promotion-manager__form-grid--ozon-product{grid-template-columns:1fr}}

/* V750 · Wildberries/Yandex promotion parity improvements */
.promotion-manager__check-grid{display:flex;align-items:center;gap:12px;flex-wrap:wrap;min-height:44px}
.promotion-manager__check-grid label{display:inline-flex;align-items:center;gap:7px;color:#455264;font-size:11px;font-weight:750}
.promotion-manager__check-grid input{width:16px;height:16px;margin:0}
.promotion-manager__checkbox-label>span{display:block;margin-bottom:7px;color:#455264;font-size:11px;font-weight:800}
.promotion-manager__overview--compact{grid-template-columns:repeat(3,minmax(0,1fr));margin:0 0 10px}
.promotion-manager__recommendation-list{display:grid;gap:6px;margin-top:8px}
.promotion-manager__recommendation-list>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 10px;border:1px solid #e3e8ee;border-radius:9px;background:#fff}
.promotion-manager__recommendation-list strong{color:#2f3947;font-size:10px}
.promotion-manager__recommendation-list span{color:#6d7989;font-size:10px;text-align:right}
.promotion-manager__products--wb{max-height:360px}
.promotion-manager__products--wb table{min-width:720px}
.promotion-manager__products--wb tbody tr{cursor:pointer}
.promotion-manager__products--wb tbody tr:hover td{background:#f9fbfd}
.promotion-manager__products--wb td,.promotion-manager__products--wb th{white-space:nowrap}
.promotion-manager__products--wb td:first-child{min-width:220px;white-space:normal}
html[data-app-theme="dark"] .promotion-manager__check-grid label,html[data-app-theme="dark"] .promotion-manager__checkbox-label>span{color:#c4ced9}
html[data-app-theme="dark"] .promotion-manager__recommendation-list>div{background:#171c22;border-color:#303944}
html[data-app-theme="dark"] .promotion-manager__recommendation-list strong{color:#eef3f8}
html[data-app-theme="dark"] .promotion-manager__recommendation-list span{color:#aab5c2}
html[data-app-theme="dark"] .promotion-manager__products--wb tbody tr:hover td{background:#1d242c}
@media(max-width:700px){.promotion-manager__overview--compact{grid-template-columns:1fr}.promotion-manager__recommendation-list>div{align-items:flex-start;flex-direction:column}.promotion-manager__recommendation-list span{text-align:left}}
/* V750 · WB seller-like promotion controls */
.promotion-manager__form-grid textarea{box-sizing:border-box;width:100%;min-width:0;min-height:96px;padding:10px 11px;border:1px solid #ccd5e0;border-radius:10px;background:#fff;color:#263140;font:inherit;font-size:12px;font-weight:650;line-height:1.45;resize:vertical;outline:none}
.promotion-manager__form-grid textarea:focus{border-color:#9aabba;box-shadow:0 0 0 3px rgba(76,101,132,.08)}
.promotion-manager__cluster-table{max-height:320px;margin-top:10px}
.promotion-manager__cluster-table tbody tr{cursor:pointer}
.promotion-manager__cluster-table tbody tr:hover td{background:#f7f9fb}
html[data-app-theme="dark"] .promotion-manager__form-grid textarea{background:#171c22;border-color:#303944;color:#e6ebf1}
html[data-app-theme="dark"] .promotion-manager__cluster-table tbody tr:hover td{background:#202731}


/* V752 · smoother, lower-latency interaction layer */
:root {
  --motion-fast: 110ms;
  --motion-ui: 165ms;
  --motion-page: 290ms;
  --motion-ease: cubic-bezier(.22,1,.36,1);
  --motion-spring: cubic-bezier(.2,.82,.24,1.08);
}
html { scrollbar-gutter: stable; }
html.app-motion-enabled .app-motion-reveal { transform: translate3d(0,8px,0); }
html.app-motion-enabled .app-motion-row { transform: translate3d(0,4px,0); }
html.app-motion-enabled .app-motion-row.is-motion-visible { animation-duration: 210ms; }
html.app-motion-enabled .app-motion-modal-enter { animation-duration: 205ms; }
html.app-motion-enabled :is(.app-error-toast,.alert,.flash).app-motion-toast-enter { animation-duration: 220ms; }
html.app-motion-enabled :is(
  input:not([type="range"]), select, textarea,
  .main-nav__link, .section-tab, .promotion-section-tab,
  .products-modern-market-tab, .orders-status-tab,
  details > summary
) {
  transition:
    background-color var(--motion-ui) var(--motion-ease),
    border-color var(--motion-ui) var(--motion-ease),
    color var(--motion-ui) var(--motion-ease),
    opacity var(--motion-ui) var(--motion-ease),
    transform var(--motion-fast) var(--motion-ease);
}
html.app-motion-enabled :is(input:not([type="range"]),select,textarea):focus {
  transition-duration: 120ms;
}
html.app-motion-enabled :is(table tbody tr,.products-modern-row,.orders-row,.wt-product-row,.wr-item-row) {
  transition-property: background-color,border-color,opacity;
  transition-duration: 105ms;
}
html.app-motion-enabled :is(
  .products-modern-market-tab,.products-modern-state-tabs a,.orders-status-tab,
  .profile-tabs a,.communications-tab,.pagination a,.app-filter-chip,
  .market-switch__item,.fbo-platform
) {
  transition-property: background-color,border-color,color,transform,opacity;
}
html.app-motion-enabled .app-managed-window.app-window-dragging,
html.app-motion-enabled .app-motion-modal-enter {
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}
html.app-motion-enabled .promotion-manager__section {
  transition: border-color 150ms var(--motion-ease), background-color 150ms var(--motion-ease);
}
html.app-motion-enabled .promotion-manager__products tbody tr:hover {
  background-color: rgba(30,41,59,.035);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* V760 · supplied 3840×508 section banners */
body.dashboard-unified-body .dashboard-hero-banner,
body.orders-modern-body .orders-marketplace-hero,
body.offline-orders-page .offline-orders-hero,
body.knowledge-page .knowledge-hero--image,
body.site-settings-page .settings-heading--image {
  box-sizing:border-box !important;
  position:relative !important;
  isolation:isolate !important;
  display:flex !important;
  align-items:stretch !important;
  width:100% !important;
  height:auto !important;
  min-height:188px !important;
  max-height:none !important;
  aspect-ratio:3840 / 508 !important;
  margin-top:0 !important;
  overflow:hidden !important;
  border:1px solid #e2e7ed !important;
  border-radius:24px !important;
  background:#fff !important;
  box-shadow:0 10px 28px rgba(15,23,42,.04) !important;
}
body.dashboard-unified-body .dashboard-hero-banner::before,
body.dashboard-unified-body .dashboard-hero-banner::after,
body.orders-modern-body .orders-marketplace-hero::before,
body.orders-modern-body .orders-marketplace-hero::after,
body.offline-orders-page .offline-orders-hero::before,
body.offline-orders-page .offline-orders-hero::after,
body.knowledge-page .knowledge-hero--image::before,
body.knowledge-page .knowledge-hero--image::after,
body.site-settings-page .settings-heading--image::before,
body.site-settings-page .settings-heading--image::after {
  display:none !important;
  content:none !important;
}
body.dashboard-unified-body .dashboard-hero-banner > img,
body.orders-modern-body .orders-marketplace-hero__art,
body.offline-orders-page .offline-orders-hero__art,
body.knowledge-page .knowledge-hero__art,
body.site-settings-page .settings-heading__art {
  display:block !important;
  position:absolute !important;
  inset:0 !important;
  z-index:0 !important;
  width:100% !important;
  height:100% !important;
  max-width:none !important;
  max-height:none !important;
  object-fit:cover !important;
  object-position:center center !important;
  transform:none !important;
  border:0 !important;
  border-radius:inherit !important;
  background:transparent !important;
  box-shadow:none !important;
}
body.dashboard-unified-body .dashboard-hero-banner__content,
body.orders-modern-body .orders-marketplace-hero__content,
body.offline-orders-page .offline-orders-hero__content,
body.knowledge-page .knowledge-hero__content,
body.site-settings-page .settings-heading__content {
  box-sizing:border-box !important;
  position:relative !important;
  z-index:2 !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
  align-items:flex-start !important;
  gap:8px !important;
  width:min(56%,780px) !important;
  max-width:min(56%,780px) !important;
  min-width:0 !important;
  padding:0 34px !important;
  margin:0 !important;
  background:transparent !important;
}
body.knowledge-page .knowledge-hero--image { margin-bottom:18px !important; }
body.site-settings-page .settings-heading--image { margin-bottom:18px !important; }
body.dashboard-unified-body .dashboard-hero-banner { margin-bottom:14px !important; }
body.orders-modern-body .orders-marketplace-hero { margin-bottom:12px !important; }
body.offline-orders-page .offline-orders-hero { margin-bottom:12px !important; }

body.dashboard-unified-body .dashboard-hero-banner__content h1,
body.orders-modern-body .orders-marketplace-hero__content h1,
body.offline-orders-page .offline-orders-hero__content h1,
body.knowledge-page .knowledge-hero__content h1,
body.site-settings-page .settings-heading__content h1 {
  margin:0 !important;
  color:#071a3b !important;
  font-size:clamp(38px,4vw,66px) !important;
  line-height:.96 !important;
  letter-spacing:-.05em !important;
  font-weight:850 !important;
}
body.orders-modern-body .orders-marketplace-hero__content p,
body.offline-orders-page .offline-orders-hero__content p,
body.knowledge-page .knowledge-hero__content p,
body.site-settings-page .settings-heading__content p,
body.dashboard-unified-body .dashboard-hero-banner__content p {
  margin:0 !important;
  max-width:650px !important;
  color:#4f5e70 !important;
  font-size:clamp(13px,1.08vw,17px) !important;
  line-height:1.45 !important;
  font-weight:600 !important;
}
body.orders-modern-body .orders-marketplace-hero__content .eyebrow,
body.offline-orders-page .offline-orders-hero__content .eyebrow,
body.knowledge-page .knowledge-hero__content .eyebrow,
body.site-settings-page .settings-heading__content .eyebrow {
  margin:0 0 3px !important;
  color:#68768a !important;
  font-size:10px !important;
  font-weight:800 !important;
  letter-spacing:.065em !important;
  text-transform:uppercase !important;
}

/* Orders region switch and offline create action remain below the banner. */
body.orders-modern-body .orders-marketplace-hero-controls,
body.offline-orders-page .offline-orders-primary-action {
  position:relative !important;
  z-index:1 !important;
}

@media (max-width:900px) {
  body.dashboard-unified-body .dashboard-hero-banner,
  body.orders-modern-body .orders-marketplace-hero,
  body.offline-orders-page .offline-orders-hero,
  body.knowledge-page .knowledge-hero--image,
  body.site-settings-page .settings-heading--image {
    min-height:172px !important;
    aspect-ratio:auto !important;
    height:172px !important;
    border-radius:22px !important;
  }
  body.dashboard-unified-body .dashboard-hero-banner__content,
  body.orders-modern-body .orders-marketplace-hero__content,
  body.offline-orders-page .offline-orders-hero__content,
  body.knowledge-page .knowledge-hero__content,
  body.site-settings-page .settings-heading__content {
    width:68% !important;
    max-width:68% !important;
    padding:0 24px !important;
  }
}
@media (max-width:620px) {
  body.dashboard-unified-body .dashboard-hero-banner,
  body.orders-modern-body .orders-marketplace-hero,
  body.offline-orders-page .offline-orders-hero,
  body.knowledge-page .knowledge-hero--image,
  body.site-settings-page .settings-heading--image {
    height:158px !important;
    min-height:158px !important;
    border-radius:20px !important;
  }
  body.dashboard-unified-body .dashboard-hero-banner__content,
  body.orders-modern-body .orders-marketplace-hero__content,
  body.offline-orders-page .offline-orders-hero__content,
  body.knowledge-page .knowledge-hero__content,
  body.site-settings-page .settings-heading__content {
    width:76% !important;
    max-width:76% !important;
    padding:0 18px !important;
    gap:6px !important;
  }
  body.dashboard-unified-body .dashboard-hero-banner__content h1,
  body.orders-modern-body .orders-marketplace-hero__content h1,
  body.offline-orders-page .offline-orders-hero__content h1,
  body.knowledge-page .knowledge-hero__content h1,
  body.site-settings-page .settings-heading__content h1 {
    font-size:clamp(28px,8vw,40px) !important;
  }
  body.dashboard-unified-body .dashboard-hero-banner__content p,
  body.orders-modern-body .orders-marketplace-hero__content p,
  body.offline-orders-page .offline-orders-hero__content p,
  body.knowledge-page .knowledge-hero__content p,
  body.site-settings-page .settings-heading__content p {
    max-width:350px !important;
    font-size:11.5px !important;
  }
}

html[data-app-theme="dark"] body.dashboard-unified-body .dashboard-hero-banner > img,
html[data-app-theme="dark"] body.orders-modern-body .orders-marketplace-hero__art,
html[data-app-theme="dark"] body.offline-orders-page .offline-orders-hero__art,
html[data-app-theme="dark"] body.knowledge-page .knowledge-hero__art,
html[data-app-theme="dark"] body.site-settings-page .settings-heading__art {
  filter:brightness(.42) saturate(.82) !important;
}
html[data-app-theme="dark"] body.dashboard-unified-body .dashboard-hero-banner,
html[data-app-theme="dark"] body.orders-modern-body .orders-marketplace-hero,
html[data-app-theme="dark"] body.offline-orders-page .offline-orders-hero,
html[data-app-theme="dark"] body.knowledge-page .knowledge-hero--image,
html[data-app-theme="dark"] body.site-settings-page .settings-heading--image {
  background:#171d24 !important;
  border-color:#303944 !important;
}
html[data-app-theme="dark"] body.dashboard-unified-body .dashboard-hero-banner__content h1,
html[data-app-theme="dark"] body.orders-modern-body .orders-marketplace-hero__content h1,
html[data-app-theme="dark"] body.offline-orders-page .offline-orders-hero__content h1,
html[data-app-theme="dark"] body.knowledge-page .knowledge-hero__content h1,
html[data-app-theme="dark"] body.site-settings-page .settings-heading__content h1 { color:#f5f7fb !important; }
html[data-app-theme="dark"] body.dashboard-unified-body .dashboard-hero-banner__content p,
html[data-app-theme="dark"] body.orders-modern-body .orders-marketplace-hero__content p,
html[data-app-theme="dark"] body.offline-orders-page .offline-orders-hero__content p,
html[data-app-theme="dark"] body.knowledge-page .knowledge-hero__content p,
html[data-app-theme="dark"] body.site-settings-page .settings-heading__content p { color:#d3dbe5 !important; }
/* V760 · reset legacy page-heading/hero padding for full-bleed supplied artwork. */
body.dashboard-unified-body .dashboard-hero-banner,
body.orders-modern-body .orders-marketplace-hero,
body.offline-orders-page .offline-orders-hero,
body.knowledge-page .knowledge-hero--image,
body.site-settings-page .settings-heading--image { padding:0 !important; }


/* V761 · supplied banners for additional section hero cards */
.supplied-section-hero{
  position:relative !important;
  isolation:isolate !important;
  display:flex !important;
  align-items:stretch !important;
  justify-content:flex-start !important;
  width:100% !important;
  min-height:188px !important;
  aspect-ratio:3840 / 508 !important;
  padding:0 !important;
  overflow:hidden !important;
  border:1px solid #e2e7ed !important;
  border-radius:24px !important;
  background:#fff !important;
  box-shadow:0 10px 28px rgba(15,23,42,.04) !important;
}
.supplied-section-hero::before,
.supplied-section-hero::after{
  display:none !important;
  content:none !important;
}
.supplied-section-hero__art{
  display:block !important;
  position:absolute !important;
  inset:0 !important;
  z-index:0 !important;
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  object-position:center center !important;
  border:0 !important;
  border-radius:inherit !important;
  background:transparent !important;
  box-shadow:none !important;
}
.supplied-section-hero__content{
  box-sizing:border-box !important;
  position:relative !important;
  z-index:2 !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
  align-items:flex-start !important;
  gap:8px !important;
  width:min(57%, 820px) !important;
  max-width:min(57%, 820px) !important;
  min-width:0 !important;
  padding:0 34px !important;
  margin:0 !important;
  background:transparent !important;
}
.supplied-section-hero__content h1{
  margin:0 !important;
  color:#071a3b !important;
  font-size:clamp(38px,4vw,66px) !important;
  line-height:.96 !important;
  letter-spacing:-.05em !important;
  font-weight:850 !important;
}
.supplied-section-hero__content p{
  margin:0 !important;
  max-width:650px !important;
  color:#4f5e70 !important;
  font-size:clamp(13px,1.08vw,17px) !important;
  line-height:1.45 !important;
  font-weight:600 !important;
}
.supplied-section-hero__content .eyebrow{
  margin:0 0 3px !important;
  color:#68768a !important;
  font-size:10px !important;
  font-weight:800 !important;
  letter-spacing:.065em !important;
  text-transform:uppercase !important;
}
.supplied-section-hero__inline-actions{
  margin-top:14px !important;
  display:flex !important;
  flex-wrap:wrap !important;
  align-items:center !important;
  gap:12px !important;
}
.supplied-section-hero__inline-actions--compact{
  margin-top:12px !important;
}
.supplied-section-hero .return-heading-actions,
.supplied-section-hero .return-heading-actions .button{
  width:auto !important;
}
.supplied-section-hero .ai-assistant-switch-card{
  min-width:240px;
  margin:0;
}
body.orders-unit-page .supplied-section-hero,
body.return-decisions-page .supplied-section-hero,
body.response-templates-page .supplied-section-hero,
body.communications-page .supplied-section-hero,
body.promotion-page .supplied-section-hero{
  margin-bottom:14px !important;
}
body.promotion-page .promotion-hero-panel.supplied-section-hero,
body.promotion-page .promotion-hero-panel.supplied-section-hero .promotion-hero-panel__content{
  background:transparent !important;
}
body.promotion-page .promotion-hero-panel.supplied-section-hero .promotion-refresh-badge{
  position:relative !important;
  z-index:2 !important;
}
@media (max-width:900px){
  .supplied-section-hero{
    min-height:172px !important;
    aspect-ratio:auto !important;
    height:172px !important;
    border-radius:22px !important;
  }
  .supplied-section-hero__content{
    width:68% !important;
    max-width:68% !important;
    padding:0 24px !important;
  }
}
@media (max-width:620px){
  .supplied-section-hero{
    height:158px !important;
    min-height:158px !important;
    border-radius:20px !important;
  }
  .supplied-section-hero__content{
    width:78% !important;
    max-width:78% !important;
    padding:0 18px !important;
    gap:6px !important;
  }
  .supplied-section-hero__content h1{
    font-size:clamp(28px,8vw,40px) !important;
  }
  .supplied-section-hero__content p{
    max-width:350px !important;
    font-size:11.5px !important;
  }
  .supplied-section-hero__inline-actions{
    margin-top:10px !important;
    gap:8px !important;
  }
  .supplied-section-hero .ai-assistant-switch-card{
    min-width:0;
    width:100%;
  }
}
html[data-app-theme="dark"] .supplied-section-hero{
  background:#171d24 !important;
  border-color:#303944 !important;
}
html[data-app-theme="dark"] .supplied-section-hero__art{
  filter:brightness(.42) saturate(.82) !important;
}
html[data-app-theme="dark"] .supplied-section-hero__content h1{
  color:#f5f7fb !important;
}
html[data-app-theme="dark"] .supplied-section-hero__content p{
  color:#d3dbe5 !important;
}
html[data-app-theme="dark"] .supplied-section-hero__content .eyebrow{
  color:#a8b5c3 !important;
}


/* V24 · scroll stability + Safari product table hardening */
html body.app-modern-shell main.page-container {
  overflow-anchor: none;
}
html body.app-modern-shell .app-header,
html body.app-modern-shell .workspace-utility-bar {
  overflow-anchor: none;
}
body.dashboard-unified-body :is(.dashboard-panel,.dashboard-card,.dashboard-chart-card,.dashboard-distribution-card,canvas) {
  overflow-anchor: none;
}
body.products-modern-body .products-modern-table-wrap,
body.products-modern-body .products-modern-table,
body.products-modern-body .products-modern-photo-wrap {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
body.products-modern-body .products-modern-photo-wrap img {
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
body.knowledge-page .knowledge-guide,
body.knowledge-page .knowledge-chapter {
  scroll-margin-top: 72px;
}


/* v748 · product import/mobile back link + Ozon color + compact best-products switcher */
body.dashboard-unified-body .dashboard-panel--top .dashboard-marketplace-tabs{
    display:inline-flex !important;
    flex-wrap:wrap !important;
    width:max-content !important;
    max-width:100% !important;
    min-height:0 !important;
    padding:3px !important;
    gap:3px !important;
    overflow:visible !important;
    border:1px solid #e1e6ec !important;
    border-radius:11px !important;
    background:#f5f7fa !important;
}
body.dashboard-unified-body .dashboard-panel--top .dashboard-marketplace-tabs > .dashboard-marketplace-tab{
    flex:0 0 auto !important;
    width:auto !important;
    min-height:34px !important;
    height:34px !important;
    padding:7px 14px !important;
    border-radius:9px !important;
    font-size:12px !important;
    line-height:1 !important;
    white-space:nowrap !important;
}
body.dashboard-unified-body .dashboard-panel--top .dashboard-marketplace-tabs > .dashboard-marketplace-tab.active{
    box-shadow:0 2px 7px rgba(15,23,42,.06) !important;
}
@media (max-width:900px){
    body.dashboard-unified-body .dashboard-panel--top .dashboard-marketplace-tabs{
        width:max-content !important;
        max-width:100% !important;
    }
}
html[data-app-theme="dark"] .header-store-picker__platform--ozon{color:#5f97ff !important;}

/* v31 · Ozon settings split into FBS / FBO and conditional cluster controls */
#page-settings-modal .settings-scheme-heading{
  display:flex;align-items:flex-end;justify-content:space-between;gap:12px;
  margin:18px 0 10px;padding:0 2px 9px;border-bottom:1px solid #e8edf2;
}
#page-settings-modal .settings-scheme-heading span{font-size:13px;font-weight:900;letter-spacing:.02em;color:#283442}
#page-settings-modal .settings-scheme-heading small{max-width:65%;font-size:9.5px;line-height:1.35;color:#929eab;text-align:right}
#page-settings-modal .settings-scheme-heading--fbs span{color:#005bff}
#page-settings-modal .settings-scheme-heading--fbo span{color:#2d6fca}
#page-settings-modal .settings-fbs-dispatch-card{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;margin:10px 0 12px;
}
#page-settings-modal .settings-fbs-dispatch-card>.settings-field-grid{grid-column:1/-1}
#page-settings-modal [data-ozon-fbo-cluster-fields][hidden],
#page-settings-modal [data-ozon-fbs-cluster-fields][hidden]{display:none!important}
#page-settings-modal .settings-ozon-logistics-grid{align-items:stretch!important}
#page-settings-modal .settings-ozon-logistics-grid>.settings-field-grid{min-width:0}
@media(max-width:760px){
  #page-settings-modal .settings-scheme-heading{align-items:flex-start;flex-direction:column}
  #page-settings-modal .settings-scheme-heading small{max-width:none;text-align:left}
  #page-settings-modal .settings-fbs-dispatch-card{grid-template-columns:1fr}
}
html[data-app-theme="dark"] #page-settings-modal .settings-scheme-heading{border-color:#30414e}
html[data-app-theme="dark"] #page-settings-modal .settings-scheme-heading span{color:#e7eef3}
html[data-app-theme="dark"] #page-settings-modal .settings-scheme-heading--fbs span{color:#71a2ff}

/* V738 — одинаковая ширина вкладок верхнего меню на десктопе. */
@media (min-width: 1121px) {
  .app-header .main-nav { flex: 1 1 auto; min-width: 0; justify-content: stretch; }
  .app-header .main-nav > .main-nav__link,
  .app-header .main-nav > .main-nav-menu { flex: 1 1 0; min-width: 0; }
  .app-header .main-nav > .main-nav-menu > .main-nav__link,
  .app-header .main-nav > .main-nav__link { width: 100%; justify-content: center; text-align: center; }
}

/* V750 · rendering stability / smooth navigation hardening.
   Keep the viewport width stable when dialogs lock scrolling, and avoid an
   expensive live blur on the fixed global header. The header already has an
   opaque theme background, so removing the blur does not change information
   hierarchy while reducing repaint/compositing work during scroll. */
html { scrollbar-gutter: stable; }
body.is-page-navigation-loading main.page-container { pointer-events: none; }
body.is-page-navigation-loading .app-header,
body.is-page-navigation-loading .workspace-utility-bar { pointer-events: auto; }
@media (min-width: 1121px) {
  .app-modern-shell .app-header,
  .app-modern-shell.products-modern-body .app-header {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}
