/* Новые элементы кабинета поверх макета. Раскладка макета не меняется:
   здесь только то, чего в макете не было (вход, меню аватара, «Скоро»,
   подробности карточки), и пустые состояния вместо цифр. */

[hidden]{display:none!important}
button{font:inherit;color:inherit}
.canvas{overflow:clip}

/* --- вход --- */
.login-screen{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;padding:16px;background:radial-gradient(ellipse at 48% 43%,#ececed 0%,#d7d8da 70%,#caccce 100%);z-index:20}
.login-card{width:min(440px,100%);padding:34px 32px 28px;border-radius:28px;background:linear-gradient(130deg,#f9f8f5f2,#f1f0eae6);box-shadow:0 18px 40px #30383930,inset 0 1px 2px #fff;color:#092033;font-family:Roboto,Arial,sans-serif}
.login-logo{width:52px;height:53px}
.login-card h1{font-size:22px;line-height:28px;margin:16px 0 8px;font-weight:600;letter-spacing:-.3px}
.login-lead{font-size:14px;line-height:21px;color:#5a6a75;margin-bottom:22px}
.login-card label{display:block;font-size:13px;color:#435464;margin-bottom:6px}
.login-card input{width:100%;height:48px;border-radius:16px;border:1px solid #cfd3d0;background:#fff;padding:0 16px;font-size:15px;color:#092033}
.login-card input:focus-visible{outline:2px solid #2f86e8;outline-offset:1px}
.login-submit,.login-demo{width:100%;height:48px;margin-top:12px;border-radius:25px;border:0;cursor:pointer;font-size:15px}
.login-submit{background:linear-gradient(#3b4144,#2f3538);color:#fff;box-shadow:inset 0 2px 2px #ffffff20}
.login-submit:disabled{opacity:.7;cursor:progress}
.login-or{margin-top:20px;text-align:center}
.login-or>span{display:block;font-size:12px;color:#7a8890;margin-bottom:2px}
.login-demo{background:#e6e5df;color:#1f3340;box-shadow:inset 0 1px 2px #fff9}
.login-or p{font-size:12px;color:#7a8890;margin-top:8px}
.login-error{margin-top:16px;padding:12px 14px;border-radius:14px;background:#fbe1e3;color:#9b1c25;font-size:14px;line-height:20px}

/* --- шапка --- */
.brand>span{font-size:19px!important;letter-spacing:.2px}
.topnav button.navitem{border:0;cursor:pointer;color:inherit;font-family:inherit}
.topnav button.navitem:focus-visible{outline:2px solid #2f86e8;outline-offset:2px}
.notification.quiet:after{display:none}
.toptools .avatar{width:48px;height:49px;border-radius:50%;border:0;background:linear-gradient(130deg,#6a6e6b88,#767a7755);display:flex;align-items:center;justify-content:center;color:#f3f3f0;font-size:16px;cursor:pointer}
.toptools .avatar:focus-visible{outline:2px solid #fff;outline-offset:2px}
@media(max-width:900px){.toptools .avatar{width:30px;height:30px;font-size:12px;background:#d2d3cd;color:#273b43}}

.account-menu{position:fixed;z-index:30;min-width:240px;max-width:320px;padding:12px;border-radius:20px;background:#f8f8f5f7;box-shadow:0 14px 36px #17382c33;backdrop-filter:blur(14px);font-family:Roboto,Arial,sans-serif;color:#092033}
.account-title{font-size:13px;color:#5a6a75;padding:4px 8px 10px;border-bottom:1px solid #e1e2dc;margin-bottom:6px}
.account-menu button{display:flex;flex-direction:column;align-items:flex-start;width:100%;border:0;background:transparent;text-align:left;padding:9px 10px;border-radius:12px;font-size:14px;cursor:pointer}
.account-menu button:hover,.account-menu button:focus-visible{background:#ebebe6;outline:none}
.account-shop small{font-size:11px;color:#7a8890}
.account-shop[aria-checked="true"]{font-weight:600}
.account-shop.no-data{color:#8a969c}
.account-shops{border-bottom:1px solid #e1e2dc;margin-bottom:6px;padding-bottom:6px}
.account-menu .danger{color:#b4232c}

/* --- пустые состояния: «считается», «нет фото» --- */
/* Пустые состояния — шрифтом и цветом подписей того же блока макета, не крупнее. */
.metric strong.pending,.daily-stat strong.pending{font-size:13px!important;line-height:16px!important;font-weight:400!important;letter-spacing:0!important;color:#435464!important;white-space:nowrap}
.feature-summary .feature-cell strong.pending{font-size:11px;line-height:16px;font-weight:400;letter-spacing:0;color:#607b8b;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.feature-summary .feature-cell strong.pending+p{display:none}
.trip-days b.pending{font-size:12px!important;line-height:16px!important;font-weight:400!important;letter-spacing:0!important;color:inherit}
.metric-title .period{color:#7a8890;font-weight:400}
.trust-badge{float:right;border:0;background:#f6ead7;color:#9a5a12;border-radius:10px;padding:1px 7px;font-size:11px;line-height:15px;cursor:pointer}
.trust-badge[data-вид="точно"]{background:#ddefe4;color:#1f6b46}
.trust-badge[data-вид="неизвестна"]{background:#eceeec;color:#6c7b82}
.trip-empty{font-size:13px;color:#5a6a75;padding:10px 6px}
.trip-noimg{width:38px;height:38px;border-radius:10px;background:#e9e8e2;flex:none}
.trip-product>span{overflow:hidden;text-overflow:ellipsis}
.route-note{position:absolute;left:14px;right:14px;bottom:6px;font-size:9px;line-height:11px;color:#6c7b88;text-align:center;pointer-events:none}
.route-tracker{position:relative}

/* --- плитки --- */
.figure-trigger{cursor:pointer}
.figure-trigger:focus-visible{outline:2px solid #408d85;outline-offset:3px}
.pending-tile .column-reading strong{font-size:12px!important;line-height:15px!important;font-weight:500!important;letter-spacing:0!important;white-space:normal}

/* --- карточка: шрифты из макета; здесь только обрезка и раскладка --- */
.product .tip .card-copy{display:flex;flex-direction:column;min-width:0;width:100%;height:100%;overflow:hidden}
.card-copy .tip-product-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;flex:none}
.card-copy h3{white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis;flex:none}
.card-copy .advice-details{flex:1 1 auto;min-height:0;overflow:hidden}
/* Нижний отступ абзаца из макета показывал бы краешек следующей строки под многоточием. */
.card-copy .advice-text{display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden;cursor:pointer;margin:0;padding-bottom:0!important}
.card-copy .advice-text:hover{text-decoration:underline;text-decoration-color:currentColor;text-decoration-thickness:1px}
.card-copy .advice-text:focus-visible{outline:2px solid #2f86e8;outline-offset:2px;border-radius:4px}
.card-actions{display:flex;flex-wrap:nowrap;align-items:center;gap:4px;margin-top:auto;padding-top:6px;flex:none;min-width:0;overflow:hidden}
.card-actions button{flex:none;border:0;border-radius:14px;height:24px;padding:0 8px;font-size:11px;white-space:nowrap;cursor:pointer;background:#ffffffd0;color:#1f3340;box-shadow:0 1px 3px #0001}
.card-actions .primary{height:28px;padding:0 12px;font-size:12px;font-weight:600;background:linear-gradient(#3b4144,#2f3538);color:#fff}
.card-actions .more{display:none;width:28px;padding:0;font-size:14px;letter-spacing:1px}
.card-actions.compact .secondary{display:none}
.card-actions.compact .more{display:inline-block}
.card-actions button:focus-visible{outline:2px solid #2f86e8;outline-offset:1px}
#card-menu{position:fixed;inset:auto;margin:0;padding:6px;border:1px solid #d3e4df;border-radius:16px;background:#f8f8f5f7;box-shadow:0 12px 30px #17382c26}
#card-menu button{display:block;width:100%;border:0;background:transparent;text-align:left;padding:8px 10px;border-radius:10px;font-size:13px;cursor:pointer}
#card-menu button:hover,#card-menu button:focus-visible{background:#ebebe6;outline:none}
.product.muted{opacity:.72}
.product-image.no-image{display:flex;align-items:center;justify-content:center;background:#e9e8e2;color:#7a8890;font-size:28px;font-weight:600}
.product .product-stats.dead-list{display:block;overflow:auto;padding:12px 14px;border-radius:14px;background:#f3f2ee;font-size:12px;color:#435464}
.dead-list ul{margin:4px 0 0;padding-left:18px;line-height:17px}
.dead-list li{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* --- лента: пометки и спокойное пустое состояние --- */
.feed-note{font-size:12px;line-height:17px;color:#5a6a75;padding:2px 14px 4px}
.feed-calm{border-radius:22px;background:linear-gradient(110deg,#faf9f5d4,#f8f7f4c7);padding:26px 30px;color:#263e49}
.feed-calm h2{font-size:18px;font-weight:600;margin-bottom:6px}
.feed-calm p{font-size:14px;line-height:21px;color:#5a6a75}
.feed-problem h2{color:#9b1c25}
.feed-retry,.feed-muted-toggle{margin-top:12px;border:0;border-radius:20px;height:38px;padding:0 18px;background:#e6e5df;cursor:pointer;font-size:13px}
.feed-muted-toggle{justify-self:start;margin:4px 0 0 8px}

/* --- всплывашки: «Скоро», подробности, расчёт плитки --- */
#soon,#details{position:fixed;inset:auto;margin:0;padding:18px 20px;border:1px solid #d3e4df;border-radius:20px;background:#f6faf7f7;color:#20343d;box-shadow:0 12px 35px #17382c26;backdrop-filter:blur(14px);font-family:Roboto,Arial,sans-serif}
#soon::backdrop,#details::backdrop{background:transparent}
.soon-kicker{font-size:11px;letter-spacing:.4px;text-transform:uppercase;color:#7a8890;margin:0 0 4px}
#soon h2{font-size:16px;font-weight:600;margin:0 0 6px}
#soon p:last-child{font-size:13px;line-height:19px;color:#4c5f68;margin:0}
#details{max-height:min(80vh,640px);overflow:auto}
#details h2{font-size:16px;line-height:21px;font-weight:600;margin:0 0 8px;padding-right:24px}
#details p{font-size:13px;line-height:19px;color:#4c5f68;margin:0 0 8px}
#details .details-lead{color:#1f3340;font-weight:600}
#details .caveat{color:#9a5a12}
#details .caveat:before{content:"⚠ "}
#details ul{font-size:13px;line-height:19px;padding-left:18px;margin:0 0 8px}
.figure-trust{font-size:12px;line-height:17px;margin:10px 0 0;color:#20534d}
.figure-trust[data-вид="примерно"]{color:#9a5a12}
.figure-trust[data-вид="неизвестна"]{color:#6c7b82}
.figure-steps{margin-top:10px;padding-top:10px;border-top:1px solid #d6e5df;max-height:46vh;overflow:auto}
.calc{margin-top:8px;padding:6px 12px;border-radius:14px;background:#ffffffb8}
.calc-row{padding:7px 0;border-bottom:1px dashed #d8dcd6}
.calc-row:last-child{border-bottom:0}
.calc-head{display:flex;justify-content:space-between;gap:10px;font-size:12px;color:#344a55}
.calc-head b{font-weight:600;white-space:nowrap}
#details .calc-trust,#stock-preview .calc-trust{font-size:11px;line-height:15px;margin:2px 0 0;color:#4d6a64}
.calc-trust[data-вид="примерно"]{color:#9a5a12!important}
.calc-trust[data-вид="неизвестна"]{color:#7b8a90!important}
#details .calc-step,#stock-preview .calc-step{font-size:11px;line-height:15px;margin:2px 0 0;color:#5a6a75}
#details .calc-kitchen{font-size:11px;line-height:15px;color:#6c7b82;font-style:italic}
.addon{margin-top:10px;padding:10px 12px;border-radius:14px;background:#fff6eccc;color:#1f3340}
.addon h4{font-size:13px;margin:0 0 4px}
.addon-item{display:flex;gap:8px;align-items:flex-start;font-size:12px;line-height:16px;margin-top:6px;cursor:pointer}
.addon-item small{color:#5a6a75}
.addon-gain{color:#1f6b46!important}
.edit-order{margin:8px 0;padding:10px 12px;border-radius:14px;background:#eef4f8;display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:12px;color:#1f3340}
.edit-periods{display:flex;gap:6px;width:100%}
.edit-periods button{border:1px solid #cfd3d0;background:#fff;border-radius:12px;height:30px;padding:0 10px;cursor:pointer;font-size:12px}
.edit-periods button[aria-pressed="true"]{background:#2f3538;color:#fff;border-color:#2f3538}
.edit-order input{width:90px;height:30px;border-radius:10px;border:1px solid #cfd3d0;padding:0 8px}
.edit-result{width:100%;margin:0!important}
.addon .primary,.edit-order .primary{border:0;border-radius:16px;height:30px;padding:0 14px;font-size:12px;cursor:pointer;background:linear-gradient(#3b4144,#2f3538);color:#fff}

/* --- сообщение о результате действия --- */
#toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:40;max-width:min(560px,calc(100vw - 32px));padding:12px 18px;border-radius:18px;background:#263036f2;color:#fff;font-size:13px;line-height:19px;box-shadow:0 10px 30px #0003}

/* --- нижняя панель: все кнопки макета, часть — «скоро» --- */
.bottom-bar button.bar-widget,.bottom-bar button.bar-add{border:0;cursor:pointer}
.bottom-bar button.bar-widget{padding-top:0;padding-bottom:0}
.bottom-bar button.bar-add{background:transparent;border:1px dashed #b9bdb577}
.bottom-bar button:focus-visible{outline:2px solid #2f86e8;outline-offset:2px}
.order-menu button{display:block;width:100%;border:0;background:transparent;text-align:left;padding:6px 8px;border-radius:8px;cursor:pointer;font-size:12px}
.order-menu button.selected{font-weight:600}

/* --- правки по сверке с макетом на 1440 --- */
.metric.roi .roi-ring.pending circle{stroke:#e3e3df!important}
#cargo-number{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block;vertical-align:bottom}
.brand>span{font-size:16px!important;letter-spacing:.6px!important;opacity:1}
.feed-excluded{display:flex;align-items:center;gap:12px;border-radius:18px;background:#f3f2ee;padding:12px 18px;font-size:13px;color:#263e49}
.feed-excluded span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.feed-excluded small{color:#6c7b82;white-space:nowrap}
.feed-excluded button{border:0;border-radius:14px;height:28px;padding:0 12px;background:linear-gradient(#3b4144,#2f3538);color:#fff;font-size:12px;cursor:pointer}
/* «Все заявки →» в макете перекрыт пустой частью блока доставок: пустые места
   пропускают нажатия, сами карточки доставок нажимаются как прежде. */
.logistics-group .sidebar,.logistics-group .deliveries{pointer-events:none}
.logistics-group .deliveries>.delivery{pointer-events:auto}

/* ===== Настраиваемый экран: виджеты наверху и в баре ===== */

/* Верхний ряд: виджеты делят ширину поровну (в макете — четыре равные). */
.metrics.widgets-top{display:flex}
.widgets-top>.widget{flex:1 1 0;width:auto!important;min-width:0;cursor:pointer}
.widgets-top>.widget:focus-visible{outline:2px solid #2f86e8;outline-offset:2px}
.widget-card .widget-chart{position:absolute;left:19px;right:19px;bottom:22px;height:42px;width:calc(100% - 38px)}
.widget-card .widget-chart path{fill:none;stroke:#2f86e8;stroke-width:1.6;vector-effect:non-scaling-stroke}
.widget-card .widget-chart rect{fill:#9cc1e6}
.widget-card .widget-note{position:absolute;left:19px;right:19px;bottom:8px;font-size:10px;line-height:12px;color:#7a8890;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.widget-shares{position:absolute;left:19px;right:19px;bottom:26px;display:flex;height:10px;border-radius:6px;overflow:hidden;gap:2px}
.widget-shares i{display:block;height:100%}
.widget-shares .share-0{background:#9cc1e6}.widget-shares .share-1{background:#f3b26b}.widget-shares .share-2{background:#e8838c}.widget-shares .share-3{background:#a5d3b7}
.widget-shares-legend{position:absolute;left:0;right:0;top:-16px;font-size:10px;line-height:12px;color:#5a6a75;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Бар: AI Agent и кнопки виджетов — равными долями, как сетка макета. */
.bottom-bar{display:flex!important;align-items:stretch}
.bottom-bar>.bar-agent{flex:1 1 0;min-width:0}
.bottom-bar>.bar-ideas,.bottom-bar>.bar-microphone{flex:0 0 auto}
.bottom-bar>.bar-add{flex:0 0 34px}
.bar-widgets{display:flex;gap:8px;min-width:0;flex:9 1 0}
.bar-widgets>.widget{flex:1 1 0;min-width:0;cursor:grab}
.bar-widgets>.widget>span{overflow:hidden;text-overflow:ellipsis}
.bar-widgets.tight{gap:4px}
.bar-widgets.tight>.widget{gap:4px;padding-left:2px;padding-right:2px}
.bar-widgets.icons>.widget>span{display:none}
.bar-kpi svg{stroke-linecap:round}

/* Перетаскивание: за курсором — призрак, на месте падения остальные раздвигаются (пустая рамка). */
.widget{user-select:none;-webkit-user-select:none;touch-action:none}
.widget-dragged{display:none!important}
.widget-gap{flex:1 1 0;min-width:0;border-radius:21px;border:1.5px dashed #8aa3b5;background:#ffffff40;pointer-events:none;box-shadow:none}
.widgets-top>.widget-gap{height:130px}
.bar-widgets>.widget-gap{min-height:40px}
.widget-ghost{position:fixed;left:0;top:0;z-index:100;display:flex;align-items:center;gap:8px;padding:8px 14px;border-radius:14px;background:#faf9f5cc;box-shadow:0 8px 22px #0a1b3238;color:#092033;font-size:13px;pointer-events:none;opacity:.88}
.widget-ghost svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.widget-ghost-no{background:#fbd4d7cc;color:#a01b24}
body.dragging-widget,body.dragging-widget *{cursor:grabbing!important}

/* Верхний ряд: до семи виджетов в один ряд. Каждая карточка — «картинка» базовой ширины, пропорционально уменьшенная
   до реальной (виджеты .wz масштабирует widgets.js); графики и кольцо не скрываются никогда. */
.widgets-top{flex-wrap:nowrap}
.widgets-top>.widget{position:relative;overflow:hidden;padding:0!important}
.widgets-top>.widget>.wz{position:absolute;left:0;top:0;transform-origin:0 0;padding:18px 19px;box-sizing:border-box}
/* «Настроить экран». */
#screen-menu{position:fixed;inset:auto;margin:0;padding:14px 16px;border:1px solid #d3e4df;border-radius:20px;background:#f8f8f5f7;box-shadow:0 12px 30px #17382c26;font-family:Roboto,Arial,sans-serif;color:#20343d;max-height:80vh;overflow:auto}
#screen-menu h4{font-size:12px;color:#5a6a75;margin:10px 0 4px}
.screen-row{display:flex;align-items:center;gap:4px;padding:3px 0;font-size:13px}
.screen-row span{flex:1}
.screen-row button{border:0;border-radius:10px;height:26px;min-width:26px;padding:0 8px;background:#ebebe6;cursor:pointer;font-size:12px}
.screen-row button:disabled{opacity:.4;cursor:default}
.screen-row .screen-move{min-width:64px;background:#2f3538;color:#fff}
.screen-reset{margin-top:12px;width:100%;border:0;border-radius:14px;height:32px;background:#e6e5df;cursor:pointer;font-size:13px}

/* Внутрянка. */
#widget-panel{position:fixed;inset:auto;margin:0;padding:18px 20px;border:1px solid #d3e4df;border-radius:22px;background:#f6faf7f9;color:#20343d;box-shadow:0 16px 40px #17382c33;font-family:Roboto,Arial,sans-serif;max-height:min(80vh,620px);overflow:auto}
#widget-panel h2{font-size:17px;font-weight:600;margin:0 0 8px}
.widget-coverage{font-size:11px;line-height:15px;color:#5a6a75;margin:2px 0 8px}
.widget-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0}
.widget-tabs button{border:1px solid #cfd3d0;background:#fff;border-radius:12px;height:28px;padding:0 10px;font-size:12px;cursor:pointer}
.widget-tabs button[aria-selected="true"]{background:#2f3538;color:#fff;border-color:#2f3538}
.widget-table{width:100%;border-collapse:collapse;font-size:12px}
.widget-table th{text-align:left;font-weight:500;color:#5a6a75;border-bottom:1px solid #d6e5df;padding:5px 6px}
.widget-table td{border-bottom:1px dashed #e1e6e2;padding:5px 6px;vertical-align:top}
.widget-table td.empty{color:#7a8890}
.widget-tasks{list-style:none;padding:0;margin:6px 0}
.widget-tasks button{border:0;background:transparent;text-align:left;padding:6px 4px;font-size:13px;cursor:pointer;width:100%;border-radius:8px}
.widget-tasks button:hover{background:#ebebe6}

/* ===== Корзина заявки (левый блок) ===== */
.trip-content{display:flex;flex-direction:column;min-height:0}
.cart-list{flex:1 1 auto;min-height:0;overflow:auto;display:flex;flex-direction:column;gap:6px}
.cart-row{cursor:grab}
.cart-row .cart-name{flex:1;min-width:0;display:flex;flex-direction:column}
.cart-row .cart-name>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cart-row .cart-name small{font-size:10px;line-height:13px;color:#607b8b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cart-row.cart-warn .cart-name small{color:#9a5a12}
.cart-qty{display:flex;align-items:center;gap:2px;font-weight:600;white-space:nowrap}
.cart-qty-input{width:48px;border:1px solid transparent;background:transparent;font:inherit;text-align:right;border-radius:8px;padding:0 2px;-moz-appearance:textfield}
.cart-qty-input:hover,.cart-qty-input:focus{border-color:#cfd3d0;background:#fff}
.cart-qty-input::-webkit-inner-spin-button{opacity:.6}
.cart-remove{border:0;background:transparent;width:22px;height:22px;border-radius:50%;cursor:pointer;color:#7a8890;font-size:16px;line-height:1}
.cart-remove:hover{background:#ffffffaa;color:#9b1c25}
.cart-footer{display:flex;align-items:center;gap:6px;flex-wrap:wrap;flex:none}
.cart-total{flex:1 1 100%;font-size:11px;line-height:15px;color:#5a6a75}
.cart-footer .cart-all-orders{background:transparent}
.cart-footer .cart-send{margin-left:auto;border:0;border-radius:16px;height:30px;padding:0 14px;background:linear-gradient(#3b4144,#2f3538);color:#fff;font-weight:600;cursor:pointer}
.cart-footer .cart-send:disabled{opacity:.5;cursor:default}
.cargo-ready.cart-drop{outline:2px dashed #2f86e8;outline-offset:-4px;border-radius:24px}
.products.cart-return{outline:2px dashed #e8838c;outline-offset:2px;border-radius:24px}
body.dragging-product .cargo-ready{outline:2px dashed #2f86e866;outline-offset:-4px;border-radius:24px}

/* Узкий экран: в макете бар скрыт, но без него не добраться до виджетов бара
   и «Настроить экран» — показываем его строкой иконок внизу экрана. */
@media(max-width:900px){
 .bottom-bar{display:flex!important;position:fixed!important;left:0!important;right:0!important;width:auto!important;bottom:0;top:auto!important;height:52px!important;z-index:15;gap:6px;padding:6px 8px;background:#2b3133f2;border-radius:16px 16px 0 0}
 .bottom-bar>.bar-agent>span,.bar-widgets>.widget>span{display:none}
 .bottom-bar>.bar-agent{flex:0 0 auto;padding:0 10px}
 .viewport{padding-bottom:60px}
}

/* Верхние карточки — чистые, как в макете: значков «≈» на них нет. */
.widgets-top .trust-badge{display:none!important}

/* Вкладки: правая рабочая область вместо ленты; стили — из главного экрана (пилюли, карточки, плитки) */
.products[hidden]{display:none!important}
.tab-view{overflow-y:auto;overflow-x:hidden;scrollbar-width:none;overscroll-behavior:contain;display:flex!important;flex-direction:column;gap:12px}
.tab-view[hidden]{display:none!important}
.tab-view::-webkit-scrollbar{display:none}
.tab-view>*{flex:none}
.tab-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.tab-view .filters{position:static;display:flex;flex-wrap:wrap;gap:7px;margin:0}
.tab-view .filter{height:40px;cursor:pointer;border:0}
.tab-view .filter.active{width:auto;padding:0 18px}
.tab-search{padding:0 16px}
.tab-search input{border:0;background:transparent;font:inherit;color:inherit;outline:none;width:220px}
.tab-list{display:flex;flex-direction:column;gap:10px}
.tab-list>.product{flex:none;height:calc(140px + var(--row-extra,0px))}
.tab-list>.product.orange{height:calc(143px + var(--row-extra,0px))}
.tab-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px}
.tab-metric{height:118px}
.tab-metric strong{overflow:hidden;text-overflow:ellipsis}
.tab-change{position:absolute;left:19px;bottom:16px}
.tab-change.down{color:#d64545}
.tab-metric .tab-pill{position:absolute;left:19px;bottom:14px}
.tab-dot{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:7px;vertical-align:0}
.tab-dot.share-0{background:#9cc1e6}.tab-dot.share-1{background:#f3b26b}.tab-dot.share-2{background:#e8838c}.tab-dot.share-3{background:#a5d3b7}
.tab-heading{font-size:13px;font-weight:500;color:#435464;margin:6px 0 -2px 4px}
.tab-health{position:static;height:10px}
/* строки таблиц: фото, название в одну строку, числа справа, плашки маржи */
.tab-rows{border-radius:21px;background:linear-gradient(130deg,#f9f8f5db,#f8f7f5c9);padding:8px}
.tab-row{display:grid;grid-template-columns:var(--cols);gap:16px;align-items:center;min-height:56px;padding:0 14px;border-radius:14px;font-size:14px;color:#1e2b36}
.tab-row+.tab-row{box-shadow:0 -1px 0 #0a1b320a}
.tab-row-head{min-height:34px;font-size:12px;color:#7a8890}
.tab-row.clickable{cursor:pointer}
.tab-row.clickable:hover,.tab-row.clickable:focus-visible{background:#ffffffc7;box-shadow:none;outline:none}
.tab-row.clickable:hover+.tab-row{box-shadow:none}
.tab-row .num{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.tab-row .txt{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tab-product{display:flex;align-items:center;gap:12px;min-width:0}
.tab-product img,.tab-noimg,.tab-compare-item img{width:38px;height:38px;border-radius:10px;object-fit:cover;flex:none;background:#e7ebee}
.tab-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tab-pill{display:inline-block;min-width:66px;padding:5px 10px;border-radius:10px;background:var(--track);color:var(--ink);text-align:right;font-weight:500;white-space:nowrap}
.tone-none{--track:#e7ebee;--ink:#5a6a75}
.tab-steps{padding:4px;background:transparent}
.tab-steps .tab-row{min-height:40px;font-size:13px;gap:12px;padding:0 8px}
.tab-steps .tab-row:last-child{font-weight:600}
.tab-steps .tab-row .txt:last-child{color:#5a6a75;font-size:12px;white-space:normal}
/* советы недели — плитками по два */
.tab-advice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.tab-advice{padding:16px 20px}
.tab-advice h2{font-size:15px;margin-bottom:4px}
.tab-advice p{font-size:13px;line-height:18px}
/* калькулятор */
.tab-calc{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;align-items:end;border-radius:21px;background:linear-gradient(130deg,#f9f8f5db,#f8f7f5c9);padding:16px 20px}
.tab-calc label{display:flex;flex-direction:column;gap:4px;font-size:12px;color:#5a6a75}
.tab-calc input{height:34px;border-radius:10px;border:1px solid #d6e5df;padding:0 10px;font:inherit;background:#fff}
.tab-calc-result{display:flex;flex-direction:column;gap:10px}
/* сравнение похожих товаров: два товара и полоски долей между ними */
.tab-compare{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.8fr) minmax(0,1fr);gap:18px;align-items:center;border-radius:27px;background:linear-gradient(110deg,#faf9f5d4,#f8f7f4c7);padding:18px 22px}
.tab-compare-item{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;min-width:0}
.tab-compare-item img,.tab-compare-item .tab-noimg{width:72px;height:72px;border-radius:16px}
.tab-compare-item .tab-name{max-width:100%;font-size:14px;color:#1e2b36}
.tab-compare-item .tab-pill{font-size:18px;padding:6px 14px;text-align:center}
.tab-compare-item small{font-size:11px;color:#7a8890}
.tab-compare-mid{display:flex;flex-direction:column;gap:8px}
.tab-compare-head{text-align:center;font-size:13px;color:#435464;margin-bottom:2px}
.tab-compare-row{display:grid;grid-template-columns:1fr 130px 1fr;gap:10px;align-items:center}
.tab-bar{display:flex;align-items:center;gap:6px;height:14px;font-size:12px;color:#435464}
.tab-bar.left{justify-content:flex-end}
.tab-bar i{display:block;height:10px;border-radius:5px;background:#9cc1e6;min-width:4px}
.tab-bar.left i{background:#f3b26b}
.tab-bar b{font-weight:500}
.tab-compare-what{display:flex;flex-direction:column;align-items:center;font-size:12px;color:#263e49;line-height:14px}
.tab-compare-what small{font-size:11px;color:#00954a}
.tab-cargo-icon{display:flex;align-items:center;justify-content:center;color:#435464}
.tab-cargo-icon svg{width:48px;height:48px;fill:none;stroke:currentColor;stroke-width:1.4}
.feature-summary .feature-cell:last-child{cursor:pointer}
.tab-metric .tab-change{position:absolute;left:19px;right:auto;top:auto;bottom:16px;transform:none;margin:0}
.tab-steps .tab-row .txt{white-space:normal;line-height:16px}
.tab-row .num .tab-pill{max-width:100%;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}
/* Широкие экраны: холст масштабируется, левая колонка сужается — подписи подстраиваются под ширину ячейки */
.feature-summary .feature-cell{container-type:inline-size}
.feature-summary .feature-label{font-size:clamp(12px,calc((100cqi - 5px) / 7.8),18px)}
.feature-summary .feature-label svg{width:1.15em;height:1.15em}
@container (max-width:130px){.feature-summary .feature-cell{padding-left:7px;padding-right:7px}}
.route-head{container-type:inline-size;container-name:route}
@container route (max-width:470px){.arrival-prefix{display:none}}
/* ROI: подпись «считается / не удалось получить» не уходит под кольцо */
.metric.roi strong.pending{max-width:calc(100% - 112px);white-space:normal}
.metric.roi .roi-ring.pending{width:88px;height:88px}
/* Корзина: два раздела — «К заказу» и «Заодно добрать» (строка «+» — из макета) */
.cart-section{flex:none;margin:2px 4px -2px;font-size:10px;line-height:13px;letter-spacing:.4px;text-transform:uppercase;color:#607b8b}
.cart-list>.trip-addition{flex:none}
button.trip-add-symbol{border:0;padding:0;cursor:pointer}
button.trip-add-symbol:hover{background:#b6d6f7}
button.trip-add-symbol:disabled{opacity:.5;cursor:default}
.cart-qty .cart-step{border:0;background:transparent;width:16px;height:18px;padding:0;border-radius:6px;color:#7a8890;font-size:13px;line-height:1;cursor:pointer}
.cart-qty .cart-step:hover{background:#ffffffaa;color:#244b64}
.cart-qty .cart-step:disabled{opacity:.3;cursor:default}
.cart-qty .cart-qty-input{width:40px}
.cart-qty-input::-webkit-inner-spin-button{display:none}
.cart-addons{flex:none;max-height:66px;overflow:auto;display:flex;flex-direction:column;gap:6px}
.cart-list{min-height:60px}
/* Бар: значение внутри кнопки рядом с подписью; тесно — сжимается подпись */
.bar-widgets>.widget>span{min-width:0;white-space:nowrap}
.bar-widgets>.widget>.widget-inline{flex:none;font-size:11px;font-weight:600;white-space:nowrap;color:inherit;opacity:.72;margin-left:-2px}
.bar-widgets.icons>.widget>.widget-inline{font-size:11px}
/* Верхние виджеты: длинный заголовок — на вторую строку тем же шрифтом, без многоточия */
.bar-widgets>.widget.bar-noicon>svg{display:none}
/* Лента: капсулы «Рекомендации к заказу / актуальности» сверху; включена актуальность — две половины */
.products:not(.tab-view):not([hidden]){display:flex;flex-direction:column;gap:8px}
.feed-modes{position:static;flex:none;display:flex;gap:7px;margin:0;height:36px}
.feed-modes .filter{height:36px;border:0;cursor:pointer;padding:0 16px;font-size:13px}
.feed-modes .filter.active{width:auto;font-size:13px}
.feed-modes .filter b{width:24px;height:24px;font-size:12px}
.feed-modes .filter.active b{width:28px;height:24px;font-size:13px}
.feed-modes .filter:disabled{opacity:1;cursor:default}
.products:not(.tab-view)>.product-scroll{flex:1 1 0;min-height:0;height:auto}
.products:not(.tab-view)>.product-scroll-rail{top:44px;bottom:40px!important}
.relevance-scroll{flex:0 0 auto;min-height:0;overflow-y:auto;overflow-x:hidden;display:flex;flex-direction:column;gap:10px;scrollbar-width:none;overscroll-behavior:contain;border-top:1px dashed #73818b40;padding-top:8px}
.relevance-scroll[hidden]{display:none}
.relevance-scroll::-webkit-scrollbar{display:none}
.relevance-scroll>*{flex:none}
.relevance-card{padding:16px 22px}
.relevance-card h2{font-size:15px;margin-bottom:4px}
.relevance-card p{font-size:13px;line-height:18px}

/* Часы: «Сколько у вас времени?» — готовое время кнопками, своё — ползунком (как в макете) */
html .topnav .nav-clock.clock-open{height:244px}
html .nav-clock .clock-settings{height:190px}
html .nav-clock .clock-settings .nav-clock-date{white-space:normal;font-size:12px;line-height:15px;text-align:center}
.clock-presets{display:grid;grid-template-columns:repeat(2,1fr);gap:4px}
.clock-presets button{border:0;border-radius:12px;height:24px;padding:0;font:inherit;font-size:11px;font-weight:600;background:var(--clock-button,#e9eef2);color:var(--clock-button-ink,#263e49);cursor:pointer}
.clock-presets button:hover{filter:brightness(.94)}
.nav-clock.clock-short .clock-seconds,.nav-clock.clock-short .clock-colon:nth-child(4){display:none}
/* План дел */
.plan-list{list-style:none;margin:6px 0 4px;padding:0;display:flex;flex-direction:column;gap:4px}
.plan-item{display:grid;grid-template-columns:20px minmax(0,1fr) auto;gap:8px;align-items:start;padding:7px 8px;border-radius:12px;background:#ffffff8c}
.plan-item input{margin:3px 0 0;width:16px;height:16px;accent-color:#2f8a5f;cursor:pointer}
.plan-open{border:0;background:transparent;padding:0;text-align:left;font:inherit;color:inherit;cursor:pointer;display:flex;flex-direction:column;gap:1px;min-width:0}
.plan-open strong{font-size:13px;line-height:17px;font-weight:600}
.plan-open small{font-size:11.5px;line-height:15px;color:#5a6a75}
.plan-open:hover strong{text-decoration:underline}
.plan-minutes{font-size:11px;color:#7a8890;white-space:nowrap;padding-top:2px}
.plan-later .plan-item{background:#ffffff4d}
.plan-done{opacity:.55}
.plan-done strong{text-decoration:line-through}
.plan-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:8px}
@keyframes plan-flash{0%,100%{box-shadow:none}30%{box-shadow:0 0 0 3px #2f86e8aa}}
.plan-flash{animation:plan-flash 1.6s ease 2}
/* Настоящие грузы: карточка груза, кошелёк, заявки — в стиле главного экрана */
.cargo-facts{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:8px 0 2px}
.cargo-facts>div{border-radius:14px;background:#ffffff8c;padding:8px 10px;min-width:0}
.cargo-facts small{display:block;font-size:11px;color:#7a8890}
.cargo-facts b{display:block;font-size:13px;font-weight:600;color:#1e2b36;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#widget-panel .tab-rows{padding:4px;background:#ffffff73}
#widget-panel .tab-row{min-height:36px;font-size:12.5px;gap:10px;padding:0 8px}
#widget-panel .tab-row-head{min-height:26px;font-size:11px}
#widget-panel .tab-heading{margin:10px 0 4px}
.order-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:12px 0 4px}
.order-head b{font-size:14px}
.order-head small{flex:1 1 100%;font-size:11px;color:#7a8890;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wallet-flag{font-size:10.5px;color:#7a8890}
.feature-summary .feature-cell.wallet-cell{cursor:pointer}
.feature-summary .feature-cell.wallet-cell strong:not(.pending){font-size:clamp(13px,calc((100cqi - 5px) / 9),19px);overflow:hidden;text-overflow:ellipsis}
.feature-summary .feature-cell.wallet-cell p{white-space:normal;line-height:14px}
/* Верхний ряд: подгонка в widgets.js (варианты текста, затем шрифт). Без многоточий. */
#widgets-top .metric-title,#widgets-top .metric strong{white-space:nowrap;overflow:visible;text-overflow:clip}
#widgets-top .metric.frozen .change{top:18px;right:19px;height:16px;line-height:16px;display:block}
#widgets-top .metric.roi .roi-ring{bottom:auto;right:16.8px}
#widgets-top .metric.roi .change{top:auto;bottom:18px}
#widgets-top .metric.frozen .frozen-lollipops{bottom:4px}
.widget-card .widget-chart{bottom:12px}
.widget-card .widget-chart path.chart-area{fill:#2f86e8;fill-opacity:.12;stroke:none}
.widget-card .widget-shares{bottom:12px}

/* Дашборд: вывод, полоса здоровья, карта товаров, три коротких списка */
.dash-verdict{font-size:24px;line-height:31px;font-weight:500;letter-spacing:-.01em;color:#1e2b36;margin:10px 4px 4px;text-wrap:balance}
.dash-health{display:flex;flex-direction:column;gap:10px}
.dash-health-bar{display:flex;gap:3px;height:8px}
.dash-segment{display:block;min-width:6px;height:8px;padding:0;border:0;border-radius:4px;cursor:pointer}
.dash-segment.share-0{background:#9cc1e6}.dash-segment.share-1{background:#f3b26b}.dash-segment.share-2{background:#e8838c}.dash-segment.share-3{background:#a5d3b7}
.dash-segment:hover{filter:brightness(.93)}
.dash-health-legend{display:flex;flex-wrap:wrap;gap:6px 22px;margin-left:2px}
.dash-legend{display:inline-flex;align-items:center;padding:0;border:0;background:none;font:inherit;font-size:13px;color:#5a6a75;cursor:pointer}
.dash-legend b{font-weight:600;color:#1e2b36;margin-left:6px}
.dash-legend:hover,.dash-legend:focus-visible{color:#1e2b36;outline:none;text-decoration:underline}
.dash-map{border-radius:27px;background:linear-gradient(130deg,#f9f8f5db,#f8f7f5c9);padding:18px 22px 14px;margin-top:8px}
.dash-map-head{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:12px}
.dash-map-head h3,.dash-list h3{font-size:15px;font-weight:600;color:#1e2b36}
.dash-map-head p{font-size:12px;color:#7a8890}
.dash-plot{position:relative;height:clamp(320px,40vh,500px);margin:0 4px 0 30px}
.dash-zone{position:absolute;display:flex;flex-direction:column;gap:2px;padding:10px 12px;pointer-events:none}
.dash-zone strong{font-size:13px;font-weight:600;color:#435464}
.dash-zone small{font-size:11px;color:#8a979e}
.zone-tl{left:0;top:0;width:var(--mx);height:var(--py)}
.zone-tr{left:var(--mx);right:0;top:0;height:var(--py);align-items:flex-end;text-align:right;background:#a5d3b71f;border-radius:0 18px 0 0}
.zone-bl{left:0;top:var(--py);width:var(--mx);bottom:0;justify-content:flex-end;background:#e8838c14;border-radius:0 0 0 18px}
.zone-br{left:var(--mx);right:0;top:var(--py);bottom:0;align-items:flex-end;justify-content:flex-end;text-align:right;background:#f3b26b14}
.dash-line{position:absolute;pointer-events:none;background:#0a1b3226}
.dash-line-v{left:var(--mx);top:0;bottom:0;width:1px}
.dash-line-h{top:var(--py);left:0;right:0;height:1px}
.dash-line-zero{left:0;right:0;height:0;border-top:1px dashed #0a1b3224;background:none}
.dash-tick-y{position:absolute;left:-30px;width:26px;transform:translateY(-50%);font-size:11px;color:#7a8890;text-align:right}
.dash-tick-x{position:absolute;bottom:-20px;transform:translateX(-50%);font-size:11px;color:#7a8890}
.dash-dot{position:absolute;width:var(--d);height:var(--d);margin:calc(var(--d) / -2) 0 0 calc(var(--d) / -2);padding:0;border:2px solid #fff;border-radius:50%;background:var(--fill);box-shadow:0 2px 6px #0a1b321f;cursor:pointer;opacity:.92;transition:transform .15s}
.dash-dot:hover,.dash-dot:focus-visible{transform:scale(1.15);opacity:1;z-index:2;outline:none;box-shadow:0 0 0 2px #1e2b3659}
.dash-map-foot{display:flex;justify-content:space-between;align-items:center;margin:26px 4px 0 30px;font-size:11px;color:#7a8890}
.dash-link{border:0;background:none;padding:0;font:inherit;font-size:12px;color:#435464;cursor:pointer}
.dash-link:hover{color:#1e2b36;text-decoration:underline}
.dash-lists{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.dash-list{display:flex;flex-direction:column;gap:4px;border-radius:21px;background:linear-gradient(130deg,#f9f8f5db,#f8f7f5c9);padding:16px 14px 10px}
.dash-list h3{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin:0 6px 6px}
.dash-list h3 small{font-size:11px;font-weight:400;color:#8a979e}
.dash-item{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:12px;min-height:54px;padding:0 8px;border:0;border-radius:14px;background:none;font:inherit;font-size:14px;color:#1e2b36;text-align:left;cursor:pointer}
.dash-item:hover,.dash-item:focus-visible{background:#ffffffc7;outline:none}
.dash-item img,.dash-item .tab-noimg{width:38px;height:38px;border-radius:10px;object-fit:cover;background:#e7ebee}
.dash-item b{font-weight:600;font-variant-numeric:tabular-nums;color:var(--ink);white-space:nowrap}
.dash-empty{font-size:13px;color:#8a979e;padding:10px 8px}
.dash-more{display:flex;justify-content:flex-end;padding-bottom:8px}
/* Дашборд: мозаика прибыльных и карточки сегментов */
.dash-what{font-size:12px;color:#7a8890;margin:2px 2px 8px}
.dash-half{font-size:15px;color:#1e2b36;font-weight:500;margin:4px 2px 12px}
.dash-cards{display:flex;flex-direction:column;gap:4px}
.dash-rest{margin:8px 8px 2px;align-self:flex-start}
.dash-mosaic{position:relative;width:100%}
.dash-tile{position:absolute;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;padding:10px 12px 12px;border:0;border-radius:var(--r);background:linear-gradient(110deg,#faf9f5f2,#f8f7f4e6);box-shadow:0 3px 8px #0a1b3214,inset 0 0 0 1px #ffffffa0;overflow:hidden;font:inherit;text-align:left;color:#1e2b36;cursor:pointer;transition:transform .15s}
.dash-tile:before{content:'';position:absolute;left:0;right:0;bottom:0;height:4px;background:var(--fill)}
.dash-tile:hover,.dash-tile:focus-visible{transform:scale(1.02);z-index:2;outline:none;box-shadow:0 6px 16px #0a1b3226}
.dash-tile img,.dash-tile .tab-noimg{flex:none;width:40px;height:40px;border-radius:12px;object-fit:cover;background:#e7ebee}
.tile-mid img,.tile-mid .tab-noimg{width:34px;height:34px;border-radius:10px}
.tile-small{align-items:center;justify-content:center;padding:3px}
.tile-small img,.tile-small .tab-noimg{width:min(40px,86%);height:auto;max-height:86%;aspect-ratio:1;border-radius:9px}
.tile-text{display:flex;flex-direction:column;gap:1px;min-width:0;max-width:100%}
.tile-text>*{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tile-name{font-size:13px;line-height:16px}
.tile-mid .tile-name{font-size:12px}
.dash-tile strong{font-size:17px;line-height:21px;font-weight:600;letter-spacing:-.4px;color:var(--ink)}
.dash-tile small{font-size:11px;line-height:13px;color:#5a6a75}
/* ABC · XYZ (VAULT_FEATURE_ABC) */
.dash-abc{border-radius:27px;background:linear-gradient(130deg,#f9f8f5db,#f8f7f5c9);padding:18px 22px 14px}
.dash-abc-grid{display:grid;grid-template-columns:150px repeat(3,minmax(0,1fr));gap:6px;align-items:stretch}
.dash-abc-head{font-size:12px;color:#7a8890;padding:0 4px 2px}
.dash-abc-head.row{display:flex;align-items:center;font-size:13px;color:#435464}
.dash-abc-cell{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;align-items:baseline;gap:0 10px;min-height:64px;padding:10px 14px;border:0;border-radius:16px;background:#ffffffa8;font:inherit;text-align:left;color:#1e2b36;cursor:pointer}
.dash-abc-cell b{font-size:12px;font-weight:600;color:#7a8890}
.dash-abc-cell strong{font-size:22px;font-weight:600;letter-spacing:-.4px;text-align:right}
.dash-abc-cell small{grid-column:1/-1;font-size:11px;color:#5a6a75;text-align:right}
.dash-abc-cell.abc-A.xyz-X{background:#e5efe7}.dash-abc-cell.abc-A.xyz-Y,.dash-abc-cell.abc-B.xyz-X{background:#eef4ef}
.dash-abc-cell.abc-C.xyz-Z{background:#f2e2e3}.dash-abc-cell.abc-C.xyz-Y,.dash-abc-cell.abc-B.xyz-Z{background:#f3e9dc}
.dash-abc-cell.empty{cursor:default;opacity:.45}
.dash-abc-cell:not(.empty):hover,.dash-abc-cell:not(.empty):focus-visible{box-shadow:0 0 0 2px #1e2b3633;outline:none}
/* Калькулятор: сценарии (VAULT_FEATURE_CALC) */
.tab-scenario-save{display:flex;gap:8px;align-items:center}
.tab-scenario-save input{height:40px;border-radius:20px;border:1px solid #d6e5df;padding:0 16px;font:inherit;background:#fff;width:260px}
.tab-scn-grid{display:grid;grid-template-columns:170px repeat(var(--n),minmax(0,1fr));gap:0 16px;border-radius:21px;background:linear-gradient(130deg,#f9f8f5db,#f8f7f5c9);padding:12px 18px;font-size:13px;color:#1e2b36}
.tab-scn-grid>span{padding:8px 0;border-top:1px solid #0a1b320a;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tab-scn-label{color:#5a6a75}
.tab-scn-name{display:flex;flex-direction:column;align-items:flex-end;gap:2px}
.tab-scn-name b{font-weight:600}
.tab-scn-grid .num{text-align:right;font-variant-numeric:tabular-nums}
/* Выгрузка в Excel (VAULT_FEATURE_EXPORT) */
.tab-toolbar-right{display:flex;gap:8px;align-items:center}
.tab-excel{text-decoration:none;color:#344655;height:34px;padding:0 14px;font-size:12px}
.dash-map-head .tab-excel{margin-left:auto;height:30px}
.dash-list h3 .tab-excel{height:26px;padding:0 10px;font-size:11px;font-weight:400}
/* Изменение прибыли (VAULT_FEATURE_PROFIT_CHANGE) */
.chg{display:flex;flex-direction:column;gap:2px}
.chg-row{display:grid;grid-template-columns:190px minmax(0,1fr) 130px;gap:14px;align-items:center;min-height:38px;padding:0 10px;border:0;border-radius:12px;background:none;font:inherit;font-size:13px;color:#1e2b36;text-align:left;cursor:pointer}
.chg-row:not(:disabled):hover{background:#ffffffc7}
.chg-row:disabled{cursor:default;color:#8a979e}
.chg-total{cursor:default;font-weight:600}
.chg-row b{text-align:right;font-weight:600;font-variant-numeric:tabular-nums}
.chg-row b.neg{color:#852d38}
.chg-bar{height:10px}
.chg-bar i{display:block;height:10px;border-radius:5px;background:var(--fill)}
.chg-bar i.tone-none{background:#c9d3d8}
/* Сверка поставок (VAULT_FEATURE_COMPENSATION) */
.cmp-row{display:grid;grid-template-columns:minmax(0,1fr) 130px 90px auto;gap:14px;align-items:center;min-height:56px;padding:0 8px;font-size:13px;color:#1e2b36}
.cmp-what{display:flex;flex-direction:column;min-width:0}
.cmp-what small{font-size:11px;color:#7a8890;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cmp-row .num{text-align:right;font-variant-numeric:tabular-nums}
.cmp-gap{text-align:right;color:var(--ink)}
.cmp-row .filter{height:34px;font-size:12px}
.cmp-draft{width:100%;border-radius:14px;border:1px solid #d6e5df;padding:12px 14px;font:inherit;font-size:13px;line-height:19px;background:#fff;resize:vertical;color:#1e2b36}
/* Выкуп (VAULT_FEATURE_BUYOUT) */
.buy-top{display:grid;grid-template-columns:120px minmax(0,1fr);gap:18px;align-items:center;margin-bottom:6px}
.buy-rate{font-size:34px;font-weight:600;letter-spacing:-.8px;color:#1e2b36}
.dash-health-bar i.dash-segment{cursor:default}
/* Литрономика: каркас выглядит иначе, чем рабочий блок */
.dash-frame{background:repeating-linear-gradient(135deg,#f9f8f5c0 0 12px,#f3f2eec0 12px 24px);border:1px dashed #c9d3d8}
.dash-abc-verdict{margin:12px 2px 2px}
.buy-worst{display:block;margin:10px 2px 0;text-align:left;font-size:13px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Чистая прибыль (VAULT_FEATURE_NET_PROFIT) */
.net-label{display:flex;align-items:center;gap:10px;font-size:13px;color:#435464}
.net-label input{width:90px}
.tab-scenario-save input[type=date]{width:150px}
.tab-scenario-save input[name=сумма]{width:150px}

/* Дашборд на одном экране: обзор, без прокрутки */
.tab-view.dash-screen{overflow:hidden;gap:10px}
.dash-screen .dash-verdict{font-size:21px;line-height:26px;margin:2px 4px 0}
.dash-screen .dash-health{gap:6px}
.dash-screen .dash-main{flex:1 1 0;min-height:0;display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:10px}
.dash-screen .dash-main.no-abc{grid-template-columns:minmax(0,1fr)}
.dash-screen .dash-map{display:flex;flex-direction:column;min-height:0;margin-top:0;padding:12px 16px 8px}
.dash-screen .dash-map-head{margin-bottom:6px}
.dash-screen .dash-map-head p{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dash-screen .dash-plot{flex:1 1 0;min-height:0;height:auto;margin:0 4px 0 30px}
.dash-screen .dash-map-foot{margin:18px 4px 0 30px}
.dash-screen .dash-zone{padding:6px 8px}
.dash-screen .dash-zone small{display:none}
.dash-screen .dash-abc{display:flex;flex-direction:column;min-height:0;padding:12px 14px 10px;overflow:hidden}
.dash-screen .dash-abc-grid{flex:1 1 0;min-height:0;grid-template-columns:62px repeat(3,minmax(0,1fr));grid-auto-rows:minmax(0,1fr);gap:5px}
.dash-screen .dash-abc-head{font-size:11px}
.dash-screen .dash-abc-head.row{font-size:12px}
.dash-screen .dash-abc-cell{min-height:0;padding:6px 10px;border-radius:12px}
.dash-screen .dash-abc-cell strong{font-size:18px}
.dash-screen .dash-abc-cell small{font-size:10px}
.dash-screen .dash-abc-verdict{font-size:12px;line-height:16px;margin:8px 2px 0}
.dash-screen .dash-abc .dash-what{display:none}
.dash-screen .dash-lists{flex:none}
.dash-screen .dash-list{padding:10px 12px 6px;gap:0}
.dash-screen .dash-list h3{margin:0 6px 2px;font-size:14px}
.dash-screen .dash-item{min-height:38px;font-size:13px;gap:10px}
.dash-screen .dash-item img,.dash-screen .dash-item .tab-noimg{width:30px;height:30px;border-radius:8px}
.dash-screen .dash-item{grid-template-columns:30px minmax(0,1fr) auto}
.dash-screen .dash-abc .dash-map-head p{display:none}
.dash-screen .dash-abc .dash-map-head h3{white-space:nowrap}
.dash-screen .dash-abc-grid{grid-template-rows:auto repeat(3,minmax(0,1fr));grid-auto-rows:auto}
.dash-screen .dash-abc-head.row{line-height:14px}

/* Дашборд-аналитик: первый экран — вывод, полоса, «Куда вложить», три списка; карта и ABC ниже */
.tab-view.dash-screen{overflow-y:auto;overflow-x:hidden}
.dash-screen>*{flex:none}
.dash-top{display:flex;flex-direction:column;gap:2px}
.dash-a-line{align-self:flex-start;margin-left:4px;font-size:13px}
.dash-screen .dash-main{flex:none;height:440px}
.dash-invest{border-radius:21px;background:linear-gradient(130deg,#f9f8f5db,#f8f7f5c9);padding:12px 16px 10px;display:flex;flex-direction:column;gap:4px}
.invest-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.invest-head h3{font-size:15px;font-weight:600;color:#1e2b36}
.invest-budget{display:flex;align-items:center;gap:8px;font-size:12px;color:#5a6a75}
.invest-budget input{width:130px;height:32px;border-radius:16px;border:1px solid #d6e5df;padding:0 12px;font:inherit;font-size:13px;background:#fff;text-align:right}
.invest-budget .filter{height:32px;font-size:12px;padding:0 12px}
.invest-rows{display:flex;flex-direction:column}
.invest-row{display:grid;grid-template-columns:30px minmax(0,1fr) 128px minmax(120px,auto) auto;gap:12px;align-items:center;min-height:36px;padding:0 6px;border:0;border-radius:12px;background:none;font:inherit;font-size:13px;color:#1e2b36;text-align:left;cursor:pointer}
.invest-row:hover{background:#ffffffc7}
.invest-row img,.invest-row .tab-noimg{width:30px;height:30px;border-radius:8px;object-fit:cover}
.invest-row .num{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.invest-row b{text-align:right;font-weight:600;color:var(--ink)}
.invest-days{color:#5a6a75}
.invest-trust{font-style:normal;font-size:11px;justify-self:end;padding:3px 8px;border-radius:8px;background:#f3e9dc;color:#704619;white-space:nowrap}
.invest-trust.exact{background:#e5efe7;color:#194c36}
.invest-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:2px}
.invest-total{font-size:14px;font-weight:500;color:#1e2b36}
.invest-foot .primary{height:34px;padding:0 18px;border-radius:17px}
.dash-action{font-size:12px;color:#435464;margin:2px 6px 0;font-weight:500}
.dash-zone-name{pointer-events:auto;border:0;background:none;padding:0;font:inherit;font-size:13px;font-weight:600;color:#435464;cursor:pointer}
.dash-zone-name:hover{text-decoration:underline;color:#1e2b36}
.dash-map-verdict{display:block;margin:4px 4px 0 30px;font-size:13px;text-align:left}
.abc-classes{display:grid;grid-template-columns:1fr;gap:6px;flex:1 1 0;min-height:0}
.abc-class{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;align-items:center;gap:0 10px;padding:10px 14px;border:0;border-radius:14px;background:#ffffffa8;font:inherit;text-align:left;color:#1e2b36;cursor:pointer}
.abc-class.abc-A{background:#e5efe7}.abc-class.abc-B{background:#eef4ef}.abc-class.abc-C{background:#f3e9dc}
.abc-class-name{font-size:13px;color:#435464}
.abc-class strong{grid-row:1/3;grid-column:2;font-size:18px;font-weight:600;text-align:right}
.abc-class small{font-size:12px;color:#5a6a75}
.abc-class:disabled{opacity:.45;cursor:default}
.dash-screen .dash-abc .dash-what{display:block;font-size:11px;margin:6px 2px 0}
/* Раскладка «б»: карта поменьше справа от «Куда вложить» */
.dash-invest-map{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:10px;align-items:stretch}
.dash-invest-map .dash-map{display:flex;flex-direction:column;margin-top:0;padding:10px 14px 6px;min-height:0}
.dash-invest-map .dash-map-head p,.dash-invest-map .dash-zone small{display:none}
.dash-invest-map .dash-plot{flex:1 1 0;min-height:150px;height:auto;margin:0 4px 0 26px}
.dash-invest-map .dash-zone{padding:4px 6px}
.dash-invest-map .dash-zone-name{font-size:11px}
.dash-invest-map .dash-tick-x{bottom:-16px;font-size:10px}
.dash-invest-map .dash-tick-y{font-size:10px}
.dash-invest-map .dash-map-foot{margin:14px 4px 0 26px;font-size:10px}
.dash-invest-map .dash-map-verdict{margin-left:26px;font-size:12px;line-height:15px}
.dash-invest-map .invest-row{grid-template-columns:28px minmax(0,1fr) 120px 66px 54px 90px;gap:8px;font-size:12.5px}
.dash-screen .dash-abc{flex:none}
.dash-screen>.dash-abc{display:block}
.dash-screen>.dash-abc .abc-classes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));flex:none}
.dash-screen>.dash-abc .dash-abc-grid{height:260px}
.invest-head h3{white-space:nowrap}
.dash-invest-map .dash-dot{width:calc(var(--d) * .7);height:calc(var(--d) * .7);margin:calc(var(--d) * -.35) 0 0 calc(var(--d) * -.35)}
/* Проверка данных Uzum */
#widget-panel .check-method .tab-rows{max-height:260px;overflow-y:auto}

/* Юнит-экономика глазами аналитика */
.econ-verdict{font-size:19px;line-height:25px;margin:2px 4px}
.econ-card{gap:8px}
.econ-count{font-size:13px;font-weight:400;color:#7a8890}
.econ-trust{font-size:13px;color:#5a6a75;margin:0 4px}
.econ-trust .dash-link{font-size:13px}
.wf{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:8px;height:250px;padding:26px 4px 0}
.wf-col{display:grid;grid-template-rows:minmax(0,1fr) auto auto;min-width:0}
.wf-area{position:relative}
.wf-bar{position:absolute;left:12%;right:12%;border-radius:8px}
.wf-total{background:linear-gradient(160deg,#5c6f7d,#3b4a55)}
.wf-red{background:var(--fill);--fill:linear-gradient(160deg,#ffceca 0%,#eb9297 100%)}
.wf-green{background:linear-gradient(160deg,#bfe8d0 0%,#74c39c 100%)}
.wf-none{background:#d8dfe3}
.wf-value{position:absolute;left:0;right:0;text-align:center;font-size:12px;font-weight:600;color:#1e2b36;white-space:nowrap}
.wf-label{font-size:11.5px;line-height:14px;color:#435464;text-align:center;margin-top:6px;min-height:28px}
.wf-100{font-size:11px;color:#7a8890;text-align:center}
#widget-panel .wf{height:200px}
.whatif{display:grid;grid-template-columns:1fr 1fr 170px auto;gap:14px;align-items:end;border-radius:16px;background:#ffffff73;padding:12px 14px}
.whatif label{display:flex;flex-direction:column;gap:6px;font-size:12px;color:#5a6a75}
.whatif label b{font-weight:600;color:#1e2b36}
.whatif input[type=range]{width:100%}
.whatif input[type=number]{height:32px;border-radius:10px;border:1px solid #d6e5df;padding:0 10px;font:inherit;background:#fff}
.whatif .filter{height:32px;font-size:12px}
.whatif-result .tab-metric{height:96px}
.econ-advice .tab-advice{padding:14px 18px}
#widget-panel{max-height:calc(100vh - 24px);overflow-y:auto}
#widget-panel .tab-cards{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
#widget-panel .tab-metric{height:84px;padding:12px 14px}
#widget-panel .tab-metric strong{font-size:19px;margin-top:8px}

/* Рычаги прибыли */
.levers{display:flex;flex-direction:column;gap:8px}
.lever{display:grid;grid-template-columns:44px minmax(0,1fr) 130px 96px 104px;gap:14px;align-items:center;border-radius:21px;background:linear-gradient(130deg,#f9f8f5db,#f8f7f5c9);padding:12px 16px}
.lever img,.lever .tab-noimg{width:44px;height:44px;border-radius:12px;object-fit:cover}
.lever-text{display:flex;flex-direction:column;gap:3px;min-width:0}
.lever-text b{font-size:14px;font-weight:600;color:#1e2b36}
.lever-text small{font-size:12px;color:#5a6a75;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lever-money{display:flex;flex-direction:column;align-items:flex-end}
.lever-money strong{font-size:19px;font-weight:600;color:#194c36;letter-spacing:-.3px}
.lever-money small{font-size:11px;color:#7a8890}
.lever-trust{font-style:normal;font-size:11px;justify-self:center;padding:3px 8px;border-radius:8px;white-space:nowrap}
.trust-точно{background:#e5efe7;color:#194c36}.trust-оценка,.trust-примерно{background:#f3e9dc;color:#704619}.trust-неизвестно{background:#e7ebee;color:#5a6a75}
.lever-action{height:34px;font-size:12px;justify-self:end}
/* Полная себестоимость */
.ladder{display:flex;flex-direction:column;border-radius:16px;background:#ffffff73;padding:6px 10px}
.ladder-row{display:grid;grid-template-columns:minmax(0,1fr) 80px 120px 92px;gap:10px;align-items:center;min-height:30px;font-size:13px;color:#1e2b36;border-bottom:1px solid #0a1b320a}
.ladder-row.unknown{color:#8a979e}
.ladder-row.total{font-weight:600;border-bottom:0;border-top:1px solid #0a1b321f}
.ladder-src{font-size:11px;color:#7a8890}
.ladder-sum{text-align:right;font-variant-numeric:tabular-nums}
.mode-compare .tab-row{min-height:30px;grid-template-columns:minmax(0,1.2fr) 1fr 1fr;font-size:12.5px}

/* Водопад: соединительные линии, неизвестный провоз, итог отдельным цветом */
.wf-area{position:relative}
.wf-link{position:absolute;left:calc(-12% - 8px);width:calc(24% + 8px);height:0;border-top:1px dashed #0a1b3240;z-index:0}
.wf-final{background:linear-gradient(160deg,#74c39c 0%,#3f8f6a 100%)}
.wf-unknown{background:repeating-linear-gradient(135deg,#f2e2e3 0 6px,#e8c3c6 6px 12px);border:1px dashed #c98e95}
.wf-col .wf-value{position:static;display:block;text-align:center;font-size:12px;font-weight:600;color:#1e2b36;margin-top:2px}
.wf-value.unknown{color:#a9505c}
.wf-note{font-size:10.5px;line-height:13px;color:#a9505c;text-align:center}
.wf{grid-template-rows:none;padding-top:10px;height:270px}
.wf-col{grid-template-rows:minmax(0,1fr) auto auto auto}
.econ-warning{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 12px;border-radius:12px;background:#f3e9dc;color:#704619;font-size:13px}
.econ-warning .filter{height:30px;font-size:12px}
.econ-link{font-size:inherit;margin-left:6px}
.econ-next{align-self:flex-start;margin:4px;font-size:13px}
.precise-list{margin:6px 0 0 18px;font-size:13px;line-height:19px;color:#1e2b36}
.ladder-set{height:26px;font-size:11px;justify-self:center}
.account-tax{display:flex;flex-direction:column;gap:4px;padding:6px 12px 8px;font-size:12px;color:#5a6a75}
.account-tax span{display:flex;gap:6px}
.account-tax input{width:90px;height:28px;border-radius:8px;border:1px solid #d6e5df;padding:0 8px;font:inherit}
.account-tax button{height:28px;border-radius:8px;border:0;background:#e7ebee;font:inherit;font-size:12px;cursor:pointer;padding:0 10px}

/* Актуальность: компактный блок по высоте подсказок, не больше 40% ленты */
.relevance-box{display:flex;flex-direction:column;gap:2px;padding:10px 14px}
.relevance-list{display:flex;flex-direction:column}
.relevance-row{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:6px 8px;border:0;border-radius:12px;background:none;font:inherit;text-align:left;color:#1e2b36;cursor:pointer}
.relevance-row:hover{background:#ffffff8c}
.relevance-row b{font-size:14px;font-weight:600}
.relevance-row span{font-size:13px;line-height:17px;color:#5a6a75;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.relevance-discounts{margin:4px 8px 0;padding:0;font-size:12px}
.relevance-box .dash-link{align-self:flex-start;margin:2px 8px}

/* Шапка без «Витрины»: три вкладки растянуты, часы прежней ширины */
@media(min-width:901px){.topnav{grid-template-columns:repeat(3,minmax(0,1fr)) 149px}}
.search-results:empty{display:none}
.search-results{border-radius:16px;background:#ffffff8c;padding:4px}
.tab-search input{width:220px}
.feed-more{flex:none;margin:-6px 0 0;padding:0 4px;font-size:11px;line-height:13px;color:#73808c;text-align:right}
.feed-more[hidden]{display:none}
/* --- настраиваемый Дашборд (dash.js) --- */
.dg-wrap{display:flex;flex-direction:column;gap:10px;position:relative}
.dg-toolbar{display:flex;justify-content:flex-end;gap:7px;min-height:40px;align-items:center}
.dg-toolbar .filter{height:38px}
.dg-toolbar .dg-done{width:auto;padding:0 22px}
.dg{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));grid-auto-rows:172px;grid-auto-flow:row dense;gap:12px}
.dg-block{position:relative;display:flex;flex-direction:column;gap:8px;min-width:0;border-radius:24px;background:linear-gradient(130deg,#f9f8f5db,#f8f7f5c9);padding:14px 16px 12px;overflow:hidden}
.dg-м{grid-column:span 3}
.dg-ш{grid-column:span 6}
.dg-в{grid-column:span 3;grid-row:span 2}
.dg-д{grid-column:span 3;grid-row:span 3}
.dg-с{grid-column:span 4;grid-row:span 2}
.dg-б{grid-column:span 6;grid-row:span 2}
.dg-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.dg-head h3{font-size:14px;font-weight:600;color:#1e2b36;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dg-size{display:none;font-size:11px;color:#8a979e}
.dg-body{display:flex;flex-direction:column;gap:8px;min-width:0;min-height:0}
.dg-figure{display:flex;flex-direction:column;gap:2px}
.dg-figure strong{font-size:26px;line-height:30px;font-weight:500;letter-spacing:-.02em;font-variant-numeric:tabular-nums;color:#1e2b36}
.dg-figure strong.tone-green{color:#0b8a4a}.dg-figure strong.tone-red{color:#d6262f}.dg-figure strong.tone-amber{color:#b86e00}
.dg-figure span{font-size:12px;line-height:16px;color:#6b7b86;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.dg-м .dg-body .card-figure,.dg-м .dg-body .tab-card{background:none;padding:0;box-shadow:none}
.dg-verdict{font-size:15px;line-height:21px;color:#1e2b36}
.dg-б .dg-body>.dash-verdict{margin:0}
.dg-warn{font-size:12px;color:#b86e00}
.dg-empty{margin:auto 0;font-size:13px;color:#7a8890}
.dg-top{display:flex;flex-direction:column;gap:2px}
.dg-top .dash-item{min-height:44px;gap:10px;grid-template-columns:32px minmax(0,1fr) auto}
.dg-top .dash-item img,.dg-top .dash-item .tab-noimg,.dg-top .dash-item svg{width:32px;height:32px}
.dg-lines{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:6px;font-size:12px;color:#435464}
.dg-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.dg-с .dg-pair{grid-template-columns:1fr}
.dg-stack{display:flex;flex-direction:column;gap:6px}
.dg-stack .tab-card{padding:8px 12px;min-height:0}
.dg-zones{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.dg-zone{display:flex;flex-direction:column;align-items:flex-start;gap:2px;border:0;border-radius:14px;padding:8px 12px;font:inherit;text-align:left;cursor:pointer;background:#ffffffa6;color:#1e2b36}
.dg-zone b{font-size:20px;font-weight:500}
.dg-zone span{font-size:12px;color:#6b7b86}
.dg-zone.zone-звёзды{background:#dff1e4}.dg-zone.zone-проблемы{background:#fbe1e3}.dg-zone.zone-балласт{background:#f6ead6}
.dg-abc{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}
.dg-cell{display:flex;align-items:baseline;justify-content:space-between;border:0;border-radius:10px;padding:8px 10px;font:inherit;cursor:pointer;background:#ffffffa6;color:#1e2b36}
.dg-cell small{font-size:11px;color:#6b7b86}.dg-cell b{font-size:16px;font-weight:500}
.dg-cell.cell-A{background:#dff1e4}.dg-cell.cell-C{background:#f3efe8}
.dg-cargo{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:10px}
.dg-б .dash-list,.dg-б .dash-invest,.dg-б .dash-abc,.dg-б .dash-map{background:none;padding:0;margin:0}
.dg-б .dash-list h3,.dg-б .dash-map-head h3,.dg-б .invest-head h3{display:none}
/* правка: блоки подрагивают, есть крестик и уголок размера */
.dg-remove,.dg-resize{display:none}
.dg-editing .dg-block{cursor:grab;user-select:none;animation:dg-wiggle .32s ease-in-out infinite alternate;box-shadow:0 0 0 1.5px #73818b38}
.dg-editing .dg-block:nth-child(2n){animation-delay:-.16s}
.dg-editing .dg-block:nth-child(3n){animation-duration:.36s}
.dg-editing .dg-body{pointer-events:none}
.dg-editing .dg-size{display:inline}
.dg-editing .dg-remove{display:flex;position:absolute;top:8px;right:8px;width:26px;height:26px;border:0;border-radius:50%;align-items:center;justify-content:center;background:#2f3538;color:#fff;font-size:17px;line-height:1;cursor:pointer;z-index:2}
.dg-editing .dg-head{padding-right:30px}
.dg-editing .dg-resize{display:block;position:absolute;right:4px;bottom:4px;width:22px;height:22px;cursor:nwse-resize;touch-action:none;z-index:2;
  background:linear-gradient(135deg,transparent 0 52%,#2f353899 52% 60%,transparent 60% 70%,#2f353899 70% 78%,transparent 78%)}
.dg-block.dg-dragging{animation:none;z-index:5;cursor:grabbing;box-shadow:0 18px 34px #30383940,0 0 0 1.5px #e8b42f;opacity:.96}
.dg-block.dg-resizing{animation:none;box-shadow:0 0 0 2px #e8b42f}
@keyframes dg-wiggle{from{rotate:-.35deg}to{rotate:.35deg}}
@media(prefers-reduced-motion:reduce){.dg-editing .dg-block{animation:none}}
/* галерея и раскладки */
.dg-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-height:70vh;overflow-y:auto;padding:2px}
.dg-gallery-card{display:flex;flex-direction:column;gap:6px;border-radius:18px;background:#f6f5f1;padding:12px}
.dg-gallery-card header{display:flex;justify-content:space-between;align-items:baseline;gap:6px}
.dg-gallery-card h3{font-size:14px;font-weight:600}
.dg-gallery-card .filter{align-self:flex-start;height:34px}
.dg-gallery-card.is-added{opacity:.72}
.dg-badge{font-size:11px;color:#0b8a4a;white-space:nowrap}
.dg-preview{pointer-events:none;border-radius:12px;background:#fff;padding:10px 12px;min-height:74px}
.dg-preview .dg-figure strong{font-size:20px;line-height:24px}
.dg-presets{display:flex;flex-direction:column;gap:6px}
.dg-preset{display:flex;flex-direction:column;align-items:flex-start;gap:2px;border:0;border-radius:14px;padding:10px 14px;background:#f6f5f1;font:inherit;text-align:left;cursor:pointer;color:#1e2b36}
.dg-preset:hover{background:#ecebe6}
.dg-preset span{font-size:12px;color:#6b7b86}
.dg-reset{background:none;border:1px dashed #73818b55}
.dg-top .dash-item .tab-cargo-icon{position:static;width:32px;height:32px;border-radius:10px;display:flex;align-items:center;justify-content:center}
.dg-top .dash-item .tab-cargo-icon svg{width:18px;height:18px}
/* настраиваемый Дашборд, часть 2: период, выбор товара, «Сегодня важно» */
.dg-toolbar{justify-content:space-between}
.dg-period{display:flex;gap:6px;margin-right:auto}
.dg-period .filter{height:38px;padding:0 16px}
.dg-period .filter.active{width:auto;padding:0 18px}
.dg-window{font-size:11px;color:#9aa5ab;white-space:nowrap;margin-left:auto}
.dg-window-live{color:#1e2b36;background:#fff3cf;border-radius:10px;padding:1px 8px}
.dg-editing .dg-window{display:none}
.dg-body.dg-loading{opacity:.45;transition:opacity .2s}
.dg-sel{box-shadow:0 0 0 2px #e8b42f inset;background:#fff6dc!important}
.dash-dot.dg-sel{box-shadow:0 0 0 3px #e8b42f,0 0 0 6px #e8b42f55;z-index:3;background-clip:padding-box}
.dg-has-selection .dg .dash-dot:not(.dg-sel){opacity:.35}
.dg-selbar{display:flex;align-items:center;gap:14px;border-radius:16px;background:#2f3538;color:#fff;padding:6px 14px 6px 6px;font-size:13px}
.dg-selbar[hidden]{display:none}
.dg-selbar img,.dg-selbar .tab-noimg{width:30px;height:30px;border-radius:9px;object-fit:cover}
.dg-selbar span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dg-selbar b{font-weight:600}
.dg-selbar .dash-link{color:#ffd76a}
.dg-selbar .dg-unselect{color:#c9d2d7}
.dg-block.dg-lifted{display:none}
.dg-urgent{border-radius:24px;background:linear-gradient(130deg,#fde7e3e6,#fbe9dfd9);padding:12px 14px 14px;display:flex;flex-direction:column;gap:10px}
.dg-urgent-head{display:flex;align-items:baseline;justify-content:space-between}
.dg-urgent-head h3{font-size:14px;font-weight:600;color:#b3261e}
.dg-urgent-row{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:10px}
.dg-urgent-card{display:flex;flex-direction:column;gap:6px;border-radius:18px;background:#fffffff0;padding:12px 14px}
.dg-urgent-card .dg-head{justify-content:flex-start;gap:8px}
.dg-urgent-pill{font-style:normal;font-size:11px;font-weight:600;color:#fff;background:#d6262f;border-radius:8px;padding:1px 7px}
.dg-urgent-why{font-size:13px;line-height:18px;color:#7a2a24}
.dg-abc-classes{grid-template-columns:1fr}
/* большие «Карта» и «ABC» в сетке: своя высота, а не «заполнить родителя» как на прежнем Дашборде */
.dg .dash-map,.dg .dash-abc{display:block;overflow:visible}
.dg .dash-plot{flex:none;height:300px}
.dg .dash-abc .abc-classes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));flex:none}
.dg .dash-abc .dash-abc-grid{height:260px}
.dg .dash-abc .dash-what{display:block}
.dg-selbar{position:sticky;top:0;z-index:6}
/* итоги месяца */
.month-report{display:flex;flex-direction:column;gap:12px}
.month-head h2{font-size:22px;font-weight:500;color:#1e2b36}
.month-cover{margin-top:6px}
.month-lists{display:grid;grid-template-columns:1fr 1fr;gap:10px}
/* печать в PDF: только страница отчёта, без оболочки кабинета и без масштаба */
@media print{
  @page{size:A4;margin:12mm}
  html,body{width:auto!important;height:auto!important;overflow:visible!important;background:#fff!important}
  body *{visibility:hidden}
  .month-report,.month-report *{visibility:visible}
  /* у предков есть transform (масштаб экрана) — для печати снимаем, иначе отчёт уедет */
  .month-report,.month-report *{transform:none}
  :has(> .month-report),:has(.month-report){transform:none!important;position:static!important;overflow:visible!important;height:auto!important;max-height:none!important;width:auto!important;filter:none!important}
  .month-report{position:absolute;left:0;top:0;width:186mm;color:#1e2b36}
  .month-report .dash-item img{print-color-adjust:exact;-webkit-print-color-adjust:exact}
  .month-report .wf-bar,.month-report .econ-card,.month-report .dash-list,.month-report .tab-card{print-color-adjust:exact;-webkit-print-color-adjust:exact}
  .month-lists{grid-template-columns:1fr 1fr}
}
.month-toolbar a.filter{text-decoration:none}
/* живые данные: пустые фото, длинные названия, пустые состояния */
.no-image{background:linear-gradient(135deg,#efeee9,#e3e2dc);color:#9aa5ab;font-size:34px;font-weight:500}
.tab-noimg,.trip-noimg{display:inline-flex;align-items:center;justify-content:center;font-size:15px;font-weight:600;color:#8a979e;background:linear-gradient(135deg,#efeee9,#e3e2dc)}
.roi-ring.kpi-hidden{display:none}
#cargo-number.cargo-empty{max-width:none;white-space:normal;text-transform:none;font-size:16px}
.cart-weight-missing{border:0;background:none;padding:0;font:inherit;color:#b86e00;text-decoration:underline dotted;cursor:pointer}
.cart-name>span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* глубокая проверка */
.deep-progress{height:8px;border-radius:6px;background:#e7e5df;overflow:hidden;margin:8px 0}
.deep-progress i{display:block;height:100%;background:#e8b42f;transition:width .4s}
.deep-row{display:flex;gap:12px;align-items:center;padding:6px 0;border-bottom:1px solid #73818b22;font-size:13px}
.deep-row span{flex:1}
.deep-sum ul{margin:4px 0 8px;padding-left:18px;font-size:13px;line-height:18px}
.deep-sum.bad h4{color:#b3261e}.deep-sum.warn h4{color:#b86e00}.deep-sum.good h4{color:#0b8a4a}
/* Дашборд без режима правки: тянуть за заголовок, крестик и уголок — по наведению */
.dg-head{cursor:grab;touch-action:none;user-select:none}
.dg-block.dg-dragging .dg-head{cursor:grabbing}
.dg-block:hover .dg-remove,.dg-block:focus-within .dg-remove{display:flex;position:absolute;top:8px;right:8px;width:24px;height:24px;border:0;border-radius:50%;align-items:center;justify-content:center;background:#2f3538cc;color:#fff;font-size:16px;line-height:1;cursor:pointer;z-index:2}
.dg-block:hover .dg-resize,.dg-block:focus-within .dg-resize{display:block;position:absolute;right:4px;bottom:4px;width:20px;height:20px;cursor:nwse-resize;touch-action:none;z-index:2;
  background:linear-gradient(135deg,transparent 0 52%,#2f353899 52% 60%,transparent 60% 70%,#2f353899 70% 78%,transparent 78%)}
.dg-block:hover .dg-window{margin-right:28px}
.dg-toolbar .dg-small{height:32px;padding:0 12px;font-size:12px}
.dg-undo{position:fixed;left:50%;bottom:96px;transform:translateX(-50%);z-index:50;display:flex;gap:14px;align-items:center;border-radius:14px;background:#2f3538;color:#fff;padding:10px 16px;font-size:13px;box-shadow:0 10px 24px #0003}
.dg-undo button{border:0;background:none;color:#ffd76a;font:inherit;font-weight:600;cursor:pointer}
/* новые блоки Дашборда */
.dg-trust{font-size:11px;color:#9aa5ab;margin-top:auto}
.dg-spark{width:100%;height:28px;display:block}
.dg-spark-line{fill:none;stroke:#4cad80;stroke-width:1.6;vector-effect:non-scaling-stroke}
.dg-spark-area{fill:#4cad8022}
.dg-trend{font-size:12px;font-weight:600;white-space:nowrap}
.dg-trend.none{color:#9aa5ab}
.dg-trend.tone-green{color:#0b8a4a}.dg-trend.tone-red{color:#d6262f}.dg-trend.tone-none{color:#6b7b86}
.dg-shelves{display:flex;flex-direction:column;gap:6px}
.dg-shelf-row{display:grid;grid-template-columns:minmax(0,34%) 1fr;align-items:center;gap:10px;font-size:12px}
.dg-shelf-row .tab-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dg-shelf{position:relative;height:14px;border-radius:7px;background:#ecebe6}
.dg-shelf-have{position:absolute;left:0;top:0;bottom:0;border-radius:7px;background:linear-gradient(90deg,#9fd6b6,#c5e8d2)}
.dg-shelf-hole{position:absolute;top:0;bottom:0;border-radius:7px;background:repeating-linear-gradient(135deg,#f4a7ad 0 5px,#fbd4d7 5px 10px)}
.dg-shelf-cargo{position:absolute;top:-3px;transform:translateX(-50%);font-size:12px;color:#2f6fd0}
.dg-shelf-axis{display:flex;justify-content:space-between;margin-left:calc(34% + 10px);font-size:10px;color:#9aa5ab}
.dg-heat{display:grid;grid-template-columns:22px repeat(24,minmax(0,1fr));gap:2px;align-items:center;font-size:10px;color:#9aa5ab}
.dg-heat i{display:block;aspect-ratio:1;border-radius:3px;background:#4cad80}
.dg-days{display:flex;align-items:flex-end;gap:6px}
.dg-day{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;gap:3px}
.dg-day i{display:block;width:100%;border-radius:6px 6px 3px 3px;background:#c5e8d2}
.dg-day.best i{background:#4cad80}
.dg-day small{font-size:10px;color:#7a8890}
.dg-funnel{display:flex;flex-direction:column;gap:8px}
.dg-funnel-step{display:grid;grid-template-columns:86px 1fr auto;gap:10px;align-items:center;font-size:12px}
.dg-funnel-step small{grid-column:2/4;font-size:11px;color:#b3261e;margin-top:-4px}
.dg-funnel-bar{height:16px;border-radius:8px;background:#ecebe6;overflow:hidden}
.dg-funnel-bar i{display:block;height:100%;border-radius:8px;background:linear-gradient(90deg,#7fb2e5,#a9cdf0)}
.dg-table{display:flex;flex-direction:column}
.dg-table-head,.dg-table-row{display:grid;grid-template-columns:38px minmax(0,2.2fr) minmax(70px,1.2fr) 90px 70px 70px;gap:12px;align-items:center}
.dg-table-head{padding:0 10px 6px;font-size:11px;color:#8a979e}
.dg-th{border:0;background:none;padding:0;font:inherit;color:inherit;text-align:left;cursor:pointer}
.dg-table-row{min-height:54px;padding:0 10px;border:0;border-radius:14px;background:none;font:inherit;font-size:13px;color:#1e2b36;text-align:left;cursor:pointer}
.dg-table-row:hover{background:#ffffffc7}
.dg-table-row img,.dg-table-row .tab-noimg{width:38px;height:38px;border-radius:10px;object-fit:cover}
.dg-table-row .tab-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dg-с .dg-table-head,.dg-с .dg-table-row{grid-template-columns:32px minmax(0,1.6fr) minmax(50px,1fr) 70px 54px 54px;gap:8px;font-size:12px}
.dg-с .dg-table-row{min-height:44px}
.dg-compare{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:10px}
.dg-compare-item{display:flex;flex-direction:column;gap:2px;border-radius:14px;background:#ffffffa6;padding:10px 12px}
.dg-compare-item span{font-size:12px;color:#6b7b86}
.dg-compare-item b{font-size:18px;font-weight:500;color:#1e2b36}
.dg-goal{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.dg-goal-track{fill:none;stroke:#ecebe6;stroke-width:9}
.dg-goal-arc{fill:none;stroke:#4cad80;stroke-width:9;stroke-linecap:round}
.dg-goal-text{font-size:15px;font-weight:600;fill:#1e2b36}
.dg-goal-nums{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.dg-goal-nums b{font-size:22px;font-weight:500}
.dg-goal-nums span{font-size:12px;color:#6b7b86}
.dg-goal-form input{width:150px}
.dg-bars{display:flex;flex-direction:column;gap:7px}
.dg-bar-row{display:grid;grid-template-columns:minmax(0,38%) 1fr auto 44px;gap:10px;align-items:center;font-size:12px}
.dg-bar-row .tab-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dg-bar{height:12px;border-radius:6px;background:#ecebe6;overflow:hidden}
.dg-bar i{display:block;height:100%;border-radius:6px;background:linear-gradient(90deg,#f0a2a8,#f7c4c8)}
.dg-bar-row small{color:#8a979e;text-align:right}
.dg-cats{position:relative;width:100%}
.dg-cat{position:absolute;border-radius:12px;padding:8px 10px;display:flex;flex-direction:column;gap:2px;overflow:hidden;font-size:12px;color:#1e2b36}
.dg-cat b{font-size:16px;font-weight:600}
.dg-cat.cat-0{background:#c5e8d2}.dg-cat.cat-1{background:#d4e6fb}.dg-cat.cat-2{background:#fbe3c5}.dg-cat.cat-3{background:#ead9f4}.dg-cat.cat-4{background:#f6d4d7}.dg-cat.cat-5{background:#e6e4dc}
.dg-select{height:32px;border-radius:12px;border:1px solid #73818b33;background:#fff;padding:0 10px;font:inherit;font-size:12px;max-width:100%}
.dg-price{width:100%;display:block}
.dg-price-bar{fill:#c5e8d2}
.dg-price-line{fill:none;stroke:#2f6fd0;stroke-width:2;vector-effect:non-scaling-stroke}
.dg-legend{display:flex;gap:14px;font-size:11px;color:#6b7b86}
.dg-legend .dg-lg-line:before{content:'';display:inline-block;width:14px;height:2px;background:#2f6fd0;vertical-align:middle;margin-right:6px}
.dg-legend .dg-lg-bars:before{content:'';display:inline-block;width:10px;height:10px;background:#c5e8d2;border-radius:2px;vertical-align:middle;margin-right:6px}
.dg-table.compact .dg-table-head,.dg-table.compact .dg-table-row{grid-template-columns:32px minmax(0,1fr) 64px 62px 56px;gap:8px;font-size:12px}
.dg-table.compact .dg-table-row{min-height:44px}
.dg-table.compact .dg-table-row img,.dg-table.compact .dg-table-row .tab-noimg{width:32px;height:32px}
.dg-goal-form{flex-wrap:wrap;gap:6px}
.dg-с .dg-goal-form input{width:120px}
.dg-price-box{height:110px}.dg-price-box.big{height:180px}
.dg-price-box .dg-price{height:100%}
/* компактная таблица товаров: название над мини-графиком */
.dg-table.compact .dg-table-head{display:none}
.dg-table.compact .dg-table-row{grid-template-columns:32px minmax(0,1fr) 62px 54px;grid-template-rows:auto auto;row-gap:2px;padding:6px 8px}
.dg-table.compact .dg-table-row>:nth-child(1){grid-row:1/3}
.dg-table.compact .dg-table-row>:nth-child(2){grid-column:2;grid-row:1}
.dg-table.compact .dg-table-row>:nth-child(3){grid-column:2;grid-row:2;height:18px}
.dg-table.compact .dg-table-row>:nth-child(4){grid-column:3;grid-row:1/3;text-align:right}
.dg-table.compact .dg-table-row>:nth-child(5){grid-column:4;grid-row:1/3;text-align:right}
.dg-body .dg-legend{display:flex!important;flex-direction:row!important;align-items:center;gap:16px;position:static;height:auto}
.product.soft-warn .tip{background:linear-gradient(110deg,#fbf1d6cc,#faf0d4c7)}

/* Windows: классическая полоса прокрутки 15–17 px съедает ширину панелей. Своя тонкая:
   на Mac (полосы-наложения) выглядит так же, на Windows ничего не сдвигает. */
::-webkit-scrollbar{width:6px;height:6px}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{background:#91a4ad80;border-radius:6px}
::-webkit-scrollbar-thumb:hover{background:#6f858f}
::-webkit-scrollbar-corner{background:transparent}
@supports not selector(::-webkit-scrollbar){*{scrollbar-width:thin;scrollbar-color:#91a4ad80 transparent}}

/* Совет не вылезает на кнопки: лишнее режется внутри блока, кнопки «Заказать» и «…» всегда ниже текста */
.product .tip .card-copy .advice-details{overflow:hidden}
.card-copy .advice-text{-webkit-line-clamp:2}

/* Корзина с 1–2 позициями: подсказка растягивается на всё свободное место, пустого поля нет */
.cart-hint{flex:1 1 auto;min-height:44px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:8px 14px;border:1.5px solid transparent;border-radius:16px;color:#5a6a75;text-align:center;font-size:12px;line-height:16px}
.cart-hint b{font-size:13px;font-weight:500;color:#3d5260}
body.dragging-product .cart-hint{border-color:#2f86e8;background:#2f86e810}
.card-actions{padding-top:3px}
.card-actions .primary{height:26px}
.card-copy.tight h3{display:none}
/* Иллюстрация товара вписывается целиком, даже когда карточка растянута по высоте */
.product-image.illus{object-fit:contain;background:transparent}

/* Верхний ряд виджетов — только в Ленте; в остальных вкладках его место отдано содержимому (tabs.js: подогнать_область_вкладки) */
body.tab-no-widgets #widgets-top{display:none}

/* Юнит-экономика: четыре группы крупными капсулами, подразделы маленькими кнопками под ними */
.econ-nav{display:flex;flex-direction:column;gap:8px}
.econ-groups .filter{height:52px;padding:0 30px;font-size:15px;font-weight:500}
.econ-groups .filter.active{width:auto;padding:0 30px;font-size:15px}
.econ-subs .filter{height:32px;padding:0 14px;font-size:12px}
.econ-subs .filter.active{width:auto;padding:0 14px;font-size:12px}
.whatif-exact{width:100%}

/* Внутрянка «Вчера / позавчера»: широкая колонка товара, компактные числа без переносов */
.yv-table{table-layout:fixed}
.yv-table th{font-size:11px;line-height:13px;padding:5px 4px;text-align:right}
.yv-table th:first-child{text-align:left}
.yv-table col,.yv-table th:nth-child(1){width:44%}
.yv-table th:nth-child(2),.yv-table th:nth-child(3){width:11%}
.yv-table th:nth-child(4),.yv-table th:nth-child(5){width:17%}
.yv-table td{padding:5px 4px}
.yv-clamp{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;word-break:break-word}
.yv-num{text-align:right;white-space:nowrap}

/* Мозаика: вместо цветной полоски снизу — плашка маржи (цвет по порогам); на крупных плитках она рядом с суммой */
.dash-tile:before{display:none}
.tile-sum{display:flex;align-items:center;gap:6px;min-width:0}
.tile-pill{flex:none;min-width:0;height:18px;padding:0 7px;font-size:11px;line-height:18px;text-align:center}
.tile-mid .tile-pill{align-self:flex-start;margin-top:2px}
.tile-small .tile-pill{position:absolute;right:3px;bottom:3px;height:14px;padding:0 4px;font-size:9px;line-height:14px}

/* Водопад: все колонки делят одни строки сетки (график, подпись, сумма, примечание) — шкала и подписи общие,
   ступень начинается ровно там, где закончилась предыдущая, подпись всегда под своим столбцом */
.wf{display:grid;grid-auto-flow:row;grid-template-columns:repeat(var(--n,12),minmax(0,1fr));grid-auto-columns:auto;grid-template-rows:minmax(0,1fr) auto auto auto;column-gap:8px;padding:10px 4px 0;height:350px}
.wf-col{display:grid;grid-row:1 / span 4;grid-template-rows:subgrid;grid-template-columns:minmax(0,1fr);min-width:0}
.wf-label{overflow-wrap:break-word;hyphens:auto;font-size:10.5px;line-height:13px}
.calc-commission-note{display:block;margin-top:3px;font-size:11px;line-height:14px;color:#7a8890}

.wf-note{white-space:normal;overflow-wrap:break-word;hyphens:auto}

/* Корзина слева: компактный низ, значок веса у товара, развёрнутая панель поверх ленты */
.cart-footer{gap:4px 8px;flex-wrap:nowrap;margin-top:2px;min-height:0;padding:3px 6px}
.cart-footer .cart-all-orders{flex:none}
.cart-footer .cart-total{flex:1 1 auto;text-align:right;font-size:10px;line-height:12px;color:#7a8893;white-space:nowrap}
.cart-footer .cart-send{margin-left:0;flex:none}
.cart-weight-missing{flex:none;width:22px;height:22px;border-radius:50%;background:#f9e6d5b0;color:#a84900;text-decoration:none;font-size:12px;line-height:22px;text-align:center}
.cart-manual{font-style:normal;color:#7a8893}
.cart-expand{position:absolute;top:8px;right:8px;width:26px;height:26px;padding:0;border:0;border-radius:8px;background:#ffffffa0;cursor:pointer;z-index:2}
.cart-expand svg{width:16px;height:16px;fill:none;stroke:#344655;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.cargo-ready{position:relative}
.cart-overlay{position:absolute;z-index:30;display:flex;flex-direction:column;gap:10px;padding:16px 18px;border-radius:27px;background:#f6f5f1;box-shadow:0 10px 30px #0a1b3238;color:#092033;overflow:hidden}
/* Раскрытая заявка может перекрывать верхний виджет лишь частично — его × не должен торчать рядом. */
body.cart-overlay-open .widget-controls{display:none}
.cart-overlay[hidden]{display:none}
.cart-overlay-head{display:flex;align-items:center;gap:14px;justify-content:space-between}
.cart-overlay-head h2{font-size:18px;font-weight:500;white-space:nowrap}
.cart-overlay-close{width:30px;height:30px;border:0;border-radius:50%;background:#e7ebee;font-size:18px;cursor:pointer}
.cart-order-nums{display:flex;align-items:center;gap:28px;flex:1;min-width:0}
.cart-order-field{display:flex;align-items:center;gap:8px;min-width:0}
.cart-order-label{font-size:13px;color:#5a6a75;white-space:nowrap}
.cart-order-num{min-width:0;width:120px;height:32px;border:1px solid #d7dadd;border-radius:10px;padding:0 12px;font:inherit;font-size:13px;color:#092033;background:#fff}
.cart-order-num-row{width:64px;height:26px;padding:0 6px;font-size:11px}
.cart-order-num:focus{outline:none;border-color:#9aa6ad}
.cart-order-num::placeholder{color:#aab2b8}
.cart-order-num.field-invalid{border-color:#c0141f;background:#fdecee}
.cart-overlay-body{flex:1 1 auto;min-height:0;overflow:auto;display:flex;flex-direction:column;gap:12px;padding-right:16px}
.cart-table{width:100%;border-collapse:collapse;font-size:12px;table-layout:fixed}
.cart-table th{position:sticky;top:0;background:#ece9e2;padding:6px 6px;font-weight:500;font-size:11px;text-align:left;color:#435464}
.cart-table td{padding:6px;border-bottom:1px solid #e6e5e1;vertical-align:middle}
.cart-table th:first-child,.cart-table td:first-child{width:56px}
.cart-table th:last-child,.cart-table td:last-child{width:28px}
.cart-table img,.cart-table .trip-noimg{width:38px;height:38px;border-radius:10px;object-fit:cover;display:block}
.cart-t-name{width:auto}
.cart-t-name b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-weight:500;line-height:15px}
.cart-t-num{white-space:nowrap}
.cart-t-weight{text-align:center}
.cart-season{padding:2px 8px;border-radius:10px;background:#dfece2b3;color:#008e3f}
.cart-overlay-addons{display:flex;flex-direction:column;gap:6px}
.cart-overlay-addons h3{font-size:14px;font-weight:500}
.cart-overlay-foot{position:static;inset:auto;left:auto;right:auto;top:auto;flex:none;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding-top:8px;border-top:1px solid #e6e5e1}
.cart-overlay-totals{display:flex;font-size:13px}
.cart-overlay .cart-send{border:0;border-radius:16px;height:34px;padding:0 18px;background:linear-gradient(#3b4144,#2f3538);color:#fff;font-weight:600;cursor:pointer}
.cart-overlay .cart-send:disabled{opacity:.5;cursor:default}

/* ===== Лента-рекомендации: рекомендация первой и крупно, фото и плитки — рядом, компактнее ===== */
#product-scroll .product-image{left:0!important;top:0!important;transform:none!important;width:84px!important;height:84px!important;border-radius:27px 0 0 27px!important;object-fit:cover}
#product-scroll .product-stats{left:auto!important;right:12px!important;top:10px!important;bottom:10px!important;height:auto!important;width:298px!important}
#product-scroll .product-stats .metric-column{min-width:0}
#product-scroll .product-stats .column-reading strong{font-size:16px!important;letter-spacing:-.4px}
#product-scroll .product-stats .column-reading small{font-size:10px}
#product-scroll .product-stats .column-label{font-size:10px;line-height:12px}
#product-scroll .product>.tip{left:110px!important;right:322px!important;top:8px!important;bottom:8px!important;width:auto!important;height:auto!important;padding:10px 14px!important;display:block}
#product-scroll .product>.tip .card-copy{padding:0!important}
.card-copy h3.rec-main{display:-webkit-box!important;-webkit-box-orient:vertical;white-space:normal!important;text-overflow:clip!important;overflow:hidden;font-size:16px;line-height:21px;font-weight:600;letter-spacing:-.25px;margin:0 0 2px;cursor:pointer}
.card-copy .tip-product-title{font-size:12px!important;line-height:15px!important;font-weight:500;letter-spacing:0;margin:0 0 4px!important;display:block!important;white-space:nowrap;text-overflow:ellipsis;opacity:.8}
.card-copy .advice-text{font-size:13px;line-height:17px}
.rec-more{list-style:none;margin:3px 0 0;padding:0;display:flex;flex-direction:column;gap:1px}
.rec-more-item{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;font-size:12px;line-height:16px;cursor:pointer;opacity:.85}
.rec-more-item:before{content:'• '}
.rec-more-item[hidden]{display:none}
.feed-discounts{margin:2px 6px 4px;font-size:11px;color:#73808c}
.card-copy .tip-product-title[hidden]{display:none!important}

/* ИИ: пересказ недели и месяца, строки «Сегодня важно», оценки рекомендации */
.ai-text{display:flex;flex-direction:column;gap:6px;padding:12px 16px;border-radius:18px;background:#eef3f1;margin:0 0 8px}
.ai-lead{font-size:14px;line-height:20px;color:#1e2b36;margin:0}
.ai-advice{margin:0;padding-left:18px;font-size:13px;line-height:18px;color:#344655}
.ai-text .dash-link{align-self:flex-start}
.ai-urgent{list-style:none;margin:2px 0 6px;padding:0;font-size:13px;line-height:18px;color:#344655}
.fb{margin-left:auto;display:inline-flex;gap:2px;flex:none}
.fb-btn{width:22px;height:22px;padding:0!important;border:0;border-radius:50%!important;background:#ffffff90!important;font-size:11px!important;line-height:22px;cursor:pointer;color:#344655}
.fb-btn:hover{background:#fff!important}
.fb-thanks{font-size:11px;color:#7a8893;padding:0 6px}

/* Развёрнутая корзина: крупнее текст и элементы */
.cart-overlay{font-size:15px;padding:20px 24px;gap:14px}
.cart-overlay-head h2{font-size:22px}
.cart-table{font-size:14px}
.cart-table th{font-size:12px;padding:8px}
.cart-table td{padding:9px 8px}
.cart-table img,.cart-table .trip-noimg{width:48px;height:48px}
.cart-overlay .cart-qty-input{width:64px;height:30px;font-size:15px}
.cart-overlay .cart-step{width:28px;height:28px;font-size:16px}
.cart-t-warn{font-size:12px;line-height:16px}
.cart-overlay-totals{font-size:15px}
.cart-overlay-mins{font-size:13px}
.cart-overlay .cart-send{height:40px;padding:0 24px;font-size:15px}
.cart-overlay-addons h3{font-size:16px}

/* Графики карточек тянутся по ширине обёртки (рассчитана на базовую ширину), а не по фиксированным пикселям макета */
.widgets-top .wz .sparkline{width:calc(100% - 38px)!important}
.widgets-top .wz .widget-chart{left:19px;right:19px;width:calc(100% - 38px)}

/* «Коротко о неделе / месяце»: заголовок, главный вывод крупно, до трёх шагов */
.ai-text{gap:8px!important;padding:14px 18px!important;border-radius:20px!important;background:linear-gradient(110deg,#eaf1ee,#edf2f0)!important}
.ai-head{display:flex;align-items:baseline;gap:10px}
.ai-head h3{font-size:15px;font-weight:600;color:#1e2b36;margin:0}
.ai-by{font-size:11px;color:#7a8893;margin-right:auto}
.ai-refresh{border:0;background:#ffffffb0;border-radius:12px;height:26px;padding:0 12px;font-size:12px;color:#344655;cursor:pointer}
.ai-lead{font-size:17px!important;line-height:24px!important;font-weight:500;color:#13222d!important}
.ai-advice{display:flex;flex-direction:column;gap:4px}
.ai-advice>b{font-size:12px;font-weight:600;color:#5a6a75;text-transform:uppercase;letter-spacing:.4px}
.ai-step{margin:0;display:flex;gap:8px;font-size:14px;line-height:20px;color:#243743}
.ai-step i{font-style:normal;color:#2f86e8;font-weight:700}

/* AI Agent: подсветка элемента под курсором и призрак */
.ai-target{outline:2px solid #2f86e8!important;outline-offset:2px;box-shadow:0 0 0 7px #2f86e822!important}
body.ai-dragging,body.ai-dragging *{cursor:grabbing!important}
.ai-ghost{background:#303639e6!important;color:#fff!important}
.ai-dot{width:14px;height:14px;border-radius:50%;border:2px solid #fff;flex:none}
.bar-agent{touch-action:none;cursor:grab}
.ai-grade{font-weight:600;padding:1px 8px;border-radius:10px;background:#e7ebee}
.ai-grade-хорошо{background:#dfece2;color:#008e3f}.ai-grade-плохо{background:#fbd4d7;color:#c0141f}.ai-grade-нормально{background:#f9e6d5;color:#a84900}

/* Советы недели */
.econ-advice{grid-template-columns:repeat(auto-fill,minmax(380px,1fr))!important;gap:12px!important;align-items:stretch}
.week-advice{display:flex;flex-direction:column;gap:6px;padding:16px 18px 16px 20px;border-radius:20px;background:linear-gradient(110deg,#faf9f5,#f6f5f1);position:relative;overflow:hidden}
.week-advice:before{content:'';position:absolute;left:0;top:14px;bottom:14px;width:4px;border-radius:0 4px 4px 0;background:#e8a24a}
.week-bad:before{background:#e0605f}.week-good:before{background:#4bb27a}
.wa-product{margin:0;font-size:12px;line-height:15px;color:#7a8893;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.wa-title{margin:0;font-size:17px;line-height:22px;font-weight:600;color:#13222d}
.wa-action{margin:0;font-size:14px;line-height:20px;color:#344655}
.wa-money{margin:2px 0 0;align-self:flex-start;padding:5px 12px;border-radius:12px;background:#e6efe9;font-size:13px;line-height:18px;font-weight:600;color:#1d5a3b}
.week-bad .wa-money{background:#fbe3e1;color:#a01b24}
.wa-note{margin:0;font-size:12px;line-height:17px;color:#7a8893}

/* Объяснение AI Agent — тёмная контрастная панель, чтобы было видно: это не обычная подсказка */
#widget-panel.ai-panel{background:linear-gradient(160deg,#20272b,#2b3338)!important;color:#eef3f5!important;border:1px solid #4b5961;box-shadow:0 18px 50px #0a1218aa}
#widget-panel.ai-panel button,#widget-panel.ai-panel .panel-close{color:#eef3f5}
.ai-panel .ai-tag{display:inline-flex;align-items:center;gap:8px;margin:0 0 6px;padding:4px 12px 4px 8px;border-radius:14px;background:#ffffff1c;font-size:11px;letter-spacing:.8px;text-transform:uppercase;color:#b9e3d0}
.ai-panel .ai-tag i{width:10px;height:10px;border-radius:50%;background:#5fe0a3;box-shadow:0 0 10px #5fe0a3}
.ai-panel .ai-title{font-size:20px!important;line-height:26px!important;color:#fff!important;margin:2px 0 12px!important}
.ai-panel .ai-sec{margin:0 0 10px;padding:10px 14px;border-radius:14px;background:#ffffff12;border-left:3px solid #6f8794}
.ai-panel .ai-sec h4{margin:0 0 3px;font-size:11px;font-weight:600;letter-spacing:.8px;text-transform:uppercase;color:#9fb4be}
.ai-panel .ai-sec p{margin:0;font-size:14px!important;line-height:20px!important;color:#eef3f5!important}
.ai-panel .ai-what{border-left-color:#6fb2ff}.ai-panel .ai-what p{font-size:15px!important;line-height:21px!important;font-weight:500}
.ai-panel .ai-do{background:#2b5a44;border-left-color:#5fe0a3}.ai-panel .ai-do h4{color:#a8ecc9}.ai-panel .ai-do p{font-weight:500}
.ai-panel .ai-grade{margin-right:6px;color:#13222d}
.ai-panel .ai-foot{margin:6px 0 0;font-size:11px;color:#9fb4be}

.ai-panel .ai-tag,.ai-panel .ai-title{cursor:move;user-select:none}
.ai-chat-wrap{margin-top:8px;border-top:1px solid #ffffff22;padding-top:10px}
.ai-chat-log{max-height:190px;overflow-y:auto;display:flex;flex-direction:column;gap:6px;margin-bottom:8px}
.ai-msg{margin:0;padding:8px 12px;border-radius:14px;font-size:14px;line-height:19px;max-width:92%}
.ai-msg-me{align-self:flex-end;background:#3d6f9a;color:#fff}
.ai-msg-ai{align-self:flex-start;background:#ffffff1a;color:#eef3f5}
.ai-msg-wait{opacity:.7;font-style:italic}
.ai-chat{display:flex;gap:6px}
.ai-chat-input{flex:1;min-width:0;height:34px;padding:0 12px;border-radius:17px;border:1px solid #5a6a73;background:#161c20;color:#eef3f5;font-size:14px}
.ai-chat-input::placeholder{color:#8ea0aa}
.ai-chat-send{height:34px;padding:0 16px;border:0;border-radius:17px;background:#5fe0a3;color:#0f2a1d;font-weight:600;cursor:pointer}
.ai-chat-send:disabled{opacity:.5}

/* Объяснение — маленькое окно */
#widget-panel.ai-panel{width:340px!important;max-width:340px!important;padding:14px 16px!important}
.ai-panel .ai-title{font-size:15px!important;line-height:20px!important;margin:2px 0 8px!important;font-weight:600}
.ai-panel .ai-what{margin:0 0 6px;font-size:14px;line-height:19px;color:#fff}
.ai-panel .ai-grade-row{margin:0 0 6px;font-size:13px;line-height:18px;color:#dbe6ea}
.ai-panel .ai-do{margin:0 0 8px;padding:7px 10px;border-radius:10px;background:#2b5a44;font-size:13px;line-height:18px;font-weight:500;color:#e9fff3}
.ai-panel .ai-how summary{cursor:pointer;font-size:12px;color:#9fb4be}
.ai-panel .ai-how p{margin:4px 0 0;font-size:12px;line-height:17px;color:#cfdbe0}
.ai-panel .ai-chat-wrap{margin-top:8px;padding-top:8px}
.ai-panel .ai-chat-log{max-height:150px}
.ai-hint{position:fixed;z-index:200;max-width:260px;padding:9px 13px;border-radius:12px;background:#303639;color:#fff;font-size:13px;line-height:18px;box-shadow:0 8px 24px #0a121866}

/* Верхний ряд: «Продажи/Прибыль» — раскладка внутри .wz, а не на самой карточке; «Заморожено» — стебли не заходят на цифру */
#widgets-top .daily-summary{padding:0!important}
#widgets-top .daily-summary>.wz{display:flex;flex-direction:column;justify-content:space-between;padding-top:19px;padding-bottom:15px}
#widgets-top .metric.frozen .frozen-lollipops{height:44px;bottom:8px}

/* План дел: полоса таймера, шаги-подпункты */
.plan-timer{margin:2px 0 8px}
.plan-timer-track{height:6px;border-radius:3px;background:#d5dcdf;overflow:hidden}
.plan-timer-fill{height:100%;width:0;border-radius:3px;background:linear-gradient(90deg,#2fa37a,#e9a33c);transition:width 1s linear}
.plan-timer-text{display:block;margin-top:3px;font-size:11.5px;color:#4a5a66}
.plan-steps{grid-column:2 / -1;list-style:none;margin:2px 0 0;padding:0;display:flex;flex-direction:column;gap:3px}
.plan-steps label{display:flex;gap:7px;align-items:flex-start;font-size:12px;line-height:16px;color:#33434e;cursor:pointer}
.plan-steps input{margin:1px 0 0;width:14px;height:14px;accent-color:#2f8a5f;flex:none}
.plan-steps .plan-done span{text-decoration:line-through;opacity:.6}

/* Чат AI Agent: поверх всей нижней части левой колонки (Фотоотчёт/Кошелёк/Доставки и карта груза) */
.deliveries{position:relative}
.agent-chat{display:none;position:absolute;inset:0;z-index:5;flex-direction:column;gap:8px;padding:12px;overflow:hidden;box-sizing:border-box;border-radius:inherit;
  background:linear-gradient(160deg,#f4f7fc,#e7eef8);color:#172b39;text-align:left}
body.chat-open .agent-chat{display:flex}
body.chat-open .deliveries>:not(.agent-chat){visibility:hidden}
.chat-head{display:flex;align-items:center;justify-content:space-between;flex:none}
.chat-head strong{font-size:15px}
.chat-close{border:0;background:#fff;width:28px;height:28px;border-radius:14px;font-size:18px;line-height:1;cursor:pointer;color:inherit;box-shadow:0 1px 3px #0002}
.chat-log{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:7px;padding:2px 2px 2px 0}
.chat-msg{max-width:88%;padding:8px 11px;border-radius:16px;font-size:13px;line-height:18px;white-space:pre-wrap;overflow-wrap:anywhere;text-align:left}
.chat-me{align-self:flex-end;background:#2b3a46;color:#fff;border-bottom-right-radius:5px}
.chat-ai{align-self:flex-start;background:#fff;color:#172b39;border-bottom-left-radius:5px;box-shadow:0 1px 3px #10263714}
.chat-wait{opacity:.6}
.chat-hello{margin:auto 0;display:flex;flex-direction:column;gap:10px;align-items:stretch;text-align:left}
.chat-hello p{margin:0;font-size:13px;line-height:18px;color:#4a5a66}
.chat-ideas{display:flex;flex-direction:column;gap:6px}
.chat-idea{border:1px solid #cfdaea;background:#fff;color:#172b39;border-radius:14px;padding:8px 12px;font:inherit;font-size:12.5px;text-align:left;cursor:pointer}
.chat-idea:hover{background:#eef4fc}
.chat-row{display:flex;gap:8px;align-items:flex-end;flex:none;width:100%}
.chat-input{flex:1 1 auto;min-width:0;width:100%;resize:none;border:1px solid #c5d2e3;border-radius:16px;padding:9px 12px;font:inherit;font-size:13px;line-height:18px;background:#fff;color:inherit;max-height:90px;box-sizing:border-box}
.chat-send{border:0;width:36px;height:36px;border-radius:18px;background:#2b3a46;color:#fff;font-size:18px;cursor:pointer;flex:none}
.chat-left{font-size:10.5px;color:#6b7a86;flex:none}
.bar-agent.bar-agent-on{box-shadow:0 0 0 2px #2f86e8aa}
.deliveries>.agent-chat{grid-row:1 / -1;grid-column:1 / -1}

/* Чат: контрастный акцентный фон, чтобы было видно, что это отдельный помощник; клики всегда доходят */
.agent-chat,.agent-chat *{pointer-events:auto}
.agent-chat{background:linear-gradient(160deg,#2f4a7a,#1b2a48)!important;color:#fff;box-shadow:inset 0 0 0 1px #ffffff1f}
.agent-chat .chat-head strong{color:#fff}
.agent-chat .chat-close{background:#ffffff26;color:#fff;box-shadow:none;position:relative;z-index:2}
.agent-chat .chat-close:hover{background:#ffffff40}
.agent-chat .chat-me{background:#4a8cff;color:#fff}
.agent-chat .chat-ai{background:#fff;color:#172b39}
.agent-chat .chat-hello p{color:#dbe6f7}
.agent-chat .chat-idea{background:#ffffff1f;border-color:#ffffff40;color:#fff}
.agent-chat .chat-idea:hover{background:#ffffff38}
.agent-chat .chat-left{color:#b9c8e2}
.agent-chat .chat-input{border-color:transparent}
.agent-chat .chat-send{background:#4a8cff}
.agent-chat .chat-input{color:#172b39;caret-color:#172b39}
.agent-chat .chat-input::placeholder{color:#7a8794;opacity:1}
.agent-chat .chat-input{scrollbar-width:none;overflow-y:auto}
.agent-chat .chat-input::-webkit-scrollbar{display:none}

/* Бенто: фиксированные строки; тело блока прокручивается, если не помещается */
.dg-block>.dg-body{flex:1;min-height:0;overflow:hidden auto;scrollbar-width:thin}
.dg-ш .dg-body,.dg-в .dg-body{font-size:inherit}
.dg-shape{display:none;position:absolute;top:8px;right:36px;width:24px;height:24px;border:0;border-radius:50%;align-items:center;justify-content:center;background:#ffffffcc;cursor:pointer;padding:0;z-index:3}
.dg-block:hover .dg-shape,.dg-block:focus-within .dg-shape,.dg-editing .dg-shape{display:flex}
.dg-shape-ico{display:block;border:1.5px solid #52626e;border-radius:2px;box-sizing:border-box}
.dg-shape-м{width:8px;height:8px}.dg-shape-ш{width:16px;height:8px}.dg-shape-в{width:8px;height:16px}.dg-shape-б{width:13px;height:13px}
.dg-shape-menu{position:absolute;top:36px;right:30px;z-index:6;display:flex;gap:6px;padding:7px 9px;border-radius:14px;background:#fff;box-shadow:0 8px 22px #1e2b3a2e}
.dg-shape-opt{width:30px;height:30px;border:1px solid #d7dde3;border-radius:9px;background:#f6f8fa;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
.dg-shape-opt.on{background:#2b3a46;border-color:#2b3a46}.dg-shape-opt.on .dg-shape-ico{border-color:#fff}
@media(max-width:900px){.dg{grid-template-columns:repeat(6,minmax(0,1fr))}.dg-м,.dg-в{grid-column:span 3}.dg-ш,.dg-б,.dg-с{grid-column:span 6}}

/* --- Дашборд: брифинг, путь денег, рекорды, пульс, прогноз, симулятор --- */
.brief{display:flex;flex-direction:column;gap:7px}
.brief-line{margin:0;font-size:14px;line-height:20px;color:#1e2b36;animation:brief-in .5s ease both}
.brief-line:first-child{font-size:15.5px;font-weight:600}
.brief-compact .brief-line{font-size:12.5px;line-height:17px}
.brief-first{font-size:12.5px;line-height:17px;margin:0;display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden}
.brief-ai{align-self:flex-start;margin-top:auto;font-size:10.5px;color:#6b7a86;background:#eef3f8;border-radius:9px;padding:2px 8px}
@keyframes brief-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.pd-svg{width:100%;height:auto;max-height:100%;display:block}
.pd-ribbon{opacity:.34;transition:opacity .2s;cursor:pointer}.pd-ribbon:hover{opacity:.62}
.pd-node{cursor:pointer}.pd-label{font-size:12px;fill:#1e2b36;cursor:pointer}.pd-name{font-weight:600}.pd-sum{fill:#5a6a75;font-size:11px}
.pd-detail{margin:2px 0 0;min-height:18px}
.pd-bar{display:flex;gap:3px;height:22px;margin:6px 0 2px}
.pd-seg{border:0;border-radius:7px;min-width:6px;cursor:pointer;padding:0;opacity:.9}.pd-seg:hover{opacity:1;transform:scaleY(1.12)}
.sim-changed{color:#2f8a5f;font-weight:600}
.rec-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.rec-tile{display:flex;flex-direction:column;gap:2px;padding:9px 11px;border-radius:14px;background:#ffffff99;min-width:0}
.rec-tile small{font-size:11px;color:#6b7a86}.rec-tile b{font-size:17px;line-height:22px}.rec-tile span{font-size:11px;color:#6b7a86}
.rec-new{background:linear-gradient(135deg,#fff3cf,#ffe3a8)}
.rec-goal{display:flex;gap:12px;align-items:center;margin-top:8px}.rec-goal b{display:block;font-size:13px}
.rec-в,.rec-с{grid-template-columns:1fr}
.pulse-head{display:flex;align-items:baseline;gap:8px}
.pulse-count{font-size:32px;line-height:36px;letter-spacing:-.5px}
.pulse-count.pulse-tick{animation:pulse-tick .6s ease}
.pulse-dot{width:9px;height:9px;border-radius:50%;background:#2fa37a;align-self:center;box-shadow:0 0 0 0 #2fa37a88;animation:pulse-dot 2s infinite}
@keyframes pulse-dot{70%{box-shadow:0 0 0 9px #2fa37a00}100%{box-shadow:0 0 0 0 #2fa37a00}}
@keyframes pulse-tick{0%{transform:scale(1)}40%{transform:scale(1.18);color:#2f8a5f}100%{transform:scale(1)}}
.pulse-list{list-style:none;margin:6px 0 0;padding:0;display:flex;flex-direction:column;gap:4px}
.pulse-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px;font-size:12px;line-height:16px;padding:3px 6px;border-radius:9px}
.pulse-row.pulse-new{animation:pulse-in .9s ease both;background:#e4f5ec}
@keyframes pulse-in{from{opacity:0;transform:translateY(-10px);background:#bfe9d3}to{opacity:1;transform:none}}
.pulse-time{color:#6b7a86;white-space:nowrap}.pulse-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pulse-sum{font-weight:600;white-space:nowrap}
.fc{margin:4px 0}.fc-svg{width:100%;height:126px;display:block}
.fc-hist{fill:none;stroke:#2b6cb0;stroke-width:2;vector-effect:non-scaling-stroke}
.fc-hist-area{fill:#2b6cb0;opacity:.1}
.fc-band{fill:url(#fc-fade)}.fc-mid{fill:none;stroke:#3b82c4;stroke-width:1.5;stroke-dasharray:5 4;vector-effect:non-scaling-stroke}
.fc-today{stroke:#8896a2;stroke-dasharray:3 3;vector-effect:non-scaling-stroke}
.fc-arrive path{fill:#2f9e6b}.fc-out{fill:#d64545;stroke:#fff;stroke-width:1.5}.fc-out-line{stroke:#d64545;stroke-dasharray:3 3;opacity:.6;vector-effect:non-scaling-stroke}
.fc-legend{display:flex;gap:12px;flex-wrap:wrap;font-size:11px;color:#5a6a75}
.fc-k-hist:before{content:"";display:inline-block;width:12px;height:2px;background:#2b6cb0;margin-right:5px;vertical-align:middle}
.fc-k-band:before{content:"";display:inline-block;width:12px;height:8px;background:#3b82c455;margin-right:5px;vertical-align:middle;border-radius:2px}
.fc-k-arr{color:#2f9e6b}.fc-k-out{color:#d64545}
.sim{position:sticky;bottom:0;z-index:7;margin-top:6px;border-radius:20px 20px 0 0;background:linear-gradient(160deg,#2f4a7a,#1b2a48);color:#fff;box-shadow:0 -8px 24px #1b2a4838}
.sim-handle{display:flex;flex-direction:column;align-items:center;gap:4px;width:100%;border:0;background:none;color:#fff;font:inherit;font-size:13px;font-weight:600;padding:7px 0 8px;cursor:pointer}
.sim-handle-bar{width:38px;height:4px;border-radius:2px;background:#ffffff66}
.sim-body{display:none;grid-template-columns:minmax(260px,1fr) minmax(0,1.3fr);gap:18px;padding:4px 18px 16px;max-height:46vh;overflow:auto}
.sim-open .sim-body{display:grid}
.sim-controls{display:flex;flex-direction:column;gap:10px}
.sim-row{display:grid;grid-template-columns:130px minmax(0,1fr) auto;gap:10px;align-items:center;font-size:12.5px}
.sim-row input[type=range]{width:100%;accent-color:#6aa6ff}.sim-val{min-width:78px;text-align:right;font-size:12px}
.sim-transport{grid-template-columns:130px 1fr 1fr 1fr}.sim-transport .filter{height:30px;font-size:12px;padding:0 8px;background:#ffffff1f;color:#fff;border:0}
.sim-transport .filter.active{background:#fff;color:#1b2a48}
.sim-reset{align-self:flex-start;height:32px;background:#ffffff26;color:#fff;border:0}
.sim-table{display:flex;flex-direction:column;gap:4px;font-size:12.5px}
.sim-line{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;gap:8px;padding:5px 9px;border-radius:10px;background:#ffffff12;align-items:baseline}
.sim-was{color:#b9c8e2}.sim-arrow{color:#b9c8e2}.sim-now{min-width:70px;text-align:right}
.sim-line.sim-up{background:#2fa37a40;box-shadow:inset 3px 0 0 #3ddc97}.sim-line.sim-down{background:#e0555540;box-shadow:inset 3px 0 0 #ff7a7a}
.sim-notes{grid-column:1 / -1;color:#b9c8e2;margin:0}
@media(max-width:900px){.sim-body{grid-template-columns:1fr}}

/* Юнит-экономика: главный экран из четырёх плиток */
.eh{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(250px,1fr);gap:16px;height:100%;min-height:0;padding:2px}
.eh-tile{display:flex;flex-direction:column;border-radius:28px;background:linear-gradient(140deg,#f9f8f5e0,#f4f2ee);box-shadow:0 2px 10px #1e2b3a12;overflow:hidden;min-height:0;transition:transform .2s,box-shadow .2s}
.eh-tile:hover{transform:translateY(-2px);box-shadow:0 10px 26px #1e2b3a1f}
.eh-main{flex:1;min-height:0;display:flex;flex-direction:column;gap:6px;border:0;background:none;text-align:left;font:inherit;color:inherit;padding:22px 24px 8px;cursor:pointer}
.eh-top{display:flex;align-items:center;gap:10px}
.eh-ico{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:12px;font-style:normal;font-size:16px;color:#fff;background:#2b3a46}
.eh-profit .eh-ico{background:#3a9d6b}.eh-goods .eh-ico{background:#e08d4a}.eh-trend .eh-ico{background:#5f8fd0}.eh-calc .eh-ico{background:#8a6fc0}
.eh-top small{font-size:15px;font-weight:600;color:#33434e}
.eh-big{font-size:32px;line-height:38px;letter-spacing:-.6px;margin-top:6px}
.eh-sub{font-size:13px;line-height:18px;color:#5a6a75}
.eh-viz{margin-top:auto;display:block;padding-top:10px}
.eh-share{display:flex;flex-direction:column;gap:9px}
.eh-bar{display:flex;gap:3px;height:26px}.eh-seg{display:block;border-radius:8px;min-width:6px}
.eh-legend{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:12px;color:#4a5a66}
.eh-legend span{display:inline-flex;align-items:center;gap:5px}.eh-legend i{width:9px;height:9px;border-radius:50%;display:inline-block}
.eh-viz .dg-spark{width:100%;height:78px;display:block}
.eh-calc{display:flex;flex-wrap:wrap;gap:8px}.eh-calc i{font-style:normal;font-size:13px;padding:7px 14px;border-radius:14px;background:#8a6fc01f;color:#5a4690}
.eh-links{display:flex;flex-wrap:wrap;gap:7px;padding:8px 20px 18px}
.eh-link{border:0;border-radius:14px;background:#ffffffcc;box-shadow:inset 0 0 0 1px #dde3e8;padding:7px 13px;font:inherit;font-size:12.5px;color:#33434e;cursor:pointer}
.eh-link:hover{background:#2b3a46;color:#fff;box-shadow:none}
.eh-crumbs{display:flex;align-items:center;gap:12px}.eh-back{height:38px}.eh-crumb{font-size:18px}
@media(max-width:900px){.eh{grid-template-columns:1fr;grid-auto-rows:auto}}

/* --- Дашборд: цветные плитки-разделы, цвет блоков по группам, «Лента дня» --- */
.dh{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(250px,1fr);gap:16px;min-height:0;padding:2px}
.dh-tile{display:flex;flex-direction:column;border-radius:28px;overflow:hidden;min-height:0;box-shadow:0 2px 10px #1e2b3a14;transition:transform .2s,box-shadow .2s}
.dh-tile:hover{transform:translateY(-2px);box-shadow:0 12px 28px #1e2b3a24}
.dh-прибыль{background:linear-gradient(140deg,#eaf8f0,#cfeedd)}.dh-товары{background:linear-gradient(140deg,#fff1e1,#fadcba)}
.dh-динамика{background:linear-gradient(140deg,#e8f0fd,#cdddf6)}.dh-поставки{background:linear-gradient(140deg,#f0eafa,#dacdf1)}
.dh-main{flex:1;min-height:0;display:flex;flex-direction:column;gap:6px;border:0;background:none;text-align:left;font:inherit;color:inherit;padding:22px 24px 8px;cursor:pointer}
.dh-top{display:flex;align-items:center;gap:10px}.dh-top small{font-size:15px;font-weight:600;color:#2c3c48}
.dh-go{margin-left:auto;font-style:normal;font-size:12px;color:#4a5a66;opacity:0;transition:opacity .2s}.dh-tile:hover .dh-go{opacity:1}
.dh-ico{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:12px;font-style:normal;font-size:16px;color:#fff}
.dh-прибыль .dh-ico{background:#2f9e6b}.dh-товары .dh-ico{background:#e08d4a}.dh-динамика .dh-ico{background:#4f80c8}.dh-поставки .dh-ico{background:#8a6fc0}
.dh-big{font-size:34px;line-height:40px;letter-spacing:-.6px;margin-top:6px}
.dh-sub{font-size:13px;line-height:18px;color:#46566a}
.dh-viz{margin-top:auto;display:block;padding-top:10px}
.dh-viz .dg-spark{width:100%;height:78px;display:block}.dh-viz .dg-shelves{background:#ffffff70;border-radius:14px;padding:8px 10px}
.dh-links{display:flex;flex-wrap:wrap;gap:7px;padding:8px 20px 18px}
.dh-link{border:0;border-radius:14px;background:#ffffffb8;padding:7px 13px;font:inherit;font-size:12.5px;color:#2c3c48;cursor:pointer}.dh-link:hover{background:#2b3a46;color:#fff}
.dh-crumbs{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.dh-back{height:38px}.dh-crumb{font-size:18px}
.dh-chips{margin-left:auto;display:flex;gap:6px}.dh-chip{border:0;border-radius:13px;background:#ffffffb0;padding:6px 12px;font:inherit;font-size:12px;cursor:pointer}.dh-chip:hover{background:#2b3a46;color:#fff}
.dh-flash{animation:plan-flash 1.6s ease 1}
/* Блоки сетки — своего цвета по группе */
.dg-block[data-тон="прибыль"]{background:linear-gradient(135deg,#f2fbf6,#e0f3e8)}
.dg-block[data-тон="товары"]{background:linear-gradient(135deg,#fff7ee,#fbe8d0)}
.dg-block[data-тон="динамика"]{background:linear-gradient(135deg,#f1f6fe,#dce8f9)}
.dg-block[data-тон="поставки"]{background:linear-gradient(135deg,#f6f2fc,#e6dcf5)}
.day{display:flex;flex-direction:column;gap:12px}.day-brief{display:flex;flex-direction:column;gap:6px}
.dg-д .dg-pulse{margin-top:4px}
@media(max-width:900px){.dh{grid-template-columns:1fr;grid-auto-rows:auto}}

.dh-wrap{height:100%;overflow-y:auto;scrollbar-width:thin}
.dh{grid-auto-rows:minmax(290px,auto)}
.dh-main{padding:18px 22px 6px}.dh-big{font-size:30px;line-height:36px}
.dg-м .pulse-row,.dg-в .pulse-row,.dg-д .pulse-row{grid-template-columns:minmax(0,1fr) auto}
.dg-м .pulse-name,.dg-в .pulse-name,.dg-д .pulse-name{grid-column:1 / -1;order:3;white-space:normal}

/* Плитки: график не налезает на ссылки, пояснение к диаграмме */
.dh-main{flex:1 0 auto}
.dh-note{display:block;margin-top:6px;font-size:11.5px;line-height:15px;color:#5a6a78}

/* Дашборд: колонка «Под рукой» справа */
.dd{display:grid;grid-template-columns:minmax(0,1fr) 252px;gap:14px;height:100%;min-height:0;position:relative}
.dd>.dg-wrap{min-height:0;overflow-y:auto;scrollbar-width:thin}
.dd-rail{display:flex;flex-direction:column;gap:10px;min-height:0;overflow-y:auto;scrollbar-width:thin;padding-right:2px}
.dd-collapsed{grid-template-columns:minmax(0,1fr)}.dd-collapsed .dd-rail{display:none}
.rl-open{display:none}.dd-collapsed .rl-open{display:block;position:absolute;top:0;right:0;z-index:4;border:0;border-radius:14px;background:#2b3a46;color:#fff;font:inherit;font-size:12px;padding:7px 12px;cursor:pointer}
.rl-head{display:flex;justify-content:space-between;align-items:center;padding:0 4px;font-size:13px;color:#33434e}
.rl-fold{border:0;background:#ffffffb0;border-radius:50%;width:26px;height:26px;cursor:pointer;font-size:15px;line-height:1}
.rl{display:flex;flex-direction:column;gap:5px;border-radius:20px;padding:12px 14px;box-shadow:0 1px 6px #1e2b3a12}
.rl-title{margin:0;font-size:12px;font-weight:600;letter-spacing:.2px;color:#4a5a66;text-transform:uppercase}
.rl-прибыль{background:linear-gradient(140deg,#eaf8f0,#d3eedf)}.rl-товары{background:linear-gradient(140deg,#fff1e1,#fadfc2)}
.rl-динамика{background:linear-gradient(140deg,#e8f0fd,#d2e1f7)}.rl-поставки{background:linear-gradient(140deg,#f0eafa,#ded3f2)}
.rl-нейтр{background:#ffffffb8}
.rl-big{display:flex;align-items:baseline;gap:7px}.rl-big b{font-size:26px;line-height:30px;letter-spacing:-.4px}.rl-big span{font-size:12px;color:#4a5a66}
.rl-note{margin:0;font-size:12px;line-height:16px;color:#46566a}
.rl-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:3px}
.rl-row{display:flex;justify-content:space-between;gap:8px;font-size:12.5px;line-height:17px}.rl-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rl-row.rl-hot b{color:#c0392b}
.rl-goal{display:flex;gap:10px;align-items:center}.rl-goal b{font-size:14px}
.rl-link{align-self:flex-start;border:0;background:none;padding:2px 0 0;font:inherit;font-size:12px;color:#2b5fa8;cursor:pointer}.rl-link:hover{text-decoration:underline}
.rl-actions{display:flex;flex-direction:column;gap:6px}
.rl-act{border:0;border-radius:12px;background:#2b3a46;color:#fff;padding:8px 12px;font:inherit;font-size:12.5px;text-align:left;cursor:pointer}.rl-act:nth-child(n+2){background:#e4e9ee;color:#24323e}
@media(max-width:1180px){.dd{grid-template-columns:minmax(0,1fr)}.dd .dd-rail{display:none}}
.dh,.dg-urgent-slot{flex:none}
.dd-rail{max-height:100%}

/* --- Утренний брифинг: самая яркая карточка раздела --- */
.hero{flex:none;border-radius:28px;padding:18px 22px 16px;color:#fff;background:radial-gradient(120% 140% at 0% 0%,#ff9f43 0%,#f0627a 38%,#6a4cd6 100%);box-shadow:0 10px 28px #6a4cd650}
.hero-head{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.hero-head h2{margin:0;font-size:19px;letter-spacing:-.2px}.hero-sun{font-size:22px;filter:drop-shadow(0 2px 6px #00000030)}
.hero-ai{margin-left:auto;font-size:11px;background:#ffffff2e;border-radius:10px;padding:3px 10px}
.hero-body{display:flex;flex-direction:column;gap:9px}
.hero .brief-row{color:#fff;font-size:15px;line-height:21px}
.hero .brief-num{color:#fff;background:#ffffff33;border-radius:7px;padding:0 6px}
.brief{display:flex;flex-direction:column;gap:8px}
.brief-row{display:flex;align-items:baseline;gap:9px;margin:0;font-size:13.5px;line-height:19px;color:#1e2b36;animation:brief-in .5s ease both}
.brief-text{min-width:0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.brief-tag{flex:none;font-size:10.5px;font-weight:700;letter-spacing:.3px;text-transform:uppercase;border-radius:8px;padding:2px 8px;align-self:flex-start;margin-top:2px}
.brief-tag-y{background:#ffffff40;color:#fff}.brief-tag-r{background:#ff3b5c;color:#fff}.brief-tag-b{background:#ffe08a;color:#5a3d00}
.brief-num{font-weight:800;color:#c2410c;font-variant-numeric:tabular-nums}
.brief-first{margin:0;font-size:13px;line-height:18px;display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden}
.brief-ai{font-size:10.5px;color:#fff;background:#ffffff33;border-radius:9px;padding:2px 9px;align-self:flex-start;margin-top:auto}
/* Блок «Утренний брифинг» в сетке — такой же яркий */
.dg-block[data-блок="брифинг"]{background:radial-gradient(120% 140% at 0% 0%,#ff9f43 0%,#f0627a 40%,#6a4cd6 100%);color:#fff;box-shadow:0 8px 22px #6a4cd64a}
.dg-block[data-блок="брифинг"] .dg-head h3,.dg-block[data-блок="брифинг"] .dg-window,.dg-block[data-блок="брифинг"] .dg-size{color:#fff}
.dg-block[data-блок="брифинг"] .brief-row,.dg-block[data-блок="брифинг"] .brief-first{color:#fff}
.dg-block[data-блок="брифинг"] .brief-num{color:#fff;background:#ffffff33;border-radius:6px;padding:0 5px}
.dg-block[data-блок="брифинг"] .brief-tag-y{background:#ffffff40}
.dg-block[data-блок="брифинг"] .dg-shape,.dg-block[data-блок="брифинг"] .dg-remove{color:#24323e}
/* Заглушки загрузки */
.skel-line,.skel-block{display:block;border-radius:10px;background:linear-gradient(90deg,#ffffff55,#ffffffb0,#ffffff55);background-size:200% 100%;animation:skel 1.2s linear infinite}
.skel-line{height:14px}.skel-big{height:34px;width:60%}.skel-w40{width:40%}.skel-w70{width:70%}.skel-block{height:70px;margin-top:auto}
@keyframes skel{to{background-position:-200% 0}}
.dh-skel{padding:22px 24px;gap:12px;display:flex;flex-direction:column}.rl-skel{gap:8px}
.hero .skel-line{background:linear-gradient(90deg,#ffffff30,#ffffff66,#ffffff30);background-size:200% 100%}
/* Строки пульса: время и сумма сверху, название под ними — без наложений */
.pulse-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"t n s";align-items:baseline;column-gap:8px;row-gap:1px}
.pulse-time{grid-area:t}.pulse-name{grid-area:n}.pulse-sum{grid-area:s}
.dg-м .pulse-row,.dg-в .pulse-row,.dg-д .pulse-row,.dd-rail .pulse-row{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"t s" "n n"}
.dg-м .pulse-name,.dg-в .pulse-name,.dg-д .pulse-name{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
/* Лента дня — компактно, без гигантского шрифта */
.day-brief .brief-row{font-size:12.5px;line-height:17px}
.day-brief{gap:7px}
/* Структура выручки — рейтинг категорий */
.cat-list{display:flex;flex-direction:column;gap:9px}
.cat-row{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"n p" "b b" "s s";gap:2px 8px;align-items:baseline}
.cat-name{grid-area:n;font-size:13px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cat-share{grid-area:p;font-size:15px}.cat-bar{grid-area:b;display:block;height:9px;border-radius:5px;background:#ffffff99;overflow:hidden}
.cat-fill{display:block;height:100%;border-radius:5px}.cat-sum{grid-area:s;font-size:11.5px;color:#5a6a75}
.cat-fill.cat-0{background:#3a9d6b}.cat-fill.cat-1{background:#4f80c8}.cat-fill.cat-2{background:#e08d4a}.cat-fill.cat-3{background:#8a6fc0}.cat-fill.cat-4{background:#d9577a}.cat-fill.cat-5{background:#8e9aaf}
/* Советы и длинные тексты в блоках — не больше двух строк, главное выделено */
.dg-block .tab-advice-grid{grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:8px}
.dg-block .tab-advice{padding:10px 12px;min-height:0}
.dg-block .tab-advice h2{font-size:13px;line-height:17px;margin:0 0 3px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.dg-block .tab-advice p{font-size:12px;line-height:16px;margin:0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.dg-block .dg-verdict,.dg-block .dash-what{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.dg-ш .dg-verdict{font-size:15px;line-height:20px}
.day-brief .brief-row{font-size:12px;line-height:16px;color:#1e2b36}.day-brief .brief-tag-y{background:#e8eef6;color:#33434e}
.day-brief .brief-text{-webkit-line-clamp:2}

/* Горизонтальный водопад */
.wfh{display:flex;flex-direction:column;gap:6px;margin-top:4px}
.wfh-row{display:grid;grid-template-columns:minmax(120px,170px) minmax(0,1fr) 78px;gap:10px;align-items:center;min-height:30px}
.wfh-name{font-size:13px;line-height:16px;color:#2c3c48;display:flex;flex-direction:column}.wfh-name small{font-size:10.5px;color:#b0483f}
.wfh-track{position:relative;display:block;height:16px;border-radius:8px;background:#ffffff80}
.wfh-bar{position:absolute;top:0;bottom:0;border-radius:8px;background:#5d6d7b}
.wfh-total .wfh-bar{background:linear-gradient(90deg,#4a5a68,#6b7c8b)}.wfh-final .wfh-bar,.wfh-green .wfh-bar{background:linear-gradient(90deg,#3a9d6b,#62c08f)}
.wfh-red .wfh-bar{background:linear-gradient(90deg,#e07a5f,#eb9a85)}.wfh-none .wfh-bar{background:#c4ccd3}
.wfh-unknown{background-image:repeating-linear-gradient(135deg,#ffffff55 0 5px,#ffffff00 5px 10px)}
.wfh-val{text-align:right;font-size:14px;font-variant-numeric:tabular-nums}.wfh-red .wfh-val{color:#c0392b}.wfh-final .wfh-val,.wfh-green .wfh-val{color:#2f8a5f}
/* Вывод магазина */
.dg-block .dash-verdict{font-size:19px;line-height:25px}
.vw-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:8px;margin-top:6px}
.vw-stat{display:flex;flex-direction:column;gap:1px;padding:10px 12px;border-radius:14px;background:#ffffff99}
.vw-stat b{font-size:26px;line-height:30px}.vw-stat span{font-size:12px;color:#4a5a66}
/* Узкие блоки (колонка справа отнимает ширину): компактные числа, предупреждение столбиком */
.vw-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.vw-stat{padding:8px 9px}.vw-stat b{font-size:22px;line-height:26px}.vw-stat span{font-size:11px;line-height:13px}
.dg-block[data-блок="вывод"] .dash-health-legend{display:none}
.dg-block .econ-warning{flex-direction:column;align-items:flex-start;gap:6px;font-size:12px;line-height:16px;padding:8px 10px}
.dg-block .econ-warning .filter{height:30px;font-size:12px}
.wfh-row{grid-template-columns:minmax(96px,150px) minmax(0,1fr) 66px;gap:8px}
/* Водопад компактнее: все ступени видны без прокрутки в блоке 6×2 */
.dg-block .wfh{gap:3px}.dg-block .wfh-row{min-height:22px;grid-template-columns:minmax(90px,140px) minmax(0,1fr) 62px}
.dg-block .wfh-name{font-size:11.5px;line-height:13px}.dg-block .wfh-track{height:11px}.dg-block .wfh-val{font-size:12px}
.dg-block .econ-warning{padding:6px 9px;gap:4px}.dg-block .econ-warning .filter{height:26px}

/* Юнит-экономика: у плитки — список разделов с описанием и живой цифрой */
.eh{grid-auto-rows:auto;align-content:start;overflow-y:auto;scrollbar-width:thin;height:100%}
.eh-main{flex:none;padding:20px 24px 6px}.eh-big{font-size:30px;line-height:36px}
.eh-count{margin-left:auto;font-style:normal;font-size:11.5px;color:#5a6a78;background:#ffffffa0;border-radius:10px;padding:3px 9px}
.eh-secs{display:flex;flex-direction:column;gap:2px;padding:8px 14px 14px;margin-top:auto}
.eh-sec{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;border:0;background:#ffffffa6;border-radius:14px;padding:9px 13px;font:inherit;text-align:left;color:inherit;cursor:pointer;margin-bottom:5px}
.eh-sec:hover{background:#ffffff;box-shadow:0 2px 10px #1e2b3a1c}
.eh-sec-text{display:flex;flex-direction:column;gap:1px;min-width:0}.eh-sec-text b{font-size:13.5px}.eh-sec-text small{font-size:11.5px;color:#5a6a78;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.eh-sec-val{font-size:13px;font-weight:600;white-space:nowrap;color:#33434e}.eh-sec-val.tone-green{color:#2f8a5f}.eh-sec-val.tone-red{color:#c0392b}
.eh-skel{padding:22px 24px;gap:12px;display:flex;flex-direction:column;min-height:280px}
.eh-tile .eh-viz{padding-bottom:6px}
/* Плитки не должны сжиматься ниже своего содержимого (на 1280 нижние ссылки и разделы обрезались) */
.eh,.dh{grid-auto-rows:max-content}
.eh-tile,.dh-tile{min-height:auto}
/* Узкие блоки: заголовок не должен терять место на подписи окна и размера */
.dg-м .dg-window,.dg-м .dg-size,.dg-в .dg-size,.dg-д .dg-size{display:none}
.dg-м .dg-head h3,.dg-в .dg-head h3,.dg-д .dg-head h3{white-space:normal;line-height:17px}
.dd{grid-template-columns:minmax(0,1fr) 226px}
/* Развёрнутая корзина: колонка предупреждений читается, таблица при нехватке места прокручивается, а не обрезается */
.cart-overlay-body{overflow-x:auto}
.cart-t-warn{min-width:150px;font-size:11.5px;line-height:15px;white-space:normal}.cart-t-warn span{display:block}
.cart-table td:nth-child(2){max-width:210px}
.cart-table td:nth-child(2) .cart-name,.cart-table td:nth-child(2) strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Тело блока: элементы не сжимаются друг под друга (подпись «Путь денег» обрезалась схемой) */
.dg-body>*{flex-shrink:0}
.dg-body .pd-svg{max-height:none}
/* Карта товаров в блоке: подписи зон не обрезаются */
.dg-block .dash-zone{overflow:visible}.dg-block .dash-zone-name{font-size:11px;white-space:nowrap}
.dg-block .dash-zone{padding:4px 3px}.dg-block .dash-zone-name{font-size:10.5px;letter-spacing:-.1px}

/* Таймер внутри плана дел: крупный обратный отсчёт над полосой */
.plan-timer-big{display:block;font-size:30px;line-height:34px;font-weight:600;letter-spacing:-.5px;font-variant-numeric:tabular-nums;color:#172b39;margin-bottom:4px}
.plan-timer-over .plan-timer-big{color:#a83430}

/* Uniform navigation capsules; keep the clock settings expansion functional. */
@media(min-width:901px){
 html .topnav{grid-template-columns:repeat(3,minmax(0,1fr)) 149px!important}
 html .topnav>.navitem{width:100%!important;min-width:0;height:54px;box-sizing:border-box}
}
html .topnav>.navitem,
html .topnav>.navitem.selected,
html .topnav>.nav-clock{
 background:linear-gradient(120deg,#fff,#fbfbfd);
 color:#06152b;box-shadow:0 3px 8px #0002,inset 0 1px 2px #fff9;
 text-align:center;font-weight:500;
}
html .topnav>button.navitem{display:flex;align-items:center;justify-content:center}
html .topnav .clock-toggle{display:flex;align-items:center;justify-content:center;text-align:center}
html .topnav .nav-clock-time{align-items:center;justify-content:center;text-align:center}

/* Preserve original type and icons; center each icon/label pair. */
html .topnav>button.navitem{display:flex;align-items:center;justify-content:center}
html .topnav>button.navitem>.nav-label{display:block;flex:0 0 auto;text-align:center;line-height:1.2;white-space:nowrap}

html .topnav>button.navitem[data-tab="Юнит-экономика"]>.nav-label{transform:translateX(calc(-1 * var(--cards-shift,5px)))}

/* Product pictures follow card height; reserve the same space for the advice. */
@media(min-width:901px){
 #product-scroll>.product{container-type:size}
 #product-scroll .product-image{width:100cqh!important;height:100cqh!important;object-fit:cover}
 #product-scroll .product>.tip{left:calc(100cqh + 24px)!important}
}

/* Варианты вопросов доступны и при загруженной истории чата. */
.chat-composer{position:relative;flex:none;min-width:0}
.chat-footer{display:flex;align-items:center;gap:9px;margin-top:6px;min-height:26px}
.chat-questions-toggle{display:flex;align-items:center;justify-content:center;flex:none;width:26px;height:26px;padding:0;border:1px solid #ffffff50;border-radius:50%;background:#ffffff20;color:#fff;font-size:22px;line-height:1;cursor:pointer}
.chat-questions-toggle:hover{background:#ffffff38}
.chat-question-options{position:absolute;bottom:calc(100% + 8px);left:0;right:0;z-index:5;display:flex;flex-direction:column;gap:6px;padding:9px;border:1px solid #ffffff40;border-radius:16px;background:#263c61;box-shadow:0 8px 24px #0004;max-height:min(180px,25vh);overflow-y:auto}
.chat-question-options[hidden]{display:none}
.chat-question-options .chat-idea{flex:none}
.chat-questions-toggle:focus-visible{outline:2px solid #b9d4ff;outline-offset:2px}

.account-tax button .account-tax-label{display:block;transform:translateY(9px)}

/* Hide cart scrollbars while retaining wheel and touch scrolling. */
.cart-list,.cart-addons{scrollbar-width:none}
.cart-list::-webkit-scrollbar,.cart-addons::-webkit-scrollbar{display:none}

.chat-row>.chat-questions-toggle{align-self:center}

.econ-product-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.econ-product-card{position:relative;aspect-ratio:3/5;min-width:0;overflow:hidden;border:0;border-radius:20px;background:#eee;cursor:pointer;padding:0;text-align:left;font:inherit;color:#20343d}
.econ-product-card>img,.econ-product-card>.tab-noimg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:0}
.econ-product-info{position:absolute;bottom:0;left:0;right:0;display:flex;flex-wrap:wrap;gap:5px;align-items:center;padding:10px;background:#fff;border-radius:16px 16px 0 0}
.econ-product-name{flex:0 0 100%;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:12px;line-height:16px}
.econ-product-info>b{font-size:14px;overflow-wrap:anywhere}.econ-product-info .tile-pill{position:static}
.brand{gap:0!important;width:380px}
.brand img{margin-right:16px!important}
.brand-add{position:absolute!important;top:-17px!important;left:45px!important;width:420px!important;height:54px!important;padding:0 16px!important;border:0;border-radius:27px;background:transparent;box-shadow:none;font-size:17px!important;font-family:inherit;font-weight:600;color:#06152b;white-space:nowrap;cursor:pointer;margin:0!important;display:flex;align-items:center;justify-content:center}
.brand-add-text{display:inline-block;font-size:17px!important;font-weight:600;transform:translate(-30px,5px)}
.brand-add:hover .brand-add-text{animation:brand-add-pulse 1s ease-in-out infinite}
@keyframes brand-add-pulse{0%,100%{color:#06152b}50%{color:#2f86e8}}
.brand-add{position:relative!important}
.brand-add:hover:after{content:'Создать новую заявку с нуля';position:absolute;top:100%;left:50%;transform:translateX(-50%);margin-top:8px;background:#1c2429;color:#fff;font-size:12px;font-weight:400;padding:6px 10px;border-radius:8px;white-space:nowrap;box-shadow:0 4px 12px #0004;pointer-events:none}

/* Мобильный телефон — приложение не адаптировано, показываем только заглушку. */
.mobile-gate{display:none}
@media(max-width:900px){
 html,body{overflow:hidden!important}
 body>*:not(.mobile-gate){display:none!important}
 .mobile-gate{display:flex!important;position:fixed;inset:0;z-index:999999;flex-direction:column;gap:18px;align-items:center;justify-content:center;text-align:center;padding:24px;
   overflow:hidden;background:#3a0a06}
 .mobile-gate-blob{position:absolute;border-radius:50%;filter:blur(40px);opacity:.85;mix-blend-mode:screen}
 .mobile-gate-blob-1{width:70vmax;height:70vmax;background:#ff3d1c;left:-20vmax;top:-10vmax;animation:mobile-gate-blob-1 9s ease-in-out infinite}
 .mobile-gate-blob-2{width:60vmax;height:60vmax;background:#ff8a00;right:-25vmax;top:30vh;animation:mobile-gate-blob-2 11s ease-in-out infinite}
 .mobile-gate-blob-3{width:55vmax;height:55vmax;background:#ff512f;left:5vw;bottom:-25vmax;animation:mobile-gate-blob-3 13s ease-in-out infinite}
 .mobile-gate p{position:relative;z-index:1;font-size:38px;line-height:46px;font-family:Arial,Helvetica,sans-serif;margin:0;max-width:320px;color:#fff;text-shadow:0 2px 10px #00000080}
 @keyframes mobile-gate-blob-1{0%,100%{transform:translate(0,0) scale(1)}33%{transform:translate(18vw,14vh) scale(1.15)}66%{transform:translate(6vw,26vh) scale(.9)}}
 @keyframes mobile-gate-blob-2{0%,100%{transform:translate(0,0) scale(1)}33%{transform:translate(-16vw,-18vh) scale(.9)}66%{transform:translate(-26vw,4vh) scale(1.1)}}
 @keyframes mobile-gate-blob-3{0%,100%{transform:translate(0,0) scale(1)}33%{transform:translate(14vw,-16vh) scale(1.1)}66%{transform:translate(-8vw,-8vh) scale(.95)}}
}
