/* Juanva · Editor: efectos animados, estudio, espacio de trabajo e iconos. */

/* ════════ efectos (antes efectos.css) ════════ */
.ef-wrap{max-width:1320px;margin:0 auto;padding:16px 16px 40px}
  .ef-intro{font-size:13.5px;color:var(--text-soft);margin:0 0 12px}
  .ef-card{background:var(--w);border:1px solid var(--bd);border-radius:14px;box-shadow:var(--shadow);margin-bottom:16px}
  .ef-card>h2{margin:0;padding:12px 14px;font-size:15px;border-bottom:1px solid var(--bd-soft);display:flex;gap:8px;align-items:center;flex-wrap:wrap}
  .ef-card>h2 .sub{font-weight:500;font-size:12.5px;color:var(--text-mute)}
  .ef-in{padding:14px}
  .ef-comb{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:16px}
  .ef-stage{position:relative;border-radius:12px;overflow:hidden;background:#0d1530;touch-action:pan-y}
  .ef-stage.transp,.ef-gal .ef-stage.transp{background-color:#fff;background-image:linear-gradient(45deg,#d6dbe6 25%,transparent 25%),linear-gradient(-45deg,#d6dbe6 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#d6dbe6 75%),linear-gradient(-45deg,transparent 75%,#d6dbe6 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0}
  .ef-stage canvas{display:block;width:100%;height:100%}
  .ef-barra-v{display:flex;gap:6px;align-items:center;margin:0 0 8px}
  .ef-barra-v .esp{flex:1}
  .ef-barra-v button{white-space:nowrap;border:1px solid var(--bd);border-radius:999px;padding:6px 12px;font:inherit;font-size:12.5px;font-weight:700;color:var(--text);background:var(--w);cursor:pointer;min-height:32px}
  .ef-barra-v button:hover{border-color:var(--zb)}
  #ef-quitar-v{color:#c8102e}
  .ef-barra-v button[aria-pressed=true]{background:#1E3A8A;border-color:#1E3A8A;color:#fff}
  .ef-gcard .ef-barra-v{display:none}
  @media (max-width:560px){ .ef-barra-v .lg{display:none} .ef-barra-v button{padding:5px 10px;font-size:12px;min-height:30px} }
  #ef-vista-wrap{height:560px;display:flex;align-items:center;justify-content:center}
  #ef-vista{box-shadow:0 0 0 1px rgba(127,140,170,.55),0 4px 18px rgba(0,0,0,.25)}
  .ef-vista-tam{position:absolute;right:8px;bottom:6px;font-size:11.5px;font-weight:700;color:#fff;background:rgba(8,14,32,.6);padding:2px 8px;border-radius:999px;pointer-events:none}
  .ef-capasfx{margin-top:10px;border:1px solid var(--bd);border-radius:10px;padding:8px 10px;background:var(--w)}
  .ef-capasfx .cab{font-size:13px;margin-bottom:6px}.ef-capasfx .cab span{font-size:12px;color:var(--text-mute)}
  .ef-capasfx ol{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}
  .ef-capasfx li{display:flex;align-items:center;gap:8px;padding:4px 6px;border-radius:8px;background:var(--bg-soft,rgba(127,127,127,.08));font-size:13px}
  .ef-capasfx li .nm{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .ef-capasfx li small{color:var(--text-mute)}
  .ef-capasfx li.img{background:none;border:1px dashed var(--bd);justify-content:center;font-weight:700;color:var(--text-soft)}
  .ef-capasfx li button{border:1px solid var(--bd);background:var(--w);color:var(--text);border-radius:7px;min-width:34px;min-height:30px;font-size:13px;cursor:pointer}
  .ef-capasfx li button:disabled{opacity:.35;cursor:default}
  .ef-para{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:0 0 8px;padding:7px 10px;border:1px solid var(--zb);border-radius:10px;background:var(--zb-paler);font-size:13px;font-weight:700}
  .ef-para select{padding:5px 8px;border:1px solid var(--bd);border-radius:8px;background:var(--w);color:var(--text);font:inherit;font-weight:600;max-width:100%}
  .ef-para span{font-size:12px;font-weight:500;color:var(--text-mute)}
  .ef-para.capa{border-color:#e30613;box-shadow:0 0 0 2px rgba(227,6,19,.15)}
  .ef-enlaces{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin:0 0 10px;padding:9px 12px;border:1px solid var(--bd);border-left:3px solid #e30613;border-radius:10px;background:var(--w);font-size:13px}
  /* v419 · lo oculto con «hidden» se oculta siempre (aunque su clase le dé display:flex) */
  [hidden]{display:none!important}
  .ef-enlaces span{flex:1 1 260px;color:var(--text-mute);font-size:12.5px}
  .ef-capased{margin-top:10px;border:1px solid var(--bd);border-left:3px solid var(--zb);border-radius:10px;padding:8px 10px;background:var(--zb-paler)}
  .ef-capased .cab{font-size:13px;margin-bottom:6px}.ef-capased .cab span{font-size:12px;color:var(--text-mute)}
  .ef-capased ol{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}
  .ef-capased li{display:flex;flex-direction:column;align-items:stretch;gap:5px;padding:5px 7px;border-radius:8px;background:var(--w);border:1px solid var(--bd-soft);font-size:13px}
  .ef-capased li .fila1{display:flex;align-items:center;gap:6px}
  .ef-capased li .fila2{display:flex;flex-wrap:wrap;gap:4px 10px;font-size:12px;color:var(--text-soft)}
  .ef-capased li .fila2 label{display:inline-flex;align-items:center;gap:4px;min-width:0}
  .ef-capased li .fila2 select{max-width:150px;padding:3px 5px;border:1px solid var(--bd);border-radius:7px;background:var(--w);color:var(--text);font:inherit;font-size:12px}
  .ef-capased li .nm{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .ef-capased li .nm small{display:block;font-size:11.5px;color:var(--text-mute);overflow:hidden;text-overflow:ellipsis}
  .ef-capased li.fondo{align-items:center;font-weight:700;color:var(--text-soft);border-style:dashed;background:none}
  .ef-capased li button{border:1px solid var(--bd);background:var(--w);color:var(--text);border-radius:7px;min-width:32px;min-height:30px;font-size:13px;cursor:pointer;flex:none}
  .ef-capased li button:disabled{opacity:.35;cursor:default}
  .ef-textos{margin-top:10px;border:1px solid var(--bd);border-radius:10px;padding:8px 10px;background:var(--w)}
  .ef-textos .cab{font-size:13px;margin-bottom:6px}.ef-textos .cab span{font-size:12px;color:var(--text-mute)}
  .ef-tx-modelos{display:flex;flex-wrap:wrap;gap:6px}
  .ef-tx-modelos button{border:1px solid var(--bd);background:var(--bg-soft,rgba(127,127,127,.08));color:var(--text);border-radius:999px;padding:5px 11px;font-size:12.5px;cursor:pointer;font-weight:600}
  .ef-tx-modelos button:hover{border-color:var(--zb)}
  .ef-tx{margin-top:8px;border:1px solid var(--bd);border-left:3px solid var(--zb);background:var(--zb-paler);border-radius:9px;padding:8px;display:flex;flex-direction:column;gap:6px;font-size:13px}
  .ef-tx.sel{border-color:var(--zb);box-shadow:0 0 0 2px rgba(30,58,138,.18)}
  .ef-tx .fila{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:center}
  .ef-tx .fila label{display:inline-flex;align-items:center;gap:5px}
  .ef-tx .tx-t{flex:1 1 160px;min-width:0;font-size:15px;font-weight:700;padding:6px 8px;border:1px solid var(--bd);border-radius:7px;background:var(--w);color:var(--text)}
  .ef-tx select{max-width:100%}
  .ef-tx input[type=range]{width:110px}
  .ef-tx input[type=color]{width:34px;height:26px;padding:0;border:1px solid var(--bd);border-radius:6px;background:none}
  .ef-tx .tx-q{border:1px solid var(--bd);background:var(--w);color:var(--text);border-radius:7px;min-width:34px;min-height:32px;cursor:pointer}
  .ef-tx .tx-sec{display:flex;flex-direction:column;gap:6px;border-top:1px solid var(--bd-soft);padding-top:6px}
  .ef-tx .tx-tit{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.4px;color:var(--zb)}
  .ef-tx .tx-r output{min-width:38px;font-weight:700;color:var(--text);font-variant-numeric:tabular-nums}
  .ef-tx .tx-aviso{font-size:12px;color:#b45309;line-height:1.35}
  .ef-tx [hidden]{display:none!important}
  .ef-ajustes{display:flex;flex-wrap:wrap;gap:10px 16px;margin-top:10px;font-size:13px;align-items:center}
  .ef-ajustes label{display:inline-flex;gap:6px;align-items:center;color:var(--text-soft);font-weight:600}
  .ef-ajustes select,.ef-fx select,.ef-exp select{padding:5px 8px;border:1px solid var(--bd);border-radius:8px;background:var(--w);color:var(--text);font:inherit;font-size:13px}
  input[type=color]{width:34px;height:28px;padding:1px;border:1px solid var(--bd);border-radius:6px;background:var(--w);cursor:pointer;vertical-align:middle}
  input[type=range]{accent-color:var(--zb);vertical-align:middle}
  .ef-lista{display:flex;flex-direction:column;gap:6px;max-height:640px;overflow:auto;padding-right:4px}
  .ef-fx{border:1px solid var(--bd);border-radius:10px;background:var(--w)}
  .ef-fx.on{border-color:var(--zb);background:var(--zb-paler)}
  .ef-fx-cab{display:flex;gap:8px;align-items:center;padding:8px 10px;cursor:pointer;font-size:13px;font-weight:600;color:var(--text);user-select:none}
  .ef-fx-cab input{margin:0;accent-color:var(--zb);width:16px;height:16px}
  .ef-num{display:inline-block;min-width:24px;text-align:center;font-size:11px;font-weight:700;padding:2px 5px;border-radius:6px;background:var(--bd-soft);color:var(--text-soft)}
  .ef-fx.on .ef-num{background:var(--zb);color:#fff}
  .ef-fx-ctl{display:none;flex-wrap:wrap;gap:6px 14px;padding:0 10px 9px 42px;font-size:12.5px;color:var(--text-soft);align-items:center}
  .ef-fx.on .ef-fx-ctl{display:flex}
  .ef-fx-ctl label{display:inline-flex;gap:6px;align-items:center}
  .ef-fx-ctl input[type=range]{width:110px}
  .ef-fx-ctl output{min-width:34px;font-weight:700;color:var(--text)}
  .ef-mover{font-size:12px;color:var(--text-mute)}
  .ef-copias{font-size:12px;font-weight:700;color:var(--text)}
  .ef-copias:empty{display:none}
  .ef-codigo{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:10px;font-size:13px}
  .ef-codigo code{font-size:14px;font-weight:700;padding:6px 10px;border-radius:8px;background:var(--bd-soft);color:var(--text)}
  .ef-gal{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:12px}
  .ef-gcard{border:1px solid var(--bd);border-radius:12px;overflow:hidden;background:var(--w);display:flex;flex-direction:column}
  .ef-gcard .ef-stage{border-radius:0;height:270px}
  .ef-gcard .inf{padding:9px 11px 11px;font-size:12.5px;color:var(--text-mute)}
  .ef-gcard h3{margin:0 0 3px;font-size:14px;color:var(--text);display:flex;gap:7px;align-items:center}
  .ef-gcard .inf label{display:inline-flex;gap:6px;align-items:center;margin-top:7px;font-weight:600;color:var(--text-soft);cursor:pointer}
  .ef-gcard .inf input{accent-color:var(--zb)}
  .ef-exp{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;font-size:13px}
  .ef-exp .campo{display:flex;flex-direction:column;gap:5px}
  .ef-exp .campo>span{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.4px;color:var(--text-mute)}
  .ef-fmt{display:flex;flex-wrap:wrap;gap:6px}
  .ef-dest-cab{font-size:13px;font-weight:700;margin-bottom:6px}.ef-dest-cab small{font-weight:500;color:var(--text-mute)}
  .ef-dest{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px;margin-bottom:14px}
  .ef-acc [hidden]{display:none!important}
  .ef-dest button{display:flex;flex-direction:column;align-items:flex-start;gap:2px;text-align:left;border:1px solid var(--bd);background:var(--w);color:var(--text);border-radius:12px;padding:9px 11px;font:inherit;cursor:pointer;min-height:52px}
  .ef-dest button b{font-size:13px}.ef-dest button small{font-size:11.5px;color:var(--text-mute)}
  .ef-dest button:hover{border-color:var(--zb)}
  .ef-dest button.on{border-color:var(--zb);background:var(--zb-paler);box-shadow:0 0 0 1px var(--zb) inset}
  /* v413 · «Ver en un móvil»: un teléfono de verdad (proporción de iPhone) en medio de la vista, con lo de fuera oscurecido;
     dentro, la animación como la enseña WhatsApp: en un Estado (pantalla completa, con bandas si no es vertical) o en un chat (burbuja) */
  #ef-vista-wrap.movil{background:radial-gradient(circle at 50% 38%,#26304f 0,#0b0f1c 75%)!important}
  #ef-vista-wrap.movil #ef-vista{position:absolute;z-index:2}
  .ef-movil,.ef-movil-sup{position:absolute;display:none;pointer-events:none;color:#fff;font-size:12px}
  .ef-movil{z-index:1;background:#0c0d10;box-shadow:0 0 0 2px #3a3d45,0 18px 44px rgba(0,0,0,.6)}
  .ef-movil-sup{z-index:3;overflow:hidden}
  #ef-vista-wrap.movil .ef-movil,#ef-vista-wrap.movil .ef-movil-sup{display:block}
  .ef-movil .pant{position:absolute;overflow:hidden;background:#000}
  .ef-movil-sup .muesca{position:absolute;left:50%;top:7px;width:30%;height:15px;transform:translateX(-50%);border-radius:10px;background:#0c0d10}
  .ef-movil-sup .barra{position:absolute;left:10px;right:10px;top:28px;height:3px;border-radius:2px;background:rgba(255,255,255,.35);overflow:hidden}
  .ef-movil-sup .barra i{display:block;height:100%;width:35%;background:#fff}
  .ef-movil-sup .quien{position:absolute;left:10px;top:38px;display:flex;align-items:center;gap:6px;font-weight:700;font-size:11.5px;text-shadow:0 1px 3px rgba(0,0,0,.6);white-space:nowrap}
  .ef-movil-sup .quien span{flex:none;width:24px;height:24px;border-radius:50%;background:linear-gradient(135deg,#d4d4d4,#737373);border:1.5px solid #fff}
  .ef-movil-sup .quien small{font-weight:500;opacity:.85}
  .ef-movil-sup .resp{position:absolute;left:10px;right:10px;bottom:14px;text-align:center;font-weight:600;font-size:11.5px;opacity:.9;text-shadow:0 1px 3px rgba(0,0,0,.6)}
  .ef-movil-sup.chat .barra,.ef-movil-sup.chat .quien,.ef-movil-sup.chat .resp{display:none}
  .ef-movil .cab-chat,.ef-movil .msg-in,.ef-movil .burbuja,.ef-movil .pie-chat{display:none;position:absolute}
  .ef-movil.chat .pant{background:#e9e1d6 radial-gradient(rgba(0,0,0,.05) 1px,transparent 1.5px) 0 0/14px 14px}
  .ef-movil.chat .cab-chat,.ef-movil.chat .msg-in,.ef-movil.chat .burbuja,.ef-movil.chat .pie-chat{display:flex}
  .ef-movil .cab-chat{left:0;right:0;top:0;height:11%;background:#075e54;align-items:flex-end;gap:7px;padding:0 10px 6px;box-sizing:border-box;font-weight:700;font-size:12px}
  .ef-movil .cab-chat .av{flex:none;width:24px;height:24px;border-radius:50%;background:#cfd8dc}
  .ef-movil .cab-chat small{display:block;font-weight:500;font-size:10px;opacity:.85}
  .ef-movil .msg-in{left:8px;max-width:72%;background:#fff;color:#111;border-radius:0 9px 9px 9px;padding:5px 8px 14px;font-size:11px;line-height:1.3;box-shadow:0 1px 1px rgba(0,0,0,.15);box-sizing:border-box}
  .ef-movil .burbuja{background:#d9fdd3;border-radius:9px 0 9px 9px;box-shadow:0 1px 1px rgba(0,0,0,.15)}
  .ef-movil .msg-in small,.ef-movil .burbuja small{position:absolute;right:7px;bottom:2px;font-size:9.5px;color:#667781}
  .ef-movil .burbuja small b{color:#53bdeb;font-weight:700}
  .ef-movil .pie-chat{left:6px;right:6px;bottom:8px;height:8%;background:#fff;border-radius:999px;color:#8696a0;font-size:12px;align-items:center;padding:0 12px}
  .ef-movil-modo{position:absolute;left:8px;top:8px;z-index:4;display:none;flex-direction:column;gap:5px}
  #ef-vista-wrap.movil .ef-movil-modo{display:flex}
  .ef-movil-modo button{border:1px solid rgba(255,255,255,.35);background:rgba(8,14,32,.55);color:#fff;border-radius:999px;padding:5px 11px;font:inherit;font-size:12px;font-weight:700;cursor:pointer;min-height:30px}
  .ef-movil-modo button.on{background:#1E3A8A;color:#fff;border-color:#9fb4ff;box-shadow:0 0 0 2px rgba(159,180,255,.35)}
  .ef-fmt button{border:1px solid var(--bd);background:var(--w);color:var(--text);border-radius:999px;padding:6px 12px;font:inherit;font-size:13px;font-weight:600;cursor:pointer}
  .ef-fmt button.on{background:var(--zb);border-color:var(--zb);color:#fff}
  .ef-nota{font-size:12.5px;color:var(--text-mute);margin-top:10px;line-height:1.45}
  .ef-acc{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px;align-items:center}
  .ef-res{font-size:13px;font-weight:600;color:var(--ok)}
  .ef-salida{display:flex;gap:14px;align-items:flex-start;flex-wrap:wrap;margin-top:12px;padding-top:12px;border-top:1px solid var(--bd-soft)}
  .ef-salida[hidden]{display:none}
  .ef-salida-vista{width:220px;max-width:100%;border-radius:10px;overflow:hidden;border:1px solid var(--bd);background-color:#fff;background-image:linear-gradient(45deg,#d6dbe6 25%,transparent 25%),linear-gradient(-45deg,#d6dbe6 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#d6dbe6 75%),linear-gradient(-45deg,transparent 75%,#d6dbe6 75%);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0}
  .ef-salida-vista img,.ef-salida-vista video{display:block;width:100%;height:auto}
  .ef-salida-txt{flex:1;min-width:200px;font-size:12.5px;color:var(--text-soft);line-height:1.5}
  .ef-wa-f{margin:10px 0 4px}
  .ef-wa-n{display:block;font-size:12px;color:var(--text-mute)}
  .zb-btn.wa{gap:6px}
  .wa-ayuda{font-size:13.5px;line-height:1.55}
  .wa-ayuda ol{margin:8px 0 10px;padding-left:20px}
  .wa-ayuda li{margin:6px 0}
  .wa-bts{display:inline-flex;gap:6px;flex-wrap:wrap;vertical-align:middle;margin-left:4px}
  .wa-bts .zb-btn{text-decoration:none}
  /* Imagen propia */
  .ef-drop{border:2px dashed var(--bd);border-radius:12px;padding:22px;text-align:center;color:var(--text-soft);cursor:pointer;transition:.15s}
  .ef-drop.sobre{border-color:var(--zb);background:var(--zb-paler)}
  .ef-drop b{color:var(--zb)}
  .fi-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:8px}
  .fi-grid button{display:flex;flex-direction:column;align-items:center;gap:4px;padding:12px 8px;border:1px solid var(--bd);border-radius:12px;background:var(--w);color:var(--text);font:inherit;font-size:13px;font-weight:700;cursor:pointer;transition:.15s}
  .fi-grid button:hover{border-color:var(--zb);transform:translateY(-1px)}
  .fi-grid button.on{border-color:var(--zb);background:var(--zb);color:#fff}
  .fi-grid button .i{font-size:24px;line-height:1}
  .ef-grupo{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:var(--text-mute);margin:6px 2px 0}
  .ef-fx-ctl input[type=text]{padding:5px 8px;border:1px solid var(--bd);border-radius:8px;background:var(--w);color:var(--text);font:inherit;font-size:13px;width:190px;max-width:100%}
  .ed{margin-top:4px}
  .ed-barra{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center;margin-bottom:10px;font-size:13px}
  .ed-barra label{display:inline-flex;gap:6px;align-items:center;font-weight:600;color:var(--text-soft)}
  .ed-barra label[hidden],.ed-grp[hidden]{display:none!important}
  .ed-barra select{padding:5px 8px;border:1px solid var(--bd);border-radius:8px;background:var(--w);color:var(--text);font:inherit;font-size:13px}
  .ed-grp{display:inline-flex;flex-wrap:wrap;gap:8px 14px;align-items:center}
  .ed-sep{flex:1}
  .ed-herr{display:inline-flex;border:1px solid var(--bd);border-radius:10px;overflow:hidden;flex-wrap:wrap}
  .ed-herr button{border:0;background:var(--w);color:var(--text);padding:8px 12px;font:inherit;font-size:13px;font-weight:600;cursor:pointer;border-right:1px solid var(--bd)}
  .ed-herr button:last-child{border-right:0}
  .ed-herr button.on{background:var(--zb);color:#fff}
  .ed-lienzo{position:relative;height:520px;border-radius:12px;overflow:hidden;border:1px solid var(--bd);background:#fff}
  .ed-lienzo canvas{display:block;width:100%;height:100%}
  .ed-ayuda{font-size:12px;color:var(--text-mute);margin:6px 0 10px}
  .ed-fin{padding-top:10px;border-top:1px solid var(--bd-soft)}
  .ef-estado{font-size:12.5px;color:var(--text-mute);margin-top:8px}
  .ef-vacio{padding:30px;text-align:center;color:var(--text-mute);font-size:14px}
  /* v392 · Editor (todas las herramientas), pensado también para el móvil */
  .edi-vacio{display:flex;flex-direction:column;gap:12px}
  .edi-empezar{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
  .edi-blanco{display:none;flex-wrap:wrap;gap:8px;align-items:center;font-size:13px;padding:10px;border:1px dashed var(--bd);border-radius:10px}
  .edi-blanco.ver{display:flex}
  .edi-blanco select{padding:6px 8px;border:1px solid var(--bd);border-radius:8px;background:var(--w);color:var(--text);font:inherit;font-size:13px}
  .edi{display:grid;grid-template-columns:minmax(0,1fr) 360px;grid-template-areas:"izq cats" "izq pan";grid-template-rows:auto 1fr;gap:12px 16px;align-items:start}
  #ef-editor [hidden],#ef-efx [hidden]{display:none!important}
  .edi-izq{grid-area:izq;min-width:0}
  .edi-cats{grid-area:cats;display:flex;flex-direction:column;gap:6px}
  .edi-grupos{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
  .edi-grupos button{display:flex;flex-direction:column;align-items:center;gap:2px;padding:7px 4px;border:1px solid var(--bd);border-radius:10px;background:var(--w);color:var(--text-soft);font:inherit;font-size:12px;font-weight:700;cursor:pointer;min-width:0}
  .edi-grupos button .i{font-size:19px;line-height:1}
  .edi-grupos button.on{background:var(--zb);border-color:var(--zb);color:#fff}
  .edi-sub{display:flex;flex-wrap:wrap;gap:6px}
  .edi-sub button{border:1px solid var(--bd);background:var(--w);color:var(--text);border-radius:999px;padding:6px 11px;font:inherit;font-size:12.5px;font-weight:600;cursor:pointer;white-space:nowrap;min-height:32px}
  .edi-sub button{display:inline-flex;align-items:center;gap:5px}
  .edi-sub button svg{flex:0 0 auto;width:15px;height:15px}
  .edi-grupos button.capa-on:not(.on){border-color:var(--zb)}
  .edi-sub button.on{background:var(--zb-paler);border-color:var(--zb);color:var(--text);box-shadow:inset 0 0 0 1px var(--zb)}
  .gotero{border:1px solid var(--bd);background:var(--w);border-radius:7px;padding:2px 5px;cursor:pointer;font-size:13px;line-height:1.2;vertical-align:middle;margin-left:2px}
  .gotero.on{background:var(--zb);color:#fff;border-color:var(--zb)}
  .edi-lienzo.gotas canvas{cursor:copy!important}
  .edi-sub2{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.4px;color:var(--text-mute);margin-top:4px}
  .edi-plant{grid-template-columns:repeat(2,minmax(0,1fr))}
  .edi-cartel label{display:flex;flex-direction:column;gap:4px;font-size:12.5px;font-weight:700;color:var(--text-soft)}
  .edi-cartel label small{font-weight:500;color:var(--text-mute)}
  .edi-cartel input[type=text],.edi-cartel select{padding:7px 9px;border:1px solid var(--bd);border-radius:8px;background:var(--w);color:var(--text);font:inherit;font-size:14px;font-weight:500}
  .edi-cartel .ca-chk{flex-direction:row;align-items:center;font-weight:600}
  .ca-precios{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}.ca-precios>label{min-width:0;display:flex;flex-direction:column;gap:4px}.ca-precios small{font-weight:400;color:var(--text-mute)}.ca-precios input{width:100%;min-width:0;box-sizing:border-box}
  .ca-dis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
  .ca-dis button{border:2px solid transparent;border-radius:10px;padding:10px 6px;font:inherit;font-weight:800;cursor:pointer;text-shadow:0 1px 2px rgba(0,0,0,.25)}
  .ca-dis button.on{border-color:var(--text);box-shadow:0 0 0 2px var(--w) inset}
  .kit-txt{grid-template-columns:repeat(2,minmax(0,1fr))}
  .kit-cols{display:flex;flex-wrap:wrap;gap:6px}
  .kit-cols span{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;padding:4px 8px 4px 4px;border:1px solid var(--bd);border-radius:999px}
  .kit-cols i{width:20px;height:20px;border-radius:50%;border:1px solid rgba(0,0,0,.2)}
  .kit-sw{display:inline-flex;gap:3px;vertical-align:middle;margin-left:4px}
  .kit-sw button{width:18px;height:18px;border-radius:50%;border:1px solid rgba(0,0,0,.25);padding:0;cursor:pointer}
  .edi-plant button{min-height:64px;text-align:center}
  .edi-plant small{font-size:10.5px;color:var(--text-mute);font-weight:500}
  .edi-mini{position:absolute;z-index:3;display:flex;gap:2px;padding:3px;border-radius:10px;background:rgba(20,28,48,.9);box-shadow:0 4px 14px rgba(0,0,0,.35)}
  .edi-mini button{border:0;background:transparent;color:#fff;font-size:15px;min-width:34px;height:32px;border-radius:7px;cursor:pointer}
  .edi-mini button:hover{background:rgba(255,255,255,.15)}
  .edi-zoom{position:absolute;right:8px;bottom:8px;z-index:3;display:flex;gap:4px}
  .edi-zoom button{width:32px;height:32px;border-radius:8px;border:0;background:rgba(20,28,48,.75);color:#fff;font-size:17px;font-weight:700;cursor:pointer}
  #edi-cv[hidden]~.edi-zoom,#edi-cv[hidden]~.edi-mini{display:none!important}
  .edi-pan{grid-area:pan;min-width:0}
  .edi-barra{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-bottom:8px}
  .edi-barra .zb-btn{min-height:34px}
  @media (max-width:1500px){ #edi-desh .txt,#edi-reh .txt,#edi-comp .txt,#edi-hist-b .txt{display:none} }
  .edi-lienzo{position:relative;height:600px;border-radius:12px;overflow:hidden;border:1px solid var(--bd);background:#fff}
  .edi-lienzo canvas{position:absolute;inset:0;display:block;width:100%;height:100%}
  .edi-info{font-size:12px;color:var(--text-mute);margin-top:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .edi-p{border:1px solid var(--bd);border-radius:12px;background:var(--w)}
  .edi-p>h3{margin:0;padding:10px 12px;font-size:14px;border-bottom:1px solid var(--bd-soft);display:flex;gap:8px;align-items:center}
  .edi-sec{padding:10px 12px 12px;display:flex;flex-direction:column;gap:9px;font-size:12.5px;color:var(--text-soft)}
  .edi-fila{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
  .edi-fila>label{display:inline-flex;gap:6px;align-items:center;font-weight:600}
  .edi-sl{display:grid;grid-template-columns:92px minmax(0,1fr) 44px;gap:8px;align-items:center;font-weight:600}
  .edi-sl input[type=range]{width:100%;min-height:26px}
  .edi-sl output{text-align:right;font-weight:700;color:var(--text);font-variant-numeric:tabular-nums}
  .edi-sl.cambiado span{color:var(--zb)}
  .edi-sec select,.edi-sec input[type=number],.edi-sec textarea{padding:6px 8px;border:1px solid var(--bd);border-radius:8px;background:var(--w);color:var(--text);font:inherit;font-size:13px}
  .edi-sec textarea{width:100%;min-height:62px;resize:vertical;box-sizing:border-box;font-size:15px}
  .edi-sec input[type=number]{width:86px}
  .edi-sub{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.4px;color:var(--text-mute);margin-top:4px}
  .edi-rejilla{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
  .edi-rejilla button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:52px;padding:6px 4px;border:1px solid var(--bd);border-radius:10px;background:var(--w);color:var(--text);font:inherit;font-size:11.5px;font-weight:600;cursor:pointer;min-width:0}
  .edi-rejilla button .i{font-size:22px;line-height:1}
  .edi-rejilla button.on{border-color:var(--zb);background:var(--zb-paler)}
  .edi-rejilla.peg{grid-template-columns:repeat(8,minmax(0,1fr))}
  .edi-rejilla.peg button{min-height:42px;font-size:24px;padding:4px 0}
  .edi-filtros{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
  .edi-filtros button{display:flex;flex-direction:column;align-items:center;gap:3px;padding:4px;border:2px solid transparent;border-radius:9px;background:var(--bd-soft);color:var(--text);font:inherit;font-size:11.5px;font-weight:600;cursor:pointer;min-width:0}
  .edi-filtros button.on{border-color:var(--zb)}
  .edi-filtros canvas,.edi-filtros .ph{width:100%;aspect-ratio:1;object-fit:contain;border-radius:6px;background-color:#fff;background-image:linear-gradient(45deg,#d6dbe6 25%,transparent 25%),linear-gradient(-45deg,#d6dbe6 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#d6dbe6 75%),linear-gradient(-45deg,transparent 75%,#d6dbe6 75%);background-size:10px 10px;background-position:0 0,0 5px,5px -5px,-5px 0}
  .edi-filtros span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
  .edi-hist{list-style:none;margin:0;padding:0;max-height:300px;overflow:auto;display:flex;flex-direction:column;gap:2px}
  .edi-hist li button{width:100%;text-align:left;border:0;background:transparent;color:var(--text-soft);font:inherit;font-size:12.5px;padding:7px 8px;border-radius:7px;cursor:pointer;display:flex;gap:8px}
  .edi-hist li button:hover{background:var(--bd-soft)}
  .edi-hist li.actual button{background:var(--zb-paler);color:var(--text);font-weight:700}
  .edi-hist li.futuro button{opacity:.5}
  .edi-hist .n{min-width:20px;color:var(--text-mute);font-variant-numeric:tabular-nums}
  .edi-capas{list-style:none;margin:0;padding:0;display:flex;flex-direction:column-reverse;gap:4px}
  .edi-capas li{display:flex;align-items:center;gap:4px;border:1px solid var(--bd);border-radius:9px;padding:3px 4px;background:var(--w)}
  .edi-capas li.sel{border-color:var(--zb);background:var(--zb-paler)}
  .edi-capas li.oculta .nm{opacity:.45;text-decoration:line-through}
  .edi-capas .nm{flex:1;min-width:0;text-align:left;border:0;background:none;color:var(--text);font:inherit;font-size:13px;font-weight:600;padding:7px 4px;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .edi-capas .mini{border:0;background:none;font-size:15px;padding:6px;cursor:pointer;border-radius:6px;color:var(--text-soft);min-width:32px}
  .edi-capas .mini:hover{background:var(--bd-soft)}
  .edi-capas li.fondo{border-style:dashed;color:var(--text-mute);font-size:12.5px;padding:3px 4px}
  .edi-props{display:flex;flex-direction:column;gap:9px;border-top:1px solid var(--bd-soft);padding-top:10px}
  /* v412 · herramientas por grupos: cada bloque de detalles en su recuadro sombreado */
  .edi-grp{display:flex;flex-direction:column;gap:8px;background:var(--zb-paler);border:1px solid var(--bd-soft);border-left:3px solid var(--zb);border-radius:10px;padding:8px 10px 10px;min-width:0}
  .edi-grp.sin-tit{border-left-color:var(--bd)}
  .edi-grp>.edi-sub{margin:0;color:var(--zb)}
  .edi-grp:not(:has(> :not([hidden]))){display:none}
  .edi-props .titulo{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:700;color:var(--text)}
  .edi-tog{display:inline-flex;border:1px solid var(--bd);border-radius:9px;overflow:hidden}
  .edi-tog button{border:0;border-right:1px solid var(--bd);background:var(--w);color:var(--text);padding:6px 10px;font:inherit;font-size:13px;font-weight:700;cursor:pointer;min-width:36px}
  .edi-tog button:last-child{border-right:0}
  .edi-tog button.on{background:var(--zb);color:#fff}
  .edi-acc{display:flex;flex-wrap:wrap;gap:5px}
  .edi-acc button{border:1px solid var(--bd);background:var(--w);color:var(--text);border-radius:8px;padding:6px 9px;font:inherit;font-size:12.5px;font-weight:600;cursor:pointer;min-height:34px}
  .edi-acc button.peligro{color:var(--danger,#c62828)}
  .edi-obj{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:9px 10px;border-radius:10px;background:#fff4d6;color:#5a4300;font-size:13px;font-weight:600;border:1px solid #f0d58a}
  .edi-recorte{display:none;gap:6px;flex-wrap:wrap;align-items:center;padding:8px 10px;border-radius:10px;background:var(--zb-paler);margin-bottom:8px;font-size:13px;font-weight:600;color:var(--text)}
  .edi-recorte.ver{display:flex}
  .edi-aparte{border:2px solid var(--zb)}
  .edi-capas li.fondo{gap:4px}.edi-capas li.fondo .nm{flex:1}.edi-capas li.fondo.oculta .nm{opacity:.45;text-decoration:line-through}
  .edi-aviso{padding:8px 10px;border-radius:10px;background:var(--zb-paler);font-size:12.5px;color:var(--text);line-height:1.45}
  .edi .ef-fmt button{padding:6px 12px}
  .ef-efx{display:flex;flex-wrap:wrap;gap:10px 16px;align-items:center;font-size:13px}
  .ef-efx img{width:64px;height:64px;object-fit:contain;border-radius:8px;border:1px solid var(--bd);background:#fff}
  @media (min-width:981px) and (min-height:640px){ .edi-izq{position:sticky;top:12px} .edi-lienzo{height:min(600px,calc(100vh - 140px))} }
  /* Móvil y tableta vertical: imagen arriba fija, barra de herramientas debajo y el panel al final */
  @media (max-width:980px) and (min-height:561px){
    .edi{grid-template-columns:minmax(0,1fr);grid-template-areas:"izq" "cats" "pan";gap:8px}
    .edi-izq{position:sticky;top:0;z-index:6;background:var(--w);padding-top:6px;margin-top:-6px}
    .edi-lienzo{height:clamp(220px,42vh,520px)}
    .edi-cats{position:sticky;top:var(--edi-izq-h,0px);z-index:5;background:var(--w);padding:4px 0 6px;gap:5px}
    .edi-grupos button{flex-direction:row;justify-content:center;gap:5px;padding:7px 4px}
    .edi-grupos button .i{font-size:16px}
    .edi-sub{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
    .edi-sub::-webkit-scrollbar{display:none}
    .edi-sub button{flex:0 0 auto}
    .edi-info{display:none}
  }
  /* Móvil en horizontal: imagen a la izquierda, panel a la derecha */
  @media (max-height:560px) and (orientation:landscape){
    .edi{grid-template-columns:minmax(0,1fr) minmax(260px,44%)}
    .edi-izq{position:sticky;top:0}
    .edi-lienzo{height:calc(100vh - 70px)}
    .edi-grupos button{flex-direction:row;justify-content:center;gap:4px;padding:5px 2px;font-size:11px;min-height:34px}
    .edi-grupos button .i{font-size:15px}
    .edi-sub button{padding:4px 9px;min-height:28px;font-size:12px}
    .edi-barra .txt{display:none}
    .edi-barra{margin-bottom:4px}
  }
  @media (max-width:460px){ .edi-barra{flex-wrap:nowrap;gap:3px} .edi-barra .ed-sep{display:none} .edi-barra .zb-btn{padding:6px 2px;flex:1 1 0;min-width:0;justify-content:center} .edi-barra .txtc{display:none} #edi-cerrar{font-size:15px} }
  #edi-cerrar{margin-left:auto}
  @media (max-width:560px){ .edi-sl{grid-template-columns:80px minmax(0,1fr) 42px} .edi-rejilla.peg{grid-template-columns:repeat(6,minmax(0,1fr))} .edi-barra .txt{display:none} }
  /* Progreso */
  .ef-prog{position:fixed;inset:0;background:rgba(10,16,35,.55);display:none;align-items:center;justify-content:center;z-index:1400;padding:16px}
  .ef-prog.ver{display:flex}
  .ef-prog .caja{background:var(--w);border-radius:14px;padding:18px;width:min(420px,100%);box-shadow:var(--shadow-lg)}
  .ef-prog .barra{height:10px;border-radius:6px;background:var(--bd-soft);overflow:hidden;margin:12px 0}
  .ef-prog .barra i{display:block;height:100%;width:0;background:var(--zb);transition:width .15s}
  @media (max-width:980px){ .ef-comb{grid-template-columns:1fr} #ef-vista-wrap{height:470px} .ef-lista{max-height:none} }
  @media (max-width:560px){ #ef-vista-wrap{height:400px} .ef-gal{grid-template-columns:1fr 1fr} .ef-gcard .ef-stage{height:220px} .ef-fx-ctl{padding-left:10px} }
  @media (max-width:380px){ .ef-gal{grid-template-columns:1fr} }
  @media (max-width:640px){ .ed-lienzo{height:420px} .ed-herr button{padding:8px 9px} .ed-sep{display:none} }
  @media (max-height:560px) and (orientation:landscape){ .ed-lienzo{height:80vh} }
  @media (max-height:560px) and (orientation:landscape){ #ef-vista-wrap{height:82vh} .ef-gcard .ef-stage{height:200px} }
  @media print{ .ef-wrap{display:none} }

/* ════════ estudio (antes estudio.css) ════════ */
/* Editor de imágenes · capa visual. Cargar después de los estilos del motor. */
:root {
  color-scheme: light;
  --zb: #262626;
  --zb-dark: #151515;
  --zb-light: #414141;
  --zb-pale: #ededeb;
  --zb-paler: #f6f6f4;
  --zr: #b92e35;
  --zr-dark: #96252c;
  --zr-pale: #fff1f1;
  --bg: #fafaf9;
  --bd: #dededb;
  --bd-soft: #ececea;
  --w: #ffffff;
  --text: #222222;
  --text-soft: #555650;
  --text-mute: #6c6d67;
  --ok: #267347;
  --ok-pale: #eef7f0;
  --warn: #976419;
  --warn-pale: #fff7e9;
  --shadow: 0 1px 3px rgba(20,20,20,.04);
  --shadow-md: 0 6px 24px rgba(20,20,20,.09);
  --shadow-lg: 0 20px 65px rgba(20,20,20,.18);
  --studio-primary: #242424;
  --studio-primary-text: #ffffff;
  --studio-stage: #efefed;
  --studio-focus: #526faa;
  --studio-radius: 12px;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --zb: #475468;
  --zb-dark: #354052;
  --zb-light: #5c6a80;
  --zb-pale: #2c333e;
  --zb-paler: #24292f;
  --zr: #d96970;
  --zr-dark: #c45860;
  --zr-pale: #3b252a;
  --bg: #17191c;
  --bd: #3d4147;
  --bd-soft: #303439;
  --w: #202327;
  --text: #f0f0ed;
  --text-soft: #d1d2cd;
  --text-mute: #abaea7;
  --ok: #93cfa7;
  --ok-pale: #213a2c;
  --warn: #edca85;
  --warn-pale: #393020;
  --shadow: 0 1px 3px rgba(0,0,0,.12);
  --shadow-md: 0 6px 24px rgba(0,0,0,.22);
  --shadow-lg: 0 20px 65px rgba(0,0,0,.35);
  --studio-primary: #efefec;
  --studio-primary-text: #1b1d20;
  --studio-stage: #131518;
  --studio-focus: #b4cafa;
  background: var(--bg);
}
html, body { min-width: 320px; height: auto; min-height: 100%; }
html[data-theme="dark"] body, body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
body [hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:is(button, a, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--studio-focus);
  outline-offset: 3px;
}
button:disabled { cursor: not-allowed; }
input, select, textarea { max-width: 100%; }
input[type="range"] { accent-color: var(--zb); }
input[type="text"], input[type="number"], textarea, select { color: var(--text); background: var(--w); }
html[data-theme="dark"] img[src*=".webp"] { border-radius: inherit; }
.zb-btn { min-height: 38px; border-radius: 7px; font-weight: 600; transition: background .15s, border-color .15s; }
.zb-btn:hover { transform: none; filter: none; }
.zb-btn-pri { background: var(--studio-primary); color: var(--studio-primary-text); }
.zb-btn-pri:hover { background: var(--studio-primary); opacity: .9; }
.zb-btn-soft { background: var(--w); color: var(--text-soft); border-color: var(--bd); }
.zb-btn-soft:hover { background: var(--zb-paler); border-color: var(--text-mute); }
.zb-btn-red, .zb-btn-pri.studio-danger { background: var(--zr); color: #fff; }
.zb-btn-sm { font-size: 12px; }

/* Cabecera y pantalla de entrada. */
.studio-header {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 16px; padding: 20px max(24px, calc((100% - 1440px) / 2));
  border-bottom: 1px solid var(--bd-soft); background: var(--w);
}
.studio-header a { color: inherit; text-decoration: none; }
.studio-header .studio-brand, .studio-header .brand, .studio-header .logo {
  display: flex; align-items: center; gap: 12px; min-width: 0;
}
.studio-header img { display: block; width: auto; max-width: 140px; max-height: 42px; object-fit: contain; }
.studio-header strong { font-size: 19px; letter-spacing: -.5px; font-weight: 700; }
.studio-header small { color: var(--text-mute); font-size: 12px; }
.studio-header .studio-actions, .studio-header .studio-header-actions, .studio-header nav { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
#studio-inicio { color: var(--text); font-size: 19px; font-weight: 650; letter-spacing: -.5px; text-align: left; }
#studio-theme { min-width: 40px; }
#studio-home { width: min(1180px, 100%); margin: 0 auto; padding: 64px 28px 56px; }
.studio-kicker { color: var(--text-mute); text-transform: uppercase; font-size: 11px; font-weight: 650; letter-spacing: 1.8px; margin-bottom: 14px; }
#studio-home h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.09; letter-spacing: -2px; font-weight: 650; max-width: 850px; margin: 0 0 20px; }
#studio-home > p, .studio-lead { max-width: 670px; color: var(--text-soft); font-size: 17px; line-height: 1.65; margin-bottom: 28px; }
.studio-starts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 32px 0 26px; }
.studio-starts > button, .studio-start-card {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start;
  gap: 9px; text-align: left; padding: 25px; min-height: 145px;
  background: var(--w); color: var(--text); border: 1px solid var(--bd); border-radius: var(--studio-radius);
  transition: border-color .15s, box-shadow .15s;
}
.studio-starts > button:hover, .studio-start-card:hover { border-color: var(--text-mute); box-shadow: var(--shadow-md); }
.studio-starts > button strong, .studio-starts > button b { font-size: 18px; font-weight: 650; letter-spacing: -.3px; }
.studio-starts > button small { color: var(--text-mute); line-height: 1.5; font-size: 13px; font-weight: 400; }
.studio-starts > button .i, .studio-starts > button .icon { font-size: 24px; margin-bottom: 8px; }
#studio-open-image { background: var(--studio-primary); color: var(--studio-primary-text); border-color: var(--studio-primary); }
#studio-open-image small { color: inherit; opacity: .8; }
.studio-secondary-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 30px; }
.studio-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 42px; padding-top: 28px; border-top: 1px solid var(--bd); }
.studio-feature-grid > * { min-width: 0; }
.studio-feature-grid > button { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 10px; border-radius: 8px; color: var(--text); text-align: left; transition: background .15s; }
.studio-feature-grid > button:hover { background: var(--zb-paler); }
.studio-feature-grid h2, .studio-feature-grid h3, .studio-feature-grid > button > strong { display: block; font-size: 15px; font-weight: 650; line-height: 1.4; margin: 0; }
.studio-feature-grid p, .studio-feature-grid > button > span { display: block; color: var(--text-mute); font-size: 13px; line-height: 1.65; }
.studio-home-foot { margin-top: 28px; color: var(--text-mute); font-size: 12px; line-height: 1.6; }
.studio-local-note { color: var(--text-mute); font-size: 12px; margin-top: 24px; }

/* Navegación de los espacios actuales. */
#ef-tabs.zb-tabbar { padding: 12px max(24px, calc((100% - 1440px) / 2)); background: var(--w); gap: 6px; border-bottom: 1px solid var(--bd); box-shadow: none; }
#ef-tabs.zb-tabbar a { border-radius: 6px; min-height: 38px; padding: 8px 15px; color: var(--text-soft); font-size: 13px; border: 0; white-space: nowrap; }
#ef-tabs.zb-tabbar a:hover { background: var(--zb-paler); color: var(--text); }
#ef-tabs.zb-tabbar a.active { background: var(--studio-primary); color: var(--studio-primary-text); box-shadow: none; }
.ef-wrap { max-width: 1600px; padding: 24px 24px 48px; }
.ef-intro { max-width: 900px; margin-bottom: 18px; color: var(--text-mute); }
.ef-card { border-color: var(--bd); border-radius: var(--studio-radius); box-shadow: none; }
.ef-card > h2 { padding: 17px 20px; font-weight: 650; }
.ef-card > h2 .sub { color: var(--text-mute); line-height: 1.5; }
.ef-in { padding: 20px; }
#ef-editor { border: none; background: transparent; }
#ef-editor > .ef-in { padding: 0; }
.ef-enlaces { background: var(--zb-paler); border-color: var(--bd); }

/* Lienzo grande y herramientas conservadas, en dos columnas. */
.edi { grid-template-columns: minmax(0, 1fr) 368px; grid-template-areas: "izq cats" "izq pan"; grid-template-rows: auto 1fr; gap: 14px 24px; align-items: start; }
.edi-izq { position: sticky; top: 18px; }
.edi-barra { gap: 6px; padding-bottom: 10px; margin-bottom: 0; }
.edi-barra .zb-btn { min-height: 36px; padding: 7px 9px; }
.edi-barra #edi-cerrar { margin-left: 0; }
.edi-lienzo { height: min(690px, calc(100vh - 210px)); min-height: 360px; border: 1px solid var(--bd); border-radius: 10px; background: var(--studio-stage); }
.edi-info { display: block; color: var(--text-mute); padding-top: 5px; }
.edi-cats { gap: 13px; background: transparent; padding: 0; }
.edi-grupos { gap: 5px; padding: 5px; background: var(--bd-soft); border-radius: 9px; }
.edi-grupos button { flex-direction: row; justify-content: center; gap: 5px; padding: 9px 4px; min-height: 38px; border: 0; border-radius: 6px; background: transparent; font-weight: 600; }
.edi-grupos button .i { font-size: 15px; }
.edi-grupos button.on { background: var(--w); color: var(--text); box-shadow: var(--shadow); }
#edi-sub { display: flex; flex-wrap: wrap; gap: 7px; overflow: visible; margin-top: 0; text-transform: none; letter-spacing: 0; }
#edi-sub button { min-height: 35px; font-size: 12px; white-space: normal; text-align: left; line-height: 1.25; padding: 8px 10px; border-radius: 6px; max-width: 100%; }
#edi-sub button.on { background: var(--studio-primary); color: var(--studio-primary-text); border-color: var(--studio-primary); box-shadow: none; }
.edi-p { border-radius: 10px; box-shadow: none; }
.edi-p > h3 { font-size: 14px; font-weight: 650; padding: 15px 16px; }
.edi-sec { padding: 14px 15px 16px; gap: 13px; line-height: 1.5; }
#estudio-relleno-panel { padding: 14px 16px 16px; min-width: 0; }
.edi-grp { border: 0; border-radius: 6px; background: var(--zb-paler); padding: 13px; gap: 11px; }
.edi-grp > .edi-sub { color: var(--text-soft); }
.edi-sub, .edi-sub2 { color: var(--text-mute); font-weight: 600; }
.edi-sec input[type="number"] { min-width: 0; }
.edi-sec select { min-width: 0; }
.edi-sl { grid-template-columns: 88px minmax(0,1fr) 42px; font-weight: 500; gap: 7px; }
.edi-sl output { font-weight: 600; }
.edi-sec input[type="range"] { min-height: 34px; }
.edi-rejilla button { font-size: 12px; line-height: 1.3; border-radius: 7px; min-height: 59px; overflow-wrap: anywhere; }
.edi-rejilla button .i { font-size: 21px; }
.edi-rejilla button:hover { background: var(--zb-paler); }
.edi-rejilla button.on { background: var(--zb-pale); border-color: var(--text-mute); }
.edi-plant { grid-template-columns: repeat(2,minmax(0,1fr)); }
.edi-plant button { min-height: 94px; }
.edi-plant small { font-size: 11px; }
.edi-plant .i { margin-bottom: 5px; }
.edi-empezar { gap: 10px; }
.edi-vacio { max-width: 1000px; margin: 10px auto 0; gap: 22px; }
.ef-drop { display: block; background: var(--w); border: 1px dashed var(--text-mute); border-radius: 12px; padding: 50px 24px; line-height: 1.8; }
.ef-drop b { color: var(--text); font-size: 20px; font-weight: 650; }
.ef-drop.sobre { background: var(--zb-pale); border-color: var(--text); }
.edi-blanco { padding: 16px; border-style: solid; background: var(--w); }
.edi-capas li { border-radius: 6px; }
.edi-capas .mini { min-height: 34px; }
.edi-tog { flex-wrap: wrap; max-width: 100%; }
.edi-tog button { min-height: 34px; }
.edi-tog button.on, .ef-fmt button.on { background: var(--studio-primary); color: var(--studio-primary-text); border-color: var(--studio-primary); }
.edi-obj { background: var(--warn-pale); color: var(--text); border-color: var(--bd); }
.edi-mini { background: #25282d; border-radius: 7px; }
.edi-mini button { min-width: 36px; min-height: 36px; }
.edi-zoom { right: 12px; bottom: 12px; }
.edi-zoom button { width: 36px; height: 36px; background: #25282d; border-radius: 6px; }

/* Animación, fondos y salidas. Los colores de diseños y fotos no se alteran. */
.ef-comb { gap: 24px; }
.ef-gal { gap: 18px; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); }
.ef-gcard { border-radius: 8px; }
.ef-lista { padding-right: 7px; scrollbar-width: thin; }
.ef-fx { border-radius: 7px; }
.ef-fx-cab { padding: 11px 12px; }
.ef-grupo { margin-top: 13px; }
.ef-stage { border-radius: 8px; }
.ef-barra-v { flex-wrap: wrap; }
.ef-barra-v button { border-radius: 6px; }
.ef-barra-v button[aria-pressed="true"] { background: var(--studio-primary); color: var(--studio-primary-text); border-color: var(--studio-primary); }
.ef-dest { gap: 9px; }
.ef-dest button, .fi-grid button { border-radius: 8px; }
.ef-dest button.on { border-color: var(--text-mute); box-shadow: none; }
.fi-grid button.on { background: var(--studio-primary); color: var(--studio-primary-text); }
.ef-exp { row-gap: 20px; }
.ef-exp select { min-height: 38px; }
.ef-prog { background: rgba(15,16,19,.55); }
.ef-prog .caja { background: var(--w); color: var(--text); }

/* Los diálogos existentes (fuentes, lote, carrusel) mantienen sus dimensiones. */
.zb-modal-bg { background: rgba(15,16,19,.5); }
.zb-modal { color: var(--text); background: var(--w); border: 1px solid var(--bd); border-radius: 12px; box-shadow: var(--shadow-lg); }
.zb-modal-head { background: var(--w); color: var(--text); border-bottom: 1px solid var(--bd); padding: 15px 18px; }
.zb-modal-head .close { color: var(--text-soft); font-size: 24px; min-width: 36px; min-height: 36px; border-radius: 6px; }
.zb-modal-head .close:hover { background: var(--zb-paler); }
.zb-modal-foot { background: var(--w); flex-wrap: wrap; padding: 14px 18px; }
.zb-modal-body { overflow-wrap: anywhere; }
.studio-dialog-host { z-index: 2500; }
.studio-dialog-native { margin: 0; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; border: 0; padding: 20px; background: transparent; color: var(--text); }
.studio-dialog-native:not([open]) { display: none; }
.studio-dialog-native[open] { display: flex; }
.studio-dialog-native::backdrop { background: rgba(15,16,19,.5); }
.studio-confirm { max-width: 540px; }
.studio-confirm .zb-modal-body { line-height: 1.6; }
.studio-confirm .zb-modal-body a { color: var(--text); text-decoration: underline; }
.studio-confirm .zb-modal-body input { min-height: 40px; }
.studio-toasts { position: fixed; right: 22px; bottom: 22px; width: min(430px, calc(100vw - 32px)); z-index: 2800; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.studio-toast { display: flex; align-items: flex-start; gap: 10px; padding: 14px 12px 14px 15px; border: 1px solid var(--bd); border-radius: 9px; background: var(--w); color: var(--text); box-shadow: var(--shadow-md); pointer-events: auto; line-height: 1.45; font-size: 13px; }
.studio-toast-mark { flex: 0 0 22px; display: flex; justify-content: center; align-items: center; width: 22px; height: 22px; border-radius: 50%; color: var(--ok); background: var(--ok-pale); font-weight: 700; }
.studio-toast--err .studio-toast-mark { color: var(--zr); background: var(--zr-pale); }
.studio-toast--warn .studio-toast-mark { color: var(--warn); background: var(--warn-pale); }
.studio-toast-text { flex: 1; overflow-wrap: anywhere; }
.studio-toast-close { flex: 0 0 28px; color: var(--text-mute); font-size: 20px; line-height: 1; border-radius: 5px; min-height: 28px; }
.studio-toast-close:hover { background: var(--zb-paler); }

@media (min-width: 1600px) {
  .edi { grid-template-columns: minmax(0,1fr) 400px; }
}
@media (max-width: 1180px) {
  .edi { grid-template-columns: minmax(0,1fr) 342px; gap: 14px 18px; }
  .ef-wrap { padding: 20px 18px 40px; }
  .edi-barra .txt { display: none; }
  #edi-g-guardar .txt, #edi-guardar-b .txt { display: inline; }
}
@media (max-width: 980px) and (min-height: 561px) {
  .edi { grid-template-columns: minmax(0,1fr); grid-template-areas: "izq" "cats" "pan"; gap: 16px; }
  .edi-izq { position: sticky; top: 0; z-index: 6; background: var(--bg); padding: 10px 0 8px; margin: 0; }
  .edi-lienzo { height: clamp(250px,42vh,520px); min-height: 0; }
  .edi-cats { position: relative; top: auto; z-index: auto; padding: 0; }
  #edi-sub { flex-wrap: wrap; overflow: visible; }
  .edi-grupos { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .edi-pan { max-width: 100%; }
  .edi-info { display: none; }
  .edi-sec { padding: 16px; }
  .edi-grp { padding: 14px; }
  .edi-sl { grid-template-columns: 110px minmax(0,1fr) 45px; }
  .ef-comb { grid-template-columns: minmax(0,1fr); }
  #ef-vista-wrap { height: min(520px, 65vh); }
}
@media (max-height: 560px) and (orientation: landscape) {
  .studio-header { padding-top: 10px; padding-bottom: 10px; }
  .edi { grid-template-columns: minmax(0,1fr) minmax(270px,43%); gap: 12px; }
  .edi-izq { top: 4px; }
  .edi-lienzo { height: calc(100vh - 72px); min-height: 220px; }
  .edi-barra { flex-wrap: wrap; gap: 4px; }
  .edi-barra .zb-btn { min-height: 32px; padding: 4px 6px; }
  #edi-sub { overflow: visible; flex-wrap: wrap; }
  .edi-grupos button { font-size: 11px; padding: 5px 3px; gap: 3px; }
  .edi-grupos button .i { font-size: 13px; }
  .edi-sec { padding: 10px; }
  .edi-sl { grid-template-columns: 74px minmax(0,1fr) 34px; gap: 5px; }
  .edi-grp { padding: 9px; }
}
@media (max-width: 720px) {
  .studio-header { padding: 16px 18px; gap: 12px; }
  .studio-header strong { font-size: 17px; }
  .studio-header img { max-height: 33px; max-width: 105px; }
  #studio-home { padding: 38px 20px; }
  #studio-home h1 { letter-spacing: -1.2px; }
  #studio-home > p, .studio-lead { font-size: 15px; }
  .studio-starts { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .studio-starts > button { padding: 20px; }
  .studio-feature-grid { grid-template-columns: minmax(0,1fr); gap: 14px; margin-top: 28px; }
  #ef-tabs.zb-tabbar { padding: 10px 16px; flex-wrap: wrap; overflow: visible; }
  #ef-tabs.zb-tabbar a { padding: 8px 11px; }
  .ef-in { padding: 16px; }
  .ef-gal { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .ef-gcard .ef-stage { height: 220px; }
  .ef-barra-v button { white-space: normal; }
}
@media (max-width: 460px) {
  .studio-feature-grid { grid-template-columns: minmax(0,1fr); gap: 8px; }
  .studio-header .studio-actions, .studio-header .studio-header-actions, .studio-header nav { gap: 6px; }
  .studio-header .studio-actions .zb-btn, .studio-header .studio-header-actions .zb-btn { padding: 7px 9px; font-size: 12px; }
  .studio-starts { grid-template-columns: minmax(0,1fr); }
  .studio-starts > button { min-height: 112px; gap: 6px; }
  .studio-starts > button .i, .studio-starts > button .icon { margin-bottom: 2px; }
  .studio-kicker { font-size: 10px; letter-spacing: 1.2px; }
  .ef-wrap { padding: 12px 12px 32px; }
  #ef-tabs.zb-tabbar { gap: 4px; padding: 9px 12px; }
  #ef-tabs.zb-tabbar a { padding: 8px 10px; font-size: 12px; }
  .edi-barra { flex-wrap: wrap; gap: 5px; }
  .edi-barra .zb-btn { flex: 0 0 auto; min-width: 33px; min-height: 36px; padding: 6px 8px; }
  .edi-barra .ed-sep { display: block; flex: 1 1 0; }
  .edi-barra #edi-cerrar { margin-left: 0; }
  .edi-barra #edi-g-guardar, .edi-barra #edi-guardar-b { padding-left: 9px; padding-right: 9px; }
  .edi-lienzo { height: 34vh; min-height: 210px; }
  .edi-grupos button { padding: 8px 2px; font-size: 11px; gap: 4px; }
  .edi-grupos button .i { font-size: 13px; }
  #edi-sub { gap: 6px; }
  #edi-sub button { font-size: 12px; padding: 8px; }
  .edi-sec { padding: 12px; }
  .edi-grp { padding: 11px; }
  .edi-sl { grid-template-columns: 81px minmax(0,1fr) 37px; gap: 6px; }
  .edi-sl input[type="range"] { min-width: 0; }
  .edi-fila > label { flex-wrap: wrap; }
  .edi-rejilla { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .edi-rejilla.peg { grid-template-columns: repeat(6,minmax(0,1fr)); }
  .edi-plant { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .edi-filtros { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .edi-capas .mini { min-width: 29px; padding: 5px; }
  .ef-drop { padding: 30px 16px; }
  .ef-drop b { font-size: 18px; }
  .ef-gal { grid-template-columns: minmax(0,1fr); }
  .ef-dest { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ef-exp { grid-template-columns: minmax(0,1fr); }
  .zb-modal-bg, .studio-dialog-native { padding: 10px; }
  .zb-modal { max-height: calc(100dvh - 20px); }
  .zb-modal-head, .zb-modal-body, .zb-modal-foot { padding: 13px; }
  .studio-toasts { bottom: 14px; right: 16px; }
}
@media (pointer: coarse) {
  .zb-btn, #edi-sub button, .edi-grupos button, .edi-tog button, .edi-acc button { min-height: 42px; }
  .edi-mini button, .edi-zoom button { min-width: 42px; min-height: 42px; }
  .edi-sec input[type="text"], .edi-sec input[type="number"], .edi-sec textarea, .edi-sec select { font-size: 16px; }
  .studio-toast-close { min-width: 36px; min-height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media print {
  .studio-header, #studio-home, #ef-tabs, .studio-toasts { display: none !important; }
}

/* ════════ workspace (antes workspace.css) ════════ */
/* Workspace v2: navigation, contextual tools and a canvas-first editing surface.
   Loaded after the original modules. The canvas parents and all tool controls
   remain intact; only their presentation and available space change. */

body.workspace-v2 {
  --ws-header-h: 64px;
  --ws-rail-w: 76px;
  --ws-panel-w: 304px;
  --ws-rail-bg: #f8f8f6;
  --ws-stage-bg: #eeefec;
  --ws-control-bg: #f5f5f3;
  --ws-active-bg: #e9ebe6;
  --ws-active-line: #333d32;
  --ws-shadow: 0 1px 3px rgb(24 30 20 / 5%);
  color: var(--text);
  background: var(--w);
  -webkit-font-smoothing: antialiased;
}
html[data-theme="dark"] body.workspace-v2 {
  --ws-rail-bg: #1b1e22;
  --ws-stage-bg: #15171a;
  --ws-control-bg: #292d32;
  --ws-active-bg: #353b37;
  --ws-active-line: #d9e0d6;
  --ws-shadow: 0 1px 3px rgb(0 0 0 / 20%);
}
body.workspace-v2 *, body.workspace-v2 *::before, body.workspace-v2 *::after { box-sizing: border-box; }
body.workspace-v2.workspace-editing { height: 100dvh; min-height: 0; overflow: hidden; }
body.workspace-v2 [hidden] { display: none !important; }
body.workspace-v2 .ws-legacy, body.workspace-v2 .ws-redundant, body.workspace-v2 #ef-tabs, body.workspace-v2 #edi-cats { display: none !important; }
body.workspace-v2 .ws-icon-button:not(#ws-play) > .ws-label { display: none; }
body.workspace-v2 button { -webkit-tap-highlight-color: transparent; }
body.workspace-v2 button:disabled { opacity: .4; cursor: default; }
body.workspace-v2 :is(button, input, select, textarea, summary):focus-visible { outline: 2px solid var(--studio-focus); outline-offset: 3px; }

/* A single, quiet header. Saving and exporting stay in a predictable place. */
body.workspace-v2 .studio-header {
  height: var(--ws-header-h); min-height: var(--ws-header-h); width: 100%;
  display: grid; grid-template-columns: minmax(170px, 1fr) minmax(140px, 1fr) auto;
  align-items: center; gap: 20px; padding: 0 22px; flex-wrap: nowrap;
  border-bottom: 1px solid var(--bd); background: var(--w); position: relative; z-index: 30;
}
body.workspace-v2 #studio-inicio { display: inline-flex; align-items: center; justify-content: flex-start; gap: 9px; padding: 4px 0; min-width: 0; width: fit-content; max-width: 100%; font-size: 15px; font-weight: 700; letter-spacing: -.4px; white-space: nowrap; }
body.workspace-v2 #studio-inicio svg { width: 23px; height: 23px; flex: none; }
body.workspace-v2 .studio-document { display: flex; flex-direction: column; justify-content: center; gap: 1px; min-width: 0; text-align: center; }
body.workspace-v2 .studio-document strong { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; letter-spacing: -.1px; }
body.workspace-v2 .studio-document small, body.workspace-v2 .studio-document #studio-save-state { display: block; padding: 0; margin: 0; min-width: 0; border: 0; border-radius: 0; background: none; color: var(--text-mute); font-size: 10.5px; font-weight: 400; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.workspace-v2 .studio-header .studio-header-actions { display: flex; align-items: center; flex-wrap: nowrap; gap: 7px; min-width: 0; }
body.workspace-v2 .studio-header-actions .zb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; height: 36px; padding: 7px 11px; border-radius: 7px; font-size: 12px; line-height: 1; white-space: nowrap; }
body.workspace-v2 .studio-header-actions svg { width: 17px; height: 17px; flex: none; }
body.workspace-v2 #studio-theme { width: 36px; min-width: 36px; padding: 8px; }
body.workspace-v2 #studio-theme .ws-label { display: none; }
body.workspace-v2 #studio-header-export { padding-inline: 15px; }

/* Main workspace. Each scrolling surface belongs to one panel. */
body.workspace-v2 #workspace.ws-shell {
  display: grid; grid-template-columns: var(--ws-rail-w) var(--ws-panel-w) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr); grid-template-areas: "rail sidebar center";
  width: 100%; max-width: none; height: calc(100dvh - var(--ws-header-h)); min-height: 0;
  margin: 0; padding: 0; overflow: hidden; background: var(--ws-stage-bg);
}
body.workspace-v2 #workspace.ws-panel-collapsed { grid-template-columns: var(--ws-rail-w) minmax(0, 1fr); grid-template-areas: "rail center"; }
body.workspace-v2 #workspace.ws-panel-collapsed > .ws-sidebar,
body.workspace-v2 #workspace.ws-focus > .ws-sidebar { display: none; }
body.workspace-v2 #workspace.ws-focus { grid-template-columns: minmax(0, 1fr); grid-template-areas: "center"; }
body.workspace-v2 #workspace.ws-focus > .ws-rail { display: none; }
body.workspace-v2 .ws-rail {
  grid-area: rail; display: flex; flex-direction: column; align-items: stretch; gap: 4px;
  min-width: 0; min-height: 0; padding: 12px 7px 9px; border-right: 1px solid var(--bd);
  background: var(--ws-rail-bg); overflow-y: auto; scrollbar-width: none; z-index: 12;
}
body.workspace-v2 .ws-rail::-webkit-scrollbar { display: none; }
body.workspace-v2 .ws-rail-button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; flex: none; width: 100%; min-height: 60px; padding: 8px 2px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--text-mute); font: inherit; font-size: 10.5px; font-weight: 500; line-height: 1.25; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
body.workspace-v2 .ws-rail-button svg { display: block; width: 23px; height: 23px; flex: none; }
body.workspace-v2 .ws-rail-button:hover { background: var(--ws-control-bg); color: var(--text); }
body.workspace-v2 .ws-rail-button.is-active { background: var(--w); color: var(--text); border-color: var(--bd); box-shadow: var(--ws-shadow); font-weight: 650; }
body.workspace-v2 .ws-rail-button.is-active::before { content: ""; position: absolute; left: -8px; top: 18px; bottom: 18px; width: 3px; border-radius: 0 3px 3px 0; background: var(--ws-active-line); }
body.workspace-v2 .ws-rail-bottom { display: flex; flex-direction: column; gap: 3px; margin-top: auto; padding-top: 15px; }
body.workspace-v2 .ws-rail-bottom .ws-rail-button { min-height: 50px; }
body.workspace-v2 .ws-sidebar { grid-area: sidebar; display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; background: var(--w); border-right: 1px solid var(--bd); z-index: 10; }
body.workspace-v2 #ws-sidebar-head { display: grid; grid-template-columns: minmax(0, 1fr) 30px; gap: 3px 8px; align-items: center; flex: none; padding: 20px 18px 15px; }
body.workspace-v2 #ws-sidebar-head > div { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
body.workspace-v2 #ws-panel-title { grid-column: 1; margin: 0; color: var(--text); font-size: 17px; font-weight: 650; letter-spacing: -.4px; line-height: 1.3; }
body.workspace-v2 #ws-panel-subtitle { grid-column: 1; margin: 0; color: var(--text-mute); font-size: 11.5px; line-height: 1.55; font-weight: 400; }
body.workspace-v2 #ws-close-panel { grid-column: 2; grid-row: 1 / span 2; align-self: start; }
body.workspace-v2 :is(#ws-close-panel, #ws-panel-toggle, #ws-focus) { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 7px; border: 1px solid transparent; border-radius: 7px; color: var(--text-mute); background: transparent; cursor: pointer; }
body.workspace-v2 :is(#ws-close-panel, #ws-panel-toggle, #ws-focus):hover { background: var(--ws-control-bg); color: var(--text); }
body.workspace-v2 :is(#ws-close-panel, #ws-panel-toggle, #ws-focus) svg { width: 18px; height: 18px; }
body.workspace-v2 #ws-tool-search { flex: none; position: relative; min-width: 0; margin: 0 16px 13px; }
body.workspace-v2 #ws-tool-search input { width: 100%; height: 36px; min-width: 0; border: 1px solid var(--bd-soft); border-radius: 7px; background: var(--ws-control-bg); color: var(--text); padding: 8px 11px; font-size: 12px; }
body.workspace-v2 input#ws-tool-search { width: calc(100% - 32px); height: 36px; min-height: 36px; border: 1px solid var(--bd-soft); border-radius: 7px; background: var(--ws-control-bg); color: var(--text); padding: 8px 11px; font-size: 12px; }
body.workspace-v2 #ws-tool-search svg { width: 16px; height: 16px; color: var(--text-mute); }
body.workspace-v2 #ws-tool-search:has(> svg) input { padding-left: 33px; }
body.workspace-v2 #ws-tool-search > svg { position: absolute; top: 10px; left: 10px; pointer-events: none; }
body.workspace-v2 .ws-search { position: relative; display: block; min-width: 0; flex: none; margin: 0 16px 13px; }
body.workspace-v2 .ws-search > svg { position: absolute; z-index: 1; top: 10px; left: 11px; width: 16px; height: 16px; color: var(--text-mute); pointer-events: none; }
body.workspace-v2 .ws-search #ws-tool-search { display: block; width: 100%; min-width: 0; min-height: 36px; height: 36px; margin: 0; padding: 8px 10px 8px 34px; }
body.workspace-v2 .ws-subtools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 5px; flex: none; padding: 0 16px 15px; border-bottom: 1px solid var(--bd-soft); margin: 0; }
body.workspace-v2 .ws-subtools:empty { display: none; }
body.workspace-v2 .ws-subtools button { display: flex; align-items: center; justify-content: flex-start; gap: 7px; min-width: 0; min-height: 36px; padding: 7px 9px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--text-soft); text-align: left; font: inherit; font-size: 11.5px; font-weight: 500; line-height: 1.25; cursor: pointer; overflow-wrap: anywhere; }
body.workspace-v2 .ws-subtools button svg { flex: none; width: 17px; height: 17px; }
body.workspace-v2 .ws-subtools button:hover { background: var(--ws-control-bg); color: var(--text); }
body.workspace-v2 .ws-subtools button.is-active { border-color: var(--bd); background: var(--ws-active-bg); color: var(--text); font-weight: 650; }
body.workspace-v2 .ws-subtools .ws-no-results { grid-column: 1 / -1; color: var(--text-mute); font-size: 12px; margin: 4px 0; }
body.workspace-v2 .ws-inspector { flex: 1; min-width: 0; min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--bd) transparent; }
body.workspace-v2 .ws-empty-tool { display: flex; flex-direction: column; gap: 10px; margin: 20px 17px; padding: 18px 15px; border: 1px solid var(--bd-soft); border-radius: 8px; background: var(--ws-control-bg); }
body.workspace-v2 .ws-empty-tool > b { color: var(--text); font-size: 13px; font-weight: 600; }
body.workspace-v2 .ws-empty-tool > p { margin: 0 0 5px; color: var(--text-mute); font-size: 11.5px; line-height: 1.6; }
body.workspace-v2 .ws-empty-tool .zb-btn { width: 100%; justify-content: center; }
body.workspace-v2 .ws-search-results, body.workspace-v2 .ws-more-panel { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 0; min-height: 0; padding: 5px 13px 18px; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
body.workspace-v2 :is(.ws-search-results, .ws-more-panel) > button { display: flex; align-items: center; gap: 11px; flex: none; width: 100%; min-width: 0; min-height: 55px; padding: 11px 10px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--text); text-align: left; font: inherit; cursor: pointer; }
body.workspace-v2 :is(.ws-search-results, .ws-more-panel) > button:hover { background: var(--ws-control-bg); border-color: var(--bd-soft); }
body.workspace-v2 :is(.ws-search-results, .ws-more-panel) > button > svg { width: 21px; height: 21px; flex: none; color: var(--text-soft); }
body.workspace-v2 :is(.ws-search-results, .ws-more-panel) > button > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
body.workspace-v2 :is(.ws-search-results, .ws-more-panel) strong { display: block; font-size: 12px; font-weight: 550; }
body.workspace-v2 :is(.ws-search-results, .ws-more-panel) small { display: block; color: var(--text-mute); font-size: 10.5px; line-height: 1.5; }
body.workspace-v2 :is(.ws-search-results, .ws-more-panel) > p { margin: 4px 6px; color: var(--text-mute); font-size: 12px; line-height: 1.6; }
body.workspace-v2 #edi-pan { width: 100%; max-width: none; min-width: 0; min-height: 0; padding: 0; }
body.workspace-v2 .ws-center { grid-area: center; display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; }

/* Compact canvas actions and a footer that never floats over the image. */
body.workspace-v2 .ws-toolbar { display: flex; align-items: center; flex: none; min-height: 49px; gap: 8px; padding: 7px 12px; border-bottom: 1px solid var(--bd); background: var(--w); z-index: 5; }
body.workspace-v2 #ws-edit-toolbar, body.workspace-v2 #ws-animation-toolbar { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
body.workspace-v2 #ws-animation-toolbar { display: flex; align-items: center; gap: 8px; }
body.workspace-v2 #ws-play { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: none; height: 31px; min-height: 31px; padding: 6px 10px; border: 1px solid var(--bd); border-radius: 6px; background: var(--ws-control-bg); color: var(--text); font: inherit; font-size: 11px; font-weight: 600; cursor: pointer; }
body.workspace-v2 #ws-play svg { width: 15px; height: 15px; }
body.workspace-v2 #ws-edit-toolbar::-webkit-scrollbar, body.workspace-v2 #ws-animation-toolbar::-webkit-scrollbar { display: none; }
body.workspace-v2 #ws-toolbar .edi-barra, body.workspace-v2 #ws-toolbar #ef-barra-v { display: flex; align-items: center; flex-wrap: nowrap; gap: 4px; width: 100%; margin: 0; padding: 0; }
body.workspace-v2 #ws-toolbar .edi-barra .zb-btn, body.workspace-v2 #ws-toolbar #ef-barra-v button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: none; min-width: 34px; height: 33px; min-height: 33px; padding: 7px 8px; margin: 0; font-size: 11.5px; line-height: 1; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--text-soft); white-space: nowrap; box-shadow: none; }
body.workspace-v2 #ws-toolbar .edi-barra button:hover, body.workspace-v2 #ws-toolbar #ef-barra-v button:hover { background: var(--ws-control-bg); color: var(--text); }
body.workspace-v2 #ws-toolbar :is(.edi-barra, #ef-barra-v) svg { flex: none; width: 17px; height: 17px; }
body.workspace-v2 #ws-toolbar #ef-barra-v button[aria-pressed="true"] { background: var(--ws-active-bg); color: var(--text); border-color: var(--bd); }
body.workspace-v2 #ws-toolbar .ed-sep { display: block; flex: 1; min-width: 6px; }
body.workspace-v2 #ws-toolbar #edi-cerrar { margin-left: 0; color: var(--text-mute); }
body.workspace-v2 #ws-toolbar #edi-cerrar:hover { color: var(--zr); background: var(--zr-pale); }
body.workspace-v2 .ws-stage { display: flex; flex: 1; min-width: 0; min-height: 0; position: relative; overflow: hidden; background: var(--ws-stage-bg); }
body.workspace-v2 #ef-editor { display: flex; flex: 1; flex-direction: column; width: 100%; height: 100%; min-width: 0; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
body.workspace-v2 #ef-editor > .ef-in { display: flex; flex: 1; flex-direction: column; min-height: 0; width: 100%; height: 100%; margin: 0; padding: 0; }
body.workspace-v2 #edi { display: flex; flex: 1; flex-direction: column; min-width: 0; min-height: 0; width: 100%; height: 100%; margin: 0; padding: 0; gap: 0; }
body.workspace-v2 #edi-izq { display: flex; flex: 1; flex-direction: column; position: relative; top: auto; width: 100%; height: 100%; min-width: 0; min-height: 0; margin: 0; padding: 0; background: transparent; z-index: auto; }
body.workspace-v2 #edi-lienzo { flex: 1; width: 100%; height: auto; min-height: 0; margin: 0; border: 0; border-radius: 0; background: var(--ws-stage-bg); }
body.workspace-v2 #edi-lienzo canvas { touch-action: none; }
body.workspace-v2 .edi-recorte { flex: none; padding: 9px 15px; margin: 0; border: 0; border-bottom: 1px solid var(--bd); border-radius: 0; background: var(--w); color: var(--text-soft); font-size: 12px; font-weight: 500; }
body.workspace-v2 .edi-recorte .zb-btn { min-height: 30px; padding: 5px 9px; font-size: 11.5px; }
body.workspace-v2 .edi-aparte { background: var(--ws-active-bg); }
body.workspace-v2 #edi-mini { border: 1px solid rgb(255 255 255 / 12%); border-radius: 8px; padding: 3px; gap: 2px; box-shadow: 0 4px 18px rgb(0 0 0 / 15%); }
body.workspace-v2 #edi-mini button { min-width: 31px; width: 31px; height: 31px; min-height: 31px; display: inline-flex; align-items: center; justify-content: center; }
body.workspace-v2 #edi-mini svg { width: 17px; height: 17px; }
body.workspace-v2 #edi-vacio { width: min(700px, 100%); min-width: 0; max-height: 100%; overflow: auto; margin: auto; padding: 32px; gap: 20px; }
body.workspace-v2 #edi-vacio .ef-drop { padding: 40px 24px; background: var(--w); border: 1px dashed var(--bd); border-radius: 12px; text-align: center; }
body.workspace-v2 #edi-vacio .ef-drop b { font-size: 21px; letter-spacing: -.5px; }
body.workspace-v2 #edi-vacio .edi-empezar { justify-content: center; gap: 8px; }
body.workspace-v2 #edi-vacio .edi-blanco { border: 1px solid var(--bd); padding: 16px; background: var(--w); }
body.workspace-v2 .ws-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex: none; min-height: 37px; padding: 4px 14px; border-top: 1px solid var(--bd); background: var(--w); font-size: 11px; color: var(--text-mute); }
body.workspace-v2 #ws-footer #edi-info { display: block; flex: 1; min-width: 0; margin: 0; padding: 0; font-size: 10.5px; line-height: 1.3; }
body.workspace-v2 .ws-help-hint { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; color: var(--text-mute); font-size: 10.5px; }
body.workspace-v2 #ws-footer #edi-zoom { position: static; display: flex; align-items: center; gap: 3px; flex: none; z-index: auto; margin: 0; padding: 0; }
body.workspace-v2 #ws-footer #edi-zoom button { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; width: 28px; height: 27px; min-height: 27px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: var(--text-soft); font-size: 17px; }
body.workspace-v2 #ws-footer #edi-zoom button:hover { background: var(--ws-control-bg); }
body.workspace-v2 #ws-footer #edi-zoom svg { width: 15px; height: 15px; }
body.workspace-v2 .ws-zoom-label, body.workspace-v2 #ws-zoom-label { padding: 0 5px; font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
body.workspace-v2 #ws-animation-status { min-width: 0; font-size: 10.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* A consistent inspector: comfortable controls, restrained cards and clear labels. */
body.workspace-v2 .ws-inspector .edi-p { width: 100%; min-width: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
body.workspace-v2 .ws-inspector .edi-p > h3 { display: none; }
body.workspace-v2 .ws-inspector .edi-sec { display: flex; flex-direction: column; gap: 15px; padding: 18px 17px 22px; color: var(--text-soft); font-size: 12px; line-height: 1.5; }
body.workspace-v2 .ws-inspector .edi-sec + .edi-sec { padding-top: 4px; }
body.workspace-v2 .ws-inspector .edi-sec > .edi-hueco:has(.edi-props:not([hidden])) { order: -1; }
body.workspace-v2 .ws-inspector .edi-fila { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
body.workspace-v2 .ws-inspector .edi-fila > label { min-width: 0; max-width: 100%; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; }
body.workspace-v2 .ws-inspector :is(input:not([type="range"]):not([type="checkbox"]):not([type="radio"]):not([type="color"]), select, textarea),
body.workspace-v2 #ws-anim-panels :is(input:not([type="range"]):not([type="checkbox"]):not([type="radio"]):not([type="color"]), select, textarea) { max-width: 100%; min-width: 0; min-height: 35px; border: 1px solid var(--bd); border-radius: 6px; padding: 7px 9px; background: var(--w); color: var(--text); font: inherit; font-size: 12px; box-shadow: none; }
body.workspace-v2 .ws-inspector input[type="number"] { width: 75px; font-variant-numeric: tabular-nums; }
body.workspace-v2 .ws-inspector textarea { width: 100%; min-height: 88px; resize: vertical; line-height: 1.5; }
body.workspace-v2 :is(.ws-inspector, #ws-anim-panels) input[type="color"] { flex: none; width: 37px; height: 31px; min-height: 31px; padding: 3px; border: 1px solid var(--bd); border-radius: 6px; background: var(--w); cursor: pointer; }
body.workspace-v2 :is(.ws-inspector, #ws-anim-panels) input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
body.workspace-v2 :is(.ws-inspector, #ws-anim-panels) input[type="color"]::-webkit-color-swatch { border: none; border-radius: 3px; }
body.workspace-v2 :is(.ws-inspector, #ws-anim-panels) input:is([type="checkbox"], [type="radio"]) { accent-color: var(--ws-active-line); width: 16px; height: 16px; margin: 0; flex: none; cursor: pointer; }
body.workspace-v2 :is(.ws-inspector, #ws-anim-panels) input[type="range"] { accent-color: var(--ws-active-line); min-width: 0; max-width: 100%; min-height: 25px; height: 25px; margin: 0; padding: 0; cursor: pointer; }
body.workspace-v2 .ws-inspector .edi-sl { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 25px; gap: 3px 12px; align-items: center; font-size: 12px; font-weight: 500; }
body.workspace-v2 .ws-inspector .edi-sl > span, body.workspace-v2 .ws-inspector .edi-sl > label { grid-column: 1; grid-row: 1; }
body.workspace-v2 .ws-inspector .edi-sl input[type="range"] { grid-column: 1 / -1; grid-row: 2; width: 100%; }
body.workspace-v2 .ws-inspector .edi-sl output { grid-column: 2; grid-row: 1; color: var(--text); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; min-width: 32px; padding: 2px 6px; border: 1px solid var(--bd-soft); border-radius: 4px; background: var(--ws-control-bg); text-align: center; }
body.workspace-v2 .ws-inspector .edi-sub, body.workspace-v2 .ws-inspector .edi-sub2 { margin-top: 1px; color: var(--text-mute); font-size: 10px; font-weight: 650; line-height: 1.5; letter-spacing: .7px; text-transform: uppercase; }
body.workspace-v2 .ws-inspector .zb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; min-height: 35px; padding: 7px 10px; border-radius: 6px; font-size: 11.5px; font-weight: 600; line-height: 1.4; white-space: normal; }
body.workspace-v2 .ws-inspector button svg { width: 17px; height: 17px; flex: none; }
body.workspace-v2 .ws-inspector .edi-grp { display: flex; flex-direction: column; gap: 12px; padding: 12px; min-width: 0; border: 1px solid var(--bd-soft); border-radius: 7px; background: var(--ws-control-bg); }
body.workspace-v2 .ws-inspector .edi-grp:not(:has(> :not([hidden]))) { display: none; }
body.workspace-v2 .ws-inspector .edi-grp .edi-grp { padding: 9px; background: var(--w); }
body.workspace-v2 .ws-inspector fieldset { margin: 0; min-width: 0; border: 1px solid var(--bd); border-radius: 7px; padding: 12px; }
body.workspace-v2 .ws-inspector legend { color: var(--text-soft); padding-inline: 4px; font-weight: 600; }
body.workspace-v2 .ws-inspector .edi-rejilla { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
body.workspace-v2 .ws-inspector .edi-rejilla button { min-width: 0; min-height: 67px; padding: 9px 5px; border: 1px solid var(--bd); border-radius: 7px; background: var(--w); color: var(--text-soft); font-size: 11px; font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; }
body.workspace-v2 .ws-inspector .edi-rejilla button .i { font-size: 23px; margin: 0 0 3px; }
body.workspace-v2 .ws-inspector .edi-rejilla button .i svg { width: 25px; height: 25px; }
body.workspace-v2 .ws-inspector .edi-rejilla button:hover { border-color: var(--text-mute); background: var(--ws-control-bg); }
body.workspace-v2 .ws-inspector .edi-rejilla button.on { border-color: var(--ws-active-line); background: var(--ws-active-bg); color: var(--text); }
body.workspace-v2 .ws-inspector .edi-rejilla.peg { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }
body.workspace-v2 .ws-inspector .edi-rejilla.peg button { min-height: 38px; padding: 4px 1px; font-size: 23px; }
body.workspace-v2 .ws-inspector .edi-plant { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.workspace-v2 .ws-inspector .edi-plant button { min-height: 91px; gap: 5px; }
body.workspace-v2 .ws-inspector .edi-plant small { font-size: 10px; }
body.workspace-v2 .ws-inspector .edi-filtros { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
body.workspace-v2 .ws-inspector .edi-filtros button { padding: 3px; border-radius: 7px; background: transparent; gap: 6px; font-size: 10.5px; }
body.workspace-v2 .ws-inspector .edi-filtros canvas { border-radius: 5px; }
body.workspace-v2 .ws-inspector .edi-filtros button.on { border-color: var(--ws-active-line); }
body.workspace-v2 .ws-inspector .edi-tog { flex-wrap: wrap; border: 1px solid var(--bd); border-radius: 6px; background: var(--w); }
body.workspace-v2 .ws-inspector .edi-tog button { display: inline-flex; align-items: center; justify-content: center; min-height: 33px; min-width: 32px; padding: 7px 9px; font-size: 12px; }
body.workspace-v2 .ws-inspector .edi-tog button.on { background: var(--studio-primary); color: var(--studio-primary-text); }
body.workspace-v2 .ws-inspector .edi-acc { gap: 6px; }
body.workspace-v2 .ws-inspector .edi-capas { gap: 6px; }
body.workspace-v2 .ws-inspector .edi-capas li { gap: 2px; min-height: 43px; padding: 4px; border-radius: 7px; border-color: var(--bd-soft); }
body.workspace-v2 .ws-inspector .edi-capas li.sel { border-color: var(--ws-active-line); background: var(--ws-active-bg); }
body.workspace-v2 .ws-inspector .edi-capas .nm { min-width: 28px; padding: 7px 5px; font-size: 11.5px; font-weight: 500; }
body.workspace-v2 .ws-inspector .edi-capas .mini { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; width: 26px; min-height: 30px; height: 30px; padding: 4px; }
body.workspace-v2 .ws-inspector .edi-capas .mini svg { width: 15px; height: 15px; }
body.workspace-v2 .ws-inspector .edi-props { gap: 14px; padding-top: 16px; }
body.workspace-v2 .ws-inspector .edi-hist { max-height: none; gap: 3px; overflow: visible; }
body.workspace-v2 .ws-inspector .edi-hist li button { min-height: 37px; padding: 9px; font-size: 11.5px; font-weight: 400; }
body.workspace-v2 .ws-inspector .edi-hist li.actual button { background: var(--ws-active-bg); color: var(--text); font-weight: 600; }
body.workspace-v2 .ws-inspector .edi-obj { border-radius: 6px; border-color: var(--bd-soft); background: var(--ws-control-bg); font-size: 11px; line-height: 1.5; }
body.workspace-v2 .ws-section { min-width: 0; border-top: 1px solid var(--bd-soft); padding-top: 13px; }
body.workspace-v2 .ws-section > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 31px; color: var(--text-soft); font-size: 12px; font-weight: 600; cursor: pointer; list-style: none; }
body.workspace-v2 .ws-section > summary::-webkit-details-marker { display: none; }
body.workspace-v2 .ws-section > summary > svg { width: 15px; height: 15px; flex: none; margin-left: auto; transition: transform .15s; }
body.workspace-v2 .ws-section[open] > summary > svg { transform: rotate(180deg); }
body.workspace-v2 .ws-section > summary:has(> svg)::after { display: none; }
body.workspace-v2 .ws-section > summary::after { content: ""; flex: none; width: 6px; height: 6px; margin-right: 4px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
body.workspace-v2 .ws-section[open] > summary::after { transform: rotate(225deg) translate(-2px, -1px); }
body.workspace-v2 .ws-section > :not(summary) { margin-top: 12px; }
body.workspace-v2 .ws-section > .ws-section-content, body.workspace-v2 .ws-section > .ws-section-body { display: flex; flex-direction: column; gap: 13px; }
body.workspace-v2 .ws-section .edi-grp > .edi-sub { display: none; }
body.workspace-v2 #estudio-relleno-panel { padding: 18px 17px 22px; font-size: 12px; }
body.workspace-v2 #estudio-relleno-panel .zr-muestra { width: 100%; height: auto; border: 1px solid var(--bd-soft); border-radius: 8px; }
body.workspace-v2 #estudio-relleno-panel .zr-colores { gap: 12px; }
body.workspace-v2 #estudio-relleno-panel .zr-colores input[type="color"] { width: 100%; height: 37px; }
body.workspace-v2 #estudio-relleno-panel .zr-acciones { display: flex; flex-direction: column; gap: 7px; }
body.workspace-v2 #estudio-relleno-panel .zr-acciones button { width: 100%; min-height: 38px; }
body.workspace-v2 #estudio-relleno-panel .zr-nota { color: var(--text-mute); font-size: 11px; line-height: 1.55; }

/* Animation shares the same workspace and one contextual inspector. */
body.workspace-v2 #ws-anim-panels { display: flex; flex-direction: column; min-width: 0; min-height: 0; flex: 1; overflow: hidden; }
body.workspace-v2 #ws-animation-source { display: flex; flex: none; flex-direction: column; gap: 6px; padding: 0 16px 13px; font-size: 11px; color: var(--text-mute); }
body.workspace-v2 #ws-animation-source select { display: block; width: 100%; min-height: 35px; border: 1px solid var(--bd); border-radius: 6px; padding: 7px 9px; background: var(--w); color: var(--text); font: inherit; font-size: 12px; }
body.workspace-v2 select#ws-animation-source { width: calc(100% - 32px); min-height: 35px; margin: 0 16px 13px; padding: 7px 9px; border: 1px solid var(--bd); border-radius: 6px; background: var(--w); color: var(--text); font-size: 12px; }
body.workspace-v2 .ws-source-label { display: flex; flex-direction: column; flex: none; min-width: 0; gap: 6px; padding: 0 16px 14px; font-size: 10.5px; font-weight: 500; color: var(--text-mute); }
body.workspace-v2 .ws-source-label > select#ws-animation-source { width: 100%; min-height: 35px; margin: 0; padding: 7px 9px; display: block; font-size: 12px; }
body.workspace-v2 .ws-anim-tabs { display: flex; align-items: center; flex-wrap: wrap; flex: none; gap: 5px; padding: 0 16px 14px; border-bottom: 1px solid var(--bd-soft); }
body.workspace-v2 .ws-anim-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 31px; padding: 6px 9px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--text-mute); font: inherit; font-size: 11px; font-weight: 500; cursor: pointer; }
body.workspace-v2 .ws-anim-tabs button svg { width: 15px; height: 15px; flex: none; }
body.workspace-v2 .ws-anim-tabs button:hover { background: var(--ws-control-bg); color: var(--text); }
body.workspace-v2 .ws-anim-tabs button.is-active { border-color: var(--bd); background: var(--ws-active-bg); color: var(--text); font-weight: 600; }
body.workspace-v2 .ws-anim-pane { flex: 1; min-height: 0; min-width: 0; padding: 17px; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; font-size: 12px; }
body.workspace-v2 .ws-anim-pane .ef-card { margin: 0; border: 0; padding: 0; box-shadow: none; }
body.workspace-v2 .ws-anim-pane .ef-card > h2 { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 0 0 14px; margin: 0 0 15px; font-size: 13px; font-weight: 600; line-height: 1.4; border-bottom: 1px solid var(--bd-soft); }
body.workspace-v2 .ws-anim-pane .ef-card > h2 .sub { font-size: 11px; font-weight: 400; color: var(--text-mute); line-height: 1.6; }
body.workspace-v2 .ws-anim-pane[data-pane="export"] > .ef-card > h2 { display: none; }
body.workspace-v2 .ws-pane-note { margin: 0 0 17px; color: var(--text-mute); font-size: 11px; line-height: 1.6; }
body.workspace-v2 .ws-anim-pane .zb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; max-width: 100%; min-height: 35px; padding: 7px 10px; border-radius: 6px; font-size: 11px; line-height: 1.4; white-space: normal; }
body.workspace-v2 .ws-anim-pane .zb-btn svg { width: 16px; height: 16px; flex: none; }
body.workspace-v2 .ws-anim-pane .ef-in { padding: 0; }
body.workspace-v2 .ws-anim-pane .ef-lista { max-height: none; overflow: visible; padding: 0; gap: 7px; }
body.workspace-v2 .ws-anim-pane .ef-fx { border-color: var(--bd); border-radius: 7px; background: var(--w); }
body.workspace-v2 .ws-anim-pane .ef-fx.on { border-color: var(--ws-active-line); background: var(--ws-control-bg); }
body.workspace-v2 .ws-anim-pane .ef-fx-cab { padding: 11px 10px; gap: 7px; font-size: 12px; font-weight: 500; }
body.workspace-v2 .ws-anim-pane .ef-fx-ctl { padding: 2px 11px 12px; gap: 10px; }
body.workspace-v2 .ws-anim-pane .ef-fx-ctl label { display: flex; justify-content: space-between; gap: 6px; width: 100%; min-width: 0; flex-wrap: wrap; font-size: 11px; }
body.workspace-v2 .ws-anim-pane .ef-fx-ctl input[type="range"] { width: min(128px, 57%); flex: 1; }
body.workspace-v2 .ws-anim-pane .ef-fx-ctl output { min-width: 26px; text-align: right; font-size: 10px; }
body.workspace-v2 .ws-anim-pane .ef-fx-ctl input[type="text"] { width: 100%; }
body.workspace-v2 .ws-anim-pane .ef-fx select { max-width: 160px; min-height: 31px; font-size: 11px; }
body.workspace-v2 .ws-anim-pane .ef-grupo { font-size: 10px; letter-spacing: .5px; margin: 18px 0 8px; color: var(--text-mute); }
body.workspace-v2 .ws-anim-pane .ef-grupo:first-child { margin-top: 0; }
body.workspace-v2 .ws-anim-pane :is(.ef-ajustes, .ef-exp) { display: flex; flex-direction: column; align-items: stretch; gap: 15px; margin: 0; font-size: 12px; }
body.workspace-v2 .ws-anim-pane .ef-ajustes label { display: flex; justify-content: space-between; flex-wrap: wrap; min-width: 0; gap: 8px; font-size: 12px; font-weight: 500; }
body.workspace-v2 .ws-anim-pane .ef-ajustes + .ef-ajustes { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--bd-soft); }
body.workspace-v2 .ws-anim-pane .ef-ajustes input[type="range"] { flex: 1; width: 110px; }
body.workspace-v2 .ws-anim-pane .ef-ajustes output { font-size: 11px; color: var(--text); font-variant-numeric: tabular-nums; }
body.workspace-v2 .ws-anim-pane .ef-exp .campo > span { font-size: 10px; font-weight: 600; letter-spacing: .5px; }
body.workspace-v2 .ws-anim-pane .ef-exp select { width: 100%; }
body.workspace-v2 .ws-anim-pane .ef-exp .campo { gap: 7px; }
body.workspace-v2 .ws-anim-pane .ef-exp .campo > label { align-items: flex-start !important; font-size: 11px; font-weight: 400 !important; line-height: 1.5; }
body.workspace-v2 .ws-anim-pane .ef-exp .campo > label > input[type="checkbox"] { margin-top: 1px; }
body.workspace-v2 :is(.ws-anim-pane, .ws-inspector) .ef-fmt button { min-height: 34px; padding: 6px 9px; border-radius: 6px; font-size: 11px; line-height: 1.3; }
body.workspace-v2 :is(.ws-anim-pane, .ws-inspector) .ef-fmt button.on { background: var(--studio-primary); border-color: var(--studio-primary); color: var(--studio-primary-text); }
body.workspace-v2 .ws-anim-pane .ef-dest-cab { margin-bottom: 11px; font-size: 12px; line-height: 1.5; }
body.workspace-v2 .ws-anim-pane .ef-dest-cab small { display: block; margin-top: 4px; font-size: 10.5px; line-height: 1.5; }
body.workspace-v2 .ws-anim-pane .ef-dest button b { font-size: 10.5px; font-weight: 600; line-height: 1.4; }
body.workspace-v2 .ws-anim-pane .ef-dest button small { font-size: 9.5px; line-height: 1.4; }
body.workspace-v2 .ws-anim-pane .ef-acc { margin-top: 18px; gap: 9px; }
body.workspace-v2 .ws-anim-pane #ef-exportar { width: 100%; min-height: 38px; }
body.workspace-v2 .ws-anim-pane .ef-nota { font-size: 10.5px; line-height: 1.6; }
body.workspace-v2 .ws-anim-pane .ef-res { width: 100%; font-size: 11px; line-height: 1.5; }
body.workspace-v2 .ws-anim-pane .ef-salida { flex-direction: column; gap: 12px; }
body.workspace-v2 .ws-anim-pane .ef-salida-vista { width: 100%; }
body.workspace-v2 .ws-anim-pane .ef-salida-txt { min-width: 0; width: 100%; font-size: 11px; overflow-wrap: anywhere; }
body.workspace-v2 .ws-anim-pane .ef-enlaces { display: flex; flex-direction: column; align-items: stretch; gap: 11px; margin: 0; padding: 0; border: 0; background: transparent; font-size: 12px; }
body.workspace-v2 .ws-anim-pane .ef-enlaces span { flex: none; font-size: 11px; line-height: 1.6; }
body.workspace-v2 .ws-anim-pane .ef-efx { display: flex; flex-direction: column; align-items: stretch; gap: 12px; font-size: 11px; }
body.workspace-v2 .ws-anim-pane .ef-efx > img { width: 100%; height: 120px; object-fit: contain; }
body.workspace-v2 .ws-anim-pane .ef-efx label { display: flex; flex-direction: column; gap: 6px; font-size: 11px; }
body.workspace-v2 .ws-anim-pane .ef-efx label select { width: 100%; }
body.workspace-v2 .ws-anim-pane .ed-barra { align-items: stretch; gap: 10px; font-size: 11px; }
body.workspace-v2 .ws-anim-pane .ed-barra label { display: flex; flex-direction: column; align-items: stretch; gap: 6px; width: 100%; font-size: 11px; font-weight: 500; }
body.workspace-v2 .ws-anim-pane .ed-barra select { max-width: 100%; width: 100%; }
body.workspace-v2 .ws-anim-pane .ef-codigo { gap: 7px; margin-top: 15px; font-size: 11px; }
body.workspace-v2 .ws-anim-pane .ef-codigo code { padding: 6px 8px; max-width: 100%; overflow-wrap: anywhere; font-size: 11px; }
body.workspace-v2 .ws-anim-pane .ef-dest, body.workspace-v2 .ws-anim-pane .fi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
body.workspace-v2 .ws-anim-pane .ef-dest button, body.workspace-v2 .ws-anim-pane .fi-grid button { min-width: 0; border-radius: 7px; padding: 12px 7px; font-size: 11px; }
body.workspace-v2 .ws-anim-pane .ef-para { margin: 0 0 15px; padding: 10px; border: 1px solid var(--bd); border-radius: 7px; background: var(--ws-control-bg); font-size: 12px; font-weight: 600; }
body.workspace-v2 .ws-anim-pane .ef-para span { font-size: 11px; }
body.workspace-v2 .ws-anim-pane :is(.ef-capased, .ef-textos, .ef-capasfx) { margin: 0 0 15px; padding: 0; border: 0; border-radius: 0; background: transparent; }
body.workspace-v2 .ws-anim-pane :is(.ef-capased, .ef-textos, .ef-capasfx) > .cab { display: flex; flex-direction: column; gap: 5px; margin-bottom: 13px; font-size: 13px; }
body.workspace-v2 .ws-anim-pane :is(.ef-capased, .ef-textos, .ef-capasfx) > .cab span { font-size: 11px; line-height: 1.5; }
body.workspace-v2 .ws-anim-pane .ef-capased li { padding: 8px; border: 1px solid var(--bd); border-radius: 7px; font-size: 11px; }
body.workspace-v2 .ws-anim-pane .ef-capased .fila2 label { display: flex; flex-wrap: wrap; justify-content: space-between; width: 100%; font-size: 11px; }
body.workspace-v2 .ws-anim-pane .ef-capased .fila2 select { max-width: 144px; font-size: 11px; }
body.workspace-v2 .ws-anim-pane .ef-capased .fila1 .nm { font-size: 11px; }
body.workspace-v2 .ws-anim-pane .ef-tx-modelos { gap: 6px; }
body.workspace-v2 .ws-anim-pane .ef-tx-modelos button { border-radius: 6px; min-height: 32px; padding: 6px 9px; font-size: 11px; }
body.workspace-v2 .ws-anim-pane .ef-tx { padding: 10px; margin-top: 12px; border: 1px solid var(--bd); border-radius: 7px; background: var(--ws-control-bg); gap: 10px; font-size: 11px; }
body.workspace-v2 .ws-anim-pane .ef-tx.sel { border-color: var(--ws-active-line); box-shadow: none; }
body.workspace-v2 .ws-anim-pane .ef-tx .fila { gap: 9px; }
body.workspace-v2 .ws-anim-pane .ef-tx .fila label { max-width: 100%; min-width: 0; flex-wrap: wrap; gap: 6px; font-size: 11px; }
body.workspace-v2 .ws-anim-pane .ef-tx .tx-t { width: 100%; flex-basis: 155px; font-size: 13px; }
body.workspace-v2 .ws-anim-pane .ef-tx .tx-sec { padding-top: 11px; gap: 11px; }
body.workspace-v2 .ws-anim-pane .ef-tx .tx-tit { font-size: 9px; letter-spacing: .6px; }
body.workspace-v2 .ws-anim-pane .ef-capasfx li { padding: 8px 5px; border: 1px solid var(--bd-soft); border-radius: 6px; font-size: 11px; }
body.workspace-v2 .ws-anim-pane .ef-capasfx li button { min-height: 28px; min-width: 26px; }
body.workspace-v2 .ws-catalog { margin-top: 18px; padding-top: 13px; border-top: 1px solid var(--bd); }
body.workspace-v2 .ws-catalog > summary { display: flex; align-items: center; gap: 8px; padding: 4px 0 12px; font-size: 11.5px; color: var(--text-soft); cursor: pointer; list-style: none; }
body.workspace-v2 .ws-catalog > summary::-webkit-details-marker { display: none; }
body.workspace-v2 .ws-catalog > summary svg { flex: none; width: 15px; height: 15px; margin-left: auto; }
body.workspace-v2 .ws-catalog[open] > summary svg { transform: rotate(180deg); }
body.workspace-v2 .ws-catalog #ef-gal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
body.workspace-v2 .ws-catalog .ef-gcard { border-radius: 6px; min-width: 0; }
body.workspace-v2 .ws-catalog .ef-gcard .ef-stage { height: 110px; border-radius: 0; }
body.workspace-v2 .ws-catalog .ef-gcard .inf { padding: 8px; font-size: 10px; }
body.workspace-v2 .ws-catalog .ef-gcard h3 { gap: 4px; font-size: 11px; line-height: 1.3; }
body.workspace-v2 .ws-catalog .ef-gcard .inf label { font-size: 10px; gap: 4px; line-height: 1.3; }
body.workspace-v2 #ws-anim-stage { display: flex; flex: 1; min-width: 0; min-height: 0; width: 100%; height: 100%; }
body.workspace-v2 #ws-anim-stage #ef-vista-wrap { display: flex; align-items: center; justify-content: center; position: relative; width: 100%; height: 100%; min-height: 0; border: 0; border-radius: 0; }
body.workspace-v2 #ws-anim-stage #ef-vista { flex: none; max-width: 100%; max-height: 100%; }
body.workspace-v2 #ws-anim-stage .ef-vista-tam { border-radius: 5px; padding: 4px 7px; font-size: 10px; }

/* Home remains welcoming, with no invented identity or decorative logo. */
body.workspace-v2.workspace-home .studio-header { grid-template-columns: minmax(0, 1fr) auto; }
body.workspace-v2.workspace-home .studio-document { display: none; }
body.workspace-v2.workspace-home #studio-home { width: min(1150px, 100%); padding-top: clamp(48px, 8vh, 90px); padding-bottom: 50px; }
body.workspace-v2.workspace-home #studio-home h1 { max-width: 720px; font-size: clamp(38px, 5.3vw, 64px); font-weight: 650; line-height: 1.06; letter-spacing: -2.5px; }
body.workspace-v2.workspace-home .studio-starts { margin-top: 34px; gap: 18px; }
body.workspace-v2.workspace-home .studio-starts > button { min-height: 163px; padding: 24px; border-radius: 10px; }
body.workspace-v2.workspace-home .studio-starts > button > span:first-child { display: inline-flex; align-items: center; width: 27px; height: 27px; margin-bottom: 5px; }
body.workspace-v2.workspace-home .studio-starts > button svg { width: 27px; height: 27px; }
body.workspace-v2.workspace-home .studio-starts strong { font-size: 16px; font-weight: 600; letter-spacing: -.25px; }
body.workspace-v2.workspace-home .studio-feature-grid { gap: 19px; }
body.workspace-v2.workspace-home .studio-feature-grid svg { width: 21px; height: 21px; color: var(--text-soft); margin-bottom: 7px; }
body.workspace-v2.workspace-home .studio-home-foot { font-size: 11px; }

@media (max-width: 1200px) {
  body.workspace-v2 .studio-header { grid-template-columns: minmax(165px, 1fr) minmax(100px, .8fr) auto; gap: 12px; padding-inline: 16px; }
  body.workspace-v2 #ws-toolbar .edi-barra .txt { display: none; }
  body.workspace-v2 #ws-toolbar .edi-barra .txtc { display: none; }
  body.workspace-v2 .ws-help-hint { display: none; }
}
@media (max-width: 1000px) {
  body.workspace-v2 { --ws-rail-w: 68px; --ws-panel-w: 280px; }
  body.workspace-v2 .studio-header { grid-template-columns: minmax(140px, 1fr) minmax(90px, .75fr) auto; gap: 9px; padding-inline: 13px; }
  body.workspace-v2 #studio-inicio { font-size: 13px; }
  body.workspace-v2 .studio-header-actions .zb-btn { padding: 7px 9px; gap: 6px; font-size: 11px; }
  body.workspace-v2 .ws-rail { padding-inline: 6px; }
  body.workspace-v2 .ws-rail-button { min-height: 58px; font-size: 9.5px; }
  body.workspace-v2 .ws-rail-button.is-active::before { left: -7px; }
  body.workspace-v2 .ws-inspector .edi-sec { padding-inline: 15px; }
  body.workspace-v2 #estudio-relleno-panel { padding-inline: 15px; }
  body.workspace-v2 #ws-sidebar-head { padding-inline: 16px; }
  body.workspace-v2 .ws-subtools { padding-inline: 14px; }
  body.workspace-v2 .ws-subtools button { font-size: 10.5px; padding-inline: 7px; }
  body.workspace-v2 .ws-anim-pane { padding: 15px; }
}

/* Portrait: the contextual sheet sits below, never on top of the canvas. */
@media (max-width: 759px) and (min-height: 561px), (max-width: 759px) and (orientation: portrait) {
  body.workspace-v2 { --ws-header-h: 58px; --ws-bottom-h: calc(65px + env(safe-area-inset-bottom)); }
  body.workspace-v2 .studio-header { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding-inline: 12px; }
  body.workspace-v2 .studio-document { display: none; }
  body.workspace-v2 #studio-inicio { font-size: 12px; letter-spacing: -.3px; white-space: normal; line-height: 1.25; }
  body.workspace-v2 #studio-inicio svg { width: 20px; height: 20px; }
  body.workspace-v2 #workspace.ws-shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(130px, 1fr) min(42dvh, 355px) var(--ws-bottom-h); grid-template-areas: "center" "sidebar" "rail"; }
  body.workspace-v2 #workspace.ws-panel-collapsed { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) var(--ws-bottom-h); grid-template-areas: "center" "rail"; }
  body.workspace-v2 #workspace.ws-focus { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); grid-template-areas: "center"; }
  body.workspace-v2 .ws-rail { flex-direction: row; align-items: stretch; gap: 2px; padding: 4px 7px max(4px, env(safe-area-inset-bottom)); overflow-x: auto; overflow-y: hidden; border-right: 0; border-top: 1px solid var(--bd); background: var(--w); }
  body.workspace-v2 .ws-rail-button { flex: 0 0 54px; width: 54px; min-height: 54px; padding: 5px 3px; border-radius: 7px; font-size: 9px; gap: 4px; }
  body.workspace-v2 .ws-rail-button svg { width: 21px; height: 21px; }
  body.workspace-v2 .ws-rail-button.is-active { background: var(--ws-active-bg); border-color: transparent; box-shadow: none; }
  body.workspace-v2 .ws-rail-button.is-active::before { display: none; }
  body.workspace-v2 .ws-rail-bottom { flex: none; flex-direction: row; gap: 2px; margin: 0; padding: 0; }
  body.workspace-v2 .ws-rail-bottom .ws-rail-button { min-height: 54px; }
  body.workspace-v2 .ws-sidebar { border-right: 0; border-top: 1px solid var(--bd); }
  body.workspace-v2 #ws-sidebar-head { grid-template-columns: minmax(0, 1fr) 28px; gap: 0 8px; padding: 11px 16px 7px; }
  body.workspace-v2 #ws-panel-title { font-size: 14px; letter-spacing: -.2px; }
  body.workspace-v2 #ws-panel-subtitle { display: none; }
  body.workspace-v2 #ws-close-panel { grid-row: 1; width: 28px; height: 28px; padding: 5px; }
  body.workspace-v2 #ws-tool-search { margin: 0 15px 7px; }
  body.workspace-v2 #ws-tool-search input { height: 31px; min-height: 31px; padding-block: 5px; }
  body.workspace-v2 input#ws-tool-search { width: calc(100% - 30px); height: 31px; min-height: 31px; padding-block: 5px; }
  body.workspace-v2 #ws-tool-search > svg { top: 8px; }
  body.workspace-v2 .ws-search { margin: 0 15px 7px; }
  body.workspace-v2 .ws-search > svg { top: 8px; }
  body.workspace-v2 .ws-search #ws-tool-search { width: 100%; height: 31px; min-height: 31px; margin: 0; padding-block: 5px; }
  body.workspace-v2 .ws-subtools { display: flex; gap: 5px; padding: 0 15px 9px; overflow-x: auto; scrollbar-width: none; }
  body.workspace-v2 .ws-subtools button { flex: none; min-height: 31px; padding: 6px 8px; font-size: 10.5px; white-space: nowrap; }
  body.workspace-v2 .ws-subtools button svg { width: 15px; height: 15px; }
  body.workspace-v2 .ws-inspector .edi-sec { padding: 14px 16px 20px; gap: 13px; }
  body.workspace-v2 .ws-inspector .edi-rejilla { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  body.workspace-v2 .ws-inspector .edi-rejilla.peg { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  body.workspace-v2 .ws-inspector .edi-plant { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.workspace-v2 .ws-inspector .edi-filtros { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  body.workspace-v2 .ws-toolbar { min-height: 41px; gap: 4px; padding: 4px 8px; }
  body.workspace-v2 #ws-toolbar .edi-barra .zb-btn, body.workspace-v2 #ws-toolbar #ef-barra-v button { height: 31px; min-height: 31px; min-width: 30px; padding: 6px; }
  body.workspace-v2 :is(#ws-panel-toggle, #ws-focus) { width: 29px; height: 29px; padding: 6px; }
  body.workspace-v2 #ws-toolbar .edi-barra :is(.txt, .txtc), body.workspace-v2 #ws-toolbar #ef-barra-v .lg { display: none; }
  body.workspace-v2 .ws-footer { min-height: 31px; padding: 2px 10px; }
  body.workspace-v2 #ws-footer #edi-info { font-size: 9px; }
  body.workspace-v2 .ws-help-hint { display: none; }
  body.workspace-v2 #ws-footer #edi-zoom button { min-width: 26px; width: 26px; height: 25px; min-height: 25px; }
  body.workspace-v2 .edi-recorte { font-size: 10px; padding: 6px 10px; gap: 5px; }
  body.workspace-v2 .edi-recorte .zb-btn { min-height: 27px; padding: 4px 7px; font-size: 10px; }
  body.workspace-v2 #edi-vacio { padding: 17px; gap: 12px; }
  body.workspace-v2 #edi-vacio .ef-drop { padding: 24px 15px; font-size: 12px; }
  body.workspace-v2 #edi-vacio .ef-drop b { font-size: 18px; }
  body.workspace-v2 .ws-anim-tabs { flex-wrap: nowrap; gap: 5px; padding: 0 15px 9px; overflow-x: auto; scrollbar-width: none; }
  body.workspace-v2 #ws-animation-source { padding: 0 15px 8px; }
  body.workspace-v2 select#ws-animation-source { min-height: 31px; margin: 0 15px 8px; padding: 5px 8px; width: calc(100% - 30px); }
  body.workspace-v2 #ws-animation-source select { min-height: 31px; padding: 5px 8px; }
  body.workspace-v2 .ws-source-label { padding: 0 15px 9px; gap: 4px; font-size: 10px; }
  body.workspace-v2 .ws-source-label > select#ws-animation-source { width: 100%; min-height: 31px; margin: 0; padding: 5px 8px; }
  body.workspace-v2 .ws-anim-tabs button { flex: none; min-height: 30px; padding: 5px 8px; font-size: 10.5px; }
  body.workspace-v2 .ws-anim-pane { padding: 14px 16px 20px; }
  body.workspace-v2 .ws-catalog #ef-gal { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.workspace-v2.workspace-home #studio-home { padding: 44px 22px; }
  body.workspace-v2.workspace-home #studio-home h1 { font-size: clamp(36px, 7vw, 50px); letter-spacing: -1.8px; }
  body.workspace-v2.workspace-home .studio-starts { gap: 11px; }
  body.workspace-v2.workspace-home .studio-starts > button { min-height: 148px; padding: 18px; }
  body.workspace-v2.workspace-home .studio-starts strong { font-size: 14px; }
}
@media (max-width: 479px) {
  body.workspace-v2 .studio-header-actions { gap: 5px !important; }
  body.workspace-v2 .studio-header-actions .zb-btn { width: 34px; min-width: 34px; height: 34px; min-height: 34px; padding: 8px !important; }
  body.workspace-v2 .studio-header-actions .zb-btn :is(.txt, .ws-label, .studio-btn-label, .studio-button-label, .icon-label) { display: none; }
  body.workspace-v2 #studio-theme { min-width: 32px; width: 32px; }
  body.workspace-v2 #studio-inicio { font-size: 12px; }
  body.workspace-v2 .ws-rail { gap: 1px; padding-inline: 5px; }
  body.workspace-v2 .ws-rail-button { flex-basis: 51px; width: 51px; }
  body.workspace-v2 .ws-inspector .edi-rejilla { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.workspace-v2 .ws-inspector .edi-rejilla.peg { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  body.workspace-v2 .ws-inspector .edi-plant { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.workspace-v2 .ws-inspector .edi-filtros { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  body.workspace-v2 .ws-catalog #ef-gal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.workspace-v2.workspace-home .studio-starts { grid-template-columns: 1fr; }
  body.workspace-v2.workspace-home .studio-starts > button { min-height: 136px; padding: 19px; }
  body.workspace-v2.workspace-home .studio-starts > button > span:first-child { margin: 0; }
  body.workspace-v2.workspace-home .studio-feature-grid { gap: 13px; margin-top: 28px; }
}

/* Short landscape screens keep three columns, avoiding an oversized bottom sheet. */
@media (max-height: 560px) and (orientation: landscape) {
  body.workspace-v2 { --ws-header-h: 51px; --ws-rail-w: 56px; --ws-panel-w: 250px; }
  body.workspace-v2 .studio-header { grid-template-columns: minmax(120px, 1fr) minmax(80px, .7fr) auto; padding: 0 12px; gap: 8px; }
  body.workspace-v2 .studio-document { display: flex; }
  body.workspace-v2 #studio-inicio { font-size: 12px; }
  body.workspace-v2 .studio-document strong { font-size: 11px; }
  body.workspace-v2 .studio-document small { font-size: 9px; }
  body.workspace-v2 .studio-header-actions .zb-btn { height: 32px; min-height: 32px; font-size: 10px; padding: 7px 8px; }
  body.workspace-v2 #workspace.ws-shell { grid-template-columns: var(--ws-rail-w) var(--ws-panel-w) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); grid-template-areas: "rail sidebar center"; }
  body.workspace-v2 #workspace.ws-panel-collapsed { grid-template-columns: var(--ws-rail-w) minmax(0, 1fr); grid-template-areas: "rail center"; }
  body.workspace-v2 #workspace.ws-focus { grid-template-columns: minmax(0, 1fr); grid-template-areas: "center"; }
  body.workspace-v2 .ws-rail { flex-direction: column; align-items: stretch; gap: 2px; padding: 6px 4px; border-right: 1px solid var(--bd); border-top: 0; overflow-x: hidden; overflow-y: auto; }
  body.workspace-v2 .ws-rail-button { flex: none; min-height: 46px; width: 100%; padding: 5px 1px; font-size: 8px; gap: 3px; }
  body.workspace-v2 .ws-rail-button svg { width: 19px; height: 19px; }
  body.workspace-v2 .ws-rail-bottom { flex-direction: column; gap: 2px; margin-top: auto; padding-top: 7px; }
  body.workspace-v2 .ws-rail-bottom .ws-rail-button { min-height: 42px; }
  body.workspace-v2 .ws-rail-button.is-active::before { left: -5px; top: 12px; bottom: 12px; }
  body.workspace-v2 .ws-sidebar { border-right: 1px solid var(--bd); border-top: 0; }
  body.workspace-v2 #ws-sidebar-head { padding: 12px 12px 9px; }
  body.workspace-v2 #ws-panel-title { font-size: 14px; }
  body.workspace-v2 #ws-panel-subtitle { display: none; }
  body.workspace-v2 #ws-tool-search { margin: 0 12px 8px; }
  body.workspace-v2 #ws-tool-search input { height: 31px; }
  body.workspace-v2 input#ws-tool-search { width: calc(100% - 24px); min-height: 31px; height: 31px; padding-block: 5px; }
  body.workspace-v2 #ws-tool-search > svg { top: 8px; }
  body.workspace-v2 .ws-search { margin: 0 12px 8px; }
  body.workspace-v2 .ws-search > svg { top: 8px; }
  body.workspace-v2 .ws-search #ws-tool-search { width: 100%; height: 31px; min-height: 31px; margin: 0; padding-block: 5px; }
  body.workspace-v2 .ws-subtools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; padding: 0 11px 10px; overflow: visible; }
  body.workspace-v2 .ws-subtools button { font-size: 10px; min-height: 30px; padding: 5px; gap: 5px; }
  body.workspace-v2 .ws-subtools button svg { width: 15px; height: 15px; }
  body.workspace-v2 .ws-inspector .edi-sec { padding: 12px; gap: 12px; }
  body.workspace-v2 .ws-inspector .edi-rejilla { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  body.workspace-v2 .ws-inspector .edi-rejilla.peg { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  body.workspace-v2 .ws-inspector .edi-plant { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.workspace-v2 .ws-inspector .edi-filtros { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.workspace-v2 #estudio-relleno-panel { padding: 12px; }
  body.workspace-v2 .ws-toolbar { min-height: 39px; padding: 3px 7px; gap: 3px; }
  body.workspace-v2 #ws-toolbar .edi-barra .zb-btn, body.workspace-v2 #ws-toolbar #ef-barra-v button { min-height: 30px; height: 30px; min-width: 29px; padding: 6px; }
  body.workspace-v2 #ws-toolbar .edi-barra :is(.txt, .txtc), body.workspace-v2 #ws-toolbar #ef-barra-v .lg { display: none; }
  body.workspace-v2 .ws-footer { min-height: 29px; padding: 1px 9px; }
  body.workspace-v2 #ws-footer #edi-info { font-size: 9px; }
  body.workspace-v2 .ws-help-hint { display: none; }
  body.workspace-v2 .ws-anim-tabs { flex-wrap: nowrap; padding: 0 11px 9px; gap: 3px; overflow-x: auto; scrollbar-width: none; }
  body.workspace-v2 #ws-animation-source { padding: 0 11px 9px; }
  body.workspace-v2 select#ws-animation-source { width: calc(100% - 22px); min-height: 31px; margin: 0 11px 9px; padding: 5px 8px; }
  body.workspace-v2 .ws-anim-tabs button { flex: none; font-size: 10px; padding: 5px 7px; min-height: 29px; }
  body.workspace-v2 .ws-source-label { padding: 0 11px 9px; gap: 4px; font-size: 10px; }
  body.workspace-v2 .ws-source-label > select#ws-animation-source { width: 100%; min-height: 31px; margin: 0; padding: 5px 8px; }
  body.workspace-v2 .ws-empty-tool { margin: 13px 12px; padding: 13px; }
  body.workspace-v2 .ws-anim-pane { padding: 12px; }
  body.workspace-v2 #edi-vacio { padding: 15px; gap: 10px; }
  body.workspace-v2 #edi-vacio .ef-drop { padding: 21px 14px; font-size: 11px; }
  body.workspace-v2 #edi-vacio .ef-drop b { font-size: 17px; }
}
@media (pointer: coarse) {
  body.workspace-v2 .ws-inspector :is(input:not([type="range"]):not([type="checkbox"]):not([type="radio"]):not([type="color"]), textarea, select),
  body.workspace-v2 #ws-anim-panels :is(input:not([type="range"]):not([type="checkbox"]):not([type="radio"]):not([type="color"]), textarea, select) { font-size: 16px; }
  body.workspace-v2 .ws-inspector .edi-sl input[type="range"] { min-height: 28px; height: 28px; }
  body.workspace-v2 .ws-inspector .edi-sl { grid-template-rows: auto 28px; }
}
@media (prefers-reduced-motion: reduce) {
  body.workspace-v2 *, body.workspace-v2 *::before, body.workspace-v2 *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* ════════ iconos (antes iconos.css) ════════ */
/* Familia geométrica original. Hereda el color del control y admite ambos temas. */
.editor-icon {
  display: inline-block;
  flex: 0 0 auto;
  vertical-align: -0.2em;
  overflow: visible;
  pointer-events: none;
  shape-rendering: geometricPrecision;
}
.editor-icon-slot {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  line-height: 1;
}
.editor-icon-only > .editor-icon { margin: 0; }
.edi-p > h3 > .editor-icon,
.edi-recorte > .editor-icon,
#ef-para > label > .editor-icon,
.ef-dest .editor-icon-slot > .editor-icon,
.edi-acc button.has-editor-icon > .editor-icon,
.edi-tog button.has-editor-icon:not(.editor-icon-only) > .editor-icon {
  margin-inline-end: 0.4em;
}
.edi-rejilla .editor-icon-slot > .editor-icon,
.fi-grid .editor-icon-slot > .editor-icon { width: 23px; height: 23px; }
.gotero > .editor-icon { width: 16px; height: 16px; }
@media (forced-colors: active) {
  .editor-icon { color: inherit; forced-color-adjust: auto; }
}
