/* Signal: единый стиль кабинета.
 * У компонента одно определение; варианты компоновки ограничены data-layout.
 * Порядок разделов: основа → каркас → компоненты → рабочие экраны.
 * Исправления вносить в правило компонента, без дополнительных таблиц переопределений.
 */

@font-face {
    font-family: Manrope;
    src: url("../../Manrope.ttf") format("truetype");
    font-weight: 200 800;
    font-display: swap;
}

@font-face {
    font-family: Oswald;
    src: url("assets/fonts/Oswald.ttf") format("truetype");
    font-weight: 200 700;
    font-display: swap;
}

/* Основа и типографика */

:root {
    color-scheme: dark;
    --bg: #0e1012;
    --nav: #111315;
    --surface: #191c1f;
    --raised: #22262a;
    --inset: #121416;
    --line: #30353a;
    --quiet: #24292d;
    --text: #f0f2f3;
    --muted: #9da5ac;
    --subtle: #69737c;
    --lime: #c8ff27;
    --ink: #172005;
    --amber: #ffcb73;
    --red: #ff817d;
    --radius: 6px;
    --control-height: 44px;
    --control-radius: 6px;
    --control-padding-inline: 12px;
    --component-gap: 12px;
    --card-inset: 16px;
    --anchor-offset: 76px;
    --wb: #d40b9b;
    --ozon: #0066ff;
}

html[data-layout=mobile] {
    --raised: #23282c;
    --inset: #121517;
    --line: #333b41;
    --quiet: #252b30;
    --muted: #9da7af;
    --subtle: #77838c;
    --safe-bottom: env(safe-area-inset-bottom,0px);
}

* {
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: var(--line) var(--bg);
}

body {
    background: var(--bg);
    color: var(--text);
}

body:where([data-layout=desktop]) {
    margin: 0;
    font: 13px/1.5 Manrope,Arial,sans-serif;
}

html {
    scrollbar-width: thin;
    scrollbar-color: var(--line) var(--bg);
}

html:where([data-layout=mobile]) {
    scrollbar-gutter: stable;
    scroll-padding-top: calc(144px + env(safe-area-inset-top,0px));
    scroll-padding-bottom: 90px;
    background: var(--bg);
}

body:where([data-layout=mobile]) {
    margin: 0 auto;
    max-width: 520px;
    font: 14px/1.5 Manrope,Arial,sans-serif;
    min-width: 0;
}

button {
    font: inherit;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    cursor: pointer;
    color: inherit;
    border: 0;
}

input {
    font: inherit;
    -webkit-tap-highlight-color: transparent;
}

a {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    color: inherit;
    text-decoration: none;
}

:where(html[data-layout=mobile]) h1 {
    font: 500 29px/1.14 Oswald,sans-serif;
    letter-spacing: -.3px;
}

:where(html[data-layout=mobile]) h2 {
    font-size: 16px;
    line-height: 1.4;
    font-weight: 750;
}

h1,
h2 {
    margin: 0;
}

h3 {
    margin: 0;
    font-size: 14px;
}

:where(html[data-layout=desktop]) h1 {
    font: 500 40px/1.08 Oswald,sans-serif;
    letter-spacing: -.5px;
}

:where(html[data-layout=desktop]) h2 {
    font: 700 19px/1.35 Manrope,sans-serif;
}

:where(html[data-layout=desktop]) h3 {
    line-height: 1.4;
}

svg {
    display: block;
}

.danger {
    color: var(--red);
}

body:where([data-layout=desktop]):not(.presentation) {
    min-width: 1240px;
}

*::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

*::-webkit-scrollbar-track {
    background: var(--bg);
}

*::-webkit-scrollbar-thumb {
    background: var(--line);
    border-radius: 6px;
}

*::-webkit-scrollbar-thumb:hover {
    background: var(--muted);
}

*::-webkit-scrollbar-button {
    display: none;
}

body[data-layout=mobile] {
    --anchor-offset: 0px;
}

html:has(body[data-layout=mobile]) {
    scroll-padding-top: var(--signal-header-offset,160px);
}

body[data-layout=mobile] .notice-action {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

body[data-layout=mobile] .notice-action>.btn {
    width: 100%;
    align-self: stretch;
}

body[data-layout=desktop] .list-row>.list-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex: none;
}

body[data-layout=desktop] .data-table {
    font-size: 13px;
}

body[data-layout=desktop] .data-table th {
    font-size: 11px;
    padding: 12px var(--card-inset);
}

body[data-layout=desktop] .data-table td {
    padding: 14px var(--card-inset);
}

body[data-layout=desktop] .field>small {
    font-size: 11px;
}

body[data-layout=mobile] .fields.flat-command-fields,
body[data-layout=mobile] .fields.flat-schedule-fields,
body[data-layout=mobile] .fields.flat-upload-fields {
    grid-template-columns: minmax(0,1fr);
}

body[data-layout=mobile] .fields.flat-command-fields>.btn,
body[data-layout=mobile] .fields.flat-upload-fields>.btn,
body[data-layout=mobile] .flat-schedule-actions {
    grid-column: 1;
    grid-row: auto;
}

body[data-layout=mobile] .flat-inline-help>summary {
    min-height: 44px;
}

body[data-layout=desktop] .facts>div>dt {
    margin: 0;
}

body[data-layout=desktop] .facts {
    grid-template-columns: repeat(auto-fit,minmax(min(100%,150px),1fr));
}

body[data-layout=desktop] .facts>div:last-child:nth-child(odd) {
    grid-column: auto;
}

body[data-layout=desktop] .source-runtime>:is(.flat-note,[role=status]) {
    grid-column: 1/-1;
}

body[data-layout=desktop] .fields.flat-threshold-fields {
    grid-template-columns: 160px max-content;
}

body[data-layout=mobile] .flat-cabinet-access {
    grid-template-columns: 32px minmax(0,1fr);
    align-items: start;
}

body[data-layout=mobile] .flat-cabinet-access>.cabinet-login-action {
    grid-column: 2;
}

body[data-layout=mobile] .flat-cabinet-access .btn {
    white-space: normal;
    text-align: left;
}

body[data-layout=mobile] .flat-person-card>summary {
    grid-template-columns: minmax(0,1fr) 20px;
    gap: 8px 12px;
}

body[data-layout=mobile] .flat-person-card>summary>.icon {
    grid-column: 2;
    grid-row: 1 / 3;
}

body[data-layout=mobile] .flat-native-dialog>.flat-form-actions>.btn {
    flex: 0 1 auto;
}

body[data-layout=mobile] .flat-checkgrid {
    grid-template-columns: minmax(0,1fr);
}

body[data-layout=mobile] .flat-person-card {
    padding: 14px;
}

body[data-layout=mobile] .flat-native-dialog {
    padding: 18px;
}

body[data-layout=mobile] .flat-cost-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

body[data-layout=mobile] .flat-cost-row form {
    max-width: none;
}

body[data-layout=mobile] .breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid var(--quiet);
    font-size: 11px;
}

body[data-layout=mobile] .breakdown-row.total {
    color: var(--lime);
}

body[data-layout=desktop] .flat-detail-group .facts {
    grid-template-columns: repeat(4,minmax(0,1fr));
}

body[data-layout=mobile] [data-price-caption] {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px 8px;
}

body[data-layout=mobile] .flat-form-actions[data-price-navigation] {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
    gap: 8px;
}

body[data-layout=mobile] .flat-form-actions[data-price-navigation]>.btn {
    width: auto;
    padding-inline: 6px;
    font-size: 11px;
}

body[data-layout=mobile] .flat-edit-select {
    display: grid;
    place-items: center;
    flex: none;
    width: 44px;
    min-height: 44px;
}

body[data-layout=mobile] .flat-fold>summary {
    min-height: 44px;
}

body[data-layout=mobile] .flat-history-item {
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

body[data-layout=mobile] .flat-history-value {
    justify-content: flex-end;
    width: 100%;
}

body[data-layout=mobile] .flat-form label:has(>input[type=checkbox],>input[type=radio]) {
    min-height: 44px;
}

body[data-layout=desktop] .data-table :is(td,th):has(>time) {
    width: 1%;
}

body[data-layout=mobile] .m-fold>.flat-stack {
    padding: 12px 14px 14px;
}

body[data-layout=mobile] .panel-title {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

body[data-layout=mobile] .panel-title>div {
    min-width: 0;
    flex: 1;
}

body[data-layout=mobile] .panel-title p {
    color: var(--muted);
    font-size: 11px;
    margin-top: 4px;
}

body[data-layout=mobile] .actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

body[data-layout=mobile] .list-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    min-width: 0;
}

body[data-layout=mobile] .list-row+.list-row {
    border-top: 1px solid var(--quiet);
}

body[data-layout=mobile] .list-copy {
    min-width: 0;
    flex: 1;
}

body[data-layout=mobile] .list-copy strong {
    display: block;
    font-size: 12px;
    overflow-wrap: anywhere;
}

body[data-layout=mobile] .list-copy p {
    font-size: 10px;
    color: var(--muted);
    margin-top: 4px;
    overflow-wrap: anywhere;
}

body[data-layout=mobile] .flat-form input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]),
body[data-layout=mobile] .flat-form select,
body[data-layout=mobile] .flat-input {
    font-size: 16px;
}

body[data-layout=mobile] .import-safety {
    display: flex;
    align-items: start;
    gap: 10px;
    margin-top: 16px;
    font-size: 12px;
}

body[data-layout=mobile] .import-safety>.icon {
    color: var(--lime);
}

body[data-layout=mobile] .import-safety p {
    font-size: 11px;
    color: var(--muted);
    margin-top: 4px;
}

body[data-layout=mobile] .m-card-head:has(>.flat-inline),
body[data-layout=mobile] .m-card-head:has(>.segment),
body[data-layout=mobile] .m-card-head:has(>form) {
    flex-wrap: wrap;
}

body[data-layout=mobile] .m-card-head>.flat-inline,
body[data-layout=mobile] .m-card-head>.segment,
body[data-layout=mobile] .m-card-head>form {
    flex: 1 1 100%;
}

body[data-layout=mobile] .m-card-head>form>.btn {
    width: 100%;
}

body[data-layout=mobile] .m-fold>.flat-note,
body[data-layout=mobile] .m-fold>.list-row {
    margin: 0 14px 14px;
}

body[data-layout=mobile] .m-price-hero>div>small {
    display: block;
    color: var(--muted);
    font-size: 10px;
    margin-top: 5px;
}

body[data-layout=mobile] .eyebrow {
    font-size: 9px;
    color: var(--subtle);
    letter-spacing: .7px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

body[data-layout=mobile] .action-footer,
body[data-layout=mobile] .toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0;
}

body[data-layout=mobile] .action-footer>.flat-inline {
    width: 100%;
}

body[data-layout=mobile] .action-footer .btn {
    flex: 1 1 140px;
}

body[data-layout=mobile] .m-save-bar {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 8px;
    margin: 14px 0;
}

body[data-layout=mobile] .m-save-bar>.primary {
    grid-column: 1/-1;
}

body[data-layout=mobile] .m-save-bar p {
    font-size: 11px;
}

body[data-layout=mobile] .row-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

body[data-layout=mobile] .row-link:hover {
    color: var(--lime);
}

body[data-layout=mobile] .flat-records [data-mobile-wide],
body[data-layout=mobile] .flat-records tfoot th {
    grid-column: 1/-1;
}

body[data-layout=mobile] .flat-records tfoot td:empty {
    display: none;
}

body[data-layout=mobile] .m-record-primary,
body[data-layout=mobile] .m-record-title strong {
    font-size: 15px;
    font-weight: 750;
}

body[data-layout=desktop] .empty-state:has(>.btn):not(:has(>.btn~.btn,>.icon)) {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 4px 16px;
}

body[data-layout=desktop] .empty-state:has(>.btn):not(:has(>.btn~.btn,>.icon))>p {
    grid-column: 1;
    max-width: none;
}

body[data-layout=desktop] .empty-state:has(>.btn):not(:has(>.btn~.btn,>.icon))>.btn {
    grid-column: 2;
    grid-row: 1/3;
    align-self: center;
    margin: 0;
}

body[data-layout=mobile] [data-owner-access-warning] .notice {
    grid-template-columns: minmax(0,1fr);
    gap: 4px;
}

body[data-layout=mobile] [data-owner-access-warning] .notice>.btn {
    justify-self: start;
}

body[data-layout=mobile] .flat-access-help>summary {
    min-height: 44px;
}

body[data-layout=mobile] .flat-records .table-scroll {
    overflow: visible;
}

body[data-layout=mobile] .flat-records table,
body[data-layout=mobile] .flat-records tbody {
    display: block;
}

body[data-layout=mobile] .flat-records thead {
    display: none;
}

body[data-layout=mobile] .flat-records tr {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px;
    background: var(--surface);
    border-radius: 10px;
    margin: 12px 0;
    padding: 15px;
}

body[data-layout=mobile] .flat-records td {
    display: block;
    border: 0;
    padding: 0;
    font-size: 14px;
    text-align: left;
    white-space: normal;
    min-width: 0;
}

body[data-layout=mobile] .flat-records td::before {
    content: attr(data-label);
    color: var(--muted);
    text-align: left;
    font-size: 11px;
    display: block;
    margin-bottom: 4px;
}

body[data-layout=mobile] .flat-records td:first-child {
    grid-column: 1/-1;
    padding-bottom: 10px;
    border-bottom: 0;
    font-size: 15px;
    font-weight: 750;
}

body[data-layout=mobile] .flat-records td:first-child .text-link {
    font-size: inherit;
    color: var(--text);
}

body[data-layout=mobile] .m-card:has(>.flat-records),
body[data-layout=mobile] .m-card:has(>.table-scroll) {
    background: transparent;
    padding: 0;
}

body[data-layout=mobile] .m-card:has(>.flat-records)>.m-card-head,
body[data-layout=mobile] .m-card:has(>.table-scroll)>.m-card-head {
    padding: 0 3px;
}

body[data-layout=mobile] .m-record {
    background: var(--surface);
    border-radius: 10px;
    padding: 15px;
}

body[data-layout=mobile] .flat-records td:first-child::before {
    display: none;
}

body[data-layout=mobile] .flat-records td:only-child {
    display: block;
    text-align: left;
    border: 0;
    padding: 0;
}

body[data-layout=mobile] .flat-records td:only-child::before {
    display: none;
}

body[data-layout=mobile] .flat-form-actions>.btn {
    flex: 1 1 100%;
    white-space: normal;
}

body[data-layout=mobile] .flat-form-actions>.flat-note {
    margin: 0;
    width: 100%;
}

body[data-layout=mobile] .flat-inline>.btn {
    white-space: normal;
}

body[data-layout=mobile] .flat-cabinet-status {
    flex-basis: 100%;
}

body[data-layout=mobile] .flat-cabinet-status:has(>.flat-note) {
    display: grid;
    grid-template-columns: 16px minmax(0,1fr);
    align-items: start;
    gap: 2px 10px;
}

body[data-layout=mobile] .flat-cabinet-status:has(>.flat-note) .flat-cabinet-status-symbol {
    grid-row: 1/3;
    margin-top: 2px;
}

body[data-layout=mobile] .flat-cabinet-status>.flat-note {
    grid-column: 2;
    margin: 0;
    font-size: 10px;
}

body[data-layout=mobile] .flat-tenant {
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
}

body[data-layout=mobile] .plan-summary>div>strong {
    font-size: 24px;
}

body[data-layout=mobile] .flat-pagination>.btn {
    max-width: 45%;
    white-space: normal;
}

body[data-layout=mobile] .facts {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 8px;
    margin: 14px 0;
}

body[data-layout=mobile] .facts>div {
    padding: 11px 12px;
    background: var(--inset);
    border-radius: 5px;
    min-width: 0;
}

body[data-layout=mobile] .facts dt {
    font-size: 10px;
    color: var(--muted);
    margin-bottom: 0;
    line-height: 1.4;
}

body[data-layout=mobile] .facts dd {
    margin: 0;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

/* Каркас и навигация */

.m-topbar {
    position: sticky;
    top: 0;
    z-index: 25;
    background: #0e1012;
    padding: env(safe-area-inset-top,0px) 12px 8px;
    border-bottom: 1px solid var(--quiet);
}

.m-brand-row {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 48px;
}

.m-brand {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-right: auto;
    min-width: 0;
    min-height: 44px;
}

.m-brand img {
    display: block;
    width: 32px;
    height: auto;
    flex: none;
}

.m-brand>span {
    display: grid;
    justify-items: end;
    gap: 2px;
}

.m-brand strong {
    font-size: 18px;
    line-height: 1;
    letter-spacing: -.65px;
}

.m-brand small {
    color: var(--lime);
    font-size: 8px;
    line-height: 1;
    letter-spacing: .1px;
}

.m-context {
    display: grid;
    grid-template-columns: 104px minmax(0,1fr);
    align-items: center;
    gap: 8px;
    min-height: 44px;
}

.market-switch {
    gap: 4px;
}

:where(html[data-layout=mobile]) .market-switch {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 7px;
    width: 104px;
    flex: none;
    height: 44px;
}

.market-switch button {
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 4px;
}

:where(html[data-layout=mobile]) .market-switch button {
    background: var(--inset);
    min-width: 0;
    padding: 0;
    font-size: 11px;
    font-weight: 750;
}

:where(html[data-layout=mobile]) .market-switch [data-market=wb].active {
    background: var(--wb);
    color: white;
}

:where(html[data-layout=mobile]) .market-switch [data-market=ozon].active {
    background: var(--ozon);
    color: white;
}

.m-context:has(.market-switch>button:only-child) {
    grid-template-columns: 52px minmax(0,1fr);
}

.m-context .market-switch:has(>button:only-child) {
    width: 52px;
    grid-template-columns: 1fr;
}

.m-context>.select-wrap {
    flex: 1;
    min-width: 0;
}

.m-context .select-button {
    min-height: 44px;
    font-size: 11px;
    font-weight: 650;
    padding: 7px 10px;
}

.m-context .select-button .icon {
    width: 15px;
    height: 15px;
}

.m-content {
    padding: 16px 12px calc(88px + var(--safe-bottom));
    min-width: 0;
}

.m-shell.has-selection .m-content {
    padding-bottom: calc(152px + var(--safe-bottom));
}

.m-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    min-width: 0;
}

.m-heading>div:first-of-type {
    flex: 1;
    min-width: 0;
}

.m-heading h1 {
    overflow-wrap: break-word;
}

.m-heading p {
    font-size: 11px;
    color: var(--muted);
    margin-top: 5px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.m-heading-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: none;
}

.m-heading-actions [aria-label="К каталогу"]>.icon {
    transform: rotate(180deg);
}

.m-dock {
    position: fixed;
    z-index: 30;
    bottom: calc(8px + var(--safe-bottom));
    left: 50%;
    transform: translateX(-50%);
    width: calc(min(100%,520px) - 24px);
    height: 66px;
    padding: 6px;
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg);
    box-shadow: 0 4px 24px #0009;
}

.m-dock>a,
.m-dock>button {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    min-height: 48px;
}

.m-dock .active {
    color: var(--lime);
    background: #232b1b;
    box-shadow: inset 0 0 0 1px #3c4a26;
}

.m-dock .icon {
    width: 20px;
    height: 20px;
}

:where(html[data-layout=desktop]) .shell {
    display: grid;
    grid-template-columns: 218px minmax(0,1fr);
    min-height: 100vh;
}

:where(html[data-layout=desktop]) .sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    background: var(--nav);
    border-right: 1px solid var(--quiet);
    display: flex;
    flex-direction: column;
    padding: 28px 16px 16px;
}

:where(html[data-layout=desktop]) .brand {
    display: flex;
    gap: 9px;
    align-items: center;
    padding: 0 6px 26px;
    color: var(--text);
    min-height: 67px;
}

:where(html[data-layout=desktop]) .brand img {
    display: block;
    width: 46px;
    height: auto;
    flex: none;
}

:where(html[data-layout=desktop]) .brand>span {
    display: grid;
    justify-items: end;
    gap: 5px;
    min-width: 0;
}

:where(html[data-layout=desktop]) .brand strong {
    display: block;
    font: 750 22px/1 Manrope,sans-serif;
    letter-spacing: -.65px;
    white-space: nowrap;
}

:where(html[data-layout=desktop]) .brand small {
    display: block;
    font: 500 10px/1 Manrope,sans-serif;
    letter-spacing: .15px;
    color: var(--lime);
    margin: 0;
}

:where(html[data-layout=desktop]) .nav-list {
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--muted);
    border-radius: 7px;
}

:where(html[data-layout=desktop]) .nav-item {
    padding: 8px 10px;
    font-size: 11px;
    position: relative;
    min-height: 34px;
    margin-block: 4px;
}

:where(html[data-layout=desktop]) .nav-item .icon {
    width: 18px;
    height: 18px;
}

:where(html[data-layout=desktop]) .nav-item:hover {
    background: var(--raised);
    color: var(--text);
}

.nav-item.active::after {
    content: none;
}

:where(html[data-layout=desktop]) .nav-item.active::after {
    position: absolute;
    right: 10px;
    width: 4px;
    height: 4px;
    background: var(--lime);
    transform: rotate(45deg);
}

:where(html[data-layout=desktop]) .nav-item .count {
    margin-left: auto;
}

:where(html[data-layout=desktop]) .workspace {
    min-width: 0;
}

:where(html[data-layout=desktop]) .topbar {
    height: 58px;
    padding: 0 32px;
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: flex-start;
}

:where(html[data-layout=desktop]) .topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

:where(html[data-layout=desktop]) .market-switch {
    display: flex;
    align-items: center;
}

:where(html[data-layout=desktop]) .market-switch button {
    width: 45px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    font-weight: 800;
    font-size: 10px;
}

:where(html[data-layout=desktop]) .market-switch .active[data-market=wb] {
    background: var(--wb);
    border-color: var(--wb);
    color: white;
}

:where(html[data-layout=desktop]) .market-switch .active[data-market=ozon] {
    background: var(--ozon);
    border-color: var(--ozon);
    color: white;
}

:where(html[data-layout=desktop]) .topbar .data-time {
    font-size: 10px;
    color: var(--subtle);
    margin-left: auto;
}

:where(html[data-layout=desktop]) .page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

:where(html[data-layout=desktop]) .page-heading .eyebrow {
    margin-bottom: 7px;
}

:where(html[data-layout=desktop]) .page-heading p {
    color: var(--muted);
    font-size: 11px;
    margin-top: 8px;
}

:where(html[data-layout=desktop]) .page-heading .actions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 3px;
}

:where(html[data-layout=desktop]) .mobile-brand {
    display: none;
}

.drawer>.nav-list {
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
}

:where(html[data-layout=mobile]) .drawer>.nav-list {
    overflow: auto;
    overscroll-behavior: contain;
    min-height: 0;
    flex: 1;
    padding: 4px 1px 16px;
    padding-inline-end: 12px;
}

:where(html[data-layout=mobile]) .drawer .nav-section {
    margin-bottom: 18px;
}

:where(html[data-layout=mobile]) .drawer .nav-section h3 {
    color: var(--subtle);
    font-size: 10px;
    letter-spacing: .9px;
    text-transform: uppercase;
    padding: 0 9px 7px;
}

:where(html[data-layout=mobile]) .nav-item {
    min-height: 46px;
    padding: 10px;
    font-size: 13px;
    margin: 2px 0;
    margin-block: 4px;
}

:where(html[data-layout=mobile]) .nav-item>span {
    flex: 1;
    min-width: 0;
}

:where(html[data-layout=mobile]) .nav-item>.icon:first-child {
    width: 19px;
    height: 19px;
}

:where(html[data-layout=mobile]) .nav-item>.icon:last-child {
    width: 13px;
    height: 13px;
    color: var(--subtle);
}

.nav-item.active {
    color: var(--lime);
    background: #232b1b;
    box-shadow: inset 0 0 0 1px #3c4a26;
}

:where(html[data-layout=desktop]) .viewer-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: none;
}

:where(html[data-layout=desktop]) .viewer-brand img {
    width: 29px;
    height: auto;
    display: block;
}

:where(html[data-layout=desktop]) .viewer-brand strong {
    font: 500 19px Oswald;
}

:where(html[data-layout=desktop]) .viewer-brand span {
    font: 700 9px Manrope;
    letter-spacing: 1px;
    color: var(--muted);
    margin-left: 10px;
}

:where(html[data-layout=desktop]) .drawer .nav-item {
    font-size: 12px;
    min-height: 44px;
}

.sidebar>.nav-list {
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
    padding-inline-end: 12px;
}

:where(html[data-layout=desktop]) .drawer>.nav-list {
    padding-inline-end: 12px;
}

.nav-section {
    margin-bottom: 12px;
}

.nav-section>summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    padding: 10px;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--subtle);
    font-weight: 700;
}

.nav-section>summary::-webkit-details-marker {
    display: none;
}

.nav-section>summary:focus-visible {
    outline: none;
    border-radius: 7px;
    background: var(--raised);
    color: var(--text);
    box-shadow: inset 0 0 0 1px var(--line);
}

.nav-section>summary>.icon {
    width: 12px;
    height: 12px;
}

.nav-section[open]>summary>.icon {
    transform: rotate(180deg);
}

.m-dock>:is(a,button):focus-visible,
.nav-item:focus-visible {
    outline: 2px solid var(--lime);
    outline-offset: -2px;
}

button.nav-item {
    width: 100%;
    text-align: left;
    background: transparent;
}

.flat-log-context {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 12px;
    font-size: 11px;
}

.flat-log-context>span {
    color: var(--muted);
}

.flat-log-context>strong {
    font-size: 12px;
}

.topbar .flat-access-indicators {
    gap: 12px;
    flex-wrap: nowrap;
}

.topbar .flat-access-light {
    font-size: 10px;
    white-space: nowrap;
}

.topbar-actions>.avatar {
    display: grid;
    place-items: center;
    flex: none;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 6px;
    background: transparent;
    border: 0;
    border-radius: 50%;
}

.flat-session {
    --access-color: var(--lime);
    position: relative;
    flex: none;
}

.flat-session.is-expiring {
    --access-color: var(--amber);
}

.flat-session[data-access-state=stopped] {
    --access-color: var(--red);
}

.flat-session-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 4px 10px;
    color: var(--text);
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--control-radius);
    text-align: left;
    white-space: nowrap;
}

.flat-session-trigger:focus-visible {
    outline: 2px solid var(--access-color);
    outline-offset: 2px;
}

.flat-session-glyph {
    position: relative;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    flex: none;
    color: var(--access-color);
}

.flat-session-glyph svg {
    width: 22px;
    height: 22px;
}

.flat-session-signal {
    position: absolute;
    top: 0;
    right: -1px;
    width: 6px;
    height: 6px;
    background: var(--access-color);
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--bg);
}

.flat-session-pause,
.flat-session[data-access-state=stopped] .flat-session-hands {
    display: none;
}

.flat-session[data-access-state=stopped] .flat-session-pause {
    display: initial;
}

.flat-session[data-access-state=stopped] .flat-session-signal {
    border-radius: 1px;
}

.flat-session-copy {
    display: grid;
    gap: 1px;
}

.flat-session-caption {
    font-size: 9px;
    line-height: 1.25;
    color: var(--muted);
}

.flat-session-copy strong {
    font-size: 12px;
    line-height: 1.4;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.flat-session-detail {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 70;
    width: 288px;
    max-width: calc(100vw - 24px);
    padding: 16px;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    white-space: normal;
}

.flat-session-detail>strong {
    font-size: 14px;
}

.flat-session-deadline,
.flat-session-remaining {
    margin: 8px 0 0;
    font-size: 12px;
    line-height: 1.6;
    color: var(--muted);
}

.flat-session-deadline time {
    display: block;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.flat-session-detail>.btn {
    width: 100%;
    margin-top: 16px;
}

body[data-layout=mobile] .flat-session-trigger {
    gap: 6px;
    min-width: 64px;
    padding: 4px 6px;
}

body[data-layout=mobile] .flat-session-caption {
    font-size: 8px;
}

body[data-layout=mobile] .flat-session-detail {
    position: fixed;
    top: calc(52px + env(safe-area-inset-top,0px));
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
}

.flat-tenant {
    margin: 0;
    min-width: 0;
    max-width: 240px;
}

.flat-tenant-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flat-tenant-label {
    color: var(--muted);
}

/* Кнопки и действия */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--raised);
    font-weight: 700;
    border: 1px solid var(--line);
    border-radius: var(--control-radius);
}

:where(html[data-layout=desktop]) .btn {
    min-height: 36px;
    padding: 8px 12px;
    white-space: nowrap;
    line-height: 1.3;
}

:where(html[data-layout=desktop]) .btn:hover {
    background: #2e3439;
    border-color: #58636c;
}

:where(html[data-layout=desktop]) .btn.primary:hover {
    background: #daff73;
    border-color: #daff73;
}

.btn.quiet {
    background: transparent;
    color: var(--muted);
    border-radius: var(--control-radius);
}

:where(html[data-layout=desktop]) .btn.quiet {
    border-color: transparent;
    padding-inline: 10px;
}

:where(html[data-layout=desktop]) .btn.quiet:hover {
    background: var(--inset);
    border-color: var(--line);
    color: var(--text);
}

.btn.small {
    font-size: 11px;
}

:where(html[data-layout=desktop]) .btn.small {
    min-height: 30px;
    padding: 5px 9px;
}

:where(html[data-layout=desktop]) .btn .icon {
    width: 17px;
    height: 17px;
}

.icon-btn {
    border: 1px solid var(--line);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    padding: 0;
    border-radius: var(--control-radius);
}

:where(html[data-layout=desktop]) .icon-btn {
    width: 32px;
    height: 32px;
    background: transparent;
}

:where(html[data-layout=desktop]) .icon-btn:hover {
    background: var(--raised);
    color: var(--lime);
}

:where(html[data-layout=desktop]) .tab .btn-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1.3;
}

.m-footer .text-link {
    font-size: 10px;
    min-height: 44px;
}

:where(html[data-layout=mobile]) .btn {
    padding: 10px 12px;
    min-height: 44px;
    min-width: 44px;
    color: var(--text);
    font-size: 12px;
    line-height: 1.4;
    max-width: 100%;
    text-align: center;
    overflow-wrap: break-word;
}

:where(html[data-layout=mobile]) .btn-text {
    min-width: 0;
}

.btn.primary {
    background: var(--lime);
    border-color: var(--lime);
    color: var(--ink);
    border-radius: var(--control-radius);
}

:where(html[data-layout=mobile]) .btn .icon {
    width: 18px;
    height: 18px;
}

:where(html[data-layout=mobile]) .btn.small {
    padding: 9px 10px;
}

:where(html[data-layout=mobile]) .icon-btn {
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    height: 44px;
    background: var(--raised);
    color: var(--muted);
}

:where(html[data-layout=mobile]) .icon-btn .btn-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
}

:where(html[data-layout=mobile]) .icon-btn .icon {
    width: 19px;
    height: 19px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

:where(html[data-layout=mobile]) .text-link {
    min-height: 44px;
    color: var(--muted);
    font-size: 12px;
}

:where(html[data-layout=mobile]) .text-link .icon {
    width: 17px;
    height: 17px;
}

:where(html[data-layout=mobile]) .stack>.btn {
    width: 100%;
}

.m-card-head>.icon-btn {
    margin: -6px -5px -6px 0;
    background: transparent;
    border-color: transparent;
}

.m-card-head>.btn {
    padding: 7px 8px;
    font-size: 11px;
    background: transparent;
    border-color: transparent;
    color: var(--muted);
    flex: none;
    margin: -5px -6px -5px 0;
}

.m-card>.btn {
    margin-top: 10px;
    width: 100%;
}

.m-section-title>.btn {
    font-size: 11px;
    padding: 8px 10px;
}

:where(html[data-layout=desktop]) .workbench-bar .minor-actions {
    display: flex;
    gap: 6px;
}

:where(html[data-layout=desktop]) .filters .btn {
    font-size: 11px;
    min-height: 36px;
}

.m-fold-body>.btn {
    width: 100%;
    margin-top: 14px;
}

.m-row-tail .btn {
    font-size: 10px;
    padding: 8px;
}

.m-row-tail .icon-btn {
    background: transparent;
    border-color: transparent;
    margin-right: -5px;
}

.m-record-values .record-action .btn {
    width: 100%;
}

:where(html[data-layout=desktop]) .selection-bar .btn {
    background: var(--ink);
    color: var(--lime);
    border-color: var(--ink);
}

:where(html[data-layout=desktop]) .panel-title>.btn,
:where(html[data-layout=desktop]) .panel-title>.icon-btn {
    flex: none;
}

.m-filter-summary>.btn,
.m-list-toolbar>.btn {
    background: transparent;
    border-color: transparent;
    padding: 8px 4px;
    font-size: 11px;
    gap: 5px;
}

.m-list-toolbar>.btn .icon {
    width: 14px;
    height: 14px;
}

.m-pagination>.btn {
    background: transparent;
    border-color: transparent;
    font-size: 11px;
}

:where(html[data-layout=mobile]) .selection-bar>.btn {
    flex: 1;
    background: var(--ink);
    border-color: var(--ink);
    color: var(--lime);
    padding: 9px 8px;
    font-size: 11px;
    gap: 5px;
}

:where(html[data-layout=mobile]) .selection-bar>.icon-btn {
    width: 44px;
    min-width: 44px;
    height: 44px;
    background: transparent;
    border-color: transparent;
    color: var(--ink);
}

.m-savebar>.btn {
    width: 100%;
}

:where(html[data-layout=mobile]) .range-editor>.btn {
    width: 100%;
    color: var(--red);
    background: transparent;
    border-color: var(--line);
}

.m-verification>.icon-btn {
    background: transparent;
    border-color: transparent;
    width: 30px;
    min-width: 30px;
    height: 44px;
}

:where(html[data-layout=desktop]) .data-table .numeric-cell .btn {
    margin-left: auto;
}

:where(html[data-layout=desktop]) .upload-result .btn {
    flex: none;
}

:where(html[data-layout=mobile]) .upload-result>.btn {
    width: 100%;
}

:where(html[data-layout=desktop]) .source-footer .btn {
    padding-inline: 5px;
    font-size: 9px;
    min-height: 28px;
}

:where(html[data-layout=desktop]) .icon-btn .btn-text {
    display: none;
}

:where(html[data-layout=desktop]) .resource-row .btn {
    flex: none;
}

.m-concept>.btn {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--lime);
    width: 100%;
}

.m-component-links>.btn {
    flex: 1;
    padding: 9px;
    font-size: 11px;
}

:where(html[data-layout=mobile]) .dialog-head .icon-btn {
    background: transparent;
    border-color: transparent;
    margin-right: -6px;
}

:where(html[data-layout=mobile]) .dialog-actions {
    position: sticky;
    bottom: calc(-16px - var(--safe-bottom));
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background: var(--surface);
    padding: 14px 0 calc(16px + var(--safe-bottom));
    margin: 0 0 calc(-16px - var(--safe-bottom));
    border-top: 1px solid var(--quiet);
    margin-top: 16px;
    z-index: 1;
}

:where(html[data-layout=mobile]) .dialog-actions>.btn {
    flex: 1 1 120px;
    min-width: 0;
}

:where(html[data-layout=mobile]) .dialog-actions>.btn.primary {
    flex-basis: 100%;
    order: -1;
}

:where(html[data-layout=mobile]) .dialog .component-row>.btn {
    flex: 1;
}

:where(html[data-layout=desktop]) .dialog .dialog-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 20px;
}

.back-link .icon {
    transform: rotate(180deg);
}

.flat-stack>.flat-form-actions {
    margin-top: 0;
}

.btn.danger {
    color: var(--red);
    border-color: #663b40;
}

.fields.flat-command-fields>.btn {
    grid-column: 3;
    grid-row: 2;
    align-self: start;
}

.fields.flat-upload-fields>.btn {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
}

.flat-schedule-actions {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.facts+.flat-form-actions {
    margin-top: 12px;
}

.btn:not(.small),
.flat-form .btn:not(.small) {
    min-height: var(--control-height);
}

.m-searchbar>.icon-btn {
    min-height: var(--control-height);
    height: var(--control-height);
    width: var(--control-height);
}

.flat-native-dialog .dialog-head>.icon-btn {
    min-width: 44px;
    min-height: 44px;
    font-size: 20px;
}

.flat-dialog-store {
    margin: 0 0 16px;
}

.flat-native-dialog.flat-login-dialog {
    width: min(400px,calc(100vw - 28px));
}

.flat-login-dialog .dialog-head {
    gap: 12px;
    margin-bottom: 4px;
}

.flat-login-code {
    text-align: center;
    letter-spacing: .2em;
    font-variant-numeric: tabular-nums;
}

.flat-login-restart {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    margin-top: 8px;
    padding: 0;
    background: transparent;
    color: var(--muted);
    font-size: 12px;
}

.flat-native-dialog>.flat-form-actions {
    justify-content: flex-end;
    margin-top: 10px;
}

.flat-form .fields>.btn {
    align-self: end;
}

.flat-cost-form .btn {
    height: 44px;
}

.flat-form-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 16px;
    grid-column: 1/-1;
}

.fields>.flat-form-actions {
    margin-top: 4px;
}

.flat-form .fields:has(>.btn) {
    align-items: end;
}

.empty-state>.btn {
    margin-top: 6px;
}

/* Списки и таблицы */

.m-fold-body .m-record {
    background: var(--inset);
}

.m-records {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.m-record {
    background: var(--inset);
    border-radius: 8px;
    padding: 12px;
    min-width: 0;
}

.m-record-primary {
    font-size: 13px;
    font-weight: 650;
    min-width: 0;
    overflow-wrap: anywhere;
}

.m-record-primary>small {
    display: block;
    font-size: 10px;
    font-weight: 400;
    margin-top: 3px;
}

.m-record-values {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px 12px;
    margin-top: 12px;
}

.m-record-values>div {
    min-width: 0;
}

.m-record-values dt {
    font-size: 11px;
    line-height: 1.5;
    color: var(--subtle);
    margin-bottom: 3px;
}

:where(html[data-layout=desktop]) .pagination {
    display: flex;
    gap: 5px;
}

.flat-catalog-pages {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.flat-catalog-pages>.btn {
    justify-content: center;
    min-width: 36px;
}

body[data-layout=mobile] .flat-catalog-pages>.btn {
    min-width: 44px;
    min-height: 44px;
}

.flat-catalog-pages>[aria-disabled=true] {
    opacity: .4;
}

.flat-catalog-pagination {
    flex-wrap: wrap;
}

body[data-layout=mobile] .flat-catalog-pagination {
    flex-direction: column;
    align-items: stretch;
}

.m-record-values dd {
    font-size: 12px;
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
}

:where(html[data-layout=desktop]) .pagination button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    background: transparent;
    border-radius: 4px;
    width: 27px;
    height: 27px;
    color: var(--muted);
    font-size: 10px;
}

.m-record-values .record-action {
    grid-column: 1/-1;
}

:where(html[data-layout=desktop]) .pagination button.active {
    background: var(--raised);
    color: var(--text);
}

.m-record-values .record-action dt {
    display: none;
}

.m-record-title {
    display: grid;
    grid-template-columns: minmax(0,1fr) 18px;
    gap: 3px 8px;
    align-items: center;
    font-size: 13px;
    line-height: 1.5;
    min-height: 36px;
}

.m-record-title strong {
    grid-column: 1;
    font-weight: 700;
    overflow-wrap: break-word;
}

.m-record-title small {
    grid-column: 1;
    color: var(--muted);
    font-size: 11px;
    font-weight: 400;
}

.m-record-title .icon {
    grid-column: 2;
    grid-row: 1/3;
    width: 16px;
    height: 16px;
    color: var(--subtle);
}

.m-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    color: var(--subtle);
    font-size: 10px;
}

.table-scroll {
    max-width: 100%;
    scrollbar-width: thin;
    scrollbar-color: var(--line) var(--surface);
}

:where(html[data-layout=desktop]) .table-scroll {
    overflow: visible;
    overflow-x: auto;
}

:where(html[data-layout=desktop]) .data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

:where(html[data-layout=desktop]) .data-table th {
    text-align: left;
    font-size: 9px;
    letter-spacing: .15px;
    color: var(--muted);
    font-weight: 650;
    padding: 11px 14px;
    background: var(--raised);
    line-height: 1.5;
}

:where(html[data-layout=desktop]) .data-table td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--quiet);
    vertical-align: middle;
    line-height: 1.55;
}

:where(html[data-layout=desktop]) .data-table tr:last-child td {
    border-bottom: 0;
}

:where(html[data-layout=desktop]) .data-table tbody tr:hover {
    background: transparent;
}

:where(html[data-layout=desktop]) .data-table td .code {
    font-size: 9px;
    margin-top: 4px;
}

:where(html[data-layout=desktop]) .data-table td strong {
    font-size: 11px;
}

:where(html[data-layout=desktop]) .data-table .right {
    text-align: right;
}

:where(html[data-layout=desktop]) .data-table .row-link {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
}

:where(html[data-layout=desktop]) .data-table .row-link .icon {
    width: 14px;
    height: 14px;
    color: var(--subtle);
}

:where(html[data-layout=desktop]) .table-card {
    background: var(--surface);
    border-radius: 7px;
    overflow: hidden;
}

:where(html[data-layout=desktop]) .table-card .panel-title {
    padding: 16px 18px 0;
}

:where(html[data-layout=desktop]) .table-card .filters {
    padding-top: 0;
}

:where(html[data-layout=desktop]) .list-row {
    padding: 11px 0;
    border-bottom: 1px solid var(--quiet);
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
}

:where(html[data-layout=desktop]) .list-row:last-child {
    border-bottom: 0;
}

:where(html[data-layout=desktop]) .list-row .list-copy {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

:where(html[data-layout=desktop]) .list-row strong {
    font-size: 12px;
}

:where(html[data-layout=desktop]) .list-row p {
    font-size: 10px;
    color: var(--muted);
    margin-top: 3px;
}

:where(html[data-layout=desktop]) .list-row .list-meta {
    text-align: right;
    font-size: 10px;
    color: var(--muted);
}

:where(html[data-layout=desktop]) .data-table tbody tr.actionable:hover {
    background: #1d2327;
}

:where(html[data-layout=desktop]) .data-table .numeric-cell {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

:where(html[data-layout=desktop]) .list-row>.icon {
    width: 20px;
    height: 20px;
    flex: none;
    color: var(--muted);
}

.dialog .m-record-values dd {
    font-size: 13px;
}

:where(html[data-layout=mobile]) .dialog .list-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    min-width: 0;
}

:where(html[data-layout=mobile]) .dialog .list-copy {
    flex: 1;
    min-width: 0;
}

:where(html[data-layout=mobile]) .dialog .list-copy strong {
    font-size: 12px;
    display: block;
    overflow-wrap: anywhere;
}

:where(html[data-layout=mobile]) .dialog .list-copy p {
    font-size: 11px;
    color: var(--muted);
    margin-top: 4px;
}

.m-record-heading {
    display: flex;
    gap: 6px;
    align-items: flex-start;
}

.m-record-text {
    min-width: 0;
    flex: 1;
}

.m-record-heading .m-record-title {
    min-height: 24px;
}

.m-record-heading .m-record-title .icon {
    grid-row: 1;
}

.m-record-code {
    display: block;
    margin-top: 3px;
    font-size: 11px;
    line-height: 1.5;
    color: var(--muted);
    overflow-wrap: anywhere;
}

:where(html[data-layout=desktop]) .dialog .data-table {
    margin-bottom: 20px;
}

:where(html[data-layout=desktop]) .pagination button:first-child .icon {
    transform: rotate(180deg);
}

.selectable-code {
    font: inherit;
    user-select: text;
    -webkit-user-select: text;
    -webkit-touch-callout: default;
    cursor: text;
}

.table-card>.panel-title {
    padding-inline: var(--card-inset);
}

.table-card>.tabs {
    margin-inline: var(--card-inset);
}

.table-card>.flat-pagination {
    padding: 0 var(--card-inset) var(--card-inset);
}

.table-card>.facts {
    margin: var(--card-inset);
}

:is(.table-card,.workbench)>.filters:first-child {
    padding-top: var(--card-inset);
}

.data-table :is(td,th).numeric,
.data-table :is(td,th).numeric-cell {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.data-table .facts,
.data-table details {
    text-align: left;
}

:where(html[data-layout=mobile]) .table-scroll {
    overflow-x: auto;
}

.list-copy>small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
}

.list-copy>strong {
    display: block;
}

.list-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.flat-records {
    min-width: 0;
}

.flat-records .data-table {
    width: 100%;
}

.flat-records .data-table td {
    overflow-wrap: anywhere;
}

.data-table time {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.data-table .badge {
    overflow-wrap: normal;
}

.data-table .flat-inline:has(>.avatar) {
    flex-wrap: nowrap;
    white-space: nowrap;
}

.grid-2+.table-card,
.grid-main+.table-card {
    margin-top: 16px;
}

.flat-records .data-table td>div>small,
.flat-records .data-table td>small {
    display: block;
    margin-top: 4px;
    font-size: 10px;
    color: var(--muted);
}

.data-table .empty-state {
    padding: 4px;
}

.flat-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
    font-size: 10px;
}

.flat-pagination .icon {
    width: 16px;
    height: 16px;
}

/* Карточки и секции */

.tabs {
    margin-bottom: var(--component-gap);
}

:where(html[data-layout=desktop]) .tabs {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.m-period-row>.m-segment {
    margin: 0;
}

.m-card {
    background: var(--surface);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 16px;
    min-width: 0;
}

.m-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 13px;
    min-width: 0;
}

.m-card-head>div {
    min-width: 0;
    flex: 1;
}

.m-card-head h2 {
    overflow-wrap: break-word;
}

.m-card-head p {
    font-size: 11px;
    color: var(--muted);
    margin-top: 3px;
    line-height: 1.5;
}

.m-card-head>.icon {
    color: var(--muted);
}

.m-card-head>.badge {
    flex: none;
}

.m-facts {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 10px;
    min-width: 0;
}

.m-facts>div {
    min-width: 0;
}

.m-facts dt {
    font-size: 10px;
    color: var(--muted);
    margin-bottom: 5px;
}

.m-facts dd {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.m-facts .money small {
    font-size: 11px;
}

.m-fold-body>.m-facts {
    grid-template-columns: repeat(2,minmax(0,1fr));
}

.m-fold-body>.m-facts dd {
    font-size: 13px;
}

.m-fold {
    border: 1px solid var(--line);
    border-radius: 9px;
    margin-bottom: 16px;
    min-width: 0;
    overflow: hidden;
}

.m-fold>summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    list-style: none;
    padding: 14px;
    min-height: 54px;
}

.m-fold>summary::-webkit-details-marker {
    display: none;
}

.m-fold>summary>span {
    min-width: 0;
}

.m-fold>summary strong {
    font-size: 13px;
}

.m-fold>summary small {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-top: 3px;
}

.m-fold>summary>.icon {
    width: 16px;
    height: 16px;
    color: var(--muted);
}

.m-fold[open]>summary>.icon {
    transform: rotate(180deg);
}

.m-fold[open]>summary {
    background: var(--surface);
}

.m-fold-body {
    padding: 12px 14px 14px;
    background: var(--surface);
}

.m-fold-body>.facts:first-child {
    margin-top: 0;
}

:where(html[data-layout=desktop]) .panel {
    background: var(--surface);
    border-radius: 7px;
    padding: 18px;
    min-width: 0;
}

:where(html[data-layout=desktop]) .panel-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

:where(html[data-layout=desktop]) .panel-title>div {
    min-width: 0;
    flex: 1;
}

:where(html[data-layout=desktop]) .panel-title p {
    font-size: 11px;
    color: var(--muted);
    margin-top: 5px;
}

:where(html[data-layout=desktop]) .panel-title .icon {
    color: var(--muted);
}

:where(html[data-layout=desktop]) .grid-2+.panel,
:where(html[data-layout=desktop]) .grid-main+.panel,
:where(html[data-layout=desktop]) .panel+.grid-2,
:where(html[data-layout=desktop]) .panel+.grid-main,
:where(html[data-layout=desktop]) .panel+.panel {
    margin-top: 16px;
}

:where(html[data-layout=desktop]) .grid-2>.panel+.panel,
:where(html[data-layout=desktop]) .grid-main>.panel+.panel {
    margin-top: 0;
}

.section-space {
    margin-top: 16px;
}

:where(html[data-layout=desktop]) .toolbar-left,
:where(html[data-layout=desktop]) .toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.m-segment {
    display: flex;
    gap: 4px;
    background: var(--inset);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 3px;
    margin-bottom: 14px;
    min-width: 0;
}

.m-segment>a,
.m-segment>button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
    min-height: 44px;
    padding: 8px 9px;
    border-radius: 5px;
    color: var(--muted);
    background: transparent;
    font-size: 12px;
    font-weight: 650;
    text-align: center;
    line-height: 1.4;
}

.m-segment .active {
    background: var(--raised);
    color: var(--text);
}

.m-segment.small>button {
    padding: 7px 10px;
    font-size: 11px;
}

.m-segment.small {
    flex: none;
}

.m-segment small {
    font-size: 9px;
}

.m-range-stats .m-facts {
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 8px;
}

.m-range .m-card-head h2 {
    font-size: 17px;
}

.m-range .m-card-head p {
    font-size: 10px;
}

:where(html[data-layout=desktop]) .facts {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 8px;
}

:where(html[data-layout=desktop]) .facts.section-space {
    margin-top: 16px;
}

:where(html[data-layout=desktop]) .facts dt {
    font-size: 10px;
    color: var(--muted);
    margin-bottom: 6px;
    line-height: 1.4;
}

:where(html[data-layout=desktop]) .facts dd {
    margin: 0;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

:where(html[data-layout=desktop]) .facts>div {
    padding: 11px 12px;
    background: var(--inset);
    border-radius: 5px;
    min-width: 0;
}

:where(html[data-layout=desktop]) .import-panel {
    display: flex;
    flex-direction: column;
}

.m-card .upload-box+.notice {
    margin-top: 12px;
    margin-bottom: 0;
}

:where(html[data-layout=desktop]) .source-panel .panel-title {
    margin-bottom: 16px;
    align-items: center;
}

:where(html[data-layout=desktop]) .source-panel .panel-title h2 {
    font-size: 18px;
}

:where(html[data-layout=desktop]) .plan-panel .action-footer {
    padding-top: 18px;
    margin-top: 0;
    border-top: 1px solid var(--quiet);
    align-items: center;
}

:where(html[data-layout=desktop]) .plan-panel .action-footer>span {
    font-size: 9px;
    color: var(--subtle);
}

:where(html[data-layout=desktop]) .panel-title>.select-wrap {
    flex: none;
    min-width: 150px;
}

.empty-state>.icon {
    width: 20px;
    height: 20px;
    color: var(--muted);
}

:where(html[data-layout=mobile]) .empty-state>.icon {
    margin-bottom: 3px;
    margin: 0;
}

:where(html[data-layout=mobile]) .dialog .facts {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px;
}

:where(html[data-layout=mobile]) .dialog .facts>div {
    min-width: 0;
}

:where(html[data-layout=mobile]) .dialog .facts dt {
    font-size: 10px;
    color: var(--subtle);
}

:where(html[data-layout=mobile]) .dialog .facts dd {
    margin: 3px 0 0;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.flat-action-grid>.panel {
    display: flex;
    flex-direction: column;
}

.flat-action-grid>.panel>form:last-child {
    margin-top: auto;
    padding-top: 16px;
}

.panel-title:has(>h2):has(>p) {
    flex-direction: column;
    align-items: start;
    gap: 6px;
}

.panel-title>h2 {
    min-width: 0;
}

.panel-title>.segment {
    flex: none;
}

.panel-title>div>strong {
    display: block;
    font-size: 13px;
}

.panel-title:has(>form) {
    flex-wrap: wrap;
    align-items: start;
}

.panel-title:has(>form)>div {
    flex: 1 1 280px;
}

.panel-title>form {
    flex: 1 1 520px;
    min-width: 0;
}

.panel-title>form:not(:has(input:not([type=hidden]),select,textarea)) {
    flex: 0 0 auto;
}

.flat-inline>.flat-note {
    flex-basis: 100%;
    margin: 0;
}

.panel-title:has(>h2)>.flat-note,
.panel-title:has(>h2)>p,
.panel-title>div>small {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin: 4px 0 0;
}

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--component-gap);
    margin-bottom: 16px;
}

.toolbar>.m-segment {
    flex: 1 1 220px;
    margin: 0;
}

.toolbar>label.search {
    flex: 1;
    min-width: min(100%,220px);
}

.toolbar>.badge {
    padding-block: 4px;
}

.panel+.notice {
    margin-top: var(--component-gap);
}

.toolbar>.tabs,
.workbench-bar>.tabs,
.flat-stack>.m-segment,
.flat-stack>.tabs {
    margin-bottom: 0;
}

.flat-task-panel {
    min-width: 0;
}

.fields.flat-command-fields>.flat-note {
    grid-column: 1/-1;
    margin: 0;
}

.flat-section-band {
    padding-top: 16px;
    margin-top: 16px;
    border-top: 1px solid var(--quiet);
}

.flat-section-band>h3 {
    margin-bottom: 12px;
}

.flat-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.flat-detail-row h3 {
    margin: 0;
    font-size: 14px;
}

.flat-detail-row p {
    margin-top: 4px;
}

.flat-log-entry .flat-detail-row {
    align-items: start;
    gap: 6px 12px;
}

.flat-log-entry .flat-note {
    margin: 0;
}

.facts>div:has(>dt):has(>dd) {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 2;
    gap: 6px;
    align-content: start;
}

.facts>div:last-child:nth-child(odd) {
    grid-column: 1/-1;
}

.flat-fold {
    margin-top: 16px;
}

:is(.grid-2,.grid-main)>.flat-fold {
    margin-top: 0;
}

.flat-fold>summary {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    list-style: none;
    padding: 10px 0;
    align-items: center;
}

.flat-fold>summary:has(>.pill)>span:not(.pill):not(.flat-chevron) {
    flex: 1;
}

.flat-fold>summary:not(:has(.flat-chevron,.icon))::after,
.m-fold>summary:not(:has(.flat-chevron,.icon))::after {
    content: "";
    flex: none;
    width: 8px;
    height: 8px;
    border-right: 1px solid var(--muted);
    border-bottom: 1px solid var(--muted);
    transform: rotate(45deg);
    margin: 3px 6px;
}

.flat-fold[open]>summary:not(:has(.flat-chevron,.icon))::after,
.m-fold[open]>summary:not(:has(.flat-chevron,.icon))::after {
    transform: rotate(225deg);
}

.flat-fold>summary small {
    display: block;
    color: var(--muted);
    font-size: 10px;
    font-weight: 500;
    margin-top: 4px;
}

.flat-fold p {
    font-size: 11px;
    color: var(--muted);
    margin: 10px 0;
}

.flat-fold[open]>summary .flat-chevron {
    transform: rotate(225deg);
}

.flat-fold[open]>summary>.icon {
    transform: rotate(180deg);
}

.flat-detail-group .facts {
    margin: 0;
}

.flat-stack {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 16px;
}

.flat-stack>.m-card-head,
.flat-stack>.panel-title {
    margin-bottom: 0;
}

.flat-note {
    color: var(--muted);
    font-size: 11px;
    margin: 12px 0;
    line-height: 1.7;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    text-align: left;
    padding: 16px;
    gap: 6px;
    min-width: 0;
    color: var(--muted);
}

:where(html[data-layout=desktop]) .empty-state>.icon {
    margin: 0;
}

.empty-state:has(>.icon) {
    display: grid;
    grid-template-columns: 20px minmax(0,1fr);
    gap: 4px 12px;
}

.empty-state:has(>.icon)>:not(.icon) {
    grid-column: 2;
}

.flat-stack>.empty-state,
.m-card>.empty-state,
.panel>.empty-state {
    padding: 4px;
}

.empty-state :is(h2,h3,strong) {
    display: block;
    color: var(--text);
    font-size: 16px;
}

.empty-state :is(p,span) {
    display: block;
    max-width: 420px;
    margin: 0;
    font-size: 12px;
    line-height: 1.6;
}

.flat-note.warn {
    color: var(--amber);
}

.flat-fold[open]>summary {
    margin-bottom: 14px;
}

.flat-fold:is(.m-card,.panel):not([open])>summary {
    padding-block: 0;
    margin-bottom: 0;
}

.flat-fold>summary .flat-note {
    margin: 4px 0 0;
}

.flat-mobile-range .m-card-head h2 {
    font-size: 18px;
}

.flat-mobile-range .m-card-head small {
    display: block;
    font-size: 10px;
    margin-top: 4px;
}

.flat-mobile-range .m-card-head>.icon {
    color: var(--muted);
    flex: none;
}

.flat-mobile-range[open] .m-card-head>.icon {
    color: var(--lime);
}

/* Статусы и сообщения */

.muted {
    color: var(--muted);
}

.badge {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    color: var(--muted);
}

:where(html[data-layout=desktop]) .badge {
    gap: 6px;
    font-weight: 700;
    line-height: 1.3;
}

.badge::before {
    content: "";
    background: currentColor;
    border-radius: 50%;
    flex: none;
}

:where(html[data-layout=desktop]) .badge::before {
    width: 5px;
    height: 5px;
}

:where(html[data-layout=desktop]) .badge.error {
    color: var(--red);
}

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 8px;
    background: var(--raised);
    font-size: 10px;
}

:where(html[data-layout=desktop]) .pill {
    gap: 6px;
    border-radius: 4px;
    font-weight: 700;
}

:where(html[data-layout=desktop]) .pill.wb {
    color: #f094dc;
}

:where(html[data-layout=desktop]) .pill.ozon {
    color: #8db4ff;
}

:where(html[data-layout=mobile]) .badge {
    gap: 5px;
    line-height: 1.4;
    font-weight: 650;
    max-width: 100%;
}

:where(html[data-layout=mobile]) .badge::before {
    width: 4px;
    height: 4px;
}

.badge.ok {
    color: var(--lime);
}

.badge.promo {
    color: #f094dc;
}

.badge.warn {
    color: var(--amber);
}

:where(html[data-layout=mobile]) .pill {
    border-radius: 5px;
    color: var(--muted);
}

.notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: var(--component-gap);
}

:where(html[data-layout=mobile]) .notice {
    background: #20262b;
    border-radius: 8px;
    padding: 13px 14px;
}

:where(html[data-layout=mobile]) .notice>.icon {
    color: var(--muted);
    width: 19px;
    height: 19px;
    margin-top: 1px;
}

:where(html[data-layout=mobile]) .notice>div {
    min-width: 0;
}

.notice strong {
    display: block;
}

:where(html[data-layout=mobile]) .notice strong {
    font-size: 12px;
    line-height: 1.45;
}

:where(html[data-layout=mobile]) .notice p {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.6;
    margin-top: 4px;
}

:where(html[data-layout=mobile]) .notice.warn {
    background: #26251e;
}

:where(html[data-layout=mobile]) .notice.warn>.icon {
    color: var(--amber);
}

:where(html[data-layout=desktop]) .stock .muted {
    font-weight: 400;
    font-size: 12px;
}

:where(html[data-layout=desktop]) .notice {
    background: var(--raised);
    border-radius: 6px;
    padding: 12px 14px;
    font-size: 11px;
    color: var(--muted);
    line-height: 1.6;
}

:where(html[data-layout=desktop]) .notice .icon {
    width: 18px;
    height: 18px;
    flex: none;
    color: var(--muted);
    margin-top: 1px;
}

:where(html[data-layout=desktop]) .notice strong {
    color: var(--text);
    font-size: 11px;
    margin-bottom: 3px;
}

:where(html[data-layout=desktop]) .notice.warn {
    background: var(--raised);
    color: var(--muted);
}

:where(html[data-layout=desktop]) .notice.warn strong {
    color: var(--amber);
}

:where(html[data-layout=desktop]) .message .pill {
    margin-top: 10px;
}

:where(html[data-layout=desktop]) .notice p {
    margin: 0;
}

:where(html[data-layout=desktop]) .notice.warn .icon {
    color: var(--amber);
}

:where(html[data-layout=desktop]) .source-identity .badge {
    font-size: 9px;
    flex: none;
}

:where(html[data-layout=desktop]) .import-preview-summary>.badge {
    margin-left: auto;
}

.m-badge-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 16px;
}

:where(html[data-layout=mobile]) .import-preview-summary>.badge {
    grid-column: 1/-1;
}

.toast {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    z-index: 90;
}

:where(html[data-layout=mobile]) .toast {
    bottom: calc(80px + var(--safe-bottom));
    width: calc(min(100%,520px) - 32px);
    border: 1px solid #647447;
    border-radius: 9px;
    background: #273022;
    color: var(--text);
    padding: 13px 15px;
    font-size: 12px;
    line-height: 1.55;
    pointer-events: none;
}

:where(html[data-layout=desktop]) .confirmed-value .badge {
    font-size: 8px;
}

:where(html[data-layout=desktop]) .dialog .notice {
    margin-top: 16px;
}

:where(html[data-layout=desktop]) .toast {
    bottom: 24px;
    max-width: calc(100% - 32px);
    padding: 13px 20px;
    background: var(--lime);
    color: var(--ink);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}

.marketplace {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 24px;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 750;
    color: #fff;
}

.marketplace-wb {
    background: var(--wb);
}

.marketplace-ozon {
    background: var(--ozon);
}

.notice.danger {
    box-shadow: inset 3px 0 var(--red);
}

.notice.danger strong,
.notice.danger>.icon {
    color: var(--red);
}

.notice:has(>strong) {
    flex-wrap: wrap;
    gap: 6px;
}

.notice>strong {
    flex-basis: 100%;
}

.notice>p {
    margin: 0;
}

.notice.flat-warning {
    display: block;
    padding: 0;
}

.flat-cabinet-access>.pill {
    justify-self: start;
}

.flat-person-card>.badge {
    margin-top: 12px;
}

.flat-native-dialog .notice {
    margin: 12px 0;
}

.flat-native-dialog.cabinet-login-dialog--done .notice {
    display: block;
    color: var(--lime);
    font-size: 16px;
    font-weight: 700;
    text-align: center;
}

.flat-login-done {
    width: 100%;
}

[data-owner-access-warning] .notice {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
}

[data-owner-access-warning] .notice>div>span {
    display: block;
    font-size: 11px;
    line-height: 1.6;
    margin-top: 4px;
}

.flat-access-help>summary {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    list-style: none;
    color: var(--muted);
    font-size: 11px;
    cursor: pointer;
}

.flat-access-help>summary::-webkit-details-marker {
    display: none;
}

.flat-access-help>summary>.icon {
    width: 12px;
    height: 12px;
}

.flat-access-help[open]>summary>.icon {
    transform: rotate(180deg);
}

/* Поля и формы */

.check {
    appearance: none;
    flex: none;
    margin: 0;
    cursor: pointer;
    background: var(--inset);
}

:where(html[data-layout=desktop]) .check {
    width: 17px;
    height: 17px;
    border: 1px solid #66717a;
    border-radius: 3px;
}

.check:checked {
    border-color: var(--lime);
}

:where(html[data-layout=desktop]) .check:checked {
    background: var(--lime);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8 3 3 7-7' fill='none' stroke='%23172005' stroke-width='2'/%3E%3C/svg%3E");
}

:where(html[data-layout=desktop]) .check:focus-visible {
    outline-offset: 3px;
}

.field {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

:where(html[data-layout=desktop]) .field {
    gap: 5px;
}

:where(html[data-layout=desktop]) .field>span:first-child {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    min-height: 17px;
}

:where(html[data-layout=desktop]) .input {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--inset);
    border: 1px solid var(--line);
    border-radius: 5px;
    min-height: 38px;
    padding: 0 11px;
}

:where(html[data-layout=desktop]) .input:focus-within {
    border-color: var(--lime);
}

.input input {
    border: 0;
    background: transparent;
    color: var(--text);
    width: 100%;
    min-width: 0;
    font-variant-numeric: tabular-nums;
}

:where(html[data-layout=desktop]) .input input {
    outline: 0;
    height: 36px;
    font-weight: 600;
}

.input .unit {
    color: var(--subtle);
}

:where(html[data-layout=desktop]) .input .unit {
    font-size: 12px;
}

:where(html[data-layout=desktop]) .field small {
    font-size: 10px;
    color: var(--muted);
    min-height: 15px;
}

:where(html[data-layout=desktop]) .field.error .input {
    border-color: var(--red);
}

:where(html[data-layout=desktop]) .field.error small {
    color: var(--red);
}

.select-wrap {
    position: relative;
}

.select-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--inset);
    border: 1px solid var(--line);
    color: var(--text);
    width: 100%;
}

:where(html[data-layout=desktop]) .select-button {
    gap: 9px;
    min-height: 36px;
    height: 36px;
    padding: 0 11px;
    border-radius: 6px;
    font: inherit;
    white-space: nowrap;
}

:where(html[data-layout=desktop]) .select-button .icon:last-child {
    width: 14px;
    height: 14px;
    color: var(--muted);
    margin-left: 8px;
}

:where(html[data-layout=desktop]) .select-button:hover {
    border-color: #697780;
}

:where(html[data-layout=desktop]) .select-button[aria-expanded=true] {
    border-color: var(--lime);
}

:where(html[data-layout=mobile]) .select-wrap {
    min-width: 0;
}

.dropdown {
    position: absolute;
    left: 0;
}

:where(html[data-layout=desktop]) .dropdown {
    top: calc(100% + 6px);
    min-width: 100%;
    width: max-content;
    max-width: min(300px,85vw);
    padding: 5px;
    background: #262b30;
    border: 1px solid #57616a;
    border-radius: 6px;
    z-index: 25;
}

:where(html[data-layout=mobile]) .select-button {
    gap: 8px;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 7px;
    font-size: 12px;
    text-align: left;
}

.dropdown button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: transparent;
    color: var(--muted);
    text-align: left;
}

:where(html[data-layout=desktop]) .dropdown button {
    gap: 12px;
    padding: 10px 12px;
    border-radius: 4px;
    white-space: nowrap;
}

:where(html[data-layout=mobile]) .select-button>span {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

:where(html[data-layout=desktop]) .dropdown button:hover {
    background: #353d44;
    color: var(--text);
}

:where(html[data-layout=mobile]) .select-button>.icon:last-child {
    width: 16px;
    height: 16px;
    color: var(--muted);
}

:where(html[data-layout=desktop]) .dropdown button.selected {
    background: var(--lime);
    color: var(--ink);
}

:where(html[data-layout=mobile]) .dropdown {
    z-index: 45;
    right: 0;
    top: calc(100% + 5px);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 4px;
    background: #262c31;
    max-height: 260px;
    overflow: auto;
}

:where(html[data-layout=desktop]) .dropdown .icon {
    width: 14px;
    height: 14px;
}

:where(html[data-layout=mobile]) .dropdown button {
    gap: 8px;
    min-height: 44px;
    padding: 10px;
    border-radius: 5px;
    font-size: 12px;
}

.search {
    display: flex;
    align-items: center;
    border: 1px solid var(--line);
    background: var(--inset);
    min-width: 0;
}

:where(html[data-layout=desktop]) .search {
    gap: 10px;
    border-radius: 6px;
    padding: 0 12px;
    min-height: 36px;
}

:where(html[data-layout=mobile]) .dropdown button.selected {
    background: #323a40;
    color: var(--text);
}

:where(html[data-layout=mobile]) .dropdown .icon {
    width: 16px;
    height: 16px;
    color: var(--lime);
}

.search input {
    width: 100%;
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--text);
}

:where(html[data-layout=desktop]) .search input {
    outline: 0;
    height: 34px;
    font-size: 12px;
}

.m-period-row>.select-wrap {
    flex: 1;
    min-width: 0;
}

:where(html[data-layout=desktop]) .search .icon {
    width: 17px;
    height: 17px;
    color: var(--muted);
}

:where(html[data-layout=mobile]) .search {
    gap: 8px;
    min-height: 44px;
    padding: 10px 11px;
    border-radius: 7px;
}

:where(html[data-layout=mobile]) .search>.icon {
    width: 18px;
    height: 18px;
    color: var(--muted);
}

:where(html[data-layout=mobile]) .search input {
    outline: 0 !important;
    padding: 0;
    font-size: 16px;
}

:where(html[data-layout=mobile]) .search input::placeholder {
    color: var(--subtle);
}

:where(html[data-layout=mobile]) .search kbd {
    display: none;
}

.search:focus-within {
    border-color: var(--lime);
}

:where(html[data-layout=desktop]) .filters .search {
    flex: 1;
}

:where(html[data-layout=desktop]) .filters .select-wrap {
    min-width: 126px;
}

.selection-bar {
    display: flex;
    align-items: center;
    color: var(--ink);
}

:where(html[data-layout=desktop]) .selection-bar {
    justify-content: space-between;
    background: var(--lime);
    padding: 10px 18px;
    border-radius: 7px;
    margin-bottom: 12px;
    gap: 12px;
}

:where(html[data-layout=desktop]) .selection-bar strong {
    font-size: 12px;
}

.fields {
    display: grid;
}

.m-searchbar .search {
    flex: 1;
}

:where(html[data-layout=desktop]) .fields {
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 6px 12px;
    align-items: stretch;
}

:where(html[data-layout=desktop]) .fields.three {
    grid-template-columns: repeat(3,minmax(0,1fr));
}

:where(html[data-layout=desktop]) .fields .wide {
    grid-column: 1/-1;
}

:where(html[data-layout=desktop]) .range-editor>.fields {
    display: contents;
}

:where(html[data-layout=desktop]) .range-editor .field {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 3;
    gap: 6px;
}

:where(html[data-layout=mobile]) .check {
    width: 24px;
    height: 24px;
    border: 1px solid #77838c;
    border-radius: 5px;
}

:where(html[data-layout=mobile]) .check:checked {
    background: var(--lime);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8 3 3 7-7' fill='none' stroke='%23172005' stroke-width='1.8'/%3E%3C/svg%3E");
}

:where(html[data-layout=mobile]) .selection-bar {
    position: fixed;
    z-index: 29;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(88px + var(--safe-bottom));
    width: calc(min(100%,520px) - 24px);
    padding: 8px;
    gap: 6px;
    background: #c8ff27;
    border-radius: 10px;
    min-height: 60px;
}

:where(html[data-layout=mobile]) .selection-bar>strong {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 17px;
    line-height: 1.2;
    min-width: 45px;
}

:where(html[data-layout=mobile]) .selection-bar>strong>small {
    font-size: 8px;
    font-weight: 600;
}

:where(html[data-layout=mobile]) .fields {
    grid-template-columns: minmax(0,1fr);
    gap: 12px;
    margin: 12px 0 16px;
}

.fields.two {
    grid-template-columns: repeat(2,minmax(0,1fr));
}

:where(html[data-layout=mobile]) .field {
    gap: 6px;
    color: var(--text);
    font-size: 12px;
}

:where(html[data-layout=mobile]) .field>span {
    font-weight: 650;
    line-height: 1.5;
    min-height: 18px;
}

:where(html[data-layout=mobile]) .fields.two .field>span {
    min-height: 18px;
    display: flex;
    align-items: center;
}

:where(html[data-layout=mobile]) .field>.input {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 46px;
    background: var(--inset);
    border: 1px solid var(--line);
    border-radius: 7px;
}

:where(html[data-layout=mobile]) .input input {
    height: 44px;
    padding: 10px 44px 10px 12px;
    font-size: 16px;
    outline: 0 !important;
    border-radius: 7px;
}

:where(html[data-layout=mobile]) .input:not(:has(.unit)) input {
    padding-right: 12px;
}

:where(html[data-layout=mobile]) .input .unit {
    position: absolute;
    right: 10px;
    font-size: 11px;
    pointer-events: none;
}

:where(html[data-layout=mobile]) .field>.input:focus-within {
    border-color: var(--lime);
}

:where(html[data-layout=mobile]) .field>small {
    font-size: 10px;
    line-height: 1.5;
    min-height: 15px;
    color: var(--subtle);
    overflow-wrap: break-word;
}

:where(html[data-layout=mobile]) .field>textarea {
    display: block;
    width: 100%;
    min-height: 112px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--inset);
    color: var(--text);
    font-size: 16px;
    line-height: 1.5;
    resize: vertical;
}

:where(html[data-layout=mobile]) .field>textarea:focus {
    border-color: var(--lime);
}

:where(html[data-layout=mobile]) .field input::placeholder,
:where(html[data-layout=mobile]) .field textarea::placeholder {
    color: var(--subtle);
    font-size: 13px;
}

.m-event-symbol.check {
    color: var(--lime);
}

:where(html[data-layout=desktop]) .fields .select-button {
    min-height: 38px;
    height: 38px;
}

:where(html[data-layout=desktop]) .device-switch button:disabled {
    opacity: .4;
    cursor: default;
}

:where(html[data-layout=mobile]) .dialog-body .fields.two {
    grid-template-columns: minmax(0,1fr);
}

:where(html[data-layout=mobile]) .dialog-body .fields.two .field>span {
    min-height: 18px;
    display: block;
}

:where(html[data-layout=mobile]) .drawer>.search {
    flex: none;
}

:where(html[data-layout=mobile]) .field input[aria-invalid=true] {
    outline: 1px solid var(--amber) !important;
    outline-offset: -1px;
}

:where(html[data-layout=desktop]) .fields+.component-row {
    margin-top: 20px;
}

:where(html[data-layout=desktop]) .device-switch {
    display: flex;
    gap: 3px;
    background: var(--bg);
    padding: 3px;
    border-radius: 5px;
}

:where(html[data-layout=desktop]) .device-switch button {
    font-size: 10px;
    font-weight: 700;
    background: transparent;
    border-radius: 3px;
    padding: 5px 10px;
    min-height: 26px;
    color: var(--muted);
}

:where(html[data-layout=desktop]) .device-switch [aria-pressed=true] {
    background: var(--lime);
    color: var(--ink);
}

:where(html[data-layout=desktop]) .dialog .fields {
    margin-top: 16px;
}

:where(html[data-layout=desktop]) .dialog>.select-wrap {
    margin: 20px 0;
}

:where(html[data-layout=desktop]) .drawer .drawer .search {
    margin-bottom: 20px;
}

.dialog .fields:not(.two):not(.three):not(.one) {
    grid-template-columns: repeat(auto-fit,minmax(min(100%,210px),1fr));
}

.flat-form.flat-inline {
    align-items: end;
}

.fields.flat-command-fields {
    grid-template-columns: repeat(2,minmax(0,1fr)) max-content;
    column-gap: 12px;
}

.fields.flat-upload-fields {
    grid-template-columns: minmax(0,1fr) max-content;
    column-gap: 12px;
}

.fields.flat-upload-fields input[type=file].input {
    padding: 5px;
}

.fields.flat-schedule-fields {
    grid-template-columns: minmax(160px,240px) minmax(0,1fr);
    gap: 6px 16px;
}

.flat-form .input {
    --input-padding-end: var(--control-padding-inline);
    min-height: var(--control-height);
    position: relative;
    padding: 0;
}

.flat-form .input>input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]) {
    border: 0;
    background: transparent;
    padding-inline: var(--control-padding-inline) var(--input-padding-end);
    min-height: calc(var(--control-height) - 2px);
    height: calc(var(--control-height) - 2px);
}

.flat-form .input>select,
.flat-form .input>textarea {
    border: 0;
    background: transparent;
    padding-inline: var(--control-padding-inline) var(--input-padding-end);
}

.flat-form .input:not(:has(select[multiple],textarea)) {
    height: var(--control-height);
}

.flat-form .input>select:not([multiple]) {
    min-height: calc(var(--control-height) - 2px);
    height: calc(var(--control-height) - 2px);
}

.flat-form .input:has(>.unit) {
    --input-padding-end: calc(var(--control-padding-inline) + 28px);
}

.flat-form .input>.unit {
    position: absolute;
    inset-inline-end: var(--control-padding-inline);
    pointer-events: none;
}

.m-searchbar>.search {
    min-height: var(--control-height);
    height: var(--control-height);
}

.flat-form label.upload-box:has(input[type=file]) {
    display: grid;
    grid-template-columns: 32px minmax(0,1fr);
    align-items: center;
    gap: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
}

.flat-form label.upload-box>input[type=file] {
    grid-column: 1/-1;
}

.flat-form label.upload-box>.upload-symbol {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    padding: 0;
    background: var(--raised);
    border-radius: 6px;
    color: var(--lime);
}

.flat-field-preview {
    min-width: 0;
    padding: 8px 0;
}

.flat-field-preview>span {
    display: block;
    color: var(--muted);
    font-size: 10px;
    margin-bottom: 4px;
}

.flat-field-preview strong {
    display: block;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.flat-field-preview small {
    display: block;
    color: var(--subtle);
    font-size: 10px;
    margin-top: 5px;
}

.flat-cabinet-access>.flat-field-preview {
    padding: 0;
}

.flat-field-compact {
    width: 160px;
    max-width: 100%;
}

.flat-field-id {
    width: 220px;
    max-width: 100%;
}

.flat-field-medium {
    width: 320px;
    max-width: 100%;
}

.flat-form-wide {
    grid-column: 1/-1;
}

.flat-fieldset {
    margin-top: 12px;
}

.flat-native-dialog .flat-form {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    gap: 12px;
}

.flat-native-dialog .flat-form>button,
.flat-native-dialog .flat-form>div {
    margin: 0;
}

.flat-form-result.danger {
    color: var(--red);
}

.flat-field-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    color: var(--muted);
    font-weight: 700;
    min-height: 20px;
}

.flat-heading-with-help {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
}

.flat-form input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]),
.flat-form select,
.flat-form textarea,
.flat-input {
    width: 100%;
    min-width: 0;
    background: var(--inset);
    border: 1px solid var(--line);
    color: var(--text);
    min-height: var(--control-height);
    border-radius: var(--control-radius);
    padding: 9px var(--control-padding-inline);
}

.input select {
    width: 100%;
    min-width: 0;
    background: transparent;
    color: var(--text);
    border: 0;
    padding: 9px 0;
}

.input textarea {
    width: 100%;
    min-width: 0;
    background: transparent;
    color: var(--text);
    border: 0;
    padding: 9px 0;
    resize: vertical;
    min-height: 80px;
}

.input select option {
    background: var(--inset);
}

.input select[multiple] {
    min-height: 80px;
}

.flat-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
}

.flat-form label:has(input[type=checkbox]),
.flat-form label:has(input[type=radio]) {
    flex-direction: row;
    align-items: center;
}

.flat-form label[for]:not(:has(input,select,textarea)) {
    margin-bottom: 6px;
}

.flat-form p {
    margin-bottom: 12px;
}

.flat-form .field>small,
.flat-form label>small,
.flat-form>small {
    display: block;
    color: var(--muted);
    font-size: 10px;
}

.flat-form legend {
    color: var(--muted);
    font-weight: 700;
    font-size: 11px;
    padding: 0 6px;
}

.flat-form [aria-invalid=true],
.input:has([aria-invalid=true]) {
    border-color: var(--red);
}

.field-feedback {
    display: grid;
    align-content: start;
    gap: 4px;
    min-width: 0;
    color: var(--muted);
    font-size: 11px;
    font-weight: 400;
}

.field-feedback:empty {
    display: none;
}

.field-feedback>small {
    font-size: inherit;
}

.field-feedback .errorlist {
    margin: 0;
}

.field-help-more>summary {
    width: fit-content;
    color: var(--muted);
    cursor: pointer;
}

.field-help-more>summary:hover {
    color: var(--lime);
}

.field-help-more>div {
    padding-top: 6px;
    line-height: 1.6;
}

.field-help-more ul {
    padding-left: 16px;
}

.fields.one {
    grid-template-columns: minmax(0,1fr);
}

.fields .fields {
    margin: 0;
}

.flat-inline:has(>input[type=checkbox],>input[type=radio]) {
    flex-wrap: nowrap;
}

.flat-form-result {
    margin-top: 10px;
    color: var(--muted);
    font-size: 11px;
}

.flat-form>.action-footer {
    justify-content: flex-start;
    flex-wrap: wrap;
}

.flat-form input[type=checkbox] {
    accent-color: var(--lime);
}

/* Каталог и цены */

:where(html[data-layout=desktop]) .catalog-head {
    display: grid;
    grid-template-columns: minmax(235px,1.65fr) minmax(150px,1fr) minmax(110px,.8fr) minmax(120px,.85fr) minmax(90px,.65fr);
    gap: 16px;
    padding-inline: 20px;
    background: var(--raised);
    padding-block: 12px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 600;
}

:where(html[data-layout=desktop]) .catalog-head>div:not(:first-child) {
    text-align: right;
}

:where(html[data-layout=desktop]) .catalog-head small {
    font-size: 9px;
    display: block;
    color: var(--subtle);
}

:where(html[data-layout=desktop]) .catalog-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 10px;
    color: var(--muted);
    padding: 14px 20px;
    border-top: 1px solid var(--line);
}

.m-catalog-tabs {
    display: grid;
    grid-template-columns: 1.12fr 1.06fr .82fr;
    gap: 4px;
    background: var(--surface);
    padding: 4px;
    border-radius: 9px;
    margin-bottom: 10px;
}

.m-catalog-tabs a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 6px;
    min-height: 42px;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
}

.m-catalog-tabs small {
    font-size: 9px;
    font-variant-numeric: tabular-nums;
    font-weight: 650;
}

.m-catalog-tabs a.active {
    background: var(--lime);
    color: var(--ink);
}

.m-catalog-tabs a.active small {
    background: #b1df24;
    color: var(--ink);
    padding: 2px 4px;
    border-radius: 3px;
}

.m-product {
    background: var(--surface);
    border-radius: 9px;
    padding: 13px 14px;
    margin-bottom: 8px;
    min-width: 0;
}

.m-product-header {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    min-width: 0;
}

.m-product-heading {
    min-width: 0;
    flex: 1;
}

.m-product-title {
    display: grid;
    grid-template-columns: minmax(0,1fr) 16px;
    gap: 8px;
    align-items: start;
}

.m-product-identifiers {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.5;
    overflow-wrap: anywhere;
    margin-top: 4px;
}

.m-product-identifiers>span {
    color: var(--subtle);
}

.m-product-header strong {
    font-size: 14px;
    line-height: 1.45;
    font-weight: 750;
    overflow-wrap: break-word;
    grid-column: 1;
}

.m-product-header small {
    font-size: 11px;
    color: var(--muted);
    grid-column: 1;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.m-product-header small>span {
    color: var(--subtle);
}

.m-product-title>.icon {
    grid-column: 2;
    color: var(--subtle);
    width: 15px;
    height: 15px;
    margin-top: 2px;
}

.m-product-money {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px;
    margin: 12px 0 10px;
}

.m-product-money>div {
    min-width: 0;
}

.m-product-money>div>span {
    display: block;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.5;
    margin-bottom: 3px;
}

.m-product-money strong {
    display: block;
    font-size: 21px;
    line-height: 1.2;
    font-weight: 750;
    letter-spacing: -.5px;
}

.m-product-money>div:last-child strong {
    font-size: 18px;
}

.m-product-money>div>small {
    display: block;
    color: var(--muted);
    font-size: 10px;
    margin-top: 3px;
}

.m-product-bottom {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    border-top: 1px solid var(--quiet);
    padding-top: 9px;
}

.m-product-bottom>.badge {
    flex: 1;
    min-width: 0;
    font-size: 10px;
}

.m-product-bottom>span:not(.badge) {
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
    font-size: 11px;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.m-product-bottom>span .icon {
    width: 13px;
    height: 13px;
    color: var(--subtle);
    margin-right: 2px;
}

.m-product-bottom b {
    color: var(--text);
    font-weight: 650;
}

.m-product-bottom i {
    font-style: normal;
    font-size: 10px;
    color: var(--muted);
}

.m-product-bottom time {
    font-size: 9px;
    color: var(--subtle);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    margin-left: 5px;
}

.m-product-select {
    display: grid;
    place-items: center;
    width: 44px;
    min-height: 44px;
    flex: none;
}

.m-product-select:has(>input[hidden]) {
    display: none;
}

.m-product-stock small {
    font-size: 10px;
    color: var(--muted);
}

.m-product-stock i {
    margin: 0 1px;
}

body[data-layout=desktop] :is(.catalog-head,.catalog-head small,.flat-cell-note,.product-info .code,.status,.updated) {
    font-size: 11px;
}

.product-metric>.flat-site-price {
    justify-content: flex-end;
}

.flat-catalog-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 16px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--quiet);
}

.flat-catalog-tabs {
    display: flex;
    align-items: stretch;
    gap: 24px;
    min-width: 0;
}

.flat-catalog-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 10px 0;
    border-bottom: 2px solid transparent;
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
    white-space: nowrap;
}

.flat-catalog-tab:hover {
    color: var(--text);
}

.flat-catalog-tab.is-active {
    color: var(--text);
    border-bottom-color: var(--lime);
}

.flat-catalog-tab.is-active .count {
    color: var(--lime);
}

.flat-catalog-tab .count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 20px;
    padding: 0 5px;
    border-radius: 3px;
    background: var(--raised);
    font-size: 10px;
    font-variant-numeric: tabular-nums;
}

body[data-layout=mobile] .flat-catalog-navigation {
    padding: 0;
    gap: 0;
}

body[data-layout=mobile] .flat-catalog-tabs {
    width: 100%;
    gap: 12px;
}

body[data-layout=mobile] .flat-catalog-tab {
    flex: 1;
    font-size: 12px;
}

.flat-editing-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--line);
}

.flat-editing-bar>.flat-inline {
    font-size: 11px;
    gap: 8px;
}

.flat-editing-bar>[data-edit-summary] {
    margin-right: auto;
    font-size: 11px;
}

.flat-editing-bulk-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.flat-editing-head {
    display: grid;
    grid-template-columns: minmax(220px,1fr) minmax(130px,.35fr) minmax(116px,.3fr) 130px;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    padding-block: 9px;
    color: var(--muted);
    font-size: 10px;
    border-bottom: 1px solid var(--line);
}

.flat-editing-summary {
    display: grid;
    grid-template-columns: minmax(220px,1fr) minmax(130px,.35fr) minmax(116px,.3fr) 130px;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
}

.flat-editing-row {
    --control-height: 40px;
    display: block;
    margin: 0;
    border-bottom: 1px solid var(--line);
}

.flat-editing-row.has-edits>.flat-editing-summary {
    box-shadow: inset 2px 0 var(--lime);
}

.flat-editing-row:has([data-edit-body]:not([hidden]))>.flat-editing-summary {
    background: var(--quiet);
}

.flat-editing-product {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.flat-editing-product>.check {
    flex: none;
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.flat-editing-product>div {
    min-width: 0;
}

.flat-editing-product-name {
    display: block;
    font-size: 13px;
    font-weight: 650;
    line-height: 20px;
    overflow-wrap: anywhere;
}

.flat-editing-codes {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 3px 10px;
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
}

.flat-editing-codes>span {
    color: var(--subtle);
    font-size: 10px;
}

.flat-editing-codes code {
    overflow-wrap: anywhere;
}

.flat-editing-summary-price {
    min-width: 0;
    font-variant-numeric: tabular-nums;
}

.flat-editing-summary-price>strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
}

.flat-editing-summary-price>small {
    display: block;
    margin-top: 4px;
    color: var(--lime);
    font-size: 11px;
}

.flat-editing-summary-price>small.danger {
    color: var(--red);
}

.flat-editing-summary-meta {
    min-width: 0;
    font-size: 11px;
}

.flat-editing-summary-meta>span {
    display: block;
    color: var(--muted);
    line-height: 20px;
}

.flat-editing-summary-meta>small {
    display: block;
    margin-top: 5px;
    color: var(--subtle);
    font-size: 10px;
}

.flat-editing-summary>.flat-editing-open {
    width: 108px;
    min-height: 32px;
    justify-self: end;
    justify-content: space-between;
    gap: 8px;
    padding-inline: 10px;
    font-size: 11px;
}

.flat-editing-summary>.flat-editing-open:hover {
    background: var(--quiet);
    border-color: transparent;
    color: var(--text);
}

.flat-editing-summary>.flat-editing-open[aria-expanded=true] {
    color: var(--text);
}

.flat-editing-open>.icon {
    width: 14px;
    height: 14px;
    flex: none;
}

.flat-editing-open>.icon:last-child {
    width: 12px;
    height: 12px;
    transition: transform .15s;
}

.flat-editing-open[aria-expanded=true]>.icon:last-child {
    transform: rotate(180deg);
}

.flat-editing-body {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 16px 18px 0;
    background: var(--inset);
    border-top: 1px solid var(--line);
}

.flat-editing-context {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    min-height: 24px;
    font-size: 11px;
    color: var(--muted);
}

.flat-editing-context:empty {
    display: none;
}

.flat-editing-context strong {
    margin-left: 5px;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.flat-editing-context .badge {
    font-size: 10px;
}

.flat-editing-context>a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.flat-editing-context>a:hover {
    color: var(--lime);
}

.flat-editing-context .icon {
    width: 13px;
    height: 13px;
}

.flat-editing-row.flat-form fieldset.flat-editing-fields {
    min-width: 0;
    padding: 0;
    margin: 0;
    border: 0;
}

.flat-editing-fields {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 6px 16px;
}

.flat-editing-fields>.flat-editing-name {
    grid-column: 1/-1;
}

.flat-editing-fields>.flat-editing-tags-field {
    grid-column: span 2;
    min-width: 0;
}

[data-marketplace=ozon] .flat-editing-fields>.flat-editing-name {
    grid-column: span 2;
}

.flat-editing-row.flat-form textarea[data-edit-name] {
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    line-height: 20px;
    font-size: 13px;
    font-weight: 500;
    resize: none;
    overflow: hidden;
}

.flat-editing-fields .field>span:first-child,
.flat-editing-fields .flat-editing-field-label,
.flat-editing-price .flat-price-fields>.field>span:first-child {
    min-height: 18px;
    line-height: 18px;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
}

.flat-editing-product-tags .flat-editing-field-label {
    position: static;
    width: auto;
    height: auto;
    clip-path: none;
    overflow: visible;
    white-space: normal;
}

.flat-editing-product-tags .flat-note {
    margin-top: 6px;
}

.flat-editing-field-label {
    display: block;
    min-height: 18px;
    line-height: 18px;
    color: var(--muted);
    font-size: 10px;
    margin-bottom: 6px;
}

.flat-editing-tags {
    position: relative;
    min-width: 0;
}

.flat-editing-tags>summary {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--inset);
    color: var(--muted);
    cursor: pointer;
    font-size: 12px;
}

.flat-editing-tags>summary::-webkit-details-marker {
    display: none;
}

.flat-editing-tags>summary>span {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.flat-editing-tags>summary>.icon {
    width: 13px;
    height: 13px;
    flex: none;
    transition: transform .15s;
}

.flat-editing-tags[open]>summary {
    border-color: var(--lime);
    color: var(--text);
}

.flat-editing-tags[open]>summary>.icon {
    transform: rotate(180deg);
}

.flat-editing-tags:has(input[name=tags]:checked)>summary {
    color: var(--text);
}

.flat-editing-tag-menu {
    position: absolute;
    z-index: 15;
    top: calc(100% + 6px);
    left: 0;
    width: 260px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.flat-form .flat-editing-tag-menu>.search {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    margin: 0 0 5px;
    padding: 0 9px;
}

.flat-editing-tag-menu>.search>.icon {
    width: 15px;
    height: 15px;
    flex: none;
}

.flat-form .flat-editing-tag-menu .search>input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]) {
    border: 0;
    background: transparent;
    height: 34px;
    min-height: 34px;
    padding: 5px 0;
    font-size: 12px;
}

.flat-editing-tag-options {
    max-height: 224px;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.flat-form .flat-editing-tag-options>label {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 36px;
    padding: 7px 8px;
    color: var(--text);
    border-radius: 5px;
    font-size: 12px;
    cursor: pointer;
}

.flat-editing-tag-options>label:has(:checked),
.flat-editing-tag-options>label:hover {
    background: var(--quiet);
}

.flat-editing-tag-options .check {
    width: 16px;
    height: 16px;
    flex: none;
}

.flat-editing-tag-options label>span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.flat-editing-tag-menu>.btn {
    width: 100%;
    margin-top: 6px;
    min-height: 32px;
    justify-content: space-between;
}

.flat-editing-tag-menu .flat-note {
    padding: 9px;
}

.flat-editing-row.flat-form .input {
    height: 40px;
    min-height: 40px;
}

.flat-editing-row.flat-form .input>input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]) {
    height: 38px;
    min-height: 38px;
    line-height: 20px;
    padding-block: 7px;
    font-size: 13px;
}

.flat-editing-box>small {
    color: var(--subtle);
    font-size: 10px;
    font-weight: 400;
}

.flat-editing-price {
    min-width: 0;
}

.flat-editing-price .flat-price-fields {
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 6px 16px;
}

.flat-editing-price .flat-price-options {
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 16px;
    margin: 16px 0 0;
}

.flat-editing-price .flat-price-option>.flat-inline {
    font-size: 11px;
}

.flat-editing-price [data-manual-profit-status] {
    font-size: 11px;
    margin-top: 8px;
}

.flat-editing-result {
    grid-column: 1/-1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
}

.flat-editing-result>div {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: none;
}

.flat-editing-result .btn {
    min-height: 36px;
}

.flat-editing-result [data-edit-save]:disabled {
    background: var(--quiet);
    border-color: var(--line);
    color: var(--subtle);
    opacity: 1;
}

.flat-editing-result>small {
    min-width: 0;
    color: var(--subtle);
    font-size: 11px;
    overflow-wrap: anywhere;
}

.flat-editing-result>small.accent {
    color: var(--lime);
}

.flat-editing-result>small.danger {
    color: var(--red);
}

.flat-price-context {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 12px;
    font-size: 12px;
}

.flat-price-context>span:not(.badge) {
    color: var(--muted);
}

.flat-price-context>.badge {
    margin-left: auto;
}

.flat-price-fields {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 6px 12px;
}

body[data-layout=desktop] .flat-price-fields {
    grid-template-columns: repeat(3,minmax(0,220px));
}

.flat-editing-fields>.flat-editing-box {
    max-width: 160px;
}

.flat-price-options {
    display: grid;
    gap: 4px;
    margin: 12px 0 8px;
}

body[data-layout=desktop] .flat-editor-pricing-controls .flat-price-options {
    grid-template-columns: repeat(2,max-content);
    column-gap: 20px;
}

.flat-price-option {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.flat-price-option>.flat-inline {
    color: var(--text);
    font-size: 12px;
}

.flat-form .flat-price-option>.flat-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    margin: 0;
}

.flat-price-help {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    flex: none;
    padding: 0;
    border: 0;
    border-radius: 4px;
    color: var(--subtle);
    background: transparent;
}

.flat-price-help>.icon {
    width: 14px;
    height: 14px;
}

.flat-price-help:focus-visible,
.flat-price-help:hover {
    color: var(--lime);
    background: var(--quiet);
}

.flat-price-warning {
    color: var(--amber);
    font-size: 12px;
    margin: 8px 0;
}

.flat-price-warning[hidden] {
    display: none;
}

body[data-layout=mobile] .flat-editing-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    padding: 10px 0;
    gap: 8px;
    border-bottom: 0;
}

body[data-layout=mobile] .flat-editing-bar>.flat-inline {
    font-size: 11px;
}

body[data-layout=mobile] .flat-editing-bar>[data-edit-summary] {
    margin: 0;
    text-align: right;
    font-size: 10px;
}

body[data-layout=mobile] .flat-editing-bulk-actions {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
}

body[data-layout=mobile] .flat-editing-bulk-actions>.btn {
    min-height: 44px;
    font-size: 11px;
    padding-inline: 12px;
}

body[data-layout=mobile] .flat-editing-card {
    padding: 0;
    margin: 0 0 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

body[data-layout=mobile] .flat-editing-summary {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 12px;
}

body[data-layout=mobile] .flat-editing-product {
    grid-column: 1/-1;
    gap: 10px;
}

body[data-layout=mobile] .flat-editing-product-name {
    font-size: 13px;
}

body[data-layout=mobile] .flat-editing-summary-price>span {
    display: block;
    color: var(--subtle);
    font-size: 10px;
}

body[data-layout=mobile] .flat-editing-summary-price>strong {
    font-size: 16px;
}

body[data-layout=mobile] .flat-editing-summary-price>small {
    font-size: 10px;
}

body[data-layout=mobile] .flat-editing-summary>.flat-editing-open {
    min-height: 44px;
    align-self: end;
    padding-inline: 10px;
}

body[data-layout=mobile] .flat-editing-body {
    gap: 14px;
    padding: 12px 12px 0;
}

body[data-layout=mobile] .flat-editing-context {
    gap: 6px 10px;
    font-size: 10px;
}

body[data-layout=mobile] .flat-editing-fields {
    grid-template-columns: 1fr;
    gap: 6px 14px;
}

body[data-layout=mobile] .flat-editing-fields>.flat-editing-name,
body[data-layout=mobile] .flat-editing-fields>.flat-editing-tags-field {
    grid-column: 1/-1;
}

body[data-layout=mobile] .flat-editing-tags>summary {
    min-height: 44px;
    font-size: 12px;
}

body[data-layout=mobile] .flat-editing-tag-menu {
    position: static;
    width: 100%;
    margin-top: 6px;
}

body[data-layout=mobile] .flat-form .flat-editing-tag-menu>.search {
    min-height: var(--control-height);
}

body[data-layout=mobile] .flat-form .flat-editing-tag-menu .search>input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]) {
    height: 42px;
    min-height: 42px;
}

body[data-layout=mobile] .flat-editing-tag-menu>.btn {
    min-height: var(--control-height);
}

body[data-layout=mobile] .flat-form .flat-editing-tag-options>label {
    min-height: 44px;
}

body[data-layout=mobile] .flat-price-fields {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 6px 10px;
}

body[data-layout=mobile] .flat-price-fields>.field:first-child {
    grid-column: 1/-1;
}

body[data-layout=mobile] .flat-editing-price .flat-price-fields {
    grid-template-columns: 1fr;
    gap: 6px 14px;
}

body[data-layout=mobile] .flat-editing-price .flat-price-options {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 16px;
}

body[data-layout=mobile] .flat-price-help {
    width: 44px;
    height: 44px;
}

body[data-layout=mobile] .flat-editing-result {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
}

body[data-layout=mobile] .flat-editing-result>div {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
}

body[data-layout=mobile] .flat-editing-result .btn {
    min-height: 44px;
    font-size: 11px;
}

body[data-layout=mobile] .flat-editing-result>small {
    font-size: 10px;
}

:is(.fields,.flat-editing-fields,.flat-price-fields,.flat-range-endpoints)>:is(.field,.flat-editing-tags-field,div:has(>.onboarding-field-label),div:has(>label[for]),label:not(.flat-inline):not(:has(>input[type=checkbox],>input[type=radio]))) {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 3;
    align-self: stretch;
    align-content: start;
    gap: 6px;
    min-width: 0;
    margin-block: 0;
}

:is(.fields,.flat-editing-fields,.flat-price-fields,.flat-range-endpoints)>:is(.field,div,label)>:is(.flat-editing-field-label,.flat-field-title,.onboarding-field-label,label[for]) {
    margin: 0;
    align-self: start;
    min-width: 0;
}

.flat-client-discount {
    color: var(--muted);
    font-size: 10px;
    font-weight: 500;
}

.flat-client-price-preview {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

body[data-layout=mobile] .m-card:has(>.m-products) {
    background: transparent;
    padding: 0;
}

.flat-site-price {
    display: grid;
    justify-items: end;
    gap: 2px;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.35;
    margin-top: 6px;
    padding-top: 5px;
    border-top: 1px solid var(--line);
    width: fit-content;
    margin-left: auto;
}

.flat-site-price-value {
    color: var(--text);
    font-weight: 650;
    font-size: 12px;
    white-space: nowrap;
}

:where(html[data-layout=desktop]) .flat-site-price-line {
    display: contents;
}

body[data-layout=mobile] .flat-client-price-line {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 6px;
    flex-direction: row;
}

body[data-layout=mobile] .flat-client-price-line>.flat-client-discount {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    font-size: 12px;
    white-space: nowrap;
}

.flat-client-price-separator {
    color: var(--text);
}

.flat-site-price-range {
    display: grid;
    gap: 1px;
}

.flat-site-price-range>span {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 4px;
}

.flat-site-price-range>span>small {
    font-size: 9px;
    color: var(--muted);
    font-weight: 400;
}

body[data-layout=mobile] .flat-site-price-range>span {
    justify-content: flex-start;
}

body[data-layout=desktop] .price-profit:has(.flat-site-price) {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    column-gap: 10px;
    align-items: center;
}

body[data-layout=desktop] .price-profit:has(.flat-site-price) .price-block {
    display: contents;
}

body[data-layout=desktop] .price-profit:has(.flat-site-price) .price {
    grid-column: 1;
    grid-row: 1;
}

body[data-layout=desktop] .price-profit:has(.flat-site-price) .profit-block {
    grid-column: 1;
    grid-row: 2;
}

body[data-layout=desktop] .price-profit:has(.flat-site-price) .profit>small {
    display: block;
    margin: 2px 0 0;
}

body[data-layout=desktop] .price-profit .flat-site-price {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    border-top: 0;
    border-left: 1px solid var(--line);
    padding: 4px 0 4px 10px;
    margin: 0;
}

.flat-site-price .money>small {
    font-size: inherit;
}

body[data-layout=mobile] .m-product-money>div>strong {
    min-height: 25.2px;
}

body[data-layout=mobile] .m-product-money>div>.flat-site-price {
    display: grid;
    justify-items: start;
    margin-left: 0;
}

/* Карточка товара */

:where(html[data-layout=desktop]) .product-row {
    display: grid;
    grid-template-columns: minmax(235px,1.65fr) minmax(150px,1fr) minmax(110px,.8fr) minmax(120px,.85fr) minmax(90px,.65fr);
    gap: 16px;
    padding-inline: 20px;
    min-height: 84px;
    align-items: center;
    padding-block: 11px;
    border-bottom: 1px solid var(--quiet);
    position: relative;
}

:where(html[data-layout=desktop]) .product-row:last-child {
    border-bottom: 0;
}

:where(html[data-layout=desktop]) .product-row:hover {
    background: #202529;
}

:where(html[data-layout=desktop]) .product-row:hover .product-title a {
    color: var(--lime);
}

:where(html[data-layout=desktop]) .product-identity {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

:where(html[data-layout=desktop]) .product-identity .check {
    margin-top: 5px;
}

:where(html[data-layout=desktop]) .product-info {
    min-width: 0;
}

:where(html[data-layout=desktop]) .product-title {
    font-size: 13px;
    font-weight: 750;
    line-height: 1.4;
}

:where(html[data-layout=desktop]) .product-title a {
    display: block;
}

:where(html[data-layout=desktop]) .product-title .mobile-chevron {
    display: none;
}

:where(html[data-layout=desktop]) .product-info .code {
    margin-top: 4px;
    font-size: 9px;
}

:where(html[data-layout=desktop]) .product-info .badge {
    margin-top: 7px;
}

:where(html[data-layout=desktop]) .product-metric {
    text-align: right;
}

:where(html[data-layout=desktop]) .product-metric .price {
    font-size: 17px;
    font-weight: 750;
}

:where(html[data-layout=desktop]) .product-metric .profit {
    font-size: 12px;
    font-weight: 650;
    color: var(--lime);
    margin-top: 2px;
}

:where(html[data-layout=desktop]) .product-metric .profit>small {
    font-size: 9px;
    color: var(--muted);
    margin-left: 7px;
}

:where(html[data-layout=desktop]) .product-mobile-label {
    display: none;
}

.m-item-heading h1 {
    font: 750 21px/1.35 Manrope,sans-serif;
    letter-spacing: -.5px;
    grid-column: 1/-1;
    grid-row: 1;
}

:where(html[data-layout=desktop]) .product-summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 24px;
}

:where(html[data-layout=desktop]) .product-summary h1 {
    font-size: 38px;
    max-width: 700px;
}

:where(html[data-layout=desktop]) .product-summary .code {
    margin: 10px 0;
}

:where(html[data-layout=desktop]) .item-section-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

:where(html[data-layout=desktop]) .item-section-nav .badge {
    font-size: 10px;
}

.item-main-grid {
    align-items: start;
}

:where(html[data-layout=desktop]) .item-main-grid {
    display: grid;
    grid-template-columns: minmax(0,1.6fr) minmax(280px,1fr);
    gap: 16px;
}

:where(html[data-layout=desktop]) .item-main-grid>.panel+.panel {
    margin-top: 0;
}

:where(html[data-layout=desktop]) .item-main-grid h2 {
    font-size: 17px;
}

:where(html[data-layout=desktop]) .item-price-card .panel-title {
    align-items: center;
    margin-bottom: 18px;
}

.item-data-time {
    font-size: 10px;
    color: var(--muted);
    text-align: right;
}

:where(html[data-layout=desktop]) .item-data-time {
    white-space: nowrap;
}

:where(html[data-layout=desktop]) .item-key-values .money small {
    font-size: .48em;
}

:where(html[data-layout=desktop]) .item-key-values>div>small .money small {
    font-size: inherit;
}

:where(html[data-layout=desktop]) .item-profit-value>strong {
    color: var(--lime);
}

:where(html[data-layout=desktop]) .item-verification {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 13px;
    background: var(--inset);
    border-radius: 5px;
    margin-top: 18px;
}

:where(html[data-layout=desktop]) .item-verification>.icon {
    width: 19px;
    height: 19px;
    color: var(--lime);
    flex: none;
}

:where(html[data-layout=desktop]) .item-verification>div {
    flex: 1;
    min-width: 0;
}

:where(html[data-layout=desktop]) .item-verification strong {
    display: block;
    font-size: 10px;
    font-weight: 650;
}

:where(html[data-layout=desktop]) .item-verification small {
    font-size: 9px;
    color: var(--muted);
    display: block;
    margin-top: 3px;
}

:where(html[data-layout=desktop]) .item-verification .btn {
    padding: 5px;
    font-size: 9px;
    flex: none;
}

:where(html[data-layout=desktop]) .item-purchase-card .panel-title {
    align-items: center;
    margin-bottom: 12px;
}

:where(html[data-layout=desktop]) .item-purchase-value {
    display: flex;
    align-items: center;
    gap: 18px;
}

:where(html[data-layout=desktop]) .item-purchase-value>strong {
    font-size: 32px;
    font-weight: 750;
    letter-spacing: -.7px;
    line-height: 1.2;
}

:where(html[data-layout=desktop]) .item-purchase-value>strong .money small {
    font-size: .48em;
}

:where(html[data-layout=desktop]) .item-purchase-value>span {
    font-size: 11px;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    gap: 3px;
}

:where(html[data-layout=desktop]) .item-purchase-value>span>small {
    color: var(--subtle);
    font-size: 8px;
}

:where(html[data-layout=desktop]) .item-source {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 21px;
}

:where(html[data-layout=desktop]) .item-source-mark {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    background: var(--inset);
    border: 1px solid var(--line);
    border-radius: 5px;
    font-size: 12px;
    font-weight: 800;
    flex: none;
}

:where(html[data-layout=desktop]) .item-source>div {
    min-width: 0;
    flex: 1;
}

:where(html[data-layout=desktop]) .item-source strong {
    font-size: 10px;
    display: block;
}

:where(html[data-layout=desktop]) .item-source small {
    color: var(--muted);
    font-size: 9px;
    display: block;
    margin-top: 3px;
}

:where(html[data-layout=desktop]) .item-source .icon-btn {
    border-color: transparent;
    color: var(--muted);
}

.item-inline-facts {
    grid-template-columns: repeat(auto-fit,minmax(min(100%,90px),1fr));
}

:where(html[data-layout=desktop]) .item-inline-facts {
    display: grid;
    gap: 12px;
    margin: 0;
}

.item-inline-facts dt {
    font-size: 11px;
}

:where(html[data-layout=desktop]) .item-inline-facts dt {
    color: var(--muted);
    margin-bottom: 6px;
}

:where(html[data-layout=desktop]) .item-inline-facts dd {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

:where(html[data-layout=desktop]) .item-inline-facts dd>small {
    font-size: 10px;
    color: var(--muted);
    font-weight: 500;
    margin-left: 4px;
}

:where(html[data-layout=desktop]) .item-inline-facts .money small {
    font-size: 10px;
}

:where(html[data-layout=desktop]) .item-panel-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 15px;
    min-height: 30px;
}

:where(html[data-layout=desktop]) .item-panel-foot>span {
    font-size: 9px;
    color: var(--subtle);
}

:where(html[data-layout=desktop]) .item-panel-foot .btn {
    font-size: 9px;
    padding: 5px;
    min-height: 30px;
}

:where(html[data-layout=desktop]) .item-stock-forecast {
    display: flex;
    align-items: center;
    gap: 6px;
}

:where(html[data-layout=desktop]) .item-stock-forecast .icon {
    width: 13px;
    height: 13px;
}

:where(html[data-layout=desktop]) .item-expenses {
    background: var(--surface);
    border-radius: 6px;
    overflow: hidden;
}

:where(html[data-layout=desktop]) .item-expenses>summary {
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    padding: 15px 18px;
    list-style: none;
}

:where(html[data-layout=desktop]) .item-expenses>summary::-webkit-details-marker {
    display: none;
}

:where(html[data-layout=desktop]) .item-expenses>summary>span:first-child {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

:where(html[data-layout=desktop]) .item-expenses>summary>span>.icon {
    color: var(--muted);
    width: 18px;
    height: 18px;
    flex: none;
}

:where(html[data-layout=desktop]) .item-expenses>summary strong {
    font-size: 11px;
    font-weight: 650;
}

:where(html[data-layout=desktop]) .item-expenses>summary small {
    color: var(--subtle);
    font-size: 9px;
}

:where(html[data-layout=desktop]) .item-expenses>summary>.icon {
    width: 15px;
    height: 15px;
    color: var(--muted);
}

:where(html[data-layout=desktop]) .item-expenses[open]>summary>.icon {
    transform: rotate(180deg);
}

:where(html[data-layout=desktop]) .item-expenses>summary:hover {
    background: var(--raised);
}

:where(html[data-layout=desktop]) .item-expenses>summary:focus-visible {
    outline: 2px solid var(--lime);
    outline-offset: -3px;
}

:where(html[data-layout=desktop]) .item-expenses-body {
    padding: 12px 18px 14px;
}

:where(html[data-layout=desktop]) .item-history-period {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

:where(html[data-layout=desktop]) .item-history-period>span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    color: var(--muted);
}

:where(html[data-layout=desktop]) .item-history-period .icon {
    width: 16px;
    height: 16px;
}

:where(html[data-layout=desktop]) .item-history-period>small {
    color: var(--subtle);
    font-size: 9px;
}

:where(html[data-layout=desktop]) .item-chart-card {
    --trend-color: var(--lime);
}

:where(html[data-layout=desktop]) .item-chart-card.purchase-chart-card {
    --trend-color: #8bb4c2;
}

:where(html[data-layout=desktop]) .item-chart-card .panel-title {
    align-items: center;
    margin-bottom: 12px;
}

:where(html[data-layout=desktop]) .item-chart-card h2 {
    font-size: 17px;
}

:where(html[data-layout=desktop]) .item-trend {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
    font-family: Manrope,sans-serif;
}

:where(html[data-layout=desktop]) .item-trend text {
    fill: var(--subtle);
    font-size: 10px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.m-item-heading {
    display: grid;
    grid-template-columns: 36px minmax(0,1fr) auto;
    gap: 8px;
    align-items: center;
}

.m-item-heading>div:not(.m-heading-actions) {
    display: contents;
}

.m-item-heading .m-heading-actions [aria-label="К каталогу"]>.icon {
    transform: rotate(180deg);
}

.m-item-heading p {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
    font-size: 11px;
}

.m-item-heading .m-heading-actions {
    grid-column: 3;
    grid-row: 2;
}

:where(html[data-layout=desktop]) .item-history-filter {
    flex: none !important;
}

:where(html[data-layout=desktop]) .item-history-filter button {
    min-height: 26px;
    font-size: 10px;
    padding: 4px 10px;
}

:where(html[data-layout=desktop]) .item-event-kind {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 10px;
}

:where(html[data-layout=desktop]) .item-event-kind .icon {
    width: 17px;
    height: 17px;
    color: var(--muted);
    flex: none;
}

:where(html[data-layout=desktop]) .item-event-kind.event-purchase .icon {
    color: #8bb4c2;
}

:where(html[data-layout=desktop]) .item-event-kind.event-check .icon {
    color: var(--lime);
}

:where(html[data-layout=desktop]) .item-change {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 11px;
    white-space: nowrap;
}

:where(html[data-layout=desktop]) .item-change>span {
    color: var(--muted);
}

:where(html[data-layout=desktop]) .item-change>.icon {
    width: 14px;
    height: 14px;
    color: var(--subtle);
}

:where(html[data-layout=desktop]) .item-history-count {
    padding: 10px 16px;
    font-size: 9px;
    color: var(--subtle);
    border-top: 1px solid var(--quiet);
}

.item-section-nav>.tabs {
    margin-bottom: 0;
}

.item-expenses>summary>.icon:last-child {
    margin-left: auto;
}

body[data-layout=mobile] .m-item-heading {
    grid-template-columns: minmax(0,1fr) auto;
}

body[data-layout=mobile] .m-item-heading p {
    grid-column: 1;
}

body[data-layout=mobile] .m-item-heading .m-heading-actions {
    grid-column: 2;
}

body[data-layout=desktop] .product-title {
    font-size: 14px;
}

.product-no-data {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.product-no-data>small {
    display: block;
    color: var(--subtle);
    margin-top: 4px;
}

.product-chart-caption,
.product-history-empty {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6;
}

.item-key-values {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 16px;
    margin-top: 16px;
}

.item-key-values>div {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 6px;
    min-width: 0;
}

.item-key-values>div>small,
.item-key-values>div>span {
    font-size: 11px;
    color: var(--muted);
}

.item-key-values>div>strong {
    font-size: 26px;
    line-height: 1.25;
}

body[data-layout=desktop] .fields.flat-product-identity-fields {
    grid-template-columns: minmax(0,360px) 160px;
}

.flat-product-editor-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.flat-product-editor-grid>* {
    margin-block: 0;
}

.flat-product-editor-grid textarea[data-selected-edit-name] {
    min-height: var(--control-height);
    line-height: 20px;
    resize: none;
    overflow: hidden;
}

.flat-customer-price-fold>summary>.icon,
.flat-product-identity-editor>summary>.icon {
    transform: rotate(90deg);
}

.flat-customer-price-fold[open]>summary>.icon,
.flat-product-identity-editor[open]>summary>.icon {
    transform: rotate(270deg);
}

.flat-product-price-panel .flat-product-compact-price {
    margin: 12px 0 0;
    border: 0;
    border-top: 1px solid var(--quiet);
    border-radius: 0;
    background: transparent;
}

.flat-product-price-panel .flat-product-compact-price>summary {
    display: grid;
    grid-template-columns: minmax(0,max-content) auto minmax(16px,1fr);
    gap: 8px;
    padding: 12px 0;
    min-height: 44px;
}

.flat-product-compact-price>summary>.icon {
    justify-self: end;
}

.flat-product-compact-price>summary>strong {
    font-size: 13px;
    font-weight: 650;
    white-space: nowrap;
}

.flat-product-price-panel .flat-product-compact-price>.flat-stack {
    padding: 0 0 12px;
}

.flat-product-savebar {
    position: static;
    bottom: 12px;
    z-index: 15;
    display: grid;
    grid-template-columns: minmax(0,1fr) auto auto;
    align-items: center;
    gap: 8px;
    padding: 12px;
    margin: 16px 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--control-radius);
}

.has-edits .flat-product-savebar {
    position: sticky;
}

.flat-product-savebar[hidden] {
    display: none;
}

.flat-product-savebar>div {
    display: grid;
    gap: 3px;
    min-width: 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.4;
}

.flat-product-savebar small {
    color: var(--subtle);
    font-size: 10px;
}

.has-edits .flat-product-savebar [data-product-edit-state] {
    color: var(--lime);
}

body[data-layout=mobile] .flat-product-savebar {
    bottom: calc(84px + env(safe-area-inset-bottom));
    padding: 10px;
}

body[data-layout=mobile] .flat-product-reset-label {
    display: none;
}

body[data-layout=mobile] .flat-product-savebar>.btn {
    min-height: 44px;
    padding: 10px;
}

body[data-layout=mobile] .flat-product-savebar>.btn.quiet {
    width: 44px;
    padding: 0;
}

body[data-layout=mobile] .flat-product-nav {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0,1fr);
}

body[data-layout=mobile] .flat-product-nav>.tab {
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 44px;
    padding: 8px 4px;
    font-size: 11px;
}

.flat-editor-promotion {
    display: grid;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--quiet);
}

.flat-editor-promotion .facts,
.flat-editor-promotion .flat-note {
    margin: 0;
}

.flat-promotion-item {
    display: grid;
    gap: 8px;
    min-width: 0;
    padding-block: 12px;
}

.flat-promotion-item + .flat-promotion-item {
    border-top: 1px solid var(--quiet);
}

.flat-promotion-item h3 {
    min-width: 0;
    overflow-wrap: anywhere;
}

.flat-product-meta {
    margin: 0;
    color: var(--subtle);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.5;
}

.flat-product-meta time {
    font: inherit;
    white-space: nowrap;
}

.flat-product-costs {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.flat-product-costs .facts,
.flat-product-promotion .facts,
.flat-product-summary .facts {
    margin: 0;
}

.flat-product-promotion,
.flat-product-summary {
    display: grid;
    gap: 12px;
}

.flat-product-costs h3 {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
}

.flat-product-expenses>summary {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto 16px;
    gap: 8px 12px;
}

.flat-product-expenses>summary>.badge {
    grid-column: 2;
    grid-row: 1;
}

.flat-product-expenses>summary>.icon {
    grid-column: 3;
    grid-row: 1;
    transform: rotate(90deg);
}

.flat-product-expenses[open]>summary>.icon {
    transform: rotate(270deg);
}

body[data-layout=mobile] .flat-product-expenses>summary {
    grid-template-columns: minmax(0,1fr) 16px;
    gap: 4px 12px;
}

body[data-layout=mobile] .flat-product-expenses>summary>.badge {
    grid-column: 1;
    grid-row: 2;
}

body[data-layout=mobile] .flat-product-expenses>summary>.icon {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
}

body[data-layout=mobile] .flat-product-price-panel>.m-card-head {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    gap: 6px;
}

body[data-layout=desktop] .flat-product-price-panel .flat-editor-promotion .facts {
    max-width: 700px;
}

body[data-layout=desktop] :is(.flat-product-costs,.flat-product-summary) .facts {
    grid-template-columns: repeat(4,minmax(0,1fr));
}

body[data-layout=mobile] :is(.flat-product-costs,.flat-product-promotion,.flat-product-summary) .facts {
    margin: 0;
}

.product-orders-summary {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 12px 0;
}

.product-orders-summary>strong {
    font-size: 22px;
}

.product-orders-summary>span {
    color: var(--muted);
    font-size: 11px;
}

.product-orders-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 12px 0;
    font-size: 10px;
    color: var(--muted);
}

.flat-chart .product-chart__grid {
    stroke: var(--quiet);
}

.flat-chart .product-chart__bar {
    fill: var(--lime);
    opacity: .65;
}

.flat-chart .product-chart__bar.is-selected {
    opacity: 1;
}

.flat-chart .product-chart__missing {
    fill: var(--amber);
}

.flat-chart .product-chart__unknown {
    fill: var(--subtle);
}

.flat-chart .product-chart__current {
    fill: var(--lime);
    stroke: var(--lime);
    stroke-dasharray: 2 3;
    fill-opacity: .3;
}

.flat-chart .product-chart__value {
    font-weight: 700;
}

.product-price-change--up {
    color: var(--lime);
}

.product-price-change--down {
    color: var(--amber);
}

body[data-layout=mobile] .flat-editor-promotion .facts {
    grid-template-columns: repeat(2,minmax(0,1fr));
}

body[data-layout=mobile] :is(.flat-detail-group,.flat-editor-promotion) .facts {
    margin: 0;
}

.flat-stack>:is(.flat-fold,.item-expenses,.m-card,.m-fold,.notice,.panel,.section-space) {
    margin-block: 0;
}

:is(.item-expenses,.m-fold)>.flat-stack {
    padding: 12px var(--card-inset) var(--card-inset);
}

:is(.item-expenses,.m-fold)>.flat-stack>:is(.m-card,.panel) {
    border: 0;
    border-radius: 0;
    padding: 0;
    margin: 0;
    background: transparent;
}

.wb-finance-product-cost>span {
    display: block;
    margin: 4px 0;
}

.wb-finance-product-cost>span>small {
    color: var(--muted);
    margin-right: 4px;
}

.wb-finance-product-result>strong {
    font-size: 15px;
}

.finance-row--loss .wb-finance-product-result>strong,
[data-loss] .wb-finance-product-result>strong {
    color: var(--red);
}

body[data-layout=mobile] .flat-records .wb-finance-product-result {
    grid-column: 1/-1;
    border-top: 1px solid var(--quiet);
    padding-top: 10px;
}

.flat-product-facts dd>small {
    margin-inline-start: 4px;
    font-size: .65em;
    font-weight: 500;
    color: var(--muted);
}

body[data-layout=mobile] .flat-product-facts {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 14px;
}

body[data-layout=mobile] .item-source,
body[data-layout=mobile] .item-verification {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--inset);
    padding: 10px;
    border-radius: 7px;
    margin-top: 14px;
}

body[data-layout=mobile] .item-source>div,
body[data-layout=mobile] .item-verification>div {
    flex: 1;
    min-width: 0;
}

body[data-layout=mobile] .item-source strong,
body[data-layout=mobile] .item-verification strong {
    display: block;
    font-size: 11px;
    overflow-wrap: anywhere;
}

body[data-layout=mobile] .item-source small,
body[data-layout=mobile] .item-verification small {
    display: block;
    font-size: 10px;
    color: var(--muted);
    margin-top: 3px;
}

body[data-layout=mobile] .item-panel-foot {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
    border-top: 1px solid var(--quiet);
    margin-top: 12px;
    padding-top: 10px;
    color: var(--muted);
    font-size: 10px;
}

body[data-layout=mobile] .item-panel-foot>span {
    flex: 1;
    min-width: 0;
}

#product-prices.is-empty [data-price-chart] {
    display: none;
}

#product-orders.is-empty .flat-chart svg {
    height: 80px;
    min-height: 0;
}

.flat-chart .product-gridline {
    stroke: var(--quiet);
    fill: none;
}

.flat-chart .product-price-line {
    stroke: var(--lime);
    fill: none;
    stroke-width: 2;
}

.flat-chart .product-price-point,
.flat-chart .product-bar {
    fill: var(--lime);
}

.flat-chart .product-bar.is-missing {
    fill: var(--raised);
    stroke: var(--amber);
}

.flat-chart .product-bar.is-current {
    fill: var(--lime);
    opacity: .6;
}

.flat-chart .product-hit {
    fill: transparent;
    cursor: pointer;
}

.flat-chart .product-chart-focus {
    stroke: var(--lime);
    fill: none;
}

.flat-chart .product-selected-line {
    stroke: var(--line);
}

.flat-plan-product-column {
    width: 40%;
}

/* Прибыль и экономика */

:where(html[data-layout=desktop]) .policy-strip {
    display: grid;
    grid-template-columns: minmax(240px,1fr) minmax(380px,1.45fr) auto;
    align-items: center;
    gap: 20px;
    background: var(--surface);
    padding: 14px 18px;
    border-radius: 7px;
    margin-bottom: 16px;
}

:where(html[data-layout=desktop]) .policy-symbol {
    color: var(--lime);
    width: 34px;
    height: 34px;
    background: var(--raised);
    border-radius: 6px;
    display: grid;
    place-items: center;
    flex: none;
}

.policy-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.policy-copy>.flat-heading-with-help {
    display: flex;
    align-items: center;
    gap: 6px;
}

:where(html[data-layout=desktop]) .policy-copy>.flat-heading-with-help>strong {
    font-size: 12px;
    display: block;
}

:where(html[data-layout=desktop]) .policy-copy small {
    color: var(--muted);
    font-size: 10px;
    white-space: nowrap;
}

:where(html[data-layout=desktop]) .policy-values {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 24px;
    margin: 0;
}

:where(html[data-layout=desktop]) .policy-values>div {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-start;
    min-width: 0;
}

:where(html[data-layout=desktop]) .policy-strip .btn {
    margin-left: 0;
    min-height: 34px;
    flex: none;
}

:where(html[data-layout=desktop]) .policy-values dt {
    color: var(--muted);
    font-size: 9px;
    white-space: nowrap;
}

:where(html[data-layout=desktop]) .policy-values dd {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: -.5px;
    font-weight: 750;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

:where(html[data-layout=desktop]) .policy-values dd>small {
    font-size: 12px;
    margin-left: 3px;
    letter-spacing: 0;
    color: var(--muted);
}

:where(html[data-layout=desktop]) .policy-values .money small {
    font-size: 12px;
}

.policy-identity {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

body[data-layout=desktop] .fields.flat-tax-fields {
    grid-template-columns: minmax(0,320px) 136px 160px;
}

body[data-layout=mobile] :is(.flat-store-body,.flat-store-layout) .fields.flat-tax-fields {
    grid-template-columns: repeat(2,minmax(0,160px));
}

body[data-layout=mobile] .flat-tax-system-field {
    grid-column: 1/-1;
}

.flat-finance-chart-legend .is-profit {
    color: var(--lime);
}

[data-quiet-profit-status]:empty {
    display: none;
}

[data-manual-profit-status] {
    display: block;
    line-height: 1.5;
}

[data-manual-profit-status]:empty {
    display: none;
}

.flat-range {
    border: 0;
    padding: 0;
    margin: 0;
    min-width: 0;
}

.flat-range-details>summary {
    cursor: pointer;
    list-style: none;
    padding: var(--card-inset);
    border-radius: var(--control-radius);
}

.flat-range-details[open]>summary {
    border-radius: var(--control-radius) var(--control-radius) 0 0;
    background: var(--inset);
}

.flat-range-details>summary::-webkit-details-marker {
    display: none;
}

.flat-range .range-editor {
    margin: 0 0 12px;
    grid-template-columns: repeat(4,minmax(0,180px));
}

.flat-range .fields+.fields {
    margin-top: 12px;
}

.flat-range-bounds {
    grid-column: 1/-1;
    margin-bottom: 16px;
}

.flat-range-endpoints {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    align-items: stretch;
    gap: 6px 16px;
}

.flat-range-endpoints>.field {
    width: 100%;
    max-width: 160px;
    min-width: 0;
}

.flat-range-endpoints>.field:last-child {
    justify-self: end;
}

.flat-range-endpoints>.field:last-child :is(.flat-field-title,input) {
    text-align: right;
    justify-content: flex-end;
}

.flat-range-slider {
    position: relative;
    height: 44px;
    margin-top: 4px;
    --range-from: 0%;
    --range-to: 100%;
    touch-action: pan-y;
}

.flat-range-scale[hidden],
.flat-range-slider[hidden] {
    display: none;
}

.flat-range-track {
    position: absolute;
    inset: 20px 11px auto;
    height: 4px;
    border-radius: 4px;
    background: var(--line);
    pointer-events: none;
}

.flat-range-track>span {
    position: absolute;
    inset-inline: var(--range-from) calc(100% - var(--range-to));
    height: 100%;
    border-radius: inherit;
    background: var(--lime);
}

.flat-range-slider.is-empty .flat-range-track>span {
    background: var(--line);
}

.flat-form .flat-range-slider input[type=range] {
    appearance: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 44px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    outline: 0;
    pointer-events: none;
}

.flat-range-slider input::-webkit-slider-runnable-track,
.flat-range-slider input::-moz-range-track {
    height: 4px;
    background: transparent;
}

.flat-range-slider input::-webkit-slider-thumb {
    appearance: none;
    width: 22px;
    height: 22px;
    margin-top: -9px;
    border: 3px solid var(--lime);
    border-radius: 50%;
    background: var(--surface);
    cursor: ew-resize;
    pointer-events: auto;
}

.flat-range-slider input::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border: 3px solid var(--lime);
    border-radius: 50%;
    background: var(--surface);
    cursor: ew-resize;
    pointer-events: auto;
}

.flat-range-slider input:focus-visible::-webkit-slider-thumb,
.flat-range-slider input:focus-visible::-moz-range-thumb {
    box-shadow: 0 0 0 4px color-mix(in srgb,var(--lime) 24%,transparent);
}

.flat-range-slider input:focus {
    z-index: 1;
}

.flat-range-scale {
    display: flex;
    justify-content: space-between;
    margin-top: -3px;
    color: var(--subtle);
    font-size: 10px;
    font-variant-numeric: tabular-nums;
}

.flat-range .m-fold summary>div small {
    display: block;
    color: var(--muted);
    font-size: 10px;
}

.flat-range .m-fold summary {
    display: flex;
    align-items: center;
    gap: 12px;
}

.flat-range .m-fold summary>div:first-child {
    flex: 1;
}

.flat-range .m-fold .range-stat {
    display: flex;
    flex-direction: column;
}

.flat-range .m-fold .range-stat span {
    display: none;
}

.flat-form fieldset:not(.flat-range) {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 14px;
    min-width: 0;
}

.field-feedback [data-manual-profit-error] {
    color: var(--red);
}

.flat-range [open]>.range-row .icon,
.flat-profit[data-tone=success] {
    color: var(--lime);
}

.flat-profit[data-tone=warning] {
    color: var(--amber);
}

.flat-profit[data-tone=danger] {
    color: var(--red);
}

.flat-profit[data-tone=muted] {
    color: var(--muted);
}

.flat-policy-strip {
    grid-template-columns: minmax(190px,1fr) minmax(480px,2fr) auto;
}

.flat-policy-values {
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 20px;
}

.flat-policy-card .policy-copy small {
    display: block;
    color: var(--muted);
    font-size: 10px;
}

.flat-policy-card .m-card-head {
    margin-bottom: 12px;
}

.flat-policy-facts {
    grid-template-columns: repeat(4,max-content);
    justify-content: space-between;
    gap: 8px;
}

.flat-policy-facts dt {
    font-size: 10px;
    margin-bottom: 4px;
}

.flat-policy-facts dd {
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: -.5px;
}

.flat-policy-facts .money small,
.flat-policy-facts dd>small {
    font-size: 11px;
    color: var(--muted);
    margin-left: 2px;
    letter-spacing: 0;
}

.flat-policy-card .m-card-head .icon-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    background: transparent;
    border-color: transparent;
}

/* Финансы и отчёты */

.m-kpis {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.m-kpi {
    background: var(--surface);
    border-radius: 9px;
    padding: 14px;
    min-width: 0;
}

.m-kpi>span {
    display: block;
    font-size: 11px;
    color: var(--muted);
}

.m-kpi>strong {
    display: block;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 750;
    margin: 6px 0;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.6px;
    overflow-wrap: anywhere;
}

.m-kpi>small {
    display: block;
    font-size: 10px;
    color: var(--subtle);
    line-height: 1.5;
}

.m-kpi.featured {
    grid-column: 1/-1;
    background: #20271d;
}

.m-kpi.featured>strong {
    color: var(--lime);
    font-size: 32px;
}

.m-kpi.featured>small {
    color: #a9b79b;
}

.m-kpi.featured>span {
    color: #c3cdb9;
}

:where(html[data-layout=desktop]) .metric-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 10px;
    margin-bottom: 16px;
}

:where(html[data-layout=desktop]) .metric-card {
    background: var(--surface);
    padding: 15px 18px;
    border-radius: 7px;
    min-width: 0;
}

:where(html[data-layout=desktop]) .metric-card .metric-label {
    font-size: 10px;
    color: var(--muted);
    font-weight: 600;
}

:where(html[data-layout=desktop]) .metric-card .metric-number {
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: -.8px;
    font-weight: 750;
    margin: 8px 0 4px;
    white-space: nowrap;
}

:where(html[data-layout=desktop]) .metric-card .metric-note {
    color: var(--subtle);
    font-size: 10px;
    line-height: 1.5;
}

:where(html[data-layout=desktop]) .metric-card.featured {
    background: var(--surface);
    color: var(--lime);
}

:where(html[data-layout=desktop]) .metric-card.featured .metric-label,
:where(html[data-layout=desktop]) .metric-card.featured .metric-note,
:where(html[data-layout=desktop]) .metric-card.featured .money small {
    color: var(--muted);
}

:where(html[data-layout=mobile]) .dialog .metric-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 8px;
    margin-bottom: 14px;
}

:where(html[data-layout=mobile]) .dialog .metric-card {
    padding: 12px;
    background: var(--inset);
    border-radius: 7px;
    min-width: 0;
}

:where(html[data-layout=mobile]) .dialog .metric-label {
    font-size: 10px;
    color: var(--muted);
}

:where(html[data-layout=mobile]) .dialog .metric-number {
    font-size: 21px;
    line-height: 1.3;
    font-weight: 700;
    margin: 5px 0;
}

:where(html[data-layout=mobile]) .dialog .metric-note {
    font-size: 10px;
    color: var(--subtle);
}

:where(html[data-layout=mobile]) .dialog .metric-card.featured .metric-number {
    color: var(--lime);
}

body[data-layout=desktop] :is(.btn:not(.small),.field>span:first-child,.flat-form label,.flat-note,.metric-label,.metric-note,.nav-item,.page-heading p) {
    font-size: 12px;
}

.flat-report-columns {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 16px;
    margin: 0;
}

.flat-report-columns dt {
    font-size: 12px;
    font-weight: 650;
}

.flat-report-columns dd {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 11px;
}

body[data-layout=mobile] .flat-report-columns {
    grid-template-columns: minmax(0,1fr);
    gap: 12px;
}

.metric-grid:not(.flat-finance-kpis) {
    grid-template-columns: repeat(auto-fit,minmax(min(100%,180px),1fr));
}

.m-kpis:not(:has(.featured))>.m-kpi:last-child:nth-child(odd) {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    align-items: center;
    gap: 4px 12px;
}

.m-kpis:not(:has(.featured))>.m-kpi:last-child:nth-child(odd)>strong {
    grid-column: 2;
    grid-row: 1/3;
    margin: 0;
}

.m-kpi:not(.featured)>.metric-number {
    font-size: clamp(18px,5vw,22px);
}

.m-kpi:not(.featured)>.metric-text,
.metric-card>.metric-text {
    font-size: clamp(14px,4vw,18px);
    line-height: 1.35;
    overflow-wrap: normal;
    hyphens: auto;
}

:is(.m-kpis,.metric-grid)>a:is(.m-kpi,.metric-card) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    padding: 10px 14px;
}

.m-kpis:has(>a.m-kpi),
.metric-grid:has(>a.metric-card) {
    grid-template-columns: repeat(3,minmax(0,1fr));
}

body[data-layout=mobile] .m-kpis:has(>a) {
    grid-template-columns: repeat(2,minmax(0,1fr));
}

:is(.m-kpis,.metric-grid)>a:is(.m-kpi,.metric-card)>strong {
    font-size: 20px;
    margin: 0;
}

.flat-finance-chart-totals {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 14px;
    margin: 0 0 12px;
}

.flat-finance-chart-totals>div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 11px;
    color: var(--muted);
}

.flat-finance-chart-totals strong {
    font-size: 17px;
    color: var(--text);
}

.flat-finance-chart-note {
    font-size: 10px;
    color: var(--muted);
    margin: 10px 0;
}

.flat-finance-chart-warning {
    font-size: 10px;
    margin: 10px 0;
    color: var(--amber);
}

.flat-finance-chart-legend {
    display: flex;
    gap: 14px;
    color: var(--muted);
    font-size: 10px;
    margin-top: 12px;
}

.flat-finance-chart-legend .is-sales {
    color: #8db4ff;
}

.flat-finance-chart-legend .is-loss {
    color: var(--red);
}

.flat-finance-chart-selection {
    display: grid;
    grid-template-columns: minmax(160px,200px) minmax(0,1fr);
    align-items: start;
    gap: 24px;
    margin: 12px 0 0;
    padding: 16px;
    background: var(--inset);
    border-radius: 6px;
}

.flat-finance-chart-selection label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.4;
}

.flat-finance-chart-selection select {
    background: var(--raised);
    border: 1px solid var(--line);
    color: var(--text);
    padding: 9px 10px;
    border-radius: 7px;
    min-height: 44px;
    width: 100%;
}

.flat-finance-chart-day-values {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 24px;
    min-width: 0;
    font-size: 11px;
    line-height: 1.4;
    color: var(--muted);
}

.flat-finance-chart-day-values>span {
    display: grid;
    grid-template-rows: auto minmax(44px,auto);
    align-content: start;
    gap: 6px;
    min-width: 0;
}

.flat-finance-chart-day-values strong {
    display: flex;
    align-items: center;
    font-size: clamp(16px,1.5vw,20px);
    color: var(--text);
    line-height: 1.35;
    margin: 0;
    font-variant-numeric: tabular-nums;
}

.flat-finance-chart-day-values small {
    display: block;
    color: var(--amber);
    font-size: 10px;
    margin: 0;
}

.flat-finance-chart-day-values small:empty {
    display: none;
}

.flat-finance-chart-scroll {
    margin-top: 8px;
    min-width: 0;
}

.flat-finance-chart-grid {
    stroke: var(--quiet);
}

.flat-finance-chart-zero {
    stroke: var(--line);
}

.flat-finance-chart-highlight {
    fill: var(--raised);
}

.flat-finance-chart-bar {
    fill: var(--lime);
    opacity: .55;
}

.flat-finance-chart-bar.is-loss {
    fill: var(--red);
}

.flat-finance-chart-bar.is-estimated {
    fill: var(--amber);
}

.flat-finance-chart-sales {
    fill: none;
    stroke: #8db4ff;
    stroke-width: 1.7;
    stroke-linejoin: round;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
}

.flat-finance-chart-sales-dot {
    fill: #8db4ff;
}

.flat-finance-chart-target {
    fill: transparent;
    cursor: pointer;
}

.flat-finance-component {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--quiet);
    font-size: 12px;
}

.flat-finance-component small {
    display: block;
    color: var(--muted);
    font-size: 10px;
}

.flat-finance-component b {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.metric-card>.metric-number {
    display: block;
}

.flat-finance-chart-daily summary {
    cursor: pointer;
    color: var(--muted);
    font-size: 11px;
    margin: 12px 0;
}

body[data-layout=mobile] .flat-finance-chart-selection {
    grid-template-columns: minmax(0,1fr);
    gap: 10px;
}

body[data-layout=mobile] .flat-finance-chart-selection label {
    grid-template-columns: auto minmax(0,1fr);
    align-items: center;
    gap: 16px;
}

body[data-layout=mobile] .flat-finance-component {
    font-size: 11px;
}

.flat-history-metric {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-height: 36px;
    min-width: 0;
    padding: 8px 10px;
    text-align: left;
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: var(--control-radius);
}

.flat-history-metric[aria-pressed=true] {
    background: var(--raised);
    color: var(--text);
    border-color: var(--muted);
}

.flat-history-metric[aria-pressed=true] .flat-series-swatch {
    opacity: 1;
}

.flat-chart-reading {
    min-width: 0;
    padding-left: 10px;
    border-left: 2px solid var(--series-color);
}

.flat-chart-reading>small,
.flat-chart-reading>span {
    display: block;
    color: var(--muted);
    font-size: 11px;
}

.flat-chart-reading>strong {
    display: block;
    margin-top: 4px;
    font-size: 17px;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.flat-chart-date {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin: 8px 0;
}

.flat-chart-scrubber {
    display: block;
    margin: 4px 0;
}

.flat-chart-scrubber input {
    width: 100%;
    height: 44px;
    accent-color: var(--lime);
}

.flat-chart-scrubber input[type=range] {
    appearance: none;
    background: transparent;
    cursor: pointer;
}

.flat-chart-scrubber input::-webkit-slider-runnable-track {
    height: 3px;
    border-radius: 2px;
    background: var(--line);
}

.flat-chart-scrubber input::-webkit-slider-thumb {
    appearance: none;
    width: 14px;
    height: 14px;
    margin-top: -5.5px;
    border: 2px solid var(--lime);
    border-radius: 50%;
    background: var(--surface);
}

.flat-chart-scrubber input::-moz-range-track {
    height: 3px;
    border-radius: 2px;
    background: var(--line);
}

.flat-chart-scrubber input::-moz-range-thumb {
    width: 10px;
    height: 10px;
    border: 2px solid var(--lime);
    border-radius: 50%;
    background: var(--surface);
}

body[data-layout=mobile] .flat-history-metric {
    min-height: 44px;
    flex: 1 1 42%;
    font-size: 11px;
}

body[data-layout=mobile] .flat-history-metric>strong {
    font-size: 15px;
}

.flat-finance-kpis {
    grid-template-columns: repeat(4,minmax(0,1fr));
}

body[data-layout=desktop] .flat-finance-kpis>.metric-card:first-child {
    grid-column: 1/-1;
    background: #20271d;
}

body[data-layout=mobile] .flat-finance-kpis {
    grid-template-columns: repeat(2,minmax(0,1fr));
}

.flat-chart svg:not(.icon) {
    width: 100%;
    height: auto;
    min-height: 160px;
}

.flat-chart text {
    font: 10px Manrope;
    fill: var(--muted);
}

.flat-chart [role=button]:focus {
    outline: none;
    stroke: var(--lime);
    stroke-width: 2;
}

.flat-supply-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(min(100%,180px),1fr));
    gap: 12px;
}

.flat-supply-metric {
    background: var(--surface);
    border-radius: 7px;
    padding: 16px;
    min-width: 0;
}

.flat-supply-metric>span {
    display: block;
    font-size: 10px;
    color: var(--muted);
}

.flat-supply-metric>strong {
    display: block;
    font-size: 24px;
    margin: 8px 0;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

body[data-layout=mobile] .flat-supply-metrics {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 8px;
}

body[data-layout=mobile] .flat-supply-metrics>.flat-supply-metric:last-child:nth-child(odd) {
    grid-column: 1/-1;
}

body[data-layout=mobile] .flat-supply-metric {
    padding: 12px;
    border-radius: 9px;
}

body[data-layout=mobile] .flat-supply-metric>strong {
    font-size: 21px;
}

/* Обновление данных */

:where(html[data-layout=desktop]) .store-progress {
    display: flex;
    gap: 4px;
    margin-top: 22px;
}

:where(html[data-layout=desktop]) .store-progress span {
    height: 4px;
    background: var(--lime);
    flex: 1;
    border-radius: 2px;
}

:where(html[data-layout=desktop]) .store-progress span.off {
    background: var(--raised);
}

:where(html[data-layout=desktop]) .store-progress-label {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 9px;
    margin-top: 8px;
}

.m-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
}

:where(html[data-layout=desktop]) .job-progress>div:first-child {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 12px;
}

:where(html[data-layout=desktop]) .job-progress .bar-track {
    height: 6px;
}

:where(html[data-layout=desktop]) .job-progress>p {
    font-size: 10px;
    margin-top: 12px;
}

body[data-layout=mobile] [data-background-region=jobs-filters] {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    flex-wrap: wrap;
}

body[data-layout=mobile] [data-background-region=jobs-filters]>a {
    padding: 8px 4px;
    font-size: 11px;
    flex: 1 1 40%;
}

.flat-sync-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 0;
    border-bottom: 1px solid var(--quiet);
}

.flat-sync-action>div {
    min-width: 0;
}

.flat-sync-action strong {
    font-size: 13px;
    display: block;
}

.flat-sync-action small {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-top: 5px;
    line-height: 1.7;
}

.flat-sync-action>.btn {
    flex: none;
}

body[data-layout=desktop] .flat-jobs-table {
    table-layout: fixed;
}

.flat-jobs-table col:nth-child(1) { width: 12%; }
.flat-jobs-table col:nth-child(2) { width: 14%; }
.flat-jobs-table col:nth-child(3) { width: 32%; }
.flat-jobs-table col:nth-child(4) { width: 15%; }
.flat-jobs-table col:nth-child(5) { width: 7%; }
.flat-jobs-table col:nth-child(6),
.flat-jobs-table col:nth-child(7) { width: 10%; }

body[data-layout=desktop] .flat-jobs-table td {
    vertical-align: top;
}

.flat-job-time {
    font-size: 11px;
    line-height: 1.5;
}

.flat-job-time>span {
    display: block;
    white-space: nowrap;
}

.flat-job-details {
    margin: 0;
}

.flat-job-details>summary {
    padding: 0;
}

.flat-job-details>.flat-stack {
    margin-top: 14px;
    gap: 6px;
}

.flat-job-details p {
    margin: 0;
}

body[data-layout=mobile] .flat-jobs-table colgroup {
    display: none;
}

body[data-layout=mobile] .flat-job-time {
    font-size: 12px;
}

.flat-job-progress {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 10px;
    color: var(--muted);
    margin-top: 7px;
    max-width: 280px;
}

.flat-job-status--succeeded {
    color: var(--lime);
}

.flat-job-status--failed {
    color: var(--red);
}

.flat-job-status--warning {
    color: var(--amber);
}

.flat-job-status--running {
    color: #8db4ff;
}

body[data-layout=mobile] .flat-sync-action {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

.flat-job-status.job-status--running::before {
    background: var(--lime);
}

.flat-job-status.job-status--queued::before {
    background: var(--amber);
}

.flat-job-status.job-status--failed::before {
    background: var(--red);
}

.flat-job-status.job-status--warning::before {
    background: var(--amber);
}

.flat-job-status.job-status--succeeded::before {
    background: var(--lime);
}

.flat-jobs-toolbar {
    display: flex;
    align-items: end;
    gap: 20px;
}

.flat-jobs-run {
    display: grid;
    align-items: end;
    gap: 8px;
    margin: 0;
}

.flat-jobs-schedule {
    display: grid;
    align-items: end;
    gap: 8px;
    margin: 0;
    grid-template-columns: 140px auto auto;
}

.flat-jobs-service {
    display: grid;
    align-items: end;
    gap: 8px;
    margin: 0;
    grid-template-columns: minmax(160px,210px) auto;
}

.flat-jobs-run>span {
    color: var(--muted);
    font-size: 12px;
}

.flat-jobs-export {
    margin-left: auto;
}

.flat-jobs-current {
    margin-top: 16px;
}

.flat-jobs-current:has(>[data-background-job]) {
    padding-top: 16px;
    border-top: 1px solid var(--quiet);
}

.flat-jobs-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.flat-jobs-progress>progress {
    flex: 1;
    width: 100%;
    height: 6px;
    accent-color: var(--lime);
}

.flat-jobs-progress>span {
    font-size: 12px;
    color: var(--muted);
}

.flat-job-progress>progress {
    accent-color: var(--lime);
}

body[data-layout=mobile] .flat-jobs-toolbar {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 16px 8px;
}

body[data-layout=mobile] .flat-jobs-run {
    grid-column: 1;
}

body[data-layout=mobile] .flat-jobs-run>.btn {
    width: 100%;
}

body[data-layout=mobile] .flat-jobs-export {
    grid-column: 2;
    grid-row: 1;
}

body[data-layout=mobile] .flat-jobs-schedule {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0,1fr) auto;
}

body[data-layout=mobile] .flat-jobs-save-time {
    grid-column: 1 / -1;
}

body[data-layout=mobile] .flat-jobs-service {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0,1fr) auto;
}

/* Магазины, команда и профиль */

:where(html[data-layout=desktop]) .store-button {
    min-height: 32px;
    height: 32px;
    font-size: 11px;
    padding: 0 10px;
    gap: 10px;
}

:where(html[data-layout=desktop]) .store-button>span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

:where(html[data-layout=desktop]) .store-button .icon:last-child {
    margin-left: 0;
}

:where(html[data-layout=desktop]) .store-card {
    display: flex;
    gap: 17px;
    align-items: flex-start;
}

:where(html[data-layout=desktop]) .store-card .store-copy {
    flex: 1;
    min-width: 0;
}

:where(html[data-layout=desktop]) .store-copy h2 {
    font-size: 17px;
}

:where(html[data-layout=desktop]) .store-copy>p {
    font-size: 10px;
    color: var(--muted);
    margin: 4px 0 11px;
}

:where(html[data-layout=desktop]) .store-facts {
    display: flex;
    gap: 25px;
    margin: 20px 0 0;
}

:where(html[data-layout=desktop]) .store-facts small {
    display: block;
    color: var(--muted);
    font-size: 9px;
}

:where(html[data-layout=desktop]) .store-facts strong {
    font-size: 14px;
}

:where(html[data-layout=desktop]) .store-card .icon-btn {
    margin-left: auto;
}

.m-store-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.m-store-head>div {
    flex: 1;
    min-width: 0;
}

.m-store-head strong {
    font-size: 13px;
    display: block;
}

.m-store-head small {
    font-size: 10px;
    color: var(--muted);
    display: block;
    margin-top: 3px;
}

.m-store-head>.badge {
    flex: none;
}

.m-store-head+.m-facts dd {
    font-size: 13px;
}

.m-connection-list {
    margin: 16px 0 8px;
}

.m-connection-list>div {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    border-top: 1px solid var(--quiet);
    font-size: 11px;
}

.m-connection-list>div>span {
    width: 60px;
    font-weight: 650;
    flex: none;
}

.m-connection-list>div>small {
    flex: 1;
    font-size: 10px;
    color: var(--muted);
}

.m-connection-list .icon {
    width: 15px;
    height: 15px;
    color: var(--lime);
}

:where(html[data-layout=desktop]) .connected-store .store-card {
    align-items: center;
}

:where(html[data-layout=desktop]) .connection-health {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 8px;
}

:where(html[data-layout=desktop]) .connection-health>div {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--inset);
    padding: 10px;
    border-radius: 5px;
    min-width: 0;
}

:where(html[data-layout=desktop]) .connection-health>div>.icon:first-child {
    width: 18px;
    height: 18px;
    color: var(--muted);
    flex: none;
}

:where(html[data-layout=desktop]) .connection-health>div>span {
    min-width: 0;
    flex: 1;
}

:where(html[data-layout=desktop]) .connection-health strong {
    font-size: 10px;
    font-weight: 650;
    display: block;
}

:where(html[data-layout=desktop]) .connection-health small {
    font-size: 9px;
    color: var(--muted);
    display: block;
    margin-top: 3px;
}

:where(html[data-layout=desktop]) .connection-health>div>.icon:last-child {
    width: 13px;
    height: 13px;
    color: var(--lime);
    flex: none;
}

:where(html[data-layout=desktop]) .connection-health>div.attention>.icon:last-child {
    color: var(--amber);
}

:where(html[data-layout=desktop]) .store-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    min-height: 30px;
}

:where(html[data-layout=desktop]) .store-bottom .btn {
    flex: none;
}

.profile-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
}

.profile-link>span:nth-child(2) {
    flex: 1;
    min-width: 0;
}

.profile-link small {
    display: block;
    font-size: 10px;
    color: var(--muted);
    margin-top: 3px;
}

.profile-link strong {
    display: block;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.flat-store-order.marketplace-wb,
[data-marketplace=wb]>.flat-store-group-head .marketplace {
    background: var(--wb);
}

.flat-store-order.marketplace-ozon,
[data-marketplace=ozon]>.flat-store-group-head .marketplace {
    background: var(--ozon);
}

.panel-title>div:has(>.onboarding-field-label--icon-only) {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

body[data-layout=mobile] :is(.flat-profile,.flat-store-layout) .fields {
    grid-template-columns: minmax(0,1fr);
}

.flat-store-groups {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 18px;
}

.flat-connection-summary {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 16px 0 4px;
    color: var(--muted);
    font-size: 12px;
}

.flat-connection-summary strong {
    margin-left: 4px;
    color: var(--text);
}

.flat-store-groups:has(.flat-store-card[open]) {
    grid-template-columns: minmax(0,1fr);
}

.flat-store-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.flat-store-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 12px 0;
}

.flat-store-group-head>div {
    display: flex;
    gap: 10px;
    align-items: center;
}

.flat-store-group-head h3 {
    font-size: 12px;
    color: #fff;
}

.flat-store-card {
    background: var(--surface);
    border-radius: 10px;
    min-width: 0;
}

.flat-store-card>summary {
    display: grid;
    grid-template-columns: 36px minmax(0,1fr) auto;
    gap: 12px;
    align-items: center;
    list-style: none;
    cursor: pointer;
    padding: 18px;
}

.flat-store-card .flat-store-order.marketplace {
    width: 36px;
    height: 30px;
    padding: 0;
    color: #fff;
    font-size: 10px;
}

.flat-store-card>summary::-webkit-details-marker {
    display: none;
}

.flat-store-order {
    display: grid;
    place-items: center;
    align-self: start;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: var(--raised);
    font-size: 12px;
    color: var(--lime);
}

.flat-store-identity strong {
    font-size: 15px;
    display: block;
}

.flat-store-identity small {
    font-size: 11px;
    color: var(--muted);
    display: block;
    margin-top: 4px;
    overflow-wrap: anywhere;
}

.flat-store-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    grid-column: 2/3;
    margin-top: 4px;
}

.flat-store-card>summary>.icon {
    grid-column: 3;
    grid-row: 1/3;
    color: var(--muted);
}

.flat-store-card[open]>summary>.icon {
    transform: rotate(90deg);
}

.flat-store-body {
    display: grid;
    gap: 16px;
    padding: 18px;
    border-top: 1px solid var(--line);
}

.flat-store-section {
    padding: 16px 0 0;
    border-top: 1px solid var(--line);
    min-width: 0;
}

.flat-store-body>.flat-store-section:first-child {
    padding-top: 0;
    border-top: 0;
}

.flat-store-body>.flat-note {
    margin: 0;
}

.flat-source-file-field {
    width: 100%;
    max-width: 480px;
}

.flat-source-file-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0 16px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.flat-source-file-meta>a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.flat-store-section>summary {
    padding-block: 0;
}

.flat-store-section>.panel-title {
    margin-bottom: 12px;
}

.flat-store-body>.flat-fold {
    margin: 0;
}

.flat-store-body .source-runtime {
    margin-top: 16px;
}

.flat-store-body .source-runtime>.flat-field-preview {
    padding-block: 6px;
}

.flat-store-body .connection-card__delete {
    padding-top: 16px;
    border-top: 1px solid var(--quiet);
}

body[data-layout=desktop] .fields.flat-credentials-ozon {
    grid-template-columns: 220px minmax(0,480px);
}

body[data-layout=mobile] .fields.flat-credentials-ozon,
body[data-layout=mobile] .team-form.fields {
    grid-template-columns: minmax(0,1fr);
}

.flat-store-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
}

.flat-store-layout>.m-card,
.flat-store-layout>.panel {
    margin: 0;
}

.flat-team-store {
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 6px;
    min-width: 0;
}

.flat-person-card>summary>.flat-store-badges {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
}

body[data-layout=mobile] .flat-person-card>summary>.flat-store-badges {
    grid-column: 1;
    grid-row: 2;
}

.flat-store-section>summary>span:not(.pill):not(.flat-chevron) {
    flex: 1;
}

.store-onboarding__warehouse-action {
    display: grid;
    justify-items: start;
    gap: 8px;
}

.store-onboarding__warehouse-action>small {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
}

body[data-layout=mobile] .flat-store-groups,
body[data-layout=mobile] .flat-store-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

body[data-layout=mobile] .flat-store-card>summary {
    padding: 14px;
    gap: 10px;
}

body[data-layout=mobile] .flat-store-badges {
    gap: 8px;
}

body[data-layout=mobile] .flat-store-body {
    padding: 14px;
}

.onboarding-field-label {
    display: flex;
    align-items: baseline;
    gap: 7px;
    min-height: 20px;
    margin-bottom: 6px;
}

.onboarding-field-label--icon-only {
    display: inline-flex;
    min-height: 0;
    margin: 0;
}

.onboarding-field-help {
    display: inline-block;
    contain: layout;
    flex: none;
    line-height: 0;
}

.onboarding-help-trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 14px;
    height: 14px;
    border: 1px solid var(--line);
    border-radius: 50%;
    padding: 0;
    background: var(--inset);
    color: var(--muted);
    font-size: 10px;
    line-height: 1;
}

.onboarding-help-trigger:focus-visible,
.onboarding-help-trigger:hover {
    border-color: var(--lime);
    color: var(--lime);
}

.onboarding-help-popover {
    position: fixed;
    inset: auto;
    margin: 0;
    box-sizing: border-box;
    width: min(360px,calc(100vw - 24px));
    max-height: min(620px,calc(100dvh - 32px));
    border: 1px solid var(--subtle);
    border-radius: 8px;
    background: var(--raised);
    color: var(--text);
    padding: 16px;
    overflow: auto;
    font: 12px/1.65 Manrope,Arial,sans-serif;
    white-space: normal;
    box-shadow: 0 16px 40px #0009;
}

.onboarding-help-popover::backdrop {
    background: transparent;
}

.onboarding-help-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.onboarding-help-title {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.onboarding-help-title>span {
    font-size: 10px;
    color: var(--muted);
}

.onboarding-help-icon {
    color: var(--lime);
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: var(--raised);
    flex: none;
}

.onboarding-help-icon .icon {
    width: 18px;
    height: 18px;
}

.onboarding-help-title>strong {
    font-size: 15px;
    line-height: 1.4;
}

.onboarding-help-body ol {
    display: grid;
    gap: 12px;
    list-style-type: decimal-leading-zero;
    padding-left: 18px;
}

.onboarding-help-body li::marker {
    color: var(--lime);
    font-size: 11px;
    font-weight: 700;
}

.onboarding-profit-guide {
    display: grid;
    gap: 12px;
    margin: 0;
}

.onboarding-profit-guide dt {
    color: var(--text);
    font-weight: 700;
}

.onboarding-profit-guide dd {
    margin: 2px 0 0;
    color: var(--muted);
}

.onboarding-profit-example {
    border-left: 2px solid var(--lime);
    padding-left: 10px;
    margin: 14px 0 0;
}

.onboarding-help-footer {
    padding-top: 14px;
    margin-top: 16px;
    border-top: 1px solid var(--quiet);
}

.onboarding-help-footer>span {
    color: var(--muted);
    font-size: 10px;
}

.onboarding-help-footer kbd {
    border: 1px solid var(--line);
    padding: 2px 5px;
    border-radius: 3px;
    font: inherit;
}

body[data-layout=mobile] .onboarding-help-trigger::after {
    content: "";
    position: absolute;
    inset: -15px;
}

body[data-layout=mobile] .onboarding-help-footer>span {
    display: none;
}

body[data-layout=mobile] .onboarding-help-popover {
    inset: auto 0 0;
    margin: 0;
    width: 100%;
    max-height: 85dvh;
    border-radius: 12px 12px 0 0;
    border-color: var(--line);
    background: var(--surface);
    padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
    box-shadow: none;
}

body[data-layout=mobile] .onboarding-help-popover::backdrop {
    background: #0007;
}

html:has(body[data-layout=mobile] .onboarding-help-popover:popover-open) {
    overflow: hidden;
}

body[data-layout=mobile] .onboarding-help-close {
    min-width: 44px;
    min-height: 44px;
}

.onboarding-help-close {
    display: grid;
    place-items: center;
    flex: none;
    width: var(--control-height);
    height: var(--control-height);
    background: var(--raised);
    border: 1px solid var(--line);
    border-radius: 5px;
}

.onboarding-help-close svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 1.7;
    fill: none;
}

.onboarding-help-body p+p {
    margin-top: 10px;
}

.onboarding-help-body a {
    color: var(--lime);
    text-decoration: underline;
}

.onboarding-help-screenshot img {
    width: 100%;
    height: auto;
}

.onboarding-help-view-toggle {
    margin-top: 12px;
}

.flat-form :is(.flat-field-title,.onboarding-field-label)>label[for] {
    margin: 0;
    line-height: 1.5;
}

.m-menu-profile {
    border-top: 1px solid var(--line);
    padding-top: 8px;
    flex: none;
}

.m-menu-profile>form>.btn {
    width: 100%;
    margin-top: 6px;
}

.m-header-account {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: none;
}

.m-header-account .flat-access-indicators {
    display: grid;
    gap: 2px;
}

.m-header-account .flat-access-light {
    min-height: 14px;
    font-size: 9px;
    line-height: 1.3;
    gap: 5px;
    white-space: nowrap;
}

.m-header-account .flat-access-dot {
    width: 6px;
    height: 6px;
}

.m-header-account>.m-avatar {
    display: grid;
    place-items: center;
    flex: none;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 6px;
    background: transparent;
    border: 0;
    border-radius: 50%;
}

.flat-profile-avatar {
    display: grid;
    place-items: center;
    position: relative;
    width: 32px;
    height: 32px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--raised);
    color: var(--muted);
}

.flat-profile-person {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.flat-profile-emblem {
    position: absolute;
    top: -3px;
    right: -4px;
    width: 15px;
    height: 15px;
    padding: 1px;
    border-radius: 4px;
    background: var(--bg);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.3;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.flat-profile-avatar.is-system .flat-profile-emblem {
    color: var(--lime);
    fill: var(--lime);
    stroke-width: .6;
}

.flat-profile-avatar.is-owner .flat-profile-emblem {
    color: var(--amber);
}

.flat-profile-avatar.is-manager {
    border: 0;
    background: transparent;
}

.flat-profile-avatar.is-manager .flat-profile-person {
    width: 18px;
    height: 18px;
}

.flat-profile-wreath {
    position: absolute;
    inset: 0;
    width: 32px;
    height: 32px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.m-header-account>.m-avatar:hover .flat-profile-avatar,
.topbar-actions>.avatar:hover .flat-profile-avatar {
    border-color: var(--lime);
    color: var(--text);
}

.flat-auth {
    width: min(440px,calc(100% - 32px));
    margin: 0 auto;
    padding: clamp(32px,12vh,110px) 0;
}

.flat-auth-brand {
    margin-bottom: 24px;
}

.flat-auth-brand .brand,
.flat-auth-brand .m-brand {
    justify-content: center;
}

.flat-auth h1 {
    font-family: Oswald,Arial,sans-serif;
    font-size: 30px;
    line-height: 1.2;
    margin-bottom: 6px;
}

.flat-auth .flat-form {
    margin-top: 22px;
}

.flat-auth .flat-note {
    text-align: center;
    margin: 16px 0 0;
}

.flat-auth .btn {
    min-height: 44px;
}

/* Поставки и возвраты */

.m-logistics-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--inset);
    border-radius: 7px;
    padding: 12px;
}

.m-logistics-result span {
    font-size: 12px;
    color: var(--muted);
}

.m-logistics-result strong {
    font-size: 25px;
    color: var(--lime);
}

.m-logistics-result>div {
    min-width: 0;
    flex: 1;
}

.m-logistics-result>div>span {
    display: block;
    font-size: 12px;
    color: var(--text);
    font-weight: 650;
}

.m-logistics-result>div>small {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.m-logistics-result>strong {
    font-size: 23px;
    font-weight: 750;
    color: var(--text);
    margin-left: 10px;
}

body[data-layout=desktop] .fields.flat-planning-fields {
    grid-template-columns: 240px 160px max-content;
}

.flat-supply-field {
    flex: 1;
    min-width: 150px;
}

.flat-supply-rules {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
    font-size: 10px;
    color: var(--muted);
}

.flat-supply-rules>span {
    padding: 7px 10px;
    background: var(--inset);
    border-radius: 4px;
}

.flat-supply-scroll {
    max-height: 620px;
    overflow: auto;
}

.flat-plan-table-wrap {
    max-height: 620px;
}

.flat-planning-table {
    table-layout: fixed;
    width: 100%;
}

.flat-plan-status-column {
    width: 24%;
}

.flat-planning-table :is(td,th) {
    padding: 12px;
    vertical-align: top;
    overflow-wrap: anywhere;
}

.flat-planning-table th {
    white-space: normal;
}

.flat-plan-product>.row-link {
    font-weight: 650;
}

.flat-plan-product>small {
    display: block;
    margin-top: 4px;
}

.flat-planning-table td.flat-plan-quantity>strong {
    font-size: 18px;
}

.flat-plan-packaging {
    font-variant-numeric: tabular-nums;
}

.flat-plan-status>.badge {
    max-width: 100%;
    white-space: normal;
}

.flat-plan-status>.btn {
    margin-top: 8px;
    max-width: 100%;
    white-space: normal;
}

.flat-planning-table .flat-plan-status>.btn {
    background: var(--raised);
    border-color: var(--line);
}

.flat-planning-table .flat-plan-packaging>.warn {
    color: var(--amber);
}

.flat-plan-warning {
    box-shadow: inset 2px 0 var(--amber);
}

.flat-plan-details {
    margin-top: 8px;
}

.flat-plan-details>summary {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    list-style: none;
    color: var(--muted);
    font-size: 11px;
    cursor: pointer;
}

.flat-plan-details>summary::-webkit-details-marker {
    display: none;
}

.flat-plan-details>summary>.icon {
    width: 12px;
    height: 12px;
    flex: none;
}

.flat-plan-details[open]>summary>.icon {
    transform: rotate(90deg);
}

.flat-plan-facts {
    margin-top: 12px;
    gap: 12px;
}

.flat-plan-facts>div {
    min-width: 0;
}

.flat-plan-facts dd {
    font-size: 12px;
}

.flat-plan-cards {
    margin-top: 12px;
}

.flat-plan-card {
    padding: 16px 0;
    border-top: 1px solid var(--quiet);
}

.flat-plan-card.flat-plan-warning {
    padding-inline: 12px;
}

.flat-plan-card>header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.flat-plan-card>header>.row-link {
    font-size: 14px;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.flat-plan-card .flat-plan-packaging {
    color: var(--muted);
    font-size: 11px;
}

.flat-plan-card .flat-plan-packaging>strong {
    margin-left: 4px;
    color: var(--text);
}

.flat-plan-card .flat-plan-packaging>strong.warn {
    color: var(--amber);
}

.flat-plan-name {
    margin: 8px 0 12px;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.flat-plan-actions {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px;
    margin: 0 0 12px;
}

.flat-plan-actions dt {
    color: var(--muted);
    font-size: 11px;
}

.flat-plan-actions dd {
    margin: 4px 0 0;
    font-size: 22px;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
}

.flat-plan-actions dd>small {
    font-size: 11px;
    color: var(--muted);
    font-weight: 400;
}

.flat-plan-card .flat-plan-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.flat-plan-card .flat-plan-status>.btn {
    margin: 0;
}

.flat-plan-card .flat-plan-details>summary {
    min-height: 44px;
}

.flat-supply-source label {
    margin: 14px 0;
}

.flat-supply-source .flat-inline>label {
    flex: 1;
    margin: 0;
}

.flat-supply-filters {
    margin: 14px 0;
}

.flat-supply-filters input {
    flex: 2;
    min-width: 160px;
}

.flat-supply-filters select {
    flex: 1;
    min-width: 130px;
}

.flat-supply-workspace,
.flat-supply-workspace .flat-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.flat-supply-search-results {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 12px 0;
}

.flat-supply-search-results>button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    background: var(--inset);
    border: 1px solid var(--line);
    border-radius: 5px;
    text-align: left;
}

body[data-layout=mobile] .flat-supply-workspace>.grid-2 {
    display: flex;
    flex-direction: column;
    gap: 0;
}

body[data-layout=mobile] .flat-supply-scroll {
    max-height: none;
    overflow: visible;
}

body[data-layout=mobile] .flat-supply-field {
    min-width: 100%;
}

body[data-layout=mobile] .flat-supply-filters {
    flex-wrap: wrap;
}

body[data-layout=mobile] .flat-supply-filters input,
body[data-layout=mobile] .flat-supply-filters select {
    flex: 1;
    min-width: 100%;
}

body[data-layout=mobile] .flat-supply-workspace .action-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
}

.flat-tnved-filters {
    padding: 14px;
    align-items: flex-end;
}

.flat-tnved-filters>label {
    flex: 1;
    min-width: 180px;
}

[data-tnved-form]>.action-footer {
    padding: 0 16px 16px;
}

[data-tnved-form]>.action-footer>div>.flat-note {
    display: block;
    margin: 4px 0 0;
}

.flat-tnved-selection {
    padding: 12px 16px;
    border-top: 1px solid var(--line);
}

.flat-tnved-code {
    padding: 0;
    text-align: left;
    background: transparent;
    max-width: 270px;
}

.flat-tnved-code strong {
    display: block;
    font-size: 15px;
    color: var(--text);
}

.flat-tnved-code small {
    display: block;
    font-size: 10px;
    color: var(--muted);
    line-height: 1.6;
    margin-top: 4px;
}

.flat-tnved-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    font-size: 10px;
    color: var(--muted);
}

.flat-tnved-pagination input {
    max-width: 75px;
}

.flat-tnved-pagination .flat-form>label {
    flex-direction: row;
    align-items: center;
    flex: 0 0 auto;
    gap: 8px;
    white-space: nowrap;
}

.flat-tnved-pagination>.flat-form {
    gap: 12px;
    align-items: center;
}

.flat-tnved-pagination .flat-form select {
    width: 78px;
}

.flat-tnved-pagination .flat-form input[type=number] {
    width: 64px;
}

.flat-tnved-pagination .flat-inline {
    gap: 5px;
}

.flat-tnved-dialog {
    width: min(960px,calc(100vw - 32px));
}

.flat-tnved-dialog .dialog-body {
    max-height: 65dvh;
    overflow: auto;
}

.flat-tnved-dialog .flat-note {
    margin: 0;
}

.flat-tnved-dialog .dialog-head>div {
    min-width: 0;
    flex: 1;
}

.flat-tnved-characteristics,
.flat-tnved-description {
    max-height: 260px;
    overflow: auto;
    font-size: 11px;
    line-height: 1.7;
    color: var(--muted);
}

.flat-tnved-characteristics dt {
    font-weight: 700;
    color: var(--text);
    margin-top: 10px;
}

.flat-tnved-characteristics dd {
    margin: 0;
}

.flat-tnved-candidates {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 300px;
    overflow: auto;
}

.flat-tnved-candidates>button {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
    padding: 12px;
    background: var(--inset);
    border: 1px solid var(--line);
    border-radius: 5px;
    font-size: 11px;
}

.flat-tnved-candidates>button strong {
    flex: none;
    color: var(--text);
}

.flat-tnved-candidates>button[data-current=true] {
    border-color: var(--lime);
}

.flat-tnved-arrow {
    display: none;
}

body[data-layout=mobile] .flat-tnved-filters {
    padding: 12px 0;
}

body[data-layout=mobile] .flat-tnved-filters>label {
    min-width: 100%;
    width: 100%;
}

body[data-layout=mobile] .flat-tnved-pagination,
body[data-layout=mobile] .flat-tnved-selection {
    padding: 12px 0;
}

body[data-layout=mobile] .flat-tnved-dialog {
    width: calc(100vw - 20px);
    padding: 14px;
}

body[data-layout=mobile] .flat-tnved-dialog .grid-2 {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

body[data-layout=mobile] .flat-tnved-candidates>button {
    flex-direction: column;
    gap: 5px;
}

body[data-layout=mobile] .flat-tnved-dialog .dialog-foot {
    justify-content: space-between;
}

body[data-layout=mobile] .flat-tnved-dialog .dialog-foot .btn-text {
    display: none;
}

body[data-layout=mobile] .flat-tnved-arrow {
    display: inline;
}

.flat-plan-region {
    display: contents;
}

/* Поддержка и оплата */

:where(html[data-layout=desktop]) .ticket-thread {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.m-ticket-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 14px;
}

.m-ticket {
    display: grid;
    grid-template-columns: minmax(0,1fr) 16px;
    gap: 8px;
    background: var(--surface);
    border-radius: 9px;
    padding: 14px;
}

.m-ticket>div {
    min-width: 0;
}

.m-ticket strong {
    display: block;
    font-size: 13px;
    line-height: 1.5;
}

.m-ticket small {
    display: block;
    font-size: 10px;
    color: var(--muted);
    margin-top: 4px;
}

.m-ticket>.icon {
    width: 16px;
    height: 16px;
    color: var(--subtle);
    margin-top: 3px;
}

.m-ticket footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    grid-column: 1/-1;
    padding-top: 5px;
}

.m-ticket time {
    color: var(--subtle);
    font-size: 10px;
}

.m-ticket-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 10px;
    color: var(--muted);
    margin: -5px 0 10px;
}

.m-ticket-summary>.text-link {
    margin-left: auto;
    font-size: 10px;
}

.m-ticket-summary>.text-link .icon {
    width: 15px;
    height: 15px;
}

.message .m-attachment {
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--inset);
    border-radius: 6px;
    padding: 10px;
    font-size: 10px;
    margin-top: 10px;
    min-height: 44px;
    color: var(--muted);
    width: 100%;
    text-align: left;
}

.m-attachment .icon {
    width: 16px;
    height: 16px;
}

.m-reply-form {
    background: var(--surface);
    border-radius: 9px;
    padding: 14px;
    margin-bottom: 14px;
}

.m-reply-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 10px;
}

.m-reply-actions>.btn {
    flex: 1;
}

:where(html[data-layout=desktop]) .billing-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

:where(html[data-layout=desktop]) .billing-summary strong {
    font: 500 45px Oswald;
    display: block;
    color: var(--lime);
}

:where(html[data-layout=desktop]) .billing-summary b {
    display: block;
    font-size: 17px;
    margin-top: 5px;
}

:where(html[data-layout=desktop]) .billing-summary .muted {
    font-size: 10px;
}

.flat-stack>.m-reply-actions {
    margin-top: 0;
}

body[data-layout=mobile] .m-ticket footer {
    flex-wrap: wrap;
}

body[data-layout=mobile] .m-ticket footer>time {
    margin-left: auto;
}

body[data-layout=mobile] .m-reply-actions {
    display: grid;
    grid-template-columns: minmax(0,1fr);
}

body[data-layout=mobile] .m-reply-actions>.btn {
    width: 100%;
}

body[data-layout=mobile]:has(main form:focus-within) .signal-contact-trigger {
    display: none;
}

.fields.flat-billing-period-fields {
    grid-template-columns: minmax(0,240px) max-content;
}

body[data-layout=desktop] [data-billing-requisites] .fields {
    grid-template-columns: repeat(2,minmax(0,220px));
}

body[data-layout=mobile] [data-billing-requisites] .fields {
    grid-template-columns: repeat(2,minmax(0,1fr));
}

:is(.flat-inline,.m-reply-actions):has(input[type=file]) {
    flex-wrap: wrap;
}

:is(.flat-inline,.m-reply-actions)>label:has(input[type=file]) {
    flex: 1 1 260px;
    min-width: 0;
}

.signal-contact-trigger {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 35;
    min-height: 44px;
    border-color: var(--line);
    color: var(--lime);
    background: var(--raised);
}

.signal-contact-links {
    display: grid;
    gap: 8px;
}

body[data-layout=desktop] .signal-contact-panel {
    width: 360px;
}

.signal-contact-links>.btn {
    width: 100%;
    justify-content: flex-start;
    min-height: 44px;
}

.signal-contact-links>.btn>span {
    flex: 1;
    text-align: left;
}

body[data-layout=mobile] .signal-contact-trigger {
    right: 12px;
    bottom: calc(86px + var(--safe-bottom));
    width: 44px;
    padding: 0;
}

body:has(.flat-form.has-edits) .signal-contact-trigger,
body:has([data-edit-row].has-edits) .signal-contact-trigger,
body[data-layout=mobile] .signal-contact-trigger>span:not([data-support-notice]) {
    display: none;
}

.support-notice {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--amber);
    color: var(--ink);
    width: 16px;
    height: 16px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    margin-left: auto;
}

body[data-layout=desktop]:has(.signal-contact-trigger) .content {
    padding-bottom: 84px;
}

.flat-billing-caption {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin: 8px 0;
}

.flat-billing-price {
    display: block;
    font-size: 42px;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    font-weight: 750;
    letter-spacing: -1px;
}

.flat-billing-price>span {
    font-size: 20px;
    color: var(--muted);
}

.flat-billing-quote {
    background: var(--inset);
    border-radius: 7px;
    padding: 18px;
    margin: 14px 0;
}

.flat-billing-quote p {
    font-size: 11px;
    color: var(--muted);
    margin-top: 10px;
}

.flat-billing-rate {
    margin: 18px 0;
}

.flat-billing-rate>strong {
    font-size: 26px;
}

.flat-billing-rate>strong span {
    font-size: 12px;
    color: var(--muted);
}

.flat-billing-quote .badge {
    margin: 10px 0;
}

body[data-layout=mobile] .flat-billing-price {
    font-size: 34px;
}

body[data-layout=mobile] [data-billing-page] .flat-form .flat-inline>select {
    flex: 1;
    width: auto;
}

/* Диалоги и вспомогательные элементы */

:where(html[data-layout=desktop]) select {
    -webkit-tap-highlight-color: transparent;
}

:where(html[data-layout=desktop]) textarea {
    font: inherit;
    border-radius: 5px;
}

select {
    font: inherit;
}

textarea {
    -webkit-tap-highlight-color: transparent;
    width: 100%;
    min-height: 112px;
    resize: vertical;
    padding: 12px;
    background: var(--inset);
    border: 1px solid var(--line);
    color: var(--text);
}

:where(html[data-layout=mobile]) textarea {
    font: inherit;
    display: block;
    border-radius: 7px;
    font-size: 16px;
    line-height: 1.5;
}

:where(html[data-layout=desktop]) button:disabled {
    opacity: .36;
}

:where(html[data-layout=mobile]) button:disabled {
    opacity: .4;
}

button:disabled {
    cursor: not-allowed;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--lime);
    outline-offset: 3px;
}

:where(html[data-layout=desktop]) button:active:not(:disabled) {
    opacity: .8;
}

:where(html[data-layout=mobile]) a:active,
:where(html[data-layout=mobile]) button:active:not(:disabled) {
    opacity: .78;
}

[hidden] {
    display: none !important;
}

:where(html[data-layout=mobile]) dl,
p {
    margin: 0;
}

:where(html[data-layout=mobile]) strong {
    font-weight: 750;
}

small {
    font-size: 11px;
}

:where(html[data-layout=desktop]) strong {
    font-weight: 700;
}

.icon {
    width: 20px;
    height: 20px;
    flex: none;
}

:where(html[data-layout=mobile]) .icon.sm {
    width: 15px;
    height: 15px;
}

.accent {
    color: var(--lime);
}

.money {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.numeric {
    font-variant-numeric: tabular-nums;
}

.warning {
    color: var(--amber);
}

:where(html[data-layout=desktop]) .money,
:where(html[data-layout=desktop]) .numeric {
    letter-spacing: -.25px;
}

.money .group {
    display: inline-block;
}

:where(html[data-layout=desktop]) .money .group {
    width: .17em;
}

:where(html[data-layout=mobile]) .money,
:where(html[data-layout=mobile]) .numeric {
    letter-spacing: -.3px;
}

.money small {
    color: var(--muted);
    font-weight: 500;
}

:where(html[data-layout=desktop]) .money small {
    font-size: .67em;
    margin-left: 4px;
}

.code {
    font-size: 11px;
    color: var(--muted);
}

:where(html[data-layout=desktop]) .code {
    letter-spacing: .15px;
}

:where(html[data-layout=mobile]) .money .group {
    width: .14em;
}

:where(html[data-layout=desktop]) .eyebrow {
    font-size: 10px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--muted);
}

:where(html[data-layout=mobile]) .money small {
    font-size: .62em;
    margin-left: 3px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
}

:where(html[data-layout=desktop]) .icon {
    color: inherit;
}

:where(html[data-layout=mobile]) .code {
    overflow-wrap: anywhere;
}

.skip-link {
    position: fixed;
    background: var(--lime);
    color: var(--ink);
    padding: 12px;
    z-index: 100;
}

:where(html[data-layout=desktop]) .icon.sm {
    width: 16px;
    height: 16px;
}

:where(html[data-layout=mobile]) .skip-link {
    left: 12px;
    top: -90px;
}

:where(html[data-layout=desktop]) .skip-link {
    left: 24px;
    top: -70px;
}

:where(html[data-layout=mobile]) .skip-link:focus {
    top: 12px;
}

:where(html[data-layout=desktop]) .skip-link:focus {
    top: 10px;
}

:where(html[data-layout=mobile]) .mobile-boot {
    display: none;
    padding: 24px;
}

:where(html[data-layout=mobile]) .mobile-loading .mobile-boot {
    display: block;
}

:where(html[data-layout=mobile]) .mobile-loading #app {
    display: none;
}

.m-data-time {
    font-size: 9px;
    color: var(--subtle);
    white-space: nowrap;
    text-align: right;
    margin-top: 6px;
}

.m-avatar {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: none;
    background: var(--raised);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
}

:where(html[data-layout=desktop]) .count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    min-width: 20px;
    height: 18px;
    font-size: 10px;
    line-height: 1;
    background: var(--raised);
    padding: 0 5px;
    border-radius: 3px;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

:where(html[data-layout=desktop]) .tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 5px;
    padding: 7px 11px;
    min-height: 34px;
    background: transparent;
    color: var(--muted);
    font-weight: 700;
}

:where(html[data-layout=desktop]) .tab:hover {
    background: var(--raised);
    color: var(--text);
}

:where(html[data-layout=desktop]) .tab.active {
    background: var(--lime);
    color: var(--ink);
}

:where(html[data-layout=desktop]) .tab.active .count {
    background: #acde1d;
    color: var(--ink);
}

:where(html[data-layout=desktop]) .tab .icon {
    width: 17px;
    height: 17px;
}

.segment {
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 7px;
}

:where(html[data-layout=desktop]) .segment {
    display: inline-flex;
    background: var(--inset);
    gap: 3px;
}

.m-back {
    display: grid;
    place-items: center;
    width: 44px;
    min-height: 44px;
    flex: none;
    color: var(--muted);
    grid-column: 1;
    grid-row: 2;
}

.segment button {
    border-radius: 4px;
}

:where(html[data-layout=desktop]) .segment button {
    padding: 5px 10px;
    min-height: 30px;
    background: transparent;
    color: var(--muted);
    font-weight: 700;
}

.m-back .icon {
    transform: rotate(180deg);
    width: 18px;
    height: 18px;
}

:where(html[data-layout=desktop]) .segment button.active {
    background: var(--raised);
    color: var(--text);
}

.toggle {
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

:where(html[data-layout=desktop]) .toggle {
    display: inline-flex;
    font-weight: 600;
}

.m-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
    font-size: 10px;
    color: var(--subtle);
}

.toggle input {
    flex: none;
    appearance: none;
    border-radius: 20px;
    position: relative;
    margin: 0;
    cursor: pointer;
}

:where(html[data-layout=desktop]) .toggle input {
    width: 32px;
    height: 19px;
    background: #454d54;
}

.m-footer small {
    width: 100%;
    font-size: 9px;
}

.toggle input::after {
    content: "";
    border-radius: 50%;
    background: var(--text);
    position: absolute;
    top: 3px;
    left: 3px;
}

:where(html[data-layout=desktop]) .toggle input::after {
    width: 13px;
    height: 13px;
}

.toggle input:checked::after {
    background: var(--ink);
}

:where(html[data-layout=desktop]) .toggle input:checked::after {
    left: 16px;
}

.m-inline-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    min-height: 44px;
    color: var(--muted);
    padding: 8px 0;
}

:where(html[data-layout=mobile]) .stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.m-period-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 14px;
}

:where(html[data-layout=desktop]) kbd {
    font: 10px Manrope;
    color: var(--subtle);
    border: 1px solid var(--line);
    padding: 2px 4px;
    border-radius: 3px;
}

:where(html[data-layout=desktop]) .side-foot {
    padding-top: 12px;
    border-top: 1px solid var(--quiet);
    margin-top: 10px;
}

:where(html[data-layout=desktop]) .avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: var(--raised);
    color: var(--muted);
    border-radius: 5px;
    font-size: 10px;
    font-weight: 700;
    flex: none;
}

:where(html[data-layout=desktop]) .content {
    padding: 14px 32px 28px;
    max-width: 1600px;
    margin: auto;
}

.m-note {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.6;
    margin: 9px 0 12px;
}

.m-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 18px 0 10px;
}

.m-section-title h2 {
    font-size: 16px;
}

.m-section-title>small {
    color: var(--subtle);
    font-size: 10px;
}

:where(html[data-layout=desktop]) .bottom-nav {
    display: none;
}

:where(html[data-layout=desktop]) .screen-foot {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    color: var(--subtle);
    font-size: 9px;
    margin-top: 24px;
}

:where(html[data-layout=desktop]) .screen-foot a:hover {
    color: var(--lime);
}

:where(html[data-layout=desktop]) .workbench {
    background: var(--surface);
    border-radius: 7px;
    overflow: visible;
}

:where(html[data-layout=desktop]) .workbench-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 16px;
}

:where(html[data-layout=desktop]) .filters {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px 12px;
}

.m-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    min-width: 0;
}

.m-row+.m-row {
    border-top: 1px solid var(--quiet);
}

.m-row-copy {
    flex: 1;
    min-width: 0;
}

.m-row-copy strong {
    display: block;
    font-size: 12px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.m-row-copy small {
    display: block;
    font-size: 10px;
    color: var(--muted);
    margin-top: 3px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.m-row-tail {
    flex: none;
    max-width: 48%;
    font-size: 13px;
}

:where(html[data-layout=desktop]) .stock {
    font-size: 16px;
    font-weight: 650;
}

.m-row-icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 34px;
    flex: none;
    color: var(--muted);
}

.m-row-icon>.icon {
    width: 20px;
    height: 20px;
}

:where(html[data-layout=desktop]) .promo-state {
    font-size: 10px;
    color: var(--muted);
}

:where(html[data-layout=desktop]) .promo-state .promo {
    color: #f094dc;
}

:where(html[data-layout=desktop]) .promo-rate {
    font-size: 12px;
    margin-top: 3px;
    font-weight: 650;
}

:where(html[data-layout=desktop]) .updated {
    font-size: 10px;
}

:where(html[data-layout=desktop]) .updated small {
    display: block;
    font-size: 9px;
    color: var(--subtle);
    margin-top: 3px;
}

:where(html[data-layout=desktop]) .filter-count {
    color: var(--lime);
    font-size: 10px;
}

.grid-2 {
    align-items: start;
}

:where(html[data-layout=desktop]) .grid-2 {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 16px;
}

.grid-main {
    align-items: start;
}

:where(html[data-layout=desktop]) .grid-main {
    display: grid;
    grid-template-columns: minmax(0,1.65fr) minmax(270px,.8fr);
    gap: 16px;
}

.m-policy {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 13px;
    background: var(--surface);
    border-radius: 9px;
    margin-bottom: 14px;
    min-height: 60px;
}

.m-policy>.icon:first-child {
    color: var(--lime);
    width: 22px;
    height: 22px;
}

.m-policy>span {
    flex: 1;
    min-width: 0;
}

.m-policy strong {
    display: block;
    font-size: 12px;
}

.m-policy small {
    display: block;
    font-size: 10px;
    color: var(--muted);
    margin-top: 3px;
}

.m-policy>.icon:last-child {
    width: 16px;
    height: 16px;
    color: var(--subtle);
}

:where(html[data-layout=desktop]) .rule-default {
    display: grid;
    grid-template-columns: minmax(250px,.8fr) minmax(0,1.7fr);
    gap: 28px;
}

:where(html[data-layout=desktop]) .rule-default h2 {
    font: 500 27px Oswald;
}

.m-searchbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: var(--component-gap);
}

:where(html[data-layout=desktop]) .rule-default p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 11px;
    max-width: 280px;
}

.m-list-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    margin: 2px 0 8px;
}

.m-list-toolbar>span:first-child {
    font-size: 10px;
    color: var(--subtle);
    margin-right: auto;
}

:where(html[data-layout=desktop]) .range-index {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0 16px;
}

:where(html[data-layout=desktop]) .range-index .eyebrow {
    color: var(--lime);
}

:where(html[data-layout=desktop]) .range-track {
    display: grid;
    grid-template-columns: 1fr 1.6fr 2.2fr;
    gap: 4px;
    margin-bottom: 8px;
}

:where(html[data-layout=desktop]) .range-track span {
    height: 5px;
    background: #b4dc43;
    border-radius: 2px;
}

:where(html[data-layout=desktop]) .range-track span:nth-child(2) {
    background: #7f9d32;
}

:where(html[data-layout=desktop]) .range-track span:nth-child(3) {
    background: #435a1e;
}

:where(html[data-layout=desktop]) .range-track-labels {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    color: var(--muted);
    margin-bottom: 24px;
}

:where(html[data-layout=desktop]) .range-row {
    display: grid;
    grid-template-columns: 32px minmax(160px,1.2fr) repeat(4,minmax(85px,.75fr)) 32px;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
}

:where(html[data-layout=desktop]) .range-number {
    font: 500 28px Oswald;
    color: var(--subtle);
}

:where(html[data-layout=desktop]) .range-bounds {
    font-size: 19px;
    letter-spacing: -.5px;
    font-weight: 700;
}

:where(html[data-layout=desktop]) .range-bounds small {
    display: block;
    font-size: 10px;
    letter-spacing: 0;
    font-weight: 500;
    color: var(--muted);
    margin-top: 3px;
}

:where(html[data-layout=desktop]) .range-stat>span {
    display: block;
    font-size: 9px;
    color: var(--muted);
}

:where(html[data-layout=desktop]) .range-stat strong {
    font-size: 16px;
}

:where(html[data-layout=desktop]) .range-stat.goal strong {
    color: var(--lime);
}

:where(html[data-layout=desktop]) .range-editor {
    padding: 16px;
    background: var(--inset);
    border-radius: 6px;
    display: grid;
    grid-template-columns: repeat(6,minmax(0,1fr));
    gap: 5px 12px;
}

:where(html[data-layout=desktop]) .range-editor>.editor-footer {
    grid-column: 1/-1;
    margin-top: 18px;
}

.chart {
    width: 100%;
    display: block;
}

:where(html[data-layout=desktop]) .chart {
    height: 210px;
    overflow: visible;
}

.chart text {
    fill: var(--subtle);
}

:where(html[data-layout=desktop]) .chart text {
    font: 10px Manrope;
}

.chart .gridline {
    stroke: var(--quiet);
    stroke-width: 1;
}

.chart .trace {
    fill: none;
    stroke: var(--lime);
}

:where(html[data-layout=desktop]) .chart .trace {
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

:where(html[data-layout=desktop]) .chart .area {
    fill: #273315;
}

:where(html[data-layout=desktop]) .chart .dot {
    fill: var(--lime);
    stroke: var(--surface);
    stroke-width: 4;
}

:where(html[data-layout=desktop]) .legend {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 10px;
    color: var(--muted);
    margin-top: 15px;
}

:where(html[data-layout=desktop]) .legend>span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

:where(html[data-layout=desktop]) .legend i {
    width: 7px;
    height: 7px;
    display: inline-block;
    border-radius: 50%;
    background: var(--lime);
    flex: none;
}

:where(html[data-layout=mobile]) .segment {
    display: flex;
    gap: 4px;
}

:where(html[data-layout=desktop]) .breakdown {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

:where(html[data-layout=mobile]) .segment button {
    min-height: 44px;
    flex: 1;
    min-width: 0;
    background: var(--inset);
    font-size: 12px;
}

:where(html[data-layout=desktop]) .breakdown-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    font-size: 11px;
}

:where(html[data-layout=mobile]) .segment .active {
    background: var(--raised);
}

:where(html[data-layout=desktop]) .breakdown-row span {
    color: var(--muted);
}

:where(html[data-layout=desktop]) .breakdown-row.total {
    border-top: 1px solid var(--line);
    padding-top: 15px;
    margin-top: 4px;
    font-weight: 700;
}

.bar-track {
    height: 5px;
    overflow: hidden;
}

:where(html[data-layout=desktop]) .bar-track {
    background: var(--raised);
    border-radius: 3px;
    margin-top: 7px;
}

:where(html[data-layout=desktop]) .bar-track span {
    display: block;
    height: 100%;
    background: var(--lime);
    border-radius: 3px;
}

:where(html[data-layout=desktop]) .breakdown-row.total .money {
    color: var(--lime);
}

:where(html[data-layout=mobile]) .toggle {
    display: flex;
    min-height: 44px;
    font-size: 12px;
    line-height: 1.5;
    margin: 10px 0;
}

:where(html[data-layout=mobile]) .toggle input {
    width: 36px;
    height: 22px;
    background: #454f58;
}

:where(html[data-layout=mobile]) .toggle input::after {
    width: 16px;
    height: 16px;
}

.toggle input:checked {
    background: var(--lime);
}

:where(html[data-layout=mobile]) .toggle input:checked::after {
    left: 17px;
}

.m-row-tail .toggle {
    margin: 0;
}

.m-savebar {
    position: sticky;
    bottom: calc(77px + var(--safe-bottom));
    padding: 10px 0 0;
    margin-top: 14px;
    background: var(--bg);
    z-index: 5;
}

:where(html[data-layout=mobile]) .range-editor {
    border-top: 1px solid var(--line);
    margin-top: 14px;
    padding-top: 4px;
}

.m-range-stats dd {
    font-size: 16px;
}

:where(html[data-layout=desktop]) .step-list {
    counter-reset: step;
    display: grid;
    gap: 20px;
}

.m-range-stats dt {
    font-size: 9px;
}

:where(html[data-layout=desktop]) .step-item {
    display: flex;
    gap: 12px;
    counter-increment: step;
}

:where(html[data-layout=desktop]) .step-item::before {
    content: counter(step,decimal-leading-zero);
    color: var(--lime);
    font: 500 21px Oswald;
    background: var(--raised);
    width: 35px;
    height: 35px;
    border-radius: 5px;
    display: grid;
    place-items: center;
    flex: none;
}

:where(html[data-layout=desktop]) .step-item h3 {
    font-size: 12px;
}

:where(html[data-layout=desktop]) .step-item p {
    font-size: 11px;
    color: var(--muted);
    margin-top: 4px;
}

.m-price-hero {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px;
}

.upload-zone {
    align-items: center;
    background: var(--inset);
    cursor: pointer;
}

:where(html[data-layout=desktop]) .upload-zone {
    display: grid;
    grid-template-columns: 40px minmax(0,1fr) auto;
    text-align: left;
    gap: 14px;
    padding: 20px 18px;
    border: 1px dashed #455159;
    border-radius: 6px;
}

.m-price-hero>div {
    min-width: 0;
}

:where(html[data-layout=desktop]) .upload-zone .icon {
    color: var(--lime);
    width: 24px;
    height: 24px;
    margin: 0;
}

.m-price-hero>div>span {
    font-size: 10px;
    color: var(--muted);
    display: block;
    margin-bottom: 5px;
}

:where(html[data-layout=desktop]) .upload-zone p {
    font-size: 10px;
    color: var(--muted);
    margin: 6px 0 16px;
}

.m-price-hero strong {
    font-size: 27px;
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: -.6px;
}

.m-price-hero>div:last-child strong {
    font-size: 22px;
}

.market-mark {
    flex: none;
    color: white;
    background: var(--wb);
}

:where(html[data-layout=desktop]) .market-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 800;
}

.m-price-notes {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-top: 7px;
    font-size: 10px;
    color: var(--muted);
}

.market-mark.ozon {
    background: var(--ozon);
}

:where(html[data-layout=desktop]) .market-mark.ozon {
    font-size: 12px;
}

.m-price-notes>span {
    min-width: 0;
}

.m-price-notes>span:last-child {
    white-space: nowrap;
}

.m-price-notes .money small {
    font-size: inherit;
}

.m-verification {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--inset);
    padding: 10px;
    border-radius: 7px;
    margin-top: 15px;
}

.m-verification>.icon {
    color: var(--lime);
    width: 19px;
    height: 19px;
}

.m-verification>span {
    flex: 1;
    min-width: 0;
    font-size: 11px;
    font-weight: 650;
}

.m-verification small {
    display: block;
    font-size: 9px;
    color: var(--muted);
    font-weight: 400;
    margin-top: 3px;
}

.m-purchase-hero {
    display: flex;
    align-items: center;
    gap: 18px;
}

.m-purchase-hero>strong {
    font-size: 30px;
    line-height: 1.3;
    font-weight: 750;
}

.m-purchase-hero>span {
    display: flex;
    flex-direction: column;
    gap: 3px;
    color: var(--muted);
    font-size: 12px;
}

.m-purchase-hero>span>small {
    font-size: 10px;
    color: var(--subtle);
}

:where(html[data-layout=desktop]) .log-event {
    display: grid;
    grid-template-columns: 55px 28px minmax(0,1fr) 90px;
    gap: 11px;
    padding: 14px 0;
    border-bottom: 1px solid var(--quiet);
    align-items: start;
}

.m-purchase-hero .money small {
    font-size: 12px;
}

:where(html[data-layout=desktop]) .log-event:last-child {
    border-bottom: 0;
}

.m-purchase-hero>strong .money small {
    font-size: 15px;
}

:where(html[data-layout=desktop]) .log-event .event-time {
    font-size: 11px;
    color: var(--muted);
}

.m-purchase-hero+.m-row {
    margin-top: 9px;
    padding-bottom: 0;
}

:where(html[data-layout=desktop]) .log-event .event-icon {
    color: var(--lime);
    background: #293318;
    border-radius: 5px;
    padding: 6px;
}

.m-period-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 14px;
}

:where(html[data-layout=desktop]) .log-event .event-icon .icon {
    width: 15px;
    height: 15px;
}

.m-period-label>.icon {
    width: 16px;
    height: 16px;
}

:where(html[data-layout=desktop]) .log-event strong {
    font-size: 11px;
}

.m-period-label>span {
    margin-left: auto;
    font-size: 10px;
    color: var(--subtle);
}

:where(html[data-layout=desktop]) .log-event p {
    font-size: 10px;
    color: var(--muted);
    margin-top: 4px;
}

.m-chart-value {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

:where(html[data-layout=desktop]) .log-event .event-owner {
    font-size: 10px;
    color: var(--subtle);
    text-align: right;
}

.m-chart-value>strong {
    font-size: 24px;
    letter-spacing: -.5px;
}

.m-chart-value>small {
    color: var(--muted);
    font-size: 10px;
}

:where(html[data-layout=desktop]) .message {
    max-width: 88%;
    padding: 15px;
    background: var(--raised);
    border-radius: 7px;
}

.m-chart-key {
    width: 22px;
    height: 3px;
    background: var(--lime);
    border-radius: 2px;
    flex: none;
}

:where(html[data-layout=desktop]) .message.mine {
    margin-left: auto;
    background: #20282b;
}

.m-chart-key.purchase {
    background: #8bb4c2;
}

.message-header {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
}

:where(html[data-layout=desktop]) .message-header {
    gap: 15px;
    margin-bottom: 7px;
}

.m-trend {
    --trend-color: var(--lime);
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
}

:where(html[data-layout=desktop]) .message-header span {
    color: var(--muted);
}

.m-trend.purchase {
    --trend-color: #8bb4c2;
}

:where(html[data-layout=desktop]) .message p {
    font-size: 11px;
    color: #c7cdd2;
}

.m-trend text {
    fill: var(--subtle);
    font: 10px Manrope,sans-serif;
    font-variant-numeric: tabular-nums;
}

.thread-date {
    text-align: center;
    color: var(--subtle);
}

:where(html[data-layout=desktop]) .thread-date {
    font-size: 9px;
}

.status-track {
    gap: 6px;
}

.trend-line {
    fill: none;
    stroke: var(--trend-color);
    vector-effect: non-scaling-stroke;
    stroke-linejoin: round;
}

:where(html[data-layout=desktop]) .status-track {
    display: flex;
    align-items: center;
    font-size: 10px;
    color: var(--muted);
}

:where(html[data-layout=mobile]) .trend-line {
    stroke-width: 1.6;
}

:where(html[data-layout=desktop]) .status-track span.active {
    background: #20291b;
    border-color: #556b29;
    color: var(--lime);
}

.trend-point>circle {
    fill: var(--surface);
    stroke: var(--trend-color);
    vector-effect: non-scaling-stroke;
}

:where(html[data-layout=desktop]) .status-track i {
    display: none;
}

:where(html[data-layout=mobile]) .trend-point>circle {
    stroke-width: 1.3;
}

:where(html[data-layout=mobile]) .trend-point>.trend-hit {
    fill: transparent;
    stroke: none;
}

.trend-point:focus-visible>circle:not(.trend-hit) {
    fill: var(--trend-color);
    stroke: var(--text);
}

.trend-tooltip rect {
    stroke: var(--line);
    stroke-width: 1;
}

:where(html[data-layout=mobile]) .trend-tooltip rect {
    fill: #293137;
}

.trend-tooltip text {
    fill: var(--muted);
}

:where(html[data-layout=desktop]) .stack {
    display: grid;
    gap: 16px;
}

.trend-tooltip .tooltip-value {
    fill: var(--text);
    font-size: 13px;
    font-weight: 700;
}

:where(html[data-layout=desktop]) .action-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 16px;
    font-size: 10px;
}

:where(html[data-layout=desktop]) .section-tabs {
    margin-bottom: 20px;
}

:where(html[data-layout=mobile]) .trend-point:focus .trend-tooltip {
    opacity: 1;
}

.m-last-change {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 10px;
    margin-top: 4px;
    color: var(--muted);
}

.m-last-change>strong {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text);
    font-size: 11px;
    white-space: nowrap;
}

.m-last-change .icon {
    width: 13px;
    height: 13px;
    color: var(--subtle);
}

.m-events {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

:where(html[data-layout=desktop]) .formula {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    padding: 15px 0;
    flex-wrap: wrap;
}

.m-event {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--surface);
    border-radius: 8px;
    padding: 13px 12px;
    min-width: 0;
}

:where(html[data-layout=desktop]) .formula div {
    padding: 12px 15px;
    background: var(--raised);
    border-radius: 5px;
}

.m-event-symbol {
    width: 24px;
    display: grid;
    place-items: center;
    flex: none;
    color: var(--muted);
    padding-top: 3px;
}

:where(html[data-layout=desktop]) .formula strong {
    display: block;
    font-size: 17px;
}

.m-event-symbol.purchase {
    color: #8bb4c2;
}

:where(html[data-layout=desktop]) .formula small {
    font-size: 9px;
    color: var(--muted);
}

.m-event>div {
    flex: 1;
    min-width: 0;
}

.m-event>div>strong {
    font-size: 12px;
    display: block;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.m-event>div>small {
    font-size: 10px;
    color: var(--subtle);
    display: block;
    margin-top: 3px;
}

.m-event p {
    font-size: 11px;
    color: var(--muted);
    margin-top: 5px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.m-event time {
    font-size: 9px;
    color: var(--muted);
    white-space: nowrap;
    flex: none;
    text-align: right;
    padding-top: 2px;
}

.m-event time>small {
    font-size: 9px;
    color: var(--subtle);
    display: block;
    margin-top: 3px;
}

.m-event-money {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--muted);
    margin-top: 5px;
}

.m-event-money b {
    color: var(--text);
    font-weight: 650;
}

.m-event-money .icon {
    width: 13px;
    height: 13px;
}

:where(html[data-layout=mobile]) .chart {
    height: auto;
    font-family: Manrope,sans-serif;
}

:where(html[data-layout=mobile]) .chart text {
    font-size: 10px;
}

:where(html[data-layout=mobile]) .chart .gridline {
    fill: none;
}

:where(html[data-layout=desktop]) .upload-zone:hover {
    border-color: var(--lime);
    background: #151a1c;
}

:where(html[data-layout=mobile]) .chart .area {
    fill: #c8ff27;
    opacity: .045;
}

.upload-pick {
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 8px;
}

:where(html[data-layout=desktop]) .upload-pick {
    font-weight: 700;
    color: var(--lime);
    white-space: nowrap;
}

:where(html[data-layout=mobile]) .chart .trace {
    stroke-width: 1.7;
    vector-effect: non-scaling-stroke;
}

.m-chart-caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 9px;
    color: var(--subtle);
    margin-top: 3px;
}

:where(html[data-layout=desktop]) .upload-pick .icon {
    width: 16px;
    height: 16px;
}

.m-chart-caption>strong {
    font-weight: 500;
    color: var(--muted);
}

.upload-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

:where(html[data-layout=desktop]) .upload-result {
    gap: 12px;
    padding: 12px 14px;
    background: var(--raised);
    border-radius: 5px;
    margin-top: 10px;
    font-size: 10px;
}

.m-breakdown>div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px solid var(--quiet);
    font-size: 11px;
}

.m-breakdown>div:last-child {
    border: 0;
    font-weight: 750;
}

:where(html[data-layout=desktop]) .upload-result.error {
    color: var(--amber);
}

.m-breakdown dt {
    color: var(--muted);
    min-width: 0;
}

:where(html[data-layout=desktop]) .editing-grid {
    grid-template-columns: minmax(0,1.5fr) minmax(330px,1fr);
    align-items: stretch;
}

.m-breakdown dd {
    margin: 0;
    white-space: nowrap;
    font-weight: 650;
}

.m-import-steps {
    display: flex;
    gap: 6px;
    padding: 0;
    margin: 0 0 14px;
    list-style: none;
    counter-reset: steps;
}

:where(html[data-layout=desktop]) .editing-modes {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 8px;
}

.m-import-steps li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex: 1;
    font-size: 10px;
    color: var(--subtle);
    min-width: 0;
}

:where(html[data-layout=desktop]) .editing-mode {
    background: var(--inset);
    border: 1px solid var(--line);
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px;
    text-align: left;
    min-width: 0;
}

.m-import-steps b {
    display: grid;
    place-items: center;
    width: 23px;
    height: 23px;
    border: 1px solid var(--line);
    border-radius: 5px;
    font-size: 10px;
    flex: none;
}

:where(html[data-layout=desktop]) .editing-mode>.icon {
    width: 20px;
    height: 20px;
    color: var(--muted);
    flex: none;
}

.m-import-steps .active {
    color: var(--text);
}

:where(html[data-layout=desktop]) .editing-mode>span {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.m-import-steps .active b {
    color: var(--lime);
    border-color: #465437;
    background: #252d20;
}

:where(html[data-layout=desktop]) .editing-mode strong {
    font-size: 11px;
    font-weight: 700;
}

:where(html[data-layout=desktop]) .editing-mode small {
    font-size: 9px;
    color: var(--muted);
}

:where(html[data-layout=mobile]) .upload-zone {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    border: 1px dashed #54606a;
    border-radius: 8px;
    padding: 16px;
    min-width: 0;
}

:where(html[data-layout=desktop]) .editing-mode.active {
    background: #20291b;
    border-color: #809b35;
}

:where(html[data-layout=mobile]) .upload-pick {
    justify-content: space-between;
    width: 100%;
    border-top: 1px solid var(--line);
    padding-top: 10px;
    color: var(--text);
}

:where(html[data-layout=desktop]) .editing-mode.active strong,
:where(html[data-layout=desktop]) .editing-mode.active>.icon {
    color: var(--lime);
}

:where(html[data-layout=mobile]) .upload-pick>.icon {
    width: 16px;
    height: 16px;
}

:where(html[data-layout=desktop]) .editing-mode:hover {
    border-color: #7a8790;
}

:where(html[data-layout=mobile]) .upload-result {
    gap: 8px;
    flex-wrap: wrap;
    font-size: 11px;
    margin: 10px 0;
}

.upload-result>span {
    display: flex;
    align-items: center;
}

:where(html[data-layout=desktop]) .import-safety {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: auto;
    padding-top: 20px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.6;
}

:where(html[data-layout=mobile]) .upload-result>span {
    gap: 6px;
    color: var(--lime);
    min-width: 0;
    overflow-wrap: anywhere;
}

:where(html[data-layout=desktop]) .import-safety>.icon {
    color: var(--lime);
    width: 18px;
    height: 18px;
    margin-top: 1px;
    flex: none;
}

:where(html[data-layout=mobile]) .upload-result.error>span {
    color: var(--red);
}

:where(html[data-layout=desktop]) .import-safety strong {
    display: block;
    font-size: 11px;
    color: var(--text);
    margin-bottom: 3px;
}

.m-coverage {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 8px 0 12px;
}

.m-coverage>strong {
    font-size: 32px;
    line-height: 1;
    font-weight: 750;
    letter-spacing: -.8px;
}

:where(html[data-layout=desktop]) .source-identity {
    display: flex;
    align-items: center;
    gap: 11px;
}

.m-coverage>strong>small {
    font-size: 15px;
    color: var(--muted);
    margin-left: 3px;
}

:where(html[data-layout=desktop]) .source-mark {
    background: var(--raised);
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--text);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -.5px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    flex: none;
}

.m-coverage>span {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.6;
}

:where(html[data-layout=desktop]) .source-identity>div {
    flex: 1;
    min-width: 0;
}

:where(html[data-layout=desktop]) .source-identity strong {
    font-size: 11px;
    display: block;
}

:where(html[data-layout=mobile]) .bar-track {
    background: var(--quiet);
    border-radius: 5px;
    margin: 10px 0;
}

:where(html[data-layout=desktop]) .source-identity small {
    font-size: 9px;
    display: block;
    color: var(--muted);
    margin-top: 3px;
}

:where(html[data-layout=mobile]) .bar-track>span {
    display: block;
    height: 100%;
    background: var(--lime);
    border-radius: 5px;
}

.m-issue {
    display: flex;
    align-items: center;
    gap: 9px;
    background: transparent;
    border-top: 1px solid var(--quiet);
    width: 100%;
    min-height: 50px;
    padding: 10px 0;
    text-align: left;
    font-size: 12px;
}

.m-issue>.icon:first-child {
    color: var(--amber);
    width: 17px;
    height: 17px;
}

:where(html[data-layout=desktop]) .source-coverage {
    margin: 18px 0;
}

.m-issue>span {
    flex: 1;
    min-width: 0;
}

:where(html[data-layout=desktop]) .source-coverage>div:first-child {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.m-issue>b {
    color: var(--amber);
    font-variant-numeric: tabular-nums;
}

:where(html[data-layout=desktop]) .source-coverage>div:first-child>span {
    font-size: 10px;
    color: var(--muted);
}

.m-issue>.icon:last-child {
    width: 14px;
    height: 14px;
    color: var(--subtle);
}

:where(html[data-layout=desktop]) .source-coverage strong {
    font-size: 20px;
    letter-spacing: -.5px;
    font-weight: 750;
}

.m-steps {
    list-style: none;
    counter-reset: m-steps;
    padding: 0;
    margin: 0;
}

:where(html[data-layout=desktop]) .source-coverage strong>small {
    font-size: 10px;
    letter-spacing: 0;
    margin-left: 2px;
}

.m-steps li {
    counter-increment: m-steps;
    position: relative;
    padding: 0 0 15px 34px;
    min-height: 44px;
}

:where(html[data-layout=desktop]) .coverage-track {
    margin: 10px 0;
    height: 5px;
    background: var(--raised);
    border-radius: 3px;
    overflow: hidden;
}

.m-steps li:last-child {
    padding-bottom: 0;
}

:where(html[data-layout=desktop]) .coverage-track>span {
    display: block;
    height: 100%;
    background: var(--lime);
    border-radius: 3px;
}

.m-steps li::before {
    content: counter(m-steps,decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0;
    font-size: 12px;
    color: var(--lime);
    font-weight: 750;
}

:where(html[data-layout=desktop]) .source-coverage p {
    font-size: 9px;
    color: var(--muted);
}

.m-steps strong {
    font-size: 12px;
}

:where(html[data-layout=desktop]) .source-coverage p strong {
    font-size: 9px;
    letter-spacing: 0;
    color: var(--text);
}

.m-steps p {
    font-size: 11px;
    color: var(--muted);
    margin-top: 4px;
    line-height: 1.6;
}

:where(html[data-layout=desktop]) .source-issues h3 {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--subtle);
    font-weight: 600;
    margin-bottom: 9px;
}

:where(html[data-layout=desktop]) .source-issues>button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 11px 10px;
    background: var(--inset);
    border: 1px solid transparent;
    border-radius: 5px;
    text-align: left;
    margin-top: 6px;
}

:where(html[data-layout=desktop]) .source-issues>button:hover {
    border-color: var(--line);
}

:where(html[data-layout=desktop]) .issue-symbol {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    background: var(--raised);
    border-radius: 4px;
    color: var(--muted);
    flex: none;
}

:where(html[data-layout=desktop]) .issue-symbol .icon {
    width: 16px;
    height: 16px;
}

:where(html[data-layout=mobile]) .status-track {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    margin: 0 0 14px;
}

:where(html[data-layout=desktop]) .source-issues>button>span:nth-child(2) {
    flex: 1;
    min-width: 0;
}

:where(html[data-layout=mobile]) .status-track>span {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 9px 6px;
    min-height: 36px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 10px;
    color: var(--subtle);
    background: var(--inset);
}

:where(html[data-layout=desktop]) .source-issues strong {
    font-size: 10px;
    font-weight: 650;
    display: block;
}

:where(html[data-layout=mobile]) .status-track>span.active {
    background: #252d20;
    border-color: #465437;
    color: var(--lime);
}

:where(html[data-layout=desktop]) .source-issues small {
    font-size: 8px;
    color: var(--muted);
    display: block;
    margin-top: 3px;
}

:where(html[data-layout=mobile]) .status-track>i {
    display: none;
}

:where(html[data-layout=desktop]) .source-issues b {
    color: var(--amber);
    font-size: 16px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

:where(html[data-layout=desktop]) .source-issues>button>.icon {
    color: var(--subtle);
    width: 13px;
    height: 13px;
}

:where(html[data-layout=desktop]) .source-footer {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

:where(html[data-layout=desktop]) .source-footer>span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 8px;
    color: var(--subtle);
}

:where(html[data-layout=desktop]) .file-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

:where(html[data-layout=desktop]) .file-cell>.icon {
    width: 19px;
    height: 19px;
    color: var(--muted);
    flex: none;
}

:where(html[data-layout=mobile]) .market-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 750;
}

:where(html[data-layout=desktop]) .file-cell strong {
    display: block;
    font-size: 11px;
    font-weight: 600;
}

:where(html[data-layout=desktop]) .file-cell small {
    display: block;
    color: var(--subtle);
    font-size: 9px;
    margin-top: 2px;
}

:where(html[data-layout=desktop]) .resource-symbol {
    width: 32px;
    height: 36px;
    display: grid;
    place-items: center;
    background: var(--inset);
    border: 1px solid var(--quiet);
    border-radius: 5px;
    flex: none;
    color: var(--muted);
}

:where(html[data-layout=desktop]) .resource-symbol .icon {
    width: 18px;
    height: 18px;
}

.m-person {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.m-person>div {
    min-width: 0;
    flex: 1;
}

.m-person strong {
    display: block;
    font-size: 12px;
}

.m-person small {
    display: block;
    color: var(--muted);
    font-size: 10px;
    margin-top: 3px;
    overflow-wrap: anywhere;
}

.m-person-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 0 24px;
}

.m-avatar.large {
    width: 58px;
    height: 58px;
    font-size: 20px;
    color: var(--text);
    border-radius: 12px;
    margin-bottom: 3px;
}

.m-person-card>strong {
    font-size: 18px;
}

.m-person-card>small {
    color: var(--muted);
}

:where(html[data-layout=desktop]) .plan-mark {
    background: var(--inset);
    border: 1px solid var(--line);
    border-radius: 6px;
    font: 500 32px/1 Oswald;
    letter-spacing: .5px;
    color: var(--lime);
    padding: 22px 20px;
}

:where(html[data-layout=desktop]) .plan-entitlements {
    display: flex;
    gap: 18px;
    padding-bottom: 18px;
}

:where(html[data-layout=desktop]) .plan-entitlements>span {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 10px;
    white-space: nowrap;
}

:where(html[data-layout=desktop]) .plan-entitlements .icon {
    width: 16px;
    height: 16px;
}

:where(html[data-layout=desktop]) .import-preview-summary {
    display: flex;
    align-items: center;
    gap: 28px;
    background: var(--inset);
    padding: 16px 18px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.import-preview-summary>div {
    display: flex;
}

:where(html[data-layout=desktop]) .import-preview-summary>div {
    align-items: baseline;
    gap: 7px;
}

:where(html[data-layout=mobile]) .thread-date {
    font-size: 10px;
    padding: 10px 0 18px;
}

:where(html[data-layout=desktop]) .import-preview-summary strong {
    font-size: 20px;
    font-variant-numeric: tabular-nums;
}

:where(html[data-layout=mobile]) .message {
    background: var(--surface);
    border-radius: 10px;
    padding: 14px;
    margin: 0 20px 12px 0;
    min-width: 0;
}

:where(html[data-layout=mobile]) .message.mine {
    background: #22282d;
    margin: 0 0 12px 20px;
}

:where(html[data-layout=mobile]) .message-header {
    align-items: center;
    gap: 12px;
    color: var(--muted);
}

:where(html[data-layout=desktop]) .upload-result>span {
    gap: 7px;
}

:where(html[data-layout=mobile]) .message-header strong {
    font-size: 11px;
    color: var(--text);
}

:where(html[data-layout=desktop]) .upload-result>span>.icon {
    width: 15px;
    height: 15px;
    color: var(--lime);
}

:where(html[data-layout=mobile]) .message p {
    font-size: 13px;
    line-height: 1.65;
    margin-top: 8px;
    overflow-wrap: anywhere;
}

:where(html[data-layout=desktop]) .upload-result.error>span>.icon {
    color: var(--amber);
}

:where(html[data-layout=desktop]) .status-track span {
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 8px 12px;
    white-space: nowrap;
}

.m-plan {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 20px 0;
}

.m-plan>strong {
    font: 600 44px/1 Oswald;
    color: var(--lime);
}

.m-plan>span {
    font-size: 11px;
    color: var(--muted);
}

.m-plan b {
    display: block;
    font-size: 16px;
    color: var(--text);
    margin: 3px 0;
}

.m-plan small {
    display: block;
    font-size: 10px;
    color: var(--subtle);
}

.m-concept {
    padding: 24px;
    background: var(--lime);
    color: var(--ink);
    border-radius: 12px;
    margin-bottom: 14px;
}

.m-concept>img {
    width: 50px;
    height: auto;
    filter: brightness(0);
    margin-bottom: 20px;
}

.m-concept>h2 {
    font: 600 48px/1.05 Oswald;
    letter-spacing: -.6px;
}

.m-concept>p {
    font-size: 13px;
    margin: 18px 0;
}

.m-component-links {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.m-icon-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 8px;
}

.m-icon-grid>div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--inset);
    min-height: 79px;
    padding: 12px 4px;
    border-radius: 6px;
}

.m-icon-grid .icon {
    width: 24px;
    height: 24px;
}

.m-icon-grid small {
    font-size: 9px;
    color: var(--muted);
    text-align: center;
}

.skeleton {
    background: var(--raised);
}

:where(html[data-layout=mobile]) .skeleton {
    height: 13px;
    border-radius: 4px;
    width: 85%;
    margin: 10px 0;
}

:where(html[data-layout=mobile]) .skeleton.short {
    width: 52%;
}

.overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(5,7,8,.78);
    display: flex;
    justify-content: center;
}

:where(html[data-layout=mobile]) .overlay {
    align-items: flex-end;
    padding: 16px 0 0;
}

.dialog {
    overflow: auto;
}

:where(html[data-layout=mobile]) .dialog {
    width: min(100%,520px);
    max-height: calc(100dvh - 16px);
    overscroll-behavior: contain;
    border-radius: 16px 16px 0 0;
    border: 1px solid var(--line);
    border-bottom: 0;
    background: var(--surface);
    padding: 10px 16px calc(16px + var(--safe-bottom));
}

:where(html[data-layout=mobile]) .sheet-handle {
    width: 32px;
    height: 3px;
    background: #4d5962;
    border-radius: 5px;
    margin: 0 auto 13px;
}

.dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

:where(html[data-layout=mobile]) .dialog-head {
    gap: 12px;
    margin-bottom: 12px;
    min-width: 0;
}

:where(html[data-layout=mobile]) .dialog-head>div,
:where(html[data-layout=mobile]) .dialog-head>h2 {
    flex: 1;
    min-width: 0;
}

:where(html[data-layout=mobile]) .dialog-head h2 {
    font-size: 19px;
    line-height: 1.35;
    overflow-wrap: break-word;
}

:where(html[data-layout=mobile]) .dialog-description {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 16px;
    overflow-wrap: anywhere;
}

:where(html[data-layout=mobile]) .dialog-body {
    min-width: 0;
}

:where(html[data-layout=mobile]) .drawer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: fixed;
    inset: 0;
    margin: 0 auto;
    width: min(100%,520px);
    height: 100dvh;
    background: var(--bg);
    padding: calc(16px + env(safe-area-inset-top,0px)) 16px calc(12px + var(--safe-bottom));
    overflow: hidden;
}

:where(html[data-layout=mobile]) .drawer .dialog-head {
    margin: 0;
    flex: none;
}

:where(html[data-layout=mobile]) .drawer .dialog-head p {
    color: var(--muted);
    font-size: 11px;
    margin-top: 3px;
}

:where(html[data-layout=desktop]) .trend-key {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 10px;
}

:where(html[data-layout=desktop]) .trend-key i {
    width: 14px;
    height: 2px;
    background: var(--trend-color);
    display: block;
}

:where(html[data-layout=desktop]) .trend-summary {
    display: flex;
    align-items: baseline;
    gap: 18px;
    margin-bottom: 8px;
}

:where(html[data-layout=desktop]) .trend-summary>strong {
    font-size: 25px;
    font-weight: 750;
    letter-spacing: -.5px;
}

:where(html[data-layout=desktop]) .trend-summary>strong .money small {
    font-size: .45em;
}

:where(html[data-layout=desktop]) .trend-summary>span {
    font-size: 9px;
    color: var(--muted);
}

:where(html[data-layout=mobile]) .dialog .step-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 10px 0;
}

:where(html[data-layout=desktop]) .trend-summary b {
    font-weight: 600;
    color: var(--text);
    margin-left: 3px;
}

:where(html[data-layout=mobile]) .dialog .step-item h3 {
    font-size: 13px;
}

:where(html[data-layout=mobile]) .dialog .step-item p {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.6;
    margin-top: 5px;
}

:where(html[data-layout=mobile]) .dialog .component-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.trend-grid {
    fill: none;
    stroke: var(--quiet);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

:where(html[data-layout=desktop]) .trend-line {
    stroke-width: 1.8;
}

:where(html[data-layout=mobile]) .dialog .import-preview-summary {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.trend-point {
    outline: 0;
}

:where(html[data-layout=mobile]) .import-preview-summary>div {
    flex-direction: column;
    min-width: 0;
}

:where(html[data-layout=desktop]) .trend-point>circle {
    stroke-width: 1.5;
}

:where(html[data-layout=mobile]) .import-preview-summary strong {
    font-size: 22px;
}

.import-preview-summary span {
    font-size: 10px;
    color: var(--muted);
}

:where(html[data-layout=desktop]) .trend-point>circle.trend-hit {
    fill: transparent;
    stroke: none;
}

:where(html[data-layout=desktop]) .trend-point>circle.latest {
    fill: var(--trend-color);
}

:where(html[data-layout=desktop]) .trend-point:focus-visible>circle:not(.trend-hit) {
    stroke-width: 1.5;
}

:where(html[data-layout=desktop]) .trend-point:hover>circle:not(.trend-hit) {
    fill: var(--trend-color);
    stroke: var(--text);
    stroke-width: 1.5;
}

.m-menu-empty {
    padding: 16px 10px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.trend-tooltip {
    opacity: 0;
    pointer-events: none;
}

:where(html[data-layout=desktop]) .trend-tooltip rect {
    fill: var(--raised);
}

:where(html[data-layout=desktop]) .trend-tooltip text {
    font-size: 10px;
}

.trend-point:hover .trend-tooltip,
:where(html[data-layout=desktop]) .trend-point:focus-visible .trend-tooltip {
    opacity: 1;
}

:where(html[data-layout=desktop]) .trend-last-change {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 5px;
    font-size: 9px;
}

:where(html[data-layout=desktop]) .trend-last-change>span {
    color: var(--muted);
}

:where(html[data-layout=desktop]) .trend-last-change>strong {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 10px;
    font-weight: 650;
}

:where(html[data-layout=desktop]) .trend-last-change .icon {
    width: 13px;
    height: 13px;
    color: var(--subtle);
}

:where(html[data-layout=desktop]) .trend-last-change>small {
    margin-left: auto;
    color: var(--subtle);
    font-size: 9px;
}

:where(html[data-layout=desktop]) .event-when {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

:where(html[data-layout=desktop]) .event-when strong {
    font-size: 10px !important;
    font-weight: 600;
}

.m-route-error {
    font-size: 12px;
    line-height: 1.5;
    color: var(--amber);
    margin: 0 0 12px;
}

:where(html[data-layout=desktop]) .event-when small {
    color: var(--subtle);
    font-size: 9px;
}

:where(html[data-layout=desktop]) .purchase-ink {
    color: #a2c3ce;
}

:where(html[data-layout=desktop]) .confirmed-value {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

:where(html[data-layout=desktop]) .concept-hero {
    display: grid;
    grid-template-columns: minmax(0,1.4fr) minmax(210px,.6fr);
    gap: 40px;
    padding: 42px 32px;
    background: var(--lime);
    color: var(--ink);
    border-radius: 8px;
    margin-bottom: 22px;
}

:where(html[data-layout=desktop]) .concept-hero h1 {
    font-size: 82px;
    line-height: .98;
}

:where(html[data-layout=desktop]) .concept-hero p {
    font-size: 14px;
    max-width: 450px;
    line-height: 1.8;
    margin-top: 22px;
    color: #405413;
}

:where(html[data-layout=desktop]) .concept-hero .eyebrow {
    color: #405413;
    margin-bottom: 17px;
}

:where(html[data-layout=desktop]) .concept-art {
    display: flex;
    align-items: center;
    justify-content: center;
}

:where(html[data-layout=desktop]) .concept-art img {
    width: 200px;
    filter: brightness(0);
}

:where(html[data-layout=desktop]) .concept-points {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 15px;
}

:where(html[data-layout=desktop]) .concept-point {
    background: var(--surface);
    padding: 23px;
    border-radius: 7px;
}

:where(html[data-layout=desktop]) .concept-point .point-number {
    font: 500 27px Oswald;
    color: var(--lime);
    margin-bottom: 15px;
}

:where(html[data-layout=desktop]) .concept-point p {
    font-size: 11px;
    color: var(--muted);
    margin-top: 8px;
    line-height: 1.8;
}

:where(html[data-layout=desktop]) .palette-swatches {
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: 8px;
}

:where(html[data-layout=desktop]) .swatch {
    height: 70px;
    display: flex;
    align-items: flex-end;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 5px;
    font-size: 9px;
    font-weight: 700;
}

:where(html[data-layout=desktop]) .type-specimen {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

:where(html[data-layout=desktop]) .type-specimen .display-type {
    font: 500 45px Oswald;
}

:where(html[data-layout=desktop]) .type-specimen .money {
    font-size: 29px;
    font-weight: 700;
}

:where(html[data-layout=desktop]) .component-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

:where(html[data-layout=desktop]) .component-icons {
    display: grid;
    grid-template-columns: repeat(6,1fr);
    gap: 6px;
}

:where(html[data-layout=desktop]) .component-icon {
    padding: 17px 8px;
    text-align: center;
    background: var(--inset);
    border-radius: 5px;
    font-size: 9px;
    color: var(--muted);
}

:where(html[data-layout=desktop]) .component-icon .icon {
    margin: auto auto 9px;
    width: 24px;
    height: 24px;
    color: var(--text);
}

:where(html[data-layout=desktop]) .component-row:last-child {
    margin-bottom: 0;
}

:where(html[data-layout=desktop]) .component-label {
    font-size: 9px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--subtle);
    margin-bottom: 12px;
}

:where(html[data-layout=desktop]) .skeleton {
    height: 14px;
    border-radius: 3px;
    width: 65%;
    margin-bottom: 8px;
}

:where(html[data-layout=desktop]) .skeleton.wide {
    width: 90%;
}

:where(html[data-layout=desktop]) .skeleton.short {
    width: 36%;
}

:where(html[data-layout=desktop]) .presentation {
    height: 100vh;
    overflow: hidden;
    background: #080a0b;
}

:where(html[data-layout=desktop]) .viewer-bar {
    height: 58px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    background: #171a1d;
    border-bottom: 1px solid var(--line);
}

:where(html[data-layout=desktop]) .viewer-note {
    font-size: 10px;
    color: var(--subtle);
}

:where(html[data-layout=desktop]) .viewer-controls {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
}

:where(html[data-layout=desktop]) .viewer-controls select {
    border: 1px solid var(--line);
    background: var(--bg);
    padding: 7px 28px 7px 10px;
    border-radius: 5px;
    color: var(--text);
    font-size: 11px;
    max-width: 220px;
    height: 34px;
}

:where(html[data-layout=desktop]) .viewer-open {
    font-size: 10px;
    color: var(--muted);
}

:where(html[data-layout=desktop]) .viewer-open:hover {
    color: var(--lime);
}

:where(html[data-layout=desktop]) .preview-stage {
    height: calc(100vh - 58px);
    display: block;
    padding: 0;
    overflow: auto;
}

:where(html[data-layout=desktop]) #prototype {
    border: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
}

:where(html[data-layout=desktop]) .presentation[data-device=mobile] .preview-stage {
    display: flex;
    justify-content: center;
    align-items: stretch;
    padding: 16px;
}

:where(html[data-layout=desktop]) .presentation[data-device=mobile] #prototype {
    width: 390px;
    max-width: 100%;
    height: 100%;
    border: 1px solid var(--line);
    flex: none;
    min-height: 0;
    border-radius: 12px;
}

:where(html[data-layout=desktop]) .overlay {
    align-items: center;
    padding: 24px;
}

:where(html[data-layout=desktop]) .dialog {
    width: 560px;
    max-width: 100%;
    max-height: calc(100dvh - 48px);
    background: #1d2125;
    border: 1px solid #454e55;
    border-radius: 9px;
    padding: 22px;
}

:where(html[data-layout=desktop]) .dialog.wide {
    width: 760px;
}

:where(html[data-layout=desktop]) .dialog-head {
    margin-bottom: 14px;
    gap: 16px;
}

:where(html[data-layout=desktop]) .dialog h2 {
    font-size: 21px;
}

:where(html[data-layout=desktop]) .dialog>p {
    color: var(--muted);
    font-size: 11px;
    margin-bottom: 18px;
}

:where(html[data-layout=desktop]) .drawer {
    align-self: stretch;
    margin-left: auto;
    width: 400px;
    max-width: 100%;
    background: var(--surface);
    padding: 24px;
    border-radius: 8px;
    overflow: auto;
}

:where(html[data-layout=desktop]) .drawer .dialog-head {
    margin-bottom: 20px;
}

:where(html[data-layout=desktop]) .help-link {
    color: var(--muted);
    font-size: 10px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

:where(html[data-layout=desktop]) .mobile-chart,
:where(html[data-layout=desktop]) .mobile-only,
:where(html[data-layout=desktop]) .mobile-promo {
    display: none;
}

:where(html[data-layout=desktop]) .action-footer-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

:where(html[data-layout=desktop]) .strategy-path {
    display: flex;
    align-items: center;
    gap: 15px;
}

:where(html[data-layout=desktop]) .strategy-path>div {
    flex: 1;
    min-width: 0;
}

:where(html[data-layout=desktop]) .strategy-path span {
    font: 500 26px Oswald;
    color: var(--subtle);
    display: block;
    margin-bottom: 10px;
}

:where(html[data-layout=desktop]) .strategy-path strong {
    display: block;
    font-size: 12px;
}

:where(html[data-layout=desktop]) .strategy-path small {
    display: block;
    color: var(--muted);
    font-size: 9px;
    margin-top: 4px;
}

:where(html[data-layout=desktop]) .strategy-path>.icon {
    color: var(--subtle);
    width: 17px;
    height: 17px;
}

:where(html[data-layout=desktop]) .upload-zone:focus-within {
    outline: 2px solid var(--lime);
    outline-offset: 3px;
}

:where(html[data-layout=desktop]) .viewer-live {
    display: flex;
    align-items: center;
    gap: 5px;
    background: transparent;
    color: var(--lime);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .5px;
    padding: 5px 7px;
    border: 1px solid #414d2a;
    border-radius: 4px;
}

:where(html[data-layout=desktop]) .viewer-live::before {
    content: "";
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
}

:where(html[data-layout=desktop]) .viewer-live[aria-pressed=false] {
    color: var(--muted);
    border-color: var(--line);
}

main :is(details,h2,section,strong)[id] {
    scroll-margin-top: var(--anchor-offset);
}

.flat-action-grid {
    align-items: stretch;
}

summary:focus-visible {
    outline: 2px solid var(--lime);
    outline-offset: 3px;
    border-radius: var(--control-radius);
}

.dialog-foot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.flat-cell-stack {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.flat-cell-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px 12px;
}

.flat-cell-line>span {
    color: var(--muted);
    font-size: 11px;
}

.flat-cell-line>strong {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.flat-inline-help {
    color: var(--muted);
    font-size: 12px;
    margin-top: 12px;
}

.flat-inline-help>summary {
    cursor: pointer;
    width: fit-content;
    min-height: 32px;
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.flat-inline-help>summary::before {
    content: "+";
    color: var(--lime);
    font-size: 16px;
}

.flat-inline-help[open]>summary::before {
    content: "−";
}

.flat-inline-help>dl,
.flat-inline-help>p {
    margin: 8px 0 0;
    max-width: 72ch;
    line-height: 1.6;
}

.flat-task-meta {
}

.flat-log-action {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
}

.flat-log-technical,
.flat-log-technical>summary {
    font-size: 11px;
}

.flat-log-entry {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.flat-log-entry h3 {
    flex: 1;
    min-width: 140px;
    font-size: 14px;
}

.flat-log-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 12px;
    font-size: 11px;
    color: var(--muted);
}

.flat-log-entry .flat-inline-help {
    margin: 0;
}

.flat-customer-facts dd {
    font-size: 20px;
    white-space: normal;
    overflow-wrap: anywhere;
}

.flat-customer-facts dd time {
    display: block;
    font-size: 14px;
    font-weight: 600;
}

.flat-customer-facts dd time small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.flat-warning>summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    padding: 12px 14px;
    cursor: pointer;
    list-style: none;
}

.flat-warning>summary::-webkit-details-marker {
    display: none;
}

.flat-warning>summary>.icon {
    width: 14px;
    height: 14px;
    margin: 0;
}

.flat-warning[open]>summary>.icon {
    transform: rotate(180deg);
}

.flat-warning>div {
    padding: 0 14px 12px;
}

.flat-warning>div p {
    margin: 0;
}

input[type=file] {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: var(--control-height);
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: var(--control-radius);
    background: var(--inset);
    color: var(--muted);
    font: 500 12px/30px Manrope,sans-serif;
    overflow: hidden;
    text-overflow: ellipsis;
}

input[type=file]::file-selector-button {
    margin-right: 10px;
    padding: 0 12px;
    height: 30px;
    border: 0;
    border-radius: 4px;
    background: var(--raised);
    color: var(--text);
    font: 700 11px Manrope,sans-serif;
    cursor: pointer;
}

input[type=file]:hover::file-selector-button {
    background: var(--lime);
    color: var(--ink);
}

input[type=file]:focus-visible {
    outline: 2px solid var(--lime);
    outline-offset: 2px;
}

input[type=file]:disabled::file-selector-button {
    cursor: default;
    opacity: .5;
}

.upload-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.upload-copy>strong {
    font-size: 12px;
    overflow-wrap: anywhere;
}

.upload-copy>span {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.6;
}

.editor-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.editor-footer p {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6;
}

.import-flow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0;
    color: var(--muted);
    font-size: 10px;
}

.import-flow>span {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.import-flow b {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    flex: none;
    border: 1px solid var(--line);
    border-radius: 50%;
    font-size: 9px;
}

.import-flow .active {
    color: var(--text);
}

.import-flow .active b {
    background: var(--lime);
    color: var(--ink);
    border-color: var(--lime);
}

.import-flow>.icon {
    width: 12px;
    height: 12px;
}

.workflow-steps {
    list-style: none;
    counter-reset: workflow;
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 16px;
    padding: 0;
}

.workflow-steps>li {
    counter-increment: workflow;
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 12px;
}

.workflow-steps>li::before {
    content: counter(workflow,decimal-leading-zero);
    color: var(--lime);
    font-size: 18px;
}

.flat-cabinet-access {
    display: grid;
    grid-template-columns: 32px minmax(0,1fr) max-content;
    align-items: center;
    gap: 12px;
}

.wb-fbs-route {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    gap: 6px;
    padding-top: 12px;
}

.wb-fbs-route>.flat-heading-with-help {
    justify-self: start;
}

.wb-fbs-route label {
    margin: 0;
}

.flat-fbs-warehouse {
    font-size: 12px;
    font-weight: 600;
}

.wb-fbs-route>input {
    max-width: 160px;
}

.wb-fbs-route>small {
    color: var(--muted);
    font-size: 10px;
}

.flat-checkgrid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px;
}

.flat-checkgrid .toggle {
    margin: 0;
    justify-content: space-between;
    padding: 9px 10px;
    background: var(--inset);
    border: 1px solid var(--line);
    border-radius: 5px;
    min-width: 0;
}

.flat-toggle-copy {
    font-size: 11px;
    overflow-wrap: anywhere;
}

.flat-person-card {
    background: var(--inset);
    border-radius: 10px;
    padding: 14px;
    min-width: 0;
}

.flat-person-card small {
    display: block;
    overflow-wrap: anywhere;
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
}

.flat-person-card strong {
    display: block;
    overflow-wrap: anywhere;
}

.flat-person-card>summary {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto 20px;
    align-items: center;
    gap: 12px;
    list-style: none;
    min-height: 44px;
    cursor: pointer;
}

.flat-person-card>summary::-webkit-details-marker {
    display: none;
}

.flat-person-card>summary::marker {
    content: "";
}

.flat-person-card>summary>.icon {
    grid-column: 3;
    grid-row: 1;
    justify-self: center;
    color: var(--muted);
}

.flat-person-card[open]>summary {
    margin-bottom: 16px;
}

.flat-person-card[open]>summary>.icon {
    transform: rotate(90deg);
}

.flat-person-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.flat-native-dialog {
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(540px,calc(100vw - 28px));
    max-height: calc(100dvh - 40px);
    overflow: auto;
    padding: 22px;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.flat-native-dialog::backdrop {
    background: #0009;
}

.flat-steps {
    padding-left: 22px;
}

.flat-steps>li {
    padding: 12px 0;
}

.flat-steps>li::marker {
    color: var(--lime);
    font-weight: 700;
}

.flat-steps p {
    color: var(--muted);
    font-size: 11px;
    margin-top: 5px;
}

.flat-cell-title {
    display: block;
    font-size: 12px;
}

.flat-cell-note {
    display: block;
    color: var(--muted);
    font-size: 10px;
    margin-top: 3px;
}

.flat-chevron {
    width: 8px;
    height: 8px;
    border-right: 1px solid var(--muted);
    border-bottom: 1px solid var(--muted);
    transform: rotate(45deg);
    margin: 3px 6px;
}

.flat-cost-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 0;
    border-bottom: 1px solid var(--quiet);
}

.flat-cost-row>div>small {
    display: block;
    color: var(--amber);
    font-size: 10px;
    margin-top: 4px;
}

.flat-cost-row form {
    max-width: 320px;
    width: 100%;
}

.flat-cost-form {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    align-items: end;
    gap: 10px;
}

.flat-cost-form input {
    height: 44px;
}

.breakdown-row>span>small {
    display: block;
    color: var(--subtle);
    font-size: 10px;
    max-width: 250px;
    margin-top: 3px;
}

.breakdown-row>strong {
    white-space: nowrap;
}

.flat-edit-link {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    color: var(--muted);
    font-size: 10px;
    margin-top: 6px;
}

.flat-edit-link:hover {
    color: var(--lime);
}

.flat-edit-link .icon {
    width: 13px;
    height: 13px;
}

.flat-detail-group {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.flat-cost-reference {
    display: grid;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--quiet);
    min-width: 0;
}

.flat-history-day>header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: 11px;
    color: var(--muted);
}

.flat-history-group {
    margin-top: 14px;
}

.flat-history-group h3 {
    color: var(--muted);
    font-size: 11px;
}

.flat-history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 0;
    border-bottom: 1px solid var(--quiet);
    font-size: 12px;
}

.flat-history-item>div>small {
    display: block;
    color: var(--muted);
    font-size: 10px;
}

.flat-history-value {
    display: flex;
    gap: 8px;
    align-items: center;
    font-variant-numeric: tabular-nums;
}

.flat-history-value>span:first-child {
    color: var(--muted);
}

.flat-series-swatch {
    display: block;
    width: 16px;
    height: 3px;
    flex: none;
    background: var(--series-color);
    opacity: .35;
}

[data-price-options] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

[data-price-caption] {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(140px,1fr));
    gap: 12px;
    background: var(--inset);
    padding: 12px;
    border-radius: var(--control-radius);
}

.signal-hint {
    position: fixed;
    z-index: 200;
    width: max-content;
    max-width: min(300px,calc(100vw - 24px));
    padding: 10px 13px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--raised);
    color: var(--text);
    font: 500 11px/1.6 Manrope,Arial,sans-serif;
    overflow-wrap: anywhere;
}

.signal-hint[hidden] {
    display: none;
}

[data-signal-hint]:focus-visible {
    outline: 1px solid var(--lime);
    outline-offset: 3px;
    border-radius: 3px;
}

.errorlist {
    list-style: none;
    margin: 6px 0 12px;
    padding: 10px 12px;
    background: var(--inset);
    border-left: 3px solid var(--red);
    border-radius: 3px;
    color: var(--red);
    font-size: 12px;
    overflow-wrap: anywhere;
}

select[multiple] {
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
}

input[type=number] {
    appearance: textfield;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    appearance: none;
    margin: 0;
}

select[multiple]>option {
    font: 12px/1.5 Manrope,Arial,sans-serif;
    padding: 2px 6px;
    border-radius: 4px;
}

select[multiple]>option:checked {
    background: var(--lime);
    color: var(--ink);
}

select:not([multiple]) {
    appearance: none;
    padding-right: 34px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2393a2ae' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-position: right 11px center;
    background-size: 16px;
    background-repeat: no-repeat;
    cursor: pointer;
}

select:focus-visible {
    outline: 2px solid var(--lime);
    outline-offset: 2px;
}

input:-webkit-autofill,
input:autofill {
    -webkit-box-shadow: 0 0 0 1000px var(--inset) inset;
    -webkit-text-fill-color: var(--text);
    caret-color: var(--text);
}

.flat-inline {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.flat-mapping {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
    gap: 12px;
    align-items: center;
    margin: 12px 0;
}

.flat-mapping>div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.flat-mapping>div>span {
    font-size: 11px;
    color: var(--muted);
}

.flat-mapping strong {
    font-size: 13px;
    overflow-wrap: anywhere;
}

.flat-inline:has(>label) {
    align-items: end;
}

.flat-inline>label {
    flex: 1 1 140px;
    min-width: 0;
}

.flat-inactive-date {
    font-size: 16px !important;
    letter-spacing: 0;
}

.flat-empty {
    padding: 16px;
    text-align: left;
    color: var(--muted);
}

.flat-empty strong {
    display: block;
    color: var(--text);
    margin-bottom: 5px;
}

.flat-header-status:not(:has(>*)) {
    display: none;
}

.flat-header-status {
    flex: none;
}

.flat-access-indicators {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.flat-access-light {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 24px;
    font-size: 11px;
    color: var(--muted);
}

.flat-access-dot {
    width: 7px;
    height: 7px;
    flex: none;
    border-radius: 50%;
    background: var(--subtle);
}

.flat-access-light.is-ready .flat-access-dot {
    background: var(--lime);
}

.flat-access-light.is-warning .flat-access-dot {
    background: var(--amber);
}

.inactive-row {
    grid-template-columns: 2fr 1.5fr 1fr;
}

.plan-summary {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
}

.plan-summary>div {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.plan-summary small {
    font-size: 11px;
    color: var(--muted);
}

.plan-summary strong {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -.4px;
    line-height: 1.3;
}

.plan-summary>div>span {
    font-size: 11px;
    line-height: 1.5;
    color: var(--subtle);
}

.flat-row-warning {
    background: #8d621015;
}

.flat-row-warning td {
    color: var(--amber);
}

.flat-arrow-back {
    transform: rotate(180deg);
}

.flat-filter-fold>summary {
    padding: 14px 18px;
    font-size: 12px;
    color: var(--muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    list-style: none;
}

.flat-filter-fold>summary::-webkit-details-marker {
    display: none;
}

.flat-filter-fold>summary::after {
    content: "";
    width: 8px;
    height: 8px;
    flex: none;
    border-right: 1px solid var(--muted);
    border-bottom: 1px solid var(--muted);
    transform: rotate(45deg);
    margin-right: 4px;
}

.flat-filter-fold[open]>summary::after {
    transform: rotate(225deg);
}

.flat-mobile-range>summary {
    list-style: none;
    cursor: pointer;
}

.flat-mobile-range>summary::-webkit-details-marker {
    display: none;
}

.flat-mobile-range-editor {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

/* Предварительный расчёт: окно, компактное состояние и мобильная компоновка. */
.profit-refresh {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    place-items: center;
    padding: 20px;
    pointer-events: none;
}

.profit-refresh__shade {
    position: absolute;
    inset: 0;
    background: rgba(7,9,11,.8);
    pointer-events: auto;
}

.profit-refresh__card {
    position: relative;
    width: min(470px,100%);
    max-height: calc(100dvh - 40px);
    overflow: auto;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    pointer-events: auto;
    outline: none;
}

.profit-refresh__top,.profit-refresh__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.profit-refresh__eyebrow {
    font-size: 9px;
    font-weight: 750;
    letter-spacing: 1.2px;
    color: var(--muted);
}

.profit-refresh__minimize {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: transparent;
    color: var(--text);
    font: 600 11px Manrope,sans-serif;
    cursor: pointer;
    flex: none;
}

.profit-refresh__minimize:hover {
    border-color: var(--lime);
    color: var(--lime);
}

.profit-refresh__minimize:focus-visible {
    outline: 2px solid var(--lime);
    outline-offset: 3px;
}

.profit-refresh__heading {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 22px 0 14px;
}

.profit-refresh__heading h2 {
    margin: 4px 0 0;
    font: 750 23px/1.3 Manrope,sans-serif;
    letter-spacing: -.6px;
}

.profit-refresh__state {
    font-size: 11px;
    font-weight: 650;
    color: var(--lime);
}

.profit-refresh__symbol {
    display: grid;
    place-items: center;
    flex: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--lime);
    background: var(--inset);
}

.profit-refresh__symbol .icon {
    width: 23px;
    height: 23px;
}

.profit-refresh__copy p {
    margin: 0 0 9px;
    font-size: 12px;
    line-height: 1.7;
    color: var(--text);
    overflow-wrap: anywhere;
}

.profit-refresh__copy .profit-refresh__estimate {
    color: var(--muted);
    font-size: 11px;
}

.profit-refresh__copy .profit-refresh__error {
    color: var(--red);
}

.profit-refresh__bar {
    height: 3px;
    overflow: hidden;
    border-radius: 2px;
    background: var(--raised);
    margin: 20px 0 16px;
}

.profit-refresh__bar span {
    display: block;
    width: 40%;
    height: 100%;
    background: var(--lime);
    animation: profit-refresh-scan 2s ease-in-out infinite;
}

.profit-refresh__steps {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 16px 0 20px;
}

.profit-refresh__steps li {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 10px 11px;
    background: var(--inset);
    border-radius: 6px;
    font-size: 11px;
    color: var(--muted);
}

.profit-refresh__steps li>span {
    font: 500 11px/1.2 Manrope,sans-serif;
    color: var(--subtle);
}

.profit-refresh__steps li>b {
    font-weight: 600;
}

.profit-refresh[data-job-status=succeeded] .profit-refresh__steps li>b {
    color: var(--lime);
}

.profit-refresh[data-job-status=queued] .profit-refresh__symbol,
.profit-refresh[data-job-status=queued] .profit-refresh__state {
    color: var(--amber);
}

.profit-refresh[data-job-status=queued] .profit-refresh__bar span {
    background: var(--amber);
}

.profit-refresh[data-job-status=failed] .profit-refresh__symbol,.profit-refresh[data-job-status=failed] .profit-refresh__state {
    color: var(--red);
}

.profit-refresh__footer {
    font-size: 10px;
    line-height: 1.5;
    color: var(--muted);
}

.profit-refresh__footer b {
    color: var(--text);
    font-variant-numeric: tabular-nums;
    font-weight: 650;
}

.profit-refresh.is-minimized {
    place-items: end right;
    padding: 20px;
}

.profit-refresh.is-minimized .profit-refresh__shade,.profit-refresh.is-minimized .profit-refresh__copy,.profit-refresh.is-minimized .profit-refresh__steps {
    display: none;
}

.profit-refresh.is-minimized .profit-refresh__card {
    width: min(360px,100%);
    padding: 12px 15px;
}

.profit-refresh.is-minimized .profit-refresh__eyebrow {
    font-size: 8px;
    letter-spacing: .7px;
}

.profit-refresh.is-minimized .profit-refresh__heading {
    margin: 9px 0;
}

.profit-refresh.is-minimized .profit-refresh__heading h2 {
    font-size: 16px;
}

.profit-refresh.is-minimized .profit-refresh__symbol {
    width: 32px;
    height: 32px;
}

.profit-refresh.is-minimized .profit-refresh__symbol .icon {
    width: 18px;
    height: 18px;
}

.profit-refresh.is-minimized .profit-refresh__state {
    font-size: 10px;
}

.profit-refresh.is-minimized .profit-refresh__bar {
    margin: 12px 0;
}

.profit-refresh.is-hidden {
    display: none;
}

html[data-layout=mobile] .profit-refresh {
    padding: 12px;
    align-items: end;
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
}

html[data-layout=mobile] .profit-refresh__card {
    padding: 17px;
    max-height: calc(100dvh - 100px);
}

html[data-layout=mobile] .profit-refresh__heading h2 {
    font-size: 20px;
}

html[data-layout=mobile] .profit-refresh__eyebrow {
    font-size: 8px;
    letter-spacing: .6px;
}

html[data-layout=mobile] .profit-refresh__minimize {
    min-height: 44px;
    padding: 0 9px;
}

html[data-layout=mobile] .profit-refresh__steps {
    gap: 5px;
}

html[data-layout=mobile] .profit-refresh__steps li {
    padding: 9px;
    font-size: 10px;
}

html[data-layout=mobile] .profit-refresh__footer {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 5px;
}

@keyframes profit-refresh-scan {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(350%);
    }

}

@media(prefers-reduced-motion:reduce) {
    .profit-refresh__bar span {
        animation: none;
        width: 100%;
    }

}

@media (max-width:374px) {
    /* Компактная шапка сохраняет интервалы между брендом и статусами. */

    .m-brand-row {
        gap: 6px;
    }

    .m-brand {
        gap: 5px;
    }

    .m-brand img {
        width: 28px;
    }

    .m-brand strong {
        font-size: 14px;
    }

    .m-brand small {
        font-size: 7px;
    }

}

@media (max-width:359px) {
    /* Основа и типографика */

    body[data-layout=mobile] .fields.two,
    body[data-layout=mobile] [data-price-options] {
        grid-template-columns: minmax(0,1fr);
    }

    body[data-layout=mobile] .fields.two:has(>.field>.input>.unit) {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    body[data-layout=mobile] .fields.two:has(>.field>.input>.unit)>.field>.flat-field-title {
        min-height: 33px;
    }

}

@media (min-width:1550px) {
    /* Каркас и навигация */

    :where(html[data-layout=desktop]) .shell {
        grid-template-columns: 240px minmax(0,1fr);
    }

    :where(html[data-layout=desktop]) .sidebar {
        padding-inline: 22px;
    }

    :where(html[data-layout=desktop]) .topbar {
        padding-inline: 40px;
    }

    /* Карточка товара */

    :where(html[data-layout=desktop]) .product-row {
        min-height: 88px;
    }

    :where(html[data-layout=desktop]) .product-title {
        font-size: 14px;
    }

    /* Диалоги и вспомогательные элементы */

    :where(html[data-layout=desktop]) .content {
        padding-inline: 40px;
    }

}

@media (prefers-reduced-motion:no-preference) {
    /* Основа и типографика */

    :where(html[data-layout=desktop]) a,
    :where(html[data-layout=desktop]) button {
        transition: background-color .14s,color .14s,border-color .14s;
    }

}

@supports (appearance:base-select) {
    /* Основа и типографика */

    ::picker(select) {
        appearance: base-select;
        background: var(--surface);
        color: var(--text);
        border: 1px solid var(--line);
        border-radius: 8px;
        padding: 4px;
        margin-top: 5px;
        max-height: min(320px,45dvh);
        overflow: auto;
        box-shadow: 0 12px 30px #0006;
        font: 12px/1.5 Manrope,Arial,sans-serif;
    }

    /* Диалоги и вспомогательные элементы */

    select:not([multiple]):not([size]) {
        appearance: base-select;
        background-image: none;
        padding-right: 34px;
        display: block;
        position: relative;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 24px;
    }

    select::picker-icon {
        content: "";
        width: 7px;
        height: 7px;
        position: absolute;
        right: 14px;
        top: 50%;
        margin-top: -5px;
        border: solid var(--muted);
        border-width: 0 1.6px 1.6px 0;
        transform: rotate(45deg);
    }

    select>button {
        display: block;
        width: 100%;
        min-width: 0;
        padding: 0;
        margin: 0;
        border: 0;
        background: transparent;
        color: inherit;
        font: inherit;
        text-align: left;
    }

    select selectedcontent {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    select:open::picker-icon {
        transform: rotate(225deg);
        margin-top: -1px;
    }

    select:not([multiple])>option {
        display: flex;
        align-items: center;
        padding: 10px 12px;
        min-height: 40px;
        border-radius: 5px;
        cursor: pointer;
        color: var(--muted);
        white-space: normal;
    }

    select:not([multiple])>option:checked {
        background: var(--lime);
        color: var(--ink);
        font-weight: 700;
    }

    select:not([multiple])>option:hover {
        background: var(--raised);
        color: var(--text);
    }

    select:not([multiple])>option::checkmark {
        display: none;
    }

}

/* Оплата и документы: общие компоненты, отдельная композиция телефона. */
.billing-workspace [hidden] { display: none !important; }
.billing-nav { margin-bottom: 2px; }
.billing-nav a { gap: 8px; }
.billing-nav a > span { color: var(--muted); font-size: 11px; }
.billing-access-panel, .billing-documents { padding: 0; overflow: hidden; }
.billing-store-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.billing-store-identity { display: flex; gap: 13px; align-items: center; min-width: 0; }
.billing-store-identity h2 { font-size: 17px; }
.billing-store-identity p { display: flex; align-items: center; gap: 7px; margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.billing-store-identity .billing-copy { width: 28px; height: 28px; padding: 0; }
.billing-marketmark { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 6px; font-size: 12px; font-weight: 750; background: var(--raised); }
.billing-marketmark.wb { color: #edd8e9; border-color: #4b2b48; background: #29202a; }
.billing-marketmark.ozon { color: #c7d8f8; border-color: #31476c; background: #1b293e; }
.billing-access-body { display: grid; grid-template-columns: minmax(220px, .5fr) minmax(0, 1fr); gap: 30px; padding: 24px; }
.billing-access-label { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: .8px; text-transform: uppercase; }
.billing-access-label::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.billing-access-label.ok { color: var(--lime); }
.billing-access-date { display: block; margin-top: 10px; font-size: 27px; line-height: 1.4; letter-spacing: -.7px; }
.billing-access-date > span { color: var(--muted); font-size: 16px; font-weight: 500; }
.billing-access-time { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.billing-expiry-note { margin-top: 25px; color: var(--amber); font-size: 12px; }
.billing-expiry-note p { margin: 4px 0 0; max-width: 280px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.billing-renewal { padding-left: 30px; border-left: 1px solid var(--line); min-width: 0; }
.billing-renewal-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.billing-renewal-heading > span { color: var(--muted); font-size: 10px; }
.billing-renewal-controls { display: grid; grid-template-columns: minmax(0, 1fr) max-content; gap: 24px; align-items: start; }
.billing-term-field { max-width: 330px; min-width: 0; }
.billing-term-field > label { display: block; margin-bottom: 7px; color: var(--muted); font-size: 11px; }
.billing-term-picker { display: flex; gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: 6px; background: var(--inset); }
.billing-term-picker button { display: flex; align-items: center; justify-content: center; flex: 1; min-width: 0; min-height: 36px; padding: 0 9px; border: 1px solid transparent; border-radius: 4px; color: var(--muted); background: transparent; font: inherit; font-size: 11px; font-weight: 650; white-space: nowrap; }
.billing-term-picker button:hover { color: var(--text); }
.billing-term-picker button[aria-pressed=true] { color: var(--text); background: var(--raised); border-color: #414a50; }
.billing-annual-offer { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 12px; border: 1px solid #39452c; border-radius: 6px; background: #20271a; }
.billing-annual-offer > span { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid #4c5c34; border-radius: 5px; color: var(--lime); background: #29351c; }
.billing-annual-offer svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.billing-annual-offer strong { display: block; color: var(--lime); font-size: 12px; line-height: 1.5; }
.billing-annual-offer small { display: block; margin-top: 2px; color: #b1bba5; font-size: 10px; }
.billing-term-field:has([data-billing-months='12'][aria-pressed=true]) .billing-annual-offer { background: #29351c; border-color: #728c43; }
.billing-other-term { margin-top: 8px; color: var(--muted); font-size: 11px; }
.billing-other-term summary { cursor: pointer; width: max-content; }
.billing-other-term > div { padding-top: 8px; }
.billing-price { display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; }
.billing-price > span, .billing-price > small { color: var(--muted); font-size: 11px; }
.billing-price > strong { font-size: 29px; line-height: 1.4; font-weight: 750; letter-spacing: -.6px; white-space: nowrap; }
.billing-price > strong > span:last-child { color: #bac1c7; font-weight: 450; font-size: 24px; }
.billing-price > small { margin-top: 2px; font-size: 10px; }
.billing-new-period { display: flex; flex-wrap: wrap; gap: 8px; margin: 13px 0 0; color: var(--muted); font-size: 11px; }
.billing-new-period strong { color: #cbd2d7; font-weight: 500; }
.billing-invoice-action { display: flex; align-items: center; gap: 15px; margin-top: 20px; }
.billing-invoice-action .btn { min-width: 238px; justify-content: space-between; }
.billing-invoice-action > span { color: var(--muted); font-size: 10px; line-height: 1.8; }
.billing-payment-terms { margin: 11px 0 0; color: var(--muted); font-size: 10px; line-height: 1.8; }
.billing-payment-terms a { text-decoration: underline; }
.billing-payer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 24px; border-top: 1px solid var(--line); background: #171a1d; }
.billing-payer > div { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 11px; }
.billing-payer span, .billing-payer small { color: var(--muted); font-size: 10px; }
.billing-payer strong { font-size: 11px; font-weight: 550; }
.billing-autopay { padding: 20px 24px 0; }
.billing-autopay-heading { display: flex; align-items: center; gap: 13px; }
.billing-autopay-heading h2 { font-size: 17px; }
.billing-autopay-heading p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.billing-section-icon { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 6px; color: #bbc4cb; background: var(--raised); font-size: 25px; }
.billing-autopay-heading > .btn { margin-left: auto; font-size: 11px; }
.billing-autopay-heading > .btn > span { margin-left: 9px; }
.billing-autopay-heading > .btn[aria-expanded=true] > span { transform: rotate(180deg); }
.billing-purpose { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; padding: 15px 0 18px; border-top: 1px solid var(--line); }
.billing-purpose > div > span { color: var(--muted); font-size: 10px; }
.billing-purpose p { margin: 5px 0 3px; color: var(--lime); font-size: 13px; font-weight: 650; }
.billing-purpose small { color: var(--muted); font-size: 10px; line-height: 1.8; }
.billing-copy { flex-shrink: 0; }
.billing-copy svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.billing-bank-details { padding: 16px 0 20px; border-top: 1px solid var(--line); }
.billing-bank-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.billing-bank-heading h3 { font-size: 14px; }
.billing-bank-grid { display: grid; grid-template-columns: 1.5fr .8fr 1.3fr; gap: 20px 24px; margin: 0; }
.billing-bank-grid dt { margin-bottom: 6px; color: var(--muted); font-size: 10px; }
.billing-bank-grid dd { margin: 0; font-size: 12px; font-weight: 550; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.billing-bank-note { padding-top: 16px; margin: 20px 0 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.8; }
.billing-bank-note strong { color: var(--text); font-weight: 550; }
.billing-documents-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 21px 24px 0; }
.billing-documents-heading p { margin: 7px 0 0; color: var(--muted); font-size: 11px; }
.billing-documents-heading > span { color: var(--muted); font-size: 10px; white-space: nowrap; }
.billing-next-act { display: flex; align-items: center; gap: 13px; margin: 20px 24px 0; padding: 15px 0 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.billing-next-act strong { font-size: 12px; }
.billing-next-act p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.billing-next-act > .badge { margin-left: auto; }
.billing-document-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 15px 24px; }
.billing-document-toolbar > span { color: var(--muted); font-size: 10px; }
.billing-document-filters { display: flex; gap: 4px; }
.billing-document-filters button { min-height: 32px; padding: 0 12px; border: 1px solid transparent; border-radius: 5px; color: var(--muted); background: transparent; font: inherit; font-size: 11px; font-weight: 650; }
.billing-document-filters button[aria-pressed=true] { color: var(--text); background: #2c3237; border-color: #3a434a; }
.billing-document-name { display: flex; align-items: center; gap: 12px; }
.billing-file-icon { display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 35px; border: 1px solid #3b4249; border-radius: 4px; color: #acb7c2; background: #24292f; }
.billing-file-icon.act { border-color: #35402b; color: #b4cb90; background: #21271c; }
.billing-file-icon .icon { width: 16px; height: 16px; }
.billing-document-name strong { font-size: 12px; font-weight: 650; }
.billing-document-name small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.billing-document-period { color: #c1c9cf; font-size: 11px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.billing-document-amount { font-size: 13px; white-space: nowrap; font-weight: 650; font-variant-numeric: tabular-nums; }
.billing-document-table th:first-child, .billing-document-table td:first-child { padding-left: 24px; }
.billing-document-table th:last-child, .billing-document-table td:last-child { padding-right: 24px; }
.billing-download { border: 1px solid var(--line); }
.billing-documents-footer { margin: 0; padding: 13px 24px; border-top: 1px solid var(--line); color: var(--muted); background: #171a1d; font-size: 10px; }
.billing-rules-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.billing-rules-grid h3 { margin: 0 0 7px; font-size: 12px; }
.billing-rules-grid p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.billing-rules > .flat-note { margin-top: 16px; }
.billing-copy-result { position: fixed; z-index: 100; bottom: 24px; left: 50%; transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 12px 18px; border: 1px solid #6b873c; border-radius: 6px; color: #e2f4ca; background: #29351d; box-shadow: 0 8px 40px #0008; font-size: 12px; }
html[data-layout=mobile] .billing-nav { gap: 3px; }
html[data-layout=mobile] .billing-nav a { min-height: 44px; padding-inline: 9px; font-size: 11px; }
html[data-layout=mobile] .billing-store-heading { flex-wrap: wrap; align-items: flex-start; padding: 17px 16px; gap: 10px; }
html[data-layout=mobile] .billing-store-identity { flex: 1 1 180px; align-items: flex-start; gap: 10px; }
html[data-layout=mobile] .billing-store-identity h2 { font-size: 13px; line-height: 1.6; }
html[data-layout=mobile] .billing-marketmark { width: 32px; height: 34px; font-size: 10px; }
html[data-layout=mobile] .billing-store-identity p { font-size: 10px; gap: 5px; white-space: nowrap; }
html[data-layout=mobile] .billing-store-identity .billing-copy { width: 44px; height: 44px; }
html[data-layout=mobile] .billing-access-body { display: flex; flex-direction: column; gap: 0; padding: 19px 16px 20px; }
html[data-layout=mobile] .billing-access-date { font-size: 24px; }
html[data-layout=mobile] .billing-access-date > span { font-size: 13px; }
html[data-layout=mobile] .billing-expiry-note { margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--line); }
html[data-layout=mobile] .billing-renewal { margin-top: 18px; padding: 18px 0 0; border-left: 0; border-top: 1px solid var(--line); }
html[data-layout=mobile] .billing-renewal-controls { grid-template-columns: minmax(0, 1fr); gap: 16px; }
html[data-layout=mobile] .billing-term-field { max-width: none; }
html[data-layout=mobile] .billing-term-picker button { min-height: 44px; padding-inline: 5px; }
html[data-layout=mobile] .billing-other-term summary { min-height: 44px; display: flex; align-items: center; }
html[data-layout=mobile] .billing-price { display: grid; grid-template-columns: 1fr auto; align-items: center; }
html[data-layout=mobile] .billing-price > small { grid-column: 2; text-align: right; }
html[data-layout=mobile] .billing-new-period { justify-content: space-between; font-size: 10px; }
html[data-layout=mobile] .billing-invoice-action { flex-direction: column; gap: 9px; }
html[data-layout=mobile] .billing-invoice-action .btn { width: 100%; min-width: 0; }
html[data-layout=mobile] .billing-invoice-action > span { font-size: 10px; }
html[data-layout=mobile] .billing-invoice-action br { display: none; }
html[data-layout=mobile] .billing-payer { padding: 12px 16px; align-items: flex-start; }
html[data-layout=mobile] .billing-payer > div { flex-direction: column; align-items: flex-start; gap: 4px; }
html[data-layout=mobile] .billing-payer > .btn.quiet { width: 44px; min-height: 44px; padding: 0; font-size: 0; }
html[data-layout=mobile] .billing-autopay { padding: 18px 16px 0; }
html[data-layout=mobile] .billing-autopay-heading { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; }
html[data-layout=mobile] .billing-section-icon { width: 28px; height: 30px; align-self: start; font-size: 22px; }
html[data-layout=mobile] .billing-autopay-heading h2 { font-size: 14px; }
html[data-layout=mobile] .billing-autopay-heading p { font-size: 11px; line-height: 1.8; }
html[data-layout=mobile] .billing-autopay-heading > .btn { grid-column: 1 / -1; width: 100%; margin: 5px 0 0; justify-content: space-between; }
html[data-layout=mobile] .billing-purpose { align-items: flex-start; gap: 8px; }
html[data-layout=mobile] .billing-purpose > .billing-copy { width: 44px; height: 44px; padding: 0; gap: 0; margin-top: 13px; }
html[data-layout=mobile] .billing-purpose > .billing-copy > span { display: none; }
html[data-layout=mobile] .billing-bank-grid { grid-template-columns: minmax(0, 1fr); gap: 17px; }
html[data-layout=mobile] .billing-bank-heading h3 { font-size: 13px; }
html[data-layout=mobile] .billing-bank-heading .btn { min-height: 44px; padding-inline: 6px; font-size: 10px; }
html[data-layout=mobile] .billing-documents-heading { padding: 19px 16px 0; }
html[data-layout=mobile] .billing-documents-heading > span { display: none; }
html[data-layout=mobile] .billing-documents-heading p { font-size: 11px; line-height: 1.8; }
html[data-layout=mobile] .billing-next-act { align-items: flex-start; flex-wrap: wrap; gap: 8px; margin-inline: 16px; }
html[data-layout=mobile] .billing-next-act > div { flex: 1; }
html[data-layout=mobile] .billing-next-act > .badge { margin-left: 38px; }
html[data-layout=mobile] .billing-document-toolbar { margin: 10px 16px; }
html[data-layout=mobile] .billing-document-toolbar > span { display: none; }
html[data-layout=mobile] .billing-document-filters button { min-height: 44px; }
html[data-layout=mobile] .billing-mobile-document { padding: 17px 16px; border-top: 1px solid var(--line); }
html[data-layout=mobile] .billing-mobile-document-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
html[data-layout=mobile] .billing-document-name { gap: 10px; }
html[data-layout=mobile] .billing-document-name strong { font-size: 11px; }
html[data-layout=mobile] .billing-download { width: 44px; min-height: 44px; padding: 0; }
html[data-layout=mobile] .billing-mobile-document-facts { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin-top: 15px; }
html[data-layout=mobile] .billing-mobile-document-facts > div { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
html[data-layout=mobile] .billing-document-period { font-size: 10px; }
html[data-layout=mobile] .billing-documents-footer { padding-inline: 16px; line-height: 1.8; }
html[data-layout=mobile] .billing-rules-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
.billing-copy-source { position: fixed; opacity: 0; pointer-events: none; }
