.mb-shell{max-width:1500px;margin:0 auto;padding:clamp(16px,2.5vw,34px);color:var(--text-primary,#f5f7ff)}
.mb-hero{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;margin-bottom:18px;padding:24px;border:1px solid rgba(111,124,255,.3);border-radius:18px;background:linear-gradient(135deg,rgba(25,31,70,.88),rgba(12,16,34,.78));box-shadow:0 18px 45px rgba(0,0,0,.2)}
.mb-hero h2{margin:6px 0;font-size:clamp(28px,4vw,48px)}.mb-hero p{max-width:760px;color:var(--text-muted);line-height:1.6;margin-bottom:0}.mb-kicker{font-size:11px;letter-spacing:.16em;color:#9ba7ff;font-weight:800}.mb-badge{border:1px solid #5b65b8;border-radius:999px;padding:7px 11px;color:#aab2ff;font-size:11px;white-space:nowrap}
.mb-toolbar{display:flex;flex-wrap:wrap;gap:12px;align-items:end;padding:16px;margin-bottom:16px;border:1px solid rgba(111,124,255,.24);border-radius:14px;background:rgba(12,16,34,.76)}.mb-toolbar label{display:grid;gap:5px;color:var(--text-muted);font-size:12px}.mb-toolbar select,.mb-toolbar button,.mb-publish-actions button,.mb-import button,.mb-export button,.mb-saved button,.mb-node-actions button{background:#14182b;color:inherit;border:1px solid #343b65;border-radius:8px;padding:10px 12px;cursor:pointer;min-height:42px}.mb-toolbar button:hover,.mb-saved button:hover,.mb-node-actions button:hover,.mb-export button:hover{border-color:#8490ff;background:#20264a}.mb-tool-group{display:flex;gap:8px;flex-wrap:wrap}
.mb-layout{display:grid;grid-template-columns:minmax(440px,1.25fr) minmax(390px,.95fr);gap:18px;align-items:start}.mb-canvas,.mb-inspector,.mb-preview,.mb-publish,.mb-saved{padding:20px}.mb-canvas{min-height:620px;border:1px solid rgba(111,124,255,.3);border-radius:16px;background:linear-gradient(180deg,rgba(20,25,57,.9),rgba(8,12,28,.9));box-shadow:0 18px 40px rgba(0,0,0,.18)}.mb-panel-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;margin-bottom:16px}.mb-panel-head h3{margin:5px 0;font-size:20px}.mb-panel-head p,.mb-muted{color:var(--text-muted);font-size:12px;line-height:1.5}.mb-counter{color:#84f4c0;font-size:12px}
.mb-node{position:relative;border:1px solid #303759;background:#11162a;border-radius:10px;padding:13px 10px 13px 30px;margin:10px 0;min-height:48px}.mb-node:hover{border-color:#6974db}.mb-grip{position:absolute;left:9px;color:#727aa6;cursor:grab}.mb-node-type{font-weight:750}.mb-node small{display:block;color:#8c94b7;margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mb-node-actions{position:absolute;right:8px;top:10px;display:flex;gap:3px}.mb-node-actions button{padding:5px 8px;border-radius:5px}.mb-node-actions button:disabled{opacity:.35;cursor:not-allowed}.mb-children{margin:12px 0 0 10px;padding-left:12px;border-left:2px solid #505ac0}.mb-inspector[hidden]{display:none!important}
.mb-discord-simulator{padding:0;overflow:hidden;background:#202225;border:1px solid #343b65;border-radius:16px;box-shadow:0 18px 45px rgba(0,0,0,.24)}.mb-discord-topbar{display:grid;grid-template-columns:auto 1fr;gap:2px 9px;padding:16px 18px;background:#2b2d31;border-bottom:1px solid #18191c}.mb-discord-topbar strong{font-size:14px}.mb-discord-topbar small{grid-column:2;color:#949ba4;font-size:11px}.mb-discord-status{grid-row:1/3;width:9px;height:9px;border-radius:50%;background:#3ba55d;margin-top:4px}.mb-discord-chat-label{padding:16px 18px 5px;color:#949ba4;font-size:11px;text-transform:uppercase;letter-spacing:.08em}.mb-discord-frame{background:#313338;min-height:520px;padding:16px 18px 28px;color:#dbdee1}.mb-dc-message{background:#2b2d31;border-radius:8px;padding:14px;line-height:1.5}.mb-dc-container{border-left:4px solid var(--mb-accent,#5865f2);background:#1e2025;border-radius:6px;padding:15px;margin-bottom:10px}.mb-dc-text{white-space:normal;margin:7px 0;line-height:1.5}.mb-dc-separator{height:14px;border-top:1px solid #4f535c;margin:12px 0}.mb-dc-separator.soft{border-top-color:transparent}.mb-dc-section{display:flex;gap:12px;align-items:center;margin:10px 0}.mb-dc-section>div:first-child{flex:1}.mb-dc-thumb{width:72px;height:72px;object-fit:cover;border-radius:7px;background:#111}.mb-dc-gallery{display:grid;grid-template-columns:repeat(2,1fr);gap:5px;margin:9px 0}.mb-dc-gallery img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:5px}.mb-dc-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}.mb-dc-button{border:0;border-radius:3px;padding:8px 14px;background:#5865f2;color:#fff;cursor:pointer}.mb-dc-unsupported{padding:8px;background:#3a3d45;border-radius:5px}.mb-empty{padding:28px;text-align:center;border:1px dashed #3d456e;border-radius:10px;color:var(--text-muted)}
.mb-publish{display:grid;gap:9px;margin-top:14px}.mb-publish input,.mb-publish select{width:100%}.mb-import,.mb-export{display:grid;gap:7px;border-top:1px solid #2b3155;padding-top:14px;margin-top:5px}.mb-subheading{font-size:13px}.mb-help{color:var(--text-muted);font-size:11px;line-height:1.4}.mb-export-row{display:grid;grid-template-columns:1fr auto;gap:7px}.mb-saved{margin-top:14px}.mb-saved button{width:100%;display:grid;text-align:left;gap:4px;margin:7px 0}.mb-saved button small{color:var(--text-muted)}
.mb-slots{color:#84f4c0;font-size:11px;font-weight:800;letter-spacing:.04em}
.mb-toolbar button,.mb-publish-actions button,.mb-import button,.mb-export button,.mb-saved button,.mb-node-actions button{display:inline-flex;align-items:center;justify-content:center;gap:7px}.mb-toolbar button svg,.mb-publish-actions button svg,.mb-import button svg,.mb-export button svg,.mb-node-actions button svg{flex:0 0 auto}.mb-icon-fallback{display:inline-block;width:1em;height:1em;border:1px solid currentColor;border-radius:3px;opacity:.7}.mb-publish-actions button:disabled{cursor:not-allowed;opacity:.45;filter:saturate(.4)}.mb-toolbar button:focus-visible,.mb-node-actions button:focus-visible,.mb-publish-actions button:focus-visible,.mb-saved button:focus-visible{outline:2px solid #a78bfa;outline-offset:2px}
.mb-editor{margin-top:18px;padding:16px;border:1px solid rgba(111,124,255,.24);border-radius:14px;background:linear-gradient(145deg,rgba(28,34,78,.72),rgba(9,13,29,.84))}.mb-editor-empty{color:var(--text-muted);font-size:12px}.mb-editor-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:12px}.mb-editor-head h4{margin:4px 0;font-size:17px}.mb-editor-field{display:grid;gap:7px;color:var(--text-secondary);font-size:12px}.mb-editor-field small{color:var(--text-muted);line-height:1.45}.mb-editor-save{margin-top:12px}.mb-node-edit{display:block;width:calc(100% - 126px);padding:0;border:0;text-align:left;color:inherit;background:transparent;cursor:pointer;font:inherit}.mb-node-edit:focus-visible{outline:2px solid #a78bfa;outline-offset:4px;border-radius:6px}.mb-node-edit .mb-grip{pointer-events:none}.mb-assets{display:grid;gap:11px;padding:20px;margin-top:14px;border:1px solid rgba(111,124,255,.22);border-radius:16px;background:linear-gradient(145deg,rgba(17,21,48,.88),rgba(8,11,27,.92))}.mb-card-title{font-size:16px;font-weight:800;color:#f4f5ff}.mb-preview{min-width:0}.mb-discord-simulator{background:linear-gradient(145deg,#25283b,#171a2a);border-color:rgba(139,92,246,.35)}.mb-discord-frame{min-width:0;overflow-wrap:anywhere}.mb-dc-message,.mb-dc-container{max-width:100%;overflow:hidden}.mb-dc-text{overflow-wrap:anywhere}.mb-discord-topbar{background:linear-gradient(100deg,#303548,#25283a)}
.mb-edit-hint{display:block;margin-top:8px;color:#aeb7ff;font-size:10px;letter-spacing:.04em}.mb-node:hover{box-shadow:0 0 0 1px rgba(132,144,255,.12)}.mb-node-actions button{font-size:10px;padding:5px 7px}.mb-node-actions button span{white-space:nowrap}.mb-inline-editor{margin:10px 0 2px;padding:10px;border:1px solid rgba(111,124,255,.22);border-radius:9px;background:rgba(8,12,28,.55)}.mb-inline-label{color:#dce0ff;font-size:11px;font-weight:700;margin-bottom:6px}.mb-inline-editor textarea{width:100%;min-height:70px;resize:vertical;border:1px solid #3a4474;border-radius:7px;background:#0d1224;color:#f5f7ff;padding:9px;font:inherit;line-height:1.45}.mb-inline-help{color:var(--text-muted);font-size:10px;margin-top:5px}.mb-editor{padding:18px;border-color:rgba(132,144,255,.38);box-shadow:0 12px 28px rgba(0,0,0,.16)}.mb-editor-empty{display:grid;gap:5px}.mb-editor-empty strong{color:#f4f5ff;font-size:14px}.mb-editor-path,.mb-editor-hint{display:block;color:var(--text-muted);font-size:11px;line-height:1.45}.mb-editor-field{margin-bottom:12px}.mb-format-toolbar{display:flex;gap:6px;flex-wrap:wrap}.mb-format-toolbar button{border:1px solid #3a4474;border-radius:7px;background:#14182b;color:#f4f5ff;padding:7px 10px;cursor:pointer}.mb-format-toolbar button:hover,.mb-format-toolbar button:focus-visible{border-color:#9ba7ff;background:#252d57}.mb-text-editor{min-height:135px;resize:vertical;font-family:inherit;line-height:1.55}.mb-discord-frame{padding:0 18px 28px}.mb-discord-chat-label{padding:16px 0 11px;color:#b5bac1;font-size:12px;font-weight:700;border-bottom:1px solid #3f4147}.mb-dc-author{display:flex;align-items:center;gap:9px;margin:18px 0 5px;font-size:14px}.mb-dc-author small{color:#949ba4;font-size:10px;margin-left:4px}.mb-dc-avatar{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:linear-gradient(135deg,#5865f2,#a855f7);color:#fff;font-weight:800}.mb-node-actions{max-width:48%;flex-wrap:wrap}
@media (max-width:1100px){.mb-layout{grid-template-columns:1fr}.mb-side{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr);gap:14px}.mb-preview{grid-row:span 2}.mb-publish,.mb-saved{margin-top:0}}
@media (max-width:900px){.mb-side{display:block}.mb-preview{margin-bottom:14px}.mb-discord-frame{min-height:460px}}
@media (max-width:700px){.mb-shell{padding:10px}.mb-hero{display:block;padding:18px}.mb-hero .mb-badge{display:inline-block;margin-top:14px}.mb-layout,.mb-side{display:block}.mb-canvas,.mb-preview,.mb-publish,.mb-saved{margin-bottom:12px}.mb-canvas{min-height:0;padding:14px}.mb-toolbar{align-items:stretch}.mb-tool-group{width:100%}.mb-toolbar button{flex:1;min-height:44px}.mb-node-actions{position:static;margin-top:10px}.mb-dc-section{align-items:flex-start}.mb-discord-frame{min-height:420px;padding:12px}.mb-export-row{grid-template-columns:1fr}.mb-export-row button{min-height:44px}}
@media (prefers-reduced-motion:reduce){.mb-shell *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* Builder controls: the three server-token sources stay explicit and visual. */
.mb-side{display:grid;gap:14px;align-content:start;min-width:0}.mb-side>section.arc-panel{box-sizing:border-box;width:100%;margin:0;padding:20px;border:1px solid rgba(111,124,255,.26);border-radius:16px;background:linear-gradient(145deg,rgba(17,21,48,.94),rgba(8,11,27,.96));box-shadow:0 16px 36px rgba(0,0,0,.18)}.mb-side>.mb-preview{padding:0!important;overflow:hidden}.mb-side>.mb-publish,.mb-side>.mb-assets{display:grid;gap:11px}.mb-publish{margin-top:0}.mb-token-toolbar{display:flex;gap:6px;flex-wrap:wrap;position:relative}.mb-token-toolbar>button{display:inline-flex;align-items:center;gap:6px;border:1px solid #3a4474;border-radius:7px;background:#14182b;color:#dfe3ff;padding:7px 9px;font-size:11px;cursor:pointer}.mb-token-toolbar>button:hover,.mb-token-toolbar>button:focus-visible{border-color:#a78bfa;background:#252d57}.mb-token-menu{position:relative;z-index:5;margin-top:4px;padding:10px;border:1px solid #4b568f;border-radius:10px;background:#0d1224;box-shadow:0 14px 32px rgba(0,0,0,.35);flex-basis:100%}.mb-token-menu[hidden]{display:none}.mb-token-menu-title{margin-bottom:8px;color:#bfc7ff;font-size:11px;font-weight:700}.mb-token-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:6px;max-height:190px;overflow:auto}.mb-token-grid button{display:flex;align-items:center;gap:6px;min-width:0;border:1px solid #2f3967;border-radius:7px;background:#151a31;color:#eef0ff;padding:7px;cursor:pointer;text-align:left;font-size:11px}.mb-token-grid button:hover{border-color:#a78bfa;background:#242d59}.mb-token-grid button img{width:22px;height:22px;object-fit:contain;flex:0 0 22px}.mb-token-grid button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mb-token-empty{color:#9ea7c7;font-size:11px}.mb-gallery-editor{display:grid;gap:10px}.mb-gallery-item{display:grid;gap:8px;padding:12px;border:1px solid #35406f;border-radius:10px;background:rgba(7,11,26,.55)}.mb-gallery-item label{display:grid;gap:5px;color:#cbd2ff;font-size:11px}.mb-gallery-item-head{display:flex;justify-content:space-between;align-items:center;color:#eef0ff;font-size:12px}.mb-gallery-item-head button{display:inline-flex;align-items:center;gap:5px;border:1px solid #633d62;border-radius:6px;background:#25162d;color:#ffc5df;padding:6px 8px;cursor:pointer;font-size:10px}.mb-editor-add-gallery{width:100%;justify-content:center}.mb-dc-gallery figure{margin:0;min-width:0}.mb-dc-gallery figcaption{padding:4px 2px;color:#aeb4bf;font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mb-publish-actions{display:flex;gap:8px;flex-wrap:wrap}.mb-publish-actions button{flex:1;min-width:150px}.mb-publish #mb-status{padding:10px;border-radius:8px;background:rgba(18,24,49,.65);color:#aeb7d7;font-size:11px;line-height:1.45}.mb-publish #mb-status[data-kind="success"]{color:#91f3c4}.mb-publish #mb-status[data-kind="error"]{color:#ff9da8}
 .mb-node:not(.mb-expanded)>.mb-inline-editor,.mb-node:not(.mb-expanded)>.mb-node-actions,.mb-node:not(.mb-expanded)>.mb-children{display:none}.mb-node.mb-expanded{border-color:#6875dc}.mb-node-edit .an-icon{flex:0 0 auto}.mb-node-actions button[data-move="up"] .an-icon{transform:rotate(180deg)}.mb-gallery-upload{display:grid;gap:5px;color:#cbd2ff;font-size:11px}.mb-gallery-upload input[type=file]{width:100%;padding:7px;border:1px dashed #5967a9;border-radius:7px;background:#11172e;color:#dce2ff;font-size:11px;cursor:pointer}.mb-gallery-upload input[type=file]::file-selector-button{border:0;border-radius:5px;background:#6941c6;color:#fff;padding:6px 9px;margin-right:7px;cursor:pointer}
 .mb-node:not(.mb-expanded)>.mb-node-actions{display:flex;z-index:2}.mb-node-actions{right:8px;top:10px}.mb-node-actions button{white-space:nowrap}

/* Edición inline: cada bloque se abre en su propio recuadro y el panel externo no duplica controles. */
#mb-editor{display:none!important}
.mb-node{transition:border-color .18s ease,box-shadow .18s ease,background .18s ease}
.mb-node.mb-expanded{background:linear-gradient(145deg,rgba(25,31,67,.96),rgba(12,17,36,.96));box-shadow:0 10px 24px rgba(0,0,0,.16)}
.mb-inline-editor{display:grid;gap:10px;clear:both}
.mb-inline-config{margin:12px 0 0;padding:12px;background:rgba(8,12,28,.72);border-color:rgba(132,144,255,.34)}
.mb-inline-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.mb-inline-fields label,.mb-inline-config>label{display:grid;gap:6px;color:#cbd2ff;font-size:11px;font-weight:650}
.mb-inline-fields input[type=color]{width:100%;height:38px;padding:3px;border:1px solid #3a4474;border-radius:7px;background:#0d1224;cursor:pointer}
.mb-inline-fields select,.mb-inline-config select{width:100%;min-height:38px;border:1px solid #3a4474;border-radius:7px;background:#0d1224;color:#f5f7ff;padding:7px}
.mb-inline-add-gallery{justify-content:center;width:100%;min-height:40px}
.mb-node>.mb-inline-editor+.mb-node-actions{margin-top:0}
.mb-node .mb-gallery-item{background:rgba(15,21,43,.88)}
@media (max-width:600px){.mb-inline-fields{grid-template-columns:1fr}.mb-node-actions{max-width:100%}}
.mb-preview>.mb-panel-head{justify-content:center;text-align:center;padding:16px 20px 12px;margin:0;background:linear-gradient(135deg,rgba(35,42,83,.8),rgba(19,24,49,.8));border-bottom:1px solid rgba(132,144,255,.22)}
.mb-preview>.mb-panel-head>div{display:grid;justify-items:center;gap:3px}.mb-preview>.mb-panel-head h3{margin:0;font-size:clamp(18px,2vw,24px)}
.mb-inline-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.mb-inline-actions button{justify-content:center;min-height:40px}
.mb-inline-check{display:flex;align-items:center;gap:8px;color:#cbd2ff;font-size:11px}.mb-inline-check input{accent-color:#8b5cf6}
.mb-inline-emoji{display:grid;gap:7px}.mb-inline-emoji>span{color:#cbd2ff;font-size:11px;font-weight:700}.mb-inline-emoji-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(86px,1fr));gap:6px;max-height:170px;overflow:auto}.mb-inline-emoji-grid button{display:flex;align-items:center;justify-content:flex-start;gap:5px;min-width:0;min-height:38px;border:1px solid #35406f;border-radius:7px;background:#11172e;color:#e9ecff;padding:5px;cursor:pointer;font-size:10px}.mb-inline-emoji-grid button:hover,.mb-inline-emoji-grid button.is-selected{border-color:#a78bfa;background:#29245a}.mb-inline-emoji-grid img{width:22px;height:22px;object-fit:contain;flex:0 0 22px}.mb-inline-emoji-grid span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mb-dc-button{display:inline-flex;align-items:center;gap:6px;text-decoration:none}.mb-dc-button-emoji{width:18px;height:18px;object-fit:contain}.mb-dc-select{border:1px solid #4f5667;border-radius:4px;background:#2b2d31;color:#b5bac1;padding:9px 12px;margin-top:8px}
@media (max-width:600px){.mb-inline-actions{grid-template-columns:1fr}}
