/* «Отдел продаж → Горящие окна» (04.10.2026, erp/ui/hotwin.js, erp/hotwin.py) */
.cn.hw{max-width:1180px}
.hw .anh .muted{max-width:720px;line-height:1.45}

/* статус */
.hw-st{padding:14px 16px;margin:0 0 14px;border-left:4px solid var(--line-s)}
.hw-st.st-ok{border-left-color:var(--accent)}
.hw-st.st-warn{border-left-color:var(--warn)}
.hw-st.st-bad{border-left-color:var(--bad)}
.hw-sth{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.hw-ic{width:38px;height:38px;flex:none;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--soft);color:var(--muted)}
.hw-st.st-ok .hw-ic{background:var(--soft-ok);color:var(--ink-ok)}
.hw-st.st-warn .hw-ic{background:var(--soft-warn);color:var(--ink-warn)}
.hw-st.st-bad .hw-ic{background:var(--soft-bad);color:var(--ink-bad)}
.hw-stt{display:flex;flex-direction:column;gap:1px;flex:1;min-width:180px}
.hw-stt b{font-size:16px}
.hw-sta{display:flex;gap:8px;flex-wrap:wrap}
.hw-next{margin:10px 0 0;line-height:1.45}
.hw-live{margin-top:6px;font-size:13.5px}
.hw-lk{color:var(--muted)}
.hw-err{margin-top:8px;padding:8px 10px;border-radius:10px;background:var(--soft-bad);color:var(--ink-bad);font-size:13.5px;line-height:1.4}

.hw-tabs{display:inline-flex;margin:0 0 14px}
.hw-tabs button{flex:none;padding:8px 18px}

/* итог и посты */
.hw-ph-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:0 0 10px}
.hw-ph-head h3{margin:0;font-size:18px}
.hw-per{display:inline-flex}
.hw-per button{flex:none;padding:7px 12px;font-size:12.5px}
.hw-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 8px}
.hw-tile{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:12px 14px;display:flex;flex-direction:column;gap:2px;min-width:0}
.hw-tile b{font-size:22px;font-weight:800;letter-spacing:-.01em}
.hw-tile b small{font-size:14px;font-weight:700;color:var(--muted)}
.hw-tile span{color:var(--muted);font-size:12.5px;line-height:1.3}
.hw-tile.good b{color:var(--ink-ok)}
.hw-sub{margin:0 0 12px}
.hw-list{padding:4px 16px;margin:0 0 10px}
.hw-p{display:grid;grid-template-columns:150px minmax(0,1fr);gap:12px;padding:12px 0;border-top:1px solid var(--line)}
.hw-p:first-child{border-top:0}
.hw-pd{font-weight:700;padding-top:2px}
.hw-pb{display:flex;flex-direction:column;gap:7px;min-width:0}
.hw-pm{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.hw-k{font-size:11.5px;font-weight:700;padding:2px 8px;border-radius:999px;background:var(--soft);color:var(--muted);white-space:nowrap}
.hw-k.plan{background:var(--soft-ok);color:var(--ink-ok)}
.hw-k.hot,.hw-k.release{background:var(--soft-warn);color:var(--ink-warn)}
.hw-ts{display:flex;flex-wrap:wrap;gap:6px}
.hw-t{font-size:12.5px;padding:4px 10px;border-radius:999px;border:1px solid var(--line);background:var(--card);color:var(--muted);line-height:1.3}
.hw-t b{color:var(--text);font-weight:800;margin-right:2px}
.hw-t.channel{background:var(--soft-ok);border-color:var(--soft-ok);color:var(--ink-ok)}
.hw-t.channel b{color:var(--ink-ok)}
.hw-t.full{background:var(--soft);border-color:var(--soft)}
.hw-t.open{border-color:var(--accent);color:var(--accent)}
.hw-t.expired{opacity:.75}
.hw-p.skip .hw-pb{flex-direction:row;align-items:center;gap:8px;flex-wrap:wrap}
.hw-foot{max-width:760px;line-height:1.45}

/* настройки */
.hw-grid{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:16px;align-items:start}
.hw-col{min-width:0}
.hw-sec{padding:14px 16px;margin:0 0 12px}
.hw-f{display:flex;flex-direction:column;gap:5px;margin:10px 0 12px}
.hw-sec .eyebrow+.hw-f{margin-top:4px}
.hw-l{font-weight:700;font-size:13.5px}
.hw-h{color:var(--muted);font-size:12.5px;line-height:1.4}
.hw-e{color:var(--bad);font-size:12.5px;line-height:1.35}
.hw-e:empty{display:none}
.hw-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px}
.hw-num{max-width:120px}
.hw-time{max-width:140px}
.hw-f select{max-width:160px}
.hw-seg{display:inline-flex;flex-wrap:wrap;max-width:100%;align-self:flex-start}
.hw-seg button{flex:none;padding:8px 12px;font-size:13px}
.hw-seg button.on{background:var(--accent-soft);color:var(--ink-ok)}
.hw-days{display:flex;flex-wrap:wrap;gap:6px}
.hw-days .chip{min-width:42px;justify-content:center;cursor:pointer}
.hw-ms{display:flex;flex-wrap:wrap;gap:6px}
.hw-ms .chip{cursor:pointer}
.hw-ms .chip:not(.on){color:var(--faint);text-decoration:line-through;text-decoration-color:var(--dim)}
.hw-ck{display:flex;gap:8px;align-items:flex-start;margin:8px 0 6px;line-height:1.4;cursor:pointer}
.hw-ck input{margin-top:2px}
.hw-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.hw-row input{flex:1 1 240px;min-width:0}
.hw-row .ok{color:var(--ink-ok)}.hw-row .bad{color:var(--ink-bad)}
.hw-bot{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.hw-steps ol{margin:2px 0 10px;padding-left:20px;line-height:1.5;font-size:13.5px}
.hw-adv{margin:6px 0 0}
.hw-adv summary{cursor:pointer;font-weight:700;font-size:13.5px;color:var(--muted)}
.hw-adv[open] summary{color:var(--text)}
.hw-ta{font:13.5px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;resize:vertical;white-space:pre-wrap}
.hw-dim .hw-l{color:var(--muted)}
.hw-phs{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 6px}
.hw-phs .chip{cursor:pointer;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-weight:600}
.hw-phs .chip:hover{border-color:var(--accent);color:var(--accent)}
.hw-dl{display:grid;grid-template-columns:auto 1fr;gap:2px 10px;margin:4px 0 8px;font-size:12.5px;color:var(--muted)}
.hw-dl dt{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--text)}
.hw-dl dd{margin:0}

/* куда выкладывать: телеграм и MAX */
.hw-where{border:1px solid var(--line);border-radius:12px;padding:10px 12px;margin:0 0 10px;background:var(--tint)}
.hw-where.on{background:var(--card);border-color:var(--line-s)}
.hw-wh{display:flex;align-items:center;gap:8px;cursor:pointer;font-size:14.5px}
.hw-wh .muted{margin-left:auto}
.hw-wi{width:28px;height:28px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;flex:none;background:var(--soft);color:var(--muted)}
.hw-where.on .hw-wi.tg{background:#E3F1FB;color:#2481CC}
.hw-where.on .hw-wi.max{background:#ECE6FD;color:#6B4BE0}
:root[data-theme="dark"] .hw-where.on .hw-wi.tg{background:#17324A;color:#6CB7F0}
:root[data-theme="dark"] .hw-where.on .hw-wi.max{background:#2B2350;color:#A994F7}
.hw-where>.hw-f:first-of-type{margin-top:12px}
.hw-note{margin:10px 0 4px;padding:10px 12px;border-radius:10px;background:var(--soft-info);color:var(--ink-info);font-size:13.5px;line-height:1.45}
.hw-acc{margin:12px 0 2px;font-size:13.5px}
.hw-off{color:var(--ink-warn);font-size:12.5px}
.hw-chan{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.hw-chan-t{font-weight:700;font-size:14.5px}
.hw-chl{margin:6px 0 2px}
.hw-chls{display:flex;flex-direction:column;gap:6px}
.hw-chi{all:unset;box-sizing:border-box;cursor:pointer;display:flex;flex-direction:column;gap:2px;padding:9px 12px;border:1px solid var(--line);border-radius:10px;background:var(--card)}
.hw-chi:hover{border-color:var(--accent)}
.hw-chi.on{border-color:var(--accent);background:var(--accent-soft)}
.hw-chi:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

/* процедуры */
.hw-svcs{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.hw-svcs .muted{font-size:13px;margin-right:4px}
.hw-ro{padding:8px 0;font-weight:600}
.hw-svl{max-height:calc(52vh / var(--z,1));overflow:auto;margin:10px 0 0;padding-right:4px}
.hw-svg{margin:0 0 10px}
.hw-svg .eyebrow{margin:0 0 4px}
.hw-svi{display:flex;align-items:center;gap:8px;padding:6px 2px;border-top:1px solid var(--line-w);cursor:pointer;font-size:13.5px}
.hw-svi span{flex:1;min-width:0}
.hw-svi i{font-style:normal;color:var(--muted);font-size:12px;white-space:nowrap}

/* предпросмотр: пост как в телеграме */
.hw-pvw{position:sticky;top:66px}
.hw-pvs{background:var(--soft);border:1px solid var(--line);border-radius:16px;padding:12px}
.hw-pvh{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin:0 0 10px}
.hw-pvh .hw-seg button{padding:6px 10px;font-size:12px}
.hw-tgp{background:var(--card);border-radius:14px;padding:10px 12px 6px;box-shadow:var(--e1,0 1px 2px rgba(0,0,0,.08));max-height:calc(100vh / var(--z,1) - 240px);overflow:auto}   /* масштаб 80 % на компьютере: vh делим на --z */
.hw-tgh{display:flex;align-items:center;gap:8px;margin:0 0 6px}
.hw-tgh b{color:var(--accent);font-size:14px}
.hw-av{width:26px;height:26px;border-radius:50%;background:var(--accent);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:13px;flex:none}
.hw-tgt{white-space:pre-wrap;overflow-wrap:anywhere;font:14px/1.42 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;min-height:60px}
.hw-tgf{text-align:right;color:var(--faint);font-size:11px;margin-top:2px}
.hw-pvn{margin:10px 2px 0;color:var(--muted);line-height:1.45}
.hw-pvn .bad{color:var(--ink-bad)}
.hw-warn{color:var(--ink-warn)}
.hw-nprev{margin:12px 0 0;background:var(--tint);border:1px solid var(--line);box-shadow:none;max-height:calc(50vh / var(--z,1));overflow:auto}

/* сохранить */
.hw-save{position:sticky;bottom:0;z-index:5;display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin:6px 0 0;padding:10px 14px calc(10px + env(safe-area-inset-bottom,0px));background:var(--card);border:1px solid var(--line);border-radius:12px 12px 0 0;box-shadow:0 -6px 20px -12px rgba(0,0,0,.25)}
.hw-save .muted{margin-right:auto}

@media (max-width:980px){
  .hw-grid{grid-template-columns:1fr}
  .hw-pvw{position:static}
  .hw-tgp{max-height:none}
}
@media (max-width:700px){
  .hw-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hw-p{grid-template-columns:1fr;gap:6px}
  .hw-2{grid-template-columns:1fr}
  .hw-sec{padding:12px}
  .hw-seg button{padding:8px 10px}
  .hw-save{bottom:calc(56px + env(safe-area-inset-bottom,0px))}   /* над нижней панелью меню */
}
