body.editor-page{overflow:hidden;background:#dfe2e9}.editor-shell{height:100vh;display:grid;grid-template-rows:56px 1fr;background:#dfe2e9}.editor-topbar{z-index:30;background:#fff;border-bottom:1px solid #dfe3ec;display:flex;align-items:center;padding:0 10px;gap:8px}.editor-topbar .brand{font-size:17px;margin-right:6px}.editor-topbar .brand-mark{width:32px;height:32px}.toolbar-sep{width:1px;height:28px;background:#e1e4eb;margin:0 3px}.icon-btn{border:0;background:transparent;width:38px;height:38px;border-radius:10px;display:grid;place-items:center;cursor:pointer;color:#4c5363}.icon-btn:hover{background:#f0f2f7;color:#111522}.icon-btn:disabled{opacity:.35;cursor:not-allowed}.icon-btn.active{background:#ece8ff;color:#6040e8}.project-title{border:1px solid transparent;background:transparent;border-radius:9px;padding:8px 9px;min-width:170px;max-width:260px;font-weight:700}.project-title:hover,.project-title:focus{background:#f7f8fa;border-color:#dfe3ec;outline:none}.topbar-spacer{flex:1}.top-btn{border:1px solid #dfe3ec;background:#fff;border-radius:10px;height:38px;padding:0 12px;font-weight:700;cursor:pointer;display:flex;align-items:center;gap:7px}.top-btn:hover{background:#f5f6f9}.top-btn.primary{background:#6947f5;color:#fff;border-color:#6947f5}.top-btn.primary:hover{background:#5534df}.save-state{font-size:12px;color:#7b8394;max-width:90px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.editor-main{min-height:0;display:grid;grid-template-columns:72px 286px 1fr 286px}.tool-rail{background:#22242d;color:#d9dce5;padding:8px 5px;display:flex;flex-direction:column;gap:3px;z-index:15}.tool-btn{border:0;background:transparent;color:#c8ccd7;border-radius:10px;padding:9px 3px;display:flex;flex-direction:column;align-items:center;gap:4px;font-size:10px;cursor:pointer}.tool-btn svg{width:22px;height:22px}.tool-btn:hover,.tool-btn.active{background:#383b47;color:#fff}.tool-btn.bottom{margin-top:auto}.side-panel{background:#fff;border-right:1px solid #dfe3ec;min-width:0;display:flex;flex-direction:column;z-index:12}.side-panel.right{border-right:0;border-left:1px solid #dfe3ec}.panel-head{height:50px;display:flex;align-items:center;justify-content:space-between;padding:0 14px;border-bottom:1px solid #e8eaf0;font-weight:800}.panel-body{overflow:auto;padding:14px;min-height:0}.panel-section{margin-bottom:20px}.panel-section h3{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:#7b8394;margin:0 0 10px}.panel-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.panel-btn{border:1px solid #dfe3ec;background:#fff;border-radius:10px;padding:10px;cursor:pointer;text-align:left;font-weight:700;font-size:13px}.panel-btn:hover{border-color:#bdb3ff;background:#f8f7ff}.panel-btn.full{grid-column:1/-1}.panel-btn .sample{display:block;font-size:18px;margin-bottom:4px}.field{margin-bottom:11px}.field label{display:flex;justify-content:space-between;font-size:11px;color:#6d7586;margin-bottom:5px;font-weight:700}.field input,.field select,.field textarea{width:100%;border:1px solid #d8dce6;border-radius:9px;background:#fff;padding:8px 9px;min-height:36px;outline:none}.field textarea{resize:vertical;min-height:70px}.field input:focus,.field select:focus,.field textarea:focus{border-color:#7d62f5;box-shadow:0 0 0 3px rgba(109,74,255,.12)}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}.color-row{display:grid;grid-template-columns:42px 1fr;gap:7px}.color-row input[type=color]{padding:3px;height:38px}.range-row{display:grid;grid-template-columns:1fr 54px;gap:7px;align-items:center}.range-row input[type=range]{padding:0}.button-row{display:flex;gap:7px;flex-wrap:wrap}.small-btn{border:1px solid #d8dce6;background:#fff;border-radius:9px;padding:7px 9px;font-size:12px;font-weight:700;cursor:pointer}.small-btn:hover{background:#f3f4f8}.small-btn.danger{color:#b42318}.canvas-area{position:relative;overflow:hidden;min-width:0;background-color:#d9dce3;background-image:linear-gradient(45deg,#d2d5dc 25%,transparent 25%),linear-gradient(-45deg,#d2d5dc 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#d2d5dc 75%),linear-gradient(-45deg,transparent 75%,#d2d5dc 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0}.canvas-viewport{position:absolute;inset:0;overflow:auto;display:flex;align-items:center;justify-content:center;padding:80px}.canvas-stage{position:relative;flex:0 0 auto;box-shadow:0 18px 55px rgba(27,30,46,.25);transform-origin:center center}.design-svg{display:block;background:#fff;user-select:none;touch-action:none;overflow:visible}.design-svg .layer-object{cursor:move}.design-svg .layer-object.locked{cursor:not-allowed}.selection-box{fill:none;stroke:#6d4aff;stroke-width:2;vector-effect:non-scaling-stroke;pointer-events:none}.selection-handle{fill:#fff;stroke:#6d4aff;stroke-width:2;vector-effect:non-scaling-stroke;cursor:nwse-resize}.selection-handle.ne,.selection-handle.sw{cursor:nesw-resize}.safe-margin{fill:none;stroke:#ef4444;stroke-width:2;stroke-dasharray:10 8;vector-effect:non-scaling-stroke;pointer-events:none;opacity:.7}.grid-line{stroke:#111827;stroke-opacity:.1;stroke-width:1;vector-effect:non-scaling-stroke;pointer-events:none}.canvas-status{position:absolute;left:50%;bottom:14px;transform:translateX(-50%);background:#fff;border:1px solid #dfe3ec;border-radius:11px;box-shadow:0 7px 22px rgba(29,32,51,.13);display:flex;align-items:center;gap:4px;padding:4px}.canvas-status button{border:0;background:transparent;border-radius:8px;min-width:34px;height:32px;cursor:pointer}.canvas-status button:hover{background:#f0f2f7}.canvas-status span{min-width:58px;text-align:center;font-size:12px;font-weight:750}.layer-list{display:flex;flex-direction:column;gap:5px}.layer-item{display:grid;grid-template-columns:28px 1fr 26px 26px;gap:4px;align-items:center;border:1px solid transparent;border-radius:9px;padding:6px 5px;cursor:pointer}.layer-item:hover{background:#f5f6f9}.layer-item.active{background:#efecff;border-color:#d8d1ff}.layer-item .layer-icon{width:26px;height:26px;border-radius:7px;background:#eceef3;display:grid;place-items:center;font-size:12px}.layer-item .layer-name{font-size:12px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.layer-item button{border:0;background:transparent;width:26px;height:26px;border-radius:6px;cursor:pointer}.layer-item button:hover{background:#fff}.templates-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.template-tile{border:1px solid #e1e4ec;background:#fff;border-radius:11px;padding:6px;cursor:pointer}.template-tile:hover{border-color:#8c74f7;box-shadow:0 7px 18px rgba(65,56,117,.12)}.template-thumb{aspect-ratio:1.25;border-radius:7px;display:flex;align-items:center;padding:9px;color:#fff;font-weight:900;font-size:12px;overflow:hidden}.template-tile strong{font-size:10px;display:block;padding:5px 2px 1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.search-input{position:relative;margin-bottom:10px}.search-input input{width:100%;border:1px solid #d8dce6;border-radius:9px;padding:9px 10px}.empty-state{text-align:center;color:#7a8292;padding:24px 9px;font-size:13px}.privacy-note{font-size:11px;color:#087f5b;background:#ecfdf3;border:1px solid #abefc6;border-radius:9px;padding:9px;margin-top:9px}.drop-overlay{position:absolute;inset:14px;border:3px dashed #6d4aff;border-radius:18px;background:rgba(109,74,255,.13);display:none;place-items:center;color:#4b2fd5;font-size:20px;font-weight:850;z-index:25}.drop-overlay.show{display:grid}.modal-backdrop{position:fixed;inset:0;background:rgba(17,20,31,.65);z-index:100;display:none;align-items:center;justify-content:center;padding:20px}.modal-backdrop.open{display:flex}.modal{width:min(760px,100%);max-height:min(780px,92vh);background:#fff;border-radius:18px;box-shadow:0 30px 80px rgba(0,0,0,.35);display:flex;flex-direction:column;overflow:hidden}.modal.small{width:min(500px,100%)}.modal-head{height:58px;padding:0 18px;border-bottom:1px solid #e4e7ed;display:flex;align-items:center;justify-content:space-between}.modal-head h2{font-size:18px;margin:0}.modal-body{padding:18px;overflow:auto}.modal-foot{padding:12px 18px;border-top:1px solid #e4e7ed;display:flex;justify-content:flex-end;gap:8px}.modal-close{border:0;background:transparent;width:36px;height:36px;border-radius:9px;cursor:pointer;font-size:22px}.modal-close:hover{background:#f0f2f6}.export-options{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-bottom:18px}.export-type{border:1px solid #dfe3ec;border-radius:11px;background:#fff;padding:12px 5px;text-align:center;font-weight:800;cursor:pointer}.export-type.active{border-color:#6d4aff;background:#f0edff;color:#5b3de1}.project-list{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.project-card{border:1px solid #dfe3ec;border-radius:12px;padding:8px}.project-card-preview{aspect-ratio:1.4;border-radius:8px;background:linear-gradient(135deg,#221c51,#774df9);display:grid;place-items:center;color:#fff;font-weight:900}.project-card h3{font-size:13px;margin:8px 2px 2px}.project-card p{font-size:10px;color:#798193;margin:0 2px 7px}.project-card .button-row{padding:2px}.toast-region{position:fixed;right:16px;bottom:16px;z-index:130;display:flex;flex-direction:column;gap:8px}.toast{background:#181b24;color:#fff;border-radius:11px;padding:12px 14px;box-shadow:0 10px 30px rgba(0,0,0,.25);font-size:13px;animation:toastIn .2s ease}.toast.ok{border-left:4px solid #12b76a}.toast.error{border-left:4px solid #f04438}@keyframes toastIn{from{transform:translateY(8px);opacity:0}}
.mobile-panel-toggle{display:none}.panel-tabs{display:flex;border-bottom:1px solid #e4e7ed}.panel-tabs button{flex:1;border:0;background:#fff;padding:10px;font-size:12px;font-weight:800;cursor:pointer}.panel-tabs button.active{color:#5c3ee2;border-bottom:2px solid #6d4aff}.no-selection{color:#798193;text-align:center;padding:30px 8px;font-size:13px}.toggle{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;font-weight:700;margin:9px 0}.toggle input{width:38px;height:21px;accent-color:#6d4aff}.format-list{display:flex;flex-direction:column;gap:6px}.format-option{border:1px solid #dfe3ec;background:#fff;border-radius:10px;padding:9px;cursor:pointer;display:flex;justify-content:space-between;gap:8px}.format-option:hover{border-color:#8c75f5}.format-option strong{font-size:12px}.format-option span{font-size:10px;color:#7c8495}.icon-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.icon-choice{border:1px solid #dfe3ec;background:#fff;border-radius:9px;height:48px;display:grid;place-items:center;cursor:pointer}.icon-choice:hover{background:#f1eeff;border-color:#8d76f6}.icon-choice svg{width:24px;height:24px}.shape-choice{height:68px;text-align:center}.shape-demo{width:30px;height:30px;margin:0 auto 5px;background:#6d4aff}.shape-demo.circle{border-radius:50%}.shape-demo.roundrect{border-radius:8px}.shape-demo.triangle{width:0;height:0;background:transparent;border-left:16px solid transparent;border-right:16px solid transparent;border-bottom:30px solid #6d4aff}.loading{opacity:.55;pointer-events:none}
@media(max-width:1100px){.editor-main{grid-template-columns:64px 250px 1fr}.side-panel.right{position:absolute;right:0;top:56px;bottom:0;width:286px;box-shadow:-10px 0 30px rgba(32,35,54,.12);transform:translateX(100%);transition:.2s ease}.side-panel.right.open{transform:translateX(0)}.mobile-panel-toggle{display:grid}.save-state{display:none}}
@media(max-width:760px){body.editor-page{overflow:hidden}.editor-topbar{height:54px}.editor-topbar .brand span:last-child,.project-title,.toolbar-sep,.top-btn span,.editor-topbar>.icon-btn:nth-of-type(3){display:none}.top-btn{width:40px;padding:0;justify-content:center}.top-btn.primary{width:auto;padding:0 11px}.top-btn.primary span{display:inline}.editor-main{grid-template-columns:1fr;position:relative}.tool-rail{position:absolute;left:0;right:0;bottom:0;height:64px;flex-direction:row;padding:4px;z-index:40;overflow-x:auto}.tool-btn{min-width:61px}.tool-btn.bottom{margin-top:0;margin-left:auto}.side-panel{position:absolute;left:0;right:0;bottom:64px;top:auto;height:48vh;z-index:35;border:0;border-top:1px solid #dfe3ec;box-shadow:0 -14px 35px rgba(28,31,48,.15);transform:translateY(110%);transition:.22s ease}.side-panel.open{transform:translateY(0)}.side-panel.right{top:auto;left:0;width:auto;right:0;bottom:64px;height:48vh;transform:translateY(110%)}.side-panel.right.open{transform:translateY(0)}.canvas-viewport{padding:50px 24px 112px}.canvas-status{bottom:74px}.project-list{grid-template-columns:1fr 1fr}.export-options{grid-template-columns:repeat(3,1fr)}.modal-backdrop{padding:8px}.modal{max-height:88vh}.mobile-panel-toggle{display:none}}
body.editor-page.tool-with-content{overflow:auto}.tool-with-content .editor-shell{height:100vh}.editor-seo-content{background:#f6f7fb}.editor-seo-content .content-hero{padding-top:54px}
