.mge-toolbar{display:flex;flex-wrap:wrap;gap:8px;padding:10px 0;align-items:center}
.mge-button{min-height:32px;padding:6px 11px;border:1px solid #304b5b;border-radius:7px;background:#1a2c37;color:#c5ddeb;font:inherit;font-size:12px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:6px}
.mge-button:hover{background:#263d4a}.mge-button:focus:not(:focus-visible){outline:none;box-shadow:none}.mge-button:focus-visible,.mge-field :focus-visible,.mge-inline:focus-visible{outline:2px solid #a9cadf;outline-offset:2px}.mge-button:disabled{opacity:.4;cursor:default}
.mge-icon{width:30px;height:30px;min-height:30px;padding:0;font-size:16px;flex-shrink:0}
.mge-tree{max-width:850px;width:100%;display:flex;flex-direction:column;gap:10px;padding:12px 0}.mge-tree[hidden]{display:none}
.mge-accessory img{width:72px;height:72px;object-fit:cover;border-radius:6px}.mge-icon svg{width:16px;height:16px}
.mge-node{position:relative;min-width:0;background:#0e151b;border:1px solid #223947;border-radius:8px;padding:12px;color:#c5ddeb;display:flex;flex-direction:column;gap:10px}
.mge-type-17{border-left:4px solid #5865f2;padding:14px}.mge-nested{display:flex;flex-direction:column;gap:9px;min-width:0}.mge-tools{display:flex;gap:5px;align-items:center;flex-wrap:wrap}.mge-node-name{margin-right:auto;font-size:11px;color:#89a6ba}.mge-controls{display:flex;gap:8px;flex-wrap:wrap}.mge-controls>.mge-node{flex:1 1 190px;max-width:100%}
.mge-inline{display:block;width:100%;max-width:100%;min-height:42px;resize:vertical;border:0!important;border-radius:5px;background:transparent!important;color:inherit;font:inherit;line-height:1.5;padding:5px;box-shadow:none!important;box-sizing:border-box}
.mge-inline[hidden],.mge-rich-text[hidden]{display:none}.mge-rich-text{min-height:34px;cursor:text;line-height:1.5;overflow-wrap:anywhere;padding:5px}.mge-rich-text h1,.mge-rich-text h2,.mge-rich-text h3{margin:4px 0;font-size:18px}
.mge-type-10{border-color:transparent;padding:6px}.mge-type-10:hover{border-color:#2a4251}.mge-type-9{padding-right:120px;min-height:120px}.mge-accessory{position:absolute;right:10px;top:52px;width:100px;display:grid;gap:6px}.mge-accessory .mge-button{font-size:10px;padding:6px}
.mge-preview-button{align-self:flex-start;font-weight:600}.mge-style-1{background:#5865f2;border-color:#5865f2;color:white}.mge-style-3{background:#287b55;border-color:#287b55}.mge-style-4{background:#a73c4b;border-color:#a73c4b}.mge-select-preview{justify-content:space-between;width:100%;min-width:180px}.mge-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px}.mge-gallery img{max-width:100%;max-height:220px;object-fit:contain;border-radius:6px}
.mge-popover{position:fixed;inset:auto;margin:0;width:370px;max-width:calc(100vw - 16px);max-height:min(70vh,620px);overflow:auto;background:#14222c;color:#c5ddeb;border:1px solid #405d6d;border-radius:10px;padding:16px;box-sizing:border-box;box-shadow:0 12px 40px #0008}.mge-popover:popover-open{display:flex;flex-direction:column;gap:10px}
.mge-dialog{width:min(820px,calc(100vw - 28px));max-height:85vh;overflow:auto;box-sizing:border-box;padding:22px;border:1px solid #405d6d;border-radius:12px;background:#101d26;color:#c5ddeb;box-shadow:0 24px 80px #0008}.mge-dialog::backdrop{background:#0009}.mge-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.mge-heading h3{margin:0;font-size:18px}.mge-dialog>textarea{width:100%;box-sizing:border-box;font-family:monospace}.mge-dialog>.mge-button{margin:6px 6px 6px 0}
.mge-field{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:500;margin:10px 0}.mge-field input,.mge-field textarea,.mge-field select{box-sizing:border-box;width:100%;min-height:34px;padding:7px 9px;border:1px solid #304b5b;border-radius:6px;background:#0e151b;color:#c5ddeb;font:inherit}.mge-field input[type=checkbox]{width:18px;height:18px;min-height:18px;align-self:flex-start}.mge-field textarea{min-height:80px;resize:vertical}.mge-field input[type=color]{width:100%;height:38px;padding:3px}.mge-library-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap;border-bottom:1px solid #29404e;padding:12px 0}.mge-library-row>span{font-size:12px;overflow-wrap:anywhere}.mge-library-row>strong{margin-right:auto}.mge-action{border:1px solid #29404e;border-radius:8px;padding:10px;margin:8px 0}.mge-muted{color:#89a6ba;font-size:12px}.mge-dialog p{font-size:13px;line-height:1.5}.mge-dialog a{color:#a9cadf}
@media(max-width:640px){.mge-toolbar{gap:6px}.mge-toolbar .mge-button{flex:1 1 130px}.mge-type-9{padding-right:12px}.mge-accessory{position:static;width:auto;display:flex;flex-wrap:wrap}.mge-node{padding:9px}.mge-dialog{padding:14px}.mge-tools{gap:4px}.mge-node-name{flex:1 1 90px}.mge-popover{left:8px!important;width:calc(100vw - 16px)}}
