/* cx-pick.css (20.11.2026) — каталог: галочки слева, звезда с выбором папки, панель выбранных каналов. */
:root{--cxp-card:#fff;--cxp-bd:#e3eaf2;--cxp-sub:#f6f8fb;--cxp-tx:#0f172a;--cxp-mu:#64748b}
html[data-theme="dark"]{--cxp-card:#0d1c28;--cxp-bd:rgba(255,255,255,.12);--cxp-sub:rgba(255,255,255,.06);--cxp-tx:#eef2f7;--cxp-mu:#9fb0c3}

/* галочки (только ПК) */
@media (min-width:861px){
  html body .cxp-on .js-channel-row{position:relative!important}
  html body:not(#cxp1):not(#cxp2):not(#cxp3):not(#cxp4):not(#cxp5):not(#cxp6):not(#cxp7) .cxp-on .js-channel-row > .ch-row{margin-left:28px!important;padding-left:6px!important;width:calc(100% - 28px)!important;max-width:calc(100% - 28px)!important;min-width:0!important;box-sizing:border-box!important}
  html body:not(#cxp1):not(#cxp2):not(#cxp3):not(#cxp4):not(#cxp5):not(#cxp6):not(#cxp7) .cxp-on .tbl-head{padding-left:34px!important}
  .cxp-k{position:absolute;left:10px;top:50%;transform:translateY(-50%);z-index:4;width:20px;height:20px;padding:0;margin:0;border-radius:6px;border:2px solid #cbd5e1;background:var(--cxp-card);display:grid;place-items:center;cursor:pointer;transition:border-color .12s,background .12s}
  .cxp-k:hover{border-color:#10b981}
  .cxp-k svg{width:12px;height:12px;stroke:#fff;stroke-width:3.4;fill:none;stroke-linecap:round;stroke-linejoin:round;opacity:0}
  .cxp-k.on{background:linear-gradient(135deg,#10b981,#14b8a6);border-color:transparent;box-shadow:0 4px 10px -4px rgba(16,185,129,.8)}
  .cxp-k.on svg{opacity:1}
  html body .cxp-on .js-channel-row.cxp-sel{background-image:linear-gradient(90deg,rgba(16,185,129,.10),rgba(16,185,129,.02) 45%)!important}
}
@media (max-width:860px){.cxp-k{display:none!important}}

/* выпадающий список папок у звезды */
.cxp-pop{box-sizing:border-box;position:absolute;z-index:9990;width:250px;background:var(--cxp-card);color:var(--cxp-tx);border:1px solid var(--cxp-bd);border-radius:14px;box-shadow:0 24px 50px -16px rgba(15,23,42,.4);padding:6px;font:inherit;font-size:13px}
.cxp-pop *{box-sizing:border-box}
.cxp-h{font-size:10.5px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:var(--cxp-mu);padding:8px 10px 6px}
.cxp-o{display:flex;align-items:center;gap:9px;width:100%;padding:8px 10px;border:0;border-radius:9px;background:none;font:inherit;font-weight:600;color:var(--cxp-tx);cursor:pointer;text-align:left}
.cxp-o:hover{background:var(--cxp-sub)}
.cxp-o i{width:10px;height:10px;border-radius:3px;flex:0 0 auto}
.cxp-o span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cxp-o small{color:var(--cxp-mu);font-weight:600;font-size:11px}
.cxp-o .c{width:18px;height:18px;border-radius:6px;border:1.5px solid #cbd5e1;display:grid;place-items:center;flex:0 0 auto}
.cxp-o .c svg{width:11px;height:11px;stroke:#fff;stroke-width:3.4;fill:none;opacity:0}
.cxp-o.on .c{background:#10b981;border-color:#10b981}.cxp-o.on .c svg{opacity:1}
.cxp-new{border-top:1px dashed var(--cxp-bd);margin-top:4px;padding-top:6px}
.cxp-new .cxp-o{color:#0d9488}
.cxp-nf{display:none;gap:6px;padding:4px 6px 6px}
.cxp-nf.open{display:flex}
.cxp-nf input{flex:1;min-width:0;font:inherit;font-size:13px;padding:7px 9px;border-radius:9px;border:1.5px solid #10b981;background:var(--cxp-card);color:var(--cxp-tx);outline:none}
.cxp-nf button{border:0;border-radius:9px;padding:0 12px;font:inherit;font-weight:700;color:#fff;background:linear-gradient(135deg,#10b981,#14b8a6);cursor:pointer}
.cxp-rm{display:block;width:100%;margin-top:4px;padding:8px 10px;border:0;border-top:1px solid var(--cxp-bd);background:none;font:inherit;font-size:12.5px;font-weight:600;color:#e11d48;text-align:left;cursor:pointer;border-radius:0 0 9px 9px}
.cxp-rm:hover{background:rgba(244,63,94,.07)}
.cxp-load{padding:14px;text-align:center;color:var(--cxp-mu);font-size:12.5px}

/* панель выбранных */
.cxp-bar{position:fixed;left:50%;bottom:20px;transform:translate(-50%,140%);opacity:0;transition:transform .25s ease,opacity .25s;z-index:9980;width:min(980px,calc(100% - 40px));display:flex;align-items:center;gap:14px;padding:10px 12px 10px 14px;border-radius:18px;color:#fff;background:linear-gradient(110deg,#062c52,#075a5e 55%,#0a8c68);box-shadow:0 24px 50px -16px rgba(6,44,82,.9);font-size:13px}
.cxp-bar.show{transform:translate(-50%,0);opacity:1}
.cxp-bar *{box-sizing:border-box}
.cxp-av{display:flex;flex:0 0 auto}
.cxp-av img{width:30px;height:30px;border-radius:50%;border:2px solid #0a5a5e;margin-left:-9px;object-fit:cover;background:#0b1a2a}
.cxp-av img:first-child{margin-left:0}
.cxp-l b{display:block;font-size:14.5px}.cxp-l small{font-size:11.5px;opacity:.75}
.cxp-s{display:flex;gap:8px;margin-left:auto}
.cxp-s div{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.16);border-radius:11px;padding:5px 10px;white-space:nowrap}
.cxp-s i{display:block;font-style:normal;font-size:10px;opacity:.7;text-transform:uppercase;font-weight:700}
.cxp-s b{font-size:14.5px}
.cxp-go{border:0;border-radius:11px;padding:10px 14px;font:inherit;font-weight:700;font-size:13px;white-space:nowrap;background:#fff;color:#0f172a;cursor:pointer}
.cxp-x{border:0;background:none;color:#fff;opacity:.75;font-size:20px;line-height:1;padding:0 4px;cursor:pointer}
.cxp-x:hover{opacity:1}

/* сообщение снизу */
.cxp-toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,120%);opacity:0;transition:transform .25s,opacity .25s;z-index:9995;background:#0f172a;color:#fff;border-radius:14px;padding:11px 16px;font-size:13.5px;font-weight:600;display:flex;gap:12px;align-items:center;box-shadow:0 20px 40px -12px rgba(0,0,0,.5);max-width:calc(100% - 32px)}
.cxp-toast.show{transform:translate(-50%,0);opacity:1}
.cxp-toast b{color:#6ee7b7}.cxp-toast a{color:#7dd3fc;font-weight:700;text-decoration:none;white-space:nowrap}
.cxp-bar.show ~ .cxp-toast.show{bottom:96px}
@media (max-width:860px){.cxp-bar{display:none}}
