:root { color-scheme:dark; font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif; }
* { box-sizing:border-box; }
body { margin:0; background:#090c10; color:#eef2f7; }
button,textarea { font:inherit; }
.app-shell { min-height:100vh; display:grid; grid-template-columns:220px minmax(0,1fr); }
.sidebar { border-right:1px solid #202832; background:#0d1116; padding:24px 16px; display:flex; flex-direction:column; position:sticky; top:0; height:100vh; }
.brand { font-size:30px; font-weight:900; letter-spacing:-1px; }
.brand-sub { color:#718094; font-size:12px; margin-top:2px; margin-bottom:28px; }
nav { display:flex; flex-direction:column; gap:5px; }
.nav { background:transparent; color:#aeb8c5; border:0; border-radius:9px; text-align:left; padding:11px 12px; cursor:pointer; font-weight:650; }
.nav:hover,.nav.active { background:#18202a; color:#fff; }
.sidebar-bottom { margin-top:auto; color:#7f8b9a; font-size:12px; padding:10px 12px; }
.dot { display:inline-block; width:7px; height:7px; border-radius:50%; background:#69dfa4; margin-right:7px; }
.content { padding:26px 30px 42px; max-width:1540px; width:100%; margin:0 auto; }
.page { display:none; }
.page.active { display:block; }
.page-head { display:flex; justify-content:space-between; align-items:flex-end; gap:18px; margin-bottom:20px; }
.page-head h1 { font-size:34px; letter-spacing:-1px; margin:4px 0 0; }
.page-head p { color:#8190a3; margin:7px 0 0; max-width:760px; }
.eyebrow { color:#8090a5; font-size:11px; letter-spacing:.14em; }
.action,.wide,form button { border:0; border-radius:10px; padding:11px 16px; background:#edf2f7; color:#10151b; font-weight:800; cursor:pointer; }
.action:disabled,.wide:disabled { opacity:.55; cursor:wait; }
.kpi-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-bottom:12px; }
.kpi { background:#11161d; border:1px solid #222c37; border-radius:14px; padding:17px; min-height:124px; display:flex; flex-direction:column; }
.kpi.primary { background:#151c25; }
.kpi.warning { border-color:#403a28; }
.kpi span { color:#9ba8b7; font-size:12px; }
.kpi strong { font-size:31px; margin:10px 0 6px; letter-spacing:-1px; }
.kpi small { color:#68778a; line-height:1.35; }
.two-col { display:grid; grid-template-columns:minmax(0,1fr) 310px; gap:12px; }
.panel { background:#10151b; border:1px solid #222b35; border-radius:15px; padding:18px; }
.panel h2 { margin:0 0 13px; font-size:16px; }
.panel-title { display:flex; justify-content:space-between; align-items:flex-start; gap:15px; }
.panel-title h2 { margin-bottom:4px; }
.panel-title p,.decision-box p,.empty-state p { color:#8290a0; margin:0; line-height:1.5; }
.owner-actions { min-height:560px; display:flex; flex-direction:column; }
.chat { flex:1; min-height:280px; overflow:auto; padding:17px 0; display:flex; flex-direction:column; gap:9px; }
.small-chat { min-height:200px; max-height:340px; }
.bubble { max-width:88%; background:#171e27; border:1px solid #26313d; border-radius:11px; padding:11px 13px; white-space:pre-wrap; line-height:1.45; }
.bubble.user { align-self:flex-end; background:#243141; }
form { display:flex; gap:9px; }
textarea { flex:1; min-height:82px; resize:vertical; border:1px solid #2b3541; border-radius:10px; background:#0b0f14; color:#eef2f7; padding:12px; }
.metric { display:flex; justify-content:space-between; gap:14px; padding:12px 0; border-bottom:1px solid #202832; }
.metric span { color:#8996a6; }
.metric strong { text-align:right; }
.muted { color:#758396; font-size:12px; line-height:1.5; }
.wide { width:100%; margin-top:9px; }
.wide.secondary { background:#1a222c; color:#e7edf5; border:1px solid #303b48; }
.missing-list { display:flex; flex-direction:column; gap:8px; margin:14px 0 18px; }
.missing-list span { padding:10px 12px; border-radius:9px; background:#151b22; color:#c2ccd8; }
.agent-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-bottom:12px; }
.agent-card { background:#10151b; border:1px solid #222b35; border-radius:13px; padding:15px; cursor:pointer; min-height:135px; }
.agent-card:hover,.agent-card.active { border-color:#53657a; background:#151c24; }
.agent-card h3 { margin:0 0 7px; font-size:14px; }
.agent-card p { color:#778698; font-size:12px; line-height:1.45; margin:0; }
.agent-chat-panel { min-height:360px; display:flex; flex-direction:column; }
.task-list { display:flex; flex-direction:column; }
.task-row { display:grid; grid-template-columns:170px 1fr 120px; gap:12px; padding:12px 0; border-bottom:1px solid #202832; }
.task-row span { color:#8d99a8; font-size:12px; }
.empty-state { padding:30px; max-width:760px; }
.empty-state strong { color:#718196; font-size:12px; letter-spacing:.1em; }
.empty-state h2 { margin:8px 0 8px; font-size:22px; }
@media (max-width:1150px) { .app-shell { grid-template-columns:180px minmax(0,1fr); } .kpi-grid,.agent-grid { grid-template-columns:1fr 1fr; } }
@media (max-width:800px) { .app-shell { display:block; } .sidebar { position:static; height:auto; border-right:0; border-bottom:1px solid #202832; } nav { flex-direction:row; overflow:auto; } .sidebar-bottom { display:none; } .content { padding:18px; } .two-col { grid-template-columns:1fr; } }
@media (max-width:560px) { .kpi-grid,.agent-grid { grid-template-columns:1fr; } .page-head { align-items:flex-start; flex-direction:column; } }
.text-input { width:100%; max-width:480px; border:1px solid #2b3541; border-radius:9px; background:#0b0f14; color:#eef2f7; padding:10px 12px; }
.cost-toolbar { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:14px; }
.table-wrap { overflow:auto; max-height:620px; }
.cost-table { width:100%; border-collapse:collapse; min-width:760px; }
.cost-table th,.cost-table td { padding:11px 10px; border-bottom:1px solid #202832; text-align:left; vertical-align:middle; }
.cost-table th { position:sticky; top:0; background:#10151b; color:#8391a2; font-size:11px; letter-spacing:.04em; z-index:1; }
.cost-table td { font-size:13px; }
.cost-table td:nth-child(1) { font-weight:700; }
.cost-input { width:150px; border:1px solid #2b3541; border-radius:8px; background:#0b0f14; color:#fff; padding:8px 10px; text-align:right; }
.cost-missing { border-color:#55472a; }
@media (max-width:800px) { .cost-toolbar { align-items:flex-start; flex-direction:column; } }
.nav-accent { color:#eef2f7; }
.wide-left { grid-template-columns:minmax(0,1fr) 360px; }
.paste-panel { align-self:start; }
.paste-panel b { color:#e6edf5; }
.paste-box { width:100%; min-height:260px; margin:12px 0; font-family:ui-monospace,SFMono-Regular,Consolas,monospace; font-size:12px; }
.formula { padding:14px; border:1px solid #2d3947; border-radius:10px; background:#151b23; font-weight:750; margin-bottom:14px; line-height:1.5; }
.field { display:grid; gap:7px; margin:0 0 14px; color:#96a4b5; font-size:12px; }
.field input,.field select,.expense-form input,.expense-form select { border:1px solid #2b3541; border-radius:9px; background:#0b0f14; color:#eef2f7; padding:10px 12px; font:inherit; }
.expense-panel { margin-top:12px; }
.expense-form { display:grid; grid-template-columns:2fr 1fr 1fr auto; gap:9px; margin-bottom:14px; }
.expense-list { display:flex; flex-direction:column; }
.expense-row { display:grid; grid-template-columns:2fr 1fr 1fr auto; gap:12px; align-items:center; padding:11px 0; border-bottom:1px solid #202832; }
.expense-row span { color:#8e9cad; }
.expense-row button { border:0; border-radius:8px; padding:7px 10px; cursor:pointer; background:#2a2022; color:#efc9c9; }
@media (max-width:900px) { .wide-left { grid-template-columns:1fr; } .expense-form,.expense-row { grid-template-columns:1fr; } }
/* TASK 006 — единый период и сравнение */
.period-bar { background:#10151b; border:1px solid #222b35; border-radius:14px; padding:12px 14px; margin-bottom:18px; display:flex; align-items:flex-end; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.period-main,.compare-main { display:flex; align-items:flex-end; gap:9px; flex-wrap:wrap; }
.period-field { display:grid; gap:5px; color:#8493a5; font-size:11px; }
.period-field select,.period-field input,.compare-main select,.compare-dates input { height:38px; border:1px solid #2b3541; border-radius:9px; background:#0b0f14; color:#eef2f7; padding:7px 10px; font:inherit; }
.preset-field select { min-width:190px; }
.period-button { height:38px; border:0; border-radius:9px; padding:0 15px; background:#edf2f7; color:#10151b; font-weight:800; cursor:pointer; }
.compare-check { height:38px; display:flex; align-items:center; gap:7px; color:#c4ced9; font-size:12px; }
.compare-check input { accent-color:#dce6f0; }
.compare-dates { display:flex; align-items:center; gap:6px; }
.period-status { color:#728196; font-size:11px; align-self:center; max-width:260px; }
.hidden { display:none !important; }
.kpi-compare { margin-top:auto; padding-top:7px; min-height:22px; color:#7f8da0; font-size:11px; }
.kpi-compare .good,.metric-compare .good { color:#69dfa4; }
.kpi-compare .bad,.metric-compare .bad { color:#ef8d8d; }
.kpi-compare .neutral,.metric-compare .neutral { color:#9aa6b5; }
.metric-compare { font-style:normal; color:#718096; font-size:10px; text-align:right; min-width:92px; }
@media (max-width:1050px) { .period-bar { align-items:stretch; } .period-main,.compare-main { width:100%; } }
@media (max-width:680px) { .period-field,.preset-field,.period-field select,.period-field input { width:100%; } .period-button { width:100%; } .compare-main select { flex:1; min-width:210px; } }
/* TASK 008 — управленческая прибыль */
.profit-kpi { border-color:#355a45; background:#121a16; }
.profit-positive { color:#72dda6; font-weight:800; }
.profit-negative { color:#ef9292; font-weight:800; }
.profit-table th:nth-child(n+3),.profit-table td:nth-child(n+3) { text-align:right; }
/* TASK 011 — баланс компании */
.balance-list { margin-top:16px; display:flex; flex-direction:column; }
.balance-entry { display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:14px; align-items:center; padding:12px 0; border-top:1px solid #202832; }
.balance-entry div { display:grid; gap:3px; }
.balance-entry strong { font-size:13px; }
.balance-kind { color:#7f8da0; font-size:11px; }
.balance-entry button { border:0; border-radius:8px; padding:7px 10px; cursor:pointer; background:#2a2022; color:#efc9c9; }
.balance-empty { padding:16px 0; }
@media (max-width:760px){ .balance-entry { grid-template-columns:1fr auto; } .balance-entry button { grid-column:1/-1; } }
.submetrics{margin:0 0 4px 22px;border-left:1px solid #26313d;padding-left:12px}
.submetric{display:flex;justify-content:space-between;gap:16px;padding:5px 0;font-size:12px;color:#8fa7c4}
.submetric strong{color:#c7d4e4;font-size:12px}
.ai-status-panel{margin-bottom:16px}

/* TASK 013.1 — читаемые ответы агентов */
.bubble.markdown{white-space:normal;max-width:100%;padding:16px 18px;line-height:1.55;overflow-wrap:anywhere}
.bubble.markdown p{margin:0 0 12px}.bubble.markdown p:last-child{margin-bottom:0}
.bubble.markdown h2,.bubble.markdown h3,.bubble.markdown h4,.bubble.markdown h5{margin:18px 0 8px;line-height:1.25;color:#f2f5f8}
.bubble.markdown h2:first-child,.bubble.markdown h3:first-child{margin-top:0}
.bubble.markdown h2{font-size:20px}.bubble.markdown h3{font-size:17px}.bubble.markdown h4{font-size:15px}.bubble.markdown h5{font-size:14px}
.bubble.markdown ul,.bubble.markdown ol{margin:7px 0 13px;padding-left:24px}.bubble.markdown li{margin:5px 0}
.bubble.markdown strong{color:#fff}.bubble.markdown em{color:#c3cfdb}.bubble.markdown code{background:#0d131a;border:1px solid #2b3541;border-radius:5px;padding:1px 5px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.92em}
.bubble.markdown hr{border:0;border-top:1px solid #2a3440;margin:16px 0}
.md-table-wrap{overflow:auto;margin:10px 0 15px;border:1px solid #2a3440;border-radius:9px}.md-table{border-collapse:collapse;width:100%;min-width:520px}.md-table th,.md-table td{padding:9px 11px;border-bottom:1px solid #26303b;text-align:left;vertical-align:top}.md-table th{background:#111821;color:#cdd7e2;font-size:12px}.md-table td{font-size:13px}.md-table tr:last-child td{border-bottom:0}
.agent-chat-panel .chat{max-height:640px;min-height:420px}.agent-chat-panel .bubble.assistant{width:100%}

/* TASK 014 — AI-работник: видимый ход работы + Performance */
.head-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}
.action.secondary{background:#1a222c;color:#e7edf5;border:1px solid #303b48}
.agent-work-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(300px,.7fr);gap:12px}
.worklog-panel{min-height:360px;display:flex;flex-direction:column}
.worklog{margin-top:12px;max-height:640px;overflow:auto;display:flex;flex-direction:column;gap:0}
.worklog-empty{color:#738295;font-size:12px;padding:16px 0}
.worklog-row{display:grid;grid-template-columns:28px minmax(0,1fr);gap:10px;padding:10px 0;border-bottom:1px solid #202832;align-items:start}
.worklog-index{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:#17202a;color:#93a7bd;font-size:10px;font-weight:800}
.worklog-row div{display:grid;gap:4px}.worklog-row strong{font-size:12px;line-height:1.4;color:#dce5ee}.worklog-row small{font-size:10px;color:#687789}
.perf-table-wrap{max-height:520px}.perf-table th:nth-child(n+4),.perf-table td:nth-child(n+4){text-align:right}.perf-table td:nth-child(2){font-weight:700}
@media(max-width:1050px){.agent-work-layout{grid-template-columns:1fr}.worklog{max-height:300px}}

/* TASK 015 — свежесть рекламы и лаг выкупа */
.status-box{padding:11px 13px;border:1px solid #2b3541;border-radius:9px;background:#111821;color:#9cabbc;font-size:12px;line-height:1.45}
.status-box.warn{border-color:#5a4b2d;background:#17150f;color:#d6c496}
.ads-econ-strip{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin:0 0 12px;padding:10px 12px;border:1px solid #26313d;border-radius:9px;background:#0d131a}
.ads-econ-field{display:grid;gap:5px;color:#96a4b5;font-size:12px}.ads-econ-field input{width:120px;border:1px solid #2b3541;border-radius:9px;background:#0b0f14;color:#eef2f7;padding:9px 11px;font:inherit}
.drr-status{font-weight:700}.drr-green{color:#79d6a7}.drr-yellow{color:#e3c36d}.drr-red{color:#ef8f8f}.drr-unknown{color:#8e9bab}.drr-coverage{color:#e3c36d}
@media (max-width:900px){.ads-econ-strip{align-items:stretch}.ads-econ-field input{width:100%}}

/* TASK 015.7 — деньги по SKU + видимая расшифровка */
.mini{padding:6px 9px;border-radius:7px;font-size:11px;white-space:nowrap}
.drr-detail-row td{background:#0d1218;padding:0!important}
.drr-breakdown{padding:16px 18px 18px;border-top:1px solid #2a3440;border-bottom:1px solid #2a3440}
.drr-breakdown-head{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-bottom:12px}
.drr-breakdown-head strong{font-size:14px}.drr-breakdown-head span{color:#7e8d9e;font-size:11px}
.drr-source-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-bottom:12px}
.drr-source-grid>div,.drr-econ-grid>div{border:1px solid #26313d;border-radius:8px;background:#111821;padding:10px;display:grid;gap:4px}
.drr-source-grid b{font-size:12px}.drr-source-grid span{font-size:13px;font-weight:800;color:#eaf0f6}.drr-source-grid small{font-size:10px;color:#748397;line-height:1.4}
.drr-formulas{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-bottom:12px}
.drr-formulas>div{display:grid;gap:5px;padding:10px;border-left:2px solid #334254;background:#0c1117}
.drr-formulas b{font-size:11px;color:#a8b6c6}.drr-formulas code{font-size:12px;color:#e4ebf2;white-space:normal;overflow-wrap:anywhere}
.drr-econ-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-bottom:12px}
.drr-econ-grid span{font-size:10px;color:#7f8da0}.drr-econ-grid strong{font-size:12px}
.drr-explain-note{padding:11px 12px;border-radius:8px;background:#15130e;border:1px solid #4c422a;color:#c9b98e;font-size:11px;line-height:1.5}
@media(max-width:1200px){.drr-source-grid{grid-template-columns:1fr 1fr}.drr-econ-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){.drr-source-grid,.drr-formulas,.drr-econ-grid{grid-template-columns:1fr}}

/* TASK 015.7 — денежный возврат SKU и удобство широких экранов */
.finance-sku-cash-note{margin:12px 2px 0}
.cash-cover-note{display:block;color:#758396;font-size:10px;margin-top:3px;font-weight:500}
.profit-table td:nth-child(7),.profit-table td:nth-child(8){font-weight:750}
.drr-action-head,.drr-action-cell{position:sticky!important;right:0;z-index:3;background:#10151b!important;box-shadow:-8px 0 12px rgba(9,12,16,.65)}
.drr-action-cell{min-width:82px;text-align:center!important}
.drr-action-cell .drr-explain-btn{background:#edf2f7;color:#10151b;border:0;font-weight:800}
.drr-detail-row td{position:static!important;box-shadow:none!important}
@media(min-width:1800px){.content{padding-left:38px;padding-right:38px}}

/* TASK 016 — налоговый мост закрытого месяца */
.tax-bridge-panel{margin-top:14px}
.tax-bridge-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.tax-bridge-card{border:1px solid var(--border);border-radius:12px;padding:14px;background:var(--panel-2,#111820);display:flex;flex-direction:column;gap:6px;min-height:96px}
.tax-bridge-card span{font-size:12px;color:var(--muted)}
.tax-bridge-card strong{font-size:24px}
.tax-bridge-card small{font-size:11px;color:var(--muted)}
.tax-bridge-card.total{border-color:rgba(87,210,139,.45)}
.tax-bridge-foot{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px;padding:12px;border-radius:10px;background:rgba(255,255,255,.025);font-size:12px;color:var(--muted)}
.status-pill{display:inline-flex;align-items:center;border:1px solid var(--border);border-radius:999px;padding:6px 10px;font-size:12px;font-weight:700}
.status-pill.good{color:#70d99b;border-color:rgba(112,217,155,.45)}
.status-pill.warn{color:#e0bd70;border-color:rgba(224,189,112,.45)}
.doc-status-list{display:flex;flex-direction:column;gap:6px;margin-top:10px}
.doc-status-row{display:grid;grid-template-columns:90px 1fr 1fr 1fr;gap:10px;padding:8px 10px;border-top:1px solid var(--border);font-size:12px;color:var(--muted)}
.doc-status-row strong{color:var(--text)}
@media(max-width:1100px){.tax-bridge-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tax-bridge-foot{grid-template-columns:1fr}.doc-status-row{grid-template-columns:1fr 1fr}}
.settlement-check{margin-top:12px;padding:12px 14px;border:1px solid var(--border);border-radius:10px;display:grid;grid-template-columns:210px 1fr auto;gap:12px;align-items:center}
.settlement-check span,.settlement-check small{color:var(--muted);font-size:12px}.settlement-check strong{font-size:14px}
@media(max-width:900px){.settlement-check{grid-template-columns:1fr}}

/* TASK 016.1 */
.period-sync-button{white-space:nowrap;background:#eef4fb;color:#0b0f14;border-color:#eef4fb}

.profit-formula{margin:12px 0 16px;padding:12px 16px;border:1px solid var(--border);border-radius:12px;background:var(--panel);font-weight:700;color:var(--text)}
/* TASK 016.14 — широкая таблица юнит-экономики прокручивается горизонтально */
.profit-table{min-width:1680px}
.profit-table td:nth-child(n+6){white-space:nowrap}

/* TASK 016.16 — две компактные управленческие юнит-экономики */
.unit-table-title{font-size:15px;margin:16px 0 9px;color:#dce6f2}.unit-table-title.second{margin-top:22px}
.unit-table-wrap{max-height:520px}.unit-economics-table{min-width:1540px}.unit-economics-table.period{min-width:1500px}
.unit-economics-table th:nth-child(n+3),.unit-economics-table td:nth-child(n+3){text-align:right}
.unit-economics-table td{vertical-align:middle}
.money-pct{display:flex;flex-direction:column;align-items:flex-end;gap:2px;white-space:nowrap}.money-pct small{font-size:10px;color:#73849a}.money-pct strong{font-weight:700}
.unit-profit-good{color:#65df9a;font-weight:800}.unit-profit-bad{color:#ff7e7e;font-weight:800}.unit-nd{color:#8795a8}
.unit-product{font-weight:750;text-align:left!important;white-space:normal;min-width:150px}.unit-economics-table th:first-child,.unit-economics-table td:first-child{text-align:left}

/* TASK 016.18 — юнит-экономика должна читаться без микрошрифта */
.unit-table-wrap{
  max-height:560px;
  border:1px solid #26313d;
  border-radius:10px;
  background:#0d1319;
}
.unit-economics-table,.unit-economics-table.period{min-width:1420px}
.unit-economics-table th{
  font-size:12px;
  line-height:1.25;
  letter-spacing:.015em;
  white-space:normal;
  padding:12px 10px;
  color:#9eacbd;
}
.unit-economics-table td{
  font-size:13.5px;
  line-height:1.3;
  padding:12px 10px;
}
.unit-economics-table th:nth-child(n+2),.unit-economics-table td:nth-child(n+2){text-align:right}
.unit-economics-table th:first-child,.unit-economics-table td:first-child{
  position:sticky;
  left:0;
  z-index:2;
  background:#10171f;
  min-width:145px;
  max-width:175px;
}
.unit-economics-table th:first-child{z-index:4;background:#10151b}
.unit-article{display:flex;flex-direction:column;gap:3px;align-items:flex-start}
.unit-article strong{font-size:13.5px;color:#eef4fb;white-space:normal}
.unit-article small{font-size:10.5px;color:#74859a;font-weight:500;white-space:nowrap}
.money-pct small{font-size:10.5px;color:#7f90a5}
.finance-sku-cash-note{font-size:12.5px;line-height:1.5;color:#9aa8b8}


/* TASK 016.19 — читаемость финансовой юнит-экономики */
.unit-table-wrap{
  max-height:620px;
  scrollbar-gutter:stable both-edges;
}
.unit-economics-table,.unit-economics-table.period{min-width:1600px}
.unit-economics-table th{
  font-size:12.5px;
  line-height:1.3;
  padding:13px 11px;
  color:#a9b7c8;
}
.unit-economics-table td{
  font-size:13.5px;
  line-height:1.35;
  padding:13px 11px;
}
.unit-economics-table td:not(:first-child){white-space:nowrap}
.unit-economics-table th:first-child,.unit-economics-table td:first-child{
  min-width:170px;
  max-width:210px;
}
.unit-article strong{font-size:14px;line-height:1.25}
.unit-article small,.money-pct small{font-size:11px;line-height:1.25}
.finance-sku-cash-note{font-size:13px;line-height:1.55}


/* TASK 016.20 — ROI, маржа и прибыль всегда видны; таблица компактнее без микрошрифта */
.unit-economics-table,.unit-economics-table.period{min-width:1420px}
.unit-economics-table th{font-size:12.25px;padding:10px 7px}
.unit-economics-table td{font-size:13px;padding:10px 7px}
.unit-economics-table th:first-child,.unit-economics-table td:first-child{min-width:145px;max-width:165px}
.unit-economics-table th:nth-last-child(1),.unit-economics-table td:nth-last-child(1){
  position:sticky;right:0;z-index:3;background:#10171f;min-width:72px;max-width:72px;
}
.unit-economics-table th:nth-last-child(2),.unit-economics-table td:nth-last-child(2){
  position:sticky;right:72px;z-index:3;background:#10171f;min-width:68px;max-width:68px;
}
.unit-economics-table th:nth-last-child(3),.unit-economics-table td:nth-last-child(3){
  position:sticky;right:140px;z-index:3;background:#10171f;min-width:92px;max-width:104px;
  box-shadow:-8px 0 12px rgba(7,10,14,.55);
}
.unit-economics-table th:nth-last-child(-n+3){z-index:5;background:#10151b}
.unit-economics-table td:nth-last-child(-n+3){font-weight:750}

/* TASK 016.24 — readable unit economics tables */
/* Горизонтальная прокрутка остаётся. Главное — нормальные ширины и читаемые значения. */
.unit-table-wrap{
  max-height:640px !important;
  overflow:auto !important;
  scrollbar-gutter:stable both-edges;
  overscroll-behavior:contain;
}
.unit-economics-table,
.unit-economics-table.period{
  min-width:1880px !important;
  width:max-content !important;
  table-layout:auto !important;
}
.unit-economics-table th,
.unit-economics-table td{
  padding:11px 10px !important;
  font-size:13px !important;
  line-height:1.32 !important;
  vertical-align:middle !important;
}
.unit-economics-table th{
  font-size:12.5px !important;
  line-height:1.25 !important;
  white-space:normal !important;
  word-break:normal !important;
  overflow-wrap:normal !important;
  hyphens:none !important;
}
.unit-economics-table td:not(:first-child){white-space:nowrap !important;}

/* Артикул */
.unit-economics-table th:nth-child(1),
.unit-economics-table td:nth-child(1){min-width:190px !important;width:190px !important;max-width:190px !important;}
.unit-article strong{font-size:13.5px !important;line-height:1.25 !important;}
.unit-article small{font-size:10.5px !important;line-height:1.2 !important;}
/* Реализовано */
.unit-economics-table th:nth-child(2),.unit-economics-table td:nth-child(2){min-width:96px !important;width:96px !important;}
/* Цена / валовая экономика */
.unit-economics-table th:nth-child(3),.unit-economics-table td:nth-child(3){min-width:138px !important;width:138px !important;}
/* Комиссия */
.unit-economics-table th:nth-child(4),.unit-economics-table td:nth-child(4){min-width:108px !important;width:108px !important;}
/* Логистика */
.unit-economics-table th:nth-child(5),.unit-economics-table td:nth-child(5){min-width:108px !important;width:108px !important;}
/* Эквайринг */
.unit-economics-table th:nth-child(6),.unit-economics-table td:nth-child(6){min-width:96px !important;width:96px !important;}
/* Реклама */
.unit-economics-table th:nth-child(7),.unit-economics-table td:nth-child(7){min-width:104px !important;width:104px !important;}
/* Прочие Ozon */
.unit-economics-table th:nth-child(8),.unit-economics-table td:nth-child(8){min-width:110px !important;width:110px !important;}
/* Расходы Ozon */
.unit-economics-table th:nth-child(9),.unit-economics-table td:nth-child(9){min-width:106px !important;width:106px !important;}
/* К выплате */
.unit-economics-table th:nth-child(10),.unit-economics-table td:nth-child(10){min-width:142px !important;width:142px !important;}
/* Себестоимость */
.unit-economics-table th:nth-child(11),.unit-economics-table td:nth-child(11){min-width:120px !important;width:120px !important;}
/* НДС */
.unit-economics-table th:nth-child(12),.unit-economics-table td:nth-child(12){min-width:82px !important;width:82px !important;}
/* Налог */
.unit-economics-table th:nth-child(13),.unit-economics-table td:nth-child(13){min-width:86px !important;width:86px !important;}

/* Управленческий блок справа всегда читается. */
.unit-economics-table th:nth-child(14),.unit-economics-table td:nth-child(14){
  position:sticky !important;right:188px !important;z-index:4 !important;
  min-width:116px !important;width:116px !important;max-width:116px !important;
  background:#10171f !important;box-shadow:-8px 0 12px rgba(7,10,14,.45);
}
.unit-economics-table th:nth-child(15),.unit-economics-table td:nth-child(15){
  position:sticky !important;right:98px !important;z-index:4 !important;
  min-width:90px !important;width:90px !important;max-width:90px !important;background:#10171f !important;
}
.unit-economics-table th:nth-child(16),.unit-economics-table td:nth-child(16){
  position:sticky !important;right:0 !important;z-index:4 !important;
  min-width:98px !important;width:98px !important;max-width:98px !important;background:#10171f !important;
}
.unit-economics-table th:nth-child(14),.unit-economics-table th:nth-child(15),.unit-economics-table th:nth-child(16){z-index:7 !important;background:#10151b !important;}
.money-pct{gap:3px !important;}
.money-pct strong{font-size:13px !important;}
.money-pct small{font-size:10.5px !important;line-height:1.15 !important;}

/* Артикул закреплён слева. */
.unit-economics-table th:first-child,.unit-economics-table td:first-child{
  position:sticky !important;left:0 !important;z-index:5 !important;background:#10171f !important;
  box-shadow:8px 0 12px rgba(7,10,14,.30);
}
.unit-economics-table th:first-child{z-index:8 !important;background:#10151b !important;}
@media (max-width:1200px){
  .unit-economics-table,.unit-economics-table.period{min-width:1880px !important;}
  .unit-economics-table th,.unit-economics-table td{font-size:13px !important;}
}
/* END TASK 016.24 */


/* TASK 016.27 — таблицы юнит-экономики: нормальная горизонтальная прокрутка без перекрытий */
.unit-table-wrap{
  max-height:640px !important;
  overflow:auto !important;
  scrollbar-gutter:stable both-edges;
  overscroll-behavior:contain;
}
.unit-economics-table,
.unit-economics-table.period{
  min-width:2180px !important;
  width:2180px !important;
  table-layout:fixed !important;
}
.unit-economics-table th,
.unit-economics-table td{
  padding:11px 10px !important;
  font-size:13px !important;
  line-height:1.32 !important;
  vertical-align:middle !important;
  overflow:visible !important;
  text-overflow:clip !important;
}
.unit-economics-table th{
  font-size:12.5px !important;
  line-height:1.25 !important;
  white-space:normal !important;
  word-break:normal !important;
  overflow-wrap:normal !important;
  hyphens:none !important;
}
.unit-economics-table td:not(:first-child){white-space:nowrap !important;}

/* Артикул остаётся закреплён слева. Остальные колонки прокручиваются естественно. */
.unit-economics-table th:first-child,
.unit-economics-table td:first-child{
  position:sticky !important;
  left:0 !important;
  z-index:5 !important;
  background:#10171f !important;
  box-shadow:6px 0 10px rgba(7,10,14,.30) !important;
  min-width:205px !important;
  width:205px !important;
  max-width:205px !important;
}
.unit-economics-table th:first-child{z-index:8 !important;background:#10151b !important;}

/* Правые колонки НЕ закрепляем: они больше не перекрывают середину таблицы. */
.unit-economics-table th:nth-last-child(1), .unit-economics-table td:nth-last-child(1),
.unit-economics-table th:nth-last-child(2), .unit-economics-table td:nth-last-child(2),
.unit-economics-table th:nth-last-child(3), .unit-economics-table td:nth-last-child(3){
  position:static !important;
  right:auto !important;
  z-index:auto !important;
  background:transparent !important;
  box-shadow:none !important;
  max-width:none !important;
}
.unit-economics-table th:nth-last-child(-n+3){background:#10151b !important;}

/* Ширины 16 колонок — одинаковы для обеих таблиц. */
.unit-economics-table th:nth-child(1), .unit-economics-table td:nth-child(1){width:205px !important;}
.unit-economics-table th:nth-child(2), .unit-economics-table td:nth-child(2){width:125px !important;}
.unit-economics-table th:nth-child(3), .unit-economics-table td:nth-child(3){width:165px !important;}
.unit-economics-table th:nth-child(4), .unit-economics-table td:nth-child(4){width:120px !important;}
.unit-economics-table th:nth-child(5), .unit-economics-table td:nth-child(5){width:120px !important;}
.unit-economics-table th:nth-child(6), .unit-economics-table td:nth-child(6){width:110px !important;}
.unit-economics-table th:nth-child(7), .unit-economics-table td:nth-child(7){width:120px !important;}
.unit-economics-table th:nth-child(8), .unit-economics-table td:nth-child(8){width:125px !important;}
.unit-economics-table th:nth-child(9), .unit-economics-table td:nth-child(9){width:120px !important;}
.unit-economics-table th:nth-child(10), .unit-economics-table td:nth-child(10){width:155px !important;}
.unit-economics-table th:nth-child(11), .unit-economics-table td:nth-child(11){width:130px !important;}
.unit-economics-table th:nth-child(12), .unit-economics-table td:nth-child(12){width:95px !important;}
.unit-economics-table th:nth-child(13), .unit-economics-table td:nth-child(13){width:100px !important;}
.unit-economics-table th:nth-child(14), .unit-economics-table td:nth-child(14){width:120px !important;}
.unit-economics-table th:nth-child(15), .unit-economics-table td:nth-child(15){width:95px !important;}
.unit-economics-table th:nth-child(16), .unit-economics-table td:nth-child(16){width:110px !important;}

.unit-article strong{font-size:13.5px !important;line-height:1.25 !important;white-space:normal !important;}
.unit-article small{font-size:10.5px !important;line-height:1.2 !important;}
.money-pct{gap:3px !important;}
.money-pct strong{font-size:13px !important;}
.money-pct small{font-size:10.5px !important;line-height:1.15 !important;}
/* END TASK 016.27 */


/* TASK 016.28 FINAL — читаемость без перекрытий. Финансовые формулы не меняются. */
.unit-table-wrap{
  max-height:680px !important;
  overflow:auto !important;
  scrollbar-gutter:stable !important;
  overscroll-behavior:contain !important;
}
.unit-economics-table,
.unit-economics-table.period{
  width:max-content !important;
  min-width:2520px !important;
  table-layout:auto !important;
}
.unit-economics-table th,
.unit-economics-table td{
  position:static !important;
  right:auto !important;
  left:auto !important;
  z-index:auto !important;
  box-shadow:none !important;
  max-width:none !important;
  overflow:visible !important;
  text-overflow:clip !important;
  padding:12px 14px !important;
}
.unit-economics-table th{
  white-space:nowrap !important;
  word-break:normal !important;
  overflow-wrap:normal !important;
  hyphens:none !important;
  font-size:12.5px !important;
  line-height:1.25 !important;
  background:#10151b !important;
}
.unit-economics-table td{
  white-space:nowrap !important;
  font-size:13px !important;
  line-height:1.35 !important;
}
.unit-economics-table th:first-child,
.unit-economics-table td:first-child{
  position:static !important;
  min-width:220px !important;
  width:220px !important;
  max-width:260px !important;
  background:transparent !important;
  text-align:left !important;
}
.unit-economics-table th:first-child{background:#10151b !important;}
.unit-economics-table td:first-child{background:#10171f !important;}
.unit-economics-table th:nth-child(2),.unit-economics-table td:nth-child(2){min-width:130px !important;}
.unit-economics-table th:nth-child(3),.unit-economics-table td:nth-child(3){min-width:190px !important;}
.unit-economics-table th:nth-child(4),.unit-economics-table td:nth-child(4){min-width:140px !important;}
.unit-economics-table th:nth-child(5),.unit-economics-table td:nth-child(5){min-width:140px !important;}
.unit-economics-table th:nth-child(6),.unit-economics-table td:nth-child(6){min-width:125px !important;}
.unit-economics-table th:nth-child(7),.unit-economics-table td:nth-child(7){min-width:130px !important;}
.unit-economics-table th:nth-child(8),.unit-economics-table td:nth-child(8){min-width:140px !important;}
.unit-economics-table th:nth-child(9),.unit-economics-table td:nth-child(9){min-width:140px !important;}
.unit-economics-table th:nth-child(10),.unit-economics-table td:nth-child(10){min-width:180px !important;}
.unit-economics-table th:nth-child(11),.unit-economics-table td:nth-child(11){min-width:145px !important;}
.unit-economics-table th:nth-child(12),.unit-economics-table td:nth-child(12){min-width:100px !important;}
.unit-economics-table th:nth-child(13),.unit-economics-table td:nth-child(13){min-width:110px !important;}
.unit-economics-table th:nth-child(14),.unit-economics-table td:nth-child(14){min-width:135px !important;}
.unit-economics-table th:nth-child(15),.unit-economics-table td:nth-child(15){min-width:110px !important;}
.unit-economics-table th:nth-child(16),.unit-economics-table td:nth-child(16){min-width:150px !important;}
.unit-article strong{white-space:normal !important;line-height:1.25 !important;}
.unit-article small{white-space:nowrap !important;}
.money-pct{white-space:nowrap !important;}
/* END TASK 016.28 FINAL */
/* TASK 017.5 — контроль полноты рекламных данных */
.ads-data-audit{display:grid;grid-template-columns:repeat(5,minmax(150px,1fr));gap:8px;margin:0 0 12px}.ads-data-audit>div{display:grid;gap:4px;padding:9px 11px;border:1px solid #26313d;border-radius:9px;background:#0d131a}.ads-data-audit span{font-size:11px;color:#8998a9}.ads-data-audit strong{font-size:14px;color:#eef2f7}.perf-table{min-width:2300px}.perf-table th,.perf-table td{white-space:nowrap}.perf-table td:nth-child(2){font-weight:700}.perf-table th:nth-child(n+6),.perf-table td:nth-child(n+6){text-align:right}@media(max-width:1100px){.ads-data-audit{grid-template-columns:repeat(2,minmax(150px,1fr))}}

.campaign-missing{color:var(--muted);cursor:help}

/* TASK 020.2 — Товарная разведка: карточки без наложений + кликабельные источники */
.metric-grid{display:grid;gap:12px;margin:0 0 12px;min-width:0}
.metric-grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}
.metric-card{display:flex!important;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:6px;min-height:116px;overflow:hidden;min-width:0}
.metric-card span{display:block;color:var(--muted);font-size:12px;line-height:1.3;white-space:normal}
.metric-card strong{display:block;font-size:27px;line-height:1.15;max-width:100%;overflow-wrap:anywhere}
.metric-card small{display:block;color:var(--muted);font-size:11px;line-height:1.35;white-space:normal}
.scout-coverage-box{margin-bottom:12px}
.scout-risk-layout{margin-top:12px;align-items:start}
.scout-anchor-table{min-width:1120px}
.scout-risk-row small{color:var(--muted);font-weight:700;text-transform:uppercase;letter-spacing:.03em}
.bubble.markdown a{color:#8ebfff;text-decoration:underline;text-underline-offset:2px;overflow-wrap:anywhere}
.bubble.markdown a:hover{opacity:.85}
@media(max-width:1150px){.metric-grid.four{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.metric-grid.four{grid-template-columns:1fr}}
/* END TASK 020.2 */

.ai-request-cost{margin-top:14px;padding-top:9px;border-top:1px solid #2a3440;color:#9fb0c2;font-size:12px;font-weight:600;letter-spacing:.01em}

/* TASK 021A — современная панель собственника. Финансовые формулы не меняются. */
:root{
  color-scheme:light;
  --page:#f4f7fb;
  --surface:#ffffff;
  --surface-soft:#f8fafc;
  --ink:#142033;
  --muted:#718096;
  --line:#e5eaf1;
  --nav:#071726;
  --nav-soft:#10283d;
  --blue:#2667ff;
  --violet:#7557e8;
  --green:#159a63;
  --red:#d94b58;
  --amber:#b97911;
  --shadow:0 8px 28px rgba(31,48,74,.07);
}
body{background:var(--page);color:var(--ink);font-family:Inter,"Segoe UI",Arial,sans-serif}
button,input,select,textarea{font:inherit}
.app-shell{grid-template-columns:244px minmax(0,1fr);background:var(--page)}
.sidebar-legacy{display:none!important}
.sidebar-v21{background:var(--nav);border:0;padding:22px 14px 18px;color:#fff;z-index:20}
.brand-block{display:flex;align-items:center;gap:11px;padding:0 8px 23px;margin-bottom:8px;border-bottom:1px solid rgba(255,255,255,.09)}
.brand-mark{display:grid;place-items:center;width:40px;height:40px;border-radius:11px;background:linear-gradient(145deg,#7557e8,#3977ff);font-size:13px;font-weight:900;letter-spacing:.04em;box-shadow:0 8px 18px rgba(66,101,255,.25)}
.sidebar-v21 .brand{font-size:14px;letter-spacing:.08em;line-height:1.1;color:#fff}
.sidebar-v21 .brand-sub{margin:4px 0 0;color:#8499ac;font-size:12px}
.sidebar-v21 nav{gap:3px}
.sidebar-v21 .nav{display:flex;align-items:center;gap:11px;min-height:40px;color:#9eb0bf;border-radius:9px;padding:9px 10px;font-size:13px;font-weight:650;transition:.16s ease}
.sidebar-v21 .nav:hover{background:rgba(255,255,255,.055);color:#fff;transform:translateX(1px)}
.sidebar-v21 .nav.active{background:#15314a;color:#fff;box-shadow:inset 3px 0 #6d7cff}
.sidebar-v21 .nav-accent{margin-top:5px;color:#bdc8ff}
.nav-icon{display:grid;place-items:center;width:22px;height:22px;color:#8ba0b2;font-size:16px;font-weight:400}
.nav.active .nav-icon{color:#91a3ff}
.sidebar-v21 .sidebar-bottom{display:flex;align-items:flex-start;line-height:1.35;color:#8ba0b1;border-top:1px solid rgba(255,255,255,.08);padding:16px 9px 0}
.sidebar-v21 .sidebar-bottom small{color:#607b90}
.content{max-width:1680px;padding:18px 24px 42px}
.period-bar{position:relative;display:block;background:transparent;border:0;border-radius:0;padding:0;margin:0 0 20px;box-shadow:none}
.period-quickbar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 12px;background:var(--surface);border:1px solid var(--line);border-radius:13px;box-shadow:0 4px 14px rgba(31,48,74,.04)}
.period-pills{display:flex;align-items:center;gap:4px;overflow:auto;scrollbar-width:none}
.period-pill,.period-custom-toggle{border:0;background:transparent;color:#66758b;border-radius:8px;padding:8px 11px;white-space:nowrap;font-size:12px;font-weight:700;cursor:pointer}
.period-pill:hover,.period-custom-toggle:hover{background:#f0f4fa;color:#26374f}
.period-pill.active{background:#eaf0ff;color:#315ed6}
.period-quick-actions{display:flex;align-items:center;gap:7px}
.period-quickbar .period-sync-button{height:36px;background:#1d2940;color:#fff;border:0;border-radius:9px;padding:0 13px;font-size:12px;box-shadow:none}
.period-bar>.period-main,.period-bar>.compare-main{display:none}
.period-bar.period-custom-open>.period-main,.period-bar.period-custom-open>.compare-main{display:flex;background:var(--surface);border:1px solid var(--line);padding:12px;margin-top:7px}
.period-bar.period-custom-open>.period-main{border-radius:12px 12px 0 0;border-bottom:0}
.period-bar.period-custom-open>.compare-main{border-radius:0 0 12px 12px;margin-top:0}
.period-field,.compare-check{color:#6d7a8d}
.period-field select,.period-field input,.compare-main select,.compare-dates input{background:#fff;color:#26364b;border-color:#dce3ec}
.period-bar>.period-status{display:block;min-height:17px;max-width:none;padding:5px 4px 0;color:#7b8899}
.period-button{background:#22314a;color:#fff}
#page-home>.page-head,#page-home>.kpi-grid,#page-home>.two-col{display:none!important}
.dashboard-v21{display:block;color:var(--ink)}
.dashboard-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:4px 0 19px}
.dashboard-head h1{margin:4px 0 5px;font-size:25px;line-height:1.18;letter-spacing:-.035em;color:#17243a}
.dashboard-head p{margin:0;color:var(--muted);font-size:12px}
.dashboard-head .eyebrow,.section-kicker{color:#6c7a90;font-size:9px;font-weight:850;letter-spacing:.14em}
.dashboard-head-actions{display:flex;align-items:center;gap:9px}
.data-status{display:inline-flex;align-items:center;gap:7px;padding:8px 10px;border:1px solid var(--line);border-radius:999px;background:#fff;color:#68778c;font-size:11px;font-weight:700}
.data-status.ready{color:#167b55;background:#f0fbf6;border-color:#d5f1e3}.data-status.warning{color:#9b6512;background:#fff9ed;border-color:#f5e5be}
.status-dot{width:7px;height:7px;border-radius:50%;background:#8ca0b5}.data-status.ready .status-dot{background:#22a76f}.data-status.warning .status-dot{background:#d59b35}.data-status.loading .status-dot{animation:statusPulse 1.2s infinite}
@keyframes statusPulse{50%{opacity:.3}}
.ask-shtab-button{display:inline-flex;align-items:center;gap:7px;border:0;border-radius:10px;background:linear-gradient(135deg,#7557e8,#416cff);color:#fff;padding:10px 14px;font-size:12px;font-weight:800;cursor:pointer;box-shadow:0 7px 18px rgba(84,87,229,.22)}
.dashboard-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;margin-bottom:10px}
.owner-kpi{position:relative;min-width:0;min-height:128px;padding:14px 14px 12px;border:1px solid var(--line);border-radius:13px;background:var(--surface);box-shadow:0 3px 12px rgba(32,49,73,.035);overflow:hidden}
.owner-kpi-accent{border-top:3px solid #4b72f6;padding-top:12px}.owner-kpi-profit{border-top:3px solid #23a56e;padding-top:12px}
.owner-kpi-compact{grid-column:span 3;min-height:93px}
.owner-kpi-top{display:flex;justify-content:space-between;align-items:center;color:#65738a;font-size:11px;font-weight:750}
.kpi-symbol{display:grid;place-items:center;width:25px;height:25px;border-radius:7px;background:#f0f4fa;color:#6680a3;font-size:13px}
.owner-kpi strong{display:block;margin:13px 0 4px;color:#18273d;font-size:22px;line-height:1;letter-spacing:-.035em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.owner-kpi small{display:block;color:#8a96a6;font-size:9.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.owner-change{display:inline-flex;margin-top:10px;border-radius:999px;padding:3px 6px;font-size:9px;font-weight:750;background:#f2f4f7;color:#7b8797}
.owner-change.good{background:#eaf8f1;color:#13865a}.owner-change.bad{background:#fff0f1;color:#c7404d}.owner-change.info{background:#eef2ff;color:#5569c8}.owner-change.neutral{background:#f2f4f7;color:#7b8797}
.dashboard-card{background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);padding:16px;min-width:0}
.dashboard-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px}
.dashboard-card h2{margin:4px 0 0;color:#1b293e;font-size:16px;letter-spacing:-.02em}.dashboard-card p{margin:4px 0 0;color:var(--muted);font-size:10.5px;line-height:1.45}
.yesterday-card{margin-bottom:10px;padding:17px 18px 14px}
.yesterday-card .status-pill{background:#eff8f4;border-color:#d6ecdf;color:#247b58;padding:5px 9px;font-size:10px}
.yesterday-flow{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:20px;margin:4px 0 13px}
.flow-item{position:relative;min-width:0;padding:12px 11px;border:1px solid #e7ebf1;border-radius:10px;background:#fafbfd}
.flow-item:not(:last-child)::after{content:"→";position:absolute;right:-17px;top:50%;transform:translateY(-50%);color:#a7b3c0;font-size:14px;font-weight:700}
.flow-item span{display:block;color:#748197;font-size:9.5px;white-space:nowrap}.flow-item strong{display:block;margin-top:5px;color:#1b293d;font-size:15px;letter-spacing:-.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.flow-item.profit{background:#effaf5;border-color:#d6ede2}.flow-item.profit strong{color:#148159}
.ads-in-profit-note{display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:8px;background:#f3f6fb;color:#637187;font-size:9.5px;line-height:1.4}
.note-icon{display:grid;place-items:center;flex:0 0 17px;width:17px;height:17px;border-radius:50%;background:#7b8ea8;color:#fff;font-size:10px;font-weight:800}
.yesterday-comparisons{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:10px}
.yesterday-comparisons>div{display:grid;grid-template-columns:1fr auto;gap:1px 8px;padding:8px 10px;border-left:2px solid #e2e7ee;background:#fafbfd}.yesterday-comparisons span{color:#78869a;font-size:9px}.yesterday-comparisons strong{grid-row:1/3;grid-column:2;color:#27374d;font-size:13px}.yesterday-comparisons small{color:#a0a9b5;font-size:8.5px}
.dashboard-grid{display:grid;gap:10px;margin-bottom:10px}.dashboard-grid-main{grid-template-columns:minmax(0,1.65fr) minmax(260px,.62fr)}.dashboard-grid-secondary{grid-template-columns:minmax(320px,.8fr) minmax(0,1.2fr)}.dashboard-grid-actions{grid-template-columns:1.1fr .9fr}
.trend-card{min-height:340px}.chart-wrap{position:relative;height:270px}.chart-wrap canvas{width:100%;height:100%}.chart-empty{position:absolute;inset:0;display:grid;place-items:center;color:#8895a5;font-size:12px;background:#fafbfd;border-radius:10px}
.chart-legend{display:flex;gap:12px;color:#738097;font-size:9.5px}.chart-legend span{display:flex;align-items:center;gap:5px}.chart-legend i{width:8px;height:8px;border-radius:50%}.legend-profit{background:#7557e8}.legend-sales{background:#62a7f7}
.forecast-card{position:relative;overflow:hidden;background:linear-gradient(145deg,#182e47,#243f5d);border-color:#243f5d;color:#fff}.forecast-card::after{content:"";position:absolute;width:190px;height:190px;border-radius:50%;right:-95px;top:-105px;background:rgba(100,129,255,.18)}.forecast-card .section-kicker{color:#95aec7}.forecast-card h2{margin-top:15px;color:#fff;font-size:30px}.forecast-card p,.forecast-card small{color:#a9b9ca}.forecast-progress{height:5px;margin:19px 0 18px;border-radius:99px;background:rgba(255,255,255,.12);overflow:hidden}.forecast-progress span{display:block;width:0;height:100%;background:linear-gradient(90deg,#39c58a,#70dcac);border-radius:99px}.forecast-facts{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:20px}.forecast-facts>div{padding:10px;border:1px solid rgba(255,255,255,.1);border-radius:9px;background:rgba(255,255,255,.045)}.forecast-facts span{display:block;color:#91a5b9;font-size:9px}.forecast-facts strong{display:block;margin-top:5px;color:#fff;font-size:14px}.forecast-card>small{position:relative;display:block;line-height:1.5;z-index:1}
.structure-layout{display:grid;grid-template-columns:154px 1fr;align-items:center;gap:18px;min-height:190px}.sales-ring{display:grid;place-items:center;width:140px;height:140px;margin:auto;border-radius:50%;background:conic-gradient(#dfe5ec 0 100%);position:relative}.sales-ring::after{content:"";position:absolute;inset:23px;border-radius:50%;background:#fff}.sales-ring>div{position:relative;z-index:1;display:grid;text-align:center}.sales-ring strong{font-size:16px;color:#1d2b40}.sales-ring span{font-size:9px;color:#8895a6}.sales-legend{display:flex;flex-direction:column;gap:9px}.sales-legend-row{display:grid;grid-template-columns:9px minmax(0,1fr) auto;align-items:center;gap:7px;font-size:10px}.sales-legend-row i{width:8px;height:8px;border-radius:2px}.sales-legend-row span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#68768a}.sales-legend-row strong{font-size:10px;color:#27374d}
.text-button{border:0;background:transparent;color:#526ee5;font-size:10px;font-weight:750;cursor:pointer}.top-products{display:flex;flex-direction:column}.top-product-row{display:grid;grid-template-columns:26px minmax(0,1fr) auto auto;gap:9px;align-items:center;padding:9px 0;border-top:1px solid #edf0f4}.top-product-row:first-child{border-top:0}.product-rank{display:grid;place-items:center;width:23px;height:23px;border-radius:7px;background:#eef2f8;color:#68778d;font-size:9px;font-weight:800}.product-name{min-width:0}.product-name strong{display:block;font-size:10.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.product-name small{display:block;margin-top:2px;color:#94a0ae;font-size:8.5px}.product-sales,.product-profit{text-align:right}.product-sales span,.product-profit span{display:block;color:#9aa5b2;font-size:8px}.product-sales strong,.product-profit strong{font-size:10px}.product-profit strong.good{color:#16895c}.product-profit strong.bad{color:#cf4652}
.count-badge{display:grid;place-items:center;min-width:25px;height:25px;padding:0 7px;border-radius:99px;background:#fff0f1;color:#c84552;font-size:10px;font-weight:850}.section-kicker.danger{color:#c94c57}.issues-list,.recommendations-list{display:flex;flex-direction:column}.issue-row,.recommendation-row{display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:9px;align-items:center;padding:9px 0;border-top:1px solid #edf0f4}.issue-row:first-child,.recommendation-row:first-child{border-top:0}.issue-icon{display:grid;place-items:center;width:26px;height:26px;border-radius:8px;font-size:11px;font-weight:900}.issue-icon.critical{background:#fff0f1;color:#d24955}.issue-icon.warning{background:#fff7e8;color:#b97911}.issue-icon.info{background:#edf4ff;color:#4b6bd8}.issue-copy{min-width:0}.issue-copy strong{display:block;color:#26364b;font-size:10.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.issue-copy small{display:block;margin-top:2px;color:#8a96a5;font-size:8.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.issue-action{border:0;background:#f1f4f8;color:#53647a;border-radius:7px;padding:6px 8px;font-size:8.5px;font-weight:750;cursor:pointer}.recommendation-row{grid-template-columns:22px minmax(0,1fr) auto}.recommendation-number{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#eff2f7;color:#69778a;font-size:8.5px;font-weight:850}
.empty-state{padding:28px 8px;color:#8a96a5;text-align:center;font-size:10px}.empty-state.good{color:#18895d;background:#f1fbf6;border-radius:10px}
.ai-hq-card{display:grid;grid-template-columns:minmax(280px,.9fr) minmax(300px,1.1fr);gap:14px 22px;align-items:center;background:linear-gradient(135deg,#f7f6ff,#f3f7ff);border-color:#e0e2f5}.ai-hq-copy{display:flex;align-items:center;gap:12px}.ai-hq-icon{display:grid;place-items:center;flex:0 0 43px;width:43px;height:43px;border-radius:13px;background:linear-gradient(135deg,#7557e8,#416cff);color:#fff;font-size:20px;box-shadow:0 8px 18px rgba(87,82,225,.22)}.ai-hq-card h2{font-size:18px}.quick-prompts{display:flex;gap:6px;justify-content:flex-end;flex-wrap:wrap}.quick-prompts button{border:1px solid #dbe0ee;background:rgba(255,255,255,.72);color:#5d6a81;border-radius:999px;padding:6px 9px;font-size:9px;cursor:pointer}.ai-hq-form{grid-column:1/-1;display:grid;grid-template-columns:1fr auto;gap:7px}.ai-hq-form input{min-width:0;border:1px solid #dce1ed;border-radius:10px;background:#fff;color:#25344a;padding:11px 13px;font-size:11px;outline:0}.ai-hq-form input:focus{border-color:#7b83e6;box-shadow:0 0 0 3px rgba(99,103,224,.1)}.ai-hq-form button{border:0;border-radius:10px;background:#27364f;color:#fff;padding:0 16px;font-size:10px;font-weight:800;cursor:pointer}.ai-hq-answer{grid-column:1/-1;min-height:34px;border-top:1px solid #e0e3ef;padding-top:10px;color:#68758a;font-size:10px;line-height:1.55;white-space:pre-wrap}.dashboard-footer-status{display:flex;justify-content:space-between;gap:16px;padding:10px 3px;color:#909aa8;font-size:9px}

/* Остальные принятые разделы получают ту же светлую оболочку без изменения их логики. */
.page:not(#page-home) .page-head h1,.page:not(#page-home) h2{color:#1a293f}.page:not(#page-home) .page-head p{color:#718096}
.page:not(#page-home) .panel,.page:not(#page-home) .kpi,.page:not(#page-home) .agent-card{background:#fff;border-color:#e2e7ee;color:#1d2b40;box-shadow:0 5px 18px rgba(31,48,74,.045)}
.page:not(#page-home) .metric,.page:not(#page-home) .task-row,.page:not(#page-home) .expense-row{border-color:#e7ebf0}.page:not(#page-home) .metric span{color:#728096}
.page:not(#page-home) input,.page:not(#page-home) select,.page:not(#page-home) textarea{background:#fff;color:#233249;border-color:#dce2ea}
.page:not(#page-home) .status-box,.page:not(#page-home) .formula,.page:not(#page-home) .profit-formula{background:#f7f9fc;color:#536176;border-color:#e2e7ee}

@media(max-width:1320px){.dashboard-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.owner-kpi-compact{grid-column:span 3}.yesterday-flow{grid-template-columns:repeat(4,minmax(0,1fr))}.flow-item:nth-child(4)::after{display:none}.dashboard-grid-main{grid-template-columns:minmax(0,1.5fr) minmax(250px,.7fr)}}
@media(max-width:1050px){.app-shell{grid-template-columns:205px minmax(0,1fr)}.content{padding:16px}.period-quickbar{align-items:flex-start}.period-quick-actions{flex-direction:column;align-items:stretch}.dashboard-grid-main,.dashboard-grid-secondary,.dashboard-grid-actions{grid-template-columns:1fr}.forecast-card{min-height:280px}.yesterday-flow{grid-template-columns:repeat(3,minmax(0,1fr))}.flow-item:nth-child(3)::after,.flow-item:nth-child(4)::after,.flow-item:nth-child(6)::after{display:none}}
@media(max-width:800px){.app-shell{display:block}.sidebar-v21{position:static;height:auto;padding:12px}.brand-block{padding-bottom:11px;margin-bottom:8px}.sidebar-v21 nav{flex-direction:row;overflow:auto;padding-bottom:3px}.sidebar-v21 .nav{flex:0 0 auto}.sidebar-v21 .sidebar-bottom{display:none}.content{padding:12px}.period-quickbar{display:grid;grid-template-columns:1fr}.period-quick-actions{flex-direction:row}.period-custom-toggle{display:none}.dashboard-head{align-items:flex-start;flex-direction:column}.dashboard-head-actions{width:100%;justify-content:space-between}.dashboard-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.owner-kpi-compact{grid-column:span 1}.yesterday-flow{grid-template-columns:repeat(2,minmax(0,1fr))}.flow-item:nth-child(n)::after{display:none}.yesterday-comparisons{grid-template-columns:repeat(2,minmax(0,1fr))}.ai-hq-card{grid-template-columns:1fr}.quick-prompts{justify-content:flex-start}.structure-layout{grid-template-columns:140px 1fr}}
@media(max-width:520px){.dashboard-head h1{font-size:22px}.data-status{display:none}.ask-shtab-button{margin-left:auto}.dashboard-kpis{grid-template-columns:1fr 1fr;gap:7px}.owner-kpi{min-height:117px;padding:12px}.owner-kpi strong{font-size:19px}.owner-kpi-compact{grid-column:span 2;min-height:82px}.yesterday-flow,.yesterday-comparisons{grid-template-columns:1fr}.structure-layout{grid-template-columns:1fr}.sales-ring{width:128px;height:128px}.top-product-row{grid-template-columns:24px minmax(0,1fr) auto}.product-sales{display:none}.issue-row{grid-template-columns:26px minmax(0,1fr)}.issue-action{grid-column:2;justify-self:start}.ai-hq-form{grid-template-columns:1fr}.ai-hq-form button{min-height:39px}.dashboard-footer-status{flex-direction:column}}
/* END TASK 021A */

/* TASK 025.2 — owner acceptance layer. Light surfaces and explicit operational workspaces. */
.owner-kpi-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0 0 10px}.owner-kpi-strip>article{display:flex;flex-direction:column;min-height:91px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:#fff}.owner-kpi-strip span{color:#68778b;font-size:10px}.owner-kpi-strip strong{margin:8px 0 3px;color:#1d2a3e;font-size:18px}.owner-kpi-strip small{color:#8290a3;font-size:9px;line-height:1.35}.owner-kpi-link{cursor:pointer;text-align:left;font:inherit}.owner-kpi-link:hover{border-color:#b7c5e8;background:#f8faff}
.finance-owner-chain{margin:0 0 12px}.finance-chain-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-top:14px}.finance-chain-grid>div,.finance-chain-grid>.chain-link{display:flex;flex-direction:column;align-items:flex-start;min-height:102px;padding:12px;border:1px solid #e1e7ef;border-radius:10px;background:#fbfcfe;color:#223149;text-align:left}.finance-chain-grid span{color:#69778b;font-size:10px}.finance-chain-grid strong{margin:8px 0 4px;color:#1d2b40;font-size:17px}.finance-chain-grid small{color:#8290a3;font-size:9px;line-height:1.35}.finance-chain-grid .total{background:#f5f8ff;border-color:#dbe5f7}.finance-chain-grid .profit{background:#eefaf4;border-color:#cceadb}.finance-chain-grid .profit strong{color:#13805a}.chain-link{cursor:pointer;font:inherit}.chain-link:hover{border-color:#aebee5}
.finance-unit-legacy{display:none}.finance-unit-link{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:12px}.finance-unit-link h2{margin:4px 0}.finance-unit-link p{margin:0;color:#748297}.finance-unit-link .action{flex:0 0 auto}#page-finance.unit-mode>.page-head,#page-finance.unit-mode>.finance-grid,#page-finance.unit-mode>.profit-formula,#page-finance.unit-mode>.finance-owner-chain,#page-finance.unit-mode>.two-col,#page-finance.unit-mode>.tax-bridge-panel,#page-finance.unit-mode>.finance-unit-link{display:none!important}#page-finance.unit-mode>.finance-unit-legacy{display:block}
body,.page,.panel,.kpi,.cost-table td,.cost-table th,.formula,.tax-bridge-card,.drr-breakdown,.drr-detail-row td,.legacy-settings,.expense-panel{color:#26354b}.panel,.kpi,.tax-bridge-card,.formula,.legacy-settings,.expense-panel{background:#fff;border-color:#e0e6ee}.kpi.primary{background:#f6f8ff}.kpi span,.metric span,.muted,.panel-title p,.decision-box p,.empty-state p{color:#66758a}.kpi strong,.metric strong,.panel h2{color:#1e2c42}.metric,.cost-table th,.cost-table td,.expense-row{border-color:#e5eaf0}.cost-table th{background:#f6f8fb;color:#5f6f86}.cost-table td{background:#fff}.cost-table tbody tr:hover td{background:#fafbff}.text-input,.cost-input,.field input,.field select,.expense-form input,.expense-form select,textarea{background:#fff;color:#26354b;border-color:#cfd8e4}.wide.secondary{background:#f4f6fa;color:#34465e;border-color:#d5dde8}.formula{color:#2b3c55}.tax-bridge-card.total{background:#edf5ff}.drr-breakdown,.drr-detail-row td{background:#f9fbfd!important}.drr-source-grid>div,.drr-formulas>div,.drr-econ-grid>div{background:#fff!important;border-color:#dfe6ee!important;color:#2d3d54!important}.legacy-settings{margin:12px 0;padding:13px 16px;border:1px solid #e0e6ee;border-radius:12px}.legacy-settings>summary{cursor:pointer;color:#63738a;font-weight:700}.legacy-expenses{opacity:.88}
.v11-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 10px}.v11-form .field{margin-bottom:10px}.v11-form .full,.v11-form .wide{grid-column:1/-1}.policy-history,.v11-expenses{margin-top:12px}.policy-row,.v11-expense-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:11px 0;border-top:1px solid #e6eaf0}.policy-row small,.v11-expense-row small{display:block;margin-top:3px;color:#7d899a}.policy-row button,.v11-expense-row button{border:0;border-radius:7px;padding:6px 9px;color:#a14650;background:#fff1f2;cursor:pointer}.v11-expense-row{grid-template-columns:minmax(170px,1.2fr) 1fr auto auto}.v11-expense-row>div:last-child{display:flex;gap:5px}.status-pill.warn{background:#fff6df;border-color:#efd9a1;color:#966511}.status-pill.good{background:#eaf8f1;border-color:#ccebdc;color:#147b57}
.cost-product-image{display:block;width:42px;height:46px;object-fit:contain;border:1px solid #e8ecf1;border-radius:8px;background:#fff}.cost-product-image.placeholder{display:grid;place-items:center;color:#abb6c5;background:#f6f8fa}.cost-row-missing td{background:#fffaf0}.cost-row-missing .cost-input{border-color:#d7a74b;background:#fffdf8}.file-action{display:block;margin-top:9px;padding:10px 12px;border:1px solid #d8e0eb;border-radius:9px;background:#f7f9fc;color:#455872;text-align:center;font-weight:700;cursor:pointer}.cost-history{margin-top:15px}.cost-history summary{cursor:pointer;color:#536783;font-weight:700}.cost-history-row{grid-template-columns:.8fr 1fr 1.4fr}
.inventory-summary-grid{display:grid;grid-template-columns:1fr 1fr minmax(250px,.7fr);gap:12px;margin-bottom:12px}.inventory-summary{display:flex;flex-direction:column;min-height:120px}.inventory-summary>span{color:#6a788d;font-size:11px}.inventory-summary>strong{margin:12px 0 6px;font-size:29px;color:#20304a}.inventory-summary.ozon{border-top:3px solid #5d75e8}.inventory-summary.own{border-top:3px solid #38a777}.inventory-connection .metric{padding-top:0}.inventory-table{min-width:1500px}.inventory-table td:nth-child(n+3){text-align:right}.own-stock-panel{margin-top:12px}.own-stock-editor{width:110px;padding:8px;border:1px solid #cfd8e4;border-radius:8px;text-align:right}.table-actions{display:flex;align-items:flex-start;gap:8px}.segmented{display:flex;padding:3px;border:1px solid #dfe5ed;border-radius:9px;background:#f5f7fa}.segmented button{border:0;border-radius:6px;background:transparent;color:#65758a;padding:6px 9px;font-size:10px;cursor:pointer}.segmented button.active{background:#fff;color:#3f58b4;box-shadow:0 1px 4px #27375217}.column-picker{position:relative}.column-picker summary{cursor:pointer;padding:7px 9px;border:1px solid #dfe5ed;border-radius:8px;color:#64738a;font-size:10px}.column-picker p{position:absolute;right:0;top:31px;z-index:3;width:260px;padding:12px;border:1px solid #dfe5ed;border-radius:9px;background:#fff;box-shadow:0 12px 28px #2436501c}
@media(max-width:1200px){.owner-kpi-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.finance-chain-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.inventory-summary-grid{grid-template-columns:1fr 1fr}.inventory-connection{grid-column:1/-1}}
@media(max-width:800px){.finance-chain-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.finance-unit-link{align-items:flex-start;flex-direction:column}.tax-policy-layout{grid-template-columns:1fr}.v11-expense-row{grid-template-columns:1fr}.inventory-summary-grid{grid-template-columns:1fr}.inventory-connection{grid-column:auto}.panel-title{flex-wrap:wrap}.table-actions{width:100%;justify-content:space-between}}
@media(max-width:520px){.owner-kpi-strip,.finance-chain-grid{grid-template-columns:1fr}.v11-form{grid-template-columns:1fr}.v11-form .full,.v11-form .wide{grid-column:auto}}

/* TASK 025.2: calm default advertising view; technical funnel stays optional. */
.column-picker label{display:block;position:absolute;right:0;top:31px;z-index:4;width:260px;padding:11px 12px 8px;border:1px solid #dfe5ed;border-bottom:0;border-radius:9px 9px 0 0;background:#fff;color:#35445b;font-size:11px;font-weight:700}
.column-picker label+p{top:63px;margin:0;border-top:0;border-radius:0 0 9px 9px}
.perf-table:not(.all-columns) th:nth-child(n+10):nth-child(-n+21),.perf-table:not(.all-columns) td:nth-child(n+10):nth-child(-n+21){display:none}
.owner-ad-table{min-width:1320px}.owner-ad-table th:nth-child(n+3),.owner-ad-table td:nth-child(n+3){text-align:right}.owner-ad-table .drr-detail-row td{display:table-cell!important;text-align:left}
.chart-metric-tabs{display:flex;gap:3px;flex-wrap:wrap;padding:3px;border:1px solid #e2e7ef;border-radius:9px;background:#f6f8fb}.chart-metric-tabs button{border:0;border-radius:6px;background:transparent;color:#758299;padding:6px 8px;font-size:9px;cursor:pointer}.chart-metric-tabs button.active{background:#fff;color:#4f66b3;box-shadow:0 1px 4px #27375217}.dash-chart-tooltip{position:absolute;z-index:5;width:275px;padding:11px 12px;border:1px solid #dce3ee;border-radius:10px;background:#fff;box-shadow:0 12px 30px #24365028;pointer-events:none}.dash-chart-tooltip>strong{display:block;margin-bottom:8px;color:#26364d;font-size:11px}.dash-chart-tooltip>div{display:grid;grid-template-columns:1fr auto;gap:4px 10px}.dash-chart-tooltip span{color:#8490a2;font-size:9px}.dash-chart-tooltip b{color:#46566c;font-size:9px;text-align:right}.dash-chart-tooltip.hidden{display:none}

/* TASK 025.3 — common readable work surfaces. The navigation intentionally stays dark. */
:root{--work-surface:var(--surface,#fff);--work-surface-soft:var(--surface-soft,#f8fafc);--work-ink:var(--ink,#142033);--work-muted:var(--muted,#718096);--work-line:var(--line,#e5eaf1);--work-accent:#315ed6;--work-warning-bg:#fff8e8;--work-warning-ink:#795819}
.drr-detail-row td,.drr-breakdown,.drr-source-grid>div,.drr-econ-grid>div,.drr-formulas>div{background:var(--work-surface-soft)!important;border-color:var(--work-line)!important;color:var(--work-ink)!important}.drr-breakdown-head strong,.drr-source-grid b,.drr-econ-grid strong{color:var(--work-ink)!important}.status-box{background:var(--work-surface-soft)!important;border-color:var(--work-line)!important;color:var(--work-ink)!important}.status-box.warn{background:var(--work-warning-bg)!important;border-color:#eedaa5!important;color:var(--work-warning-ink)!important}
.drr-source-grid span,.drr-econ-grid strong{color:var(--work-ink)!important}.drr-source-grid small,.drr-econ-grid span,.drr-breakdown-head span{color:var(--work-muted)!important}.drr-formulas b{color:#52637b!important}.drr-formulas code{color:#26374e!important;background:transparent!important;border:0!important}.drr-explain-note{background:var(--work-warning-bg)!important;border-color:#eedaa5!important;color:var(--work-warning-ink)!important}.drr-action-head,.drr-action-cell{background:var(--work-surface)!important;box-shadow:-8px 0 12px rgba(31,48,74,.08)!important}.drr-action-cell .drr-explain-btn{background:#edf2ff;color:#3558bd}.ads-econ-strip,.ads-data-audit>div{background:var(--work-surface-soft)!important;border-color:var(--work-line)!important;color:var(--work-ink)!important}.ads-econ-field{color:var(--work-muted)!important}.ads-econ-field input{background:var(--work-surface)!important;color:var(--work-ink)!important;border-color:#cfd8e4!important}
.unit-table-title{color:var(--work-ink)!important}.unit-table-wrap{background:var(--work-surface);border-color:var(--work-line)!important}.unit-economics-table th,.unit-economics-table th:first-child,.unit-economics-table th:nth-last-child(-n+3){background:#f4f7fb!important;color:#55667e!important;border-color:var(--work-line)!important}.unit-economics-table td,.unit-economics-table td:first-child{background:var(--work-surface)!important;color:var(--work-ink)!important;border-color:var(--work-line)!important}.unit-economics-table tbody tr:hover td{background:#f8faff!important}
.unit-economics-table .unit-article strong{color:var(--work-ink)!important}.unit-economics-table .unit-article small,.unit-economics-table .money-pct small{color:var(--work-muted)!important}.unit-economics-table .unit-profit-good{color:#147b57!important}.unit-economics-table .unit-profit-bad{color:#b6424f!important}
.costs-tabs{display:inline-flex;gap:4px;margin:0 0 12px;padding:4px;border:1px solid var(--work-line);border-radius:11px;background:#eef2f7}.costs-tabs button{border:0;border-radius:8px;padding:9px 13px;background:transparent;color:#64748a;font-weight:750;cursor:pointer}.costs-tabs button.active{background:var(--work-surface);color:var(--work-accent);box-shadow:0 2px 7px rgba(31,48,74,.1)}.costs-tab-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:14px}.costs-tab-head h2{margin:0 0 5px}.costs-tab-head p{margin:0;color:var(--work-muted);font-size:12px}
.inventory-filters{display:grid;grid-template-columns:minmax(220px,1fr) minmax(210px,.75fr) minmax(210px,.75fr) auto;align-items:end;gap:10px;margin:14px 0;padding:12px;border:1px solid var(--work-line);border-radius:11px;background:var(--work-surface-soft)}.inventory-filters>label{display:grid;gap:6px;color:var(--work-muted);font-size:11px}.inventory-filters input{width:100%;min-width:0;padding:9px 10px;border:1px solid #cfd8e4;border-radius:8px;background:var(--work-surface);color:var(--work-ink)}.inventory-multiselect{position:relative}.inventory-multiselect summary{list-style:none;min-height:38px;padding:9px 32px 9px 10px;border:1px solid #cfd8e4;border-radius:8px;background:var(--work-surface);color:#3c4e67;font-size:12px;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.inventory-multiselect summary::-webkit-details-marker{display:none}.inventory-multiselect summary::after{content:"⌄";position:absolute;right:11px;top:8px;color:#77869a}.inventory-multiselect[open]{z-index:8}.inventory-multiselect[open] summary{border-color:#96aae0}.inventory-multiselect>input,.inventory-multiselect>div{position:absolute;left:0;right:0;background:var(--work-surface);border-left:1px solid #cfd8e4;border-right:1px solid #cfd8e4}.inventory-multiselect>.inventory-picker-controls{top:41px;display:flex;gap:6px;padding:7px 8px;border-top:1px solid #cfd8e4;overflow:visible}.inventory-picker-controls button{border:0;background:#eef3ff;color:#4260b5;border-radius:6px;padding:5px 7px;font-size:10px;cursor:pointer}.inventory-multiselect>input{top:76px;border-radius:0;padding-top:8px;padding-bottom:8px}.inventory-multiselect>div:last-child{top:112px;max-height:250px;overflow:auto;border-bottom:1px solid #cfd8e4;border-radius:0 0 8px 8px;box-shadow:0 12px 25px rgba(31,48,74,.14)}.inventory-multiselect>div:last-child label{display:flex;align-items:center;gap:8px;padding:8px 10px;color:#41536b;font-size:11px;border-top:1px solid #edf0f4;cursor:pointer}.inventory-multiselect>div:last-child label:hover{background:#f5f8ff}.inventory-multiselect>div input{width:auto}.stock-identity{min-width:150px;white-space:nowrap}.stock-identity strong,.stock-identity small{display:block;white-space:nowrap}.stock-identity small{margin-top:3px;color:var(--work-muted);font-size:10px;font-weight:500}.stock-no-detail{display:inline-block;color:var(--work-muted);font-size:10px;line-height:1.25;cursor:help;white-space:normal}

/* TASK 026.1 — единые рабочие поверхности: read-only означает доступные
   данные, а не визуально отключённый интерфейс. */
.price-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:14px 0}.price-summary{display:flex;flex-direction:column;gap:8px;min-height:112px;border-top:3px solid #6c7ce8}.price-summary>span{font-size:11px;color:var(--work-muted)}.price-summary>strong{font-size:25px;color:var(--work-ink)}.price-summary>small{color:var(--work-muted)}.prices-table{min-width:2100px}.prices-table th,.prices-table td{vertical-align:top}.prices-table td:nth-child(n+5):nth-child(-n+14){text-align:right;white-space:nowrap}.price-product-name,.stock-product-name{min-width:220px;max-width:320px;white-space:normal!important;line-height:1.35}.cell-note{display:block;margin-top:4px;max-width:220px;color:var(--work-muted);font-size:10px;white-space:normal}.prices-methodology{margin-top:12px}.prices-methodology>summary{cursor:pointer;font-weight:700;color:var(--work-ink)}.prices-methodology p{color:var(--work-muted)}.own-unit-expenses{margin-top:12px}.own-expense-inline-summary{display:flex;justify-content:space-between;gap:12px;margin-top:12px;padding:12px;border-radius:9px;background:var(--work-surface-soft);color:var(--work-muted)}.own-expense-inline-summary strong{color:var(--work-ink)}.tax-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
.price-history{margin-top:8px;min-width:245px;text-align:left}.price-history>summary{cursor:pointer;color:var(--work-accent);font-weight:700;font-size:10px}.price-history-list{display:grid;gap:6px;margin-top:8px;max-height:230px;overflow:auto}.price-history-list>div{display:grid;gap:2px;padding:7px;border:1px solid var(--work-line);border-radius:7px;background:var(--work-surface-soft);font-size:10px;color:var(--work-ink)}.price-history-list time{color:var(--work-muted)}.om-cycle-detail{display:flex;flex-wrap:wrap;gap:9px;margin:10px 0;padding:10px 12px;border:1px solid var(--work-line);border-radius:10px;background:var(--work-surface);color:var(--work-ink)}.om-cycle-detail span{font-size:11px}.om-cycle-detail span+span:before{content:'·';margin-right:9px;color:var(--work-muted)}
.sync-center{position:fixed;right:24px;bottom:22px;z-index:50;width:min(390px,calc(100vw - 32px));border:1px solid #d9e0eb;border-radius:14px;background:#fff;box-shadow:0 18px 48px rgba(24,39,67,.2);overflow:hidden;color:#233249}.sync-center.hidden{display:none}.sync-center-head{display:flex;width:100%;align-items:center;justify-content:space-between;border:0;background:#fff;color:#233249;padding:13px 15px;cursor:pointer}.sync-center-head>span:first-child{display:flex;align-items:center;gap:9px}.sync-center-dot{width:9px;height:9px;border-radius:50%;background:#5576e6;box-shadow:0 0 0 5px rgba(85,118,230,.13);animation:syncPulse 1.5s infinite}.sync-center-body{padding:0 15px 14px}.sync-center-body p{margin:0 0 9px;font-size:12px;color:#56667d}.sync-center-track{height:6px;border-radius:9px;background:#edf0f5;overflow:hidden}.sync-center-track span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#637cea,#795ee4);transition:width .35s ease}.sync-center-body small{display:block;margin-top:8px;color:#78869a}.sync-center-body.hidden{display:none}@keyframes syncPulse{50%{transform:scale(.75);opacity:.6}}
.ads-data-audit>div,.drr-breakdown,.drr-source-grid>div,.drr-formulas>div,.drr-econ-grid>div,.drr-detail-row td,.owner-ad-table td,.owner-ad-table th{color:var(--work-ink)!important}.ads-data-audit>div,.drr-source-grid>div,.drr-formulas>div,.drr-econ-grid>div,.drr-detail-row td{background:var(--work-surface)!important;border-color:var(--work-line)!important}.ads-data-audit strong,.ads-data-audit b,.drr-source-grid strong,.drr-source-grid b,.drr-formulas strong,.drr-formulas b,.drr-econ-grid strong,.drr-econ-grid b{color:var(--work-ink)!important}.ads-data-audit span,.drr-source-grid span,.drr-formulas span,.drr-econ-grid span{color:var(--work-muted)!important}.read-only,.readonly,[aria-readonly="true"]{opacity:1}
@media(max-width:1100px){.price-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.price-summary-grid{grid-template-columns:1fr}.sync-center{right:16px;bottom:16px}}
@media(max-width:1100px){.inventory-filters{grid-template-columns:1fr 1fr}.inventory-filters>.status-pill{align-self:center}}@media(max-width:650px){.inventory-filters{grid-template-columns:1fr}.costs-tab-head{flex-direction:column}.costs-tabs{display:flex}.costs-tabs button{flex:1}}
