.component-editor-backdrop{position:fixed;inset:0;z-index:60;display:grid;place-items:center;padding:18px;background:#05050bd9;backdrop-filter:blur(12px)}
.component-editor{width:min(1020px,100%);max-height:min(90vh,900px);display:flex;flex-direction:column;overflow:hidden;border:1px solid #ffffff20;border-radius:20px;background:#191923;color:#eeeef6;box-shadow:0 40px 100px #000b}
.component-editor header{display:flex;justify-content:space-between;gap:20px;padding:27px 30px 22px;border-bottom:1px solid #ffffff10}.component-kicker{font-size:10px;font-weight:800;letter-spacing:.14em;color:#baaefc}.component-editor h2{margin:8px 0;font-size:23px}.component-editor header p,.component-editor aside>p{font-size:12px;line-height:1.6;color:#9e9daf}.component-close,.component-item-head button{width:32px;height:32px;border-radius:9px;color:#c2c1d1;background:#ffffff0b;font-size:21px}
.component-body{display:grid;grid-template-columns:1fr .8fr;overflow:auto;min-height:180px}.component-body>div,.component-editor aside{padding:24px 30px}.component-editor aside{border-left:1px solid #ffffff0d;background:#13141cd9}.component-editor aside h3{margin:10px 0 16px;font-size:15px}.component-editor aside>p{margin-top:16px}
.component-add{display:flex;gap:8px;align-items:center;margin-bottom:16px}.component-add button{padding:9px 12px;color:#d9d3ff;border:1px solid #aaa0ef35;background:#a994ff19;border-radius:8px;font-size:12px;font-weight:700}.component-add span{margin-left:auto;color:#888799;font-size:11px}.component-items{display:grid;gap:10px}.component-item,.component-empty{border:1px solid #ffffff12;background:#ffffff06;border-radius:12px;padding:14px}.component-empty{font-size:12px;line-height:1.5;color:#9393a4}.component-item-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:11px}.component-item-head strong{font-size:12px}.component-item-head button{width:25px;height:25px;font-size:17px}.component-item label{display:block;color:#a8a7b9;font-size:11px;font-weight:700;margin:10px 0}.component-item label small{display:block;font-weight:400;margin:4px 0;color:#838293}.component-item input,.component-item textarea,.component-item select{display:block;width:100%;margin-top:7px;padding:10px;border:1px solid #ffffff16;border-radius:8px;background:#101118;color:#efeff7;font:inherit}.component-item textarea{resize:vertical;min-height:80px}
.component-preview{padding:18px;background:#303238;border-radius:12px}.component-preview>p{padding:14px;border-left:4px solid #a798ff;background:#26272d;border-radius:4px;font-size:12px}.component-preview [data-preview]{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin-top:12px}.component-preview small{color:#aaa;font-size:11px}.component-example-button,.component-example-select{font-size:12px;font-weight:700;padding:9px 14px;border-radius:5px;color:#fff;background:#5865f2}.component-example-button.secondary{background:#4e5058}.component-example-button.success{background:#248046}.component-example-button.danger{background:#da373c}.component-example-select{width:100%;background:#1e1f22;color:#e5e6e9}.component-example-select b{float:right}
.component-editor footer{display:flex;align-items:center;gap:10px;padding:18px 30px;border-top:1px solid #ffffff10}.component-error{margin-right:auto;font-size:11px;color:#ff9b9b}.component-cancel,.component-save{padding:11px 15px;border-radius:9px;font-weight:700;font-size:12px}.component-cancel{color:#dad9e7;background:#ffffff0b}.component-save{color:#171320;background:#b9aafa}.component-editor :is(button,input,select,textarea):focus-visible{outline:2px solid #b9aafa;outline-offset:2px}
@media(max-width:700px){.component-editor header{padding:20px}.component-body{grid-template-columns:1fr}.component-body>div,.component-editor aside{padding:18px}.component-editor aside{border-left:0;border-top:1px solid #ffffff0d}.component-editor footer{padding:14px 18px;flex-wrap:wrap}.component-error{width:100%}.component-add{flex-wrap:wrap}}
