/* LED Cloud 0.17.0 «Конструктор» (builder.html / builder.js) + «Открыть в конструкторе» links (builderlink.js) */
.nav-new{margin-left:auto;font-size:10.5px;font-weight:700;padding:1px 6px;border-radius:999px;background:var(--brand);color:#fff;width:auto!important}
.bl-open{gap:6px}
body[data-page=builder] .content{max-width:none;padding:10px 12px}
.bld{--bl-sel:#2563eb;display:flex;flex-direction:column;gap:8px;height:calc(100vh - 84px);min-height:560px}
.bld-top{flex:none;display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:var(--card);border:1px solid var(--line);border-radius:12px;padding:8px 10px}
.bld-proj{display:flex;gap:6px;align-items:center;min-width:0;flex:1 1 280px}
.bld-proj select{max-width:180px;padding:6px 8px}
.bld-name{font-weight:650;font-size:16px;padding:6px 8px;min-width:120px;flex:1}
.bld-target{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap;border:1px dashed var(--line2);background:var(--soft);color:var(--text);border-radius:10px;padding:7px 10px;font:inherit;cursor:pointer;text-align:left;max-width:520px}
.bld-target:hover{border-color:var(--brand)}
.bld-target .bt-l{color:var(--muted);font-size:13px}.bld-target .bt-sub{color:var(--muted);font-size:12.5px}
.bld-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin-left:auto}
.bld-state{font-size:12.5px;color:var(--muted);min-width:110px;text-align:right}
.bld-state.err{color:var(--err)}
.bld-ext{margin:0}
.bld-actions .sm{display:none}
.bld-mtabs{display:none}
.bld-main{display:grid;grid-template-columns:300px minmax(0,1fr) 310px;grid-template-rows:minmax(0,1fr);gap:8px;flex:1 1 0;min-height:300px}
.bld-left,.bld-right{background:var(--card);border:1px solid var(--line);border-radius:12px;overflow:auto;min-height:0}
.bld-left{display:flex;flex-direction:column}
/* 0.20.2: колонка не сжимает шапку панели -- иначе на длинных вкладках (Шаблоны, Виджеты, Текст, Зоны)
   строка вкладок (overflow-x:auto => min-height 0) ужималась и наезжала на «+ Добавить…» */
.bld-left>*{flex:none}
.bld-addall{padding:8px 8px 0}
.bld-tabs{display:flex;gap:2px;padding:6px;border-bottom:1px solid var(--line);position:sticky;top:0;background:var(--card);z-index:2;overflow-x:auto}
.bld-tabs button{flex:1 1 auto;border:0;background:none;color:var(--muted);font:inherit;font-size:12px;font-weight:600;padding:7px 3px;border-radius:8px;cursor:pointer;white-space:nowrap}
.bld-tabs button[aria-selected=true]{background:var(--sel-bg);color:var(--brand)}
.bld-pane{padding:10px}
.bld-pane h4{margin:12px 0 6px;font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted)}
.bld-pane h4:first-child{margin-top:0}
.bld-drop{border:2px dashed var(--line2);border-radius:12px;padding:12px;text-align:center;display:flex;flex-direction:column;gap:8px;margin-bottom:8px;font-size:13px}
.bld-drop.over{border-color:var(--brand);background:var(--sel-bg)}
.bld-cam{display:none}
.bld-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(82px,1fr));gap:6px}
.bld-card{position:relative;display:flex;flex-direction:column;gap:3px;border:1px solid var(--line);border-radius:10px;padding:4px;background:var(--card);cursor:grab;font-size:11.5px;color:var(--text);text-align:left;font-family:inherit;min-width:0}
.bld-card:hover{border-color:var(--brand)}
.bld-card .th{aspect-ratio:16/10;border-radius:7px;background:#0b1220 center/cover no-repeat;display:grid;place-items:center;color:#cbd5e1;font-size:20px;overflow:hidden}
.bld-card .nm{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bld-card .tag{position:absolute;top:6px;right:6px;font-size:10px;background:rgba(15,23,42,.75);color:#fff;border-radius:6px;padding:0 4px}
.bld-card.off{opacity:.45;cursor:not-allowed}
.bld-card.wide{grid-column:1/-1;flex-direction:row;align-items:center;gap:8px;padding:8px}
.bld-card.wide .th{width:44px;aspect-ratio:1;font-size:18px;flex-shrink:0}
.bld-card.wide small{display:block;color:var(--muted)}
.bld-kinds{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:6px}
.bld-kind{display:flex;gap:6px;align-items:center;border:1px solid var(--line);border-radius:10px;padding:6px 8px;background:var(--card);color:var(--text);font:inherit;font-size:12.5px;cursor:grab;text-align:left}
.bld-kind:hover{border-color:var(--brand)}
.bld-kind .ic{font-size:18px}.bld-kind.off{opacity:.45;cursor:not-allowed}
.bld-net{font-size:11px}
.bld-presets{display:grid;grid-template-columns:repeat(auto-fill,minmax(78px,1fr));gap:6px}
.bld-preset{border:1px solid var(--line);border-radius:10px;background:var(--card);padding:5px;cursor:pointer;font:inherit;font-size:11px;color:var(--text);display:flex;flex-direction:column;gap:4px;align-items:center}
.bld-preset:hover{border-color:var(--brand)}
.bld-preset svg{width:100%;height:auto;max-height:90px}
.bld-preset svg rect{fill:var(--soft2);stroke:var(--muted);stroke-width:1.5}
.bld-zlist{margin-top:10px;display:flex;flex-direction:column;gap:4px}
.bld-zlist button{text-align:left}
.bld-center{display:flex;flex-direction:column;gap:6px;min-width:0;min-height:0}
.bld-canvas-wrap{flex:1 1 0;min-height:0;background:repeating-conic-gradient(var(--soft2) 0% 25%,var(--soft) 0% 50%) 50%/22px 22px;border:1px solid var(--line);border-radius:12px;display:grid;place-items:center;padding:14px;overflow:hidden;position:relative}
.bld-canvas{position:relative;background:#000;box-shadow:0 6px 30px rgba(0,0,0,.35);outline:none;overflow:hidden;user-select:none;touch-action:none}
.bld-canvas.over{box-shadow:0 0 0 3px var(--brand),0 6px 30px rgba(0,0,0,.35)}
.bld-canvas .empty{position:absolute;inset:0;display:grid;place-items:center;text-align:center;color:#94a3b8;font-size:14px;padding:20px;border:2px dashed #334155}
.bld-z{position:absolute;box-sizing:border-box;border:1px solid rgba(148,163,184,.55);overflow:hidden;cursor:move;background:#0b1220}
.bld-z.sel{border:2px solid var(--bl-sel);z-index:50!important;box-shadow:0 0 0 1px #fff}
.bld-z.over{outline:3px solid #22c55e;outline-offset:-3px}
.bld-z .zl{position:absolute;left:3px;top:3px;z-index:3;background:rgba(15,23,42,.8);color:#fff;font-size:11px;border-radius:5px;padding:0 5px;pointer-events:none;max-width:90%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bld-z .zn{position:absolute;right:3px;top:3px;z-index:3;background:rgba(37,99,235,.9);color:#fff;font-size:11px;border-radius:5px;padding:0 5px;pointer-events:none}
.bld-z .h{position:absolute;width:12px;height:12px;background:#fff;border:2px solid var(--bl-sel);border-radius:3px;z-index:4;display:none}
.bld-z.sel .h{display:block}
.bld-z .h.n{top:-2px;left:calc(50% - 6px);cursor:ns-resize}.bld-z .h.s{bottom:-2px;left:calc(50% - 6px);cursor:ns-resize}
.bld-z .h.e{right:-2px;top:calc(50% - 6px);cursor:ew-resize}.bld-z .h.w{left:-2px;top:calc(50% - 6px);cursor:ew-resize}
.bld-z .h.ne{right:-2px;top:-2px;cursor:nesw-resize}.bld-z .h.sw{left:-2px;bottom:-2px;cursor:nesw-resize}
.bld-z .h.nw{left:-2px;top:-2px;cursor:nwse-resize}.bld-z .h.se{right:-2px;bottom:-2px;cursor:nwse-resize}
.bld-c{position:absolute;inset:0;display:grid;place-items:center;overflow:hidden;pointer-events:none}
.bld-c img,.bld-c video{width:100%;height:100%;display:block}
.bld-c .ph{color:#94a3b8;font-size:13px;text-align:center;padding:6px;display:flex;flex-direction:column;align-items:center;gap:4px}
.bld-c .ph b{font-size:26px}
.bld-c .txt{width:100%;height:100%;display:flex;align-items:center;justify-content:center;text-align:center;white-space:pre-wrap;word-break:break-word;line-height:1.15;padding:4%;box-sizing:border-box}
.bld-c .txt.left{justify-content:flex-start;text-align:left}
.bld-c .clk{font-variant-numeric:tabular-nums;font-weight:700;width:100%;height:100%;display:grid;place-items:center}
.bld-c iframe{border:0;position:absolute;left:0;top:0;transform-origin:0 0;background:transparent}
.bld-c .play{position:absolute;right:6px;bottom:6px;background:rgba(0,0,0,.6);color:#fff;border-radius:50%;width:26px;height:26px;display:grid;place-items:center;font-size:12px}
.bld-guide{position:absolute;background:#f43f5e;z-index:60;pointer-events:none}
.bld-guide.v{width:1px;top:0;bottom:0}.bld-guide.h{height:1px;left:0;right:0}
.bld-ticker{position:absolute;left:0;right:0;z-index:55;overflow:hidden;white-space:nowrap;pointer-events:none;display:flex;align-items:center}
.bld-ticker span{display:inline-block;padding-left:100%;animation:bldtk 14s linear infinite}
@keyframes bldtk{to{transform:translateX(-100%)}}
.bld-cinfo{display:flex;gap:4px 12px;flex-wrap:wrap;align-items:center;min-height:20px;padding:0 4px}
.bld-strip{display:flex;gap:6px;align-items:stretch;overflow-x:auto;min-height:0;padding:2px 2px 4px}
.bld-strip:empty{display:none}
.bld-strip .lbl{font-size:12px;color:var(--muted);align-self:center;white-space:nowrap}
.bld-si{display:flex;gap:6px;align-items:center;border:1px solid var(--line);background:var(--card);border-radius:10px;padding:4px 6px;font-size:12px;cursor:pointer;flex-shrink:0;max-width:220px;color:var(--text);font-family:inherit}
.bld-si.sel{border-color:var(--brand);box-shadow:0 0 0 2px var(--focus)}
.bld-si .th{width:40px;height:26px;border-radius:5px;background:#0b1220 center/cover no-repeat;flex-shrink:0;display:grid;place-items:center;color:#cbd5e1;font-size:13px}
.bld-si .nm{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bld-si.off{opacity:.5}
.bld-right{padding:10px;display:flex;flex-direction:column;gap:10px}
.bld-sec{border:1px solid var(--line);border-radius:10px;padding:10px;display:flex;flex-direction:column;gap:8px}
.bld-sec>h3,.bld-sec>summary{margin:0;font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);font-weight:650;cursor:default}
details.bld-sec>summary{cursor:pointer}
.bld-sec label{font-size:12.5px}
.bld-sec input,.bld-sec select,.bld-sec textarea{padding:6px 8px;font-size:13.5px}
.bld-sec textarea{min-height:70px;resize:vertical}
.bld-sec .row{gap:6px}
.bld-sec .row>label{flex:1;min-width:0}
.bld-mini{font-size:12px;color:var(--muted)}
.bld-sched-row{display:flex;gap:4px;flex-wrap:wrap;align-items:center}
.bld-chip{display:inline-flex;gap:4px;align-items:center;font-size:11px;padding:1px 7px;border-radius:999px;background:var(--chip-bg);color:var(--chip-text);border:0;cursor:pointer;font-family:inherit;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bld-rows{display:flex;flex-direction:column;gap:4px}
.bld-rows .r{display:flex;gap:4px;align-items:center;flex-wrap:wrap}
.bld-rows .r input[type=time]{width:96px}.bld-rows .r input[type=number]{width:70px}
.bld-timeline{flex:none;background:var(--card);border:1px solid var(--line);border-radius:12px;padding:8px 10px}
.bld-tl-head{display:flex;gap:8px;align-items:center;margin-bottom:6px}.bld-tl-head .sp{flex:1}
.bld-tl{list-style:none;margin:0;padding:2px 0 4px;display:flex;gap:8px;overflow-x:auto}
.bld-sl{flex:0 0 150px;border:1px solid var(--line);border-radius:10px;padding:6px;display:flex;flex-direction:column;gap:4px;background:var(--card);cursor:pointer;position:relative}
.bld-sl.sel{border-color:var(--brand);box-shadow:0 0 0 2px var(--focus)}
.bld-sl.off{opacity:.55}
.bld-sl.drag{opacity:.4}.bld-sl.dropl{box-shadow:-4px 0 0 var(--brand)}.bld-sl.dropr{box-shadow:4px 0 0 var(--brand)}
.bld-sl .mini{position:relative;background:#000;border-radius:6px;overflow:hidden;margin:0 auto}
.bld-sl .mini .bld-z{border-color:rgba(148,163,184,.35);cursor:pointer}
.bld-sl .top{display:flex;gap:4px;align-items:center;font-size:12px}
.bld-sl .top b{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bld-sl .n{font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}
.bld-sl .ctl{display:flex;gap:4px;align-items:center;font-size:11.5px}
.bld-sl .ctl input[type=number]{width:58px;padding:3px 5px;font-size:12px}
.bld-sl .ctl input[type=checkbox]{margin:0}
.bld-sl .mv{border:0;background:none;color:var(--muted);cursor:pointer;padding:0 2px;font-size:13px}
.bld-sl.add{align-items:center;justify-content:center;border-style:dashed;color:var(--muted);font-size:13px;min-height:110px}
.bld-sl.add.over{border-color:var(--brand);color:var(--brand)}
.bld-dlg{border:0;border-radius:16px;padding:20px;width:min(560px,94vw);box-shadow:0 20px 60px rgba(0,0,0,.3);background:var(--card);color:var(--text)}
.bld-dlg::backdrop{background:rgba(15,23,42,.55)}
.bld-dlg h2{margin:0 0 4px}
.bld-dlg .row .sp,.bld-pv-bar .sp{flex:1}
.bld-tlist{display:flex;flex-direction:column;gap:4px;max-height:46vh;overflow:auto;margin-top:6px}
.bld-tlist label{flex-direction:row;align-items:center;gap:8px;border:1px solid var(--line);border-radius:10px;padding:7px 9px;color:var(--text);font-size:14px}
.bld-tlist label small{display:block;color:var(--muted);font-size:12px}
.bld-help li{margin-bottom:6px}
.bld-pv{position:fixed;inset:0;z-index:200;background:rgba(2,6,23,.94);display:flex;flex-direction:column}
.bld-pv-bar{display:flex;gap:8px;align-items:center;color:#e2e8f0;padding:10px 14px;font-size:14px}
.bld-pv-stage{flex:1;display:grid;place-items:center;padding:10px;min-height:0}
.bld-pv-canvas .bld-z{border:0;cursor:default}
.bld-ver{display:flex;gap:8px;align-items:center;border-bottom:1px solid var(--line);padding:6px 0;font-size:13.5px}
.bld-ver .sp{flex:1}
@media (max-width:1180px){.bld-main{grid-template-columns:250px minmax(0,1fr) 270px}}
@media (max-width:980px){
  .bld-main{grid-template-columns:230px minmax(0,1fr)}
  .bld{height:auto}
  .bld-main{grid-template-rows:auto;flex:none}
  .bld-center{height:70vh}
  .bld-left{max-height:70vh}
  .bld-right{grid-column:1/-1;max-height:none;min-height:0}
}
@media (max-width:760px){
  body[data-page=builder] .content{padding:8px}
  .bld-top{padding:6px}.bld-proj{flex-basis:100%}.bld-target{max-width:none;flex:1 1 100%}
  .bld-actions{margin-left:0;width:100%;gap:4px}.bld-actions #bPublish{flex:1 1 100%}.bld-actions .lg{display:none}.bld-actions .sm{display:inline}
  .bld-actions .btn{padding:7px 10px}.bld-proj select{max-width:120px}.bld-name{font-size:15px}.bld-state{min-width:0;text-align:left;flex:1 1 100%;order:9}
  .bld-cam{display:inline-flex}
  .bld-mtabs{display:flex;gap:4px;position:sticky;top:56px;z-index:15;background:var(--bg);padding:4px 0}
  .bld-mtabs button{flex:1;border:1px solid var(--line);background:var(--card);color:var(--text);border-radius:10px;padding:8px;font:inherit;font-weight:600}
  .bld-mtabs button[aria-pressed=true]{background:var(--brand);color:#fff;border-color:var(--brand)}
  .bld{height:auto;min-height:0}
  .bld-center{height:auto}
  .bld-main{display:block;min-height:0;flex:none}
  .bld-main>*{display:none}
  .bld-main[data-mt=canvas]>.bld-center,.bld-main[data-mt=left]>.bld-left,.bld-main[data-mt=right]>.bld-right{display:flex}
  .bld-left,.bld-right{max-height:none;min-height:0}
  .bld-canvas-wrap{flex:none;height:min(62vh,560px);padding:8px}
  .bld-sl{flex-basis:128px}
}
/* 0.17.1: the one «Добавить» window (addpicker.js) and pages opened inside a window (?embed=1) */
.lcadd{border:0;border-radius:16px;padding:0;width:min(860px,96vw);height:min(640px,92vh);box-shadow:0 20px 60px rgba(0,0,0,.35);background:var(--card);color:var(--text);flex-direction:column}
.lcadd[open]{display:flex}
.lcadd::backdrop{background:rgba(15,23,42,.55)}
.lcadd-head{display:flex;gap:10px;align-items:center;padding:12px 16px;border-bottom:1px solid var(--line)}
.lcadd-head h2{margin:0;font-size:17px}.lcadd-head .sp,.lcadd-foot .sp{flex:1}
.lcadd-sel{color:var(--brand);font-size:13px;font-weight:600;flex:1}
.lcadd-tabs{display:flex;gap:2px;padding:6px 10px;border-bottom:1px solid var(--line);overflow-x:auto}
.lcadd-tabs button{border:0;background:none;color:var(--muted);font:inherit;font-weight:600;font-size:14px;padding:8px 12px;border-radius:8px;cursor:pointer;white-space:nowrap}
.lcadd-tabs button[aria-selected=true]{background:var(--sel-bg);color:var(--brand)}
.lcadd-body{flex:1;overflow:auto;padding:14px 16px}
.lcadd-body h3{margin:4px 0 8px}
.lcadd-foot{display:flex;gap:8px;align-items:center;padding:10px 16px;border-top:1px solid var(--line)}
.lcadd-drop{border:2px dashed var(--line2);border-radius:12px;padding:14px;text-align:center;display:flex;flex-direction:column;gap:8px;align-items:center;margin-bottom:10px}
.lcadd-drop.over{border-color:var(--brand);background:var(--sel-bg)}
.lcadd-drop span{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;align-items:center}
.lcadd-cam{display:none}
.lcadd-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:8px}
.lcadd-card{position:relative;display:flex;flex-direction:column;gap:4px;border:2px solid var(--line);border-radius:10px;padding:4px;background:var(--card);color:var(--text);font:inherit;font-size:12px;cursor:pointer;text-align:left;min-width:0}
.lcadd-card[aria-pressed=true]{border-color:var(--brand);box-shadow:0 0 0 2px var(--focus)}
.lcadd-card[aria-pressed=true]::after{content:"✓";position:absolute;left:8px;top:8px;background:var(--brand);color:#fff;border-radius:50%;width:20px;height:20px;display:grid;place-items:center;font-size:12px}
.lcadd-card .th{aspect-ratio:16/10;border-radius:7px;background:#0b1220 center/cover no-repeat;display:grid;place-items:center;color:#cbd5e1;font-size:20px}
.lcadd-card .nm{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lcadd-card .tag{position:absolute;right:8px;top:8px;font-size:10px;background:rgba(15,23,42,.75);color:#fff;border-radius:6px;padding:0 4px}
.lcadd-card .tag.warn{right:auto;left:auto;top:auto;bottom:24px;right:8px;background:#b45309}
.lcadd-card.off,.lcadd-kind.off{opacity:.45}
.lcadd-kinds{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:6px}
.lcadd-kind{display:flex;gap:6px;align-items:center;border:1px solid var(--line);border-radius:10px;padding:7px 9px;background:var(--card);color:var(--text);font:inherit;font-size:13px;cursor:pointer;text-align:left}
.lcadd-kind:hover,.lcadd-card:hover{border-color:var(--brand)}
.lcadd-tpl{display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:start}
.lcadd-pv{background:#0b1220;border-radius:10px;overflow:hidden;max-height:420px;display:grid;place-items:center;justify-self:center;width:100%;max-width:100%}
.lcadd-pv img{width:100%;height:100%;object-fit:contain}
.lcadd-w{width:min(1200px,98vw);height:94vh}
.lcadd-w iframe{flex:1;border:0;width:100%;background:var(--bg)}
body[data-embed="1"] .topbar,body[data-embed="1"] .sidebar,body[data-embed="1"] .skip-link,body[data-embed="1"] .back{display:none!important}
body[data-embed="1"] .layout{min-height:100vh}body[data-embed="1"] .content{max-width:none;padding:12px}
/* playlist editor: screen orientation + rotation */
.pl-orient{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:13.5px}
.pl-orient select{padding:5px 8px}
.pv-box img.rot90,.pv-box img.rot270,.pv-box video.rot90,.pv-box video.rot270{position:absolute;left:50%;top:50%;width:var(--rh);height:var(--rw)}
.btn.rot{min-width:44px}
@media (max-width:760px){.lcadd{width:100vw;height:100vh;max-width:100vw;max-height:100vh;margin:0;border-radius:0}.lcadd-tpl{grid-template-columns:1fr}.lcadd-cam{display:inline-flex}.lcadd-grid{grid-template-columns:repeat(3,1fr)}}
/* 0.18.0: «Используется ещё в N местах» — change only here / everywhere */
.lcadd-ask{width:min(560px,96vw);height:auto}
.lcadd-ask .lcadd-body{display:flex;flex-direction:column;gap:10px}
.lcadd-ask label.chk{flex-direction:row;align-items:flex-start;gap:8px;color:var(--text);font-size:14px}
.lcadd-ask label.chk input{margin-top:3px}
/* 0.22.0 «Шаблоны слайдов»: categories, search, themes, live preview (addpicker.js tplPicker; the Constructor and «Добавить») */
.lctpl{display:grid;grid-template-columns:minmax(220px,1fr) minmax(260px,1.3fr);gap:14px;align-items:start}
.lctpl.narrow{grid-template-columns:1fr;gap:8px}
.lctpl-pick{display:flex;flex-direction:column;gap:6px;min-width:0}
.lctpl-cats{display:flex;flex-wrap:wrap;gap:4px}
.lctpl-cat{border:1px solid var(--line);border-radius:999px;background:var(--card);color:var(--text);font:inherit;font-size:12px;padding:2px 9px;cursor:pointer}
.lctpl-cat:hover{border-color:var(--brand)}.lctpl-cat.on{background:var(--brand);border-color:var(--brand);color:#fff}
.lctpl-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:4px;max-height:360px;overflow:auto;padding-right:2px}
.lctpl.narrow .lctpl-list{max-height:240px;grid-template-columns:1fr 1fr}
.lctpl-gh{grid-column:1/-1;font-size:11.5px;color:var(--muted);margin-top:6px;text-transform:uppercase;letter-spacing:.03em}
.lctpl-item{display:flex;gap:6px;align-items:center;border:1px solid var(--line);border-radius:9px;padding:5px 7px;background:var(--card);color:var(--text);font:inherit;font-size:12.5px;cursor:pointer;text-align:left;min-width:0}
.lctpl-item span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lctpl-item:hover{border-color:var(--brand)}.lctpl-item.on{border-color:var(--brand);box-shadow:inset 0 0 0 1px var(--brand);background:var(--soft2)}
.lctpl-item .ic{font-size:16px;flex:none}
.lctpl-edit{display:flex;flex-direction:column;gap:8px;min-width:0}
.lctpl-head{display:flex;flex-direction:column;gap:2px}
.lctpl-themes{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.lctpl-sw{width:36px;height:28px;border-radius:7px;border:2px solid;font-weight:700;font-size:14px;line-height:1;cursor:pointer;padding:0}
.lctpl-sw.on{outline:3px solid var(--brand);outline-offset:1px}
.lctpl-pv{max-height:380px;position:relative;align-self:center}.lctpl.narrow .lctpl-pv{max-height:220px}
/* 0.26.2 the box keeps the screen proportions inside max-height (portrait was cut): width set from JS, image fills it */
.lctpl-pv img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.lctpl-err{color:var(--err-text);margin:0}.lctpl-size{margin:0}
@media (max-width:760px){.lctpl{grid-template-columns:1fr}.lctpl-list{max-height:220px}}
