/* «Сервисы → Цифровой склад» (Раиль 21.10.2026): камера −20 °C в Пушкино в 3D.
   Вокруг сцены — обычная система сайта: линии без теней, одна заливка акцентом («Сохранить»),
   компактные блоки. Вся выразительность — в самой камере. */

.cs-view .cs-top{margin-bottom:10px}
.cs-scen{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.cs-scen-sel{min-width:180px;max-width:240px}
.cs-scen-name{width:210px;max-width:100%}
.cs-state{font-size:12px;color:var(--text-2);margin-right:6px}
.cs-state.dirty{color:var(--mid)}
.cs-del{color:var(--loss)}

.cs-main{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:12px;align-items:start}

/* Сцена */
.cs-stage{background:var(--surface-1);border:1px solid var(--edge,var(--hair));border-radius:var(--radius-card);overflow:hidden;
  display:flex;flex-direction:column;position:sticky;top:12px}
.cs-bar{display:flex;flex-direction:column;gap:5px;padding:6px 8px;border-bottom:1px solid var(--hair);background:var(--surface-2)}
.cs-bar-row{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.cs-cap{font-size:11px;color:var(--text-2);margin-right:1px}
.cs-rowbtn{min-width:30px;justify-content:center}
.cs-pills{gap:4px}
.cs-sep{width:1px;height:22px;background:var(--hair)}
.cs-grow{flex:1}
.cs-rowsel{width:auto}
.cs-host{position:relative;height:calc(100vh - 262px);min-height:460px;touch-action:none;user-select:none}
.cs-canvas{display:block;width:100%!important;height:100%!important;outline:none}
.cs-labels{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.cs-lab{position:absolute;left:0;top:0;white-space:nowrap;font-size:11px;font-weight:600;color:var(--text-1);
  background:color-mix(in srgb,var(--surface-1) 82%,transparent);border:1px solid var(--hair);border-radius:6px;padding:1px 6px}
.cs-lab-door{color:var(--accent)}
.cs-lab-dim{font-weight:500;color:var(--text-2)}
.cs-lab-evap{font-weight:500;font-size:10.5px;color:var(--text-1)}
.cs-lab-tier{font-weight:600;white-space:pre;text-align:center;line-height:1.25}
.cs-lab-bay{font-weight:500;color:var(--text-2);background:none;border:0;white-space:pre;text-align:center;line-height:1.2}
.cs-tip{position:absolute;left:0;top:0;z-index:3;pointer-events:none;max-width:240px;background:var(--surface-1);border:1px solid var(--edge,var(--hair));
  border-radius:8px;padding:6px 9px;font-size:12px;line-height:1.35;color:var(--text-1)}
.cs-tip small{color:var(--text-2)}
.cs-hint{position:absolute;left:10px;bottom:9px;z-index:2;font-size:11.5px;color:var(--text-2);pointer-events:none;
  background:color-mix(in srgb,var(--surface-1) 86%,transparent);border-radius:6px;padding:3px 8px;max-width:calc(100% - 20px)}

/* Табло показа: счётчик и товары — во время анимации и во весь экран */
.cs-show{position:absolute;right:12px;top:12px;z-index:2;min-width:220px;background:color-mix(in srgb,var(--surface-1) 92%,transparent);
  border:1px solid var(--edge,var(--hair));border-radius:var(--radius-card);padding:10px 12px}
.cs-show-head{display:flex;align-items:baseline;gap:8px;margin-bottom:6px}
.cs-show-head b{font-size:30px;font-weight:720;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.cs-show-head span{color:var(--text-2);font-size:13px}
.cs-show-row{display:grid;grid-template-columns:12px 1fr auto;gap:8px;align-items:center;font-size:13px;padding:2px 0}
.cs-show-row i{width:12px;height:12px;border-radius:3px}
.cs-show-row b{font-variant-numeric:tabular-nums}
.cs-show-free i{border:1px solid var(--text-3)}
.cs-stage.cs-present,.cs-stage:fullscreen{position:fixed;inset:0;z-index:1000;border-radius:0;border:0}
.cs-stage:fullscreen .cs-host,.cs-stage.cs-present .cs-host{height:auto;flex:1}
.cs-stage:fullscreen .cs-show,.cs-stage.cs-present .cs-show{right:22px;top:22px;padding:14px 18px;min-width:280px}
.cs-stage:fullscreen .cs-show-head b,.cs-stage.cs-present .cs-show-head b{font-size:40px}
.cs-stage:fullscreen .cs-show-row,.cs-stage.cs-present .cs-show-row{font-size:16px}
.cs-stage:fullscreen .cs-hint,.cs-stage.cs-present .cs-hint{display:none}

/* Боковая панель */
.cs-side{display:flex;flex-direction:column;gap:10px}
.cs-block{background:var(--surface-1);border:1px solid var(--edge,var(--hair));border-radius:var(--radius-card);padding:10px 12px}
.cs-block>header{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:8px}
.cs-block>header h3{margin:0;font-size:13px;font-weight:700;color:var(--text-1)}
.cs-block>header span{font-size:11.5px;color:var(--text-2)}
.cs-big{display:flex;align-items:baseline;gap:8px}
.cs-big b{font-size:28px;font-weight:720;letter-spacing:-.02em;font-variant-numeric:tabular-nums;color:var(--text-1)}
.cs-big span{font-size:12.5px;color:var(--text-2)}
.cs-meter{display:flex;height:10px;border-radius:5px;overflow:hidden;background:var(--surface-3,var(--hair));margin:8px 0 8px}
.cs-meter i{display:block;height:100%}
.cs-nums{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:0}
.cs-nums div{border:1px solid var(--hair);border-radius:8px;padding:4px 7px}
.cs-nums dt{font-size:10.5px;color:var(--text-1);line-height:1.2}
.cs-nums dd{margin:2px 0 0;font-size:16px;font-weight:700;font-variant-numeric:tabular-nums}
.cs-nums dd.bad{color:var(--loss)}

.cs-prods{display:flex;flex-direction:column;gap:3px}
.cs-prod{display:grid;grid-template-columns:14px minmax(0,1fr) auto 26px;gap:8px;align-items:center;padding:5px 6px;border:1px solid transparent;
  border-radius:8px;cursor:pointer}
.cs-prod:hover{background:var(--head-2,var(--surface-2))}
.cs-prod.on{border-color:var(--accent);background:var(--head-2,var(--surface-2))}
.cs-prod:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.cs-sw{display:inline-block;width:14px;height:14px;border-radius:4px;vertical-align:-2px;margin-right:6px}
.cs-prod .cs-sw{margin:0}
.cs-prod-name{font-size:13px;color:var(--text-1);min-width:0}
.cs-prod-name small{display:block;font-size:10.5px;color:var(--text-2)}
.cs-prod-n{font-size:14px;font-variant-numeric:tabular-nums}
.cs-icon{width:26px;height:26px;border:0;background:none;color:var(--text-2);border-radius:6px;cursor:pointer;font-size:13px}
.cs-icon:hover{background:var(--surface-3,var(--hair));color:var(--text-1)}
.cs-acts{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}

.cs-sub{font-size:11px;color:var(--text-2);margin:10px 0 5px}
.cs-sub:first-of-type{margin-top:0}
.cs-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.cs-f{display:flex;flex-direction:column;gap:3px;min-width:0}
.cs-f>span{font-size:11px;color:var(--text-1);line-height:1.2}
.cs-f .inp{width:100%;min-width:0}
.cs-f-ro b{font-size:13px;padding:6px 0;color:var(--text-2);font-weight:500}
.cs-line{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px;flex-wrap:wrap}
.cs-chk{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;color:var(--text-1);cursor:pointer;margin-top:6px}
.cs-chks{display:flex;flex-wrap:wrap;gap:4px 12px}
.cs-note{width:100%;resize:vertical;font:inherit;font-size:13px}

.cs-form{display:flex;flex-direction:column;gap:12px;min-width:min(420px,80vw)}
.cs-colors{display:flex;gap:6px;flex-wrap:wrap}
.cs-color{width:28px;height:28px;border-radius:7px;border:2px solid transparent;cursor:pointer}
.cs-color.on{border-color:var(--text-1);box-shadow:inset 0 0 0 2px var(--surface-1)}
.cs-cmp-modal{max-width:min(1100px,94vw)}
.cs-cmp td:first-child{white-space:nowrap}
.cs-cmp tr.cs-cmp-main td{font-weight:700}

@media (max-width:1100px){
  .cs-main{grid-template-columns:1fr}
  .cs-stage{position:static}
  .cs-host{height:62vh;min-height:360px}
}
@media (max-width:560px){
  .cs-scen-sel,.cs-scen-name{width:100%;max-width:none}
  .cs-host{height:56vh}
  .cs-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cs-show{min-width:0;right:8px;top:8px;padding:7px 9px}
  .cs-show-head b{font-size:22px}
}
@media (prefers-reduced-motion:reduce){ .cs-lab{transition:none} }

.cs-bar .btn,.cs-bar .pill-row-btn{padding-left:9px;padding-right:9px}
.cs-lab-row{font-weight:700;white-space:pre;text-align:center;line-height:1.2}

/* Во весь экран: раздел целиком, без меню сайта (Раиль 21.10.2026). На iPhone — накрываем экран классом. */
.cs-wrap:fullscreen,.cs-wrap.cs-present{position:fixed;inset:0;z-index:1000;background:var(--bg);padding:10px 12px;overflow:auto}
.cs-wrap:fullscreen .cs-stage,.cs-wrap.cs-present .cs-stage{top:0}
.cs-wrap:fullscreen .cs-host,.cs-wrap.cs-present .cs-host{height:calc(100vh - 150px)}
.cs-wrap.cs-present{padding-top:max(10px,env(safe-area-inset-top));padding-bottom:max(10px,env(safe-area-inset-bottom))}
@media (max-width:1100px){
  .cs-wrap:fullscreen .cs-host,.cs-wrap.cs-present .cs-host{height:72vh}
}

/* Ярусы: низ балки и просвет (Раиль 21.10.2026). Поля одного ряда — по нижней линии: длинная подпись
   переносится вверх, а поля ввода стоят ровно («низ фермы» больше не выпрыгивает выше соседей). */
.cs-grid{align-items:end}
.cs-tiers{display:flex;flex-direction:column;gap:4px}
.cs-tier{display:grid;grid-template-columns:58px 96px 1fr;gap:8px;align-items:center;font-size:12.5px}
.cs-tier-n{color:var(--text-1);font-weight:600}
.cs-tier .inp{width:96px;min-width:0}
.cs-tier-floor{color:var(--text-2);padding-left:9px}
.cs-tier-room{color:var(--text-2)}
.cs-tier-room b{color:var(--gain);font-weight:700;font-variant-numeric:tabular-nums}
.cs-tier-room.bad b{color:var(--loss)}
.cs-tier-room.warn b{color:var(--mid)}
.cs-even{display:flex;align-items:center;gap:6px;margin-top:8px;font-size:12.5px;color:var(--text-1);flex-wrap:wrap}
.cs-even .inp{width:80px}

/* Сообщение о постановке — внизу по центру камеры (Раиль 21.10.2026). */
.cs-notice{position:absolute;left:50%;bottom:40px;transform:translateX(-50%);z-index:4;max-width:min(560px,calc(100% - 24px));
  background:var(--surface-1);border:1px solid var(--edge,var(--hair));border-left:3px solid var(--accent);border-radius:8px;
  padding:8px 12px;font-size:13px;line-height:1.4;color:var(--text-1);text-align:center;cursor:pointer}
.cs-notice.bad{border-left-color:var(--loss)}
.cs-notice.ok{border-left-color:var(--gain)}
.cs-howmany{display:flex;flex-direction:column;gap:2px}
.cs-howmany .inp{width:90px;margin-left:4px}
/* Места по секциям ряда — от ворот к дальней стене. */
.cs-secs{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:4px}
.cs-sec-cell{display:flex;flex-direction:column;align-items:stretch;gap:2px;min-width:0}
.cs-sec-cell>span{font-size:10px;color:var(--text-2);text-align:center}
.cs-sec{width:100%;min-width:0;padding-left:6px;padding-right:2px}

/* ── 21.10.2026 (Раиль): компактнее, сворачивание, загрузка по рядам, ошибки стеллажа, полный экран ── */
.cs-fold>header{cursor:pointer;user-select:none}
.cs-fold>header .cs-chev{margin-left:6px;width:24px;height:24px;border:0;border-radius:6px;background:none;color:var(--text-2);cursor:pointer;
  display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto}
.cs-fold>header .cs-chev svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;transition:transform .15s}
.cs-fold.folded>header .cs-chev svg{transform:rotate(-90deg)}
.cs-fold>header:hover .cs-chev{background:var(--surface-3,var(--hair));color:var(--text-1)}
.cs-fold>header>span{margin-left:auto}
.cs-fold.folded>:not(header){display:none!important}
.cs-fold.folded>header{margin-bottom:0}

/* Загрузка: плашки ниже, таблица по рядам */
.cs-big b{font-size:24px}
.cs-meter{height:8px;margin:6px 0}
.cs-nums div{padding:2px 7px}
.cs-nums dd{font-size:14px;margin-top:0}
.cs-nums dd.warn{color:var(--mid)}
.cs-rows{width:100%;border-collapse:collapse;margin-top:8px;font-size:12px;font-variant-numeric:tabular-nums}
.cs-rows th,.cs-rows td{border:1px solid var(--hair);padding:2px 7px;text-align:right}
.cs-rows th{font-size:10.5px;font-weight:600;color:var(--text-1);background:var(--surface-2)}
.cs-rows th:first-child,.cs-rows td:first-child{text-align:center;width:44px}
.cs-rows tr.on td{background:color-mix(in srgb,var(--accent) 7%,var(--surface-1))}
.cs-rows tr.off td{color:var(--text-3)}
.cs-rows tr.off td[colspan]{text-align:left}
.cs-rows tr.cs-rows-sum td{font-weight:700;border-top:2px solid var(--hair-2)}
.cs-rows b{color:var(--gain)}

/* Товары: строки плотнее, три кнопки в один ряд */
.cs-products .cs-prods{gap:0}
.cs-products .cs-prod{padding:2px 6px;gap:7px}
.cs-products .cs-prod-name{font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cs-products .cs-prod-name small{display:inline;margin-left:3px}
.cs-products .cs-icon{width:22px;height:22px}
.cs-products .cs-acts{flex-wrap:nowrap;gap:5px;margin-top:6px}
.cs-products .cs-acts .btn{flex:1 1 auto;padding-left:6px;padding-right:6px;font-size:12px;white-space:nowrap}

/* Ошибки устройства ряда */
.cs-issues{margin-top:6px;padding:6px 8px;border:1px solid color-mix(in srgb,var(--loss) 45%,var(--hair));border-radius:8px;
  background:color-mix(in srgb,var(--loss) 6%,var(--surface-1));color:var(--loss);font-size:12px;line-height:1.35}

/* Три действия с рядом — одной строкой, равными кнопками (Раиль 21.10.2026) */
.cs-rowacts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:8px}
.cs-rowacts .btn{min-height:30px;padding:3px 2px;font-size:11.5px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;justify-content:center;
  border:1px solid var(--hair-2);border-radius:8px;background:var(--surface-1)}
.cs-rowacts .btn:hover{background:var(--surface-2)}
.cs-rowacts .btn.on{border-color:var(--mid);background:color-mix(in srgb,var(--mid) 10%,var(--surface-1))}

/* Подсказки устройства ряда — не ошибка: латунный контур (Раиль 21.10.2026: «подсказывай, но не запрещай») */
.cs-hints{margin-top:6px;padding:6px 8px;border:1px solid color-mix(in srgb,var(--mid) 45%,var(--hair));border-radius:8px;
  color:var(--text-1);font-size:12px;line-height:1.35}

/* Во весь экран: верх и камера закреплены, листается только правая панель (Раиль 21.10.2026). */
.cs-wrap:fullscreen,.cs-wrap.cs-present{display:flex;flex-direction:column;overflow:hidden}
.cs-wrap:fullscreen .cs-top,.cs-wrap.cs-present .cs-top{flex:0 0 auto}
.cs-wrap:fullscreen .cs-main,.cs-wrap.cs-present .cs-main{flex:1 1 auto;min-height:0;align-items:stretch}
.cs-wrap:fullscreen .cs-stage,.cs-wrap.cs-present .cs-stage{position:static;min-height:0}
.cs-wrap:fullscreen .cs-host,.cs-wrap.cs-present .cs-host{height:auto;flex:1 1 auto;min-height:0}
.cs-wrap:fullscreen .cs-side,.cs-wrap.cs-present .cs-side{overflow-y:auto;min-height:0;padding-right:2px;overscroll-behavior:contain}
@media (max-width:1100px){
  .cs-wrap:fullscreen,.cs-wrap.cs-present{overflow:auto;display:block}
  .cs-wrap:fullscreen .cs-host,.cs-wrap.cs-present .cs-host{height:72vh}
  .cs-wrap:fullscreen .cs-side,.cs-wrap.cs-present .cs-side{overflow:visible}
}

/* 21.10.2026 (Раиль, третий круг): пол, ответхранение, секции нажатием, заметная загрузка */
.cs-load .cs-pct{font-size:15px;font-weight:700;color:var(--accent)}
.cs-meter{height:12px;border:1px solid var(--hair);background:var(--surface-2)}
.cs-nums{grid-template-columns:repeat(4,minmax(0,1fr))}
.cs-prod-n small{display:block;font-size:10px;font-weight:500;color:var(--text-2);text-align:right;line-height:1}
.cs-secs{grid-template-columns:repeat(8,minmax(0,1fr))}
.cs-sec-btn{display:flex;flex-direction:column;align-items:center;gap:0;padding:2px 0 3px;border:1px solid var(--hair);border-radius:7px;
  background:var(--surface-1);cursor:pointer;color:var(--text-1);font:inherit}
.cs-sec-btn span{font-size:10px;color:var(--text-2)}
.cs-sec-btn b{font-size:14px;font-weight:700;font-variant-numeric:tabular-nums}
.cs-sec-btn.odd b{color:var(--accent)}
.cs-sec-btn:hover{border-color:var(--hair-2);background:var(--surface-2)}
.cs-sec-btn.on{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 8%,var(--surface-1))}
.cs-sec-btn:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.cs-sec-pick{display:flex;align-items:center;gap:4px;margin-top:6px;font-size:12px;color:var(--text-1);flex-wrap:wrap}
.cs-sec-pick span{margin-right:4px}
.cs-oh-sum{display:flex;align-items:baseline;gap:8px;margin-bottom:4px}
.cs-oh-sum b{font-size:22px;font-weight:720;color:var(--gain);font-variant-numeric:tabular-nums}
.cs-oh-sum span{font-size:12px;color:var(--text-2)}
.cs-oh-t{width:100%;border-collapse:collapse;font-size:12px;margin-bottom:6px}
.cs-oh-t td{border:1px solid var(--hair);padding:2px 7px}
.cs-oh-t td:last-child{text-align:right;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.cs-oh-note{font-size:11px;color:var(--text-2);margin-bottom:6px}
.cs-oh .cs-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.cs-rent .cs-oh-sum b{color:var(--text)}
.cs-oh-t td small{color:var(--text-2);margin-left:4px;font-size:10.5px}

/* Нажимаемые плашки «Впритык» и «Не встаёт»: подсветка мест на 3D (Раиль 21.10.2026). */
.cs-nums .cs-tap{cursor:pointer}
.cs-nums .cs-tap:hover{border-color:var(--hair-2);background:var(--surface-2)}
.cs-nums .cs-tap.on{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 8%,var(--surface-1))}
.cs-nums .cs-tap:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.cs-nums .cs-tap dt::after{content:" ›";color:var(--text-3)}
/* Во весь экран правая панель — столбец с прокруткой; без этого браузер сжимал блоки по высоте, и «Загрузка
   камеры» превращалась в полоску (Раиль 21.10.2026). Блоки не сжимаются — панель листается. */
.cs-side>*{flex-shrink:0}

/* Товары: процент мест камеры; ряды в загрузке раскрываются (Раиль 21.10.2026) */
.cs-products .cs-prod{grid-template-columns:10px minmax(0,1fr) 42px 34px 18px;gap:6px;padding-left:3px;padding-right:2px}
.cs-products .cs-prod .cs-sw{width:10px;height:10px;border-radius:3px}
.cs-products .cs-prod-n{text-align:right}
.cs-prod-pct{font-size:12px;color:var(--text-2);text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.cs-rows tr.cs-rows-r{cursor:pointer}
.cs-rows tr.cs-rows-r:hover td{background:var(--head-2,var(--surface-2))}
.cs-rows tr.cs-rows-r td:first-child::after{content:" ›";color:var(--text-3)}
.cs-rows tr.cs-rows-r.open td:first-child::after{content:" ⌄"}
.cs-rows tr.cs-rows-det td{background:var(--surface-2);font-size:11.5px;color:var(--text-1)}
.cs-rows tr.cs-rows-det td:first-child{text-align:left;padding-left:14px}
.cs-rows tr.cs-rows-det .cs-sw{width:10px;height:10px;margin-right:5px;vertical-align:-1px}

/* Секции: число ярусов на кнопке, своя раскладка — контуром; панель выбранной секции (Раиль 21.10.2026) */
.cs-sec-btn small{font-size:9.5px;color:var(--text-2);line-height:1.1}
.cs-sec-btn.own{border-style:dashed;border-color:var(--accent)}
.cs-sec-btn.own small{color:var(--accent);font-weight:600}
.cs-secpanel{margin-top:8px;padding:8px;border:1px solid var(--accent);border-radius:8px;background:color-mix(in srgb,var(--accent) 5%,var(--surface-1))}
.cs-secpanel-h{display:flex;align-items:center;gap:8px;margin-bottom:6px;flex-wrap:wrap}
.cs-secpanel-h b{font-size:13px}
.cs-secpanel-h span{font-size:11.5px;color:var(--text-2);flex:1}
.cs-secpanel .cs-sec-pick{margin-top:0}
.cs-secpanel>.btn{margin-top:6px}
.cs-lab-sec{font-weight:600;color:var(--accent);font-size:10.5px}
.cs-even .cs-even-n{width:56px}

/* Число у товара — кнопка: нажали — окно «сколько паллет» (Раиль 21.10.2026) */
button.cs-prod-n{font:inherit;font-size:14px;font-weight:700;color:var(--text);background:var(--surface-1);border:1px solid var(--hair-2);
  border-radius:6px;padding:1px 6px;min-width:0;text-align:right;cursor:pointer;font-variant-numeric:tabular-nums;line-height:1.3}
button.cs-prod-n:hover{border-color:var(--accent);background:var(--surface-2)}
button.cs-prod-n:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.cs-pop{position:fixed;z-index:60;width:236px;padding:10px;border:1px solid var(--hair-2);border-radius:10px;background:var(--surface-1);
  box-shadow:0 8px 24px rgba(15,20,30,.18);font-size:12.5px;color:var(--text)}
.cs-pop-h{display:flex;align-items:center;gap:7px;margin-bottom:8px;font-size:13px}
.cs-pop-h .cs-sw{margin:0;width:10px;height:10px}
.cs-pop-row{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:6px}
.cs-pop-row .inp{text-align:center;font-size:16px;font-weight:700;font-variant-numeric:tabular-nums}
.cs-pop-row .btn{padding-left:0;padding-right:0;justify-content:center;border:1px solid var(--hair-2)}
.cs-pop-t{margin:7px 0 8px;color:var(--text-2);font-size:11.5px;line-height:1.35}
.cs-pop-a{display:flex;justify-content:flex-end}

/* Калькулятор «Стоимость хранения» (Раиль 21.10.2026) */
.cs-calc{width:100%}
.cs-calc h3{margin:14px 0 6px;font-size:13.5px;font-weight:700;color:var(--text)}
.cs-calc h3:first-child{margin-top:0}
.cs-calc-in{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px 10px}
.cs-calc-in .cs-f span{font-size:11.5px}
.cs-calc-out{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-top:8px}
.cs-calc-p{border:1px solid var(--hair);border-radius:8px;padding:5px 8px;min-width:0}
.cs-calc-p b{display:block;font-size:16px;font-weight:700;font-variant-numeric:tabular-nums;color:var(--text);white-space:nowrap}
.cs-calc-p span{display:block;font-size:11px;line-height:1.25;color:var(--text-1)}
.cs-calc-p.key{border-color:var(--accent)}
.cs-calc-p.key b{color:var(--accent)}
.cs-calc-p.good b{color:var(--gain)}
.cs-calc-p.bad b{color:var(--loss)}
.cs-calc-out p{grid-column:1/-1;margin:2px 0 0;font-size:11.5px;line-height:1.4;color:var(--text-2)}
[data-o="lot"],[data-o="price"]{grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:640px){.cs-calc-in,.cs-calc-out,[data-o="lot"],[data-o="price"]{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Электроэнергия «от — до» под одной подписью; подписи полей — в одну строку (Раиль 21.10.2026) */
.cs-oh .cs-f > span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cs-f-range{grid-column:span 2;min-width:0}
.cs-range{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:4px}
.cs-range i{font-style:normal;color:var(--text-2)}
