/* Owner-facing presentation. Financial calculations stay in their source modules. */
:root{--dash-ink:#20293a;--dash-muted:#697588;--dash-accent:#7043c2;--dash-line:#e4e7ed;--dash-green:#21725a;--dash-red:#bb4b42}
body{background:#f5f6f9;color:var(--dash-ink)}
body>header{height:72px;padding:0 32px;background:#192638}
body>header .mark{width:40px;height:40px;border-radius:11px;font-size:21px}
main{max-width:1660px;padding:24px 32px 60px}
.workspace-identity{margin:0 0 18px;gap:16px}.dashboard-account{display:flex;align-items:center;gap:11px;min-width:0}.dashboard-account p{font-size:13px;font-weight:650;overflow-wrap:anywhere}.dashboard-market{display:grid;place-items:center;background:#efe8fb;color:#7a33bb;border-radius:8px;width:35px;height:35px;flex-shrink:0;font-size:12px;font-weight:800}
.workspace-readonly{font-size:10px;padding:6px 10px;white-space:nowrap;color:#617082;background:#fff;border-color:var(--dash-line)}
.dashboard-periods{display:flex;gap:5px;align-items:center;margin:0 0 10px}.dashboard-periods button{background:transparent;color:#667185;padding:8px 18px;min-height:40px;border:1px solid transparent;font-size:12px}.dashboard-periods button.active{background:#ede6fa;color:#6236ae;border-color:#dfd0f3}.dashboard-periods button:hover{background:#eeeaf5}
.workspace-context-disclosure{margin-bottom:22px}.workspace-context-disclosure>summary{display:block;width:fit-content;max-width:100%;padding:9px 13px;border:1px solid var(--dash-line);border-radius:9px;background:white;color:#566379;font-size:12px;font-weight:550;cursor:pointer;list-style:none;line-height:1.6}.workspace-context-disclosure>summary:after{content:' ▾';color:var(--dash-accent)}.workspace-context-disclosure[open]>summary:after{content:' ▴'}.workspace-context-disclosure[open] .workspace-context{margin-top:10px}.workspace-context-disclosure>summary::-webkit-details-marker{display:none}.workspace-context{border-radius:13px;padding:20px;grid-template-columns:repeat(4,minmax(0,1fr))}.workspace-context label{font-size:12px}.workspace-context input,.workspace-context select{font-size:14px;height:44px}.workspace-context label:has(#context-group){grid-column:span 2}.workspace-context button{font-size:12px;min-height:44px}.workspace-scope{font-size:11px;line-height:1.7;margin:12px 2px 0}
.workspace-layout{grid-template-columns:195px minmax(0,1fr);gap:26px}.workspace-sidebar{top:20px}.workspace-nav{background:transparent;border:0;padding:0;gap:5px}.workspace-nav button{font-size:13px;padding:13px 12px;min-height:46px;gap:10px;border-radius:10px;color:#627086}.workspace-nav .nav-number{font-size:11px;opacity:.7}.workspace-nav button.active{background:#ebe4f8;color:#693cb5;box-shadow:none}.workspace-nav button:hover{background:#eeedf4}.workspace-selection{border-top:1px solid var(--dash-line);margin-top:20px;padding:20px 12px}.workspace-selection small{font-size:11px}.workspace-selection strong{font-size:12px}.workspace-page-head{margin:0 0 19px;align-items:start}.workspace-page-head h2{font-size:25px;letter-spacing:-.6px;margin:0 0 5px}.workspace-page-head .hint{font-size:12px}.workspace-page-head button{min-height:40px;padding:8px 13px;font-size:12px}.workspace-subnav{gap:7px;overflow-x:auto;flex-wrap:nowrap;padding-bottom:4px}.workspace-subnav button{white-space:nowrap;font-size:12px;min-height:40px}.workspace-panel{border-radius:14px;padding:22px}.workspace-panel h3{font-size:17px}.workspace-panel .hint{font-size:12px;line-height:1.65}.workspace-panel .ghost{font-size:12px;min-height:40px}
.dashboard-overview{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));grid-template-areas:'hero hero hero hero hero kpis kpis kpis kpis kpis kpis kpis' 'quality quality quality quality quality quality quality quality quality quality quality quality' 'trend trend trend trend trend trend trend trend tasks tasks tasks tasks' 'costs costs costs costs costs costs factors factors factors factors factors factors' 'products products products products products products products products products products products products';gap:18px;align-items:start;margin-bottom:22px}
.dashboard-overview>.panel{margin:0;min-width:0}.dashboard-overview .owner-hero{grid-area:hero;align-self:stretch;background:#20364a;border-color:#20364a;border-radius:16px;padding:25px;position:relative;overflow:hidden;color:white;display:flex;flex-direction:column;justify-content:center}
.dashboard-eyebrow{font-size:10px;font-weight:750;letter-spacing:1px;color:#d9e4ed}.dashboard-estimate{font-size:10px;color:#b9ccdc;margin-top:7px}.dashboard-overview .owner-profit{font-size:clamp(28px,3.1vw,44px);padding:16px 0 7px;color:#d4ee90;letter-spacing:-1px;line-height:1.15;margin:0;min-height:0;white-space:normal;overflow-wrap:anywhere}.dashboard-overview .owner-profit.is-negative{color:#ffb4a8}.dashboard-hero-change{font-size:11px;color:#d4e0eb;margin:3px 0 16px;line-height:1.5}.dashboard-hero-note{font-size:12px;color:#b9c9d8;margin:0 0 15px;line-height:1.7}.dashboard-hero-actions{display:flex;flex-wrap:wrap;gap:5px;align-items:center}.dashboard-hero-link,.dashboard-hero-actions .ghost{font-size:11px;min-height:37px;padding:8px 0;margin:0;text-align:left;background:transparent;color:#e8f1f8}.dashboard-hero-link{border-bottom:1px solid #9db1c05c;border-radius:0}.dashboard-hero-actions .ghost{color:#b9c9d8}.dashboard-hero-coverage{font-size:10px!important;color:#b9c9d8!important;margin-top:16px;line-height:1.65}
.dashboard-overview .dashboard-kpis{grid-area:kpis;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-self:stretch}.dashboard-kpi{position:relative;text-align:left;padding:18px 20px!important;border:1px solid var(--dash-line);border-radius:14px;background:#fff;display:flex;flex-direction:column;align-items:start;gap:7px;min-width:0;color:var(--dash-ink);font-weight:400;transition:border-color .15s,box-shadow .15s}.dashboard-kpi:hover{border-color:#bea4e1;box-shadow:0 4px 14px #2b1a5510}.dashboard-kpi-label{font-size:12px;font-weight:550;color:#626e82}.dashboard-kpi>strong{font-size:clamp(22px,2vw,30px);letter-spacing:-.75px;line-height:1.2;font-weight:700;max-width:100%;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.dashboard-kpi>small{font-size:11px;color:#788397;line-height:1.5}.dashboard-kpi-more{font-size:10px;color:#7751b5;margin-top:auto}.dashboard-delta{font-size:10px;line-height:1.5}.good{color:var(--dash-green)}.bad{color:var(--dash-red)}.neutral{color:var(--dash-muted)}
.dashboard-overview .dashboard-quality{grid-area:quality;padding:12px 17px;border:1px solid #e3dfd4;background:#fcfbf7;border-radius:11px}.dashboard-quality summary{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:12px;font-weight:550;cursor:pointer;list-style:none}.dashboard-quality summary::-webkit-details-marker{display:none}.dashboard-quality summary:before{content:'';width:7px;height:7px;background:#a68b4d;border-radius:50%;flex-shrink:0}.dashboard-quality-label{flex:1}.dashboard-quality summary small{font-size:10px;font-weight:400;color:#887957}.dashboard-quality[open]>summary{margin-bottom:14px}.dashboard-quality .hint{font-size:12px}.dashboard-quality .ghost{font-size:12px}
.dashboard-trend{grid-area:trend;padding:23px;border-radius:14px;min-width:0}.dashboard-section-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:16px}.dashboard-section-head h3{font-size:17px;margin:0}.dashboard-section-head select{width:auto;min-height:36px;height:36px;font-size:11px;margin:0;padding:5px 9px;background:#f9f9fc}.dashboard-segments{display:flex;align-items:center;gap:4px;flex-wrap:wrap}.dashboard-segments button{background:#f4f3f8;border:1px solid transparent;padding:7px 13px;border-radius:8px;color:#6d7386;font-size:11px;min-height:36px}.dashboard-segments button.active{color:#6538ad;background:#ece4f9;border-color:#ddcdee}.dashboard-chart-detail{display:flex;align-items:center;gap:8px 18px;flex-wrap:wrap;min-height:86px;padding:18px 0 12px}.dashboard-chart-detail>div{display:flex;flex-direction:column;gap:3px;flex:1}.dashboard-chart-detail span{font-size:11px;color:#7b8494;text-transform:capitalize}.dashboard-chart-detail strong{font-size:25px;letter-spacing:-.6px;color:#273148;font-variant-numeric:tabular-nums}.dashboard-chart-detail small{font-size:10px;color:#7a8495;max-width:165px}.dashboard-chart-detail .ghost{padding:4px 0;font-size:11px;min-height:30px}.dashboard-chart{overflow-x:auto;overflow-y:hidden;padding:8px 3px 34px;margin-bottom:13px;overscroll-behavior-x:contain}.dashboard-plot{height:180px;display:flex;gap:9px;position:relative;background:repeating-linear-gradient(to top,transparent 0,transparent calc(25% - 1px),#edf0f5 calc(25% - 1px),#edf0f5 25%)}.dashboard-zero{position:absolute;height:1px;background:#bdc7d5;left:0;right:0}.dashboard-bar{position:relative;flex:1;min-width:30px;max-width:100%;padding:0;border:0;border-radius:4px 4px 0 0;height:100%;background:transparent;min-height:0}.dashboard-bar i{position:absolute;left:17%;right:17%;background:#b9a0e4;border-radius:5px 5px 1px 1px;pointer-events:none;min-height:0}.dashboard-bar.selected i,.dashboard-bar:hover i{background:#7646bd}.dashboard-bar.negative i{background:#d78b83;border-radius:1px 1px 5px 5px}.dashboard-bar.negative.selected i{background:#b54b45}.dashboard-bar.incomplete i{background:repeating-linear-gradient(135deg,#b9a0e4,#b9a0e4 5px,#dfd1f1 5px,#dfd1f1 10px)}.dashboard-bar-label{position:absolute;top:calc(100% + 9px);left:50%;transform:translateX(-50%);font-size:10px;color:#81899a;white-space:nowrap;font-weight:400}.dashboard-bar.selected .dashboard-bar-label{color:#6134a8;font-weight:700}.dashboard-bar-missing{color:#aab1bd;font-size:18px;position:absolute;bottom:8px;left:0;right:0}.dashboard-trend>.hint{font-size:10px;line-height:1.7;margin:0;color:#7c8798}
.dashboard-overview .owner-tasks{grid-area:tasks;padding:21px}.dashboard-overview .owner-tasks h3{font-size:17px}.dashboard-overview .owner-tasks .workspace-task-line{display:block;padding:15px 0}.dashboard-overview .owner-tasks .workspace-task-line>strong{font-size:12px;line-height:1.5;display:block}.dashboard-overview .owner-tasks .workspace-task-line>p{font-size:11px;line-height:1.6;margin-top:6px!important}.dashboard-overview .owner-tasks .workspace-task-line>small,.dashboard-overview .owner-tasks .workspace-task-line>p:last-of-type{display:none}.dashboard-overview .owner-tasks .workspace-task-line button{margin:6px 0 0;padding:6px 0;min-height:32px}.dashboard-overview .owner-tasks>.hint{font-size:10px}.dashboard-overview .owner-tasks>.ghost{padding:6px 0}
.dashboard-overview .dashboard-costs{grid-area:costs}.dashboard-overview #owner-factors{grid-area:factors}.dashboard-overview>.dashboard-products{grid-area:products}.dashboard-money-rows{display:grid;gap:3px;margin:16px 0}.dashboard-money-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 15px;padding:12px 0;width:100%;font-size:12px;line-height:1.5;background:transparent;border:0;border-radius:0;text-align:left;font-weight:400;color:var(--dash-ink)}button.dashboard-money-row:hover{color:#7043c2}.dashboard-money-row strong{white-space:nowrap;font-size:12px;font-weight:650;font-variant-numeric:tabular-nums}.dashboard-money-track{grid-column:1/-1;height:5px;display:block;border-radius:4px;background:#f0f1f5;overflow:hidden}.dashboard-money-track i{height:100%;display:block;border-radius:4px;background:#73a998}.dashboard-money-track i.negative{background:#b9a3da}.dashboard-change-total{font-size:26px;line-height:1.5}.dashboard-factors details{margin-top:14px}.dashboard-factors summary{font-size:12px;cursor:pointer}.dashboard-empty-title{font-size:14px;font-weight:600;color:#687387;margin:20px 0 8px}.dashboard-products .dashboard-product-line{display:flex;justify-content:space-between;align-items:center;gap:22px;border-top:1px solid #ececf2;padding:14px 0}.dashboard-product-line>span{font-size:12px}.dashboard-product-line .product-link{max-width:65%;min-width:0}.dashboard-advanced{margin-top:20px;padding:20px 23px}.dashboard-advanced>summary{font-size:13px;font-weight:600;cursor:pointer;color:#64718a}.dashboard-advanced[open]>summary{margin-bottom:20px}
.dashboard-dialog{padding:24px;width:min(660px,calc(100vw - 32px));max-height:85dvh;border-radius:17px;border-color:#e4e6ec;box-shadow:0 30px 120px #131c353b}.dashboard-dialog-head{position:sticky;top:-24px;background:white;margin:-24px -24px 20px;padding:18px 24px;display:flex;align-items:center;gap:20px;border-bottom:1px solid #eceef3;z-index:2}.dashboard-dialog h2{font-size:21px;flex:1;line-height:1.4;margin:0}.dashboard-close{font-size:27px;font-weight:400;width:40px;min-width:40px;height:40px;min-height:40px;padding:0;background:#f2f3f7;color:#626c7c;display:grid;place-items:center}.dashboard-dialog p{font-size:14px;line-height:1.7}.dashboard-dialog .hint{font-size:12px}.dashboard-detail-total{display:block;font-size:25px!important;font-weight:700;color:#28364c;padding:8px 0;font-variant-numeric:tabular-nums}.dashboard-dialog>.ghost{display:block;text-align:left;min-height:44px}.dashboard-dialog .dashboard-money-row{font-size:12px;padding:10px 0}.dashboard-dialog .dashboard-money-row strong{font-size:13px}.dashboard-dialog .owner-factor-sku{padding:15px 0;border-bottom:1px solid #eceef3}.dashboard-dialog::backdrop{background:#14213585;backdrop-filter:blur(3px)}
.workspace-toolbar{flex-wrap:wrap;gap:12px;border-radius:12px}.workspace-toolbar input,.workspace-toolbar select{font-size:14px}.workspace-toolbar .dashboard-segments{margin-left:auto}.dashboard-product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px;margin:14px 0}.dashboard-product-card{padding:20px;border:1px solid var(--dash-line);border-radius:13px;background:white;min-width:0;display:flex;flex-direction:column;align-items:start}.dashboard-product-card>.product-link{max-width:100%;min-width:0;font-size:14px}.dashboard-product-card>small{margin-top:6px;font-size:11px}.dashboard-product-card dl{width:100%;font-size:12px;margin:18px 0}.dashboard-product-card dl>div{display:flex;justify-content:space-between;gap:10px;padding:5px 0}.dashboard-product-card dt{color:#7a8597}.dashboard-product-card dd{margin:0;font-weight:600}.dashboard-product-result{font-size:24px;line-height:1.6;letter-spacing:-.6px}.dashboard-product-card>.ghost{margin-top:auto;padding-left:0;min-height:40px}.dashboard-product-card>.hint{font-size:10px}.dashboard-product-grid+.hint{font-size:11px}.workspace-content .product-link:focus-visible{outline:3px solid #9e7bcf}.workspace-content table th{position:sticky;top:0;z-index:1}.workspace-content td{line-height:1.6}#product-matrix{padding:0;border:0;background:transparent}#product-matrix>p{padding:0 3px}#product-matrix>.table-wrap{background:white;border:1px solid var(--dash-line);border-radius:13px}#product-matrix table{min-width:980px}.workspace-metrics{gap:13px}.workspace-metric{border-radius:13px}.workspace-metric>span{font-size:12px}.workspace-metric small{font-size:11px}.workspace-metric strong{font-size:25px}
.dashboard-mobile-nav{display:none}button:focus-visible,summary:focus-visible,select:focus-visible,.table-wrap:focus-visible{outline:3px solid #a589d0;outline-offset:3px}.busy .workspace-page-head:after{content:'Загрузка…';align-self:center;font-size:11px;color:#7855b2}.busy .workspace-page-head button{opacity:.55}#message{position:sticky;top:8px;z-index:45;box-shadow:0 5px 20px #24345510}.dashboard-money-row,.dashboard-kpi,.dashboard-chart-detail{font-variant-numeric:tabular-nums}
@media(min-width:1450px){.workspace-context-disclosure{margin-top:-49px;margin-left:405px;min-height:39px}.workspace-context-disclosure[open]{margin-left:0;margin-top:0}.dashboard-overview .owner-profit{font-size:46px}}
@media(max-width:1150px){main{padding:22px}.workspace-layout{grid-template-columns:165px minmax(0,1fr);gap:20px}.workspace-nav button{font-size:12px}.dashboard-overview{grid-template-areas:'hero hero hero hero hero hero kpis kpis kpis kpis kpis kpis' 'quality quality quality quality quality quality quality quality quality quality quality quality' 'trend trend trend trend trend trend trend trend trend trend trend trend' 'tasks tasks tasks tasks tasks tasks costs costs costs costs costs costs' 'factors factors factors factors factors factors products products products products products products';gap:14px}.dashboard-overview .owner-hero{padding:21px}.dashboard-kpi{padding:15px!important}.dashboard-kpi>strong{font-size:23px}.dashboard-overview .owner-profit{font-size:34px}.dashboard-hero-actions{display:block}.dashboard-hero-actions .ghost{display:block}.dashboard-product-line{align-items:start!important;flex-direction:column;gap:8px!important}.dashboard-product-line .product-link{max-width:100%}.workspace-toolbar .dashboard-segments{margin-left:0}}
@media(max-width:820px){body>header{height:62px;padding:0 16px}.brand{font-size:13px}.brand small{font-size:10px}.private{display:none}body>header #logout{margin-left:auto;font-size:12px;min-height:42px;padding:8px}body>header .mark{width:35px;height:35px;font-size:18px}main{padding:16px 14px 110px}.workspace-layout{display:block}.workspace-sidebar{display:none}.workspace-identity{margin-bottom:14px}.workspace-readonly{display:none}.dashboard-account p{font-size:11px}.dashboard-market{width:29px;height:29px;font-size:10px}.dashboard-periods{gap:3px;margin-bottom:10px}.dashboard-periods button{flex:1;padding:7px 10px;font-size:12px}.workspace-context-disclosure{margin-bottom:20px}.workspace-context-disclosure>summary{width:100%;font-size:11px;padding:10px 12px}.workspace-context{grid-template-columns:repeat(2,minmax(0,1fr));padding:14px;gap:13px}.workspace-context input,.workspace-context select{font-size:16px;padding:8px;height:44px}.workspace-context label:has(#context-entity){grid-column:auto}.workspace-context label:has(#context-group){grid-column:1/-1}.workspace-page-head h2{font-size:23px}.workspace-page-head .hint{font-size:11px;line-height:1.6}.workspace-page-head{margin-bottom:16px;gap:10px}.workspace-page-head button{font-size:10px;max-width:90px;white-space:normal;min-height:40px}.workspace-subnav{margin-bottom:15px}.workspace-subnav button{font-size:11px}.dashboard-overview{display:flex;flex-direction:column;gap:13px}.dashboard-overview>*{width:100%;min-width:0}.dashboard-overview .owner-hero{order:0;padding:22px}.dashboard-overview .dashboard-kpis{order:1;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.dashboard-overview .dashboard-quality{order:2}.dashboard-overview .dashboard-trend{order:3}.dashboard-overview .owner-tasks{order:4}.dashboard-overview .dashboard-costs{order:5}.dashboard-overview #owner-factors{order:6}.dashboard-overview .dashboard-products{order:7}.dashboard-overview .owner-profit{font-size:39px;padding:15px 0 6px}.dashboard-hero-change{margin:3px 0 12px;font-size:11px}.dashboard-hero-note{font-size:12px;margin-bottom:9px}.dashboard-hero-actions{display:flex}.dashboard-hero-actions .ghost{display:none}.dashboard-hero-coverage{font-size:10px!important;margin-top:10px}.dashboard-kpi{padding:16px!important;gap:8px;min-height:155px}.dashboard-kpi>strong{font-size:24px;letter-spacing:-.65px}.dashboard-kpi-label{font-size:11px}.dashboard-kpi>small{font-size:10px}.dashboard-quality{padding:12px!important}.dashboard-quality summary{font-size:11px;gap:8px;align-items:start}.dashboard-quality summary small{font-size:10px;max-width:95px;text-align:right}.dashboard-quality summary:before{margin-top:5px}.dashboard-section-head{align-items:start;gap:10px}.dashboard-section-head h3{font-size:16px;max-width:60%}.dashboard-section-head select{font-size:11px;min-height:40px}.dashboard-trend{padding:18px}.dashboard-segments{gap:4px}.dashboard-trend .dashboard-segments{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}.dashboard-segments button{font-size:10px;min-height:40px;padding:6px}.dashboard-chart-detail{min-height:92px}.dashboard-chart-detail strong{font-size:24px}.dashboard-chart-detail small{max-width:100px}.dashboard-plot{height:165px;gap:5px}.dashboard-trend>.hint{font-size:10px}.workspace-panel{padding:19px}.workspace-panel h3{font-size:17px}.dashboard-money-row{font-size:11px;gap:7px 10px}.dashboard-money-row strong{font-size:12px}.dashboard-dialog{width:calc(100vw - 16px);padding:20px;max-height:88dvh;border-radius:18px 18px 0 0;margin:auto auto 0}.dashboard-dialog-head{top:-20px;margin:-20px -20px 16px;padding:15px 20px}.dashboard-dialog h2{font-size:19px}.dashboard-dialog p{font-size:13px}.dashboard-dialog .dashboard-money-row{font-size:11px}.dashboard-dialog .dashboard-money-row strong{font-size:12px}.dashboard-detail-total{font-size:25px!important}.dashboard-advanced{padding:18px}.dashboard-advanced>summary{font-size:12px}.dashboard-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-product-card{padding:17px}.workspace-toolbar{padding:13px}.workspace-toolbar input,.workspace-toolbar select{font-size:16px;min-height:44px}.workspace-toolbar .dashboard-segments{margin-left:0;flex:1}.workspace-toolbar .dashboard-segments button{flex:1}.dashboard-mobile-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:fixed;bottom:0;left:0;right:0;z-index:40;background:#fffffff5;backdrop-filter:blur(14px);border-top:1px solid #e4e6ed;padding:6px 8px max(8px,env(safe-area-inset-bottom));box-shadow:0 -3px 20px #25324808}.dashboard-mobile-nav button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;background:transparent;color:#8990a0;font-size:10px;font-weight:550;border:0;border-radius:9px;padding:6px 3px;min-height:52px}.dashboard-nav-icon{font-size:21px;line-height:22px;font-weight:500}.dashboard-mobile-nav button.active{color:#7043c2;background:#f1ebfa}.workspace-content .table-wrap{overscroll-behavior-x:contain}.workspace-content .table-wrap td,.workspace-content .table-wrap th{font-size:12px}.workspace-scope{font-size:10px}.workspace-context-disclosure:not([open])+.workspace-scope{display:none}.dashboard-product-line .product-link{font-size:13px}.workspace-metric>span{font-size:11px}.workspace-metric small{font-size:10px}.workspace-metric strong{font-size:22px}.busy .workspace-page-head:after{display:none}}
@media(max-width:460px){.dashboard-product-grid{grid-template-columns:1fr}.dashboard-kpi>strong{font-size:21px}.dashboard-kpi{padding:14px!important}.dashboard-overview .owner-profit{font-size:35px}.workspace-page-head h2{font-size:22px}.dashboard-section-head select{max-width:128px}.dashboard-chart-detail{gap:8px}.dashboard-money-row>span:first-child{overflow-wrap:anywhere}.dashboard-dialog .dashboard-money-row{grid-template-columns:minmax(0,1fr) auto}.dashboard-dialog .dashboard-money-row strong{font-size:11px}.dashboard-product-card dl{margin:14px 0}.dashboard-product-card>.product-link{font-size:14px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}

/* Legible mobile labels and stable bar width, including a single selected week. */
.dashboard-bar i{left:50%;right:auto;transform:translateX(-50%);width:min(66%,48px)}
.dashboard-quality.is-ready{background:#f5faf8;border-color:#dcebe3}.dashboard-quality.is-ready summary:before{background:#45836c}.dashboard-quality.is-ready summary small{color:#648274}
@media(max-width:820px){.dashboard-kpi-label,.dashboard-kpi>small,.dashboard-hero-coverage,.dashboard-quality summary,.dashboard-quality summary small,.dashboard-chart-detail span,.dashboard-chart-detail small,.dashboard-trend>.hint,.dashboard-overview .owner-tasks>.hint,.dashboard-product-card>.hint{font-size:12px!important}.dashboard-hero-coverage{line-height:1.6}.dashboard-kpi-more,.dashboard-delta{font-size:11px}.dashboard-quality summary small{max-width:110px}.dashboard-chart-detail small{max-width:135px}.dashboard-overview .owner-tasks .workspace-task-line>p{font-size:12px}.dashboard-money-row,.dashboard-money-row strong{font-size:12px}.dashboard-kpi{min-height:150px}}

.product-link small{display:block;overflow-wrap:anywhere}
@media(max-width:820px){.workspace-toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.workspace-toolbar input{grid-column:1/-1;min-width:0;order:0}.workspace-toolbar select{grid-column:1/-1;width:100%;max-width:100%;min-width:0;order:1}.workspace-toolbar>.dashboard-segments{order:2;display:flex;flex-wrap:nowrap;margin:0}.workspace-toolbar>.ghost{order:3;white-space:normal;font-size:11px}.workspace-toolbar>.dashboard-segments button{padding:8px;font-size:11px}.dashboard-product-card>.product-link{line-height:1.6}.dashboard-product-card>.product-link small{font-size:11px}}
/* Business health: text and symbols carry status as well as colour. */
.dashboard-overview{grid-template-areas:'hero hero hero hero hero kpis kpis kpis kpis kpis kpis kpis' 'health health health health health health health health health health health health' 'quality quality quality quality quality quality quality quality quality quality quality quality' 'trend trend trend trend trend trend trend trend tasks tasks tasks tasks' 'costs costs costs costs costs costs factors factors factors factors factors factors' 'products products products products products products products products products products products products'}
.dashboard-overview>section.business-health{grid-area:health;padding:22px}.health-verdict{font-size:26px;letter-spacing:-.5px;line-height:1.25;margin:14px 0 6px}.health-subtitle{font-size:12px;line-height:1.5;color:#d7e4ec}.dashboard-overview .owner-hero[data-result=positive]{background:#173d35;border-color:#173d35}.dashboard-overview .owner-hero[data-result=negative]{background:#502e36;border-color:#502e36}.dashboard-overview .owner-hero[data-result=unknown]{background:#393e4b;border-color:#393e4b}.dashboard-overview .owner-hero[data-result=zero]{background:#304357;border-color:#304357}.dashboard-overview .owner-hero[data-result=unknown] .owner-profit,.dashboard-overview .owner-hero[data-result=zero] .owner-profit{color:#fff}.dashboard-overview .owner-profit{font-size:clamp(27px,2.8vw,42px);font-variant-numeric:tabular-nums}.health-missing{font-size:12px;color:#f0dfbd;line-height:1.6;margin:7px 0}.owner-hero>.ghost{color:#fff;text-align:left;font-size:13px;padding:8px 0}.health-heading{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;justify-content:space-between;margin:8px 0}.health-heading>small{color:#6e798a;font-size:12px}.health-summary{font-size:13px;font-weight:650;color:#536477}.health-summary.is-alert{color:#a8343c}.health-summary.is-alert:before{content:'!';display:inline-grid;place-items:center;background:#f8e7e9;border-radius:50%;width:20px;height:20px;margin-right:7px}.health-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0 12px}.health-card{position:relative;display:flex;flex-direction:column;align-items:start;text-align:left;gap:8px;border:1px solid #dae1e7;border-top:4px solid #91a2b2;background:#f9fbfc;padding:17px;border-radius:12px;color:#253244;min-width:0;white-space:normal;font-weight:400}.health-card:hover{box-shadow:0 4px 16px #243b4b15;transform:translateY(-1px)}.health-card.is-alert{border-color:#ecc5c9;border-top-color:#ba4653;background:#fff8f8}.health-card.is-growth{border-color:#bfd6ed;border-top-color:#3e82b5;background:#f5faff}.health-card.is-unknown,.health-card.is-small{border-top-color:#b29559;background:#fdfbf7}.health-card-title{font-size:14px;font-weight:650}.health-number{font-size:29px;line-height:1.2;overflow-wrap:anywhere;max-width:100%;font-variant-numeric:tabular-nums}.health-state{font-size:13px;font-weight:650;line-height:1.4}.is-alert .health-state{color:#a8343c}.health-card small{font-size:12px;line-height:1.5;color:#627084}.health-source{font-size:11px!important}.health-spark{display:flex;height:32px;gap:5px;align-items:end;margin-top:auto;padding-top:6px}.health-spark i{width:20px;max-width:20px;display:block;background:#c0ccd6;border-radius:3px 3px 0 0}.health-spark .current{background:#60778a}.is-alert .health-spark .current{background:#ba4653}.is-growth .health-spark .current{background:#3e82b5}.health-spark .missing{border:1px dashed #b09b77;background:transparent}.health-more{font-size:12px;color:#70519b}.health-footnote{display:block;font-size:11px;color:#768295;line-height:1.6}
@media(min-width:821px) and (max-width:1150px){.dashboard-overview{grid-template-areas:'hero hero hero hero hero hero kpis kpis kpis kpis kpis kpis' 'health health health health health health health health health health health health' 'quality quality quality quality quality quality quality quality quality quality quality quality' 'trend trend trend trend trend trend trend trend trend trend trend trend' 'tasks tasks tasks tasks tasks tasks costs costs costs costs costs costs' 'factors factors factors factors factors factors products products products products products products';gap:14px}}
@media(max-width:820px){.dashboard-overview>section.business-health{order:1;padding:18px}.dashboard-overview .dashboard-kpis{order:2}.dashboard-overview .dashboard-quality{order:3}.dashboard-overview .dashboard-trend{order:4}.dashboard-overview .owner-tasks{order:5}.dashboard-overview .dashboard-costs{order:6}.dashboard-overview #owner-factors{order:7}.dashboard-overview .dashboard-products{order:8}.health-grid{grid-template-columns:1fr;gap:10px;margin:14px 0}.health-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 12px;padding:15px}.health-card-title{grid-column:1}.health-number{grid-column:2;grid-row:1/3;font-size:25px;max-width:150px;text-align:right;align-self:center}.health-state,.health-card small{grid-column:1/-1}.health-state{grid-row:3}.health-spark{display:none}.health-more{grid-column:1/-1;margin-top:3px}.health-verdict{font-size:26px}.dashboard-overview .owner-profit{font-size:33px}.health-footnote{font-size:12px}}
.dashboard-account{flex-wrap:wrap}.dashboard-account #workspace-entity{margin:0;flex:1;min-width:140px}.dashboard-market-switch{display:inline-flex;gap:4px;padding:4px;background:#f0f1f6;border:1px solid #e1e4ed;border-radius:12px;flex-shrink:0}.dashboard-market-switch button{min-width:58px;min-height:42px;padding:8px 14px;border-radius:8px;background:transparent;color:#647084;font-size:13px;font-weight:750;transition:background .15s,color .15s}.dashboard-market-switch button:hover{background:#e4e7ef;color:#25324a}.dashboard-market-switch button[data-market=wb][aria-pressed=true]{background:#753de0;color:#fff;box-shadow:0 2px 6px #753de026}.dashboard-market-switch button[data-market=ozon][aria-pressed=true]{background:#005bff;color:#fff;box-shadow:0 2px 6px #005bff26}.dashboard-market-switch button:focus-visible{outline:2px solid #25324a;outline-offset:2px}
