:root{--bg:#f6f7f9;--panel:#fff;--text:#111827;--muted:#6b7280;--line:#e5e7eb;--primary:#6d5dfc;--primary2:#5748e7;--dark:#111827;--green:#16a34a;--shadow:0 14px 40px rgba(15,23,42,.08)}
*{box-sizing:border-box}html,body{margin:0;height:100%;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--text);background:var(--bg)}button,input,textarea,select{font:inherit}.app-shell{min-height:100%}.topbar{height:68px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 18px 0 20px;position:sticky;top:0;z-index:80}.brand-wrap{display:flex;align-items:center;gap:12px}.brand-mark{width:38px;height:38px;border-radius:12px;background:linear-gradient(145deg,#7566ff,#5b45df);color:#fff;display:grid;place-items:center;font-weight:900;box-shadow:0 10px 24px rgba(109,93,252,.26)}.brand-wrap strong{display:block;font-size:.96rem}.brand-wrap span{display:block;font-size:.72rem;color:var(--muted);margin-top:1px}.top-actions{display:flex;align-items:center;gap:8px}.icon-btn,.ghost-btn,.primary-btn,.publish-btn,.mini-btn{border:0;cursor:pointer;transition:.18s ease}.icon-btn{width:36px;height:36px;border-radius:10px;background:#f3f4f6;font-size:1.1rem}.icon-btn:hover,.ghost-btn:hover{background:#eceef2}.ghost-btn{height:38px;border-radius:10px;padding:0 14px;background:#f3f4f6;color:#202532;font-weight:700}.ghost-btn.small{height:32px;font-size:.78rem;padding:0 10px}.primary-btn{height:40px;padding:0 17px;border-radius:11px;background:var(--primary);color:#fff;font-weight:800;box-shadow:0 8px 18px rgba(109,93,252,.18)}.primary-btn:hover{background:var(--primary2);transform:translateY(-1px)}.primary-btn.large{height:48px;padding:0 22px}.publish-btn{height:40px;padding:0 17px;border-radius:11px;background:#111827;color:#fff;font-weight:800}.publish-btn.published{background:#0f9f56}.device-switch{display:flex;background:#f3f4f6;border-radius:10px;padding:3px;margin:0 4px}.device-switch button{width:34px;height:32px;border:0;background:transparent;border-radius:8px;cursor:pointer;color:#69707f}.device-switch button.active{background:#fff;color:#111827;box-shadow:0 2px 8px rgba(15,23,42,.08)}
.dashboard{max-width:1280px;margin:0 auto;padding:62px 34px 80px}.dashboard-head{display:flex;align-items:flex-end;justify-content:space-between;gap:30px;margin-bottom:38px}.kicker{font-size:.72rem;font-weight:900;letter-spacing:.15em;color:var(--primary)}.dashboard h1{font-size:clamp(2rem,4vw,3.6rem);letter-spacing:-.045em;margin:8px 0 10px;line-height:1}.dashboard-head p{margin:0;color:var(--muted);font-size:1.05rem}.project-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.project-card{background:#fff;border:1px solid #e6e8ec;border-radius:18px;overflow:hidden;box-shadow:0 8px 24px rgba(15,23,42,.045);transition:.2s}.project-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}.project-thumb{height:190px;background:linear-gradient(145deg,#eceffd,#fafafa);position:relative;overflow:hidden;cursor:pointer}.project-thumb:before{content:'';position:absolute;width:78%;height:76%;left:11%;top:16%;border-radius:12px 12px 0 0;background:#fff;box-shadow:0 12px 32px rgba(15,23,42,.12)}.project-thumb:after{content:'';position:absolute;left:17%;right:17%;top:30%;height:10px;border-radius:20px;background:linear-gradient(90deg,var(--primary) 0 42%,#e6e7eb 42%)}.project-status{position:absolute;top:12px;right:12px;background:rgba(17,24,39,.88);color:#fff;font-size:.68rem;font-weight:800;padding:6px 9px;border-radius:999px;z-index:2}.project-status.live{background:#0f9f56}.project-body{padding:18px}.project-body h3{margin:0 0 6px;font-size:1.02rem}.project-meta{display:flex;justify-content:space-between;color:#8a91a0;font-size:.75rem}.project-actions{display:flex;gap:8px;padding:0 18px 18px}.project-actions button{flex:1}.empty-state{padding:80px 30px;text-align:center;background:#fff;border:1px dashed #d8dbe3;border-radius:20px}.empty-icon{width:60px;height:60px;border-radius:18px;background:#f0efff;color:var(--primary);display:grid;place-items:center;font-size:2rem;margin:0 auto 18px}.empty-state h2{margin:0 0 8px}.empty-state p{margin:0 0 20px;color:var(--muted)}
.editor{height:calc(100vh - 68px);display:grid;grid-template-columns:286px minmax(0,1fr) 310px;overflow:hidden}.left-panel,.right-panel{background:#fff;min-width:0;overflow:auto}.left-panel{border-right:1px solid var(--line)}.right-panel{border-left:1px solid var(--line)}.panel-tabs{display:grid;grid-template-columns:repeat(4,1fr);border-bottom:1px solid var(--line);position:sticky;top:0;background:#fff;z-index:3}.panel-tabs button{height:48px;border:0;background:#fff;font-size:.68rem;font-weight:800;color:#818898;cursor:pointer;border-bottom:2px solid transparent}.panel-tabs button.active{color:var(--primary);border-bottom-color:var(--primary)}.panel-view{display:none;padding:14px}.panel-view.active{display:block}.panel-search{margin-bottom:14px}.panel-search input{width:100%;height:38px;border:1px solid var(--line);border-radius:10px;padding:0 12px;background:#f9fafb}.block-category{margin-bottom:20px}.block-category h4{font-size:.7rem;text-transform:uppercase;letter-spacing:.12em;color:#9aa1ae;margin:0 0 8px}.block-library-list{display:grid;gap:8px}.block-card{display:flex;align-items:center;gap:11px;padding:11px;border:1px solid #e6e8ec;border-radius:12px;background:#fff;cursor:grab;transition:.16s;user-select:none}.block-card:hover{border-color:#c9c4ff;background:#faf9ff;transform:translateX(2px)}.block-card:active{cursor:grabbing}.block-icon{width:38px;height:34px;border-radius:9px;background:#f1f2f5;display:grid;place-items:center;color:#555c6d}.block-card strong{display:block;font-size:.82rem}.block-card small{display:block;color:#9097a5;font-size:.68rem;margin-top:1px}.panel-section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.mini-btn{height:29px;border-radius:8px;background:#f0efff;color:var(--primary);padding:0 10px;font-size:.73rem;font-weight:800}.pages-list{display:grid;gap:6px}.page-row{display:flex;align-items:center;gap:8px;padding:9px 10px;border-radius:10px;border:1px solid transparent;cursor:pointer}.page-row:hover{background:#f6f7f9}.page-row.active{background:#f0efff;border-color:#dedaff}.page-icon{width:28px;height:28px;border-radius:8px;background:#fff;border:1px solid #e4e6eb;display:grid;place-items:center;font-size:.75rem}.page-row .page-name{min-width:0;flex:1}.page-row .page-name strong{display:block;font-size:.8rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.page-row .page-name small{display:block;color:#9aa1ae;font-size:.65rem}.page-menu{border:0;background:transparent;cursor:pointer;color:#8a91a0}.upload-tile{display:grid;place-items:center;text-align:center;border:1px dashed #cfd3dc;border-radius:14px;padding:22px 12px;cursor:pointer;background:#fafbfc}.upload-tile:hover{border-color:var(--primary);background:#faf9ff}.upload-tile span{font-size:1.6rem;color:var(--primary)}.upload-tile strong{font-size:.82rem;margin-top:3px}.upload-tile small{font-size:.65rem;color:#9aa1ae;margin-top:2px}.media-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.media-item{aspect-ratio:1/1;border-radius:10px;overflow:hidden;border:1px solid #e5e7eb;cursor:pointer;background:#f2f3f5;position:relative}.media-item img{width:100%;height:100%;object-fit:cover}.media-item:hover:after{content:'Usar';position:absolute;inset:auto 6px 6px;background:rgba(17,24,39,.8);color:#fff;text-align:center;border-radius:7px;font-size:.68rem;padding:4px}.control-stack{display:grid;gap:14px}.control-group{display:grid;gap:6px}.control-group label{font-size:.7rem;font-weight:800;color:#596171}.control-group input[type=text],.control-group input[type=number],.control-group select,.control-group textarea{width:100%;border:1px solid #dfe2e8;border-radius:9px;padding:9px 10px;background:#fff}.control-group textarea{min-height:76px;resize:vertical}.color-row{display:grid;grid-template-columns:44px 1fr;gap:8px}.color-row input[type=color]{width:44px;height:38px;padding:3px;border:1px solid #dfe2e8;border-radius:9px;background:#fff}
.workspace{min-width:0;display:flex;flex-direction:column;background:#eceef2}.workspace-bar{height:48px;display:flex;align-items:center;justify-content:space-between;padding:0 12px;border-bottom:1px solid #dfe2e8;background:#f7f8fa}.crumb{display:flex;align-items:center;gap:8px;font-size:.78rem}.crumb-back{width:28px;height:28px;border:0;border-radius:8px;background:#fff;cursor:pointer}.crumb span{font-size:.65rem;color:#89909d;background:#fff;padding:3px 7px;border-radius:999px}.crumb span.dirty{color:#b45309;background:#fff7ed}.workspace-tools{display:flex;gap:6px}.canvas-stage{flex:1;overflow:auto;padding:28px 32px 70px;display:flex;justify-content:center;align-items:flex-start}.canvas-frame{background:#fff;min-height:calc(100vh - 150px);box-shadow:0 12px 40px rgba(15,23,42,.12);transition:width .22s ease;position:relative}.canvas-frame.desktop{width:min(100%,1440px)}.canvas-frame.tablet{width:768px}.canvas-frame.mobile{width:390px}.canvas-frame #canvasMount{min-height:650px}.canvas-empty{padding:130px 40px;text-align:center;color:#7b8290}.canvas-empty button{margin-top:16px}.inspector-head{height:58px;padding:0 13px 0 16px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;background:#fff;z-index:4}.inspector-head small{display:block;font-size:.6rem;letter-spacing:.12em;color:#a0a6b0}.inspector-head strong{display:block;font-size:.82rem;margin-top:2px}.inspector-empty{text-align:center;padding:70px 24px;color:#8c93a0}.inspector-empty div{font-size:2rem;margin-bottom:10px}.inspector-empty p{font-size:.78rem;line-height:1.6}.inspector{padding:14px}.inspector-section{border-bottom:1px solid #eceef2;padding-bottom:16px;margin-bottom:16px}.inspector-section:last-child{border:0}.inspector-section>h4{font-size:.7rem;text-transform:uppercase;letter-spacing:.1em;margin:0 0 11px;color:#8a91a0}.field{margin-bottom:10px}.field:last-child{margin-bottom:0}.field label{display:block;font-size:.69rem;font-weight:750;color:#555c6b;margin-bottom:5px}.field input[type=text],.field input[type=url],.field input[type=number],.field textarea,.field select{width:100%;border:1px solid #dfe2e8;border-radius:9px;padding:8px 9px;background:#fff;font-size:.78rem}.field textarea{min-height:68px;resize:vertical}.field input:focus,.field textarea:focus{outline:none;border-color:#aca5ff;box-shadow:0 0 0 3px rgba(109,93,252,.08)}.field-inline{display:grid;grid-template-columns:1fr 1fr;gap:8px}.repeater{display:grid;gap:8px}.repeater-item{border:1px solid #e5e7eb;border-radius:10px;padding:9px;background:#fafbfc}.repeater-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.repeater-top strong{font-size:.7rem}.repeater-remove{border:0;background:#fee2e2;color:#b91c1c;border-radius:7px;height:25px;cursor:pointer}.add-row-btn{width:100%;height:32px;border:1px dashed #cfd3dc;border-radius:9px;background:#fff;color:#626a78;font-size:.72rem;font-weight:700;cursor:pointer}.inspector-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.danger-btn{border:0;border-radius:9px;height:34px;background:#fee2e2;color:#b91c1c;font-weight:800;cursor:pointer}.soft-btn{border:0;border-radius:9px;height:34px;background:#f1f2f5;color:#303643;font-weight:800;cursor:pointer}
.modal[hidden],.toast[hidden]{display:none}.modal{position:fixed;inset:0;z-index:200;display:grid;place-items:center;padding:20px}.modal-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.48);backdrop-filter:blur(4px)}.modal-card{position:relative;width:min(640px,100%);max-height:min(760px,calc(100vh - 40px));overflow:auto;background:#fff;border-radius:20px;box-shadow:0 28px 90px rgba(15,23,42,.28);padding:24px}.modal-close{position:absolute;right:14px;top:14px;width:34px;height:34px;border:0;border-radius:10px;background:#f3f4f6;font-size:1.2rem;cursor:pointer}.modal h2{margin:0 0 7px;letter-spacing:-.03em}.modal p.lead{margin:0 0 20px;color:#747b88}.template-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.template-option{border:1px solid #e4e6eb;border-radius:14px;padding:14px;cursor:pointer}.template-option:hover,.template-option.selected{border-color:#a8a1ff;background:#faf9ff}.template-preview{height:92px;border-radius:10px;background:linear-gradient(145deg,#eef0fb,#fff);margin-bottom:10px;position:relative;overflow:hidden}.template-preview:after{content:'';position:absolute;left:12%;right:12%;top:22%;height:10px;border-radius:20px;background:linear-gradient(90deg,var(--primary) 0 46%,#e4e6eb 46%)}.template-option strong{font-size:.84rem}.template-option small{display:block;color:#8a91a0;margin-top:3px}.modal-form{display:grid;gap:12px}.modal-form label{font-size:.74rem;font-weight:800}.modal-form input,.modal-form textarea,.modal-form select{width:100%;border:1px solid #dfe2e8;border-radius:10px;padding:10px 11px}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}.toast{position:fixed;right:18px;bottom:18px;z-index:300;background:#111827;color:#fff;border-radius:12px;padding:11px 14px;box-shadow:var(--shadow);font-size:.78rem;font-weight:700;max-width:360px}.toast.error{background:#b91c1c}.toast.success{background:#0f9f56}
@media(max-width:1150px){.editor{grid-template-columns:250px minmax(0,1fr) 280px}.project-grid{grid-template-columns:1fr 1fr}}@media(max-width:900px){.right-panel{display:none}.editor{grid-template-columns:240px minmax(0,1fr)}.dashboard{padding-inline:20px}.project-grid{grid-template-columns:1fr 1fr}.workspace-tools{display:none}}@media(max-width:700px){.left-panel{display:none}.editor{grid-template-columns:1fr}.project-grid{grid-template-columns:1fr}.dashboard-head{align-items:flex-start;flex-direction:column}.top-actions .ghost-btn{display:none}.device-switch{display:none}.dashboard{padding-top:36px}.canvas-stage{padding:14px}.canvas-frame{width:390px;max-width:100%}.topbar{padding-inline:12px}.brand-wrap span{display:none}}

/* Layout and editor stability */
html{height:100%;overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable}
body{min-height:100%;height:auto;overflow-x:hidden}
body.editor-open{height:100vh;overflow:hidden}
body.modal-open{overflow:hidden}
.app-shell{min-height:100vh}
[hidden]{display:none!important}
button:disabled{cursor:not-allowed;opacity:.55;transform:none!important}

/* Every editor column must be allowed to shrink inside the fixed viewport.
   Without min-height:0, CSS grid/flex min-content sizing prevents overflow:auto
   from receiving an actual scrollable area in Chromium/Safari. */
.editor{height:calc(100dvh - 68px);min-height:0;max-height:calc(100dvh - 68px);overflow:hidden;overscroll-behavior:none}
.editor>*{min-height:0}
.left-panel,.right-panel{height:100%;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.workspace{height:100%;min-height:0;overflow:hidden}
.workspace-bar{flex:0 0 48px;min-width:0}
.canvas-stage{flex:1 1 auto;min-height:0;min-width:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable both-edges;-webkit-overflow-scrolling:touch}
.canvas-frame{flex:0 0 auto;max-width:none}
.canvas-frame.desktop{width:min(100%,1440px);min-width:min(100%,900px)}
.canvas-frame.tablet{width:768px;min-width:768px}
.canvas-frame.mobile{width:390px;min-width:390px}
.panel-view.active{min-height:min-content}

/* Visible, unobtrusive scrollbars so the user knows panels/canvas can scroll. */
.left-panel,.right-panel,.canvas-stage,.modal-card{scrollbar-width:thin;scrollbar-color:#c4c9d3 transparent}
.left-panel::-webkit-scrollbar,.right-panel::-webkit-scrollbar,.canvas-stage::-webkit-scrollbar,.modal-card::-webkit-scrollbar{width:10px;height:10px}
.left-panel::-webkit-scrollbar-thumb,.right-panel::-webkit-scrollbar-thumb,.canvas-stage::-webkit-scrollbar-thumb,.modal-card::-webkit-scrollbar-thumb{background:#c4c9d3;border:3px solid transparent;background-clip:padding-box;border-radius:999px}
.left-panel::-webkit-scrollbar-thumb:hover,.right-panel::-webkit-scrollbar-thumb:hover,.canvas-stage::-webkit-scrollbar-thumb:hover,.modal-card::-webkit-scrollbar-thumb:hover{background:#aeb4c0;border:3px solid transparent;background-clip:padding-box}

/* New project modal rebuilt without fragile fake previews/pseudo-layout. */
.modal{overflow:hidden}
.modal-card{width:min(720px,100%);max-height:calc(100dvh - 40px);padding:28px;overscroll-behavior:contain}
.create-project-head{padding-right:42px}
.modal-kicker{display:block;margin-bottom:8px;color:var(--primary);font-size:.68rem;font-weight:900;letter-spacing:.15em}
.create-project-form{gap:20px}
.form-field{display:grid;gap:7px;color:#505766;font-size:.75rem!important;font-weight:800}
.form-field>span{display:block}
.form-field input{height:44px;font-size:.9rem;background:#fff;outline:none;transition:border-color .15s,box-shadow .15s}
.form-field input:focus{border-color:#aaa3ff;box-shadow:0 0 0 3px rgba(109,93,252,.1)}
.template-fieldset{min-width:0;margin:0;padding:0;border:0}
.template-fieldset legend{display:block;width:100%;padding:0;margin:0 0 9px;color:#505766;font-size:.75rem;font-weight:800}
.template-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.template-option{position:relative;display:grid;grid-template-columns:42px minmax(0,1fr) 24px;align-items:center;gap:11px;min-width:0;min-height:76px;width:100%;padding:12px;border:1px solid #e2e5eb;border-radius:14px;background:#fff;color:var(--text);text-align:left;cursor:pointer;appearance:none;transition:border-color .16s,background .16s,box-shadow .16s,transform .16s}
.template-option:hover{border-color:#c8c3ff;background:#fbfaff;transform:translateY(-1px)}
.template-option.selected{border-color:#958cff;background:#f8f7ff;box-shadow:0 0 0 2px rgba(109,93,252,.08)}
.template-icon{width:42px;height:42px;border-radius:11px;background:#f1f2f6;display:grid;place-items:center;color:#616878;font-size:1.15rem;font-weight:900}
.template-option.selected .template-icon{background:#ebe9ff;color:var(--primary)}
.template-copy{display:block;min-width:0}
.template-copy strong{display:block;font-size:.84rem;line-height:1.2}
.template-copy small{display:block;margin-top:4px;color:#858c9a;font-size:.69rem;line-height:1.35;white-space:normal}
.template-check{width:21px;height:21px;border-radius:50%;display:grid;place-items:center;background:#fff;border:1px solid #d8dce4;color:transparent;font-size:.68rem;font-weight:900}
.template-option.selected .template-check{background:var(--primary);border-color:var(--primary);color:#fff}
.create-project-actions{position:sticky;bottom:-28px;margin:22px -28px -28px;padding:16px 28px 20px;background:linear-gradient(to bottom,rgba(255,255,255,.88),#fff 28%);border-top:1px solid #eef0f3;z-index:3}

/* Keep the dashboard normally scrollable, including short laptop screens. */
.dashboard{min-height:calc(100vh - 68px)}
.project-grid{align-items:start}

@media(max-width:900px){
  .editor{grid-template-columns:230px minmax(0,1fr) 270px}
  .right-panel{display:block}
  .workspace-tools{display:none}
  .canvas-stage{padding:20px 18px 60px}
}
@media(max-width:760px){
  .modal{padding:10px}
  .modal-card{max-height:calc(100dvh - 20px);padding:20px;border-radius:16px}
  .template-grid{grid-template-columns:1fr}
  .create-project-actions{bottom:-20px;margin:18px -20px -20px;padding:14px 20px 18px}
}
@media(max-width:700px){
  /* Builder remains usable on narrow screens: panels become horizontally accessible
     instead of silently disappearing. */
  .editor{grid-template-columns:220px minmax(360px,1fr);overflow:auto}
  .left-panel{display:block;position:sticky;left:0;z-index:9}
  .right-panel{display:none}
  .canvas-stage{justify-content:flex-start}
  .canvas-frame.desktop{min-width:900px}
  .canvas-frame.tablet{min-width:768px}
  .canvas-frame.mobile{min-width:390px}
}

/* Direct editing interactions */
.editor{--left-w:286px;--right-w:310px;grid-template-columns:var(--left-w) minmax(0,1fr) var(--right-w);transition:grid-template-columns .22s ease}
.editor.left-collapsed{--left-w:0px}.editor.right-collapsed{--right-w:0px}
.left-panel,.right-panel{transition:opacity .18s ease,visibility .18s ease}
.editor.left-collapsed .left-panel,.editor.right-collapsed .right-panel{opacity:0;visibility:hidden;pointer-events:none;border:0}
.workspace-bar{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:10px}
.workspace-left,.workspace-tools{display:flex;align-items:center;gap:7px;min-width:0}.workspace-tools{justify-content:flex-end}
.workspace-center{display:flex;justify-content:center;min-width:0}.canvas-hint{color:#8a91a0;font-size:.66rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.panel-toggle{width:32px;height:32px;border:1px solid #dfe2e8;border-radius:9px;background:#fff;color:#69707f;cursor:pointer;font-weight:850;display:grid;place-items:center;transition:.16s}
.panel-toggle:hover,.panel-toggle.active{color:var(--primary);border-color:#c7c2ff;background:#f8f7ff}
.panel-toggle:focus-visible{outline:3px solid rgba(109,93,252,.16);outline-offset:1px}
.left-panel,.right-panel{position:relative}
.inspector-head .icon-btn{background:#f6f7f9;color:#707786}.inspector-head .icon-btn:hover{background:#eceef2;color:#111827}
.canvas-stage{background:radial-gradient(circle at 50% 0,rgba(255,255,255,.75),transparent 36%),#eceef2}
.canvas-frame{border-radius:3px;overflow:visible}
.block-card{position:relative}.block-card:after{content:'+';position:absolute;right:10px;width:24px;height:24px;border-radius:8px;display:grid;place-items:center;background:#f3f2ff;color:var(--primary);font-weight:900;opacity:0;transform:translateX(4px);transition:.14s}.block-card:hover:after{opacity:1;transform:none}.block-card>div:nth-child(2){padding-right:24px}
.crumb-back,.panel-toggle,.icon-btn,.ghost-btn,.primary-btn,.publish-btn,.mini-btn{outline:none}.crumb-back:focus-visible,.icon-btn:focus-visible,.ghost-btn:focus-visible,.primary-btn:focus-visible,.publish-btn:focus-visible,.mini-btn:focus-visible{box-shadow:0 0 0 3px rgba(109,93,252,.15)}
@media(max-width:1150px){.editor{--left-w:250px;--right-w:280px}}
@media(max-width:900px){.editor{--left-w:230px;--right-w:270px}.workspace-center{display:none}}
@media(max-width:700px){.editor{--left-w:220px;--right-w:0px;grid-template-columns:var(--left-w) minmax(360px,1fr) var(--right-w)}.editor.left-collapsed{--left-w:0px}.workspace-tools .ghost-btn{display:none}.panel-toggle{display:grid}}

/* Internal links and free positioning */
.free-mode-btn{height:36px;border:1px solid #dfe2e8;border-radius:10px;padding:0 12px;background:#fff;color:#3f4653;font-weight:800;font-size:.76rem;cursor:pointer;display:inline-flex;align-items:center;gap:7px;transition:.16s}
.free-mode-btn:hover{border-color:#c8c3ff;background:#faf9ff;color:var(--primary)}
.free-mode-btn.active{border-color:#f0b65a;background:#fff7e7;color:#9a5c00;box-shadow:0 0 0 2px rgba(245,158,11,.08)}
.free-mode-notice{flex:0 0 auto;min-height:42px;padding:8px 12px;border-bottom:1px solid #f3cf8b;background:#fff8e8;color:#80520b;display:flex;align-items:center;gap:9px;font-size:.72rem;font-weight:700;line-height:1.35}
.free-mode-notice[hidden]{display:none!important}.free-notice-icon{font-size:.9rem}.free-mode-notice>span:nth-child(2){min-width:0;flex:1}
.free-mode-notice button{border:1px solid #e6bd70;border-radius:8px;background:#fff;color:#845510;height:28px;padding:0 10px;font-size:.68rem;font-weight:800;cursor:pointer;white-space:nowrap}.free-mode-notice button:hover,.free-mode-notice button.reviewed{background:#fff0c9}
.field-help{margin-top:5px;color:#8a91a0;font-size:.63rem;line-height:1.45}.identity-section{padding:12px;border:1px solid #e8e7ff;border-radius:12px;background:#fbfaff}.section-link-copy{width:100%;height:32px;border:1px solid #dedaff;border-radius:9px;background:#fff;color:#5b4ce6;font-size:.69rem;font-weight:800;cursor:pointer}.section-link-copy:hover{background:#f4f2ff}
.link-picker-field{width:100%;min-height:48px;border:1px solid #dfe2e8;border-radius:10px;background:#fff;padding:8px 9px;display:grid;grid-template-columns:25px minmax(0,1fr);grid-template-rows:auto auto;column-gap:7px;text-align:left;cursor:pointer}.link-picker-field>span{grid-row:1/3;align-self:center}.link-picker-field strong{font-size:.7rem;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.link-picker-field small{color:#8a91a0;font-size:.61rem;margin-top:2px}.link-picker-field:hover{border-color:#bdb7ff;background:#faf9ff}
.page-group{border-bottom:1px solid #eef0f3}.page-group.active{background:#fbfbff}

/* Link manager */
.link-manager-head{padding-right:38px}.link-manager{margin-top:18px}.link-manager-tabs{display:flex;gap:5px;padding:4px;background:#f2f3f6;border-radius:11px;overflow-x:auto}.link-manager-tabs button{height:32px;border:0;border-radius:8px;background:transparent;color:#626978;padding:0 11px;font-size:.7rem;font-weight:800;cursor:pointer;white-space:nowrap}.link-manager-tabs button.active{background:#fff;color:#222735;box-shadow:0 2px 8px rgba(15,23,42,.08)}.link-current{margin:10px 2px 12px;color:#858c99;font-size:.67rem}.link-current strong{color:#4c5360}.lm-pane{display:none}.lm-pane.active{display:block}.lm-filter-row{display:grid;grid-template-columns:180px minmax(0,1fr);gap:8px;margin-bottom:9px}.lm-filter-row select,.lm-filter-row input{height:38px;border:1px solid #dfe2e8;border-radius:9px;background:#fff;padding:0 10px;font-size:.74rem}.link-target-list{display:grid;gap:5px;max-height:330px;overflow:auto;padding-right:3px}.link-target-list>button{width:100%;min-height:48px;border:1px solid #e5e7eb;border-radius:10px;background:#fff;padding:7px 10px;display:grid;grid-template-columns:30px minmax(0,1fr);gap:8px;align-items:center;text-align:left;cursor:pointer}.link-target-list>button:hover{border-color:#c5bfff;background:#faf9ff}.target-icon{width:27px;height:27px;border-radius:8px;background:#f0efff;color:#6253e9;display:grid;place-items:center;font-weight:900}.link-target-list strong{display:block;font-size:.73rem}.link-target-list small{display:block;color:#8b929e;font-size:.62rem;margin-top:2px}.link-empty{padding:28px;text-align:center;color:#8b929e;font-size:.72rem}.lm-pane .form-field{margin:8px 0 12px}.lm-apply{width:100%}.link-manager-actions{border-top:1px solid #eef0f3;padding-top:15px}.publish-free-warning{margin:12px 0;padding:11px 12px;border:1px solid #f0c879;border-radius:10px;background:#fff8e7;color:#80520b;font-size:.72rem;line-height:1.5}

/* Right-click contextual link menu */
.wb-context-menu{position:fixed;z-index:1000;width:220px;padding:5px;background:#fff;border:1px solid #dfe2e8;border-radius:11px;box-shadow:0 16px 45px rgba(15,23,42,.18);font-family:Inter,ui-sans-serif,system-ui,sans-serif;color:#252a35}.ctx-caption{padding:6px 8px 5px;color:#9aa0aa;font-size:.58rem;font-weight:900;letter-spacing:.09em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ctx-row{width:100%;min-height:36px;border:0;border-radius:7px;background:transparent;padding:6px 8px;display:grid;grid-template-columns:22px minmax(0,1fr) 14px;align-items:center;gap:4px;text-align:left;cursor:pointer;color:#343a47}.ctx-row:hover{background:#f3f2ff;color:#584ae1}.ctx-row>span{font-size:.8rem;text-align:center}.ctx-row strong{font-size:.7rem}.ctx-row em{font-style:normal;color:#9ca2ad;text-align:right}.ctx-item-wrap{position:relative}.ctx-sub{display:none;position:absolute;left:100%;top:-5px;width:205px;padding:5px;background:#fff;border:1px solid #dfe2e8;border-radius:11px;box-shadow:0 14px 40px rgba(15,23,42,.16)}.ctx-item-wrap:hover>.ctx-sub,.ctx-item-wrap:focus-within>.ctx-sub{display:block}.wb-context-menu.flip .ctx-sub{left:auto;right:100%}.ctx-browser{width:315px}.ctx-page-browser{width:245px;max-height:350px;overflow:auto}.ctx-browser-head{display:grid;gap:5px;padding:2px 2px 7px}.ctx-browser-head select,.ctx-browser-head input{height:33px;border:1px solid #dfe2e8;border-radius:8px;background:#fff;padding:0 8px;font-size:.68rem}.ctx-targets{display:grid;gap:3px;max-height:300px;overflow:auto}.ctx-targets>button{width:100%;min-height:38px;border:0;border-radius:7px;background:transparent;padding:5px 7px;display:grid;grid-template-columns:24px minmax(0,1fr);align-items:center;gap:5px;text-align:left;cursor:pointer}.ctx-targets>button:hover{background:#f3f2ff}.ctx-targets>button>span:first-child{width:22px;height:22px;border-radius:6px;background:#f0efff;color:#6253e9;display:grid;place-items:center;font-size:.65rem;font-weight:900}.ctx-targets strong{display:block;font-size:.68rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ctx-targets small{display:block;color:#9197a2;font-size:.58rem;margin-top:1px}.ctx-tip{margin:4px 4px 1px;padding:7px 8px;border-radius:7px;background:#fff7e8;color:#8b5a09;font-size:.61rem;line-height:1.4}.ctx-empty{padding:18px;text-align:center;color:#9aa0aa;font-size:.66rem}

/* Free mode modal + inspector */
.free-warning-modal{display:grid;grid-template-columns:52px minmax(0,1fr);gap:14px}.free-warning-icon{width:48px;height:48px;border-radius:14px;background:#fff2cf;color:#a66400;display:grid;place-items:center;font-size:1.25rem}.free-warning-modal h2{margin-top:2px}.free-warning-box{margin-top:15px;padding:12px;border:1px solid #f0cf8d;border-radius:10px;background:#fff9ea;color:#79500f}.free-warning-box strong{font-size:.72rem}.free-warning-box p{margin:4px 0 0;font-size:.69rem;line-height:1.55}.free-element-inspector{border:1px solid #f0d29a;border-radius:12px;padding:11px;background:#fffbf2}.free-element-title{display:flex;align-items:center;gap:8px;margin-bottom:11px}.free-element-title>span{width:30px;height:30px;border-radius:8px;background:#fff0ca;color:#9d6408;display:grid;place-items:center}.free-element-title strong{display:block;font-size:.72rem}.free-element-title small{display:block;color:#8b806d;font-size:.59rem;margin-top:2px}.free-lock-row{display:flex;align-items:center;gap:7px;color:#626a77;font-size:.66rem;font-weight:700;margin:2px 0 10px}.free-inspector-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px}.free-inspector-actions .soft-btn{font-size:.64rem}

@media(max-width:1100px){.free-mode-btn span{display:none}.free-mode-btn{width:36px;padding:0;justify-content:center}.free-mode-notice{font-size:.67rem}.lm-filter-row{grid-template-columns:150px minmax(0,1fr)}}
@media(max-width:760px){.free-mode-notice{align-items:flex-start;flex-wrap:wrap}.free-mode-notice button{margin-left:24px}.link-manager-tabs{margin-inline:-4px}.lm-filter-row{grid-template-columns:1fr}.wb-context-menu{max-width:calc(100vw - 16px)}.ctx-sub{position:fixed;left:8px!important;right:8px!important;top:auto;width:auto;max-width:none}.ctx-browser,.ctx-page-browser{width:auto}}

/* Contextual element inspector */
.inspector{padding:12px 13px 28px}.inspector-section{padding:0 0 18px;margin:0 0 18px}.inspector-section>h4{display:flex;align-items:center;gap:7px;font-size:.66rem;letter-spacing:.115em;color:#7b8290;margin-bottom:12px}.element-context{padding:12px;border:1px solid #e5e7eb;border-radius:13px;background:linear-gradient(180deg,#fff,#fafbfc)}.element-context-head{display:flex;align-items:center;gap:10px;margin-bottom:13px}.element-context-head>div{min-width:0}.element-context-head strong{display:block;font-size:.8rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.element-context-head small{display:block;margin-top:2px;color:#9298a4;font-size:.61rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.element-type-icon{width:34px;height:34px;border-radius:10px;background:#efedff;color:#6555e9;display:grid;place-items:center;font-size:.8rem;font-weight:900;flex:0 0 auto}.responsive-edit-badge{display:flex;align-items:center;gap:9px;margin:-2px 0 12px;padding:9px 10px;border:1px solid #e5e2ff;border-radius:10px;background:#faf9ff;color:#4d43bc}.responsive-edit-badge>span{width:25px;height:25px;border-radius:7px;background:#ece9ff;display:grid;place-items:center;font-size:.68rem}.responsive-edit-badge strong{display:block;font-size:.67rem}.responsive-edit-badge small{display:block;color:#7a73b7;font-size:.56rem;margin-top:1px}.font-field-row{display:grid;grid-template-columns:minmax(0,1fr) 36px;gap:6px}.font-field-row input{min-width:0}.font-upload-btn{width:36px;height:34px;border:1px solid #dfe2e8;border-radius:9px;background:#fff;color:#5f52df;font-size:1rem;font-weight:800;cursor:pointer}.font-upload-btn:hover{background:#f6f4ff;border-color:#bcb5ff}.field-help{font-size:.58rem;line-height:1.5;color:#969ca7;margin-top:5px}.field-grid-4{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.field-grid-4 .field{margin:0}.corner-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:8px}.corner-grid .field{margin:0}.switch-row{display:flex;align-items:center;gap:8px;min-height:34px;margin:0 0 10px;color:#555c6b;font-size:.68rem;font-weight:750}.switch-row input{accent-color:#6d5dfc}.effect-box{margin-top:10px;padding:10px;border:1px solid #e8eaf0;border-radius:10px;background:#fafbfc}.effect-box>strong{display:block;font-size:.65rem;margin-bottom:8px}.range-field{margin-bottom:12px}.range-field label{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:.67rem;font-weight:750;color:#555c6b;margin-bottom:5px}.range-field output{font-size:.59rem;color:#8b929e;font-variant-numeric:tabular-nums}.range-field input[type=range]{width:100%;accent-color:#6d5dfc}.image-inspector-preview{height:132px;border-radius:10px;overflow:hidden;background:#f0f1f4;margin-bottom:9px;border:1px solid #e5e7eb}.image-inspector-preview img{width:100%;height:100%;object-fit:cover}.full-width{width:100%!important}.danger-outline-btn{height:34px;border:1px solid #fecaca;border-radius:9px;background:#fff;color:#b91c1c;font-size:.68rem;font-weight:800;cursor:pointer}.danger-outline-btn:hover{background:#fff5f5}.right-panel .field input[type=range]{padding:0}.right-panel textarea[data-element-content]{min-height:80px}.right-panel .color-row{display:grid;grid-template-columns:38px minmax(0,1fr);gap:6px}.right-panel .color-row input[type=color]{width:38px;height:34px;padding:3px;border:1px solid #dfe2e8;border-radius:9px;background:#fff}.right-panel .soft-btn.full-width{height:32px;font-size:.66rem}.right-panel .link-picker-field{margin-top:2px}.wb-element-selected{outline:2px solid #6d5dfc!important;outline-offset:3px!important}.wb-element-selected[contenteditable=true]:focus{outline:none!important}.inspector-empty{padding:58px 22px}.inspector-empty div{width:44px;height:44px;margin:0 auto 12px;border-radius:12px;background:#f3f1ff;color:#6757e7;display:grid;place-items:center;font-size:1.1rem}.inspector-empty p{max-width:210px;margin:auto}
@media(max-width:1180px){.field-grid-4{grid-template-columns:1fr 1fr}.right-panel .field-inline{grid-template-columns:1fr}}

/* Elements and design presets */
.editor{--left-w:304px;--right-w:340px}
.left-panel,.right-panel{scrollbar-gutter:stable;overscroll-behavior:contain}
.panel-tabs{grid-template-columns:repeat(5,1fr)}
.panel-tabs button{font-size:.61rem;padding:0 2px;letter-spacing:-.01em}
.panel-view{padding:14px 13px 24px}
.element-library-title{align-items:flex-start;margin-bottom:11px}.element-library-title>div{display:grid;gap:2px}.element-library-title small{font-size:.62rem;color:#969daa;font-weight:500}
.element-library{display:grid;grid-template-columns:1fr 1fr;gap:8px}.element-card{min-width:0;min-height:91px;border:1px solid #e5e7eb;border-radius:13px;background:#fff;padding:11px 9px;display:grid;grid-template-columns:32px minmax(0,1fr);grid-template-rows:auto auto;column-gap:8px;align-items:start;text-align:left;cursor:pointer;position:relative;transition:.16s}.element-card:hover{border-color:#c7c1ff;background:#faf9ff;box-shadow:0 8px 18px rgba(55,48,133,.07);transform:translateY(-1px)}.element-card-icon{grid-row:1/3;width:32px;height:32px;border-radius:9px;background:#f1efff;color:#6253e9;display:grid;place-items:center;font-size:.82rem;font-weight:900}.element-card>span:nth-child(2){min-width:0}.element-card strong{display:block;font-size:.7rem;line-height:1.2}.element-card small{display:block;font-size:.58rem;line-height:1.35;color:#9198a5;margin-top:4px}.element-card em{position:absolute;right:7px;bottom:7px;width:20px;height:20px;border-radius:6px;background:#f3f2ff;color:#6253e9;display:grid;place-items:center;font-style:normal;font-weight:900;font-size:.7rem;opacity:.45}.element-card:hover em{opacity:1}.element-library-note{margin-top:12px;padding:10px 11px;border:1px solid #eadba9;border-radius:11px;background:#fffaf0;color:#7d6429;font-size:.61rem;line-height:1.45}
.theme-panel-intro{display:grid;gap:3px;margin-bottom:10px}.theme-panel-intro strong{font-size:.78rem}.theme-panel-intro small{font-size:.62rem;color:#9299a5;line-height:1.45}.theme-preset-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.theme-preset-card{min-height:84px;border:1px solid #e4e6eb;border-radius:13px;background:#fff;padding:9px;display:grid;grid-template-columns:1fr 20px;grid-template-rows:26px auto;gap:6px;text-align:left;cursor:pointer;position:relative;transition:.16s}.theme-preset-card:hover{border-color:#c8c2ff;transform:translateY(-1px);box-shadow:0 8px 18px rgba(15,23,42,.06)}.theme-preset-card.active{border-color:#7566ef;box-shadow:0 0 0 2px rgba(109,93,252,.11)}.theme-preset-swatches{display:grid;grid-template-columns:repeat(4,1fr);height:24px;border-radius:7px;overflow:hidden;border:1px solid rgba(15,23,42,.06)}.theme-preset-swatches i{display:block}.theme-preset-copy{grid-column:1/3;min-width:0}.theme-preset-copy strong{display:block;font-size:.68rem}.theme-preset-copy small{display:block;color:#9299a5;font-size:.56rem;margin-top:2px}.theme-preset-card>em{position:absolute;top:8px;right:8px;width:19px;height:19px;border-radius:999px;background:#6d5dfc;color:#fff;display:none;place-items:center;font-style:normal;font-size:.58rem}.theme-preset-card.active>em{display:grid}.theme-custom-card{grid-template-rows:28px auto}.theme-custom-icon{width:28px;height:28px;border-radius:8px;background:linear-gradient(135deg,#6d5dfc,#ec4899,#f59e0b);display:grid;place-items:center;color:#fff}.theme-custom-divider{display:flex;align-items:center;gap:8px;margin:20px 0 13px;color:#8d94a0;font-size:.59rem;font-weight:850;letter-spacing:.09em;text-transform:uppercase}.theme-custom-divider:before,.theme-custom-divider:after{content:'';height:1px;flex:1;background:#eceef2}.theme-custom-controls{display:grid;gap:12px}.theme-custom-controls .control-group label{display:flex;align-items:center;justify-content:space-between}.theme-custom-controls output{color:#8b929e;font-size:.6rem;font-weight:600}.theme-custom-controls input[type=range]{width:100%;accent-color:#6d5dfc}.theme-custom-controls input[list]{width:100%;height:38px;border:1px solid #dfe2e8;border-radius:9px;padding:0 10px;background:#fff}
.type-quick-card{display:grid;gap:10px}.type-quick-card>label{font-size:.62rem;font-weight:850;color:#777f8c;text-transform:uppercase;letter-spacing:.08em}.type-size-row{display:grid;grid-template-columns:1fr 1fr;gap:7px}.type-size-row .field{margin:0}.type-size-row .field label{font-size:.61rem}.font-field-row-pro{grid-template-columns:minmax(0,1fr) 36px 36px}.font-browser-btn{width:36px;height:34px;border:1px solid #dfe2e8;border-radius:9px;background:#fff;color:#312e81;font-size:.7rem;font-weight:900;cursor:pointer}.font-browser-btn:hover{background:#f6f4ff;border-color:#bcb5ff}.font-browser-head{display:grid;gap:6px}.font-browser-search{width:100%;height:42px;border:1px solid #dfe2e8;border-radius:11px;padding:0 13px;margin:6px 0 12px}.font-browser-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;max-height:460px;overflow:auto;padding:2px 3px 6px}.font-choice{min-height:68px;border:1px solid #e5e7eb;border-radius:11px;background:#fff;padding:8px;display:grid;grid-template-columns:40px minmax(0,1fr);gap:8px;align-items:center;text-align:left;cursor:pointer}.font-choice:hover{border-color:#c8c2ff;background:#faf9ff}.font-choice span{font-size:1.35rem;color:#383f4e}.font-choice strong{font-size:.67rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.loose-position-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.loose-position-grid .field{margin:0}.loose-helper{padding:10px;border-radius:9px;background:#f7f8fa;border:1px solid #eaecf0}.right-panel .field>label,.inspector .field>label{display:block;margin-bottom:5px;color:#555d6b;font-size:.64rem;font-weight:780}.right-panel .field input[type=text],.right-panel .field input[type=number],.right-panel .field input[type=url],.right-panel .field select,.right-panel .field textarea{width:100%;border:1px solid #dde1e7;border-radius:9px;background:#fff;padding:8px 9px;font-size:.7rem;outline:none}.right-panel .field input:focus,.right-panel .field select:focus,.right-panel .field textarea:focus{border-color:#9288f5;box-shadow:0 0 0 3px rgba(109,93,252,.09)}
@media(max-width:1180px){.editor{--left-w:270px;--right-w:310px}.element-library,.theme-preset-grid{grid-template-columns:1fr}.font-browser-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.font-browser-grid{grid-template-columns:1fr}.panel-tabs button{font-size:.58rem}}
/* loose selection helper lives inside the canvas shadow; kept here for host inspector consistency */
/* Element library groups */
.element-library{display:block}
.element-group{margin-bottom:16px}.element-group>h4{margin:0 0 7px;color:#8b92a0;font-size:.58rem;font-weight:900;letter-spacing:.1em;text-transform:uppercase}.element-group-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
@media(max-width:1180px){.element-group-grid{grid-template-columns:1fr}}

/* Drag and drop */
.element-card[draggable=true]{cursor:grab;user-select:none}.element-card[draggable=true]:active{cursor:grabbing}.element-card.dragging{opacity:.48;transform:scale(.98);box-shadow:none}.element-library-note{line-height:1.5}

/* Universal elements, visual font selector and stable loading */
.font-real-select-wrap{display:grid;grid-template-columns:minmax(0,1fr) 38px;gap:7px}.font-real-select{min-width:0;height:58px;border:1px solid #dfe2e8;border-radius:11px;background:#fff;padding:7px 9px;display:grid;grid-template-columns:42px minmax(0,1fr) 16px;gap:8px;align-items:center;text-align:left;cursor:pointer;transition:.15s}.font-real-select:hover{border-color:#aaa2fb;box-shadow:0 0 0 3px rgba(109,93,252,.08)}.font-real-sample{width:42px;height:42px;border-radius:9px;background:#f5f3ff;color:#5548d8;display:grid;place-items:center;font-size:19px}.font-real-copy{min-width:0;display:grid;gap:2px}.font-real-copy strong{font-size:.78rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.font-real-copy small{font:500 .56rem/1.25 Inter,system-ui,sans-serif;color:#9198a5}.font-real-chevron{color:#8b92a0}.font-real-select-wrap .font-upload-btn{width:38px;height:58px}.font-choice{grid-template-columns:52px minmax(0,1fr);min-height:82px}.font-choice-preview{width:52px;height:52px;border-radius:10px;background:#f7f7fa;display:grid;place-items:center;font-size:25px!important}.font-choice-copy{min-width:0;display:grid;gap:4px}.font-choice-copy strong{font-size:.72rem}.font-choice-copy small{font-size:.72rem;color:#676e7c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.font-browser-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.element-card.dragging{outline:2px solid #6d5dfc;outline-offset:2px}.workspace.is-dropping-element .canvas-stage{background:#e9e7ff}.editor button:focus-visible,.editor input:focus-visible,.editor select:focus-visible,.editor textarea:focus-visible{outline:2px solid #6d5dfc;outline-offset:2px}.panel-view{overscroll-behavior:contain}.canvas-stage{overscroll-behavior:contain}
.font-browser-search-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center}.font-browser-search-row .font-browser-search{margin:6px 0 12px}.font-browser-status{font-size:.62rem;color:#737b89;white-space:nowrap;padding:0 4px 6px}.font-choice:focus-visible{outline:2px solid #6d5dfc;outline-offset:2px}@media(max-width:720px){.font-browser-search-row{grid-template-columns:1fr}.font-browser-status{margin-top:-8px}.font-browser-grid{grid-template-columns:1fr}}

/* Interface clarity */
.inspector-head small{letter-spacing:.12em;color:#8a91a0}.inspector-head strong{font-size:.82rem}
.inspector-section{border-bottom:1px solid #eef0f3}.inspector-section:last-child{border-bottom:0}
.inspector-section>h4{letter-spacing:.08em;color:#6f7785}
.border-control-card{padding:10px;border:1px solid #e6e8ed;border-radius:11px;background:#fbfcfd;display:grid;gap:9px}.border-control-card .switch-row{margin-bottom:0}.border-control-card .field{margin:0}.border-main-toggle{font-weight:850;color:#343a46}.border-main-toggle input{width:16px;height:16px}
.field-help{color:#8a92a0}.free-element-inspector .field>label{font-size:.63rem}.free-element-inspector{background:#fffbf3;border-color:#edd39d}.free-element-inspector h4{color:#8a630f}.free-inspector-actions{grid-template-columns:1fr}.free-inspector-actions .soft-btn{height:34px}
.panel-tabs button{font-size:.62rem}.panel-tabs button.active{font-weight:900}.panel-section-title strong{font-size:.78rem}.element-library-note{background:#faf9ff;border-color:#e1ddff;color:#625aa0}
.canvas-hint{color:#7b8290}.workspace-bar{min-height:49px}.workspace-tools .ghost-btn.small{white-space:nowrap}
.right-panel .field-inline{align-items:start}.right-panel .field select{cursor:pointer}.right-panel .field input[type=number]{font-variant-numeric:tabular-nums}
.switch-row{cursor:pointer}.switch-row span{user-select:none}.switch-row input{cursor:pointer}
.responsive-edit-badge{position:relative}.responsive-edit-badge:after{content:'Solo esta vista';margin-left:auto;padding:3px 6px;border-radius:999px;background:#ece9ff;color:#675dc0;font-size:.52rem;font-weight:850;white-space:nowrap}
.free-mode-notice{gap:9px}.free-mode-notice #freeModeNoticeText{line-height:1.35}
.element-context{box-shadow:0 3px 12px rgba(15,23,42,.03)}
@media(max-width:980px){.canvas-hint{display:none}.workspace-tools .ghost-btn.small{font-size:.7rem;padding:0 8px}}
.free-layer-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:2px 0 8px}.free-layer-actions .soft-btn{height:34px;font-size:.64rem}


.ui-svg{width:1em;height:1em;display:inline-block;vertical-align:-.15em;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none;flex:0 0 auto;aspect-ratio:1/1;max-width:100%;transform-box:fill-box;transform-origin:center}
.icon-btn .ui-svg,.device-switch .ui-svg,.panel-toggle .ui-svg{width:17px;height:17px;vertical-align:0}.ghost-btn .ui-svg,.primary-btn .ui-svg,.soft-btn .ui-svg,.danger-btn .ui-svg,.section-link-copy .ui-svg{width:15px;height:15px;vertical-align:-.22em;margin-right:5px}
.topbar button,.workspace-bar button,.panel-tabs button,.page-row button,.inspector button{outline:none}.topbar button:focus-visible,.workspace-bar button:focus-visible,.panel-tabs button:focus-visible,.page-row button:focus-visible,.inspector button:focus-visible{box-shadow:0 0 0 3px rgba(109,93,252,.16),0 0 0 1px #6d5dfc}
.device-switch button{display:grid;place-items:center}.free-mode-btn{display:inline-flex;align-items:center;gap:7px}.free-mode-btn .ui-svg{width:16px;height:16px}
.workspace-tools .ghost-btn.small{display:inline-flex;align-items:center;gap:5px}.workspace-tools .ghost-btn.small .ui-svg{width:14px;height:14px;margin:0}
.block-card{position:relative;min-height:66px}.block-icon{display:grid;place-items:center}.block-icon .ui-svg{width:21px;height:21px}.library-add{position:absolute;right:10px;top:50%;transform:translateY(-50%);width:26px;height:26px;border-radius:8px;display:grid;place-items:center;color:#777e8c;background:#f5f6f8;opacity:0;transition:.16s}.library-add .ui-svg{width:14px;height:14px}.block-card:hover .library-add{opacity:1;color:var(--primary);background:#f0efff}.block-card>div:nth-child(2){padding-right:28px}
.element-card-icon{display:grid!important;place-items:center}.element-card-icon .ui-svg{width:20px;height:20px}.element-card em{display:grid!important;place-items:center}.element-card em .ui-svg{width:13px;height:13px}
.page-icon{display:grid;place-items:center}.page-icon .ui-svg{width:15px;height:15px}.page-menu{display:grid!important;place-items:center}.page-menu .ui-svg{width:17px;height:17px}
.element-type-icon{display:grid!important;place-items:center}.element-type-icon .ui-svg{width:18px;height:18px}.responsive-edit-badge>span{display:grid;place-items:center}.responsive-edit-badge .ui-svg{width:17px;height:17px}
.section-link-copy{display:flex;align-items:center;justify-content:center}.advanced-details{margin-top:12px;border:1px solid #e5e7eb;border-radius:11px;background:#fafbfc;overflow:hidden}.advanced-details summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:7px;padding:10px 11px;font-size:.69rem;font-weight:800;color:#596171}.advanced-details summary::-webkit-details-marker{display:none}.advanced-details summary .ui-svg{width:14px;height:14px}.advanced-details[open] summary{border-bottom:1px solid #e7e9ee;background:#f7f7fb}.advanced-details-body{padding:11px}.advanced-details-body label{display:grid;gap:6px;font-size:.66rem;font-weight:800}.advanced-details-body input{width:100%;border:1px solid #dfe2e8;border-radius:9px;padding:9px 10px;background:#fff}
.media-empty{grid-column:1/-1;min-height:160px;display:grid;place-items:center;align-content:center;gap:7px;text-align:center;color:#8b93a1;padding:20px}.media-empty .ui-svg{width:28px;height:28px;color:#a39cf4}.media-empty strong{font-size:.74rem;color:#616876}.media-empty small{font-size:.63rem;max-width:180px;line-height:1.45}
.project-thumb.polished{background:linear-gradient(145deg,var(--project-muted),#fff);padding:25px 26px 0;display:flex;align-items:flex-end}.project-mini-site{width:100%;height:100%;background:#fff;border-radius:11px 11px 0 0;box-shadow:0 14px 30px rgba(15,23,42,.12);overflow:hidden;border:1px solid rgba(15,23,42,.06)}.mini-nav{height:22px;border-bottom:1px solid #eef0f3;display:flex;align-items:center;gap:5px;padding:0 8px}.mini-nav i{width:20px;height:5px;border-radius:5px;background:var(--project-primary)}.mini-nav span{width:14px;height:3px;border-radius:4px;background:#dfe2e8;margin-left:auto}.mini-nav span+span{margin-left:0}.mini-hero{padding:15px 12px;display:grid;gap:7px}.mini-hero strong{display:block;width:58%;height:8px;border-radius:6px;background:#232834}.mini-hero b{display:block;width:75%;height:5px;border-radius:5px;background:#d9dde4}.mini-hero small{display:block;width:64%;height:5px;border-radius:5px;background:#e7e9ee}.mini-hero em{display:block;width:28%;height:10px;border-radius:5px;background:var(--project-primary);margin-top:3px}.project-status{z-index:2}.project-actions .ghost-btn{display:inline-flex;align-items:center;justify-content:center}.project-actions .ui-svg{width:13px;height:13px;margin-right:5px}
.page-settings-head{display:flex;gap:13px;align-items:flex-start;padding-right:34px}.settings-hero-icon{width:42px;height:42px;border-radius:12px;background:#f0efff;color:#6658e8;display:grid;place-items:center;flex:none}.settings-hero-icon .ui-svg{width:21px;height:21px}.settings-card{border:1px solid #e4e7ec;border-radius:15px;padding:15px;margin-top:14px;background:#fff}.settings-card-title{display:flex;gap:10px;align-items:flex-start;margin-bottom:13px}.settings-card-title>span{width:31px;height:31px;border-radius:9px;background:#f6f7f9;display:grid;place-items:center;color:#646c79;flex:none}.settings-card-title .ui-svg{width:15px;height:15px}.settings-card-title strong{display:block;font-size:.78rem}.settings-card-title small{display:block;color:#8a91a0;font-size:.64rem;margin-top:2px;line-height:1.4}.url-field{display:flex;align-items:center;border:1px solid #dfe2e8;border-radius:10px;background:#fff;overflow:hidden}.url-field>span{padding:0 0 0 11px;color:#9298a3;font-weight:700}.url-field input{border:0!important;box-shadow:none!important}.field-note{display:block;color:#959ba5;font-weight:500!important;font-size:.6rem!important;margin-top:5px;line-height:1.4}.search-preview{border:1px solid #e6e9ed;border-radius:12px;background:#fbfcfd;padding:13px 14px;margin-bottom:13px}.search-preview-site{display:block;color:#4b5563;font-size:.61rem;margin-bottom:2px}.search-preview strong{display:block;color:#1a0dab;font:500 1rem Arial,sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.search-preview>span#searchPreviewUrl{display:block;color:#188038;font-size:.63rem;margin-top:2px}.search-preview p{margin:5px 0 0;color:#4d5156;font:400 .68rem/1.45 Arial,sans-serif}.settings-actions{align-items:center;flex-wrap:wrap}.settings-actions .ghost-btn{display:inline-flex;align-items:center;gap:3px}.settings-actions .ghost-btn .ui-svg{margin:0}.danger-text{color:#b42318!important}.danger-text:hover{background:#fff1f0!important}
.publish-free-warning{display:flex!important;align-items:flex-start;gap:8px}.publish-free-warning .ui-svg{width:17px;height:17px;flex:none;margin-top:1px}
.free-notice-icon{display:grid;place-items:center}.free-notice-icon .ui-svg{width:17px;height:17px}.free-warning-icon{display:grid!important;place-items:center}.free-warning-icon .ui-svg{width:25px;height:25px}
.wb-context-menu .ctx-row>span,.ctx-targets>button>span:first-child{display:grid;place-items:center}.wb-context-menu .ui-svg{width:14px;height:14px}.ctx-targets>button>span:first-child .ui-svg{width:12px;height:12px}
.wb-free-toolbar button{display:grid!important;place-items:center}.wb-free-toolbar .ui-svg{width:13px;height:13px}.wb-free-toolbar [data-free-action=back] .ui-svg{transform:rotate(180deg)}
.inspector-empty>div{display:grid!important;place-items:center}.inspector-empty .ui-svg{width:26px;height:26px}
.modal-close{display:grid;place-items:center}.modal-close .ui-svg{width:16px;height:16px}.empty-icon{display:grid!important;place-items:center}.empty-icon .ui-svg{width:24px;height:24px}.upload-tile>span:first-child{display:grid!important;place-items:center}.upload-tile .ui-svg{width:23px;height:23px}
@media(max-width:900px){.workspace-center{display:none}.workspace-tools .ghost-btn.small{font-size:0;width:35px;padding:0;justify-content:center}.workspace-tools .ghost-btn.small .ui-svg{width:16px;height:16px}}


.primary-btn,.publish-btn,.ghost-btn.large{display:inline-flex;align-items:center;justify-content:center;gap:6px}.primary-btn .ui-svg,.publish-btn .ui-svg{width:15px;height:15px}.primary-btn.large .ui-svg{width:17px;height:17px}.mini-btn{display:inline-flex;align-items:center;gap:4px}.mini-btn .ui-svg{width:12px;height:12px}.crumb-back{display:grid!important;place-items:center}.crumb-back .ui-svg{width:16px;height:16px}.template-icon{display:grid!important;place-items:center}.template-icon .ui-svg{width:21px;height:21px}.template-check{display:grid!important;place-items:center}.template-check .ui-svg{width:13px;height:13px}.font-real-chevron{display:grid!important;place-items:center;transform:rotate(90deg)}.font-real-chevron .ui-svg{width:13px;height:13px}.font-upload-btn{display:grid!important;place-items:center}.font-upload-btn .ui-svg{width:14px;height:14px}.free-element-title>span{display:grid!important;place-items:center}.free-element-title .ui-svg{width:17px;height:17px}

/* Refined controls */
.wb-inline-typebar .ui-svg{width:14px;height:14px;display:block}
.repeater-remove{width:26px;display:grid;place-items:center;padding:0}
.repeater-remove .ui-svg{width:13px;height:13px}
.add-row-btn{display:flex;align-items:center;justify-content:center;gap:6px}
.add-row-btn .ui-svg{width:13px;height:13px}
.link-picker-field .ui-svg{width:15px;height:15px}
.target-icon .ui-svg,.ctx-row .ui-svg,.ctx-targets .ui-svg{width:14px;height:14px}
.workspace-tools .ghost-btn .ui-svg,.top-actions .ghost-btn .ui-svg,.top-actions .primary-btn .ui-svg,.top-actions .publish-btn .ui-svg{width:14px;height:14px;flex:none}
.workspace-tools .ghost-btn,.top-actions .ghost-btn,.top-actions .primary-btn,.top-actions .publish-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px}
.panel-tabs button{position:relative}
.panel-tabs button.active:after{content:"";position:absolute;left:16%;right:16%;bottom:-1px;height:2px;border-radius:2px;background:var(--primary)}
.panel-view{scrollbar-gutter:stable}
.field input[readonly]{background:#f7f8fa;color:#6f7784}
.modal-card{scrollbar-gutter:stable}
@media(max-width:1020px){.canvas-hint{display:none}.workspace-tools .ghost-btn.small{padding-inline:8px}.workspace-tools .ghost-btn.small .ui-svg{margin:0}}

/* Modos de diseño, historial y autoguardado */
.grid-mode-btn.active{border-color:#8b80ff;background:#f3f1ff;color:#5547d8;box-shadow:0 0 0 2px rgba(109,93,252,.08)}
.grid-mode-btn.active:hover{background:#eeebff}
.revision-current{margin:16px 0 10px;padding:12px 13px;border:1px solid #dcd8ff;border-radius:12px;background:#f8f7ff;display:flex;align-items:center;gap:10px}
.revision-current>span{width:31px;height:31px;border-radius:9px;background:#ebe8ff;color:#5f50df;display:grid;place-items:center;flex:none}
.revision-current .ui-svg{width:16px;height:16px}.revision-current strong{display:block;font-size:.76rem}.revision-current small{display:block;color:#858c99;font-size:.62rem;margin-top:2px}
.revision-list{display:grid;gap:7px;max-height:min(430px,55vh);overflow:auto;padding:2px 3px 3px 0;scrollbar-gutter:stable}
.revision-row{display:grid;grid-template-columns:12px minmax(0,1fr) auto;gap:10px;align-items:center;padding:11px 12px;border:1px solid #e5e7eb;border-radius:11px;background:#fff;transition:.14s}
.revision-row:hover{border-color:#cec9ff;background:#fdfcff}.revision-dot{width:8px;height:8px;border-radius:50%;background:#8e84ef;box-shadow:0 0 0 4px #f0eeff}
.revision-copy{min-width:0}.revision-copy strong{display:block;font-size:.72rem;color:#343946}.revision-copy span{display:block;margin-top:2px;color:#747c89;font-size:.62rem}.revision-copy small{display:block;margin-top:3px;color:#a0a5ae;font-size:.59rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.revision-row .soft-btn{height:31px;padding:0 10px;white-space:nowrap}.revision-empty{padding:30px 18px;border:1px dashed #d9dde4;border-radius:12px;text-align:center;color:#89909c;font-size:.69rem;line-height:1.55;background:#fafbfc}
.save-state[data-autosave="true"]{color:#5d6674}.save-state[data-autosave="true"]:before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:#51a774;margin-right:6px;vertical-align:1px}
.wb-free-box.normal{border-color:#8b93a1}.wb-free-box.normal .wb-resize-handle{background:#fff;border-color:#596170}.wb-free-box.grid{border-color:#6d5dfc;box-shadow:0 0 0 1px rgba(109,93,252,.12)}
@media(max-width:860px){.revision-row{grid-template-columns:10px minmax(0,1fr)}.revision-row .soft-btn{grid-column:2;justify-self:start}.revision-list{max-height:50vh}}
.normal-mode-btn.active{border-color:#cdd2da;background:#f5f6f8;color:#303744;box-shadow:0 0 0 2px rgba(31,41,55,.04)}

/* Paneles minimalistas, selección y jerarquía visual */
.editor{grid-template-columns:274px minmax(0,1fr) 304px}
.left-panel,.right-panel{background:#fbfcfe;scrollbar-width:thin;scrollbar-color:#d6dae2 transparent}
.left-panel::-webkit-scrollbar,.right-panel::-webkit-scrollbar,.panel-view::-webkit-scrollbar,.inspector::-webkit-scrollbar{width:8px;height:8px}
.left-panel::-webkit-scrollbar-thumb,.right-panel::-webkit-scrollbar-thumb,.panel-view::-webkit-scrollbar-thumb,.inspector::-webkit-scrollbar-thumb{background:#d6dae2;border:2px solid transparent;background-clip:padding-box;border-radius:999px}
.panel-tabs{grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;padding:8px;background:#fff;border-bottom:1px solid #eceef2}
.panel-tabs button{height:36px;padding:0 3px;border:0!important;border-radius:9px;font-size:.57rem;letter-spacing:-.01em;color:#7b8391;background:transparent;white-space:nowrap}
.panel-tabs button.active{color:#5143d7;background:#f1efff;box-shadow:inset 0 0 0 1px #e1ddff}
.panel-tabs button.active:after{display:none}
.panel-view{padding:16px 14px 22px}
.panel-search{margin-bottom:12px}.panel-search input{height:40px;border-color:#e2e5ea;background:#fff;border-radius:11px;box-shadow:0 1px 2px rgba(15,23,42,.02)}
.panel-section-title{margin:0 2px 13px}.panel-section-title strong,.element-library-title strong{font-size:.77rem;color:#303642}.element-library-title small{display:block;margin-top:3px;color:#949aa5;font-size:.59rem;line-height:1.4}
.block-category{margin-bottom:18px}.block-category h4,.element-group>h4{margin-left:2px;color:#999faa;font-size:.56rem;letter-spacing:.115em}
.block-library-list,.element-group-grid{gap:7px}.block-card,.element-card{border-color:#e8eaee;background:#fff;box-shadow:0 1px 2px rgba(15,23,42,.015)}
.block-card:hover,.element-card:hover{transform:none;border-color:#cfc9ff;background:#fbfaff;box-shadow:0 5px 14px rgba(31,41,55,.055)}
.block-icon,.element-card-icon{background:#f5f6f8;color:#596171}.block-card:hover .block-icon,.element-card:hover .element-card-icon{background:#efedff;color:#5b4bde}
.element-library-note{margin-top:14px;padding:10px 11px;border:1px solid #e5e2ff;border-radius:11px;background:#faf9ff;color:#7068a6;font-size:.6rem}
.right-panel{border-left-color:#e8eaee}.inspector-head{height:62px;padding:0 14px 0 16px;background:rgba(255,255,255,.96);backdrop-filter:blur(8px);border-bottom-color:#eceef2}.inspector-head small{font-size:.55rem;color:#9aa0aa}.inspector-head strong{font-size:.83rem;color:#2f3540}
.inspector{padding:12px 12px 28px}.inspector-section{margin:0 0 10px;padding:13px;border:1px solid #e9ebef!important;border-radius:13px;background:#fff;box-shadow:0 1px 3px rgba(15,23,42,.025)}.inspector-section:last-child{margin-bottom:0}
.inspector-section>h4{margin:0 0 11px;font-size:.59rem;letter-spacing:.09em;color:#858c98}.element-context{background:#fff;border-color:#e5e7ec!important;box-shadow:0 2px 8px rgba(15,23,42,.03)}
.responsive-edit-badge.compact{margin:0 0 10px;padding:8px 9px;border-radius:9px}.responsive-edit-badge.compact:after{display:none}
.right-panel .field>label,.inspector .field>label{font-size:.62rem;color:#606876}.right-panel .field input[type=text],.right-panel .field input[type=number],.right-panel .field input[type=url],.right-panel .field select,.right-panel .field textarea{min-height:36px;border-color:#e0e3e8;background:#fff;border-radius:9px}
.right-panel .field input:focus,.right-panel .field select:focus,.right-panel .field textarea:focus{border-color:#9e95f6;box-shadow:0 0 0 3px rgba(109,93,252,.08)}
.effect-box,.border-control-card,.loose-helper{background:#fafbfc;border-color:#eaecf0}.advanced-details{border-color:#e7e9ed;background:#fcfcfd}.advanced-details summary{font-size:.64rem}
.inspector-actions,.free-layer-actions,.free-inspector-actions{gap:7px}.soft-btn,.danger-btn,.danger-outline-btn{border-radius:9px}
.inspector-empty{padding:74px 24px}.inspector-empty>div{background:#f1efff}.inspector-empty p{max-width:225px;margin-inline:auto;color:#8b929e;font-size:.72rem}
.multi-selection-card .field-help{margin-top:4px}.wb-multi-selected{outline-color:#7b6df2!important}
.workspace-bar{background:#f8f9fb;border-bottom-color:#e1e4e9}.canvas-stage{background:#eef0f4}
@media(max-width:1180px){.editor{grid-template-columns:260px minmax(0,1fr) 292px}.panel-tabs button{font-size:.54rem}}
/* Preserve collapsible panel mechanics with refined widths */
.editor{--left-w:274px;--right-w:304px;grid-template-columns:var(--left-w) minmax(0,1fr) var(--right-w)}
@media(max-width:1180px){.editor{--left-w:260px;--right-w:292px;grid-template-columns:var(--left-w) minmax(0,1fr) var(--right-w)}}
@media(max-width:900px){.editor{--left-w:230px;--right-w:270px;grid-template-columns:var(--left-w) minmax(0,1fr) var(--right-w)}}
@media(max-width:700px){.editor{--left-w:220px;--right-w:0px;grid-template-columns:var(--left-w) minmax(360px,1fr) var(--right-w)}}

/* Estabilidad de arrastre, tema visual, rellenos y acciones */
.brand-mark,.wb-boot-mark{overflow:hidden;background:#fff!important;border:1px solid #e6e8ee;box-shadow:0 8px 24px rgba(15,23,42,.10)!important}
.brand-mark img,.wb-boot-mark img{display:block;width:100%;height:100%;object-fit:contain;padding:4px}
body.wb-dragging-element,body.wb-dragging-element *{-webkit-user-select:none!important;user-select:none!important;-webkit-user-drag:none!important;cursor:grabbing!important}

/* Barra principal: acciones compactas y estables */
.top-actions{gap:6px;min-width:0}
.top-actions>.ghost-btn,.top-actions>.primary-btn,.top-actions>.publish-btn{height:38px;min-width:0;padding:0 13px;border-radius:10px;white-space:nowrap;line-height:1;border:1px solid transparent;box-shadow:none;transform:none!important}
.top-actions>.ghost-btn{background:#fff;border-color:#e3e6eb;color:#303744}
.top-actions>.ghost-btn:hover{background:#f7f8fa;border-color:#d6dae1}
.top-actions>.primary-btn{background:linear-gradient(135deg,#7566ff,#6251e8);border-color:#6251e8;box-shadow:0 6px 14px rgba(98,81,232,.18)}
.top-actions>.primary-btn:hover{background:linear-gradient(135deg,#6d5dfc,#5947dc)}
.top-actions>.publish-btn{background:#171b24;border-color:#171b24;box-shadow:0 6px 14px rgba(17,24,39,.13)}
.top-actions>.publish-btn:hover{background:#090d14}
.top-actions>.publish-btn.published{background:#0f9f56;border-color:#0f9f56}
.top-actions>.ghost-btn .ui-svg,.top-actions>.primary-btn .ui-svg,.top-actions>.publish-btn .ui-svg{width:14px;height:14px;margin:0!important;flex:0 0 14px}
.top-actions button:disabled{opacity:.55;cursor:not-allowed;box-shadow:none!important}

/* Acciones del inspector: nunca desbordan */
.inspector-actions{display:grid!important;grid-template-columns:1fr!important;gap:7px!important;width:100%}
.inspector-actions>button{width:100%;min-width:0;min-height:36px;height:auto;padding:9px 11px;display:flex!important;align-items:center;justify-content:flex-start;gap:8px;border:1px solid transparent;line-height:1.25;text-align:left;white-space:normal;overflow:hidden}
.inspector-actions>button .ui-svg{width:14px;height:14px;margin:0!important;flex:0 0 14px}
.inspector-actions .soft-btn{background:#f7f8fa;border-color:#e5e8ed;color:#343b48}
.inspector-actions .soft-btn:hover{background:#f0f2f5;border-color:#d9dde4}
.inspector-actions .danger-btn{background:#fff7f7;border-color:#f3d7d7;color:#b42318}
.inspector-actions .danger-btn:hover{background:#fff0f0;border-color:#efcaca}

/* Personalización del tema */
.theme-custom-shell{display:grid;gap:10px;padding:0 1px 12px}
.theme-custom-section{border:1px solid #e6e8ed;border-radius:15px;background:linear-gradient(180deg,#fff,#fcfcfd);padding:12px;box-shadow:0 5px 16px rgba(15,23,42,.035)}
.theme-custom-section-head{display:flex;align-items:center;gap:9px;margin-bottom:11px}
.theme-custom-section-head>span{width:31px;height:31px;border-radius:9px;background:#f1efff;color:#6555e9;display:grid;place-items:center;flex:none}
.theme-custom-section-head>span .ui-svg{width:15px;height:15px}
.theme-custom-section-head strong{display:block;font-size:.72rem;color:#333946}
.theme-custom-section-head small{display:block;margin-top:2px;font-size:.58rem;line-height:1.35;color:#949aa5}
.theme-color-grid{display:grid;gap:7px}
.theme-color-control{display:grid;grid-template-columns:minmax(0,1fr) 104px;align-items:center;gap:9px;padding:8px 9px;border:1px solid #eceef2;border-radius:11px;background:#fff;transition:.15s}
.theme-color-control:hover{border-color:#dad6ff;background:#fefeff}
.theme-control-copy{min-width:0}.theme-control-copy strong{display:block;font-size:.65rem;color:#4d5563}.theme-control-copy small{display:block;margin-top:1px;color:#a0a5ae;font-size:.52rem;line-height:1.3}
.theme-color-input{display:grid;grid-template-columns:30px minmax(0,1fr);gap:5px;align-items:center;min-width:0}
.theme-color-input input[type=color]{width:30px;height:30px;border:1px solid #dfe3e8;border-radius:8px;padding:2px;background:#fff;cursor:pointer}
.theme-color-input input:not([type=color]){width:100%;min-width:0;height:30px;border:1px solid #e2e5ea;border-radius:8px;padding:0 7px;background:#fafbfc;color:#666e7a;font-size:.58rem;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;text-transform:uppercase}
.theme-font-grid{display:grid;gap:8px}.theme-font-control{position:relative;margin:0!important;padding:9px;border:1px solid #eceef2;border-radius:11px;background:#fff}
.theme-font-control>label{margin-bottom:6px!important}.theme-font-input{width:100%;height:34px;border:1px solid #dfe2e8;border-radius:9px;padding:0 9px;background:#fff;font-size:.69rem}
.theme-font-preview{display:block;margin-top:7px;padding:7px 8px;border-radius:8px;background:#f7f8fa;color:#343946;font-size:.75rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.theme-range-stack{display:grid;gap:9px}.theme-range-control{margin:0!important;padding:9px;border:1px solid #eceef2;border-radius:11px;background:#fff}.theme-range-control label{display:flex!important;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px!important}.theme-range-control label span{font-size:.64rem}.theme-range-control output{padding:3px 6px;border-radius:6px;background:#f1efff;color:#5f50df;font-size:.57rem;font-weight:800;font-variant-numeric:tabular-nums}.theme-range-control input[type=range]{width:100%;accent-color:#6d5dfc}
.theme-custom-divider{margin:18px 0 11px!important}.theme-custom-divider span{padding:0 6px;color:#858c98;font-size:.56rem;letter-spacing:.12em}

/* Rellenos sólidos y degradados */
.fill-field{padding:10px;border:1px solid #e7e9ee;border-radius:12px;background:#fbfcfd;margin-bottom:10px}
.fill-field>label{margin-bottom:7px!important;color:#4f5765!important}
.fill-preview{height:46px;border-radius:9px;border:1px solid rgba(15,23,42,.08);display:flex;align-items:flex-end;padding:5px 7px;margin-bottom:7px;overflow:hidden;background-clip:padding-box}
.fill-preview span{padding:3px 6px;border-radius:6px;background:rgba(255,255,255,.90);backdrop-filter:blur(6px);color:#505866;font-size:.52rem;font-weight:800;box-shadow:0 2px 7px rgba(15,23,42,.08)}
.fill-mode-switch{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:3px;border-radius:9px;background:#eef0f4;margin-bottom:8px}
.fill-mode-switch button{height:28px;border:0;border-radius:7px;background:transparent;color:#737b88;font-size:.61rem;font-weight:800;cursor:pointer}
.fill-mode-switch button.active{background:#fff;color:#3d35a6;box-shadow:0 2px 7px rgba(15,23,42,.08)}
.fill-solid,.fill-gradient{display:none}.fill-solid.active,.fill-gradient.active{display:block}
.fill-gradient-colors{display:grid;grid-template-columns:1fr 1fr;gap:7px}.fill-gradient-colors label{display:grid;grid-template-columns:auto 32px;align-items:center;gap:5px;margin:0!important;padding:6px 7px;border:1px solid #e6e8ed;border-radius:8px;background:#fff;font-size:.57rem!important}.fill-gradient-colors input[type=color]{width:32px;height:28px;border:0;padding:0;background:transparent;cursor:pointer}
.fill-angle{margin-top:8px}.fill-angle label{display:flex!important;align-items:center;justify-content:space-between;margin-bottom:5px!important}.fill-angle output{font-size:.56rem;color:#7569d7;font-weight:800}.fill-angle input{width:100%;accent-color:#6d5dfc}

/* Paneles: menos ruido, misma potencia */
.left-panel,.right-panel{background:#fff}.panel-view{padding-left:11px!important;padding-right:11px!important}.inspector{padding:12px!important}.inspector-section{margin-bottom:13px!important;padding-bottom:13px!important}.inspector-section>h4{margin-bottom:9px!important;font-size:.62rem!important;letter-spacing:.105em!important}.field{margin-bottom:8px}.field input[type=text],.field input[type=url],.field input[type=number],.field textarea,.field select{min-height:34px;border-color:#e1e4e9;background:#fff}.field input:hover,.field textarea:hover,.field select:hover{border-color:#d5d9e0}.effect-box,.border-control-card{border-color:#e8eaef!important;background:#fcfcfd!important;box-shadow:none!important}

@media(max-width:1320px){.top-actions>.ghost-btn,.top-actions>.primary-btn,.top-actions>.publish-btn{padding-inline:10px}.free-mode-btn{padding-inline:9px!important}.top-actions{gap:5px}}
@media(max-width:1060px){
  .free-mode-btn{width:38px!important;padding:0!important;justify-content:center!important}.free-mode-btn>span{display:none}
  #previewBtn{width:38px!important;padding:0!important;font-size:0}.top-actions>#previewBtn .ui-svg{width:15px;height:15px}
  .top-actions>.primary-btn,.top-actions>.publish-btn{padding-inline:11px}
}
@media(max-width:780px){.top-actions{gap:4px}.top-actions>.primary-btn,.top-actions>.publish-btn{width:38px;padding:0;font-size:0}.top-actions>.primary-btn .ui-svg,.top-actions>.publish-btn .ui-svg{width:15px;height:15px}.brand-wrap{gap:8px}.brand-mark{width:34px;height:34px}}

/* v26 · Fondo global del sitio */
.site-background-section{background:linear-gradient(180deg,#fbfbff 0%,#fff 100%);border-color:#dedcfb!important}
.site-bg-master{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 13px;border:1px solid #e4e5eb;border-radius:12px;background:#fff;margin-bottom:10px}
.site-bg-master>span{display:grid;gap:2px;min-width:0}.site-bg-master strong{font-size:.72rem;color:#313744}.site-bg-master small{font-size:.59rem;color:#8a92a0;line-height:1.35}.site-bg-master input{appearance:none;width:38px;height:22px;border-radius:999px;background:#dfe2e8;position:relative;cursor:pointer;transition:.18s;flex:none}.site-bg-master input:before{content:'';position:absolute;width:16px;height:16px;border-radius:50%;background:#fff;left:3px;top:3px;box-shadow:0 2px 6px rgba(15,23,42,.18);transition:.18s}.site-bg-master input:checked{background:#6d5dfc}.site-bg-master input:checked:before{transform:translateX(16px)}
.site-bg-editor{display:grid;gap:10px;transition:opacity .18s}.site-bg-editor.is-disabled{opacity:.46}.site-bg-editor.is-disabled>*:not(.site-bg-preview){pointer-events:none}.site-bg-preview{height:76px;border:1px solid #e0e2e8;border-radius:13px;display:grid;place-items:end start;padding:9px;background:#fff;overflow:hidden;box-shadow:inset 0 0 0 1px rgba(255,255,255,.55)}.site-bg-preview span{padding:5px 8px;border-radius:7px;background:rgba(17,24,39,.78);backdrop-filter:blur(8px);color:#fff;font-size:.56rem;font-weight:800}
.site-bg-modes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.site-bg-modes button{min-width:0;height:36px;border:1px solid #e1e3e8;border-radius:9px;background:#fff;color:#656d7b;display:flex;align-items:center;justify-content:center;gap:6px;font-size:.62rem;font-weight:800;cursor:pointer}.site-bg-modes button .ui-svg{width:14px;height:14px}.site-bg-modes button:hover{border-color:#bcb6fa;color:#5145cc}.site-bg-modes button.active{border-color:#8f86ee;background:#f3f1ff;color:#493dcc;box-shadow:0 0 0 2px rgba(109,93,252,.07)}
.site-bg-pane{display:none;padding:11px;border:1px solid #e5e7ec;border-radius:11px;background:#fbfcfd}.site-bg-pane.active{display:block}.site-bg-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.site-bg-grid>label{display:grid;gap:6px;min-width:0;color:#626a78;font-size:.61rem;font-weight:800}.site-bg-grid>label>output{justify-self:end;margin-top:-18px;color:#8a92a0;font-size:.58rem}.site-bg-grid input[type=color]{width:100%;height:34px;border:1px solid #dfe2e8;border-radius:8px;background:#fff;padding:3px}.site-bg-grid select{width:100%;height:34px;border:1px solid #dfe2e8;border-radius:8px;background:#fff;padding:0 8px;color:#444b58;font-size:.64rem}.site-bg-grid input[type=range]{width:100%;accent-color:#6d5dfc}.theme-color-control.compact{padding:0;border:0;background:transparent}.theme-color-input.single{grid-template-columns:42px}.theme-color-input.single input[type=color]{width:42px}
.site-bg-layer-note{display:flex;gap:8px;align-items:flex-start;padding:9px 10px;border-radius:9px;background:#f2f1ff;color:#625aa5;font-size:.58rem;line-height:1.4}.site-bg-layer-note .ui-svg{width:14px;height:14px;flex:none;margin-top:1px}
.section-background-toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 11px;margin-bottom:9px;border:1px solid #e5e7eb;border-radius:10px;background:#fafbfc}.section-background-toggle>span{display:grid;gap:2px;min-width:0}.section-background-toggle strong{font-size:.67rem;color:#3e4552}.section-background-toggle small{font-size:.56rem;line-height:1.35;color:#8a92a0}.section-background-toggle input{appearance:none;width:34px;height:20px;border-radius:999px;background:#dfe2e8;position:relative;cursor:pointer;flex:none}.section-background-toggle input:before{content:'';position:absolute;width:14px;height:14px;border-radius:50%;left:3px;top:3px;background:#fff;box-shadow:0 1px 4px rgba(15,23,42,.2);transition:.16s}.section-background-toggle input:checked{background:#6d5dfc}.section-background-toggle input:checked:before{transform:translateX(14px)}.section-own-background{display:none}.section-own-background.active{display:block}
@media(max-width:1180px){.site-bg-grid{grid-template-columns:1fr}.site-bg-modes button{font-size:.58rem}}

/* v27 · Gradientes avanzados, textura por imagen y selector visual de fuentes */
.font-browser-grid.font-browser-paged{grid-template-columns:repeat(2,minmax(0,1fr));max-height:none;overflow:visible;gap:10px;padding:2px 0 4px}
.font-browser-paged .font-choice{min-height:76px;grid-template-columns:1fr;padding:12px 14px;border-radius:12px}
.font-browser-paged .font-choice-name{display:block;width:100%;font-size:1.08rem;line-height:1.25;color:#303642;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.font-browser-paged .font-choice.active{border-color:#7f72ef;background:#f5f3ff;box-shadow:0 0 0 2px rgba(109,93,252,.08)}
.font-browser-pager{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;margin-top:12px;padding:10px 0 2px;border-top:1px solid #eceef2}
.font-browser-pager>span{text-align:center;color:#7d8592;font-size:.65rem}.font-browser-pager strong{color:#4940b8}
.font-browser-pager button{height:34px;border:1px solid #dfe2e8;border-radius:9px;background:#fff;color:#555d6b;padding:0 10px;display:inline-flex;align-items:center;gap:5px;font-size:.64rem;font-weight:800;cursor:pointer}
.font-browser-pager button:hover:not(:disabled){border-color:#bbb4fb;background:#f7f5ff;color:#5144d0}.font-browser-pager button:disabled{opacity:.38;cursor:default}.font-browser-pager .ui-svg{width:13px;height:13px}
.theme-font-picker{width:100%;min-height:58px;border:1px solid #dfe2e8;border-radius:11px;background:#fff;padding:8px 10px;display:grid;grid-template-columns:minmax(0,1fr) auto 16px;align-items:center;gap:8px;text-align:left;cursor:pointer}
.theme-font-picker:hover{border-color:#aaa2fb;box-shadow:0 0 0 3px rgba(109,93,252,.07)}.theme-font-picker>span{font-size:.9rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#343946}.theme-font-picker>small{font:650 .55rem/1 Inter,system-ui,sans-serif;color:#949aa5;white-space:nowrap}.theme-font-picker .ui-svg{width:14px;height:14px;color:#7f8794}
.fill-mid-toggle{display:flex!important;align-items:center;gap:7px;margin:9px 0 0!important;padding:8px 9px;border:1px solid #e6e8ed;border-radius:9px;background:#fff;color:#5f6674!important;font-size:.59rem!important;font-weight:800!important}.fill-mid-toggle input{accent-color:#6d5dfc}
.fill-mid-controls{display:none;grid-template-columns:1fr;gap:8px;margin-top:8px;padding:9px;border:1px solid #e4e1ff;border-radius:9px;background:#faf9ff}.fill-mid-controls.active{display:grid}.fill-mid-controls>label{display:grid;grid-template-columns:auto 36px;align-items:center;gap:7px;margin:0!important;font-size:.58rem!important}.fill-mid-controls input[type=color]{width:36px;height:30px;border:0;background:transparent;padding:0}.fill-mid-position label{display:flex!important;justify-content:space-between;margin-bottom:5px!important;font-size:.58rem!important}.fill-mid-position output{color:#6659dc;font-weight:800}.fill-mid-position input{width:100%;accent-color:#6d5dfc}
.site-gradient-mid-toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px;padding:10px 11px;border:1px solid #e4e5eb;border-radius:10px;background:#fff}.site-gradient-mid-toggle>span{display:grid;gap:2px}.site-gradient-mid-toggle strong{font-size:.64rem;color:#414855}.site-gradient-mid-toggle small{font-size:.55rem;color:#9299a5;line-height:1.35}.site-gradient-mid-toggle input{accent-color:#6d5dfc}
.site-gradient-mid-controls{display:none;grid-template-columns:1fr 1fr;gap:10px;margin-top:9px;padding:10px;border:1px solid #e2dfff;border-radius:10px;background:#faf9ff}.site-gradient-mid-controls.active{display:grid}.site-gradient-mid-controls label{display:grid;gap:6px;color:#626a78;font-size:.61rem;font-weight:800}.site-gradient-mid-controls label>output{justify-self:end;margin-top:-18px;color:#7468dc;font-size:.58rem}.site-gradient-mid-controls input[type=color]{width:100%;height:34px;border:1px solid #dfe2e8;border-radius:8px;background:#fff;padding:3px}.site-gradient-mid-controls input[type=range]{width:100%;accent-color:#6d5dfc}
.site-texture-image{display:none;margin-top:10px;padding:10px;border:1px solid #e1defc;border-radius:11px;background:#faf9ff}.site-texture-image.active{display:block}.site-texture-image-preview{height:92px;border:1px solid #dfe2e8;border-radius:9px;background-color:#f2f3f6;background-size:cover;background-position:center;display:grid;place-items:center;color:#9299a5;font-size:.62rem;font-weight:750;overflow:hidden}.site-texture-image-actions{display:flex;gap:7px;margin-top:8px}.site-texture-image-actions .soft-btn{flex:1}.site-pattern-color.is-hidden,.site-pattern-opacity.is-hidden{display:none!important}
.wb-inline-typebar{max-width:min(560px,calc(100vw - 24px));transition:opacity .12s,transform .12s}.wb-inline-typebar.below{box-shadow:0 -10px 28px rgba(15,23,42,.2)}
.wb-free-toolbar.compact>span{display:none}.wb-free-toolbar.compact{gap:1px}.wb-free-toolbar.compact button{min-width:23px}
@media(max-width:720px){.font-browser-grid.font-browser-paged{grid-template-columns:1fr}.font-browser-pager{grid-template-columns:1fr 1fr}.font-browser-pager>span{grid-column:1/3;grid-row:1}.font-browser-pager button{justify-content:center}.site-gradient-mid-controls{grid-template-columns:1fr}.theme-font-picker{grid-template-columns:minmax(0,1fr) 16px}.theme-font-picker>small{display:none}}

/* v28 · Selección precisa, toolbars no invasivas, texturas visibles y tipografías reales */
.fill-mode-switch-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.fill-texture{display:none}.fill-texture.active{display:grid;gap:9px}
.fill-texture-preview{height:92px;border:1px solid #dfe2e8;border-radius:10px;background-color:#f3f4f7;background-size:cover;background-position:center;display:grid;place-items:center;padding:10px;text-align:center;color:#8e95a1;font-size:.61rem;font-weight:750;overflow:hidden}
.fill-texture-choose{display:flex;align-items:center;justify-content:center;gap:6px}.fill-texture-choose .ui-svg{width:14px;height:14px}
.fill-texture-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.fill-texture-grid>label{display:grid;gap:5px;margin:0!important;color:#626a78!important;font-size:.58rem!important;font-weight:800!important}.fill-texture-grid input[type=color]{width:100%;height:32px;border:1px solid #dfe2e8;border-radius:8px;background:#fff;padding:3px}.fill-texture-grid select{width:100%;height:32px;border:1px solid #dfe2e8;border-radius:8px;background:#fff;padding:0 7px;font-size:.61rem}
.fill-texture-range{display:grid;gap:5px}.fill-texture-range>label{display:flex!important;align-items:center;justify-content:space-between;margin:0!important;color:#626a78!important;font-size:.58rem!important}.fill-texture-range output{color:#6659dc;font-weight:850}.fill-texture-range input[type=range]{width:100%;accent-color:#6d5dfc}
.site-texture-source-switch{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-bottom:10px}.site-texture-source-switch button{height:38px;border:1px solid #dfe2e8;border-radius:9px;background:#fff;color:#626a78;display:flex;align-items:center;justify-content:center;gap:6px;font-size:.61rem;font-weight:850;cursor:pointer}.site-texture-source-switch button .ui-svg{width:14px;height:14px}.site-texture-source-switch button.active{border-color:#8c82f1;background:#f2f0ff;color:#4e42ca;box-shadow:0 0 0 2px rgba(109,93,252,.07)}
.site-texture-pattern-box{display:none}.site-texture-pattern-box.active{display:block}.site-texture-common{margin-top:10px;padding-top:10px;border-top:1px solid #e8e9ee}.site-texture-image-title{display:grid;gap:2px;margin-bottom:8px}.site-texture-image-title strong{font-size:.65rem;color:#414855}.site-texture-image-title small{font-size:.56rem;color:#9097a3;line-height:1.35}
.theme-font-picker>span{font-size:1rem!important}.font-browser-paged .font-choice-name{font-size:1.18rem!important;font-weight:500!important}
.font-browser-paged .font-choice{padding:14px 16px!important;min-height:82px!important}
.font-browser-head .lead{max-width:680px}
@media(max-width:720px){.fill-texture-grid,.site-texture-source-switch{grid-template-columns:1fr}}

/* v29 · Paneles sólidos, toolbars globales y controles sin desbordes */
.editor{isolation:isolate}
.left-panel,.right-panel{overflow-y:auto!important;overflow-x:hidden!important}
.left-panel *,.right-panel *{min-width:0}
.left-panel button,.right-panel button,.left-panel input,.right-panel input,.left-panel select,.right-panel select,.left-panel textarea,.right-panel textarea{max-width:100%}
.panel-tabs{z-index:12;box-shadow:0 1px 0 rgba(15,23,42,.03)}
.panel-tabs button{transition:background .15s,color .15s,box-shadow .15s,transform .15s}
.panel-tabs button:hover{background:#f7f7fb;color:#555d6a}
.panel-tabs button.active{background:#f0eeff;color:#5143d7;box-shadow:inset 0 0 0 1px #ddd8ff,0 2px 8px rgba(109,93,252,.06)}
.panel-view{width:100%;overflow:visible!important}
.panel-section-title{gap:10px}.panel-section-title>*{min-width:0}

/* Diseño / Personalizar */
.theme-custom-shell{width:100%;gap:14px;padding:1px 0 18px!important}
.theme-custom-section{width:100%;padding:13px;border-radius:14px;background:#fff;box-shadow:0 3px 12px rgba(15,23,42,.035)}
.theme-custom-section-head{align-items:flex-start;gap:10px;margin-bottom:12px}
.theme-custom-section-head>div{min-width:0}.theme-custom-section-head strong{font-size:.75rem}.theme-custom-section-head small{font-size:.59rem;line-height:1.45;overflow-wrap:anywhere}
.theme-color-grid,.theme-font-grid,.theme-range-stack,.site-bg-editor{width:100%;gap:9px}
.theme-color-control{grid-template-columns:minmax(0,1fr);gap:8px;padding:10px}
.theme-control-copy strong{font-size:.67rem}.theme-control-copy small{font-size:.55rem;line-height:1.4}
.theme-color-input{grid-template-columns:38px minmax(0,1fr);gap:7px;width:100%}
.theme-color-input input[type=color]{width:38px;height:34px}.theme-color-input input:not([type=color]){height:34px;font-size:.6rem}
.theme-color-control.compact{display:grid!important;grid-template-columns:minmax(0,1fr) 42px!important;align-items:center;gap:10px!important;padding:2px!important}
.theme-color-control.compact .theme-color-input.single{grid-template-columns:42px!important}.theme-color-control.compact .theme-color-input.single input[type=color]{width:42px;height:36px}
.theme-font-control{padding:10px!important}
.theme-font-picker{width:100%;min-height:60px;padding:9px 10px;grid-template-columns:minmax(0,1fr) 18px;grid-template-areas:"name icon" "hint icon";row-gap:3px;column-gap:8px}
.theme-font-picker>span{grid-area:name;font-size:.96rem!important;line-height:1.15;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.theme-font-picker>small{grid-area:hint;display:block!important;font-size:.55rem;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.theme-font-picker>.ui-svg{grid-area:icon;align-self:center;justify-self:end}
.theme-range-control{padding:10px}.theme-range-control label{margin-bottom:9px!important}.theme-range-control input[type=range]{display:block;width:100%;margin:0}

/* Fondo global: una columna limpia en panel estrecho */
.site-background-section{background:#fff!important}
.site-bg-master,.section-background-toggle{width:100%;gap:10px;padding:11px}
.site-bg-master>span,.section-background-toggle>span{min-width:0}.site-bg-master small,.section-background-toggle small{overflow-wrap:anywhere}
.site-bg-preview{width:100%;height:78px}
.site-bg-modes{width:100%;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
.site-bg-modes button{width:100%;height:38px;padding:0 5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.site-bg-pane{width:100%;padding:10px}
.site-bg-grid{grid-template-columns:minmax(0,1fr)!important;gap:11px!important;width:100%}
.site-bg-grid>label,.site-gradient-mid-controls>label{position:relative;width:100%;gap:7px;padding:0;overflow:visible}
.site-bg-grid>label>output,.site-gradient-mid-controls label>output{position:absolute;top:0;right:0;margin:0!important;justify-self:auto!important;padding:1px 5px;border-radius:6px;background:#f1efff;color:#6659dc;font-size:.56rem;line-height:1.45}
.site-bg-grid input[type=color],.site-bg-grid select,.site-bg-grid input[type=range],.site-gradient-mid-controls input[type=color],.site-gradient-mid-controls input[type=range]{width:100%;max-width:100%}
.site-gradient-mid-toggle{width:100%;align-items:flex-start}.site-gradient-mid-toggle>span{min-width:0}.site-gradient-mid-toggle small{overflow-wrap:anywhere}
.site-gradient-mid-controls{grid-template-columns:minmax(0,1fr)!important;gap:11px!important;width:100%}
.site-texture-source-switch{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;width:100%}
.site-texture-source-switch button{width:100%;min-height:39px;height:auto;padding:7px 6px;line-height:1.2;text-align:center;white-space:normal}
.site-texture-image,.site-texture-common,.site-texture-pattern-box{width:100%}
.site-texture-image-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:7px;width:100%}
.site-texture-image-actions .soft-btn{width:100%;min-height:38px;height:auto;padding:8px 10px;white-space:normal}
.site-bg-layer-note{width:100%;overflow-wrap:anywhere}

/* Rellenos del inspector */
.fill-field{width:100%;padding:10px;overflow:visible}
.fill-mode-switch,.fill-mode-switch-3{width:100%;grid-template-columns:repeat(3,minmax(0,1fr))!important}
.fill-mode-switch button{min-width:0;width:100%;padding:0 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fill-gradient-colors,.fill-texture-grid{grid-template-columns:minmax(0,1fr)!important;gap:8px}
.fill-gradient-colors label,.fill-mid-controls>label{width:100%}
.fill-mid-controls{width:100%}.fill-texture-preview{width:100%}
.fill-texture-choose{width:100%;min-height:38px;height:auto!important;padding:8px 10px;white-space:normal;text-align:center}

/* Inspector derecho: tarjetas y botones consistentes */
.inspector{padding:12px!important}
.inspector-section{width:100%;margin:0 0 11px!important;padding:12px!important;border:1px solid #e9ebef!important;border-radius:13px;background:#fff;box-shadow:0 2px 8px rgba(15,23,42,.025)}
.inspector-section:last-child{margin-bottom:12px!important}
.inspector-section>h4{margin:0 0 10px!important;color:#737b88!important}
.field,.control-group,.border-control-card,.effect-box,.advanced-details,.responsive-edit-badge,.element-context-head,.type-quick-card{width:100%;min-width:0}
.field-inline,.type-size-row,.loose-position-grid,.field-grid-4,.corner-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px}
.field-grid-4>*{min-width:0}
.right-panel .field input[type=text],.right-panel .field input[type=number],.right-panel .field input[type=url],.right-panel .field select,.right-panel .field textarea,.right-panel .control-group input,.right-panel .control-group select{width:100%;min-width:0;min-height:38px;border-radius:9px;padding-inline:9px}
.right-panel textarea{resize:vertical}
.inspector-actions,.free-layer-actions,.free-inspector-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px;width:100%}
.soft-btn,.danger-btn,.add-row-btn,.section-link-copy,.danger-outline-btn{min-height:38px;height:auto;border-radius:9px;padding:8px 10px;line-height:1.25;transition:.15s ease}
.soft-btn{border:1px solid #e3e6eb;background:#f8f9fb;color:#3b4250}.soft-btn:hover{background:#f1f0ff;border-color:#d8d3ff;color:#5143d7}
.danger-btn{border:1px solid #ffd8d8;background:#fff4f4;color:#b42318}.danger-btn:hover{background:#ffeaea;border-color:#ffc5c5}
.add-row-btn{background:#fff;border:1px dashed #cfd4dd}.add-row-btn:hover{border-color:#a9a2f5;background:#faf9ff;color:#5143d7}
.nav-transparent-toggle{border-color:#dcd8ff;background:#f8f7ff}.nav-transparent-toggle strong{color:#5044c5}

/* Toolbars en una capa global: nunca las recortan los paneles ni el canvas */
.wb-floating-layer{position:fixed;inset:0;z-index:190;pointer-events:none;overflow:visible}
.wb-global-toolbar{position:fixed;pointer-events:auto;display:flex;align-items:center;gap:4px;max-width:calc(100vw - 16px);background:#111827;color:#fff;border:1px solid rgba(255,255,255,.13);border-radius:10px;box-shadow:0 16px 36px rgba(15,23,42,.28);font-family:Inter,system-ui,sans-serif;white-space:nowrap}
.wb-global-toolbar .ui-svg{width:14px;height:14px;display:block}
.wb-global-typebar{min-height:40px;padding:5px}
.wb-global-typebar button{height:29px;min-width:29px;border:0;border-radius:7px;background:transparent;color:#fff;cursor:pointer;font:700 11px system-ui}
.wb-global-typebar button:hover,.wb-global-typebar button.active{background:rgba(255,255,255,.14)}
.wb-global-typebar .wb-type-font{max-width:132px;padding:0 9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left}
.wb-global-typebar label{height:29px;display:flex;align-items:center;border-radius:7px;background:#fff;color:#111827;overflow:hidden}
.wb-global-typebar label input{width:48px;height:29px;border:0;padding:0 3px 0 7px;outline:0;font:700 11px system-ui}
.wb-global-typebar label span{padding-right:6px;color:#8b92a0;font:700 8px system-ui}
.wb-global-typebar .wb-type-color{width:28px;height:28px;border:1px solid rgba(255,255,255,.22);border-radius:7px;background:transparent;padding:2px;cursor:pointer}
.wb-global-free-toolbar{min-height:34px;padding:4px;gap:2px}
.wb-global-free-toolbar>span{padding:0 7px;color:#dbe1ea;font:700 9px/26px system-ui;max-width:130px;overflow:hidden;text-overflow:ellipsis}
.wb-global-free-toolbar button{height:26px;min-width:27px;border:0;border-radius:6px;background:transparent;color:#fff;cursor:pointer;display:grid;place-items:center}
.wb-global-free-toolbar button:hover,.wb-global-free-toolbar button.active{background:#6d5dfc}.wb-global-free-toolbar.compact>span{display:none}

@media(max-width:1100px){
  .theme-color-control{grid-template-columns:minmax(0,1fr)}
  .field-inline,.type-size-row,.loose-position-grid,.field-grid-4,.corner-grid{grid-template-columns:minmax(0,1fr)!important}
  .inspector-actions,.free-layer-actions,.free-inspector-actions{grid-template-columns:minmax(0,1fr)!important}
}

/* v29 · acabado visual adicional de ambos paneles */
.block-card,.element-card,.page-row,.upload-tile{border-radius:11px;transition:border-color .15s,background .15s,box-shadow .15s,transform .15s}
.block-card,.element-card{padding:10px;border:1px solid #e7e9ee;background:#fff}
.block-card:hover,.element-card:hover{border-color:#cfc9ff;background:#fcfbff;box-shadow:0 5px 16px rgba(15,23,42,.055);transform:translateY(-1px)}
.page-row{border:1px solid transparent}.page-row:hover{border-color:#e5e7ec;background:#fff}.page-row.active{border-color:#ddd8ff;background:#f4f2ff}
.upload-tile{border-color:#d7dbe3;background:#fff;min-height:112px}.upload-tile:hover{border-color:#aca4f7;background:#faf9ff;box-shadow:0 5px 16px rgba(109,93,252,.07)}
.panel-search input{width:100%;min-width:0;outline:none;transition:border-color .15s,box-shadow .15s}.panel-search input:focus{border-color:#9f96f6;box-shadow:0 0 0 3px rgba(109,93,252,.08)}
.right-panel .color-row,.left-panel .color-row{grid-template-columns:38px minmax(0,1fr);gap:7px}.right-panel .color-row input[type=color],.left-panel .color-row input[type=color]{width:38px;height:38px}
.right-panel .switch-row,.left-panel .switch-row{min-width:0}.right-panel .switch-row span,.left-panel .switch-row span{min-width:0;overflow-wrap:anywhere}
/* v30 · formularios, arrastre y administración */
.dashboard-head-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.form-section-manager .field-inline{align-items:end}.form-field-list{display:grid;gap:6px;margin:10px 0}.form-field-list button{width:100%;display:grid;grid-template-columns:28px minmax(0,1fr) 18px;align-items:center;gap:8px;padding:8px;border:1px solid #e5e7eb;border-radius:10px;background:#fff;text-align:left;cursor:pointer}.form-field-list button:hover{border-color:#cfc9ff;background:#fbfaff}.form-field-list button>span:first-child{width:28px;height:28px;border-radius:8px;background:#f3f4f6;display:grid;place-items:center;color:#6b7280}.form-field-list button strong,.form-field-list button small{display:block;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.form-field-list button strong{font-size:.72rem}.form-field-list button small{font-size:.62rem;color:#8b93a1;margin-top:1px}.form-field-list button em{font-style:normal;color:#a1a7b3}.form-options-field[hidden]{display:none!important}
.element-card.dragging,.block-card:active{opacity:.68}.canvas-stage.wb-library-dragging{cursor:copy}.wb-loose-custom{overflow:visible}
@media(max-width:700px){.dashboard-head-actions{width:100%}.dashboard-head-actions>*{flex:1}.form-section-manager .field-inline{grid-template-columns:1fr}}


/* v30: arrastre de biblioteca estable por Pointer Events */
body.wb-library-pointer-dragging{user-select:none!important;-webkit-user-select:none!important;cursor:grabbing!important}
body.wb-library-pointer-dragging *{cursor:grabbing!important}
.wb-library-drag-ghost{position:fixed;z-index:2147483646;pointer-events:none;display:grid;grid-template-columns:30px 1fr;grid-template-rows:auto auto;align-items:center;gap:1px 9px;width:174px;padding:10px 12px;border:1px solid rgba(99,102,241,.22);border-radius:13px;background:rgba(255,255,255,.97);box-shadow:0 18px 45px rgba(15,23,42,.2);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.wb-library-drag-ghost>span{grid-row:1/3;width:30px;height:30px;display:grid;place-items:center;border-radius:9px;background:#f2f0ff;color:#6556e8}.wb-library-drag-ghost>span svg{width:16px;height:16px}.wb-library-drag-ghost strong{font-size:12px;line-height:1.2;color:#171923;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.wb-library-drag-ghost small{font-size:10px;color:#7b8190}
.block-card,.element-card{touch-action:pan-y}


/* v30: elementos eliminados de secciones con restauración */
.hidden-elements-manager .field-help{margin-bottom:9px}.hidden-element-list{display:grid;gap:7px}.hidden-element-list>div{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 9px;border:1px solid #e5e7eb;border-radius:10px;background:#fafbfc}.hidden-element-list span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:#4b5563}.hidden-element-list button{flex:0 0 auto;border:1px solid #dcd8ff;background:#f7f5ff;color:#6355d8;border-radius:8px;padding:6px 8px;font:inherit;font-size:11px;font-weight:750;cursor:pointer}


/* v32 · Lienzo con escala visual estable
   Los paneles pueden reducir el espacio disponible, pero nunca cambian el ancho
   lógico de Escritorio / Tablet / Móvil. El contenido se escala como una vista
   de zoom y conserva sus breakpoints y proporciones reales. */
.canvas-stage{
  position:relative;
  justify-content:center!important;
  align-items:flex-start;
}
.canvas-zoom-shell{
  --wb-canvas-scale:1;
  position:relative;
  flex:0 0 auto;
  width:1440px;
  min-width:0;
  height:1px;
  margin:0 auto;
  transition:width .12s ease,height .12s ease;
  overflow:visible;
}
.canvas-zoom-shell>.canvas-frame{
  position:absolute!important;
  inset:0 auto auto 0;
  max-width:none!important;
  margin:0!important;
  transform:scale(var(--wb-canvas-scale));
  transform-origin:top left;
  transition:transform .12s ease,box-shadow .18s ease;
  will-change:transform;
}
.canvas-frame.desktop{width:1440px!important;min-width:1440px!important;max-width:none!important}
.canvas-frame.tablet{width:768px!important;min-width:768px!important;max-width:none!important}
.canvas-frame.mobile{width:390px!important;min-width:390px!important;max-width:none!important}
.canvas-stage[data-canvas-scaled="1"] .canvas-zoom-shell>.canvas-frame{
  box-shadow:0 14px 46px rgba(15,23,42,.14);
}

@media(max-width:700px){
  .canvas-stage{justify-content:center!important}
  .canvas-frame.desktop{width:1440px!important;min-width:1440px!important}
  .canvas-frame.tablet{width:768px!important;min-width:768px!important}
  .canvas-frame.mobile{width:390px!important;min-width:390px!important}
}

/* v33 · Iconos direccionales de orden de secciones */

/* v34 · El contenido del canvas conserva su zoom; las herramientas internas compensan la escala desde Shadow DOM. */
.wb-floating-layer,.wb-global-toolbar{scale:1!important}


/* v37 · Precisión, multiselección y pulido visual */
.wb-global-multi-toolbar{min-height:36px;padding:4px;gap:3px}
.wb-global-multi-toolbar>span{padding:0 8px;color:#e5e9f0;font:750 9px/27px Inter,system-ui,sans-serif;max-width:145px;overflow:hidden;text-overflow:ellipsis}
.wb-global-multi-toolbar button{width:28px;height:28px;min-width:28px;padding:0;border:0;border-radius:7px;background:transparent;color:#fff;display:grid;place-items:center;cursor:pointer}
.wb-global-multi-toolbar button:hover{background:#6d5dfc}
.wb-global-multi-toolbar .ui-svg{width:14px;height:14px;margin:0!important}
.multi-selection-card{border-color:#ddd8ff!important;background:linear-gradient(180deg,#fcfbff,#fff)!important}
.multi-inspector-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important}
/* Los SVG nunca se deforman aunque un botón o grid cambie de relación de aspecto. */
button>.ui-svg,.icon-btn>.ui-svg,.element-type-icon>.ui-svg,.block-icon>.ui-svg,.element-card-icon>.ui-svg{flex:0 0 auto!important;align-self:center;justify-self:center;object-fit:contain}
button>.ui-svg{vertical-align:middle!important}
/* Controles de panel: evita que etiquetas largas o iconos empujen el ancho lateral. */
.left-panel *,.right-panel *{min-width:0}
.left-panel button,.right-panel button{max-width:100%}
.inspector-actions>button,.multi-inspector-actions>button{display:flex;align-items:center;justify-content:center;gap:6px;overflow:hidden}
.inspector-actions>button .ui-svg,.multi-inspector-actions>button .ui-svg{flex:0 0 14px!important}
@media(max-width:1100px){.multi-inspector-actions{grid-template-columns:minmax(0,1fr)!important}}


/* v38 · Selección por marco en coordenadas reales + acciones de panel sin desbordes */
/* El marco vive fuera del canvas escalado. clientX/clientY y getBoundingClientRect
   comparten así el mismo sistema de coordenadas del viewport. */
.wb-floating-layer>.wb-marquee-select{
  position:fixed!important;
  z-index:260!important;
  pointer-events:none!important;
  box-sizing:border-box!important;
  border:1.5px solid #6d5dfc!important;
  border-radius:4px;
  background:rgba(109,93,252,.10)!important;
  box-shadow:0 0 0 1px rgba(255,255,255,.72) inset,0 3px 12px rgba(68,55,190,.10)!important;
  transform:none!important;
  scale:1!important;
  margin:0!important;
}

/* Los grupos de acciones del inspector usan una sola columna: evita que textos
   como “Deseleccionar” se compriman o salgan de la caja en paneles estrechos. */
.inspector-actions,
.multi-inspector-actions,
.free-layer-actions,
.free-inspector-actions{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:7px!important;
  width:100%!important;
  min-width:0!important;
}

/* Botones con texto del editor: tamaño flexible, icono fijo y texto siempre
   contenido dentro del botón. Se aplica a todos los patrones equivalentes. */
.right-panel .soft-btn,
.right-panel .danger-btn,
.right-panel .danger-outline-btn,
.right-panel .add-row-btn,
.right-panel .section-link-copy,
.right-panel .inspector-actions>button,
.right-panel .multi-inspector-actions>button,
.right-panel .free-layer-actions>button,
.right-panel .free-inspector-actions>button,
.left-panel .soft-btn,
.left-panel .danger-btn,
.left-panel .add-row-btn{
  width:100%;
  min-width:0!important;
  max-width:100%!important;
  min-height:38px;
  height:auto!important;
  padding:8px 10px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  white-space:normal!important;
  overflow:hidden!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
  line-height:1.22!important;
  text-align:center!important;
}
.right-panel .soft-btn>.ui-svg,
.right-panel .danger-btn>.ui-svg,
.right-panel .danger-outline-btn>.ui-svg,
.right-panel .add-row-btn>.ui-svg,
.right-panel .section-link-copy>.ui-svg,
.right-panel .inspector-actions>button>.ui-svg,
.right-panel .multi-inspector-actions>button>.ui-svg,
.right-panel .free-layer-actions>button>.ui-svg,
.right-panel .free-inspector-actions>button>.ui-svg,
.left-panel .soft-btn>.ui-svg,
.left-panel .danger-btn>.ui-svg,
.left-panel .add-row-btn>.ui-svg{
  width:14px!important;
  height:14px!important;
  min-width:14px!important;
  min-height:14px!important;
  max-width:14px!important;
  max-height:14px!important;
  flex:0 0 14px!important;
  margin:0!important;
  transform:none!important;
  object-fit:contain!important;
}

/* Evita que controles compactos con texto largo empujen el ancho del panel. */
.right-panel button,.left-panel button{box-sizing:border-box;min-width:0;max-width:100%}
.right-panel .field-help,.left-panel .field-help{overflow-wrap:anywhere}


/* v39 · Selección estable, auto-scroll lógico y navegación sin botones fantasma */
/* Durante un gesto continuo las barras no deben destruirse/reaparecer visualmente. */
body.wb-marquee-active .wb-global-toolbar,
body.wb-dragging-element .wb-global-toolbar{
  opacity:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
  transition:none!important;
}
body.wb-marquee-active .wb-floating-layer,
body.wb-dragging-element .wb-floating-layer{
  transition:none!important;
}
/* Los handles internos tampoco pestañean durante el movimiento; vuelven al soltar. */
#canvasMount.wb-pointer-moving .wb-free-box,
body.wb-dragging-element .wb-free-box{
  opacity:0!important;
  pointer-events:none!important;
  transition:none!important;
}
/* El botón de volver junto a “Inicio” siempre muestra una flecha real, incluso si
   un SVG no llegara a hidratarse. */
.crumb-back{
  width:30px!important;
  height:30px!important;
  flex:0 0 30px;
  display:grid!important;
  place-items:center!important;
  padding:0!important;
  margin:0!important;
  line-height:0!important;
  color:#5e6674!important;
  border:1px solid #e2e5ea!important;
  border-radius:8px!important;
  background:#fff!important;
  box-shadow:0 1px 2px rgba(15,23,42,.03);
}
.crumb-back:hover{color:#5547d8!important;border-color:#cbc5ff!important;background:#f8f7ff!important}
.crumb-back-icon{
  width:16px;
  height:16px;
  display:grid;
  place-items:center;
  padding:0!important;
  margin:0!important;
  background:transparent!important;
  border-radius:0!important;
  color:currentColor!important;
  font-style:normal;
  line-height:0;
}
.crumb-back-icon .ui-svg{width:16px!important;height:16px!important;display:block}

/* v40 · Barra contextual completa para selección múltiple */
.wb-global-multi-toolbar{
  min-height:40px;
  max-width:min(760px,calc(100vw - 20px));
  padding:4px;
  gap:4px;
  overflow-x:auto;
  overflow-y:hidden;
  scrollbar-width:none;
  overscroll-behavior:contain;
}
.wb-global-multi-toolbar::-webkit-scrollbar{display:none}
.wb-global-multi-toolbar>.wb-multi-summary{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  height:30px;
  max-width:180px;
  padding:0 10px;
  margin-right:2px;
  border-right:1px solid rgba(255,255,255,.12);
  color:#f3f4f6;
  font:750 10px/1 Inter,system-ui,sans-serif;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.wb-global-multi-toolbar>.wb-multi-actions{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  gap:3px;
  min-width:max-content;
}
.wb-global-multi-toolbar .wb-multi-actions>button{
  width:auto;
  min-width:34px;
  height:30px;
  padding:0 9px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  border:0;
  border-radius:7px;
  background:transparent;
  color:#fff;
  cursor:pointer;
  font:700 10px/1 Inter,system-ui,sans-serif;
  white-space:nowrap;
  flex:0 0 auto;
}
.wb-global-multi-toolbar .wb-multi-actions>button:hover{background:#6d5dfc}
.wb-global-multi-toolbar .wb-multi-actions>button.is-danger{color:#fecaca}
.wb-global-multi-toolbar .wb-multi-actions>button.is-danger:hover{background:#b4232f;color:#fff}
.wb-global-multi-toolbar .wb-multi-actions>button b{font:inherit;color:inherit;white-space:nowrap}
.wb-global-multi-toolbar .wb-multi-actions .ui-svg{width:14px!important;height:14px!important;min-width:14px;min-height:14px;flex:0 0 14px;margin:0!important}
@media(max-width:640px){
  .wb-global-multi-toolbar>.wb-multi-summary{max-width:120px;padding-inline:8px}
  .wb-global-multi-toolbar .wb-multi-actions>button{padding-inline:7px}
}


/* v42 · Zoom exclusivo del lienzo
   La interfaz permanece a tamaño físico normal; solo la página editada cambia de escala. */
.workspace-center{
  flex:1 1 auto;
  min-width:220px;
  padding:0 10px;
  overflow:visible;
}
.canvas-zoom-control{
  --wb-zoom-progress:47.4%;
  width:min(390px,100%);
  min-width:220px;
  height:34px;
  margin:0 auto;
  padding:3px 5px;
  display:flex;
  align-items:center;
  gap:5px;
  border:1px solid #dde1e8;
  border-radius:12px;
  background:linear-gradient(180deg,#fff,#f8f9fb);
  box-shadow:0 3px 10px rgba(15,23,42,.06),inset 0 1px 0 rgba(255,255,255,.9);
}
.canvas-zoom-control button{
  flex:0 0 auto;
  height:26px;
  border:0;
  border-radius:8px;
  background:transparent;
  color:#4d5565;
  cursor:pointer;
  font-weight:800;
  line-height:1;
  transition:background .14s ease,color .14s ease,box-shadow .14s ease;
}
.canvas-zoom-control button:hover{background:#eef0f5;color:#1f2937}
.canvas-zoom-step{
  width:27px;
  padding:0;
  font-size:16px;
}
.canvas-zoom-value{
  min-width:48px;
  padding:0 7px;
  font-size:10.5px;
  font-variant-numeric:tabular-nums;
  color:#303745!important;
  background:#f1f3f7!important;
}
.canvas-zoom-fit{
  min-width:54px;
  padding:0 8px;
  font-size:9.5px;
}
.canvas-zoom-fit.active{
  background:#ece9ff!important;
  color:#5d50d7!important;
  box-shadow:inset 0 0 0 1px #d9d4ff;
}
.canvas-zoom-range{
  --wb-zoom-progress:47.4%;
  flex:1 1 120px;
  min-width:70px;
  max-width:150px;
  height:22px;
  margin:0 1px;
  padding:0;
  appearance:none;
  -webkit-appearance:none;
  background:transparent;
  cursor:pointer;
}
.canvas-zoom-range::-webkit-slider-runnable-track{
  height:4px;
  border-radius:999px;
  background:linear-gradient(90deg,#6d5dfc 0 var(--wb-zoom-progress),#dfe3ea var(--wb-zoom-progress) 100%);
  box-shadow:inset 0 1px 2px rgba(15,23,42,.08);
}
.canvas-zoom-range::-webkit-slider-thumb{
  appearance:none;
  -webkit-appearance:none;
  width:15px;
  height:15px;
  margin-top:-5.5px;
  border:3px solid #fff;
  border-radius:50%;
  background:#6d5dfc;
  box-shadow:0 2px 7px rgba(68,55,190,.32);
}
.canvas-zoom-range::-moz-range-track{
  height:4px;
  border:0;
  border-radius:999px;
  background:#dfe3ea;
}
.canvas-zoom-range::-moz-range-progress{
  height:4px;
  border-radius:999px;
  background:#6d5dfc;
}
.canvas-zoom-range::-moz-range-thumb{
  width:11px;
  height:11px;
  border:3px solid #fff;
  border-radius:50%;
  background:#6d5dfc;
  box-shadow:0 2px 7px rgba(68,55,190,.32);
}
.canvas-zoom-range:focus-visible{outline:none}
.canvas-zoom-range:focus-visible::-webkit-slider-thumb{box-shadow:0 0 0 3px rgba(109,93,252,.18),0 2px 7px rgba(68,55,190,.32)}
.canvas-stage[data-zoom-overflow="1"]{justify-content:flex-start!important}
.canvas-zoom-shell.wb-user-zooming,.canvas-zoom-shell.wb-drag-zoom-frozen{transition:none!important}
.canvas-zoom-shell.wb-user-zooming>.canvas-frame,.canvas-zoom-shell.wb-drag-zoom-frozen>.canvas-frame{transition:none!important}
.canvas-stage[data-zoom-mode="manual"] .canvas-zoom-shell>.canvas-frame{will-change:transform}
@media(max-width:1120px){
  .canvas-zoom-control{max-width:300px}
  .canvas-zoom-range{max-width:100px}
  .canvas-zoom-fit{min-width:45px;padding-inline:6px}
}
@media(max-width:900px){
  .workspace-center{display:flex!important;min-width:180px;padding-inline:6px}
  .canvas-zoom-control{min-width:180px;max-width:290px}
  .canvas-zoom-range{min-width:56px;max-width:90px}
}
@media(max-width:700px){
  .canvas-zoom-fit{font-size:0;width:28px;min-width:28px;padding:0}
  .canvas-zoom-fit:before{content:'↔';font-size:13px}
  .canvas-zoom-value{min-width:43px}
  .canvas-zoom-range{max-width:72px}
}


/* v44 · Secciones modernas y controles responsive */
.inspector-section-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:12px}.inspector-section-title-row h4{margin:0}.inspector-section-title-row small{display:block;margin-top:3px;color:#87909f;font-size:9.5px;line-height:1.35}.visibility-current,.menu-pro-badge{flex:0 0 auto;padding:4px 7px;border-radius:999px;background:#f0edff;color:#6254d8;font-size:8px;font-weight:900;letter-spacing:.05em}.section-visibility-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.visibility-device{position:relative;min-width:0;padding:9px 6px;border:1px solid #e2e6ed;border-radius:11px;background:#f8f9fb;text-align:center;cursor:pointer;transition:.16s}.visibility-device input{position:absolute;opacity:0;pointer-events:none}.visibility-device>span{display:grid;place-items:center;width:26px;height:26px;margin:0 auto 5px;border-radius:8px;background:#e9edf3;color:#7b8493}.visibility-device>span .ui-svg{width:13px;height:13px}.visibility-device strong,.visibility-device small{display:block;overflow:hidden;text-overflow:ellipsis}.visibility-device strong{font-size:9px;color:#3f4754}.visibility-device small{font-size:7.5px;color:#9aa2af}.visibility-device.active{border-color:#c9c2ff;background:#f3f1ff;box-shadow:inset 0 0 0 1px rgba(109,93,252,.09)}.visibility-device.active>span{background:#6d5dfc;color:#fff}.visibility-device.active small{color:#6658db}.nav-menu-manager{background:linear-gradient(180deg,#fbfbfe,#fff)}.nav-mobile-config{margin-top:12px;padding-top:12px;border-top:1px solid #e8ebf0}.nav-mobile-master{margin-bottom:12px}.nav-color-settings{display:grid;grid-template-columns:1.25fr .8fr .8fr;gap:7px;margin:8px 0}.nav-color-settings label{display:grid;gap:5px;min-width:0;color:#697383;font-size:8px;font-weight:800}.nav-color-settings input{min-width:0;width:100%;height:33px}.nav-color-settings input[type=color]{padding:3px}.compact-switch{align-self:end;min-height:54px}.section-modern-context{background:linear-gradient(180deg,#fbfbfe,#fff)}.section-appearance-modern{background:#fcfcfd}.wb-toolbar-sep{width:1px!important;height:20px!important;min-width:1px!important;background:rgba(255,255,255,.15)!important;margin:0 2px!important}
@media(max-width:1180px){.section-visibility-grid{grid-template-columns:1fr}.visibility-device{display:grid;grid-template-columns:28px 1fr auto;align-items:center;gap:7px;text-align:left;padding:7px 8px}.visibility-device>span{margin:0}.visibility-device small{text-align:right}.nav-color-settings{grid-template-columns:1fr 1fr}.nav-color-settings label:first-child{grid-column:1/-1}}

/* v44.1 · inspector de secciones y menú */
.section-visibility-grid>*{min-width:0}.visibility-device strong,.visibility-device small{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nav-menu-manager select,.nav-menu-manager input,.nav-color-settings>*{min-width:0;max-width:100%}.nav-menu-manager .field-inline{align-items:end}.nav-menu-manager .switch-row span{min-width:0}.nav-menu-manager .switch-row small{display:block;white-space:normal;overflow-wrap:anywhere}.section-modern-context .advanced-details-body>*{min-width:0}.inspector-actions button{min-width:0;overflow:hidden;text-overflow:ellipsis}.inspector-actions button .ui-svg{flex:0 0 auto}


/* v45 · Editor de navegación ordenado y fácil de recorrer */
.nav-menu-manager{padding:12px!important;background:linear-gradient(180deg,#fbfbff 0,#fff 70%)!important}
.nav-editor-hint{display:flex;align-items:flex-start;gap:8px;margin:0 0 10px;padding:9px 10px;border:1px solid #ddd8ff;border-radius:11px;background:#f5f3ff;color:#5f55c8;font-size:9px;font-weight:650;line-height:1.4}.nav-editor-hint .ui-svg{width:14px;height:14px;flex:0 0 auto;margin-top:1px}.nav-editor-hint span{min-width:0}
.nav-settings-group{margin:8px 0;border:1px solid #e5e8ee;border-radius:13px;background:#fff;overflow:hidden;box-shadow:0 4px 14px rgba(15,23,42,.025)}.nav-settings-group>summary{list-style:none;display:grid;grid-template-columns:31px minmax(0,1fr) 16px;align-items:center;gap:9px;padding:10px;cursor:pointer;user-select:none;background:#fbfcfd}.nav-settings-group>summary::-webkit-details-marker{display:none}.nav-settings-group>summary>.ui-svg{width:13px;height:13px;color:#a0a8b6;transition:transform .18s}.nav-settings-group[open]>summary>.ui-svg{transform:rotate(180deg)}.nav-group-icon{display:grid;place-items:center;width:31px;height:31px;border-radius:9px;background:#f0edff;color:#6658d9}.nav-group-icon .ui-svg{width:14px;height:14px}.nav-settings-group summary strong,.nav-settings-group summary small{display:block;min-width:0}.nav-settings-group summary strong{font-size:10px;color:#343b47}.nav-settings-group summary small{margin-top:2px;font-size:8px;color:#9099a7;line-height:1.3}.nav-settings-body{padding:11px;border-top:1px solid #edf0f4;background:#fff}.nav-settings-body>.field:first-child{margin-top:0}.nav-settings-body .field-inline{gap:7px}.nav-settings-body .field-inline>.field{min-width:0}.nav-settings-body input,.nav-settings-body select{max-width:100%}.nav-color-settings.two{grid-template-columns:repeat(2,minmax(0,1fr))}.nav-icon-preview{display:flex;align-items:center;gap:10px;padding:9px;margin-bottom:10px;border-radius:11px;background:#f7f8fa;border:1px solid #e8ebef}.nav-icon-preview>span{min-width:0}.nav-icon-preview strong,.nav-icon-preview small{display:block}.nav-icon-preview strong{font-size:9px;color:#464e5b}.nav-icon-preview small{font-size:8px;color:#98a0ad}.nav-icon-preview-btn{position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;width:38px;height:38px;padding:0;border:1px solid var(--preview-border);border-radius:var(--preview-radius);background:var(--preview-bg);color:var(--preview-color);flex:0 0 auto}.nav-icon-preview-btn i{display:block;width:16px;height:2px;border-radius:99px;background:currentColor}.nav-icon-preview-btn.wb-menu-icon-two-line i:nth-child(2){display:none}.nav-icon-preview-btn.wb-menu-icon-dots{flex-direction:row;gap:3px}.nav-icon-preview-btn.wb-menu-icon-dots i{width:4px;height:4px;border-radius:50%}.nav-icon-preview-btn.wb-menu-icon-plus i{position:absolute}.nav-icon-preview-btn.wb-menu-icon-plus i:nth-child(2){transform:rotate(90deg)}.nav-icon-preview-btn.wb-menu-icon-plus i:nth-child(3){display:none}
@media(max-width:1180px){.nav-color-settings{grid-template-columns:1fr 1fr}.nav-color-settings label:first-child:last-child{grid-column:1/-1}}

/* v47 · Paneles más claros, pestañas con aire y navegación de ajustes */
.editor{grid-template-columns:300px minmax(0,1fr) 330px}
.left-panel,.right-panel{background:#f8f9fb!important}
.panel-tabs{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:5px!important;
  padding:9px 8px 10px!important;
  background:rgba(255,255,255,.98)!important;
  border-bottom:1px solid #e8ebf0!important;
}
.panel-tabs button{
  min-width:0!important;
  height:39px!important;
  padding:0 6px!important;
  border:1px solid transparent!important;
  border-radius:10px!important;
  font-size:.58rem!important;
  line-height:1.05!important;
  letter-spacing:-.015em!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.panel-tabs button:hover{border-color:#e6e8ee!important;background:#f7f8fb!important}
.panel-tabs button.active{border-color:#dcd7ff!important;background:#f0edff!important;box-shadow:0 3px 10px rgba(109,93,252,.07)!important}
.panel-view{padding:16px 14px 24px!important}
.panel-search{position:sticky;top:58px;z-index:5;margin:0 0 14px;padding:4px 0 8px;background:linear-gradient(#f8f9fb 75%,rgba(248,249,251,0))}
.panel-search input{height:40px!important;padding:0 13px!important;border-radius:11px!important;background:#fff!important;box-shadow:0 2px 8px rgba(15,23,42,.03)}
.block-category{margin:0 0 14px!important;padding:11px;border:1px solid #e8ebef;border-radius:14px;background:#fff;box-shadow:0 3px 12px rgba(15,23,42,.025)}
.block-category h4{margin:0 0 9px!important;padding:0 2px;font-size:.62rem!important;color:#737c8a!important;letter-spacing:.09em!important}
.block-library-list{gap:7px!important}
.block-card{padding:10px!important;border-radius:11px!important;background:#fcfcfd!important}
.element-library-note{margin-top:12px!important;padding:11px 12px!important;border-radius:12px!important;line-height:1.45!important}

.inspector-tools{position:sticky;top:62px;z-index:15;padding:9px 11px 10px;border-bottom:1px solid #e7eaf0;background:rgba(248,249,251,.96);backdrop-filter:blur(10px)}
.inspector-search{display:grid;grid-template-columns:17px minmax(0,1fr) 24px;align-items:center;gap:7px;height:39px;padding:0 8px 0 10px;border:1px solid #dde1e8;border-radius:11px;background:#fff;box-shadow:0 2px 8px rgba(15,23,42,.035)}
.inspector-search>.ui-svg{width:15px!important;height:15px!important;color:#8a93a1}
.inspector-search input{width:100%;height:35px!important;min-height:35px!important;padding:0!important;border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;font-size:.67rem!important;color:#343b47}
.inspector-search input::-webkit-search-cancel-button{display:none}
.inspector-search button{width:24px;height:24px;border:0;border-radius:7px;background:transparent;color:#929aa7;cursor:pointer;font-size:15px;line-height:1}.inspector-search button:hover{background:#f0f1f4;color:#444c58}
.inspector-tool-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:7px}
.inspector-tool-actions button{height:29px;border:1px solid #e0e3e9;border-radius:8px;background:#fff;color:#6a7280;font-size:.57rem;font-weight:800;cursor:pointer}.inspector-tool-actions button:hover{border-color:#d6d0ff;background:#f5f3ff;color:#5e52d3}
.inspector{padding:12px 11px 28px!important}
.inspector-section{border-radius:14px!important;box-shadow:0 3px 12px rgba(15,23,42,.025)!important}
.inspector-foldable{padding:0!important;overflow:hidden}
.inspector-fold-head{width:100%;min-height:43px;padding:0 12px;display:flex;align-items:center;justify-content:space-between;gap:10px;border:0;background:#fff;color:#596272;cursor:pointer;text-align:left}
.inspector-fold-head>span:first-child{font-size:.62rem;font-weight:900;letter-spacing:.075em;text-transform:uppercase;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.inspector-fold-head>.ui-svg{width:14px!important;height:14px!important;flex:0 0 14px;color:#9aa2af;transition:transform .16s}
.inspector-foldable.is-collapsed .inspector-fold-head>.ui-svg{transform:rotate(-90deg)}
.inspector-fold-body{padding:0 12px 12px;border-top:1px solid #eef0f3}
.inspector-foldable.is-collapsed .inspector-fold-body{display:none}
.inspector-section.is-filter-hidden{display:none!important}
.inspector-filter-empty{margin:18px 2px;padding:18px;border:1px dashed #d9dde5;border-radius:12px;background:#fff;color:#818a98;font-size:.65rem;text-align:center}

/* Editor visual de movimiento */
.motion-manager{background:linear-gradient(180deg,#faf9ff 0,#fff 62%)!important;border-color:#e3dfff!important}
.motion-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:10px}.motion-title-row h4{margin:0!important}.motion-badge{flex:0 0 auto;padding:4px 7px;border-radius:999px;background:#ece9ff;color:#5e51d4;font-size:8px;font-weight:900;letter-spacing:.05em}
.motion-hint{display:flex;align-items:flex-start;gap:8px;margin-bottom:9px;padding:9px 10px;border:1px solid #e4e0ff;border-radius:11px;background:#f7f5ff;color:#6258bd;font-size:8.5px;line-height:1.45}.motion-hint .ui-svg{width:14px;height:14px;flex:0 0 14px;margin-top:1px}
.motion-group{margin:8px 0;border:1px solid #e5e8ee;border-radius:12px;background:#fff;overflow:hidden}.motion-group>summary{list-style:none;display:grid;grid-template-columns:30px minmax(0,1fr) 14px;align-items:center;gap:9px;padding:10px;cursor:pointer;background:#fbfcfd}.motion-group>summary::-webkit-details-marker{display:none}.motion-group>summary>.ui-svg:last-child{width:13px;height:13px;color:#9aa2af;transition:transform .16s}.motion-group[open]>summary>.ui-svg:last-child{transform:rotate(180deg)}
.motion-group-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#eeeaff;color:#6356d5}.motion-group-icon .ui-svg{width:14px;height:14px}.motion-group summary strong,.motion-group summary small{display:block;min-width:0}.motion-group summary strong{font-size:9.8px;color:#38404d}.motion-group summary small{margin-top:2px;color:#929aa7;font-size:8px;line-height:1.3}.motion-group-body{padding:11px;border-top:1px solid #edf0f4}
.motion-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:9px}.motion-actions button{min-height:34px;border-radius:9px;border:1px solid #ddd8ff;background:#f5f3ff;color:#5d51d1;font-size:.6rem;font-weight:850;cursor:pointer}.motion-actions button:last-child{border-color:#e3e6eb;background:#fff;color:#697281}.motion-actions button:hover{filter:brightness(.985)}
.motion-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.motion-grid .field{margin-bottom:0!important}.motion-manager select,.motion-manager input{max-width:100%}
.motion-switch{margin-top:8px!important}

@media(max-width:1180px){.editor{grid-template-columns:278px minmax(0,1fr) 306px}.panel-tabs{gap:4px!important;padding-inline:6px!important}.panel-tabs button{font-size:.54rem!important;padding-inline:4px!important}.motion-grid{grid-template-columns:1fr}}

/* v47.1 · Paneles más respirables y navegación de herramientas por grupos */
.panel-tabs{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:6px!important;
  padding:10px 9px 11px!important;
  align-items:stretch;
}
.panel-tabs button{
  min-width:0!important;
  height:39px!important;
  padding:0 10px!important;
  border-radius:10px!important;
  font-size:.62rem!important;
  line-height:1.15!important;
  letter-spacing:.015em!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.left-panel .panel-search{margin:0 0 13px!important}
.block-category,.element-group{padding:0!important;overflow:hidden!important;border:1px solid #e6e9ef!important;border-radius:13px!important;background:#fff!important;box-shadow:0 3px 12px rgba(15,23,42,.025)!important}
.block-category+.block-category,.element-group+.element-group{margin-top:10px!important}
.block-category-toggle,.element-group-toggle{
  width:100%;min-height:45px;padding:8px 10px;border:0;background:#fbfcfd;color:#3e4653;display:grid;grid-template-columns:minmax(0,1fr) 18px;align-items:center;gap:8px;text-align:left;cursor:pointer
}
.block-category-toggle>span,.element-group-toggle>span{min-width:0}.block-category-toggle strong,.block-category-toggle small,.element-group-toggle strong,.element-group-toggle small{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.block-category-toggle strong,.element-group-toggle strong{font-size:10px}.block-category-toggle small,.element-group-toggle small{margin-top:1px;color:#9aa2ae;font-size:8px;font-weight:650}.block-category-toggle>em,.element-group-toggle>em{display:grid;place-items:center;color:#9ca4b1}.block-category-toggle .ui-svg,.element-group-toggle .ui-svg{width:13px!important;height:13px!important;transition:transform .18s ease}.block-category.is-collapsed .block-category-toggle .ui-svg,.element-group.is-collapsed .element-group-toggle .ui-svg{transform:rotate(-90deg)}
.block-category .block-library-list,.element-group .element-group-grid{padding:8px 9px 10px;border-top:1px solid #edf0f4}.block-category.is-collapsed .block-library-list,.element-group.is-collapsed .element-group-grid{display:none!important}
.block-category .block-card{margin:0 0 7px!important}.block-category .block-card:last-child{margin-bottom:0!important}
.element-group .element-group-grid{margin:0!important}

.right-panel .inspector{padding-bottom:28px!important}.inspector-tools{margin:9px 10px 0!important}.inspector-section{margin:9px 10px!important;padding:12px!important;border-radius:13px!important}.inspector-section.element-context{padding:13px!important}.inspector-section h4{line-height:1.25!important}.inspector-section .field{min-width:0}.inspector-section .field label{line-height:1.35!important}.inspector-section input,.inspector-section select,.inspector-section textarea{min-width:0!important;max-width:100%!important}
.inspector-fold-head{min-height:38px!important;padding:0 2px!important}.inspector-fold-head>span{padding-right:8px;line-height:1.25}.inspector-fold-body{padding-top:10px!important}.inspector-foldable.is-collapsed .inspector-fold-body{display:none!important}.inspector-foldable.is-collapsed{padding-bottom:8px!important}.inspector-foldable.is-filter-hidden{display:none!important}.inspector[data-no-results="1"]:after{content:'No hay ajustes que coincidan con la búsqueda.';display:block;margin:18px 12px;padding:18px;border:1px dashed #dfe3e9;border-radius:12px;background:#fafbfc;color:#8d96a4;font-size:10px;text-align:center}

.motion-manager{padding:12px!important;border-color:#ddd9ff!important;background:linear-gradient(180deg,#fbfaff,#fff 60%)!important}
.motion-title-row{display:grid!important;grid-template-columns:31px minmax(0,1fr) auto!important;align-items:center!important;gap:9px!important;margin-bottom:8px!important}.motion-title-icon{display:grid;place-items:center;width:31px;height:31px;border-radius:9px;background:#eeeaff;color:#6557db}.motion-title-icon .ui-svg{width:14px!important;height:14px!important}.motion-title-row h4{margin:0!important;font-size:10.5px!important}.motion-title-row small{display:block;margin-top:2px;color:#8b94a2;font-size:8px;line-height:1.35}.motion-badge{align-self:start;padding:4px 7px;border-radius:999px;background:#f0edff;color:#6558d6;font-size:7.5px;font-weight:900;white-space:nowrap}.motion-hint{margin:7px 0 9px;padding:8px 9px;border:1px solid #ebe8ff;border-radius:9px;background:#f8f7ff;color:#7066b7;font-size:8px;line-height:1.45}.motion-group{margin-top:8px;border:1px solid #e7e9ef;border-radius:11px;background:#fff;overflow:hidden}.motion-group>summary{list-style:none;display:grid;grid-template-columns:28px minmax(0,1fr) 14px;align-items:center;gap:8px;padding:9px;cursor:pointer;background:#fbfcfd}.motion-group>summary::-webkit-details-marker{display:none}.motion-group>summary>.ui-svg{width:12px!important;height:12px!important;color:#a0a8b4;transition:transform .16s}.motion-group[open]>summary>.ui-svg{transform:rotate(180deg)}.motion-group-icon{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:#f1efff;color:#6659d8}.motion-group-icon .ui-svg{width:13px!important;height:13px!important}.motion-group summary strong,.motion-group summary small{display:block;min-width:0}.motion-group summary strong{font-size:9.5px;color:#404754}.motion-group summary small{margin-top:1px;color:#969eaa;font-size:7.5px;line-height:1.3}.motion-group-body{padding:10px;border-top:1px solid #eef0f4}.motion-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.motion-switch{display:flex;align-items:flex-start;gap:8px;margin:8px 0;padding:8px;border-radius:9px;background:#f8f9fb}.motion-switch input{margin-top:2px}.motion-switch span{min-width:0}.motion-switch strong,.motion-switch small{display:block}.motion-switch strong{font-size:8.5px;color:#4c5461}.motion-switch small{margin-top:2px;color:#929ba8;font-size:7.5px;line-height:1.35}.motion-actions{display:flex;justify-content:flex-end;margin-top:8px}.motion-actions .soft-btn{width:100%;justify-content:center!important}.motion-actions .ui-svg{width:13px!important;height:13px!important}

@media(max-width:1180px){.panel-tabs button{padding-inline:7px!important;font-size:.59rem!important}.motion-grid{grid-template-columns:1fr}.motion-title-row{grid-template-columns:28px minmax(0,1fr)}.motion-badge{grid-column:2;justify-self:start;margin-top:-4px}}

/* v48 · Animación práctica e inteligente */
.smart-motion-card{margin:10px 12px 16px;padding:14px;border:1px solid #ddd9ff;border-radius:16px;background:linear-gradient(145deg,#fbfaff,#f5f3ff);box-shadow:0 8px 22px rgba(82,68,190,.06)}
.smart-motion-head{display:flex;align-items:flex-start;gap:10px}.smart-motion-head>span{display:grid;place-items:center;width:32px;height:32px;flex:0 0 32px;border-radius:10px;background:#6d5dfc;color:#fff}.smart-motion-head .ui-svg{width:16px;height:16px}.smart-motion-head strong,.smart-motion-head small{display:block}.smart-motion-head strong{font-size:12px;color:#262333}.smart-motion-head small{margin-top:3px;color:#747083;font-size:9.5px;line-height:1.45}.smart-motion-controls{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:7px;margin-top:12px;align-items:stretch}.smart-motion-controls select{min-width:0;height:36px;border:1px solid #d9d6e7;border-radius:10px;background-color:#fff;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236d5dfc' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 11px center;background-size:12px 12px;padding:0 34px 0 11px;color:#302d3c;font-size:10px;font-weight:750;line-height:36px;appearance:none;-webkit-appearance:none;cursor:pointer;outline:none}.smart-motion-controls select:hover{border-color:#b8b0f7;background-color:#fdfcff}.smart-motion-controls select:focus{border-color:#8f84ee;box-shadow:0 0 0 3px rgba(109,93,252,.10)}.smart-motion-controls button{min-height:36px;padding-inline:10px}.smart-motion-note{margin-top:9px;padding:8px 9px;border-radius:9px;background:rgba(255,255,255,.72);color:#746f82;font-size:9px;line-height:1.45}
.motion-priority-note,.motion-inherited-note{display:flex;align-items:flex-start;gap:8px;margin:9px 0;padding:9px 10px;border:1px solid #e4e0ff;border-radius:11px;background:#f8f7ff;color:#5f5877;font-size:9.5px;line-height:1.45}.motion-priority-note .ui-svg,.motion-inherited-note>.ui-svg{width:14px;height:14px;flex:0 0 14px;margin-top:1px;color:#6658dd}.motion-inherited-note strong,.motion-inherited-note small{display:block}.motion-inherited-note small{margin-top:2px;color:#777184}.motion-quick-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:10px 0}.motion-quick-row button{display:flex;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:33px;padding:6px;border:1px solid #dddfe6;border-radius:9px;background:#fff;color:#555d69;font-size:9px;font-weight:800;cursor:pointer}.motion-quick-row button:hover{border-color:#cfc8ff;color:#5b4bd4;background:#faf9ff}.motion-quick-row .ui-svg{width:12px;height:12px}.motion-entry-inherited [data-motion-scroll]:disabled{opacity:.48;cursor:not-allowed}.motion-entry-inherited .motion-group:first-of-type .motion-group-body{background:#fafafa}
@media(max-width:1100px){.smart-motion-controls{grid-template-columns:1fr 1fr}.smart-motion-controls select{grid-column:1/-1}}


/* v50 · Animar toda la web · composición limpia y sin solapamientos */
.smart-motion-card{
  display:block!important;
  min-width:0!important;
  margin:10px 10px 16px!important;
  padding:14px!important;
  overflow:hidden!important;
  border:1px solid #e2def9!important;
  border-radius:15px!important;
  background:linear-gradient(180deg,#fbfaff 0%,#f7f6ff 100%)!important;
  box-shadow:0 6px 18px rgba(67,56,150,.055)!important;
}
.smart-motion-head{
  display:grid!important;
  grid-template-columns:36px minmax(0,1fr)!important;
  align-items:start!important;
  gap:10px!important;
  min-width:0!important;
}
.smart-motion-head-icon{
  display:grid!important;
  place-items:center!important;
  width:36px!important;
  height:36px!important;
  min-width:36px!important;
  border-radius:11px!important;
  background:linear-gradient(145deg,#7566ff,#6251e8)!important;
  color:#fff!important;
  box-shadow:0 6px 14px rgba(98,81,232,.16)!important;
}
.smart-motion-head-icon .ui-svg{width:16px!important;height:16px!important;margin:0!important}
.smart-motion-head-copy{min-width:0!important;padding-top:1px!important}
.smart-motion-head-copy strong{
  display:block!important;
  margin:0!important;
  color:#292638!important;
  font-size:11.5px!important;
  font-weight:850!important;
  line-height:1.25!important;
}
.smart-motion-head-copy small{
  display:block!important;
  margin:4px 0 0!important;
  color:#7d788c!important;
  font-size:9px!important;
  font-weight:550!important;
  line-height:1.45!important;
  overflow-wrap:anywhere!important;
}
.smart-motion-editor{
  display:block!important;
  min-width:0!important;
  margin-top:13px!important;
  padding:10px!important;
  border:1px solid #e7e4f2!important;
  border-radius:12px!important;
  background:rgba(255,255,255,.86)!important;
}
.smart-motion-field{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:6px!important;
  min-width:0!important;
  margin:0!important;
}
.smart-motion-field-label{
  display:block!important;
  color:#696474!important;
  font-size:8px!important;
  font-weight:900!important;
  line-height:1.2!important;
  letter-spacing:.065em!important;
  text-transform:uppercase!important;
}
.smart-motion-select-shell{
  position:relative!important;
  display:block!important;
  width:100%!important;
  min-width:0!important;
}
.smart-motion-select-shell select{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  height:40px!important;
  margin:0!important;
  padding:0 39px 0 11px!important;
  border:1px solid #dcd9e8!important;
  border-radius:10px!important;
  outline:none!important;
  background:#fff!important;
  background-image:none!important;
  color:#34303f!important;
  font-size:10px!important;
  font-weight:800!important;
  line-height:40px!important;
  appearance:none!important;
  -webkit-appearance:none!important;
  cursor:pointer!important;
  box-shadow:0 1px 2px rgba(15,23,42,.025)!important;
}
.smart-motion-select-shell select:hover{border-color:#bfb8ef!important;background:#fdfcff!important}
.smart-motion-select-shell select:focus{border-color:#8e83eb!important;box-shadow:0 0 0 3px rgba(109,93,252,.10)!important}
.smart-motion-select-icon{
  position:absolute!important;
  top:50%!important;
  right:12px!important;
  display:grid!important;
  place-items:center!important;
  width:16px!important;
  height:16px!important;
  margin:0!important;
  color:#6759d8!important;
  pointer-events:none!important;
  transform:translateY(-50%)!important;
}
.smart-motion-select-icon .ui-svg{display:block!important;width:13px!important;height:13px!important;margin:0!important}
.smart-motion-actions{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:8px!important;
  min-width:0!important;
  margin-top:9px!important;
}
.smart-motion-actions>button{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  width:100%!important;
  min-width:0!important;
  height:38px!important;
  min-height:38px!important;
  margin:0!important;
  padding:0 10px!important;
  border-radius:10px!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  line-height:1!important;
  box-shadow:none!important;
  transform:none!important;
}
.smart-motion-actions>button>span{display:block!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important}
.smart-motion-actions>button>.ui-svg{width:13px!important;height:13px!important;min-width:13px!important;margin:0!important;flex:0 0 13px!important}
.smart-motion-actions .smart-motion-apply{border:1px solid #6251e8!important;background:linear-gradient(135deg,#7566ff,#6251e8)!important;color:#fff!important}
.smart-motion-actions .smart-motion-apply:hover{background:linear-gradient(135deg,#6d5dfc,#5947dc)!important}
.smart-motion-actions .smart-motion-clear{border:1px solid #e0e2e8!important;background:#fff!important;color:#5f6672!important}
.smart-motion-actions .smart-motion-clear:hover{border-color:#d2cdef!important;background:#faf9ff!important;color:#584bd0!important}
.smart-motion-note{
  display:grid!important;
  grid-template-columns:15px minmax(0,1fr)!important;
  align-items:start!important;
  gap:7px!important;
  min-width:0!important;
  margin:11px 0 0!important;
  padding:10px 2px 0!important;
  border-top:1px solid #e9e6f4!important;
  border-radius:0!important;
  background:transparent!important;
  color:#7c7788!important;
  font-size:8.5px!important;
  font-weight:550!important;
  line-height:1.45!important;
}
.smart-motion-note .ui-svg{display:block!important;width:13px!important;height:13px!important;margin:1px 0 0!important;color:#7062d8!important}
.smart-motion-note>span{min-width:0!important;overflow-wrap:anywhere!important}
@media(max-width:1180px){
  .smart-motion-card{margin-inline:8px!important;padding:12px!important}
  .smart-motion-editor{padding:9px!important}
}

/* v51 · Animación global compacta: tipografía menor y botones sin recortes */
.smart-motion-card{
  padding:12px!important;
  margin:9px 9px 14px!important;
}
.smart-motion-head{
  grid-template-columns:32px minmax(0,1fr)!important;
  gap:8px!important;
}
.smart-motion-head-icon{
  width:32px!important;
  height:32px!important;
  min-width:32px!important;
  border-radius:9px!important;
}
.smart-motion-head-icon .ui-svg{width:14px!important;height:14px!important}
.smart-motion-head-copy strong{
  font-size:10.5px!important;
  line-height:1.2!important;
}
.smart-motion-head-copy small{
  margin-top:3px!important;
  font-size:8.2px!important;
  line-height:1.38!important;
}
.smart-motion-editor{
  margin-top:10px!important;
  padding:8px!important;
  border-radius:10px!important;
}
.smart-motion-field{gap:5px!important}
.smart-motion-field-label{
  font-size:7.3px!important;
  letter-spacing:.055em!important;
}
.smart-motion-select-shell select{
  height:34px!important;
  padding:0 32px 0 9px!important;
  border-radius:9px!important;
  font-size:9px!important;
  line-height:34px!important;
}
.smart-motion-select-icon{
  right:9px!important;
  width:14px!important;
  height:14px!important;
}
.smart-motion-select-icon .ui-svg{width:11px!important;height:11px!important}
.smart-motion-actions{
  grid-template-columns:repeat(2,minmax(72px,1fr))!important;
  gap:6px!important;
  margin-top:7px!important;
}
.smart-motion-actions>button{
  min-width:0!important;
  height:34px!important;
  min-height:34px!important;
  padding:0 7px!important;
  gap:4px!important;
  border-radius:9px!important;
  font-size:9px!important;
  font-weight:800!important;
  line-height:1!important;
  overflow:visible!important;
}
.smart-motion-actions>button>span{
  display:block!important;
  min-width:0!important;
  overflow:visible!important;
  text-overflow:clip!important;
  white-space:nowrap!important;
  font-size:9px!important;
  line-height:1!important;
}
.smart-motion-actions>button>.ui-svg{
  width:11px!important;
  height:11px!important;
  min-width:11px!important;
  flex:0 0 11px!important;
}
.smart-motion-note{
  grid-template-columns:13px minmax(0,1fr)!important;
  gap:5px!important;
  margin-top:8px!important;
  padding-top:8px!important;
  font-size:7.8px!important;
  line-height:1.38!important;
}
.smart-motion-note .ui-svg{width:11px!important;height:11px!important;margin-top:1px!important}
@media(max-width:1180px){
  .smart-motion-card{padding:10px!important;margin-inline:7px!important}
  .smart-motion-editor{padding:7px!important}
  .smart-motion-actions>button{padding-inline:6px!important;font-size:8.7px!important}
  .smart-motion-actions>button>span{font-size:8.7px!important}
}

/* v53 · Panel de elementos legible + video + ajuste de fondos */
.panel-tabs{
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:3px!important;
  padding:8px 6px 9px!important;
}
.panel-tabs button{
  height:36px!important;
  padding:0 3px!important;
  font-size:8.1px!important;
  line-height:1.05!important;
  letter-spacing:-.02em!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:clip!important;
}
.panel-section-title,.element-library-title{align-items:flex-start!important;gap:8px!important}
.panel-section-title>div,.element-library-title>div{min-width:0!important}
.panel-section-title strong,.element-library-title strong{font-size:11px!important;line-height:1.25!important}
.element-library-title small{max-width:100%!important;font-size:8.6px!important;line-height:1.42!important;white-space:normal!important;overflow-wrap:anywhere!important}
.element-group .element-group-grid{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:6px!important;
  padding:8px!important;
}
.element-card{
  display:grid!important;
  grid-template-columns:34px minmax(0,1fr) 22px!important;
  grid-template-rows:auto!important;
  align-items:center!important;
  column-gap:9px!important;
  min-height:58px!important;
  padding:8px 8px!important;
  border-radius:10px!important;
  text-align:left!important;
}
.element-card-icon{
  grid-row:auto!important;
  width:34px!important;
  height:34px!important;
  border-radius:9px!important;
}
.element-card-icon .ui-svg{width:17px!important;height:17px!important}
.element-card>span:nth-child(2){display:block!important;min-width:0!important;padding:0!important}
.element-card strong{
  display:block!important;
  min-width:0!important;
  font-size:9.8px!important;
  line-height:1.2!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}
.element-card small{
  display:block!important;
  min-width:0!important;
  margin-top:2px!important;
  color:#8f98a6!important;
  font-size:8px!important;
  line-height:1.32!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}
.element-card em{
  position:static!important;
  right:auto!important;
  bottom:auto!important;
  width:22px!important;
  height:22px!important;
  align-self:center!important;
  justify-self:end!important;
  opacity:.72!important;
}
.element-card em .ui-svg{width:11px!important;height:11px!important}
.element-group-toggle{min-height:43px!important;padding:8px 9px!important}
.element-group-toggle strong{font-size:9.6px!important}.element-group-toggle small{font-size:7.8px!important}
.element-library-note{font-size:8.2px!important;line-height:1.45!important;overflow-wrap:anywhere!important}
.block-card>div:nth-child(2){min-width:0!important;padding-right:24px!important}.block-card strong{font-size:10px!important;line-height:1.2!important;white-space:normal!important;overflow-wrap:anywhere!important}.block-card small{font-size:8px!important;line-height:1.35!important;white-space:normal!important;overflow-wrap:anywhere!important}

.video-manager{border-color:#dfe4ec!important;background:linear-gradient(180deg,#fbfcff,#fff)!important}
.video-manager-head{display:grid;grid-template-columns:31px minmax(0,1fr);align-items:center;gap:9px;margin-bottom:11px}.video-manager-head>span{display:grid;place-items:center;width:31px;height:31px;border-radius:9px;background:#eef0ff;color:#5f55d7}.video-manager-head .ui-svg{width:14px!important;height:14px!important}.video-manager-head h4{margin:0!important;font-size:10px!important}.video-manager-head small{display:block;margin-top:2px;color:#8d96a4;font-size:8px;line-height:1.35}
.video-toggle-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:9px 0}.video-toggle{display:flex;align-items:flex-start;gap:7px;min-width:0;padding:8px;border:1px solid #e7e9ef;border-radius:10px;background:#fafbfc;cursor:pointer}.video-toggle input{margin:2px 0 0;flex:0 0 auto}.video-toggle span{min-width:0}.video-toggle strong,.video-toggle small{display:block}.video-toggle strong{font-size:8.7px;color:#444c59}.video-toggle small{margin-top:2px;color:#929ba8;font-size:7.3px;line-height:1.3;overflow-wrap:anywhere}
.video-range{display:grid;grid-template-columns:minmax(0,1fr) 34px;align-items:center;gap:6px}.video-range input{width:100%}.video-range output{font-size:8px;font-weight:800;color:#6257d5;text-align:right}
.video-poster-card{margin-top:8px;padding:9px;border:1px solid #e8ebf0;border-radius:10px;background:#fafbfc}.video-provider-note{display:flex;align-items:flex-start;gap:7px;margin-top:9px;padding:8px 9px;border:1px solid #e8e5ff;border-radius:9px;background:#f8f7ff;color:#706987;font-size:7.8px;line-height:1.42}.video-provider-note .ui-svg{width:12px!important;height:12px!important;flex:0 0 12px;margin-top:1px}.video-provider-note span{min-width:0;overflow-wrap:anywhere}

.fill-image-fit-card{margin-top:9px;padding:9px;border:1px solid #e6e9ef;border-radius:11px;background:#fafbfc}.fill-image-fit-card>.field{margin-top:0!important}.fill-image-fit-card select{font-size:9px!important}.fill-image-fit-card .fill-texture-grid{margin-top:7px}.fill-image-fit-card input[type=range]:disabled,.fill-image-fit-card select:disabled{opacity:.45;cursor:not-allowed}.fill-fit-help{margin-top:8px!important;padding:7px 8px!important;border-radius:8px;background:#f4f3ff;color:#736bad!important;font-size:7.8px!important;line-height:1.42!important}
.fill-texture-preview{background-size:cover;background-position:center}

@media(max-width:1180px){
  .panel-tabs button{font-size:7.7px!important;padding-inline:2px!important}
  .video-toggle-grid{grid-template-columns:1fr}
}

/* v55 · Controles de subtítulos y video de fondo */
.video-caption-mode{grid-column:1/-1}.video-caption-mode .field{margin:0}.section-video-background-manager{border-color:#dfe4ec!important;background:linear-gradient(180deg,#fbfcff,#fff)!important}.section-video-background-controls{display:none;margin-top:10px;padding-top:10px;border-top:1px solid #e8ebf1}.section-video-background-controls.active{display:block}.section-video-background-manager .field-help{font-size:8.5px;line-height:1.45}.section-video-background-manager .video-provider-note{margin-top:10px}.section-video-background-manager input[type="number"],.section-video-background-manager input[type="url"],.section-video-background-manager select{min-width:0;width:100%;box-sizing:border-box}.section-video-background-manager .field-inline{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}


/* v56 · Gestor responsive de video de fondo */
.bg-video-device-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:9px 0 10px}.bg-video-device-tab{min-width:0;min-height:54px;padding:6px 4px;border:1px solid #e5e8ef;border-radius:9px;background:#fff;color:#596170;display:grid;grid-template-columns:14px minmax(0,1fr);grid-template-rows:auto auto;align-items:center;column-gap:4px;row-gap:1px;text-align:left;cursor:pointer}.bg-video-device-tab>span{grid-row:1/3;display:grid;place-items:center}.bg-video-device-tab .ui-svg{width:12px!important;height:12px!important}.bg-video-device-tab strong{min-width:0;font-size:8.2px;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bg-video-device-tab small{min-width:0;font-size:6.9px;line-height:1.15;color:#929aa8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bg-video-device-tab.active{border-color:#bdb6ff;background:#f5f3ff;color:#5146c7;box-shadow:inset 0 0 0 1px rgba(109,93,252,.08)}.bg-video-device-tab.active small{color:#756be0}.bg-video-override-toggle{margin-top:0}.bg-video-inherited-card{display:flex;align-items:flex-start;gap:8px;margin:8px 0 10px;padding:9px;border:1px solid #dfe6f4;border-radius:9px;background:#f8faff;color:#58657a}.bg-video-inherited-card>.ui-svg{width:13px!important;height:13px!important;flex:0 0 13px;margin-top:1px}.bg-video-inherited-card>div{display:grid;gap:2px;min-width:0}.bg-video-inherited-card strong{font-size:8.4px;color:#455169}.bg-video-inherited-card small{font-size:7.4px;line-height:1.4;color:#7b8798;overflow-wrap:anywhere}.responsive-background-warning{display:flex;align-items:flex-start;gap:8px;margin-top:10px;padding:9px;border:1px solid #f0dfb8;border-radius:9px;background:#fffaf0;color:#806828}.responsive-background-warning>.ui-svg{width:13px!important;height:13px!important;flex:0 0 13px;margin-top:1px}.responsive-background-warning>div{display:grid;gap:3px;min-width:0}.responsive-background-warning strong{font-size:8.2px;color:#725d20}.responsive-background-warning small{font-size:7.2px;line-height:1.42;color:#8d7a45;overflow-wrap:anywhere}.section-video-background-manager>.inspector-section-title-row{margin-bottom:2px}@media(max-width:280px){.bg-video-device-tabs{grid-template-columns:1fr}.bg-video-device-tab{min-height:42px}}

/* v60 · Corrige el separador del toolbar flotante para que no aparezca como una caja vacía */
.wb-global-free-toolbar>.wb-toolbar-sep{
  padding:0!important;
  max-width:1px!important;
  overflow:visible!important;
  text-overflow:clip!important;
  flex:0 0 1px!important;
}

/* v66 · Catálogo: tocar la tarjeta no inserta; solo el +. La tarjeta completa queda para arrastrar. */
.block-card::after{display:none!important}
.block-card{cursor:grab!important}
.block-card:active{cursor:grabbing!important}
.library-add{z-index:4!important;cursor:pointer!important;pointer-events:auto!important;opacity:.58!important}
.block-card:hover .library-add,.library-add:hover{opacity:1!important}
.library-add:hover{background:#e9e6ff!important;color:var(--primary)!important;box-shadow:0 0 0 3px rgba(109,93,252,.10)}
.element-card{cursor:grab!important}
.element-card:active{cursor:grabbing!important}
.element-card em{z-index:4!important;cursor:pointer!important;pointer-events:auto!important;opacity:.58!important}
.element-card:hover em,.element-card em:hover{opacity:1!important}
.element-card em:hover{background:#e9e6ff!important;color:var(--primary)!important;box-shadow:0 0 0 3px rgba(109,93,252,.10)}


/* v67 · Etiquetas fuera del lienzo + estado inicial limpio */
.canvas-frame.is-empty-canvas{background:transparent!important;box-shadow:none!important}
.canvas-frame.is-empty-canvas #canvasMount{min-height:560px}
.canvas-frame.is-empty-canvas:hover{box-shadow:none!important}

/* v71 · Layout determinista de paneles.
   El estado data-panel-layout es la única fuente de verdad para las columnas visibles. */
.editor[data-panel-layout="both"]{
  grid-template-columns:var(--left-w) minmax(0,1fr) var(--right-w)!important;
}
.editor[data-panel-layout="left"]{
  grid-template-columns:var(--left-w) minmax(0,1fr)!important;
}
.editor[data-panel-layout="right"]{
  grid-template-columns:minmax(0,1fr) var(--right-w)!important;
}
.editor[data-panel-layout="none"]{
  grid-template-columns:minmax(0,1fr)!important;
}
.editor[data-panel-layout="left"]>.right-panel,
.editor[data-panel-layout="right"]>.left-panel,
.editor[data-panel-layout="none"]>.left-panel,
.editor[data-panel-layout="none"]>.right-panel{
  display:none!important;
}
.editor[data-panel-layout]>.workspace{
  grid-column:auto!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  margin:0!important;
}
.editor[data-panel-layout]>.workspace>.canvas-stage{
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
}
@media(max-width:900px){
  .editor[data-panel-layout="right"],
  .editor[data-panel-layout="none"]{
    grid-template-columns:minmax(0,1fr)!important;
  }
  .editor[data-panel-layout="right"]>.right-panel{display:none!important}
}
@media(max-width:700px){
  .editor[data-panel-layout]{grid-template-columns:minmax(0,1fr)!important}
  .editor[data-panel-layout]>.left-panel,
  .editor[data-panel-layout]>.right-panel{display:none!important}
}

/* v74 · Inspector práctico del elemento Galería */
.loose-gallery-manager .gallery-add-image{display:flex;align-items:center;justify-content:center;gap:6px;height:36px;margin-bottom:10px;border-color:#cfc9ff;background:#f8f7ff;color:#5b4fd3}.loose-gallery-manager .gallery-add-image .ui-svg{width:13px!important;height:13px!important}
.loose-gallery-items{display:grid;gap:7px;max-height:440px;overflow:auto;padding-right:2px}.loose-gallery-item-editor{border:1px solid #e6e8ed;border-radius:10px;background:#fbfcfd;overflow:hidden}.loose-gallery-item-editor>summary{display:grid;grid-template-columns:42px minmax(0,1fr) 14px;align-items:center;gap:8px;padding:7px;cursor:pointer;list-style:none}.loose-gallery-item-editor>summary::-webkit-details-marker{display:none}.loose-gallery-item-editor>summary>span:nth-child(2){min-width:0}.loose-gallery-item-editor>summary strong,.loose-gallery-item-editor>summary small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.loose-gallery-item-editor>summary strong{font-size:9px;color:#3f4754}.loose-gallery-item-editor>summary small{margin-top:2px;font-size:7px;color:#9aa1ad}.loose-gallery-item-editor>summary>em{display:grid;place-items:center;color:#8e95a2}.loose-gallery-item-editor[open]>summary>em{transform:rotate(180deg)}.loose-gallery-thumb{width:42px;height:34px;border-radius:7px;overflow:hidden;background:#eef0f4;border:1px solid #e1e4e9}.loose-gallery-thumb img{width:100%;height:100%;object-fit:cover}.loose-gallery-item-body{padding:9px;border-top:1px solid #e9ebef;background:#fff}.loose-gallery-item-body textarea{min-height:54px!important}.loose-gallery-item-actions{display:grid;grid-template-columns:minmax(0,1fr) 32px 32px 32px;gap:5px}.loose-gallery-item-actions .soft-btn,.loose-gallery-item-actions .danger-outline-btn{height:31px!important;min-width:0;padding:0 7px;font-size:8px}.loose-gallery-item-actions .icon-only{display:grid;place-items:center;padding:0!important}.loose-gallery-item-actions .ui-svg{width:12px!important;height:12px!important}.loose-gallery-item-actions button:disabled{opacity:.35;cursor:not-allowed}.loose-gallery-empty{padding:16px 10px;border:1px dashed #d9dde5;border-radius:9px;text-align:center;color:#969daa;font-size:8px;line-height:1.45}.gallery-responsive-preview{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:4px 0 10px}.gallery-responsive-preview span{display:flex;align-items:center;justify-content:center;gap:4px;min-width:0;padding:7px 4px;border:1px solid #e5e2ff;border-radius:8px;background:#faf9ff;color:#7b74b2;font-size:7.5px}.gallery-responsive-preview b{color:#5549ca;font-size:10px}.gallery-static-note{margin:2px 0 0;padding:9px;border:1px solid #e5e8ef;border-radius:9px;background:#fafbfc;color:#7f8794}.loose-gallery-style .switch-row,.loose-gallery-motion .switch-row,.loose-gallery-layout .switch-row{margin-bottom:7px}

/* v75 · Ajustes prácticos y pulido del inspector de Galería */
.loose-gallery-placement .gallery-placement-buttons{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin:7px 0 8px}
.loose-gallery-placement .gallery-placement-buttons button{display:grid;grid-template-rows:18px auto;place-items:center;gap:3px;min-width:0;height:48px;padding:5px 2px;border:1px solid #e2e5eb;border-radius:9px;background:#fff;color:#646d7a;cursor:pointer;font:750 7px/1 system-ui;transition:border-color .15s ease,background .15s ease,color .15s ease,transform .15s ease}
.loose-gallery-placement .gallery-placement-buttons button:hover,.loose-gallery-placement .gallery-placement-buttons button:focus-visible{border-color:#b9b1ff;background:#f8f7ff;color:#594bd1;outline:0;transform:translateY(-1px)}
.loose-gallery-placement .gallery-placement-buttons .ui-svg{width:15px!important;height:15px!important;display:block}
.loose-gallery-placement .gallery-placement-buttons span{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gallery-advanced{margin-top:7px;border:1px solid #e6e8ed;border-radius:9px;background:#fafbfc;overflow:hidden}
.gallery-advanced>summary{padding:8px 9px;cursor:pointer;list-style:none;color:#666f7d;font-size:8px;font-weight:750}
.gallery-advanced>summary::-webkit-details-marker{display:none}
.gallery-advanced[open]>summary{border-bottom:1px solid #e9ebef;background:#fff;color:#5146c8}
.gallery-advanced>.field-inline,.gallery-advanced>.field{margin:8px 9px}
.loose-gallery-style,.loose-gallery-motion,.loose-gallery-layout,.loose-gallery-placement{contain:layout style}

/* v77 · Figuras: popup y tiradores globales, fuera del clip-path de la figura. */
.wb-global-shape-toolbar{min-height:36px;padding:4px;gap:2px;z-index:4}
.wb-global-shape-toolbar>span:not(.wb-toolbar-sep){max-width:150px;padding:0 7px;overflow:hidden;text-overflow:ellipsis;color:#dbe1ea;font:800 9px/27px Inter,system-ui,sans-serif}
.wb-global-shape-toolbar button{width:28px;min-width:28px;height:28px;padding:0;border:0;border-radius:7px;background:transparent;color:#fff;display:grid;place-items:center;cursor:pointer}
.wb-global-shape-toolbar button:hover{background:#6d5dfc}
.wb-global-shape-toolbar .ui-svg{width:14px;height:14px;display:block}
.wb-global-shape-toolbar .wb-shape-move{cursor:grab}.wb-global-shape-toolbar .wb-shape-move:active{cursor:grabbing}
.wb-global-shape-box{position:fixed;z-index:3;pointer-events:none;box-sizing:border-box;border:1.5px solid #6d5dfc;border-radius:2px;box-shadow:0 0 0 2px rgba(109,93,252,.08);visibility:hidden}
.wb-global-shape-handle{position:absolute;width:12px;height:12px;box-sizing:border-box;border:2px solid #fff;border-radius:50%;background:#6d5dfc;box-shadow:0 1px 5px rgba(15,23,42,.28);pointer-events:auto;touch-action:none;display:block}
.wb-global-shape-handle[data-shape-resize=n]{left:50%;top:-7px;transform:translateX(-50%);cursor:n-resize}
.wb-global-shape-handle[data-shape-resize=s]{left:50%;bottom:-7px;transform:translateX(-50%);cursor:s-resize}
.wb-global-shape-handle[data-shape-resize=e]{right:-7px;top:50%;transform:translateY(-50%);cursor:e-resize}
.wb-global-shape-handle[data-shape-resize=w]{left:-7px;top:50%;transform:translateY(-50%);cursor:w-resize}
.wb-global-shape-handle[data-shape-resize=nw]{left:-7px;top:-7px;cursor:nw-resize}
.wb-global-shape-handle[data-shape-resize=ne]{right:-7px;top:-7px;cursor:ne-resize}
.wb-global-shape-handle[data-shape-resize=sw]{left:-7px;bottom:-7px;cursor:sw-resize}
.wb-global-shape-handle[data-shape-resize=se]{right:-7px;bottom:-7px;cursor:se-resize}
@media(max-width:700px){.wb-global-shape-toolbar>span:not(.wb-toolbar-sep){display:none}.wb-global-shape-handle{width:14px;height:14px}.wb-global-shape-handle[data-shape-resize=n]{top:-8px}.wb-global-shape-handle[data-shape-resize=s]{bottom:-8px}.wb-global-shape-handle[data-shape-resize=e]{right:-8px}.wb-global-shape-handle[data-shape-resize=w]{left:-8px}.wb-global-shape-handle[data-shape-resize=nw],.wb-global-shape-handle[data-shape-resize=sw]{left:-8px}.wb-global-shape-handle[data-shape-resize=ne],.wb-global-shape-handle[data-shape-resize=se]{right:-8px}.wb-global-shape-handle[data-shape-resize=nw],.wb-global-shape-handle[data-shape-resize=ne]{top:-8px}.wb-global-shape-handle[data-shape-resize=sw],.wb-global-shape-handle[data-shape-resize=se]{bottom:-8px}}

/* v80 · Páginas como árbol navegable: página → secciones → elementos */
.page-section-list{padding:4px 8px 12px 30px;display:grid;gap:7px}
.page-section-node{position:relative;border-left:1px solid #e7e9ef;padding-left:8px}
.page-section-node:before{content:"";position:absolute;left:-1px;top:15px;width:8px;height:1px;background:#e7e9ef}
.page-section-jump{width:100%;border:0;background:transparent;border-radius:9px;min-height:32px;padding:4px 6px;display:grid;grid-template-columns:20px minmax(0,1fr) auto auto;align-items:center;gap:6px;text-align:left;color:#656d7c;cursor:pointer}
.page-section-jump:hover,.page-section-jump.selected{background:#eeecff;color:#4e40d8}
.page-section-jump .page-tree-index{width:19px;height:19px;border-radius:6px;background:#eef0f4;display:grid;place-items:center;font-size:.58rem;font-weight:800;color:#777f8d}
.page-section-jump strong{font-size:.68rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.page-section-jump>small{min-width:19px;height:18px;padding:0 5px;border-radius:999px;background:#f1f2f6;color:#858c99;display:grid;place-items:center;font-size:.56rem;font-weight:800}
.page-section-jump>em{width:20px;height:20px;display:grid;place-items:center;color:#9b7a32}
.page-section-jump>em svg{width:13px;height:13px}
.page-section-node.is-hidden-device>.page-section-jump{border:1px dashed #e0c789;background:#fffaf0}
.page-section-node.is-hidden-device>.page-section-jump strong{color:#826a2f}
.page-element-list{display:grid;gap:2px;margin:3px 0 1px 14px;padding-left:9px;border-left:1px dashed #e3e6ec}
.page-element-row{width:100%;min-width:0;border:0;background:transparent;border-radius:8px;padding:5px 5px;display:grid;grid-template-columns:23px minmax(0,1fr) auto;align-items:center;gap:6px;text-align:left;color:#747b89;cursor:pointer;transition:background .12s,color .12s,transform .12s}
.page-element-row:hover{background:#f4f3ff;color:#4e40d8;transform:translateX(1px)}
.page-element-row.selected{background:#e9e6ff;color:#4938d3;box-shadow:inset 2px 0 #6d5dfc}
.page-element-icon{width:22px;height:22px;border-radius:7px;background:#f2f3f6;display:grid;place-items:center;color:#777f8e;flex:none}
.page-element-row.selected .page-element-icon{background:#fff;color:#5b4adf}
.page-element-icon svg{width:13px;height:13px}
.page-element-copy{min-width:0;display:block}
.page-element-copy strong{display:block;font-size:.63rem;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.page-element-copy small{display:block;margin-top:1px;color:#a0a6b1;font-size:.55rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.page-element-order{min-width:17px;height:17px;border-radius:6px;background:#f2f3f6;color:#a0a6b1;display:grid;place-items:center;font-size:.52rem;font-weight:800}
.page-element-row.is-hidden{background:#fff9ee;color:#8a6a22;border:1px dashed #ead39a}
.page-element-row.is-hidden:hover,.page-element-row.is-hidden.selected{background:#fff3d6;color:#74540d}
.page-element-hidden{font-style:normal;font-size:.49rem;font-weight:900;letter-spacing:.02em;text-transform:uppercase;background:#f2d995;color:#694c0d;padding:3px 5px;border-radius:999px}
.page-elements-empty{margin:3px 0 2px 14px;padding:5px 8px;border-left:1px dashed #e3e6ec;color:#adb2bc;font-size:.56rem}
.page-group.active>.page-row{margin-bottom:2px}
.page-group.active .page-name small{white-space:normal;line-height:1.25}

/* v81 · Árbol de Páginas limpio y sin colisiones con estilos antiguos */
.pages-list{gap:8px}
.page-group{overflow:hidden;border:1px solid transparent;border-radius:13px;background:#fff}
.page-group.active{border-color:#e4e0ff;background:#fcfbff;box-shadow:0 1px 0 rgba(56,46,129,.02)}
.page-group.active>.page-row{margin:0;border-color:#ddd8ff;border-radius:12px;background:#f5f3ff}
.page-row{min-width:0}
.page-row .page-name small{margin-top:2px;white-space:normal;line-height:1.3}
.page-section-list{padding:8px 8px 11px 35px;display:grid;gap:5px;background:transparent}
.page-section-node{position:relative;min-width:0;padding-left:10px;border-left:1px solid #e7e9ef}
.page-section-node:before{content:"";position:absolute;left:-1px;top:18px;width:9px;height:1px;background:#e7e9ef}
.page-section-jump{box-sizing:border-box;width:100%;min-width:0;min-height:34px;padding:5px 6px;border:0;border-radius:9px;background:transparent;display:grid;grid-template-columns:22px minmax(0,1fr) auto auto;align-items:center;gap:7px;text-align:left;color:#606978;cursor:pointer;transition:background .12s ease,color .12s ease}
.page-section-jump:hover,.page-section-jump.selected{background:#eeecff;color:#4e40d8}
.page-section-jump>.page-tree-index{box-sizing:border-box;width:21px!important;height:21px!important;margin:0!important;padding:0!important;border-radius:7px!important;background:#eef0f4!important;color:#777f8d!important;display:grid!important;place-items:center!important;font:800 .57rem/1 Inter,system-ui,sans-serif!important}
.page-section-jump>strong{min-width:0!important;margin:0!important;padding:0!important;font:800 .67rem/1.25 Inter,system-ui,sans-serif!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.page-section-jump>.page-section-count{box-sizing:border-box;min-width:0!important;width:auto!important;height:20px!important;margin:0!important;padding:0 6px!important;border-radius:999px!important;background:#f1f2f6!important;color:#858c99!important;display:flex!important;align-items:center!important;justify-content:center!important;font:800 .51rem/1 Inter,system-ui,sans-serif!important;white-space:nowrap!important}
.page-section-jump>em{width:20px;height:20px;margin:0;display:grid;place-items:center;color:#9b7a32}
.page-section-jump>em svg{width:13px;height:13px}
.page-section-node.is-hidden-device>.page-section-jump{border:1px dashed #e0c789;background:#fffaf0}
.page-section-node.is-hidden-device>.page-section-jump strong{color:#826a2f}
.page-element-list{min-width:0;display:grid;gap:3px;margin:4px 0 1px 12px;padding:1px 0 1px 10px;border-left:1px dashed #e3e6ec}
.page-element-row{box-sizing:border-box;width:100%;min-width:0;min-height:34px;padding:5px 6px;border:0;border-radius:8px;background:transparent;display:grid;grid-template-columns:24px minmax(0,1fr) auto;align-items:center;gap:7px;text-align:left;color:#727a88;cursor:pointer;transition:background .12s ease,color .12s ease}
.page-element-row:hover{background:#f4f3ff;color:#4e40d8}
.page-element-row.selected{background:#e9e6ff;color:#4938d3;box-shadow:inset 2px 0 #6d5dfc}
.page-element-row>.page-element-icon{box-sizing:border-box;width:24px!important;height:24px!important;margin:0!important;padding:0!important;border-radius:7px!important;background:#f2f3f6!important;color:#777f8e!important;display:grid!important;place-items:center!important}
.page-element-row.selected>.page-element-icon{background:#fff!important;color:#5b4adf!important}
.page-element-row>.page-element-icon svg{width:13px;height:13px}
.page-element-row>.page-element-copy{min-width:0!important;width:auto!important;height:auto!important;margin:0!important;padding:0!important;border-radius:0!important;background:transparent!important;display:block!important}
.page-element-row>.page-element-copy>strong{display:block!important;min-width:0!important;margin:0!important;padding:0!important;font:800 .63rem/1.2 Inter,system-ui,sans-serif!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.page-element-row>.page-element-copy>small{display:block!important;min-width:0!important;width:auto!important;height:auto!important;margin:2px 0 0!important;padding:0!important;border-radius:0!important;background:transparent!important;color:#9ca3af!important;font:600 .53rem/1.2 Inter,system-ui,sans-serif!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.page-element-row>.page-element-order{box-sizing:border-box;min-width:19px!important;width:19px!important;height:19px!important;margin:0!important;padding:0!important;border-radius:6px!important;background:#f2f3f6!important;color:#9ca3af!important;display:grid!important;place-items:center!important;font:800 .48rem/1 Inter,system-ui,sans-serif!important}
.page-element-row>.page-element-hidden{box-sizing:border-box;width:auto!important;height:20px!important;margin:0!important;padding:0 6px!important;border-radius:999px!important;background:#f2d995!important;color:#694c0d!important;display:flex!important;align-items:center!important;font:900 .46rem/1 Inter,system-ui,sans-serif!important;letter-spacing:.02em;text-transform:uppercase}
.page-element-row.is-hidden{border:1px dashed #ead39a;background:#fff9ee;color:#8a6a22}
.page-element-row.is-hidden:hover,.page-element-row.is-hidden.selected{background:#fff3d6;color:#74540d}
.page-elements-empty{margin:3px 0 2px 12px;padding:6px 8px;border-left:1px dashed #e3e6ec;color:#adb2bc;font-size:.55rem;line-height:1.35}
@media(max-width:760px){.page-section-list{padding-left:27px}.page-section-jump{grid-template-columns:22px minmax(0,1fr) auto}.page-section-jump>em{grid-column:3}.page-section-jump>.page-section-count{display:none!important}.page-element-list{margin-left:9px;padding-left:8px}}


/* v82 · Responsive inteligente, estilos globales y componentes reutilizables */
.design-system-card{margin:16px 0;padding:14px;border:1px solid #e2e5eb;border-radius:16px;background:#fff;box-shadow:0 8px 28px rgba(15,23,42,.045)}
.design-system-title{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:10px;align-items:center;margin-bottom:10px}.design-system-title>span{width:34px;height:34px;border-radius:10px;background:#f0efff;color:#5f4ce4;display:grid;place-items:center}.design-system-title>span svg{width:17px;height:17px}.design-system-title strong{display:block;font-size:.78rem}.design-system-title small{display:block;margin-top:2px;color:#8b93a1;font-size:.59rem;line-height:1.35}
.ds-master-switch{position:relative;width:38px;height:22px}.ds-master-switch input{position:absolute;opacity:0}.ds-master-switch i{display:block;width:38px;height:22px;border-radius:999px;background:#dfe3ea;position:relative;transition:.18s}.ds-master-switch i:after{content:"";position:absolute;width:16px;height:16px;left:3px;top:3px;border-radius:50%;background:#fff;box-shadow:0 2px 5px rgba(0,0,0,.2);transition:.18s}.ds-master-switch input:checked+i{background:#6d5dfc}.ds-master-switch input:checked+i:after{transform:translateX(16px)}
.ds-device-note{padding:8px 9px;margin-bottom:10px;border-radius:10px;background:#f7f7fb;color:#6d7480;font-size:.58rem;line-height:1.4}.ds-folds{display:grid;gap:6px;margin-bottom:10px}.ds-fold{border:1px solid #e7e9ee;border-radius:11px;background:#fbfbfc;overflow:hidden}.ds-fold>summary{list-style:none;display:grid;grid-template-columns:minmax(0,1fr) auto 14px;gap:7px;align-items:center;padding:9px 10px;cursor:pointer}.ds-fold>summary::-webkit-details-marker{display:none}.ds-fold>summary strong{font-size:.66rem}.ds-fold>summary small{font-size:.51rem;color:#9aa0aa}.ds-fold>summary svg{width:12px;height:12px;transition:transform .16s}.ds-fold[open]>summary svg{transform:rotate(90deg)}.ds-fold-body{padding:0 10px 10px}.ds-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:8px}.ds-field,.ds-color{display:grid;gap:4px}.ds-field>span,.ds-color>span{font-size:.52rem;color:#737b88;font-weight:700}.ds-field input,.ds-color input{width:100%;box-sizing:border-box}.ds-color input[type=color]{height:32px;padding:3px;border:1px solid #dfe3e9;border-radius:8px;background:#fff}.ds-check{display:flex;gap:7px;align-items:center;min-height:32px;font-size:.56rem;font-weight:700;color:#606775}
.responsive-engine-card{border-color:#dcd8ff!important;background:linear-gradient(180deg,#faf9ff,#fff)}.responsive-engine-head{display:grid;grid-template-columns:32px minmax(0,1fr);gap:9px;align-items:center;margin-bottom:10px}.responsive-engine-head>span{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:#ece9ff;color:#604de3}.responsive-engine-head svg{width:16px;height:16px}.responsive-engine-head h4{margin:0!important}.responsive-engine-head small{display:block;margin-top:2px;color:#8a91a0;font-size:.56rem;line-height:1.3}.responsive-inherit-switch{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px;align-items:start;padding:9px;border-radius:10px;background:#f3f2ff;margin-bottom:9px}.responsive-inherit-switch input{margin-top:2px}.responsive-inherit-switch strong,.responsive-inherit-switch small{display:block}.responsive-inherit-switch strong{font-size:.62rem}.responsive-inherit-switch small{margin-top:2px;color:#7e8490;font-size:.52rem;line-height:1.35}.responsive-engine-fields.is-inherited{opacity:.62}.responsive-check-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:8px 0}.responsive-check-grid label{display:grid;grid-template-columns:auto 1fr;gap:6px;align-items:start;padding:7px;border:1px solid #e5e7ec;border-radius:9px;background:#fff}.responsive-check-grid strong,.responsive-check-grid small{display:block}.responsive-check-grid strong{font-size:.55rem}.responsive-check-grid small{font-size:.48rem;color:#9197a2;line-height:1.3}
.component-manager{border-color:#dce6ff!important;background:linear-gradient(180deg,#f9fbff,#fff)}.component-manager-head{display:grid;grid-template-columns:32px minmax(0,1fr);gap:9px;align-items:center;margin-bottom:10px}.component-manager-head>span{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:#eaf1ff;color:#356fd3}.component-manager-head h4{margin:0!important}.component-manager-head small{display:block;margin-top:2px;color:#8992a1;font-size:.54rem}.component-actions{display:grid;gap:6px}.component-actions .soft-btn{width:100%}.component-library-list{display:grid;gap:7px}.component-library-list article{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;padding:8px;border:1px solid #e7eaf0;border-radius:10px;background:#fafbfc}.component-library-list article strong,.component-library-list article small{display:block}.component-library-list article strong{font-size:.62rem}.component-library-list article small{font-size:.49rem;color:#9299a5;margin-top:2px}.component-library-list .soft-btn{padding:6px 8px;font-size:.53rem}.component-library-empty{text-align:center;padding:14px 8px;color:#9299a5}.component-library-empty>span{width:34px;height:34px;border-radius:10px;background:#f0f3f8;display:grid;place-items:center;margin:0 auto 7px}.component-library-empty strong,.component-library-empty small{display:block}.component-library-empty strong{font-size:.61rem;color:#656d79}.component-library-empty small{font-size:.5rem;line-height:1.35;margin-top:3px}
@media(max-width:760px){.ds-grid-2{grid-template-columns:1fr}.responsive-check-grid{grid-template-columns:1fr}}

/* v83 · Editor enfocado: Auto Layout, multiselección y Centro de ayuda */
.panel-tabs{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:4px!important;padding:6px!important}
.panel-tabs button{min-width:0!important;min-height:30px!important;padding:5px 4px!important;font-size:.58rem!important;border-radius:8px!important}
.page-element-row.multi-selected{background:#efedff!important;color:#4b3bd3!important;box-shadow:inset 2px 0 #6d5dfc,0 0 0 1px rgba(109,93,252,.10)}
.page-element-row.is-container-child{width:calc(100% - 14px)!important;margin-left:14px!important;position:relative}
.page-element-row.is-container-child:before{content:"";position:absolute;left:-9px;top:50%;width:7px;height:1px;background:#d9dce5}
.page-element-row.is-container-child .page-element-icon{background:#f7f5ff!important;color:#6d5dfc!important}

.wb-global-multi-toolbar{max-width:min(920px,calc(100vw - 28px));flex-wrap:wrap!important;justify-content:center}
.wb-global-multi-toolbar .wb-multi-actions{display:flex;align-items:center;gap:2px;flex-wrap:wrap;justify-content:center}
.wb-global-multi-toolbar .wb-toolbar-sep{display:block;width:1px;height:20px;margin:0 2px;background:rgba(255,255,255,.18)}
.wb-global-multi-toolbar [data-multi-geo]{min-width:28px!important;padding:0!important}
.multi-geometry-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}
.multi-geometry-grid button{height:34px;border:1px solid #e1e4eb;border-radius:9px;background:#fff;color:#626b78;display:grid;place-items:center;cursor:pointer}
.multi-geometry-grid button:hover{border-color:#bbb4ff;background:#f2f0ff;color:#5946df}
.multi-geometry-grid svg{width:15px;height:15px}
.auto-layout-create-card{border-color:#dcd8ff!important;background:linear-gradient(180deg,#faf9ff,#fff)}
.auto-layout-create-card>p{margin:4px 0 10px;color:#767e8c;font-size:.58rem;line-height:1.45}
.auto-layout-create-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}
.auto-layout-create-actions .soft-btn{min-width:0;padding:7px 4px;font-size:.52rem}
.auto-layout-inspector{border-color:#d9ddff!important;background:linear-gradient(180deg,#fafaff,#fff)}
.auto-layout-head{display:grid;grid-template-columns:34px minmax(0,1fr);gap:9px;align-items:center;margin-bottom:10px}
.auto-layout-head>span{width:34px;height:34px;border-radius:10px;background:#ece9ff;color:#5e4add;display:grid;place-items:center}
.auto-layout-head>span svg{width:16px;height:16px}.auto-layout-head h4{margin:0!important}.auto-layout-head small{display:block;margin-top:2px;color:#858c99;font-size:.53rem;line-height:1.35}
.auto-layout-fields.is-inherited{opacity:.62}
.auto-layout-mode{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin-bottom:9px}
.auto-layout-mode button{min-width:0;min-height:37px;padding:5px 3px;border:1px solid #e1e4ea;border-radius:9px;background:#fff;color:#626a77;font:750 .5rem/1.15 Inter,system-ui;display:flex;gap:4px;align-items:center;justify-content:center;cursor:pointer}
.auto-layout-mode button.active{border-color:#9d93ff;background:#eeecff;color:#4c3ad1}.auto-layout-mode button:disabled{cursor:not-allowed}.auto-layout-mode svg{width:13px;height:13px}
.auto-layout-children{margin:10px 0;display:grid;gap:5px}.auto-layout-children-title{display:flex;justify-content:space-between;align-items:center;color:#747c89}.auto-layout-children-title strong{font-size:.57rem}.auto-layout-children-title small{font-size:.49rem}
.auto-layout-child-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px;align-items:center;padding:5px;border:1px solid #e8e9ee;border-radius:9px;background:#fff}
.auto-layout-child-row>button{min-width:0;border:0;background:transparent;display:grid;grid-template-columns:22px minmax(0,1fr);gap:5px;align-items:center;text-align:left;cursor:pointer}.auto-layout-child-row>button span{width:21px;height:21px;border-radius:6px;background:#f1efff;color:#6251df;display:grid;place-items:center;font-size:.48rem;font-weight:850}.auto-layout-child-row>button strong{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.57rem;color:#5f6672}.auto-layout-child-row>div{display:flex;gap:2px}.auto-layout-child-row>div button{width:25px;height:25px;padding:0;border:1px solid #e5e6eb;border-radius:7px;background:#fafafa;color:#707783;cursor:pointer}.auto-layout-child-row>div button:disabled{opacity:.35;cursor:not-allowed}
.auto-child-note{display:grid;grid-template-columns:30px minmax(0,1fr);gap:8px;align-items:center;padding:9px;margin-bottom:9px;border-radius:10px;background:#f3f2ff;color:#6556d4}.auto-child-note>svg{width:17px;height:17px;margin:auto}.auto-child-note strong,.auto-child-note small{display:block}.auto-child-note strong{font-size:.59rem}.auto-child-note small{margin-top:2px;color:#767e8d;font-size:.5rem;line-height:1.35}

/* Ayuda integrada */
.help-view{padding-bottom:30px!important}.help-panel-hero{margin:10px 10px 8px;padding:12px;border:1px solid #dedaff;border-radius:14px;background:linear-gradient(135deg,#f5f2ff,#fbfbff);display:grid;grid-template-columns:38px minmax(0,1fr);gap:10px;align-items:center}.help-panel-icon{width:38px;height:38px;border-radius:12px;background:#6d5dfc;color:#fff;display:grid;place-items:center;box-shadow:0 7px 20px rgba(109,93,252,.22)}.help-panel-icon svg{width:19px;height:19px}.help-panel-hero strong,.help-panel-hero small{display:block}.help-panel-hero strong{font-size:.76rem}.help-panel-hero small{margin-top:2px;color:#828997;font-size:.54rem;line-height:1.35}
.help-search{margin:0 10px 8px;height:38px;border:1px solid #dfe2e8;border-radius:11px;background:#fff;display:grid;grid-template-columns:30px minmax(0,1fr) 28px;align-items:center}.help-search>svg{width:14px;height:14px;margin:auto;color:#8a919e}.help-search input{width:100%;min-width:0;border:0;outline:0;background:transparent;font:600 .61rem Inter,system-ui;color:#4e5561}.help-search button{border:0;background:transparent;color:#9aa0aa;font-size:1rem;cursor:pointer}.help-quick-actions{display:grid;grid-template-columns:1.15fr .85fr;gap:6px;margin:0 10px 12px}.help-quick-actions button{min-width:0;min-height:34px;padding:6px 7px;font-size:.56rem}.help-quick-actions svg{width:13px;height:13px}
.help-content{padding:0 10px;display:grid;gap:12px}.help-category{display:grid;gap:6px}.help-category-title{display:flex;align-items:center;justify-content:space-between;padding:0 2px;color:#757d89}.help-category-title strong{font-size:.56rem;text-transform:uppercase;letter-spacing:.06em}.help-category-title span{min-width:20px;height:18px;border-radius:999px;background:#f0f1f4;display:grid;place-items:center;font-size:.49rem;font-weight:800}.help-topic-list{display:grid;gap:5px}.help-topic-card{overflow:hidden;border:1px solid #e6e8ed;border-radius:11px;background:#fff}.help-topic-card>summary{list-style:none;display:grid;grid-template-columns:31px minmax(0,1fr) 14px;gap:8px;align-items:center;padding:8px;cursor:pointer}.help-topic-card>summary::-webkit-details-marker{display:none}.help-topic-card>summary>.ui-svg{width:12px;height:12px;color:#8d94a0;transition:transform .15s}.help-topic-card[open]>summary>.ui-svg{transform:rotate(180deg)}.help-topic-icon{width:31px;height:31px;border-radius:9px;background:#f2f0ff;color:#624fe0;display:grid;place-items:center}.help-topic-icon svg{width:15px;height:15px}.help-topic-card summary strong,.help-topic-card summary small{display:block}.help-topic-card summary strong{font-size:.62rem;color:#565e6a}.help-topic-card summary small{margin-top:2px;color:#969ca7;font-size:.5rem;line-height:1.3}.help-topic-body{padding:0 9px 9px 48px}.help-topic-body p{margin:0 0 6px;color:#6f7784;font-size:.54rem;line-height:1.48}.help-tour-topic{margin-top:2px;min-height:30px;padding:5px 8px;border:1px solid #d9d4ff;border-radius:8px;background:#f4f2ff;color:#5542d2;font:800 .52rem Inter,system-ui;display:flex;align-items:center;gap:5px;cursor:pointer}.help-tour-topic svg{width:12px;height:12px}.help-no-results{padding:25px 14px;text-align:center;color:#8d94a0}.help-no-results>svg{width:24px;height:24px;margin-bottom:8px}.help-no-results strong,.help-no-results span{display:block}.help-no-results strong{font-size:.68rem;color:#666e7b}.help-no-results span{margin-top:4px;font-size:.54rem;line-height:1.4}
.wb-help-spotlight{position:fixed;z-index:100050;border:2px solid #8f82ff;border-radius:12px;box-shadow:0 0 0 9999px rgba(15,20,34,.56),0 0 0 5px rgba(109,93,252,.16);pointer-events:none;transition:left .25s ease,top .25s ease,width .25s ease,height .25s ease}
.wb-help-tour{position:fixed;z-index:100060;box-sizing:border-box;padding:15px;border:1px solid rgba(255,255,255,.12);border-radius:16px;background:#111722;color:#fff;box-shadow:0 24px 80px rgba(0,0,0,.34);transition:left .25s ease,top .25s ease;transform:none}.wb-help-tour.is-centered{transform:translate(-50%,-50%)}.help-tour-progress{height:3px;margin:-3px 0 12px;border-radius:999px;background:#2e3542;overflow:hidden}.help-tour-progress span{display:block;height:100%;border-radius:inherit;background:#8e82ff;transition:width .25s}.help-tour-head{display:grid;grid-template-columns:26px minmax(0,1fr) 28px;align-items:center;gap:6px}.help-tour-head>span{width:26px;height:26px;border-radius:8px;background:#6d5dfc;display:grid;place-items:center}.help-tour-head>span svg{width:14px;height:14px}.help-tour-head small{color:#aab1bc;font:700 .58rem Inter,system-ui}.help-tour-head button{border:0;background:transparent;color:#d9dde4;font-size:1.2rem;cursor:pointer}.wb-help-tour h3{margin:11px 0 6px;font:800 1rem/1.25 Inter,system-ui}.wb-help-tour p{margin:0;color:#c3c8d1;font:500 .72rem/1.55 Inter,system-ui}.help-tour-controls{display:grid;grid-template-columns:1fr 1.05fr 1fr;gap:5px;margin-top:14px}.help-tour-controls button{min-width:0;height:34px;padding:5px;border:1px solid #353c49;border-radius:9px;background:#1b2230;color:#e9ebef;font:750 .56rem Inter,system-ui;display:flex;align-items:center;justify-content:center;gap:4px;cursor:pointer}.help-tour-controls button:disabled{opacity:.35;cursor:not-allowed}.help-tour-controls .help-tour-play{border-color:#6d5dfc;background:#6d5dfc;color:#fff}.help-tour-controls svg{width:12px;height:12px}
@media(max-width:760px){.wb-global-multi-toolbar .wb-multi-summary{display:none}.multi-geometry-grid{grid-template-columns:repeat(5,1fr)}.auto-layout-create-actions{grid-template-columns:1fr}.wb-help-tour{max-width:calc(100vw - 22px)}.help-tour-controls{grid-template-columns:1fr 1fr}.help-tour-controls .help-tour-play{grid-column:1/-1;grid-row:1}}

/* v83.1 · Ayuda: legibilidad final */
.help-topic-card summary strong{font-size:.67rem!important;line-height:1.25}
.help-topic-card summary small{font-size:.56rem!important;line-height:1.4}
.help-topic-body p{font-size:.60rem!important;line-height:1.58!important;margin-bottom:7px!important}
.help-search input{font-size:.64rem!important}
.help-tour-topic{font-size:.56rem!important}
.help-category-title strong{font-size:.59rem!important}

/* v87 · Multiselección como una sola unidad visual */
 .wb-global-multi-box{
  position:fixed;
  box-sizing:border-box;
  z-index:188;
  pointer-events:none;
  border:2px solid #6d5dfc;
  border-radius:7px;
  box-shadow:0 0 0 1px rgba(255,255,255,.92),0 0 0 4px rgba(109,93,252,.08);
  background:transparent;
  transition:none!important;
}
.wb-global-multi-box .wb-multi-corner{
  position:absolute;
  width:8px;
  height:8px;
  border:2px solid #fff;
  border-radius:3px;
  background:#6d5dfc;
  box-shadow:0 1px 3px rgba(15,23,42,.2);
}
.wb-global-multi-box .wb-multi-corner.tl{left:-5px;top:-5px}
.wb-global-multi-box .wb-multi-corner.tr{right:-5px;top:-5px}
.wb-global-multi-box .wb-multi-corner.bl{left:-5px;bottom:-5px}
.wb-global-multi-box .wb-multi-corner.br{right:-5px;bottom:-5px}
body.wb-dragging-element .wb-global-multi-box{
  border-style:solid;
  box-shadow:0 0 0 1px rgba(255,255,255,.9),0 0 0 5px rgba(109,93,252,.10);
}
.wb-floating-layer>.wb-global-multi-box{z-index:2!important}
.wb-floating-layer>.wb-global-toolbar{z-index:3}


/* v90 · Navigator jerárquico, estados y bloqueo del editor */
.page-element-line{position:relative;display:flex;align-items:stretch;padding-left:calc(var(--tree-depth,0) * 15px);border-radius:8px;transition:.15s ease}
.page-element-line.drag-over{background:rgba(109,93,252,.10);outline:1px dashed rgba(109,93,252,.6)}
.page-element-line.is-hidden{opacity:.6}.page-element-line.is-locked .page-element-copy strong:after{content:' · bloqueado';font-size:9px;font-weight:600;color:#8b5cf6}
.page-element-line .page-element-row{flex:1;min-width:0}.page-element-actions{display:flex;align-items:center;gap:1px;opacity:0;transition:.15s ease;padding-right:3px}
.page-element-line:hover .page-element-actions,.page-element-line.is-locked .page-element-actions,.page-element-line.is-hidden .page-element-actions{opacity:1}
.page-element-actions button{width:25px;height:25px;padding:0;border:0;background:transparent;border-radius:6px;display:grid;place-items:center;color:#687083;cursor:pointer}
.page-element-actions button:hover{background:#ecebfd;color:#5b4de8}.page-element-actions .ui-svg{width:13px;height:13px}
.page-tree-branch{width:9px;min-width:9px;position:relative}.page-element-line[style*="--tree-depth:0"] .page-tree-branch{display:none}
.page-element-line:not([style*="--tree-depth:0"]) .page-tree-branch:before{content:'';position:absolute;left:2px;top:-10px;bottom:50%;border-left:1px solid #d8dbe5;border-bottom:1px solid #d8dbe5;width:6px;border-radius:0 0 0 4px}
.wb-editor-locked>.wb-loose-ui{opacity:.72}.wb-editor-locked>.wb-loose-ui .wb-loose-move,.wb-editor-locked>.wb-loose-ui .wb-loose-resize{display:none!important}
.binding-ready-note{margin-top:10px;padding:9px 10px;border:1px solid #e5e7eb;border-radius:9px;background:#fafafa;display:flex;gap:8px;align-items:flex-start;font-size:11px;line-height:1.4;color:#626a7a}.binding-ready-note .ui-svg{width:14px;height:14px;flex:none;margin-top:1px}.binding-ready-note code{font-size:10px;background:#efeff4;border-radius:4px;padding:1px 4px}
.element-state-card{border:1px solid #e5e7eb;border-radius:10px;margin-top:8px;overflow:hidden;background:#fff}.element-state-card summary{list-style:none;cursor:pointer;padding:9px 10px;display:flex;justify-content:space-between;gap:8px}.element-state-card summary::-webkit-details-marker{display:none}.element-state-card summary small{color:#9299a8;font-size:10px}.element-state-grid{padding:0 10px 10px}.hierarchy-manager select{width:100%}

/* v90 · reglas visuales del lienzo */
.canvas-frame{position:relative}
.canvas-frame:before{content:'';position:absolute;left:0;right:0;top:-14px;height:12px;pointer-events:none;opacity:.45;background:repeating-linear-gradient(90deg,transparent 0 9px,#7c8495 9px 10px,transparent 10px 49px,#4e5668 49px 50px)}
.canvas-frame:after{content:'';position:absolute;top:0;bottom:0;left:-14px;width:12px;pointer-events:none;opacity:.45;background:repeating-linear-gradient(180deg,transparent 0 9px,#7c8495 9px 10px,transparent 10px 49px,#4e5668 49px 50px)}
.design-token-list{display:grid;gap:7px;margin-bottom:9px}.design-token-row{display:grid;grid-template-columns:minmax(85px,.8fr) minmax(120px,1.2fr) 30px;gap:6px;align-items:center}.design-token-row input{min-width:0}.design-token-row button{width:30px;height:30px;border:0;border-radius:7px;background:#f2f3f6;color:#687083;display:grid;place-items:center;cursor:pointer}.design-token-row button:hover{background:#feecec;color:#b42318}.design-token-row .ui-svg{width:14px;height:14px}

/* v90 · breakpoints configurables y slots de componentes */
.breakpoint-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:7px 0 3px}
.breakpoint-summary span{min-width:0;padding:7px 5px;border:1px solid #e5e7eb;border-radius:8px;background:#fafafa;color:#6b7280;text-align:center;font-size:10px;line-height:1.25}
.breakpoint-summary b{color:#4f46e5;font-weight:800}
.component-slot-panel{border:1px solid #e4e1ff!important;background:linear-gradient(180deg,#fbfaff,#fff)}
.component-slot-head{display:grid;grid-template-columns:32px minmax(0,1fr);gap:8px;align-items:center;margin-bottom:9px}
.component-slot-head>span{width:32px;height:32px;border-radius:9px;background:#efedff;color:#5b4de8;display:grid;place-items:center}
.component-slot-head>span .ui-svg{width:15px;height:15px}.component-slot-head h4{margin:0!important}.component-slot-head small{display:block;margin-top:2px;color:#858c99;font-size:10px;line-height:1.35}
@media(max-width:760px){.breakpoint-summary{grid-template-columns:1fr}.breakpoint-summary span{text-align:left}}

/* v90b · Estados visuales claros + controles de movimiento consistentes */
.element-states-manager{
  padding:12px!important;
  border-color:#ddd9ff!important;
  background:linear-gradient(180deg,#fbfaff 0,#fff 64%)!important;
}
.element-states-manager .responsive-engine-head{margin-bottom:8px!important}
.state-help-note{
  display:grid;grid-template-columns:26px minmax(0,1fr);gap:8px;align-items:start;
  margin:8px 0 10px;padding:9px 10px;border:1px solid #e7e3ff;border-radius:10px;
  background:#f8f7ff;color:#655d87;
}
.state-help-note>.ui-svg{width:14px!important;height:14px!important;margin:2px auto 0;color:#6557db}
.state-help-note strong,.state-help-note small{display:block}
.state-help-note strong{font-size:10px;color:#4f4965}
.state-help-note small{margin-top:2px;font-size:9px;line-height:1.45;color:#817a96}
.element-state-card{
  margin:8px 0 0!important;border:1px solid #e4e6ec!important;border-radius:11px!important;
  background:#fff!important;overflow:hidden;box-shadow:0 1px 0 rgba(18,24,40,.02);
}
.element-state-card.is-active{border-color:#d9d3ff!important;box-shadow:0 0 0 2px rgba(109,93,252,.045)}
.element-state-card>summary{
  display:grid!important;grid-template-columns:minmax(0,1fr) auto 12px!important;align-items:center!important;gap:8px!important;
  min-height:42px;padding:9px 10px!important;background:#fbfcfd!important;cursor:pointer!important;
}
.element-state-card>summary:after{content:'⌄';font-size:13px;line-height:1;color:#969dac;transition:transform .15s ease}
.element-state-card[open]>summary:after{transform:rotate(180deg)}
.element-state-card>summary span{min-width:0}.element-state-card>summary strong,.element-state-card>summary small{display:block!important}
.element-state-card>summary strong{font-size:10.5px!important;line-height:1.25;color:#3f4652}
.element-state-card>summary small{margin-top:2px!important;font-size:8.8px!important;line-height:1.35;color:#9299a8!important}
.element-state-card>summary em{
  max-width:88px;padding:4px 6px;border-radius:999px;background:#f0f1f4;color:#747c89;
  font-style:normal;font-size:8px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.element-state-card.is-active>summary em{background:#efedff;color:#5c4ed4}
.element-state-body{padding:10px;border-top:1px solid #eceef2;background:#fff}
.state-enable-row{
  display:grid;grid-template-columns:18px minmax(0,1fr);gap:8px;align-items:start;
  margin:0 0 9px;padding:8px 9px;border-radius:9px;background:#f8f9fb;cursor:pointer;
}
.state-enable-row input{margin-top:2px}.state-enable-row strong,.state-enable-row small{display:block}
.state-enable-row strong{font-size:9.5px;color:#48505c}.state-enable-row small{margin-top:2px;font-size:8px;line-height:1.4;color:#929aa7}
.state-quick-row{display:grid;grid-template-columns:minmax(0,1fr) 74px;gap:7px;align-items:end;margin-bottom:9px}
.state-quick-row .field{margin:0!important}.state-quick-row .field label{font-size:8.5px!important}
.state-quick-row select{height:34px!important;min-width:0;border-radius:8px!important}
.state-preview-btn,.state-clear-btn{
  height:34px;border:1px solid #dadde5;border-radius:8px;background:#fff;color:#58606d;
  display:flex;align-items:center;justify-content:center;gap:5px;padding:0 8px;
  font:800 8.5px Inter,system-ui;cursor:pointer;transition:.14s ease;
}
.state-preview-btn:hover,.state-clear-btn:hover{border-color:#cec7ff;background:#f8f7ff;color:#5748d3}
.state-preview-btn .ui-svg,.state-clear-btn .ui-svg{width:12px!important;height:12px!important;flex:none}
.state-property-list{display:grid;gap:6px;transition:opacity .15s}.state-property-list.is-disabled{opacity:.48;pointer-events:none}
.state-property{
  min-height:38px;display:grid;grid-template-columns:17px minmax(0,1fr) auto;gap:7px;align-items:center;
  margin:0!important;padding:6px 7px;border:1px solid #eceef2;border-radius:8px;background:#fcfcfd;
}
.state-property>input[type="checkbox"]{margin:0}.state-property>span{min-width:0}.state-property strong,.state-property small{display:block}
.state-property strong{font-size:9px;color:#505763}.state-property small{margin-top:1px;font-size:7.8px;color:#989faa}
.state-color-property>input[type="color"]{
  width:31px!important;height:27px!important;padding:2px!important;border:1px solid #dfe2e8!important;border-radius:7px!important;background:#fff!important;cursor:pointer;
}
.state-range-property>div{width:108px;display:grid;grid-template-columns:minmax(0,1fr) 38px;gap:5px;align-items:center}
.state-range-property input[type="range"]{width:100%;min-width:0;margin:0;accent-color:#6d5dfc}
.state-range-property output{font-size:8px;font-weight:800;color:#68707e;text-align:right;white-space:nowrap}
.state-clear-btn{width:100%;margin-top:8px;background:#fafafa}.state-clear-btn:disabled{opacity:.42;cursor:not-allowed}
.state-copy-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important;margin-top:9px!important}
.state-copy-actions .soft-btn,.motion-actions .soft-btn{
  min-height:34px!important;height:auto!important;padding:7px 8px!important;border:1px solid #dfe2e8!important;border-radius:9px!important;
  background:#fff!important;color:#555e6b!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;
  font-size:8.8px!important;font-weight:800!important;line-height:1.2!important;box-shadow:none!important;
}
.state-copy-actions .soft-btn:hover,.motion-actions .soft-btn:hover{border-color:#cec7ff!important;background:#f8f7ff!important;color:#5748d3!important}
.state-copy-actions .soft-btn:disabled{opacity:.42!important;cursor:not-allowed!important}
.state-copy-actions .ui-svg,.motion-actions .ui-svg{width:12px!important;height:12px!important;margin:0!important;flex:none!important}

/* Movimiento y efectos: misma jerarquía visual que el resto del inspector */
.motion-manager{padding:12px!important;border-color:#ddd9ff!important;border-radius:12px!important;background:linear-gradient(180deg,#fbfaff,#fff 64%)!important}
.motion-title-row{grid-template-columns:32px minmax(0,1fr) auto!important;gap:9px!important;margin-bottom:8px!important}
.motion-title-icon{width:32px!important;height:32px!important;border-radius:9px!important}.motion-title-icon .ui-svg{width:14px!important;height:14px!important}
.motion-title-row h4{font-size:10.8px!important;line-height:1.25!important}.motion-title-row small{font-size:8.8px!important;line-height:1.4!important}
.motion-badge{padding:4px 7px!important;font-size:8px!important}.motion-hint{padding:9px 10px!important;font-size:8.8px!important;line-height:1.45!important}
.motion-group{border-radius:11px!important;border-color:#e4e6ec!important;box-shadow:0 1px 0 rgba(18,24,40,.02)}
.motion-group>summary{grid-template-columns:29px minmax(0,1fr) 13px!important;gap:8px!important;min-height:42px;padding:9px 10px!important}
.motion-group-icon{width:29px!important;height:29px!important;border-radius:8px!important}.motion-group summary strong{font-size:10px!important;line-height:1.25!important}.motion-group summary small{font-size:8.5px!important;line-height:1.4!important}
.motion-group-body{padding:10px!important}.motion-grid{gap:7px!important}.motion-switch{padding:9px!important;border-radius:9px!important}.motion-switch strong{font-size:9px!important}.motion-switch small{font-size:8px!important;line-height:1.4!important}
.motion-quick-row{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;margin:9px 0!important}
.motion-quick-row button{
  min-height:34px!important;padding:6px 5px!important;border-color:#dfe2e8!important;border-radius:9px!important;background:#fff!important;
  color:#58606d!important;font-size:8.6px!important;font-weight:800!important;line-height:1.15!important;box-shadow:none!important;
}
.motion-quick-row button:hover{border-color:#cec7ff!important;background:#f8f7ff!important;color:#5748d3!important}.motion-quick-row .ui-svg{width:12px!important;height:12px!important}
.motion-actions{margin-top:8px!important}.motion-priority-note,.motion-inherited-note{font-size:8.8px!important;line-height:1.45!important}
@media(max-width:760px){.state-quick-row{grid-template-columns:1fr}.state-preview-btn{width:100%}.state-range-property>div{width:96px}.state-copy-actions{grid-template-columns:1fr!important}.motion-quick-row{grid-template-columns:1fr!important}}

/* v90c · Biblioteca multimedia profesional */
.media-grid{align-items:start}
.media-asset{aspect-ratio:auto!important;min-width:0;overflow:hidden!important;display:grid;grid-template-rows:auto auto;background:#fff!important;border:1px solid #e4e7ec!important;border-radius:12px!important;cursor:pointer!important;box-shadow:0 1px 2px rgba(15,23,42,.025);transition:border-color .15s,box-shadow .15s,transform .15s}
.media-asset:hover{border-color:#bdb7fb!important;box-shadow:0 7px 18px rgba(83,70,190,.10);transform:translateY(-1px)}
.media-asset:hover:after{display:none!important;content:none!important}
.media-thumb{aspect-ratio:1/1;overflow:hidden;background:#f2f4f7;position:relative}
.media-thumb img{width:100%;height:100%;display:block;object-fit:cover;object-position:center center!important}
.media-asset-meta{min-width:0;padding:8px 9px 9px;display:grid;gap:2px;border-top:1px solid #eef0f3}
.media-asset-meta strong{display:block;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.7rem;color:#303745;font-weight:800}
.media-asset-meta small{font-size:.61rem;color:#9299a7}
.media-asset-actions{position:absolute;top:6px;right:6px;display:flex;gap:4px;opacity:0;transform:translateY(-2px);transition:.15s;z-index:3}
.media-asset:hover .media-asset-actions,.media-asset:focus-within .media-asset-actions{opacity:1;transform:none}
.media-asset-actions button{width:29px;height:29px;border:1px solid rgba(255,255,255,.68);border-radius:8px;display:grid;place-items:center;background:rgba(17,24,39,.82);color:#fff;backdrop-filter:blur(5px);cursor:pointer;box-shadow:0 3px 10px rgba(15,23,42,.16)}
.media-asset-actions button:hover{background:#6d5dfc;border-color:#6d5dfc}
.media-asset-actions button:last-child:hover{background:#dc3545;border-color:#dc3545}
.media-asset-actions .ui-svg{width:14px!important;height:14px!important}
.media-picker-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important;margin-top:16px!important;max-height:430px;overflow:auto;padding:2px 3px 6px}
.media-picker-grid .media-asset-meta{padding:6px 7px 7px}.media-picker-grid .media-asset-meta strong{font-size:.63rem}.media-picker-grid .media-asset-meta small{font-size:.56rem}
.media-progress-card{position:fixed;right:18px;bottom:18px;width:min(360px,calc(100vw - 36px));padding:13px 14px 14px;border-radius:14px;background:rgba(17,24,39,.96);color:#fff;z-index:10050;box-shadow:0 18px 50px rgba(15,23,42,.28);backdrop-filter:blur(10px);font-family:Inter,system-ui,sans-serif}
.media-progress-card[hidden]{display:none!important}.media-progress-head{display:grid;grid-template-columns:30px minmax(0,1fr) auto;gap:9px;align-items:center}.media-progress-head>span{width:30px;height:30px;border-radius:8px;display:grid;place-items:center;background:rgba(109,93,252,.24);color:#bdb7ff}.media-progress-head .ui-svg{width:15px;height:15px}.media-progress-head div{min-width:0}.media-progress-head strong{display:block;font-size:.74rem;line-height:1.2}.media-progress-head small{display:block;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#aeb6c5;font-size:.61rem}.media-progress-head b{font-size:.68rem;color:#d9d6ff}.media-progress-track{height:5px;margin-top:10px;border-radius:999px;overflow:hidden;background:rgba(255,255,255,.12)}.media-progress-track i{height:100%;display:block;width:0;border-radius:inherit;background:linear-gradient(90deg,#796aff,#a89eff);transition:width .14s ease}.media-progress-card.is-working .media-progress-head>span{animation:wbMediaPulse 1.2s ease-in-out infinite}@keyframes wbMediaPulse{50%{transform:scale(.92);opacity:.7}}
@media(max-width:780px){.media-picker-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

/* v90e · Portal de arrastre entre secciones. Vive en document.body, fuera de los
   stacking contexts del canvas: siempre visible y sin animaciones propias. */
/* El preview de arrastre entre secciones vive dentro del Shadow DOM y se estiliza desde overlayCss. */


/* Header: sticky/fixed se simulan sin sacar la sección del flujo durante la edición. */
#canvasMount .wb-header-v2.wb-header-mode-sticky,#canvasMount .wb-header-v2.wb-header-mode-fixed{position:relative!important;top:auto!important;left:auto!important;right:auto!important;width:auto!important}

/* v90n · Header + Navegación: integración visual coherente y práctica */
.header-pro-card,.nav-pro-card{background:linear-gradient(180deg,#fbfbff,#fff)!important;border-color:#e5e2ff!important}
.header-menu-status{display:grid;grid-template-columns:28px minmax(0,1fr);gap:9px;align-items:center;padding:10px;border:1px solid #e4e7ed;border-radius:11px;background:#f8f9fb}.header-menu-status>.ui-svg{width:15px;height:15px;margin:auto;color:#7c8492}.header-menu-status.has-menu{border-color:#dcd7ff;background:#f6f4ff}.header-menu-status.has-menu>.ui-svg{color:#6658d9}.header-menu-status strong,.header-menu-status small{display:block}.header-menu-status strong{font-size:10px;color:#3b4350}.header-menu-status small{margin-top:2px;font-size:8px;line-height:1.4;color:#8c95a3}.header-menu-status-actions{grid-column:1/-1;display:flex;align-items:center;gap:5px;padding-top:2px}.header-menu-status-actions .soft-btn{flex:1;justify-content:center}.header-menu-status-actions .soft-btn{min-height:32px;padding:6px 8px;font-size:8px}.icon-soft-btn{width:32px;height:32px;padding:0;border:1px solid #e2e5ea;border-radius:9px;background:#fff;color:#606978;display:grid;place-items:center;cursor:pointer}.icon-soft-btn:hover{border-color:#d4ceff;background:#f4f2ff;color:#5d50d5}.icon-soft-btn .ui-svg{width:13px;height:13px}
.header-preset-card,.nav-pro-presets{background:#fcfcfd!important}.header-preset-grid,.nav-preset-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.header-preset-grid button,.nav-preset-grid button{min-width:0;min-height:61px;padding:8px;border:1px solid #e3e6eb;border-radius:11px;background:#fff;color:#4a5360;text-align:left;cursor:pointer;transition:.15s ease;overflow:hidden}.header-preset-grid button:hover,.nav-preset-grid button:hover,.header-preset-grid button.active,.nav-preset-grid button.active{border-color:#cfc8ff;background:#f5f3ff;box-shadow:0 3px 10px rgba(109,93,252,.07);color:#5145ce}.header-preset-grid button>span{width:25px;height:25px;margin-bottom:5px;border-radius:8px;background:#f1efff;color:#6658d9;display:grid;place-items:center}.header-preset-grid button>span .ui-svg{width:13px;height:13px}.header-preset-grid strong,.header-preset-grid small,.nav-preset-grid strong,.nav-preset-grid small{display:block;overflow:hidden;text-overflow:ellipsis}.header-preset-grid strong,.nav-preset-grid strong{font-size:9px}.header-preset-grid small,.nav-preset-grid small{margin-top:2px;font-size:7.5px;line-height:1.25;color:#929aa7}.header-preview-row{display:flex;align-items:center;gap:8px;margin-top:9px}.header-preview-row .soft-btn{flex:0 0 auto;min-height:32px;font-size:8px}.header-preview-row span{font-size:8px;line-height:1.35;color:#9098a5}
.nav-pro-device-switch{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:9px 0}.nav-pro-device-switch button{height:34px;border:1px solid #e1e4ea;border-radius:9px;background:#fff;color:#717a88;display:flex;align-items:center;justify-content:center;gap:5px;font-size:8px;font-weight:850;cursor:pointer}.nav-pro-device-switch button:hover{background:#f8f7ff;border-color:#d9d4ff}.nav-pro-device-switch button.active{background:#6d5dfc;border-color:#6d5dfc;color:#fff;box-shadow:0 4px 10px rgba(109,93,252,.18)}.nav-pro-device-switch .ui-svg{width:12px;height:12px}.nav-pro-links{background:#fff!important}.nav-count-badge{min-width:24px;height:20px;padding:0 6px;border-radius:999px;background:#f0edff;color:#6254d8;display:grid;place-items:center;font-size:8px;font-weight:900}.nav-link-editor{padding:8px;border:1px solid #e7e9ee;border-radius:11px;background:#fbfcfd}.nav-link-editor-main{display:grid;grid-template-columns:24px minmax(0,1fr) 88px;gap:6px;align-items:center}.nav-link-index{width:24px;height:30px;border-radius:8px;background:#f0edff;color:#6558d7;display:grid;place-items:center;font-size:8px;font-weight:900}.nav-link-editor-main input,.nav-link-editor-main select{min-width:0;height:32px;border:1px solid #dfe3e9;border-radius:8px;background:#fff;padding:0 8px;font-size:9px;color:#424b58}.nav-link-editor-actions{display:grid;grid-template-columns:minmax(0,1fr) 30px 30px 30px;gap:5px;margin-top:6px}.nav-link-editor-actions button{height:29px;min-width:0;border:1px solid #e2e5ea;border-radius:8px;background:#fff;color:#6a7380;display:flex;align-items:center;justify-content:center;gap:5px;cursor:pointer;padding:0 6px}.nav-link-editor-actions button:first-child{justify-content:flex-start;overflow:hidden}.nav-link-editor-actions button:first-child span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:8px}.nav-link-editor-actions button:disabled{opacity:.35;cursor:not-allowed}.nav-link-editor-actions button:not(:disabled):hover{border-color:#d7d1ff;background:#f5f3ff;color:#594cd3}.nav-link-editor-actions .ui-svg{width:12px;height:12px}.nav-empty-links{padding:14px;text-align:center;border:1px dashed #dfe2e8;border-radius:10px;color:#9199a5;font-size:9px}
.nav-preset-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.nav-preset-grid button{min-height:68px;padding:7px 5px;text-align:center}.nav-preset-grid button i{display:block;position:relative;width:30px;height:20px;margin:0 auto 6px;border-radius:6px;background:#f1f2f5}.preset-lines:before,.preset-lines:after,.preset-under:before,.preset-under:after{content:'';position:absolute;left:5px;right:5px;height:2px;border-radius:9px;background:#7c8491}.preset-lines:before,.preset-under:before{top:6px}.preset-lines:after,.preset-under:after{top:12px}.preset-under:after{height:1px;top:15px;background:#6d5dfc}.preset-pills:before,.preset-pills:after{content:'';position:absolute;top:5px;width:9px;height:10px;border-radius:8px;background:#dedaff}.preset-pills:before{left:4px}.preset-pills:after{right:4px}.preset-buttons:before,.preset-buttons:after{content:'';position:absolute;top:4px;width:10px;height:12px;border-radius:4px;background:#6d5dfc}.preset-buttons:before{left:3px;opacity:.45}.preset-buttons:after{right:3px}.nav-preset-grid.mobile button i:before{content:'';position:absolute;background:#7d8592}.preset-drawer:before{inset:2px 2px 2px 12px;border-radius:4px}.preset-top:before{left:2px;right:2px;top:2px;height:7px;border-radius:4px}.preset-full:before{inset:2px;border-radius:4px}.preset-drop:before{left:4px;right:4px;top:3px;height:9px;border-radius:4px}.mini-preview-btn{height:28px;padding:0 8px;border:1px solid #e0e3e8;border-radius:8px;background:#fff;color:#626b78;display:flex;align-items:center;gap:4px;font-size:8px;font-weight:800;cursor:pointer}.mini-preview-btn:hover{border-color:#d4ceff;background:#f4f2ff;color:#574bd0}.mini-preview-btn .ui-svg{width:11px;height:11px}.nav-mini-advanced{margin-top:8px;border-top:1px solid #edf0f3;padding-top:7px}.nav-mini-advanced>summary{cursor:pointer;color:#7e8794;font-size:8px;font-weight:800}.nav-mini-advanced>div{padding-top:8px}.unit-input{display:grid;grid-template-columns:minmax(0,1fr) 34px;align-items:center;border:1px solid #dfe3e9;border-radius:9px;background:#fff;overflow:hidden}.unit-input input{border:0!important;border-radius:0!important;box-shadow:none!important}.unit-input span{height:100%;display:grid;place-items:center;background:#f6f7f9;color:#8a93a1;font-size:8px;font-weight:800;border-left:1px solid #e7e9ed}
.header-pro-card .inspector-section-title-row,.nav-pro-card .inspector-section-title-row,.nav-pro-links .inspector-section-title-row{margin-bottom:9px}.header-pro-card .menu-pro-badge,.nav-pro-card .menu-pro-badge{background:#ebe8ff;color:#5c4fd2}.nav-settings-group{box-shadow:none!important}.nav-settings-group>summary{min-height:48px}.nav-settings-body{padding:11px!important}.nav-settings-body .field-inline{grid-template-columns:repeat(2,minmax(0,1fr))!important}.nav-settings-body .nav-color-settings{grid-template-columns:repeat(3,minmax(0,1fr))!important}.nav-settings-body .nav-color-settings label{padding:7px;border:1px solid #e9ebef;border-radius:9px;background:#fafbfc}.nav-settings-body .nav-color-settings input{height:29px!important}.nav-settings-body .switch-row{margin:8px 0;padding:9px;border:1px solid #e8ebef;border-radius:10px;background:#fbfcfd}.nav-settings-body .field-help{font-size:8px!important}.header-preset-card>h4,.nav-pro-presets>h4{margin-bottom:9px!important}
@media(max-width:1180px){.nav-preset-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.nav-settings-body .nav-color-settings{grid-template-columns:1fr 1fr!important}.nav-settings-body .nav-color-settings label:first-child{grid-column:1/-1}}
@media(max-width:760px){.header-preset-grid,.nav-preset-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.nav-link-editor-main{grid-template-columns:24px minmax(0,1fr)}.nav-link-editor-main select{grid-column:2}.header-preview-row{align-items:flex-start;flex-direction:column}.header-preview-row .soft-btn{width:100%}}


/* v90o · Marca / logo del Header: clara, responsive y sin recortes */
.header-brand-mode{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-bottom:10px}.header-brand-mode button{min-width:0;min-height:52px;padding:7px 5px;border:1px solid #e1e5ea;border-radius:10px;background:#fff;color:#67717f;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;cursor:pointer;transition:.15s ease}.header-brand-mode button:hover{border-color:#d7d1ff;background:#f7f5ff;color:#5b4fd2}.header-brand-mode button.active{border-color:#bfb6ff;background:#f0edff;color:#594bd3;box-shadow:0 3px 10px rgba(109,93,252,.08)}.header-brand-mode button>.ui-svg{width:14px;height:14px}.header-brand-mode button span{min-width:0;text-align:center}.header-brand-mode button strong,.header-brand-mode button small{display:block}.header-brand-mode button strong{font-size:8.5px}.header-brand-mode button small{margin-top:1px;font-size:7px;line-height:1.15;color:#949ca8}
.header-brand-editor-card{padding:9px;border:1px solid #e7e9ee;border-radius:11px;background:#fbfcfd}.header-brand-live-preview{min-height:44px;margin-top:7px;padding:8px 10px;border:1px dashed #dfe2e8;border-radius:9px;background:#fff;display:flex;align-items:center;overflow:auto}.header-brand-live-preview span{font-weight:900;letter-spacing:-.035em;white-space:nowrap;color:#151b27}.header-brand-logo-preview{height:70px;border:1px dashed #dfe2e8;border-radius:10px;background:linear-gradient(135deg,#fafbfc,#f3f4f7);display:grid;place-items:center;overflow:hidden}.header-brand-logo-preview.has-logo{background:#fff}.header-brand-logo-preview img{display:block;max-width:88%;max-height:54px;object-fit:contain}.header-brand-logo-preview>span{display:flex;align-items:center;gap:6px;color:#8a93a0;font-size:8px}.header-brand-logo-preview>span .ui-svg{width:14px;height:14px}.header-brand-logo-preview>span strong{font-size:8px}.header-brand-logo-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;margin:7px 0}.header-brand-logo-actions .soft-btn{justify-content:center}.header-brand-empty{display:grid;grid-template-columns:30px minmax(0,1fr);gap:8px;align-items:center;padding:10px;border:1px dashed #dfe2e8;border-radius:10px;background:#fafbfc;color:#7d8694}.header-brand-empty>.ui-svg{width:16px;height:16px;margin:auto}.header-brand-empty strong,.header-brand-empty small{display:block}.header-brand-empty strong{font-size:9px;color:#58616e}.header-brand-empty small{margin-top:2px;font-size:7.5px;line-height:1.35}.header-brand-device-badge{margin:10px 0 7px!important}.header-brand-size-fields{margin-bottom:7px}.header-brand-help{padding:7px 8px;border-radius:8px;background:#f6f4ff;color:#6f68a5!important;line-height:1.4}.header-brand-settings .link-picker-field{margin-top:8px}
@media(max-width:760px){.header-brand-mode{grid-template-columns:1fr}.header-brand-mode button{min-height:38px;flex-direction:row;justify-content:flex-start;padding:7px 9px}.header-brand-mode button span{text-align:left}}

/* Ajustes de accesibilidad y ventanas pequeñas */
.modal-card{min-width:0;overflow-wrap:anywhere}
.modal-actions{flex-wrap:wrap}
.modal-close{z-index:2}
.modal button:focus-visible,.modal input:focus-visible,.modal select:focus-visible,.modal textarea:focus-visible,.help-topic-card>summary:focus-visible{outline:2px solid #6552df;outline-offset:2px}
.help-content,.help-category,.help-topic-list{grid-auto-rows:max-content;align-content:start;min-width:0}
.help-topic-body{overflow-wrap:anywhere}
.help-topic-card summary small{color:#687180}
.help-topic-body p{color:#535d6c}
.toast{max-width:calc(100vw - 36px);overflow-wrap:anywhere}
@media(max-width:480px){.modal{padding:10px}.modal-card{width:100%;padding:20px 16px;max-height:calc(100dvh - 20px)}.modal-actions>button{flex:1 1 auto}.help-topic-body{padding-left:12px}}

/* Professional data controls · panel derecho */
.chart-manager{padding:14px;border:1px solid #e6e8ee;border-radius:14px;background:linear-gradient(180deg,#fff,#fbfcfe);box-shadow:0 7px 22px rgba(15,23,42,.035)}.chart-manager-head{display:grid;grid-template-columns:34px minmax(0,1fr);gap:10px;align-items:center;margin-bottom:13px}.chart-manager-head>span{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:#f0edff;color:var(--primary)}.chart-manager-head .ui-svg{width:17px;height:17px}.chart-manager-head h4{margin:0!important;font-size:.78rem}.chart-manager-head small{display:block;margin-top:2px;color:var(--muted);font-size:.66rem;line-height:1.35}.chart-type-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin:0 0 12px}.chart-type-grid button{min-width:0;height:52px;padding:6px 3px;border:1px solid #e1e5eb;border-radius:9px;background:#fff;color:#6d7583;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;transition:.15s ease}.chart-type-grid button:hover{border-color:#c9c2ff;background:#faf9ff;color:#5d50d0}.chart-type-grid button.active{border-color:#b7adff;background:#f0edff;color:#5748cf;box-shadow:0 4px 12px rgba(109,93,252,.08)}.chart-type-grid .ui-svg{width:14px;height:14px}.chart-type-grid span{font-size:.57rem;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.chart-switch-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:9px 0 12px}.chart-switch-grid label{min-width:0;display:flex;align-items:center;gap:5px;padding:7px 6px;border:1px solid #e6e8ed;border-radius:8px;background:#fff;font-size:.63rem;font-weight:750;color:#5f6876;cursor:pointer}.chart-switch-grid input{margin:0;accent-color:var(--primary)}.chart-summary-fields{margin-bottom:13px}.chart-data-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:11px;border-top:1px solid #eceef2}.chart-data-head strong,.chart-data-head small{display:block}.chart-data-head strong{font-size:.7rem}.chart-data-head small{margin-top:1px;color:var(--muted);font-size:.58rem}.chart-data-head button{height:27px;border:0;border-radius:8px;padding:0 8px;background:#f0edff;color:#5d4fd0;font-size:.62rem;font-weight:800;display:inline-flex;align-items:center;gap:4px;cursor:pointer}.chart-data-head button .ui-svg{width:12px;height:12px}.chart-data-list{display:grid;gap:6px;margin-top:8px}.chart-data-row{display:grid;grid-template-columns:20px minmax(0,1fr) 54px 32px 64px;gap:5px;align-items:center;padding:6px;border:1px solid #e7e9ee;border-radius:9px;background:#fff}.chart-data-index{display:grid;place-items:center;width:20px;height:20px;border-radius:6px;background:#f3f4f6;color:#7f8794;font-size:.57rem;font-weight:900}.chart-data-row input{min-width:0;width:100%;height:29px;border:1px solid #dfe2e8;border-radius:7px;background:#fbfcfd;padding:0 6px;font-size:.66rem;color:var(--text)}.chart-data-row input:focus{outline:none;border-color:#aaa1ff;box-shadow:0 0 0 2px rgba(109,93,252,.08)}.chart-data-row .chart-data-color{padding:3px}.chart-row-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:2px}.chart-row-actions button{height:25px;border:0;border-radius:6px;background:#f3f4f6;color:#747d8a;padding:0;display:grid;place-items:center;cursor:pointer}.chart-row-actions button:hover{background:#ebe9ff;color:#5c4fd0}.chart-row-actions button:last-child:hover{background:#fee2e2;color:#b91c1c}.chart-row-actions .ui-svg{width:11px;height:11px}.chart-empty{padding:18px 10px;border:1px dashed #d7dbe3;border-radius:9px;text-align:center;color:#8b93a0;font-size:.65rem}.pro-element-manager{padding:13px;border:1px solid #e7e9ee;border-radius:13px;background:#fcfcfd}.pro-element-manager h4{margin-top:0!important}.pro-element-manager textarea{line-height:1.45}.pro-element-manager input[type=color],.chart-manager input[type=color]{min-height:34px;padding:3px;cursor:pointer}
@media(max-width:1180px){.chart-type-grid{grid-template-columns:repeat(3,1fr)}.chart-data-row{grid-template-columns:18px minmax(0,1fr) 50px 30px}.chart-row-actions{grid-column:2/-1;justify-self:end;width:76px}}

/* v92 · Gestores profesionales: redes sociales y footers */
.social-links-manager,.footer-content-manager{min-width:0}.social-link-rows,.footer-manager-list{display:grid;gap:8px;margin:9px 0}.social-link-row,.footer-manager-row{position:relative;padding:9px;border:1px solid #e5e8ee;border-radius:11px;background:linear-gradient(180deg,#fff,#fafbfc)}.social-link-row-top,.footer-manager-row-main{display:grid;grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr) 34px;gap:6px;align-items:center}.social-link-row-top select,.social-link-row-top input,.footer-manager-row-main select,.footer-manager-row-main input{min-width:0;width:100%;height:32px;border:1px solid #dfe3e9;border-radius:8px;background:#fff;padding:0 8px;color:var(--text);font-size:.68rem}.social-link-row .field,.footer-manager-row .field{margin:8px 0 0}.social-link-row .field input,.footer-manager-row .field input{height:32px}.row-order-actions{display:flex;justify-content:flex-end;gap:4px;margin-top:7px}.row-order-actions .soft-btn{width:30px;height:27px;padding:0;display:grid;place-items:center}.row-order-actions .soft-btn .ui-svg{width:12px;height:12px}.row-order-actions button:disabled{opacity:.34;cursor:not-allowed}.icon-only{width:34px!important;min-width:34px;padding:0!important;display:grid!important;place-items:center!important}.icon-only .ui-svg{width:13px;height:13px}.social-links-manager>.add-row-btn,.footer-manager-group>.add-row-btn{display:flex;align-items:center;justify-content:center;gap:6px}.social-links-manager>.add-row-btn .ui-svg,.footer-manager-group>.add-row-btn .ui-svg{width:12px;height:12px}.footer-manager-group{margin-top:9px;border:1px solid #e5e8ee;border-radius:11px;background:#fbfcfd;overflow:hidden}.footer-manager-group>summary{min-height:38px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 10px;cursor:pointer;list-style:none;color:#535d6b;font-size:.68rem;font-weight:820}.footer-manager-group>summary::-webkit-details-marker{display:none}.footer-manager-group>summary:after{content:'⌄';margin-left:auto;color:#8e96a2;font-size:.82rem;transition:transform .15s ease}.footer-manager-group[open]>summary:after{transform:rotate(180deg)}.footer-manager-group>summary span{margin-left:4px;padding:3px 6px;border-radius:999px;background:#f0edff;color:#6555d7;font-size:.56rem;font-weight:900}.footer-manager-group>.footer-manager-list{margin:0;padding:8px;border-top:1px solid #eceef2}.footer-manager-group>.add-row-btn{width:calc(100% - 16px);margin:0 8px 8px}.footer-manager-row.compact .footer-manager-row-main{grid-template-columns:minmax(0,.75fr) minmax(0,1.25fr) 34px}.footer-content-manager>.field-help{margin-top:10px;padding:8px 9px;border-radius:9px;background:#f7f6ff;color:#766fa7}.social-links-manager input[type=color]{height:34px!important;padding:3px!important;cursor:pointer}
@media(max-width:1180px){.social-link-row-top,.footer-manager-row-main,.footer-manager-row.compact .footer-manager-row-main{grid-template-columns:minmax(0,1fr) 34px}.social-link-row-top select,.footer-manager-row-main select{grid-column:1}.social-link-row-top input,.footer-manager-row-main input{grid-column:1}.social-link-row-top .icon-only,.footer-manager-row-main .icon-only{grid-column:2;grid-row:1}.footer-manager-row-main input+input{grid-row:auto}}
