:root{--ink:#25211d;--muted:#7b746c;--paper:#f5f1e9;--card:#fffdf8;--line:#ded7cb;--accent:#d65332;--accent-soft:#f7e2d9;--green:#29725c;--green-soft:#dfeee8;--red:#b83e35;--red-soft:#f5dfdc;--shadow:0 14px 40px rgba(55,43,30,.08)}
.brand-mark,.login-card h1,.period-heading h2,.section-title h2,.flow-card strong,.diagnosis-card h3,.kpi-card strong{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.45 Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}button,input{font:inherit}button{border:0;border-radius:10px;background:var(--ink);color:#fff;padding:11px 17px;cursor:pointer;font-weight:700}button:hover{opacity:.88}.hidden{display:none!important}.eyebrow{margin:0 0 5px;color:var(--muted);font-size:11px;font-weight:800;letter-spacing:.14em}.brand-mark{display:grid;place-items:center;width:54px;height:54px;border-radius:50%;background:var(--accent);color:white;font:700 29px/1 Georgia,serif}.brand-mark.small{width:38px;height:38px;font-size:21px}.login-screen{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 25% 20%,#fff9ed 0,transparent 40%),var(--paper)}.login-card{width:min(410px,100%);padding:36px;border:1px solid var(--line);border-radius:20px;background:var(--card);box-shadow:var(--shadow)}.login-card .brand-mark{margin-bottom:24px}.login-card h1{margin:0 0 28px;font:600 32px/1.1 Georgia,serif}.login-card label,.period-panel label{display:grid;gap:7px;margin:0 0 15px;color:var(--muted);font-size:12px;font-weight:700}.login-card input,.period-panel input{width:100%;border:1px solid var(--line);border-radius:10px;background:#fff;padding:11px;color:var(--ink)}.login-card button{width:100%}.form-error{min-height:21px;color:var(--red);font-size:13px}.login-hint{margin:18px 0 0;color:var(--muted);font-size:12px}.topbar{height:70px;display:flex;align-items:center;justify-content:space-between;padding:0 max(24px,calc((100vw - 1240px)/2));border-bottom:1px solid var(--line);background:rgba(255,253,248,.9);backdrop-filter:blur(8px);position:sticky;top:0;z-index:10}.brand,.top-actions{display:flex;align-items:center;gap:12px}.brand div{display:grid}.brand span{font-size:12px;color:var(--muted)}.ghost{padding:9px 13px;border:1px solid var(--line);background:transparent;color:var(--ink)}.mode-pill{border-radius:99px;padding:7px 11px;background:var(--accent-soft);color:#943c27;font-size:12px;font-weight:700}main{max-width:1240px;margin:auto;padding:30px 24px 64px}.period-panel{padding:24px;border:1px solid var(--line);border-radius:16px;background:var(--card);box-shadow:var(--shadow)}.period-heading,.section-title{display:flex;align-items:end;justify-content:space-between;gap:20px}.period-heading h2,.section-title h2{margin:0;font:600 26px/1.15 Georgia,serif}.date-grid{display:grid;grid-template-columns:1fr 1fr 1px 1fr 1fr auto;align-items:end;gap:12px;margin-top:21px}.date-grid label{margin:0}.compare-divider{width:1px;height:42px;background:var(--line)}.comparison-note{margin:12px 0 0;color:var(--muted);font-size:13px}.loading{padding:70px;text-align:center;color:var(--muted)}section{margin-top:34px}.section-title{margin-bottom:14px}.section-title>p{margin:0;color:var(--muted);font-size:13px}.card{border:1px solid var(--line);border-radius:16px;background:var(--card);box-shadow:var(--shadow)}.marketing-grid{display:grid;grid-template-columns:minmax(0,3fr) minmax(270px,1fr);gap:16px}.flow-card{overflow:hidden}.flow-row,.flow-split,.flow-total{display:grid}.flow-row{grid-template-columns:1fr 1fr;padding:24px;border-bottom:1px solid var(--line)}.flow-split{grid-template-columns:1fr 1fr;background:#faf7f0}.flow-split>div{padding:22px 24px}.flow-split>div+div{border-left:1px solid var(--line)}.flow-total{grid-template-columns:1.25fr 1fr 1fr;padding:24px;background:var(--ink);color:white}.flow-card span{display:block;margin-bottom:5px;color:var(--muted);font-size:12px}.flow-total span{color:#bdb7af}.flow-card strong{font:600 31px/1.15 Georgia,serif}.flow-card small{display:block;margin-top:5px;color:var(--muted)}.flow-total small{color:#bdb7af}.conversion{padding-left:24px;border-left:1px solid var(--line)}.flow-total .conversion{border-color:#554f48}.diagnosis-card{padding:24px;background:#fff7ed}.diagnosis-card h3{margin:8px 0;font:600 24px/1.15 Georgia,serif}.diagnosis-card>p:not(.eyebrow){color:var(--muted)}.comparison-box{margin-top:24px;padding:16px;border-radius:12px;background:var(--accent-soft)}.comparison-box span{display:block;color:#90432f;font-size:12px}.comparison-box strong{display:block;margin-top:4px;font-size:18px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;white-space:nowrap}th,td{padding:15px 18px;text-align:right;border-bottom:1px solid var(--line)}th:first-child,td:first-child{text-align:left}th{color:var(--muted);font-size:11px;letter-spacing:.06em;text-transform:uppercase}tbody tr:last-child td{border-bottom:0}.delta{display:inline-flex;border-radius:99px;padding:4px 8px;font-size:12px;font-weight:700}.delta.up{background:var(--green-soft);color:var(--green)}.delta.down{background:var(--red-soft);color:var(--red)}.delta.flat{background:#ede9e2;color:var(--muted)}.kpi-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.kpi-card{padding:20px}.kpi-card span{display:block;color:var(--muted);font-size:12px}.kpi-card strong{display:block;margin:8px 0 4px;font:600 28px/1.1 Georgia,serif}.kpi-card small{color:var(--muted)}.monitor-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.monitor-grid .kpi-card:first-child{background:var(--green-soft)}.sources-footer{display:flex;justify-content:space-between;align-items:end;padding-top:20px;border-top:1px solid var(--line);color:var(--muted);font-size:12px}.source-statuses{display:flex;gap:7px;flex-wrap:wrap}.source-chip{border:1px solid var(--line);border-radius:99px;padding:6px 9px;background:var(--card)}.source-chip::before{content:"";display:inline-block;width:7px;height:7px;margin-right:6px;border-radius:50%;background:#d19a32}.source-chip.ready::before{background:var(--green)}
@media(max-width:900px){.date-grid{grid-template-columns:1fr 1fr}.compare-divider{display:none}.marketing-grid{grid-template-columns:1fr}.kpi-grid,.monitor-grid{grid-template-columns:1fr 1fr}.date-grid button{grid-column:1/-1}.flow-total{grid-template-columns:1fr 1fr}.flow-total .conversion{grid-column:1/-1;margin-top:20px;padding:18px 0 0;border-left:0;border-top:1px solid #554f48}}
@media(max-width:560px){main{padding:20px 14px 48px}.topbar{padding:0 14px}.brand div span,.mode-pill{display:none}.period-heading,.section-title{align-items:start;flex-direction:column}.date-grid,.flow-row,.flow-split,.flow-total,.kpi-grid,.monitor-grid{grid-template-columns:1fr}.flow-row>div+div,.flow-split>div+div{margin-top:18px;padding:18px 0 0;border-left:0;border-top:1px solid var(--line)}.flow-total>div{padding:10px 0}.conversion{padding-left:0;border-left:0}.sources-footer{align-items:start;flex-direction:column;gap:18px}}
.date-grid{grid-template-columns:1fr 1fr 1px 1fr 1fr auto auto}
@media(max-width:900px){.date-grid{grid-template-columns:1fr 1fr}.date-grid button{grid-column:1/-1}}
@media(max-width:560px){.date-grid{grid-template-columns:1fr}}

/* Единый шрифт интерфейса: правило намеренно стоит последним. */
.brand-mark,.login-card h1,.period-heading h2,.section-title h2,.flow-card strong,.diagnosis-card h3,.kpi-card strong{
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-weight:700;
}
.dashboard-tabs{display:flex;gap:8px;margin-bottom:14px}.tab-button{background:transparent;color:var(--muted);border:1px solid var(--line)}.tab-button.active{background:var(--ink);color:#fff}.period-presets{display:flex;gap:8px;flex-wrap:wrap}.active-period{background:var(--green)!important;color:#fff!important}.date-grid{grid-template-columns:1fr 1fr auto auto}.metric-grid{display:grid;gap:14px}.metric-grid.five{grid-template-columns:repeat(5,minmax(0,1fr))}.metric-grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}.metric-card{padding:18px;min-width:0}.metric-card>span{display:block;color:var(--muted);font-size:12px}.metric-card>strong{display:block;margin:7px 0;font-size:25px;line-height:1.15}.metric-card>small{display:block;min-height:34px;color:var(--muted);font-size:12px}.comparison-list{margin-top:13px;padding-top:9px;border-top:1px solid var(--line)}.comparison-row{display:flex;justify-content:space-between;gap:8px;padding:5px 0;font-size:11px}.comparison-row span{color:var(--muted)}.comparison-row strong{font-weight:700;text-align:right}.positive{color:var(--green)}.negative{color:var(--red)}.neutral{color:var(--muted)}.metric-card.unavailable{background:#eeeae2;box-shadow:none}.metric-card.unavailable strong{font-size:18px;color:var(--muted)}.ranking-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.unavailable-list{padding:24px;border-style:dashed;box-shadow:none}.unavailable-list h3{margin:0 0 7px}.unavailable-list p{margin:0;color:var(--muted)}
@media(max-width:1100px){.metric-grid.five,.metric-grid.four{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.metric-grid.five,.metric-grid.four,.ranking-grid{grid-template-columns:1fr}.dashboard-tabs{overflow:auto}.period-presets{margin-top:10px}}
.modal-backdrop{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:20px;background:rgba(37,33,29,.55);backdrop-filter:blur(4px)}.modal-card{width:min(480px,100%);padding:26px;border:1px solid var(--line);border-radius:18px;background:var(--card);box-shadow:0 24px 80px rgba(0,0,0,.25)}.modal-heading{display:flex;align-items:start;justify-content:space-between;gap:20px}.modal-heading h2{margin:0;font-size:25px}.modal-close{width:40px;height:40px;padding:0;font-size:24px}.modal-note{margin:18px 0;color:var(--muted);font-size:13px}.modal-card label{display:grid;gap:7px;margin:0 0 15px;color:var(--muted);font-size:12px;font-weight:700}.modal-card input{width:100%;border:1px solid var(--line);border-radius:10px;background:#fff;padding:11px;color:var(--ink)}.modal-card>button[type=submit]{width:100%}
.date-grid{grid-template-columns:1fr 1fr auto auto minmax(150px,220px)}.sync-time{align-self:center;max-width:220px;color:var(--muted);font-size:11px;line-height:1.3}.sync-time.sync-error{color:var(--red)}button:disabled{cursor:wait;opacity:.55}
.ranking-card{min-width:0;overflow:hidden}.ranking-card h3{margin:0;padding:20px 20px 8px}.ranking-card table{font-size:12px}.ranking-card th,.ranking-card td{padding:11px 14px;white-space:normal}.ranking-card th:first-child,.ranking-card td:first-child{min-width:170px}
.ranking-note{margin:0;padding:0 20px 8px;color:var(--muted);font-size:11px}.ranking-card .weight-one-kg{background:var(--green-soft);color:var(--green);font-weight:800}
.progress-board{scroll-margin-top:90px}.progress-board-head{display:flex;align-items:end;justify-content:space-between;gap:28px;margin-bottom:18px}.progress-board-head h1{margin:0;font-size:38px;line-height:1.05;letter-spacing:-.035em}.progress-board-head p:last-child{margin:9px 0 0;color:var(--muted)}.progress-total{flex:0 0 220px}.progress-total strong,.progress-total span{display:block}.progress-total strong{font-size:26px}.progress-total span{color:var(--muted);font-size:11px}.progress-total div{height:7px;margin-top:10px;overflow:hidden;border-radius:99px;background:#e6dfd4}.progress-total i{display:block;width:85.71%;height:100%;border-radius:inherit;background:var(--green)}.progress-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.progress-card{position:relative;display:flex;min-height:190px;flex-direction:column;padding:18px;border:1px solid var(--line);border-radius:15px;background:var(--card);box-shadow:0 8px 24px rgba(55,43,30,.055)}.progress-card.ready{border-top:3px solid var(--green)}.progress-card.locked{background:#ece8e0;color:#777067;box-shadow:none}.progress-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.progress-card-top>span{color:var(--muted);font-size:11px;font-weight:800;letter-spacing:.1em}.progress-card h2{margin:18px 0 7px;font-size:18px;line-height:1.15}.progress-card p{margin:0 0 16px;color:var(--muted);font-size:12px;line-height:1.45}.status{padding:4px 7px;border-radius:99px;font-size:9px;letter-spacing:.04em;text-transform:uppercase}.status.live{background:var(--green-soft);color:var(--green)}.status.prototype{background:#fbefc9;color:#745f1d}.status.development{background:#ddd7cc;color:#716a61}.progress-open{align-self:flex-start;margin-top:auto;padding:0;background:transparent;color:var(--green);font-size:11px}.progress-open:hover{opacity:.68}.progress-lock{margin-top:auto;color:#8b847a;font-size:11px;font-weight:700}.progress-lock span{margin-right:4px;filter:grayscale(1)}#operationsSection,#workloadSection{scroll-margin-top:90px}
.progress-card a.progress-open{text-decoration:none;font-weight:700}.privacy-row{display:flex;justify-content:flex-end;margin:10px 0 0}.privacy-control{display:grid;grid-template-columns:auto 48px;grid-template-rows:auto auto;align-items:center;column-gap:10px;cursor:pointer}.privacy-control>span{font-size:12px;font-weight:800}.privacy-control>small{grid-column:1;color:var(--muted);font-size:9px}.privacy-control input{position:absolute;width:1px;height:1px;opacity:0}.privacy-control i{position:relative;grid-column:2;grid-row:1/3;width:48px;height:28px;border-radius:99px;background:#c9c4bc;box-shadow:inset 0 0 0 1px rgba(0,0,0,.06);transition:.2s}.privacy-control i::after{content:"";position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 2px 6px rgba(0,0,0,.24);transition:.2s}.privacy-control input:checked+i{background:var(--green)}.privacy-control input:checked+i::after{transform:translateX(20px)}.privacy-control input:focus-visible+i{outline:3px solid rgba(41,114,92,.25);outline-offset:2px}.sensitive-value{transition:filter .18s,opacity .18s}.privacy-hidden .sensitive-value{filter:blur(9px);opacity:.42;pointer-events:none;user-select:none}
.finance-hero{display:flex;align-items:end;justify-content:space-between;gap:28px}.finance-hero h1{margin:0;font-size:42px;line-height:1.05;letter-spacing:-.04em}.finance-hero>div>p:last-child{margin:9px 0 0;color:var(--muted)}.finance-source{min-width:245px;padding:17px;border-radius:14px;background:var(--ink);color:#fff}.finance-source span,.finance-source strong,.finance-source small{display:block}.finance-source span,.finance-source small{color:#c9c4bc;font-size:10px}.finance-source strong{margin:4px 0;font-size:22px}.finance-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.finance-kpi{padding:19px}.finance-kpi>span,.finance-kpi>strong,.finance-kpi>small{display:block}.finance-kpi>span{color:var(--muted);font-size:11px}.finance-kpi>strong{margin:8px 0;font-size:25px}.finance-kpi>small{color:var(--muted);font-size:10px}.finance-kpi.good{background:var(--green-soft)}.finance-kpi.result{background:#fff4d8}.finance-columns{display:grid;grid-template-columns:1.1fr .9fr;gap:14px}.finance-waterfall,.expense-structure{padding:22px}.finance-card-head{display:flex;align-items:end;justify-content:space-between;gap:15px;margin-bottom:20px}.finance-card-head h2{margin:0;font-size:22px}.finance-card-head>span{color:var(--muted);font-size:10px}.waterfall-list{display:grid;gap:9px}.waterfall-row{display:grid;grid-template-columns:minmax(190px,1fr) minmax(80px,1.35fr) minmax(125px,.8fr);align-items:center;gap:10px;padding:7px 0;border-bottom:1px solid #eee8de;font-size:11px}.waterfall-row i{display:block;width:var(--size);height:8px;border-radius:99px;background:#d9d3c9}.waterfall-row strong{text-align:right}.waterfall-row.income i,.waterfall-row.subtotal i{background:#9ccbbb}.waterfall-row.expense i{background:#e7b3a6}.waterfall-row.total,.waterfall-row.final{font-weight:800}.waterfall-row.total i,.waterfall-row.final i{background:var(--green)}.waterfall-row.final{padding:11px 8px;border-radius:8px;background:var(--green-soft)}.expense-bars{display:grid;gap:15px}.expense-bars header{display:flex;justify-content:space-between;gap:10px;font-size:11px}.expense-bars i{display:block;height:8px;margin:5px 0;border-radius:99px;background:#eee8de}.expense-bars b{display:block;width:calc(var(--size) * 2.7);max-width:100%;height:100%;border-radius:inherit;background:var(--accent)}.expense-bars small{color:var(--muted);font-size:10px}.profit-levels{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.profit-levels article{padding:20px}.profit-levels span,.profit-levels strong{display:block}.profit-levels span{color:var(--muted);font-size:10px;font-weight:800}.profit-levels strong{margin:9px 0;font-size:21px}.profit-levels p{margin:0;color:var(--muted);font-size:11px}.profit-levels .ready{border-top:3px solid var(--green)}.profit-levels .pending{background:#eeeae2;box-shadow:none}.finance-warning{margin:12px 0 0;padding:12px 14px;border-radius:9px;background:#fbefc9;color:#745f1d;font-size:11px}
@media(max-width:950px){.finance-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.finance-columns{grid-template-columns:1fr}.profit-levels{grid-template-columns:1fr}}
@media(max-width:600px){.finance-hero{align-items:start;flex-direction:column}.finance-source{width:100%}.finance-kpis{grid-template-columns:1fr}.waterfall-row{grid-template-columns:1fr auto}.waterfall-row i{grid-column:1/-1;grid-row:2}.finance-hero h1{font-size:34px}}
@media(max-width:1050px){.progress-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.progress-board-head{align-items:start;flex-direction:column}.progress-board-head h1{font-size:32px}.progress-total{width:100%;flex-basis:auto}.progress-grid{grid-template-columns:1fr}.progress-card{min-height:170px}}
.competitor-hero{display:grid;grid-template-columns:1fr 340px;gap:24px;align-items:end}.competitor-hero h2{margin:0;font-size:46px;letter-spacing:-.04em}.competitor-hero>div>p:last-child{color:var(--muted)}.competitor-refresh{padding:20px;border-radius:16px;background:var(--ink);color:#fff}.competitor-refresh span,.competitor-refresh strong,.competitor-refresh small{display:block}.competitor-refresh span,.competitor-refresh small{color:#c9c4bc;font-size:11px}.competitor-refresh strong{margin:5px 0 15px}.competitor-refresh button{width:100%;background:var(--accent)}.competitor-refresh small{margin-top:9px}.competitor-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.competitor-kpis article{padding:20px}.competitor-kpis span,.competitor-kpis strong,.competitor-kpis small{display:block}.competitor-kpis span{color:var(--muted);font-size:11px}.competitor-kpis strong{margin:8px 0;font-size:29px}.competitor-kpis small{color:var(--muted)}.competitor-kpis .recommendation{background:var(--green-soft)}.price-legend{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:11px}.price-legend i{width:9px;height:9px;border-radius:50%;margin-left:8px}.best{background:var(--green-soft);color:var(--green)}.middle{background:#fbefc9;color:#745f1d}.worst{background:var(--red-soft);color:var(--red)}.competitor-table td>span{display:inline-block;padding:6px 8px;border-radius:7px;font-weight:700}.competitor-table .our-price{background:#fff8ed}.competitor-table td>b{margin-left:7px;padding:3px 5px;background:var(--ink);color:#fff;font-size:8px}.competitor-table sup{margin-left:5px;padding:1px 5px;border-radius:50%;background:#f0cf70}.competitor-table tfoot td{background:#f1ece3}.competitor-table a{color:inherit}.competitor-insights{display:grid;grid-template-columns:1.3fr .7fr;gap:14px}.competitor-insights>article{padding:24px}.competitor-insights h2{margin:0 0 10px}.competitor-decision>p:not(.eyebrow){color:var(--muted)}.competitor-decision>div{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;margin-top:20px;background:var(--line)}.competitor-decision>div span{padding:15px;background:#faf7f0;font-size:11px}.competitor-decision>div b{font-size:13px}.competitor-decision>div .go{background:var(--green-soft);color:var(--green)}.competitor-basis{background:#fff7ed}.competitor-basis>p:not(.eyebrow){padding:11px 0;margin:0;border-top:1px solid var(--line);color:var(--muted)}.competitor-basis p b{display:inline-block;width:55px;color:var(--accent)}.competitor-conditions{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.competitor-conditions article{ NCCpadding:17px}.competitor-conditions p{margin:8px 0;color:var(--muted);font-size:12px}
@media(max-width:760px){.competitor-hero,.competitor-insights{grid-template-columns:1fr}.competitor-kpis,.competitor-conditions{grid-template-columns:1fr}.competitor-decision>div{grid-template-columns:1fr}.price-legend{flex-wrap:wrap}.competitor-hero h2{font-size:35px}}
.competitor-conditions article{padding:17px}
.price-impact{margin-top:16px;padding:24px;background:linear-gradient(135deg,#fffdf8,#eef5ee)}.impact-head{display:flex;align-items:end;justify-content:space-between;gap:30px}.impact-head h2{margin:0;font-size:27px}.impact-head>div>p:last-child{margin:7px 0 0;color:var(--muted)}.impact-inputs{display:flex;gap:10px}.impact-inputs label{position:relative;display:grid;gap:5px;color:var(--muted);font-size:10px;font-weight:700;text-transform:uppercase}.impact-inputs input{width:145px;padding:10px 30px 10px 11px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink);font-size:15px}.impact-inputs label span{position:absolute;right:11px;bottom:10px}.impact-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;margin-top:23px;background:var(--line);border:1px solid var(--line);border-radius:12px;overflow:hidden}.impact-grid article{padding:18px;background:var(--card)}.impact-grid span,.impact-grid strong,.impact-grid small{display:block}.impact-grid span{min-height:34px;color:var(--muted);font-size:11px}.impact-grid strong{margin:7px 0;font-size:24px;color:var(--green)}.impact-grid small{color:var(--muted);font-size:10px}.impact-note{margin:14px 0 0;color:var(--muted);font-size:11px}
@media(max-width:850px){.impact-head{align-items:start;flex-direction:column}.impact-grid{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.impact-inputs{width:100%;flex-direction:column}.impact-inputs input{width:100%}.impact-grid{grid-template-columns:1fr}}
.competitor-scroll{overflow-x:auto;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}.competitor-table.wide{min-width:1120px}.horizontal-hint{margin:0 0 10px;color:var(--accent);font-size:12px;font-weight:700}.data-note{display:block;margin-top:10px;color:var(--muted);line-height:1.45}.competitor-table th small{font-size:9px;color:var(--accent)}.promo-strong{background:var(--green-soft)}.measurement-pending{display:inline-block;padding:5px 8px;border-radius:99px;background:var(--accent-soft);color:var(--accent);font-size:11px;font-weight:700}
.section-title.compact{margin:0 0 12px}.recommendation-block{margin-top:26px}.recommendation-table{min-width:1180px}.recommendation-table th,.recommendation-table td{white-space:normal;vertical-align:middle}.recommendation-table th:first-child,.recommendation-table td:first-child{min-width:260px}.recommendation-table td:nth-child(6){min-width:230px;text-align:left}.recommendation-table td:first-child small{display:block;margin-top:3px;color:var(--muted)}.recommendation-table tbody tr:nth-child(2){background:#f1f8f4}.pie-volume{display:inline-block;min-width:100px;padding:9px;border:1px solid var(--line);border-radius:8px;background:#f6f2ea;text-align:right;font-weight:800}.risk{display:inline-block;margin-right:6px;padding:4px 7px;border-radius:99px;font-size:10px;font-weight:800;text-transform:uppercase}.risk.low{background:var(--green-soft);color:var(--green)}.risk.medium{background:#fbefc9;color:#745f1d}.risk.high{background:var(--red-soft);color:var(--red)}
.pricing-period{display:inline-block;margin:10px 0 0;padding:7px 10px;border-radius:8px;background:#fbefc9;color:#745f1d;font-size:12px;font-weight:800}
.impact-summary{min-width:190px;padding:15px 18px;border:1px solid var(--line);border-radius:12px;background:#fff}.impact-summary span,.impact-summary strong{display:block}.impact-summary span{color:var(--muted);font-size:10px;font-weight:800;text-transform:uppercase}.impact-summary strong{margin-top:6px;color:var(--green);font-size:26px}
.delivery-table{min-width:1320px}.delivery-table th,.delivery-table td{white-space:normal;vertical-align:top;line-height:1.45}.delivery-table th:first-child,.delivery-table td:first-child{min-width:150px}.delivery-table td:nth-child(2){min-width:220px}.delivery-table td:nth-child(3){min-width:190px}.delivery-table td:nth-child(5){min-width:210px}.delivery-table td:nth-child(6){min-width:180px}.delivery-table td:nth-child(7){min-width:290px}.best-text{color:var(--green);font-weight:800}
.promo-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.promo-card{padding:21px}.promo-card.our-promo{border:2px solid var(--accent)}.promo-card header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding-bottom:12px;border-bottom:1px solid var(--line)}.promo-card header b{font-size:19px}.promo-card header a{color:var(--accent);font-size:11px;font-weight:800;text-decoration:none}.promo-card ul{margin:14px 0 0;padding-left:19px}.promo-card li{margin:9px 0;color:var(--muted);font-size:13px;line-height:1.45}.promo-card li strong{color:var(--ink)}.promo-card code{padding:2px 5px;border-radius:5px;background:#eee8dd;color:var(--ink);font-weight:800}
@media(max-width:760px){.promo-list{grid-template-columns:1fr}.impact-head{align-items:start;flex-direction:column}.impact-inputs{width:100%}.impact-inputs label{width:100%}.impact-inputs input{width:100%}.impact-grid{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.impact-grid{grid-template-columns:1fr}}
.hypothesis-hero{display:flex;align-items:end;justify-content:space-between;gap:28px}.hypothesis-hero h1{margin:0;font-size:42px;letter-spacing:-.04em}.hypothesis-hero>div>p:last-child{margin:8px 0 0;color:var(--muted)}.hypothesis-refresh{min-width:275px;padding:17px;border-radius:14px;background:var(--ink);color:#fff}.hypothesis-refresh span,.hypothesis-refresh strong,.hypothesis-refresh small{display:block}.hypothesis-refresh span,.hypothesis-refresh small{color:#c9c4bc;font-size:10px}.hypothesis-refresh strong{margin:4px 0 10px}.hypothesis-refresh button{width:100%;background:var(--accent);padding:9px 12px}.hypothesis-refresh small{margin-top:8px}.hypothesis-workspace{display:grid;grid-template-columns:280px minmax(0,1fr);gap:14px}.hypothesis-register{padding:18px}.hypothesis-register-head{display:flex;align-items:end;justify-content:space-between;gap:10px}.hypothesis-register-head h2{margin:0;font-size:27px}.hypothesis-register-head>span{color:var(--muted);font-size:10px}.hypothesis-capacity{height:7px;margin:13px 0 18px;border-radius:99px;background:#ece6dc;overflow:hidden}.hypothesis-capacity i{display:block;width:10%;height:100%;background:var(--green)}.hypothesis-list-item{width:100%;padding:14px;border:1px solid var(--green);border-radius:12px;background:var(--green-soft);color:var(--ink);text-align:left}.hypothesis-list-item strong,.hypothesis-list-item small{display:block}.hypothesis-list-item strong{margin:9px 0 5px;line-height:1.3}.hypothesis-list-item small{color:var(--muted);font-size:10px}.hypothesis-empty{margin-top:10px;padding:14px;border:1px dashed var(--line);border-radius:12px;color:var(--muted)}.hypothesis-empty b,.hypothesis-empty span{display:block}.hypothesis-empty b{font-size:11px}.hypothesis-empty span{margin-top:5px;font-size:10px}.hypothesis-main{min-width:0}.cohort-warning{margin-bottom:14px;padding:15px 17px;border-radius:12px;background:#fbefc9;color:#745f1d}.cohort-warning strong{font-size:13px}.cohort-warning p{margin:4px 0 0;font-size:11px}.hypothesis-detail{padding:22px}.hypothesis-detail>header{display:flex;align-items:start;justify-content:space-between;gap:18px}.hypothesis-detail h2{margin:0;font-size:25px}.hypothesis-detail header p:last-child{margin:7px 0 0;color:var(--muted);font-size:11px}.hypothesis-schedule{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:20px 0}.hypothesis-schedule>div{padding:12px;border:1px solid var(--line);border-radius:10px;background:#faf7f0}.hypothesis-schedule>div.active{border-color:#d5aa3d;background:#fbefc9}.hypothesis-schedule>div.complete{border-color:#acd0c2;background:var(--green-soft)}.hypothesis-schedule span,.hypothesis-schedule strong,.hypothesis-schedule small{display:block}.hypothesis-schedule span,.hypothesis-schedule small{color:var(--muted);font-size:9px}.hypothesis-schedule strong{margin:4px 0}.hypothesis-results{display:grid;grid-template-columns:1fr 1fr .72fr;gap:10px}.hypothesis-variant,.hypothesis-advantage{padding:16px;border:1px solid var(--line);border-radius:12px;background:#faf7f0}.hypothesis-variant.new{border-top:3px solid var(--green)}.hypothesis-variant.old{border-top:3px solid var(--muted)}.variant-heading{display:flex;align-items:start;justify-content:space-between;gap:10px}.variant-heading span{color:var(--muted);font-size:9px;text-transform:uppercase}.variant-heading h3{margin:3px 0 0}.variant-heading>b{padding:4px 6px;border-radius:6px;background:#eee8dd;color:var(--muted);font-size:8px}.variant-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:18px}.variant-metrics span,.variant-metrics strong,.variant-metrics small{display:block}.variant-metrics span,.variant-metrics small{color:var(--muted);font-size:9px}.variant-metrics strong{margin:4px 0;font-size:22px}.hypothesis-advantage{background:var(--green-soft)}.hypothesis-advantage>span,.hypothesis-advantage>strong,.hypothesis-advantage>small{display:block}.hypothesis-advantage>span,.hypothesis-advantage>small{color:var(--muted);font-size:9px}.hypothesis-advantage>strong{margin:8px 0;font-size:28px;color:var(--green)}.hypothesis-advantage p{margin:0 0 12px;font-size:11px;font-weight:800}.hypothesis-source{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:14px;padding:14px;border:1px dashed var(--line);border-radius:10px}.hypothesis-source p{margin:0}.hypothesis-source>div:last-child{display:grid;gap:5px;color:var(--muted);font-size:10px}.hypothesis-footnote{margin:12px 0 0;color:var(--muted);font-size:10px}
@media(max-width:1000px){.hypothesis-workspace{grid-template-columns:1fr}.hypothesis-results{grid-template-columns:1fr 1fr}.hypothesis-advantage{grid-column:1/-1}}
@media(max-width:650px){.hypothesis-hero{align-items:start;flex-direction:column}.hypothesis-refresh{width:100%}.hypothesis-schedule,.hypothesis-results{grid-template-columns:1fr}.hypothesis-advantage{grid-column:auto}.hypothesis-detail>header,.hypothesis-source{align-items:start;flex-direction:column}.variant-metrics{grid-template-columns:1fr 1fr 1fr}}
.hypothesis-schedule{grid-auto-flow:column;grid-auto-columns:minmax(180px,1fr);grid-template-columns:none;overflow-x:auto;padding-bottom:6px;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}.hypothesis-baseline{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:14px;padding:17px;border:1px solid #acd0c2;border-radius:12px;background:var(--green-soft)}.hypothesis-baseline p,.hypothesis-baseline h3{margin:0}.hypothesis-baseline>div>p:last-child{margin-top:5px;color:var(--muted);font-size:10px}.baseline-metrics{display:grid;grid-template-columns:repeat(3,minmax(90px,1fr));gap:1px;min-width:430px;overflow:hidden;border:1px solid var(--line);border-radius:9px;background:var(--line)}.baseline-metrics>div{padding:11px;background:#fff}.baseline-metrics span,.baseline-metrics strong{display:block}.baseline-metrics span{color:var(--muted);font-size:9px}.baseline-metrics strong{margin-top:5px;font-size:20px}.hypothesis-advantage>small{line-height:1.4}
@media(max-width:760px){.hypothesis-baseline{align-items:start;flex-direction:column}.baseline-metrics{width:100%;min-width:0}}
@media(max-width:520px){.baseline-metrics{grid-template-columns:1fr}.hypothesis-schedule{grid-auto-columns:minmax(165px,82vw)}}
.month-forecast{overflow:hidden}.forecast-kpis{display:grid;grid-template-columns:repeat(4,1fr);background:var(--line);gap:1px}.forecast-kpis>div{padding:20px;background:var(--card)}.forecast-kpis span,.forecast-kpis strong,.forecast-kpis small{display:block}.forecast-kpis span{color:var(--muted);font-size:11px}.forecast-kpis strong{margin:7px 0;font-size:25px;color:var(--green)}.forecast-kpis small{color:var(--muted);font-size:10px}.weekday-forecast{display:grid;grid-template-columns:240px 1fr;align-items:end;gap:24px;padding:22px}.weekday-forecast h3{margin:0;font-size:17px}.weekday-forecast p{margin:6px 0 0;color:var(--muted);font-size:11px}.weekday-bars{display:grid;grid-template-columns:repeat(7,1fr);gap:9px;height:190px;align-items:end}.weekday-bar{display:grid;grid-template-rows:18px 110px auto auto;min-width:0;text-align:center}.weekday-bar>span{color:var(--muted);font-size:10px;font-weight:800}.weekday-bar>i{position:relative;display:block;height:110px;border-radius:7px 7px 3px 3px;background:#eee8de;overflow:hidden}.weekday-bar>i>b{position:absolute;right:0;bottom:0;left:0;height:var(--height);border-radius:7px 7px 3px 3px;background:linear-gradient(180deg,#64a68f,var(--green))}.weekday-bar>strong{margin-top:7px;font-size:10px;white-space:nowrap}.weekday-bar>small{color:var(--muted);font-size:9px;white-space:nowrap}.forecast-note{margin:0;padding:13px 22px;border-top:1px solid var(--line);background:#faf7f0;color:var(--muted);font-size:10px}
@media(max-width:850px){.forecast-kpis{grid-template-columns:1fr 1fr}.weekday-forecast{grid-template-columns:1fr}.weekday-bars{height:175px}}
@media(max-width:560px){.forecast-kpis{grid-template-columns:1fr}.weekday-bars{gap:4px;overflow-x:auto}.weekday-bar{min-width:62px}.weekday-forecast{overflow-x:auto}}
.native-forecast{display:grid;grid-template-columns:1fr auto;align-items:baseline;gap:3px 10px;margin-top:14px;padding-top:10px;border-top:1px solid var(--line);opacity:.58}.native-forecast span{font-size:10px}.native-forecast b{font-size:15px;text-align:right}.native-forecast em{grid-column:1/-1;color:var(--muted);font-size:9px;font-style:normal;text-align:right}.native-forecast em.positive{color:var(--green)}.native-forecast em.negative{color:var(--red)}.forecast-prior{display:flex;justify-content:space-between;gap:8px;margin-top:9px;color:var(--muted);font-size:9px;opacity:.72}.forecast-prior b{color:var(--ink)}.forecast-prior .positive{color:var(--green);font-weight:800}.forecast-prior .negative{color:var(--red);font-weight:800}
.progress-total i{width:75%}
.progress-total i{width:83.333%}
.inventory-hero{display:flex;align-items:end;justify-content:space-between;gap:28px}.inventory-hero h1{margin:0;font-size:42px;letter-spacing:-.04em}.inventory-hero>div>p:last-child{margin:8px 0 0;color:var(--muted)}.inventory-source{min-width:275px;padding:18px;border-radius:14px;background:var(--ink);color:#fff}.inventory-source span,.inventory-source strong,.inventory-source small{display:block}.inventory-source span,.inventory-source small{color:#c9c4bc;font-size:10px}.inventory-source strong{margin:5px 0;font-size:20px;color:#f0cf70}.inventory-refresh{width:100%;margin-top:12px;padding:9px 12px;border:1px solid #5f5a52;border-radius:8px;background:#fff;color:var(--ink);font:inherit;font-size:10px;font-weight:800;cursor:pointer}.inventory-refresh:disabled{opacity:.55;cursor:wait}.demo-notice{display:flex;align-items:center;gap:12px;padding:12px 15px;border:1px solid #e6c45d;border-radius:10px;background:#fbefc9;color:#745f1d;font-size:11px}.demo-notice strong{flex:0 0 auto}.demo-notice.error{border-color:#efb2ab;background:var(--red-soft);color:var(--red)}.inventory-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.inventory-kpis article{padding:18px}.inventory-kpis span,.inventory-kpis strong,.inventory-kpis small{display:block}.inventory-kpis span{min-height:30px;color:var(--muted);font-size:10px}.inventory-kpis strong{margin:8px 0;font-size:27px}.inventory-kpis small{color:var(--muted);font-size:9px}.inventory-kpis .warning{background:#fff9e7}.inventory-kpis .warning strong{color:#9a7616}.inventory-kpis .critical{background:var(--red-soft)}.inventory-kpis .critical strong{color:var(--red)}.inventory-category{overflow:hidden;border:1px solid var(--line);border-radius:15px;background:var(--card);box-shadow:0 8px 24px rgba(55,43,30,.05)}.inventory-category.packaging{border-top:3px solid #d5aa3d}.inventory-category.knives{border-top:3px solid var(--red)}.inventory-category.products{border-top:3px solid var(--green)}.inventory-category-head{display:flex;align-items:end;justify-content:space-between;gap:18px;padding:20px 22px}.inventory-category-head h2{margin:0;font-size:24px}.inventory-category-head p:last-child{margin:6px 0 0;color:var(--muted);font-size:11px}.inventory-count{padding:6px 9px;border-radius:99px;background:#eee8dd;color:var(--muted);font-size:9px;font-weight:800;text-transform:uppercase;white-space:nowrap}.inventory-count.critical{background:var(--red-soft);color:var(--red)}.inventory-table-scroll{overflow-x:auto;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}.inventory-table{width:100%;min-width:850px;border-collapse:collapse}.inventory-table th,.inventory-table td{padding:13px 18px;border-top:1px solid var(--line);text-align:left;font-size:11px}.inventory-table th{background:#faf7f0;color:var(--muted);font-size:9px;text-transform:uppercase;letter-spacing:.05em}.inventory-table td:first-child{width:25%}.inventory-table td b,.inventory-table td small{display:block}.inventory-table td small{margin-top:3px;color:var(--muted);font-size:9px}.inventory-anomaly-row{background:var(--red-soft)}.coverage{display:grid;grid-template-columns:90px auto;align-items:center;gap:9px}.coverage>span{display:block;height:7px;border-radius:99px;background:#ece6dc;overflow:hidden}.coverage i{display:block;width:var(--coverage);height:100%;border-radius:inherit}.coverage b{white-space:nowrap;font-size:10px}.coverage.warning i{background:#d5aa3d}.coverage.critical i,.coverage.anomaly i{background:var(--red)}.coverage.enough i{background:var(--green)}.coverage.unknown i{background:var(--muted)}.stock-status{display:inline-block;padding:5px 8px;border-radius:99px;font-size:9px;font-weight:800;text-transform:uppercase}.stock-status.warning{background:#fbefc9;color:#745f1d}.stock-status.critical,.stock-status.anomaly{background:var(--red-soft);color:var(--red)}.stock-status.enough{background:var(--green-soft);color:var(--green)}.stock-status.unknown{background:#eee8dd;color:var(--muted)}.inventory-bottom-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:14px}.purchase-queue,.inventory-method{padding:22px}.purchase-queue h2,.inventory-method h2{margin:0 0 17px;font-size:23px}.purchase-list{display:grid;gap:1px;overflow:hidden;border:1px solid var(--line);border-radius:10px;background:var(--line)}.purchase-list>div{display:grid;grid-template-columns:30px 1fr auto;align-items:center;gap:10px;padding:12px;background:#fff}.purchase-list>div>span{display:grid;width:26px;height:26px;place-items:center;border-radius:50%;background:var(--red-soft);color:var(--red);font-size:10px;font-weight:800}.purchase-list p{margin:0}.purchase-list p b,.purchase-list p small{display:block}.purchase-list p small{margin-top:2px;color:var(--muted);font-size:9px}.purchase-list>div>strong{font-size:12px}.purchase-list .inventory-empty{grid-template-columns:1fr}.demo-caption{display:block;margin-top:10px;color:var(--muted);font-size:9px}.stock-formula{display:grid;grid-template-columns:1fr auto 1fr auto 1fr;align-items:center;gap:8px;padding:15px;border-radius:10px;background:#faf7f0;text-align:center;font-size:10px}.stock-formula span,.stock-formula strong{padding:9px 7px;border-radius:7px;background:#fff}.stock-formula i{font-style:normal}.stock-formula b{color:var(--green);font-size:16px}.inventory-method ul{display:grid;gap:9px;margin:18px 0 0;padding:0;list-style:none;color:var(--muted);font-size:11px}.legend{display:inline-block;width:9px;height:9px;margin-right:7px;border-radius:50%}.legend.critical{background:var(--red)}.legend.warning{background:#d5aa3d}.legend.enough{background:var(--green)}.inventory-method>p:last-child{margin:16px 0 0;color:var(--muted);font-size:10px}
@media(max-width:900px){.inventory-kpis{grid-template-columns:1fr 1fr}.inventory-bottom-grid{grid-template-columns:1fr}}
@media(max-width:620px){.inventory-hero{align-items:start;flex-direction:column}.inventory-source{width:100%;min-width:0}.inventory-kpis{grid-template-columns:1fr}.demo-notice{align-items:start;flex-direction:column}.inventory-category-head{align-items:start;flex-direction:column}.stock-formula{grid-template-columns:1fr}.stock-formula i,.stock-formula b{transform:rotate(90deg)}}
.source-chip.cached::before{background:#d19a32}.data-warning{margin-top:14px;padding:12px 15px;border:1px solid #e6c45d;border-radius:10px;background:#fbefc9;color:#745f1d;font-size:12px;font-weight:700}
.check-composition-card{overflow:hidden}.check-insights{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--line)}.check-insights>div{padding:19px;background:var(--card)}.check-insights span,.check-insights strong,.check-insights small{display:block}.check-insights span{min-height:32px;color:var(--muted);font-size:10px}.check-insights strong{margin:7px 0;color:var(--green);font-size:25px}.check-insights small{color:var(--muted);font-size:9px}.check-unavailable{grid-column:1/-1}.check-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(260px,.65fr);gap:24px;padding:24px}.check-layout h3,.check-comparison h3{margin:0;font-size:18px}.check-layout>div>p,.check-comparison>p{margin:5px 0 17px;color:var(--muted);font-size:10px}.check-bars{display:grid;gap:13px}.check-bar-row{display:grid;grid-template-columns:130px minmax(120px,1fr) 52px;align-items:center;gap:10px}.check-bar-row>span{font-size:10px;font-weight:800}.check-bar-row>i{display:block;height:10px;overflow:hidden;border-radius:99px;background:#eee8de}.check-bar-row>i>b{display:block;width:var(--width);height:100%;border-radius:inherit;background:linear-gradient(90deg,#77aa98,var(--green))}.check-bar-row>strong{text-align:right;font-size:11px}.check-bar-row>small{grid-column:2/-1;color:var(--muted);font-size:9px}.check-diagnosis{padding:20px;border:1px solid #e6c45d;border-radius:13px;background:#fff9e7}.check-diagnosis .eyebrow{margin:0}.check-diagnosis>strong{display:block;margin:12px 0 6px;color:var(--green);font-size:31px}.check-diagnosis>strong.warning-value{color:#9a7616}.check-diagnosis>p:not(.eyebrow){margin:0 0 13px;font-size:13px;font-weight:800;line-height:1.45}.check-diagnosis>small{display:block;color:var(--muted);font-size:10px;line-height:1.5}.check-comparison{padding:22px 24px;border-top:1px solid var(--line)}.check-comparison .table-wrap{border:1px solid var(--line);border-radius:10px}.check-comparison-table{min-width:900px}.check-comparison-table th,.check-comparison-table td{padding:12px 14px}.check-comparison-table th:first-child,.check-comparison-table td:first-child{width:170px;text-align:left}.check-comparison-table td{text-align:right}.check-comparison-table td strong,.check-comparison-table td small{display:block}.check-comparison-table td small{margin-top:3px;color:var(--muted);font-size:8px}.check-comparison-table tbody tr:last-child{background:#fff9e7}.check-method{margin:0;padding:13px 24px;border-top:1px solid var(--line);background:#faf7f0;color:var(--muted);font-size:9px;line-height:1.45}
@media(max-width:900px){.check-insights{grid-template-columns:1fr 1fr}.check-layout{grid-template-columns:1fr}.check-diagnosis{max-width:none}}
@media(max-width:560px){.check-insights{grid-template-columns:1fr}.check-bar-row{grid-template-columns:105px minmax(90px,1fr) 45px}.check-layout,.check-comparison{padding:18px}.check-method{padding:12px 18px}}
.check-causes{padding:24px;border-top:1px solid var(--line);background:linear-gradient(135deg,#fffdf8,#f3f7f3)}.check-causes-head{display:flex;align-items:end;justify-content:space-between;gap:20px}.check-causes-head h3{margin:0;font-size:22px}.check-causes-head>span{max-width:330px;color:var(--muted);font-size:9px;text-align:right}.check-verdict{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:17px;padding:17px 19px;border:1px solid #acd0c2;border-radius:12px;background:#fff}.check-verdict span,.check-verdict strong{display:block}.check-verdict span{color:var(--muted);font-size:9px;font-weight:800}.check-verdict strong{margin:5px 0;font-size:22px}.check-verdict p{margin:0;color:var(--muted);font-size:10px}.check-verdict>b{padding:7px 10px;border-radius:99px;background:#eee8dd;color:var(--muted);font-size:9px;text-transform:uppercase;white-space:nowrap}.check-verdict>b.material{background:#fbefc9;color:#745f1d}.check-reasons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}.check-reasons>article{display:grid;grid-template-columns:32px 1fr;gap:10px;padding:15px;border:1px solid var(--line);border-radius:11px;background:#fff}.check-reasons>article>i{display:grid;width:28px;height:28px;place-items:center;border-radius:50%;background:var(--green-soft);color:var(--green);font-size:10px;font-style:normal;font-weight:800}.check-reasons h4,.check-reasons p{margin:0}.check-reasons h4{margin-top:6px;font-size:14px}.check-reasons p{margin-top:6px;color:var(--ink);font-size:10px;line-height:1.45}.check-reasons small{display:block;margin-top:7px;color:var(--muted);font-size:9px;line-height:1.45}.reason-status{display:inline-block;padding:4px 7px;border-radius:99px;font-size:8px;font-weight:800;text-transform:uppercase}.reason-status.confirmed,.reason-status.calculated{background:var(--green-soft);color:var(--green)}.reason-status.hypothesis{background:#fbefc9;color:#745f1d}.reason-status.signal{background:var(--accent-soft);color:var(--accent)}.check-hypotheses{margin-top:18px}.check-hypotheses>h4{margin:0 0 10px;font-size:16px}.check-hypotheses>div{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.check-hypotheses article{padding:13px;border:1px solid var(--line);border-radius:10px;background:#faf7f0}.check-hypotheses h5{margin:8px 0 5px;font-size:11px;line-height:1.35}.check-hypotheses p{margin:0;color:var(--muted);font-size:9px;line-height:1.45}
@media(max-width:1050px){.check-hypotheses>div{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.check-causes-head,.check-verdict{align-items:start;flex-direction:column}.check-causes-head>span{text-align:left}.check-reasons,.check-hypotheses>div{grid-template-columns:1fr}.check-verdict>b{white-space:normal}}

/* Демо управленческих дашбордов 09–12 */
.dashboard-tabs{overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin;padding-bottom:5px;white-space:nowrap}.tab-button{flex:0 0 auto}
.demo-dashboard{--blue:#3975a7}.demo-hero{display:flex;align-items:end;justify-content:space-between;gap:28px}.demo-hero h1{margin:0;font-size:42px;line-height:1.04;letter-spacing:-.04em}.demo-hero>div>p:last-child{max-width:720px;margin:9px 0 0;color:var(--muted)}.demo-badge{min-width:260px;padding:17px 19px;border-radius:14px;background:var(--ink);color:#fff}.demo-badge strong,.demo-badge span{display:block}.demo-badge strong{font-size:22px;color:#f0cf70}.demo-badge span{margin-top:3px;color:#c9c4bc;font-size:10px}.demo-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.demo-kpis article{padding:18px}.demo-kpis span,.demo-kpis strong,.demo-kpis small{display:block}.demo-kpis span{min-height:30px;color:var(--muted);font-size:10px}.demo-kpis strong{margin:7px 0;font-size:27px}.demo-kpis small{color:var(--muted);font-size:9px}.demo-kpis .good{background:var(--green-soft)}.demo-kpis .warning{background:#fff7dc}.demo-kpis .warning strong{color:#8a6b19}.demo-kpis .critical{background:var(--red-soft)}.demo-kpis .critical strong{color:var(--red)}
.operator-table td:first-child b,.operator-table td:first-child small{display:block}.operator-table td:first-child small{margin-top:3px;color:var(--muted);font-size:9px}.score{display:inline-grid;min-width:36px;height:30px;place-items:center;border-radius:8px;font-weight:800}.score.excellent{background:var(--green-soft);color:var(--green)}.score.good{background:#e5eef4;color:#356889}.score.attention{background:var(--red-soft);color:var(--red)}
.architecture-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.architecture-grid>article{padding:23px}.architecture-grid h2{margin:0 0 15px;font-size:23px}.architecture-note{margin:14px 0 0;color:var(--muted);font-size:11px;line-height:1.55}.pipeline-list{display:grid;gap:1px;margin:0;padding:0;overflow:hidden;border:1px solid var(--line);border-radius:11px;background:var(--line);list-style:none;counter-reset:pipeline}.pipeline-list li{display:grid;grid-template-columns:31px 1fr;gap:10px;padding:12px;background:#fff;counter-increment:pipeline}.pipeline-list li::before{content:counter(pipeline);display:grid;width:26px;height:26px;place-items:center;border-radius:50%;background:var(--green-soft);color:var(--green);font-size:9px;font-weight:800}.pipeline-list b,.pipeline-list span{display:block}.pipeline-list span{margin-top:3px;color:var(--muted);font-size:9px}.weight-list{display:grid;gap:11px}.weight-list>div{display:grid;grid-template-columns:120px 1fr 42px;align-items:center;gap:10px}.weight-list span{font-size:10px;font-weight:700}.weight-list i{height:8px;overflow:hidden;border-radius:99px;background:#eee8de}.weight-list i::after{content:"";display:block;width:var(--weight);height:100%;border-radius:inherit;background:var(--green)}.weight-list b{text-align:right;font-size:10px}.quality-warning{margin:15px 0 0;padding:12px;border-radius:9px;background:#fff7dc;color:#745f1d;font-size:10px}.requirements{margin:15px 0 0;padding-left:17px;color:var(--muted);font-size:10px}.requirements li+li{margin-top:7px}
.geo-layout,.routing-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);gap:14px}.geo-map-card,.hotspot-card,.route-board,.dispatch-map{padding:22px}.map-head{display:flex;align-items:end;justify-content:space-between;gap:14px}.map-head h2,.hotspot-card h2,.dispatch-map h2{margin:0;font-size:22px}.map-head>span{color:var(--muted);font-size:10px}.moscow-map{position:relative;margin-top:15px;overflow:hidden;border-radius:12px;background:#e9eee9}.moscow-map svg{display:block;width:100%;height:auto}.map-ring{fill:#f8f7f2;stroke:#b9c1b8;stroke-width:4}.map-river{fill:none;stroke:#9fc7df;stroke-width:16;opacity:.7}.map-road{fill:none;stroke:#d5d2ca;stroke-width:3}.heat-point circle:first-child{opacity:.15}.heat-point circle:nth-child(2){opacity:.28}.heat-point.hot circle{fill:#d65332}.heat-point.warm circle{fill:#e1a63e}.heat-point.mild circle{fill:#29725c}.heat-point text{font-size:11px;font-weight:800;text-anchor:middle;fill:#3c3732}.bakery-point circle{fill:var(--ink);stroke:#fff;stroke-width:3}.bakery-point text{font-size:11px;font-weight:800;fill:var(--ink)}.map-legend{position:absolute;right:10px;bottom:10px;display:flex;gap:8px;padding:7px 9px;border-radius:8px;background:rgba(255,255,255,.88);font-size:8px}.map-legend i{display:inline-block;width:7px;height:7px;margin-right:4px;border-radius:50%}.map-legend i.hot{background:#d65332}.map-legend i.warm{background:#e1a63e}.map-legend i.mild{background:#29725c}.hotspot-list{display:grid;gap:1px;margin-top:17px;overflow:hidden;border:1px solid var(--line);border-radius:11px;background:var(--line)}.hotspot-list>div{display:grid;grid-template-columns:28px 1fr;gap:9px;padding:12px;background:#fff}.hotspot-list>div>b{display:grid;width:25px;height:25px;place-items:center;border-radius:50%;background:#fff1dc;color:#9a6719;font-size:9px}.hotspot-list p{margin:0}.hotspot-list strong,.hotspot-list span,.hotspot-list em{display:block}.hotspot-list strong{font-size:11px}.hotspot-list span{margin-top:3px;color:var(--muted);font-size:9px}.hotspot-list em{grid-column:2;color:var(--green);font-size:9px;font-style:normal;font-weight:800}.zone-signal{display:inline-block;padding:5px 7px;border-radius:99px;background:#eee8dd;color:var(--muted);font-size:8px;font-weight:800}.zone-signal.hot{background:var(--red-soft);color:var(--red)}.zone-signal.growing{background:var(--green-soft);color:var(--green)}
.route-list{display:grid;gap:10px;margin-top:17px}.route-item{padding:14px;border:1px solid var(--line);border-left:4px solid var(--green);border-radius:11px;background:#fff}.route-item.blue{border-left-color:#3975a7}.route-item.amber{border-left-color:#d19a32}.route-item header,.route-item footer,.route-item>div{display:flex;align-items:center;gap:9px}.route-item header span{padding:4px 6px;border-radius:5px;background:var(--green-soft);color:var(--green);font-size:8px;font-weight:800}.route-item header b{font-size:11px}.route-item header em{margin-left:auto;color:var(--green);font-size:9px;font-style:normal;font-weight:800}.route-item.amber header em{color:#9a6719}.route-item>div{margin:13px 0;overflow-x:auto;font-size:9px;white-space:nowrap}.route-item>div strong{font-size:14px}.route-item>div i{display:block;min-width:18px;height:1px;background:var(--line)}.route-item footer{color:var(--muted);font-size:8px}.route-item footer span+span::before{content:"·";margin-right:9px}.dispatch-map svg{display:block;width:100%;margin-top:8px;border-radius:10px;background:#edf0eb}.dispatch-road{fill:none;stroke:#d1cec7;stroke-width:5}.route-a,.route-b,.route-c{fill:none;stroke-width:6;stroke-linecap:round;stroke-linejoin:round}.route-a{stroke:var(--green)}.route-b{stroke:#3975a7}.route-c{stroke:#d19a32}.dispatch-base circle{fill:var(--ink)}.dispatch-base text{font-size:11px;font-weight:800}.stop circle{fill:#fff;stroke-width:5}.stop.a circle{stroke:var(--green)}.stop.b circle{stroke:#3975a7}.stop.c circle{stroke:#d19a32}.stop text{font-size:10px;font-weight:800}.traffic-note{display:flex;gap:8px;margin-top:9px;color:var(--muted);font-size:9px}.traffic-note i{width:13px;height:3px;margin-top:5px;background:var(--red)}.route-chip,.incident-status{display:inline-block;padding:5px 7px;border-radius:99px;font-size:8px;font-weight:800}.route-chip.c{background:#fff1dc;color:#93641d}.route-chip.wait{background:#eee8dd;color:#716a61}.route-chip.next{background:var(--green-soft);color:var(--green)}.decision-steps{display:flex;gap:6px;margin-top:18px}.decision-steps span{flex:1;padding:9px;border-radius:8px;background:#faf7f0;text-align:center;font-size:9px;font-weight:800}
.loss-reconciliation{padding:22px}.balance-flow{display:grid;grid-template-columns:1.1fr auto repeat(9,auto);align-items:stretch;gap:7px;margin-top:18px;overflow-x:auto}.balance-flow>div{min-width:105px;padding:13px;border:1px solid var(--line);border-radius:10px;background:#fff}.balance-flow>div.source{background:var(--ink);color:#fff}.balance-flow>div.warning{background:#fff7dc}.balance-flow>div.critical{background:var(--red-soft)}.balance-flow span,.balance-flow strong{display:block}.balance-flow span{color:var(--muted);font-size:8px}.balance-flow .source span{color:#c9c4bc}.balance-flow strong{margin-top:5px;font-size:19px}.balance-flow>i,.balance-flow>b{align-self:center;font-size:18px;font-style:normal}.incident-status.video{background:#e5eef4;color:#356889}.incident-status.review{background:#fff1dc;color:#8a641f}.incident-status.danger{background:var(--red-soft);color:var(--red)}.incident-status.closed{background:var(--green-soft);color:var(--green)}.camera-zones{display:grid;grid-template-columns:1fr 1fr;gap:8px}.camera-zones span{padding:11px;border:1px solid var(--line);border-radius:9px;font-size:10px}.camera-zones b{display:inline-grid;width:23px;height:23px;margin-right:6px;place-items:center;border-radius:50%;background:var(--ink);color:#fff;font-size:8px}.vendor-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.vendor-grid article{display:flex;min-height:220px;flex-direction:column;padding:20px}.vendor-grid h3{margin:0;font-size:22px}.vendor-grid p{color:var(--muted);font-size:10px;line-height:1.55}.vendor-grid b{margin-top:auto;font-size:10px}.vendor-grid a{margin-top:12px;color:var(--green);font-size:10px;font-weight:800}.pilot-plan{display:grid;grid-template-columns:.85fr 1.15fr;gap:24px;margin-top:14px;padding:23px}.pilot-plan h2{margin:0}.pilot-plan p:last-child{color:var(--muted);font-size:10px}.pilot-metrics{display:grid;grid-template-columns:1fr 1fr;gap:8px}.pilot-metrics span{padding:13px;border-radius:9px;background:#faf7f0;color:var(--muted);font-size:9px}.pilot-metrics b{display:block;margin-bottom:4px;color:var(--green);font-size:17px}
@media(max-width:1000px){.demo-kpis{grid-template-columns:1fr 1fr}.geo-layout,.routing-layout,.architecture-grid{grid-template-columns:1fr}.vendor-grid{grid-template-columns:1fr 1fr}.pilot-plan{grid-template-columns:1fr}.balance-flow{grid-template-columns:repeat(11,auto)}}
@media(max-width:650px){.demo-hero{align-items:start;flex-direction:column}.demo-hero h1{font-size:34px}.demo-badge{width:100%;min-width:0}.demo-kpis,.vendor-grid,.pilot-metrics{grid-template-columns:1fr}.map-head{align-items:start;flex-direction:column}.geo-map-card,.hotspot-card,.route-board,.dispatch-map,.architecture-grid>article,.loss-reconciliation{padding:18px}.weight-list>div{grid-template-columns:105px 1fr 35px}.camera-zones{grid-template-columns:1fr}.decision-steps{flex-direction:column}.map-legend{position:static;justify-content:center;border-radius:0}.operator-table{min-width:900px}}
.progress-total i{width:91.667%}
.geo-layout>*,.routing-layout>*,.architecture-grid>*{min-width:0}
.privacy-hidden .demo-kpis strong,.privacy-hidden .operator-table td:nth-child(2),.privacy-hidden .operator-table td:nth-child(3),.privacy-hidden .operator-table td:nth-child(6){filter:blur(9px);opacity:.42;pointer-events:none;user-select:none}
@media(max-width:1000px){.geo-layout,.routing-layout,.architecture-grid{grid-template-columns:minmax(0,1fr)}}
.route-list{grid-template-columns:minmax(0,1fr)}.route-item{min-width:0}.route-item header{min-width:0;flex-wrap:wrap}.route-item header em{white-space:nowrap}
.hypothesis-list-item+.hypothesis-list-item{margin-top:9px}.hypothesis-list-item:not(.active){border-color:var(--line);background:#fff}.december-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-top:20px}.december-kpis>div{padding:15px;border:1px solid var(--line);border-radius:11px;background:#faf7f0}.december-kpis span,.december-kpis strong,.december-kpis small{display:block}.december-kpis span,.december-kpis small{color:var(--muted);font-size:9px}.december-kpis strong{margin:7px 0;font-size:25px}.december-trend{margin-top:10px}.december-evidence{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:14px}.december-evidence>section{padding:16px;border:1px solid var(--line);border-radius:12px;background:#fff}.december-evidence h3{margin:10px 0 7px;font-size:15px}.december-evidence p{margin:0;color:var(--muted);font-size:10px;line-height:1.5}.december-plan{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}.december-plan>div{padding:17px;border-radius:12px;background:var(--ink);color:#fff}.december-plan p,.december-plan strong,.december-plan span{display:block;margin:0}.december-plan strong{margin:6px 0;font-size:25px}.december-plan span{color:#c9c4bc;font-size:10px;line-height:1.45}
@media(max-width:900px){.december-kpis{grid-template-columns:1fr 1fr}.december-evidence{grid-template-columns:1fr}}
@media(max-width:580px){.december-kpis,.december-plan{grid-template-columns:1fr}}

/* 13 · Задачи и бэклог */
.progress-total i{width:92.307%}
.backlog-dashboard{max-width:1180px;margin:0 auto}.backlog-hero{display:flex;align-items:end;justify-content:space-between;gap:30px}.backlog-hero h1{margin:0;font-size:42px;line-height:1.04;letter-spacing:-.04em}.backlog-hero p:last-child{max-width:720px;margin:10px 0 0;color:var(--muted)}.backlog-hero>button{flex:0 0 auto;background:var(--green)}
.backlog-controls{display:flex;align-items:end;justify-content:space-between;gap:14px;margin-top:18px}.backlog-filter{display:grid;min-width:260px;gap:5px;color:var(--muted);font-size:9px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}.backlog-filter select{height:39px;padding:0 34px 0 12px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink);font:700 11px/1 Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.backlog-summary{display:flex;gap:8px;margin:0}.backlog-summary>div{display:flex;align-items:baseline;gap:8px;padding:8px 12px;border:1px solid var(--line);border-radius:9px;background:rgba(255,253,248,.62)}.backlog-summary span{color:var(--muted);font-size:9px;font-weight:700}.backlog-summary strong{font-size:17px}
.backlog-board{margin-top:14px;overflow:hidden}.backlog-table-head,.backlog-row{display:grid;grid-template-columns:180px minmax(280px,.9fr) minmax(320px,1.35fr)}.backlog-table-head{padding:12px 20px;border-bottom:1px solid var(--line);background:#faf7f0;color:var(--muted);font-size:9px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.backlog-table-head span+span{padding-left:18px}
.backlog-row{min-height:64px;border-bottom:1px solid var(--line);transition:background .2s,opacity .2s}.backlog-row:last-child{border-bottom:0}.backlog-row:hover{background:#fffefb}.backlog-row>div{min-width:0;padding:12px 16px}.backlog-row>div+div{border-left:1px solid var(--line)}.backlog-section span{display:inline-block;padding:5px 8px;border-radius:99px;background:#eee8dd;color:#5f5952;font-size:8px;font-weight:800}
.backlog-task-cell{display:flex;align-items:flex-start;gap:10px}.backlog-check{position:relative;display:block;flex:0 0 18px;width:18px;height:18px;margin-top:1px;cursor:pointer}.backlog-check input{position:absolute;opacity:0}.backlog-check i{display:grid;width:18px;height:18px;place-items:center;border:1.5px solid #b9b1a6;border-radius:5px;background:#fff}.backlog-check input:checked+i{border-color:var(--green);background:var(--green)}.backlog-check input:checked+i::after{content:'✓';color:#fff;font-size:11px;font-style:normal;font-weight:900}.backlog-check input:focus-visible+i{outline:3px solid rgba(41,114,92,.2);outline-offset:2px}.backlog-edit{padding:0;border:0;border-radius:0;background:transparent;color:var(--ink);font-size:12px;font-weight:750;line-height:1.35;text-align:left}.backlog-edit:hover{color:var(--green);opacity:1}
.backlog-comment{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;color:#5f5952;font-size:10px;line-height:1.4}.backlog-comment>div{min-width:0;overflow-wrap:anywhere}.backlog-comment a{color:var(--green);font-weight:750;text-decoration-thickness:1px;text-underline-offset:2px}.backlog-no-comment{color:#aaa299;font-style:italic}.backlog-edit-icon{flex:0 0 auto;padding:1px 0;border:0;border-radius:0;background:transparent;color:var(--muted);font-size:8px}.backlog-edit-icon:hover{color:var(--green);opacity:1}.backlog-row.completed{background:#f1eee7;opacity:.68}.backlog-row.completed .backlog-edit{text-decoration:line-through;text-decoration-color:#aaa299}.backlog-row.completed .backlog-section span{background:#ddd8ce}.backlog-loading,.backlog-empty{margin:0;padding:30px;text-align:center;color:var(--muted)}.backlog-loading.error{color:var(--red)}.backlog-empty strong,.backlog-empty span{display:block}.backlog-empty span{margin-top:4px;font-size:10px}.backlog-note{margin:10px 2px 0;color:var(--muted);font-size:9px}.backlog-form textarea{width:100%;resize:vertical;border:1px solid var(--line);border-radius:10px;background:#fff;padding:11px;color:var(--ink);font:inherit;line-height:1.45}.backlog-form{width:min(570px,100%)}
@media(max-width:760px){.backlog-hero{align-items:start;flex-direction:column}.backlog-hero h1{font-size:34px}.backlog-hero>button{width:100%}.backlog-controls{align-items:stretch;flex-direction:column}.backlog-filter{width:100%;min-width:0}.backlog-table-head{display:none}.backlog-row{grid-template-columns:1fr;margin:8px;border:1px solid var(--line);border-radius:11px}.backlog-row>div{padding:10px 12px}.backlog-row>div+div{border-left:0;border-top:1px solid var(--line)}.backlog-summary{width:100%}.backlog-summary>div{flex:1}.backlog-comment{display:block}.backlog-edit-icon{margin-top:8px}}

/* Подключение iiko */
.connections-panel{margin-top:0}.connection-row{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:18px 20px}.connection-row h3{margin:9px 0 3px;font-size:18px}.connection-row p{margin:0;color:var(--muted);font-size:10px}.connection-row>button{flex:0 0 auto;background:var(--green)}
@media(max-width:620px){.connection-row{align-items:stretch;flex-direction:column}.connection-row>button{width:100%}}
.iiko-status-board{margin-top:12px;overflow:hidden}.iiko-status-board>header{display:flex;align-items:end;justify-content:space-between;gap:20px;padding:20px}.iiko-status-board h3{margin:0;font-size:22px}.iiko-live-summary{min-width:250px;padding:11px 13px;border-radius:10px;background:var(--green-soft);color:var(--green)}.iiko-live-summary b,.iiko-live-summary span{display:block}.iiko-live-summary b{font-size:12px}.iiko-live-summary span{margin-top:3px;font-size:9px}.iiko-status-head,.iiko-status-row{display:grid;grid-template-columns:minmax(180px,.7fr) 125px minmax(320px,1.6fr);align-items:center;gap:14px}.iiko-status-head{padding:9px 20px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:#faf7f0;color:var(--muted);font-size:8px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.iiko-status-row{min-height:69px;padding:11px 20px;border-bottom:1px solid var(--line)}.iiko-status-row:last-child{border-bottom:0}.iiko-status-row>div{display:flex;align-items:center;gap:10px}.iiko-status-row>div>b{display:grid;flex:0 0 28px;width:28px;height:28px;place-items:center;border-radius:50%;background:#eee8dd;color:var(--muted);font-size:8px}.iiko-status-row>div>strong{font-size:11px}.iiko-state{justify-self:start;padding:5px 8px;border-radius:99px;font-size:8px;font-weight:800;text-transform:uppercase}.iiko-state.ready{background:var(--green-soft);color:var(--green)}.iiko-state.partial{background:#fbefc9;color:#745f1d}.iiko-state.blocked{background:var(--red-soft);color:var(--red)}.iiko-status-row p,.iiko-status-row p strong,.iiko-status-row p small{display:block;margin:0}.iiko-status-row p strong{font-size:9px}.iiko-status-row p small{margin-top:4px;color:var(--muted);font-size:9px}.iiko-status-rows>p,.iiko-status-error{margin:0;padding:24px;color:var(--muted)}.iiko-status-error{color:var(--red)!important}
@media(max-width:760px){.iiko-status-board>header{align-items:stretch;flex-direction:column}.iiko-live-summary{min-width:0}.iiko-status-head{display:none}.iiko-status-row{grid-template-columns:1fr auto}.iiko-status-row p{grid-column:1/-1;padding-left:38px}}

/* Живая очередь iiko для диспетчера */
.routing-live-queue{margin:30px 0}.routing-orders-wrap{overflow-x:auto}.routing-orders-table{min-width:1080px}.routing-orders-table td{vertical-align:top}.routing-orders-table td small{display:block;margin-top:5px;color:var(--muted);font-size:9px}.routing-orders-table td:first-child b{font-size:17px}.iiko-order-status{display:inline-flex;align-items:center;padding:6px 9px;border-radius:999px;background:#efece6;color:#5f5a53;font-size:9px;font-weight:800;white-space:nowrap}.iiko-order-status.status-OnWay{background:#dce9f5;color:#2d638d}.iiko-order-status.status-Waiting,.iiko-order-status.status-CookingCompleted{background:#dcefe8;color:#26745d}.iiko-order-status.status-Unconfirmed{background:#f7e1dd;color:#a94134}.demo-badge.live{background:#e5f2ec;border-color:#bcdccb}.demo-badge.live strong{color:#26745d}
.routing-dispatch-workspace{display:grid;grid-template-columns:minmax(340px,.78fr) minmax(520px,1.35fr);gap:14px;align-items:stretch}.routing-order-panel,.routing-map-panel{min-width:0;overflow:hidden}.routing-order-panel{padding:0}.routing-order-panel-head{padding:16px 17px;border-bottom:1px solid var(--line)}.routing-order-panel-head strong,.routing-order-panel-head span{display:block}.routing-order-panel-head strong{font-size:13px}.routing-order-panel-head span{margin-top:4px;color:var(--muted);font-size:9px}.routing-order-list{height:660px;overflow:auto;overscroll-behavior:contain}.routing-order-item{display:grid;width:100%;grid-template-columns:62px minmax(0,1fr) auto;align-items:center;gap:11px;padding:13px 14px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:#fff;color:var(--ink);font:inherit;text-align:left;transition:background .16s,box-shadow .16s}.routing-order-item:hover{background:#faf7f0;opacity:1}.routing-order-item.active{position:relative;background:#edf5f1;box-shadow:inset 4px 0 var(--green)}.routing-order-time b,.routing-order-time small,.routing-order-main strong,.routing-order-main small,.routing-order-meta em,.routing-order-meta i{display:block}.routing-order-time b{font-size:17px}.routing-order-time small,.routing-order-main small{margin-top:3px;color:var(--muted);font-size:8px}.routing-order-main{min-width:0}.routing-order-main strong{overflow:hidden;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.routing-order-main small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.routing-order-meta{text-align:right}.routing-order-meta em{margin-bottom:5px;font-size:9px;font-style:normal;font-weight:800}.routing-order-meta .iiko-order-status{font-size:7px}.routing-order-loading{margin:0;padding:34px 18px;color:var(--muted);font-size:10px;text-align:center}.routing-order-loading.error{color:var(--red)}
.routing-map-panel{display:grid;grid-template-rows:auto auto minmax(430px,1fr) auto auto;padding:0}.routing-map-summary{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:86px;padding:15px 18px;border-bottom:1px solid var(--line)}.routing-map-summary h3{margin:3px 0;font-size:19px}.routing-map-summary p{margin:0;color:var(--muted);font-size:9px}.routing-real-map{position:relative;display:grid;min-height:520px;place-items:center;overflow:hidden;background:#e9e5dd}.routing-real-map canvas{cursor:grab}.routing-real-map canvas:active{cursor:grabbing}.routing-real-map svg{display:block;width:100%;height:100%;min-height:520px}.routing-map-order-point{fill:#afa89e;opacity:.48}.routing-coordinate-line{fill:none;stroke:#d95736;stroke-width:5;stroke-dasharray:12 8}.routing-base-point{fill:#28745d;stroke:#fff;stroke-width:4}.routing-selected-point{fill:#d95736;stroke:#fff;stroke-width:4}.routing-real-map text{fill:#26221e;font-size:13px;font-weight:800}.routing-map-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:56px;padding:12px 16px;border-top:1px solid var(--line);background:#faf7f0}.routing-map-footer strong{flex:0 0 auto;color:var(--green);font-size:14px}.routing-map-footer span{color:var(--muted);font-size:8px;line-height:1.4}
.routing-map-nav{position:absolute;z-index:12;top:14px;right:14px;display:grid;overflow:hidden;border:1px solid rgba(38,34,30,.14);border-radius:12px;background:#fff;box-shadow:0 8px 24px rgba(38,34,30,.2)}.routing-map-nav button{display:grid;width:42px;height:42px;place-items:center;padding:0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:#fff;color:var(--ink);font-size:24px;font-weight:750;line-height:1}.routing-map-nav button:last-child{border-bottom:0;font-size:20px}.routing-map-nav button:hover{background:#f3efe7;opacity:1}.routing-map-nav button:active{background:#e8e1d7;transform:scale(.96)}.routing-map-gesture-hint{position:absolute;z-index:11;bottom:14px;left:50%;padding:8px 11px;transform:translateX(-50%);border-radius:99px;background:rgba(38,34,30,.84);color:#fff;font-size:8px;font-weight:750;white-space:nowrap;pointer-events:none;box-shadow:0 5px 16px rgba(38,34,30,.18)}
.routing-map-controls{display:flex;align-items:center;gap:13px;padding:10px 16px;border-bottom:1px solid var(--line);background:#faf7f0}.routing-map-check{display:flex;align-items:center;gap:7px;cursor:pointer}.routing-map-check input{position:absolute;opacity:0}.routing-map-check i{display:grid;width:18px;height:18px;place-items:center;border:1.5px solid #b9b1a6;border-radius:5px;background:#fff}.routing-map-check input:checked+i{border-color:var(--green);background:var(--green)}.routing-map-check input:checked+i::after{content:"✓";color:#fff;font-size:11px;font-style:normal;font-weight:900}.routing-map-check span{font-size:8px;font-weight:800}.routing-map-date{display:flex;align-items:center;gap:7px;margin-left:auto}.routing-map-date span{color:var(--muted);font-size:8px;font-weight:800}.routing-map-date input{height:34px;padding:0 9px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);font:800 9px/1 inherit}
.routing-map-legend{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}.routing-map-legend span,.map-order-status{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border-radius:99px;font-size:7px;font-weight:850;white-space:nowrap}.routing-map-legend span::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}.routing-map-legend .upcoming,.map-order-status.upcoming{background:#ece9e4;color:#77716a}.routing-map-legend .cooking,.map-order-status.cooking{background:#e1f3e9;color:#238356}.routing-map-legend .ready,.map-order-status.ready{background:#e2edf7;color:#2e6f9f}.routing-map-legend .completed,.map-order-status.completed{background:#ffe0ee;color:#d5186a}
.routing-route-details{max-height:360px;overflow:auto;padding:18px;border-top:1px solid var(--line);background:#fff}.routing-route-details-head{display:flex;align-items:end;justify-content:space-between;gap:20px}.routing-route-details-head h4{margin:3px 0 0;font-size:16px}.routing-route-details-head>span{padding:6px 9px;border-radius:99px;background:var(--green-soft);color:var(--green);font-size:9px;font-weight:850}.routing-route-details ol{display:grid;gap:0;margin:15px 0 0;padding:0;list-style:none}.routing-route-details li{position:relative;display:grid;grid-template-columns:25px 1fr;gap:10px;min-height:48px}.routing-route-details li:not(:last-child)::after{content:"";position:absolute;top:23px;bottom:0;left:11px;width:1px;background:#d9d2c7}.routing-route-details li>i{position:relative;z-index:1;display:grid;width:23px;height:23px;place-items:center;border:2px solid #fff;border-radius:50%;background:#ece7df;box-shadow:0 0 0 1px #d9d2c7}.routing-route-details li>i::after{content:"→";font-size:10px;font-style:normal;font-weight:900}.routing-route-details .route-step-start>i,.routing-route-details .route-step-finish>i{background:var(--green);color:#fff}.routing-route-details .route-step-start>i::after{content:"A"}.routing-route-details .route-step-finish>i::after{content:"✓"}.routing-route-details .route-step-walk>i::after{content:"↟"}.routing-route-details .route-step-metro>i{background:#e45a35;color:#fff}.routing-route-details .route-step-metro>i::after{content:"M"}.routing-route-details .route-step-transport>i{background:#447aa5;color:#fff}.routing-route-details .route-step-transport>i::after{content:"T"}.routing-route-details li strong,.routing-route-details li span{display:block}.routing-route-details li strong{font-size:10px;line-height:1.35}.routing-route-details li span{margin-top:3px;color:var(--muted);font-size:8px;line-height:1.4}
.routing-combine-card{margin-top:14px;padding:20px 22px}.routing-combine-card h3{margin:4px 0 7px;font-size:21px}.routing-combine-card p{margin:0;color:var(--muted);font-size:9px;line-height:1.5}.routing-combine-card.loading{border-top:3px solid #c9a43a}.routing-combine-card.unavailable{background:#f8f5ee}.routing-combine-card.ready{border-top:3px solid var(--green);background:linear-gradient(120deg,#fff 0,#f2f8f5 100%)}.routing-combine-card>header{display:flex;align-items:start;justify-content:space-between;gap:24px}.routing-combine-saving{flex:0 0 auto;padding:12px 15px;border-radius:12px;background:var(--green);color:#fff;text-align:right}.routing-combine-saving strong,.routing-combine-saving span{display:block}.routing-combine-saving strong{font-size:20px}.routing-combine-saving span{margin-top:3px;color:#d8eee6;font-size:8px}.routing-combine-sequence{display:grid;gap:0;margin-top:18px;border-top:1px solid var(--line)}.routing-combine-sequence>div{display:grid;grid-template-columns:32px 1fr auto;align-items:center;gap:12px;min-height:62px;border-bottom:1px solid var(--line)}.routing-combine-sequence>div>b{display:grid;width:27px;height:27px;place-items:center;border-radius:50%;background:var(--green);color:#fff;font-size:9px}.routing-combine-sequence p strong,.routing-combine-sequence p span{display:block}.routing-combine-sequence p strong{color:var(--ink);font-size:10px}.routing-combine-sequence p span{margin-top:4px;font-size:8px}.routing-combine-sequence em{padding:5px 8px;border-radius:99px;background:var(--green-soft);color:var(--green);font-size:8px;font-style:normal;font-weight:850}.routing-combine-card footer{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-top:14px}.routing-combine-card footer strong{font-size:13px}.routing-combine-card footer span{max-width:520px;color:var(--muted);font-size:8px;text-align:right}
.routing-2gis-map{display:block;width:100%;height:100%;min-height:520px;object-fit:cover}.routing-map-loading{display:grid;max-width:430px;gap:8px;padding:30px;text-align:center}.routing-map-loading b{font-size:17px}.routing-map-loading span{color:var(--muted);font-size:10px;line-height:1.5}.routing-map-loading.error b{color:var(--red)}
.routing-real-map>canvas{min-height:520px}.routing-map-flag{position:relative;width:45px;height:58px;transform:translate(-50%,-100%);padding:0;border:0;background:transparent;color:var(--ink);overflow:visible}.routing-map-flag>i{position:absolute;top:0;left:7px;width:31px;height:31px;transform:rotate(-45deg);border:3px solid #fff;border-radius:50% 50% 50% 0;background:#8f8a83;box-shadow:0 5px 13px rgba(32,28,24,.28)}.routing-map-flag>i::after{content:"";position:absolute;top:8px;left:8px;width:9px;height:9px;border-radius:50%;background:#fff}.routing-map-flag.cooking>i{background:#36a56f}.routing-map-flag.ready>i{background:#3975a7}.routing-map-flag.completed>i{background:#f02f87}.routing-map-flag>b{position:absolute;z-index:2;top:-7px;right:-1px;display:grid;min-width:23px;height:23px;padding:0 4px;place-items:center;border:2px solid #fff;border-radius:99px;background:var(--ink);color:#fff;font-size:8px}.routing-map-flag>span{position:absolute;top:38px;left:50%;padding:3px 6px;transform:translateX(-50%);border-radius:6px;background:#fff;color:var(--ink);font-size:7px;font-weight:900;white-space:nowrap;box-shadow:0 3px 10px rgba(32,28,24,.18)}
.routing-order-popup{position:relative;width:340px;max-height:520px;transform:translate(-50%,-106%);overflow:auto;padding:17px 18px;border:1px solid rgba(38,34,30,.12);border-radius:15px;background:#fffdf8;color:var(--ink);box-shadow:0 18px 48px rgba(38,34,30,.24)}.routing-order-popup::after{content:"";position:absolute;bottom:-8px;left:50%;width:16px;height:16px;transform:translateX(-50%) rotate(45deg);border-right:1px solid rgba(38,34,30,.12);border-bottom:1px solid rgba(38,34,30,.12);background:#fffdf8}.routing-order-popup h4{margin:5px 25px 13px 0;font-size:16px;line-height:1.25}.routing-popup-close{position:absolute;z-index:3;top:11px;right:11px;display:grid;width:27px;height:27px;place-items:center;padding:0;border:0;border-radius:50%;background:#eee9e0;color:var(--ink);font-size:17px}.routing-popup-orders{display:grid;gap:9px}.routing-popup-order{padding:12px;border:1px solid var(--line);border-radius:11px;background:#fff}.routing-popup-order.selected{border-color:var(--green);box-shadow:0 0 0 2px rgba(40,116,93,.12)}.routing-popup-order>header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.routing-popup-order>header span,.routing-popup-order>header strong{display:block}.routing-popup-order>header span{color:var(--muted);font-size:7px;font-weight:850}.routing-popup-order>header strong{margin-top:3px;font-size:11px}.routing-order-popup dl{display:grid;gap:0;margin:8px 0 0}.routing-order-popup dl>div{display:grid;grid-template-columns:98px 1fr;gap:10px;padding:6px 0;border-top:1px solid var(--line)}.routing-order-popup dt{color:var(--muted);font-size:7px;font-weight:800}.routing-order-popup dd{margin:0;font-size:8px;font-weight:700;line-height:1.4}.routing-order-popup dd a{color:var(--green);text-decoration:none}.routing-order-popup dd a:hover{text-decoration:underline}.routing-popup-order>button{width:100%;margin-top:8px;padding:7px;border:0;border-radius:7px;background:var(--ink);color:#fff;font-size:8px;font-weight:850}
.routing-order-item.map-status-upcoming{box-shadow:inset 3px 0 #8f8a83}.routing-order-item.map-status-cooking{box-shadow:inset 3px 0 #36a56f}.routing-order-item.map-status-ready{box-shadow:inset 3px 0 #3975a7}.routing-order-item.map-status-completed{box-shadow:inset 3px 0 #f02f87}.routing-order-item.active{box-shadow:inset 5px 0 var(--green)}
.routing-summary-actions{display:grid;justify-items:end;gap:9px}.routing-mode-switch{display:flex;gap:5px;padding:4px;border-radius:10px;background:#eee9e0}.routing-mode-switch button{padding:7px 9px;border:0;border-radius:7px;background:transparent;color:var(--muted);font-size:8px;font-weight:850}.routing-mode-switch button:hover{opacity:1;background:#fff}.routing-mode-switch button.active{background:var(--ink);color:#fff}.routing-overview-chip{padding:7px 10px;border-radius:99px;background:var(--green-soft);color:var(--green);font-size:8px;font-weight:850}
@media(max-width:1000px){.routing-dispatch-workspace{grid-template-columns:1fr}.routing-order-list{height:430px}.routing-real-map{min-height:480px}}@media(max-width:600px){.routing-order-item{grid-template-columns:52px minmax(0,1fr)}.routing-order-meta{grid-column:2;display:flex;align-items:center;justify-content:space-between;text-align:left}.routing-map-summary{align-items:flex-start;flex-direction:column}.routing-map-controls{align-items:flex-start;flex-wrap:wrap}.routing-map-date{width:100%;margin-left:0}.routing-map-date input{flex:1}.routing-summary-actions{width:100%;justify-items:start}.routing-mode-switch{width:100%;flex-wrap:wrap}.routing-map-footer,.routing-combine-card>header,.routing-combine-card footer{align-items:flex-start;flex-direction:column}.routing-combine-saving{width:100%;text-align:left}.routing-combine-sequence>div{grid-template-columns:32px 1fr}.routing-combine-sequence em{grid-column:2}.routing-combine-card footer span{text-align:left}}
.call-recording-link{display:inline-block;margin:2px 0;color:var(--green);font-size:10px;font-weight:800;text-decoration:none}.call-recording-link:hover{text-decoration:underline}.muted{color:var(--muted);font-size:9px}.call-audio-list{display:grid;gap:7px;min-width:250px}.call-audio{padding:7px;border:1px solid var(--line);border-radius:8px;background:#faf7f0}.call-audio span{display:block;margin-bottom:5px;color:var(--muted);font-size:8px;white-space:nowrap}.call-audio audio{display:block;width:240px;height:30px}
.demo-badge button{width:100%;margin-top:11px;padding:9px 11px;border:1px solid rgba(38,116,93,.25);border-radius:9px;background:#fff;color:var(--green);font-size:9px;font-weight:850}.demo-badge button:hover{background:#f7fbf9;opacity:1}.demo-badge button:disabled{opacity:.55}.demo-badge small{display:block;margin-top:7px;color:#7c756d;font-size:8px;line-height:1.35}
.call-summary-open{width:100%;margin-top:6px;padding:7px 9px;border:1px solid #c9ded5;border-radius:7px;background:#fff;color:var(--green);font-size:8px;font-weight:850}.call-summary-open:hover{background:var(--green-soft);opacity:1}.call-summary-modal{width:min(760px,100%);max-height:86vh;overflow:auto}.call-summary-body{padding:2px 0 4px}.call-summary-unavailable{padding:18px;border-radius:12px;background:#faf7f0}.call-summary-unavailable strong{font-size:14px}.call-summary-unavailable p{margin:8px 0;color:var(--ink);font-size:11px;line-height:1.5}.call-summary-unavailable small{color:var(--muted);font-size:9px;line-height:1.45}.call-summary-result>h3{margin:13px 0 15px;font-size:20px;line-height:1.35}.call-summary-topics{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:14px}.call-summary-topics span{padding:6px 9px;border-radius:99px;background:#fff0dc;color:#8a5b1e;font-size:8px;font-weight:800}.call-summary-quotes{display:grid;grid-template-columns:1fr 1fr;gap:9px}.call-summary-quote{padding:14px;border:1px solid var(--line);border-radius:11px;background:#faf7f0}.call-summary-quote span{color:var(--muted);font-size:8px;font-weight:850;text-transform:uppercase}.call-summary-quote p{margin:7px 0 0;font-size:10px;line-height:1.5}.call-summary-tags{margin:12px 0;color:var(--muted);font-size:9px}.call-summary-result details{margin-top:15px;border-top:1px solid var(--line);padding-top:12px}.call-summary-result summary{cursor:pointer;color:var(--green);font-size:9px;font-weight:850}.call-transcript{display:grid;gap:8px;margin-top:12px}.call-transcript p{margin:0;padding:10px 12px;border-radius:9px;background:#faf7f0}.call-transcript b,.call-transcript span{display:block}.call-transcript b{color:var(--muted);font-size:8px}.call-transcript span{margin-top:4px;font-size:10px;line-height:1.45}@media(max-width:620px){.call-summary-quotes{grid-template-columns:1fr}}

/* 04 · мобильный прототип курьера */
.progress-total i{width:100%}.courier-dashboard{max-width:1180px;margin:0 auto}.courier-demo-head{display:flex;align-items:end;justify-content:space-between;gap:30px}.courier-demo-head h1{max-width:760px;margin:0;font-size:42px;line-height:1.05;letter-spacing:-.04em}.courier-demo-head>div>p:last-child{max-width:730px;margin:10px 0 0;color:var(--muted);line-height:1.5}.courier-demo-note{min-width:270px;padding:17px 19px;border-radius:14px;background:var(--ink);color:#fff}.courier-demo-note strong,.courier-demo-note span{display:block}.courier-demo-note strong{font-size:14px}.courier-demo-note span{margin-top:5px;color:#c9c4bc;font-size:9px}.courier-showcase{display:grid;grid-template-columns:minmax(340px,.8fr) minmax(320px,.7fr);align-items:center;justify-content:center;gap:70px;margin-top:28px;padding:44px 7%;border:1px solid var(--line);border-radius:24px;background:radial-gradient(circle at 27% 27%,#fff 0,#f7f1e7 47%,#ede7dc 100%);box-shadow:0 18px 55px rgba(55,43,30,.08)}
.courier-phone{position:relative;width:min(390px,100%);min-height:720px;justify-self:end;overflow:hidden;border:9px solid #24211d;border-radius:42px;background:#f4f0e8;box-shadow:0 30px 65px rgba(38,32,26,.25)}.courier-phone::before{content:"";position:absolute;z-index:3;top:7px;left:50%;width:88px;height:20px;transform:translateX(-50%);border-radius:99px;background:#24211d}.courier-phone-head{display:grid;grid-template-columns:38px 1fr 38px;align-items:center;gap:10px;padding:37px 18px 16px;background:#fff;border-bottom:1px solid #e8e1d6}.courier-logo{display:grid;width:38px;height:38px;place-items:center;border-radius:50%;background:#e45a35;color:#fff;font-size:18px;font-weight:900}.courier-phone-head strong,.courier-phone-head span{display:block}.courier-phone-head strong{font-size:13px}.courier-phone-head span{margin-top:4px;color:#817b73;font-size:8px}.courier-phone-head span i{display:inline-block;width:7px;height:7px;margin-right:4px;border-radius:50%;background:#2b8a68}.courier-phone-head>button{display:grid;width:38px;height:38px;place-items:center;padding:0;border:0;border-radius:50%;background:#eee9e0;color:#5e5851;font-size:9px}.courier-phone-body{padding:18px}.courier-progress{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.courier-progress span{color:#817b73;font-size:9px;font-weight:750;text-transform:uppercase;letter-spacing:.08em}.courier-progress b{font-size:9px}.courier-order-card{padding:18px;border-radius:18px;background:#fff;box-shadow:0 9px 26px rgba(55,43,30,.08)}.courier-deadline{display:flex;align-items:center;justify-content:space-between}.courier-deadline span,.courier-deadline strong{display:block}.courier-deadline span{color:#817b73;font-size:8px}.courier-deadline strong{margin-top:2px;font-size:28px;line-height:1}.courier-deadline>b{padding:7px 9px;border-radius:99px;background:#fff0dc;color:#8e631e;font-size:8px}.courier-order-card h2{margin:20px 0 5px;font-size:22px;letter-spacing:-.025em}.courier-order-card>p{margin:0;color:#817b73;font-size:9px}.courier-order-meta{display:flex;align-items:center;justify-content:space-between;margin-top:15px;padding-top:13px;border-top:1px solid #eee8de;font-size:9px}.courier-order-meta>strong{color:var(--green)}.courier-comment{margin-top:13px;padding:11px;border-radius:10px;background:#f5f1e9}.courier-comment span{color:#817b73;font-size:8px;font-weight:750}.courier-comment p{margin:4px 0 0;font-size:9px;line-height:1.4}.courier-route-button{display:grid;grid-template-columns:38px 1fr;grid-template-rows:auto auto;align-items:center;margin-top:12px;padding:14px;border-radius:14px;background:var(--ink);color:#fff;text-decoration:none}.courier-route-button>span{display:grid;grid-row:1/3;width:34px;height:34px;place-items:center;border-radius:10px;background:#fff;color:var(--ink);font-size:18px}.courier-route-button b{font-size:12px}.courier-route-button small{margin-top:3px;color:#c9c4bc;font-size:8px}.courier-primary-action{width:100%;margin-top:12px;padding:16px;border-radius:14px;background:var(--green);font-size:14px;font-weight:900}.courier-primary-action.state-done{background:#ece6dd;color:#756e65}.courier-secondary-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:9px}.courier-secondary-actions a,.courier-secondary-actions button{display:grid;min-height:39px;place-items:center;padding:10px;border:1px solid #dcd4c7;border-radius:11px;background:#fff;color:#4f4943;font-size:8px;font-weight:800;text-decoration:none}.courier-secondary-actions button{width:100%}.courier-next-card{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:15px;padding:12px 2px 0;border-top:1px solid #ddd5ca}.courier-next-card span,.courier-next-card strong{display:block}.courier-next-card span{color:#817b73;font-size:8px}.courier-next-card strong{margin-top:3px;font-size:9px}.courier-next-card>b{color:#817b73;font-size:8px}.courier-toast{position:absolute;right:16px;bottom:16px;left:16px;padding:13px 15px;border-radius:12px;background:#24211d;color:#fff;font-size:9px;font-weight:750;text-align:center;box-shadow:0 10px 25px rgba(0,0,0,.22)}
.courier-decisions{max-width:420px}.courier-decisions h2{margin:0 0 18px;font-size:31px}.courier-decisions>div{display:grid;grid-template-columns:38px 1fr;gap:12px;padding:14px 0;border-top:1px solid rgba(97,87,76,.15)}.courier-decisions>div>span{display:grid;width:32px;height:32px;place-items:center;border-radius:50%;background:#fff;color:var(--green);font-size:9px;font-weight:900}.courier-decisions p{margin:0}.courier-decisions strong,.courier-decisions small{display:block}.courier-decisions strong{font-size:12px}.courier-decisions small{margin-top:5px;color:#756f67;font-size:9px;line-height:1.45}.courier-prototype-caption{margin-top:20px!important;padding:14px;border-radius:11px;background:#e5f2ec;color:#276f5a;font-size:9px!important;font-weight:750;line-height:1.5}@media(max-width:880px){.courier-demo-head{align-items:start;flex-direction:column}.courier-demo-note{width:100%;min-width:0}.courier-showcase{grid-template-columns:1fr;gap:35px;padding:30px 20px}.courier-phone{justify-self:center}.courier-decisions{max-width:520px;justify-self:center}}@media(max-width:480px){.courier-demo-head h1{font-size:34px}.courier-showcase{margin-right:-12px;margin-left:-12px;padding:18px 8px;border-radius:0}.courier-phone{width:100%;min-height:690px;border-width:6px;border-radius:32px}.courier-phone-body{padding:15px}.courier-decisions{padding:0 12px}}
.loss-cancellation-scroll{max-height:680px;overflow:auto}.loss-cancellation-scroll table{min-width:1260px}.loss-cancellation-scroll thead{position:sticky;top:0;z-index:2;background:var(--card)}
.zero-cancellation-row{background:#faf8f3;color:#6f6a63}.zero-cancellation-row td:nth-child(4) strong,.zero-cancellation-row td:nth-child(4) small{display:block}.zero-cancellation-row td:nth-child(4) small{margin-top:4px;color:var(--muted);font-size:8px;white-space:nowrap}.writeoff-structure-scroll{max-height:560px;overflow:auto}.writeoff-structure-scroll table{min-width:760px}.writeoff-structure-scroll thead{position:sticky;top:0;z-index:2;background:var(--card)}.writeoff-share{display:grid;grid-template-columns:minmax(110px,1fr) 48px;align-items:center;gap:8px}.writeoff-share>span{height:7px;overflow:hidden;border-radius:99px;background:#eee8dd}.writeoff-share i{display:block;width:var(--share);height:100%;border-radius:inherit;background:var(--red)}.writeoff-share b{font-size:9px;text-align:right}
.writeoff-insight{display:flex;align-items:center;justify-content:space-between;gap:22px;margin-bottom:12px;padding:19px 21px;border:1px solid #efb2ab;border-radius:14px;background:var(--red-soft)}.writeoff-insight h3{margin:3px 0 7px;font-size:20px}.writeoff-insight p{margin:0;color:#6f4b46;font-size:10px;line-height:1.55}.writeoff-groups{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-bottom:12px}.writeoff-group{position:relative;padding:16px;overflow:hidden}.writeoff-group span,.writeoff-group strong,.writeoff-group small{display:block}.writeoff-group span{min-height:30px;color:var(--muted);font-size:9px}.writeoff-group strong{margin:6px 0;font-size:19px}.writeoff-group b{position:absolute;top:14px;right:14px;color:var(--muted);font-size:9px}.writeoff-group small{color:var(--muted);font-size:8px}.writeoff-group.non-food{border-top:3px solid var(--red)}.writeoff-group.raw{border-top:3px solid #d28a32}.writeoff-group.finished{border-top:3px solid var(--green)}.writeoff-group.drinks{border-top:3px solid #6e91b3}.writeoff-group.free{border-top:3px solid #9b79a9}.writeoff-group-chip{display:inline-block;padding:5px 7px;border-radius:99px;background:#eee8dd;color:var(--muted);font-size:8px;font-weight:800;white-space:nowrap}.writeoff-group-chip.non-food{background:var(--red-soft);color:var(--red)}.writeoff-group-chip.raw{background:#fff0dc;color:#9a611b}.writeoff-group-chip.finished{background:var(--green-soft);color:var(--green)}.writeoff-group-chip.drinks{background:#e6eef5;color:#476b8c}.writeoff-group-chip.free{background:#f0e8f3;color:#755580}@media(max-width:1000px){.writeoff-groups{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:620px){.writeoff-insight{align-items:flex-start;flex-direction:column}.writeoff-groups{grid-template-columns:1fr}}

/* Маршруты: отдельные способы поездки и явные демо-заказы */
.routing-popup-route-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:9px}.routing-popup-route-actions button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:38px;padding:7px;border:0;border-radius:8px;background:var(--ink);color:#fff;font-size:8px;font-weight:850}.routing-popup-route-actions button:first-child{background:#3975a7}.routing-popup-route-actions button:hover{transform:translateY(-1px);opacity:.9}.routing-popup-route-actions i{font-size:14px;font-style:normal}.routing-popup-route-actions span{text-transform:uppercase;letter-spacing:.04em}.routing-order-item.demo{background:#fffaf0}.routing-demo-tag{display:inline-block;margin-left:5px;padding:2px 4px;border-radius:4px;background:#f3d77c;color:#674f0c;font-size:6px;font-style:normal;font-weight:900;vertical-align:2px}

/* Компактный поп-ап справа от флажка */
.routing-order-popup{width:310px;max-height:460px;transform:translate(34px,-50%);padding:12px 13px;border-radius:13px}.routing-order-popup::after{display:none}.routing-order-popup h4{margin:3px 24px 8px 0;font-size:14px}.routing-popup-close{top:7px;right:7px;width:25px;height:25px;font-size:15px}.routing-popup-orders{gap:6px}.routing-popup-order{padding:9px;border-radius:9px}.routing-popup-order>header{gap:7px}.routing-popup-order>header span{font-size:6px}.routing-popup-order>header strong{margin-top:2px;font-size:10px}.routing-order-popup dl{margin-top:5px}.routing-order-popup dl>div{grid-template-columns:82px 1fr;gap:7px;padding:4px 0}.routing-order-popup dt{font-size:6px}.routing-order-popup dd{font-size:7px;line-height:1.3}.routing-order-popup .map-order-status{padding:4px 6px;font-size:6px}@media(max-width:700px){.routing-order-popup{width:min(310px,calc(100vw - 32px));max-height:420px;transform:translate(-50%,-106%)}}

/* Отдельный диспетчерский домен */
.delivery-portal .dashboard-tabs,.delivery-portal .privacy-row,.delivery-portal .period-panel{display:none!important}.delivery-portal main{max-width:1600px;padding-top:22px}.delivery-portal #routingTab>section:not(.demo-hero):not(.routing-live-queue){display:none!important}.delivery-portal .demo-hero{margin-bottom:20px}.delivery-portal .routing-live-queue{margin-top:0}.delivery-portal .topbar .mode-pill{background:#e2edf7;color:#2e6f9f}

/* Журнал входов в диспетчерскую */
.monitoring-dashboard{max-width:1120px;margin:0 auto}.monitoring-hero{display:flex;align-items:end;justify-content:space-between;gap:24px}.monitoring-hero h1{margin:0;font-size:42px;line-height:1.05;letter-spacing:-.04em}.monitoring-hero p:last-child{max-width:720px;margin:9px 0 0;color:var(--muted)}.monitoring-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:24px}.monitoring-kpis article{padding:18px}.monitoring-kpis span,.monitoring-kpis strong,.monitoring-kpis small{display:block}.monitoring-kpis span{color:var(--muted);font-size:9px}.monitoring-kpis strong{margin:6px 0;font-size:27px}.monitoring-kpis small{color:var(--muted);font-size:8px}.monitoring-kpis .good{background:var(--green-soft)}.monitoring-kpis .danger{background:var(--red-soft)}.monitoring-kpis .danger strong{color:var(--red)}.monitoring-log{max-height:620px;overflow:auto}.monitoring-log table{min-width:1000px}.monitoring-log thead{position:sticky;top:0;z-index:2;background:var(--card)}.monitoring-log tr.late-login{background:#fff0ee}.monitoring-log tr.late-login td:nth-child(2) strong{color:var(--red)}.monitoring-log td:nth-child(3) b{color:var(--green);font-size:8px}.login-control{display:inline-flex;padding:5px 8px;border-radius:99px;font-size:7px;font-weight:850;text-transform:uppercase}.login-control.normal{background:var(--green-soft);color:var(--green)}.login-control.late{background:var(--red-soft);color:var(--red)}.monitoring-error{color:var(--red)}
.system-status-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.system-status-card{min-height:132px;padding:18px}.system-status-card>div{display:flex;align-items:center;gap:7px}.system-status-card i{width:8px;height:8px;border-radius:50%;background:#a5a098}.system-status-card span,.system-status-card strong,.system-status-card small{display:block}.system-status-card span{color:var(--muted);font-size:9px;font-weight:700}.system-status-card strong{margin:18px 0 5px;font-size:20px;line-height:1.15}.system-status-card small{color:var(--muted);font-size:8px}.system-status-card.online{background:var(--green-soft)}.system-status-card.online i{background:var(--green);box-shadow:0 0 0 4px rgba(39,126,94,.12)}.system-status-card.warning{background:#fff5dd}.system-status-card.warning i{background:#d69c2f;box-shadow:0 0 0 4px rgba(214,156,47,.13)}.monitoring-demo-badge{display:inline-flex;padding:5px 9px;border-radius:99px;background:#ede9e2;color:var(--muted);font-size:8px;font-weight:850;letter-spacing:.08em;text-transform:uppercase}.backup-monitor{overflow:hidden}.backup-row{display:grid;grid-template-columns:32px minmax(240px,1fr) 160px 110px;align-items:center;gap:14px;padding:16px 18px;border-bottom:1px solid var(--line)}.backup-row:last-child{border-bottom:0}.backup-row>i{display:grid;width:27px;height:27px;place-items:center;border-radius:50%;background:var(--green-soft);color:var(--green);font-style:normal;font-weight:900}.backup-row>span b,.backup-row>span small{display:block}.backup-row>span b{font-size:11px}.backup-row>span small{margin-top:3px;color:var(--muted);font-size:8px}.backup-row>strong{font-size:10px}.backup-row>em{color:var(--muted);font-size:8px;font-style:normal;text-align:right}.backup-row.warning{background:#fffaf0}.backup-row.warning>i{background:#ffebbe;color:#9a6712}
@media(max-width:900px){.monitoring-kpis,.system-status-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.backup-row{grid-template-columns:32px 1fr}.backup-row>strong,.backup-row>em{grid-column:2;text-align:left}}@media(max-width:700px){.monitoring-hero{align-items:stretch;flex-direction:column}.monitoring-hero h1{font-size:34px}.monitoring-kpis,.system-status-grid{grid-template-columns:1fr}.monitoring-hero>button{width:100%}}

/* Диспетчерская: карта на весь экран, очередь поверх карты */
body.routing-active{overflow:hidden}body.routing-active main{max-width:none;height:calc(100vh - 70px);padding:0}body.routing-active .dashboard-tabs,body.routing-active .privacy-row,body.routing-active .period-panel,body.routing-active .sources-footer{display:none!important}body.routing-active #dashboard,body.routing-active #routingTab,body.routing-active .routing-live-queue{height:100%;margin:0}body.routing-active .mode-pill{cursor:pointer}
.routing-fullscreen .routing-dispatch-workspace{position:relative;display:block;width:100%;height:100%;min-height:560px}.routing-fullscreen .routing-map-panel{position:absolute;z-index:1;inset:0;display:block;overflow:hidden;padding:0;border:0;border-radius:0}.routing-fullscreen .routing-real-map{position:absolute;inset:0;width:100%;height:100%;min-height:0}.routing-fullscreen .routing-real-map>canvas,.routing-fullscreen .routing-2gis-map,.routing-fullscreen .routing-real-map svg{width:100%;height:100%;min-height:0}.routing-fullscreen .routing-map-summary{display:none!important}.routing-fullscreen .routing-route-details{display:none!important}
.routing-fullscreen .routing-order-panel{position:absolute;z-index:30;top:14px;bottom:14px;left:14px;display:flex;width:min(390px,calc(100vw - 82px));flex-direction:column;overflow:hidden;border-radius:16px;background:rgba(255,253,248,.96);box-shadow:0 18px 55px rgba(38,34,30,.22);backdrop-filter:blur(10px);transition:transform .22s ease,opacity .22s ease}.routing-fullscreen .routing-order-list{height:auto;min-height:0;flex:1}.routing-fullscreen .routing-order-panel-head{flex:0 0 auto}.routing-queue-note{flex:0 0 auto;margin:0;padding:10px 14px;border-top:1px solid var(--line);color:var(--muted);font-size:8px;line-height:1.35}.routing-orders-toggle{position:absolute;z-index:31;top:50%;left:404px;display:grid;width:38px;height:64px;place-items:center;transform:translateY(-50%);padding:0;border:1px solid rgba(38,34,30,.12);border-radius:0 12px 12px 0;background:#fffdf8;color:var(--ink);font-size:29px;line-height:1;box-shadow:6px 8px 20px rgba(38,34,30,.16);transition:left .22s ease}.routing-dispatch-workspace.orders-collapsed .routing-order-panel{transform:translateX(calc(-100% - 20px));opacity:0;pointer-events:none}.routing-dispatch-workspace.orders-collapsed .routing-orders-toggle{left:0}
.routing-fullscreen .routing-map-controls{position:absolute;z-index:20;top:14px;right:68px;display:flex;max-width:calc(100vw - 520px);flex-wrap:wrap;justify-content:flex-end;padding:8px 10px;border:1px solid rgba(38,34,30,.12);border-radius:12px;background:rgba(255,253,248,.94);box-shadow:0 8px 26px rgba(38,34,30,.18);backdrop-filter:blur(10px)}.routing-refresh-button{display:flex;align-items:center;gap:5px;height:34px;padding:0 10px;border-radius:8px;background:var(--ink);font-size:8px}.routing-auto-refresh{align-self:center;color:var(--muted);font-size:7px;font-weight:750;white-space:nowrap}.routing-fullscreen .routing-map-footer{position:absolute;z-index:18;right:16px;bottom:14px;left:auto;display:flex;min-height:0;max-width:min(560px,calc(100vw - 32px));padding:8px 11px;border:1px solid rgba(38,34,30,.12);border-radius:10px;background:rgba(255,253,248,.9);box-shadow:0 6px 20px rgba(38,34,30,.14);backdrop-filter:blur(8px)}.routing-fullscreen .routing-map-gesture-hint{bottom:14px;left:50%}
.routing-popup-number,.routing-popup-address,.routing-popup-times span,.routing-popup-times b{display:block}.routing-popup-number{padding-right:27px;font-size:14px}.routing-popup-address{margin:7px 0 9px;font-size:10px;line-height:1.4}.routing-popup-times{padding-top:8px;border-top:1px solid var(--line)}.routing-popup-times span{font-size:11px}.routing-popup-times b{margin-top:3px;color:var(--muted);font-size:8px}.routing-popup-metro{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}.metro-station{display:inline-flex;align-items:center;gap:5px;padding:4px 7px 4px 4px;border-radius:99px;background:#f3efe8;font-size:8px}.metro-station i,.metro-icon{display:grid;width:18px;height:18px;place-items:center;border-radius:50%;background:var(--metro-color,#d94b39);color:#fff;font-size:9px;font-style:normal;font-weight:900}.routing-fullscreen .routing-order-popup{width:285px;max-height:430px;padding:11px}.routing-fullscreen .routing-popup-orders{gap:6px}.routing-fullscreen .routing-popup-order{padding:10px}.routing-fullscreen .routing-popup-order.selected{border-color:var(--green)}
.delivery-portal main{max-width:none!important;height:calc(100vh - 70px);padding:0!important}.delivery-portal #routingTab,.delivery-portal .routing-live-queue{height:100%;margin:0}.delivery-portal #routingTab>section:not(.routing-live-queue){display:none!important}
@media(max-width:900px){.routing-fullscreen .routing-map-controls{right:14px;max-width:calc(100vw - 82px)}.routing-auto-refresh{display:none}.routing-fullscreen .routing-order-panel{width:min(350px,calc(100vw - 70px))}.routing-orders-toggle{left:364px}}@media(max-width:620px){.routing-fullscreen .routing-order-panel{top:9px;bottom:9px;left:9px;width:calc(100vw - 58px)}.routing-orders-toggle{left:calc(100vw - 49px)}.routing-fullscreen .routing-map-controls{top:9px;right:9px;max-width:calc(100vw - 58px)}.routing-fullscreen .routing-map-controls .routing-map-check span,.routing-refresh-button span{display:none}.routing-fullscreen .routing-map-footer{right:9px;bottom:9px;max-width:calc(100vw - 18px)}.routing-fullscreen .routing-map-gesture-hint{display:none}.routing-fullscreen .routing-order-popup{width:min(280px,calc(100vw - 28px))}}
