:root{--bg:#f4f7fc;--surface:#fff;--surface2:#f7f9fc;--line:#e4eaf2;--text:#213047;--muted:#71819a;--primary:#347ce7;--primary-soft:#eaf3ff;--danger:#d74e60;--shadow:0 12px 36px rgba(30,54,96,.07);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--text)}*{box-sizing:border-box}body{margin:0;background:var(--bg);font-size:14px}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.43;cursor:not-allowed}[tabindex]:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #9ac8ff;outline-offset:2px}.sr{position:absolute!important;width:1px;height:1px;clip:rect(0,0,0,0);overflow:hidden;white-space:nowrap}.hidden{display:none!important}.skip{position:fixed;top:-60px;left:12px;background:var(--text);color:#fff;padding:12px;z-index:30}.skip:focus{top:8px}.app{height:100dvh;min-height:520px;display:flex;flex-direction:column;overflow:hidden}.topbar{min-height:72px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:22px;padding:9px 22px;z-index:10}.brandline{display:flex;align-items:center;gap:12px;white-space:nowrap}.brand{text-decoration:none;color:#22364c;font-weight:780;font-size:18px;display:flex;align-items:center;gap:9px;letter-spacing:-.6px}.logo{background:linear-gradient(145deg,#4eaeef,#3671e3);color:#fff;border-radius:10px;padding:6px 10px;font-size:20px}.slash{color:#b5bed0;font-size:22px}.appname{font-weight:740;font-size:15px;letter-spacing:-.25px}.studio-tag{font-size:9px;color:#3879c8;background:#eaf3ff;letter-spacing:1.2px;font-weight:800;border:1px solid #cee3ff;border-radius:5px;padding:5px 7px}.project-head{margin-right:auto;min-width:105px;display:flex;align-items:center;gap:9px}.project-head input{width:min(175px,15vw);background:0 0;border:1px solid transparent;border-radius:7px;padding:8px;font-weight:650;text-overflow:ellipsis;color:var(--text)}.project-head input:focus,.project-head input:hover{border-color:var(--line)}.subtle{font-size:11px;color:var(--muted);white-space:nowrap}.top-actions{display:flex;align-items:center;gap:7px}.btn,.icon-btn,.mini,.toolbtn,.wide-btn{background:#fff;border:1px solid var(--line);border-radius:9px;color:#415067;padding:9px 13px;font-weight:650;white-space:nowrap}.btn:hover,.icon-btn:hover,.mini:hover,.toolbtn:hover,.wide-btn:hover{border-color:#bed4f1;background:#f7fbff}.icon-btn{width:34px;height:35px;padding:0;font-size:22px;line-height:1}.btn.primary{color:#fff;background:var(--primary);border-color:var(--primary);box-shadow:0 3px 8px #327ce929}.btn.primary:hover{background:#246ad2}.separator,.vertical-rule{height:23px;border-left:1px solid var(--line);margin:0 4px}.export-wrap{position:relative}.export-menu{position:absolute;top:43px;right:0;background:#fff;box-shadow:0 18px 55px #25385533;border:1px solid var(--line);width:245px;border-radius:12px;overflow:hidden;z-index:50;padding:6px}.export-menu button{display:block;text-align:left;background:0 0;border:0;border-radius:7px;width:100%;padding:11px 12px;color:#253856;font-weight:750}.export-menu button:hover{background:var(--primary-soft)}.export-menu small{display:block;font-size:11px;color:var(--muted);font-weight:400;margin-top:4px}.workspace{display:grid;grid-template-columns:258px minmax(300px,1fr) 282px;min-height:0;flex:1}.panel{background:#fff;min-height:0;overflow:auto}.library{border-right:1px solid var(--line);padding:22px 15px}.panel-top{padding:1px 6px 12px}.panel h2{font-size:15px;margin:0;font-weight:750;letter-spacing:-.25px}.panel p{font-size:12px;color:var(--muted);line-height:1.5;margin:7px 0}.template-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.template-item{background:#fff;border:1.5px solid var(--line);border-radius:12px;padding:6px;text-align:left;min-width:0;transition:.14s}.template-item.active,.template-item:hover{border-color:#76adf6;background:#f7fbff}.template-preview{height:87px;border-radius:8px;background:#f4f7fc;overflow:hidden;display:flex;align-items:center;justify-content:center;margin-bottom:5px}.template-preview svg{width:68px;height:82px;box-shadow:0 4px 8px #00000012}.template-name{display:block;font-weight:720;font-size:11px;padding:2px 4px}.section-title{display:flex;align-items:baseline;justify-content:space-between;margin:24px 4px 11px}.section-title span{font-size:10px;color:var(--muted)}.elements-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.elements-grid button{border:1px solid var(--line);background:#fff;border-radius:10px;min-height:60px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;font-size:11px;color:#5c6b82}.elements-grid button:hover{background:#f3f8ff;border-color:#b4d0f7}.elements-grid span{font-size:20px;color:#347de5;font-weight:750}.layer-head{margin-top:22px}.layer-list{display:flex;flex-direction:column;gap:3px;min-height:70px}.layer-row{display:flex;gap:5px;border-radius:8px;align-items:center;border:1px solid transparent;min-width:0}.layer-row.active{background:#eaf3ff;border-color:#c6defa}.layer-row:hover{background:#f6f9fe}.layer-row .layer-select{flex:1;min-width:0;background:0 0;border:0;text-align:left;padding:8px 7px;font-size:11px;font-weight:620;color:#475a72;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.layer-row .layer-move{background:0 0;border:0;color:#8b9ab0;padding:5px;font-size:14px}.layer-row .layer-move:hover{color:#236dd6}.editor{display:flex;flex-direction:column;min-width:0;background:#f6f8fc;min-height:0}.toolbar{height:55px;min-height:55px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:7px 16px;gap:8px}.tools{display:flex;align-items:center;gap:5px}.toolbtn{font-size:11px;padding:8px 9px;border:0;background:#fff}.toolbtn:hover{background:#f0f6ff}.check-inline{display:flex;align-items:center;gap:4px;font-size:12px;color:var(--muted);white-space:nowrap}.check-inline input{accent-color:var(--primary)}#zoomReadout{font-size:11px;min-width:37px;text-align:center;color:#6b7d96}.stage-scroll{min-height:0;flex:1;overflow:auto;display:flex;align-items:flex-start;justify-content:center;padding:22px}.stage-wrap{width:max-content;max-width:100%;margin:auto 0}.canvas-heading{display:flex;justify-content:space-between;align-items:center;margin:0 0 11px;font-size:10px;letter-spacing:1px;font-weight:750;color:#91a0b3}.pulse{display:inline-block;width:7px;height:7px;border-radius:50%;background:#65bba1;margin-right:6px}.stage-shell{background:#fff;box-shadow:0 14px 48px #2f416d24,0 0 0 1px #dfe7f1;line-height:0;position:relative}.stage-host{outline:0;touch-action:none;cursor:default}.stage-host>svg{width:100%;height:100%;display:block;user-select:none}.stage-host [data-id]:not([data-selection]){cursor:move}.stage-host [data-handle]{cursor:nwse-resize}.stage-hint{margin-top:13px;text-align:center;font-size:11px;color:#90a0b6;line-height:1.5;max-width:720px}.statusbar{min-height:40px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:8px;align-items:center;padding:0 18px;font-size:11px;color:#8291a6;background:#fff}.inspector{border-left:1px solid var(--line);display:flex;flex-direction:column}.inspector-head{padding:23px 21px 13px;border-bottom:1px solid var(--line)}.inspector-scroll{overflow:auto;min-height:0}.section{padding:19px 21px;border-bottom:1px solid var(--line)}.section h3{font-size:13px;margin:0 0 14px}.section h4{color:#6e7e95;font-size:11px;text-transform:uppercase;letter-spacing:1px;margin:17px 0 8px}.field{display:flex;flex-direction:column;gap:7px;font-size:11px;font-weight:680;color:#65768f;margin:11px 0}.field input:not([type=color]),.field select,.field textarea{width:100%;border:1px solid #dfe6f0;border-radius:8px;background:#fff;color:#283d59;padding:9px;min-width:0}.field textarea{resize:vertical;line-height:1.55}.field input[type=color]{width:100%;height:38px;border:1px solid #dfe6f0;border-radius:7px;background:#fff;cursor:pointer;padding:2px}.theme-grid{display:flex;gap:8px;flex-wrap:wrap}.theme-swatch{border:2px solid #fff;outline:1px solid #d9e3f0;border-radius:12px;width:39px;height:39px;display:flex;justify-content:center;align-items:center}.theme-swatch[aria-pressed=true]{outline:3px solid #2d83eb}.theme-swatch i{width:16px;height:16px;border-radius:50%;display:block}.section-flex{display:flex;justify-content:space-between;align-items:center}.mini{padding:5px 7px;font-size:10px}.empty-selection{margin:7px 0 5px;background:#f8faff;border:1px dashed #dbe5f3;border-radius:12px;display:flex;flex-direction:column;gap:6px;align-items:center;text-align:center;padding:24px 12px}.empty-selection span{font-size:29px;color:#4f9ae9}.empty-selection strong{font-size:12px}.empty-selection p{margin:0;font-size:11px}.selected-head{display:flex;justify-content:space-between;border-radius:8px;background:#f6faff;padding:11px;font-size:11px}.selected-head span{color:#78889f}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:8px}.two-col .field{margin:7px 0}.help{font-size:11px!important;color:#8191a5!important;margin:7px 0 15px!important}.subhead{font-weight:740;font-size:12px;margin:18px 0 10px}.align-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.align-grid button{padding:8px 0;border:1px solid var(--line);border-radius:7px;font-size:11px;background:#fff;color:#64748b}.align-grid button:hover{background:var(--primary-soft)}.toggles{display:flex;flex-direction:column;gap:9px;padding:17px 0;font-size:12px;color:#677893}.toggles label{display:flex;align-items:center;gap:9px}.wide-btn{width:100%;font-size:12px}.wide-btn.danger{color:#b33f54}.privacy{background:#fcfdff}.privacy strong{font-size:11px}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#213653;color:#fff;border-radius:12px;padding:12px 20px;z-index:90;box-shadow:0 16px 40px #0003;font-size:13px;max-width:90vw;text-align:center}.mobile-tabs{display:none}@media(max-width:1270px){.workspace{grid-template-columns:230px minmax(300px,1fr) 260px}.topbar{gap:10px;padding:8px 12px}.brand-word{display:none}.project-head{gap:3px}.top-actions{gap:2px}.top-actions .btn{padding:8px 10px}}@media(max-width:1000px){.app{height:100dvh}.workspace{display:flex;position:relative}.workspace>.panel{width:275px;flex-shrink:0}.workspace>.editor{flex:1}.workspace>.inspector{position:absolute;right:0;top:0;bottom:0;box-shadow:-15px 0 24px #2237591c;z-index:4;display:none}.workspace>.inspector.visible{display:flex}.toolbar{padding:7px}.toolbtn{padding:7px 5px}.project-head .subtle,.topbar .studio-tag{display:none}}@media(max-width:720px){.app{min-height:0}.topbar{min-height:62px;flex-wrap:wrap;gap:4px}.appname{font-size:13px}.slash,.studio-tag{display:none}.project-head{order:3;width:100%;margin:0}.project-head input{width:100%;padding:2px 4px;font-size:12px}.top-actions{margin-left:auto}.top-actions .btn{font-size:10px;padding:7px 8px}.top-actions #newBtn,.top-actions #openBtn,.top-actions .icon-btn{display:none}.brandline{gap:6px}.logo{font-size:15px;padding:5px 7px}.mobile-tabs{display:flex;border-bottom:1px solid var(--line);height:39px;min-height:39px;background:#fff}.mobile-tabs button{flex:1;background:#fff;border:0;color:#72839c;font-size:11px;font-weight:700}.mobile-tabs button[aria-pressed=true]{border-bottom:2px solid #357eea;color:#347eea}.workspace>.panel{display:none!important}.workspace>.panel.visible{display:block!important;position:absolute;inset:0;width:100%;z-index:6}.workspace>.editor{display:none}.workspace>.editor.visible{display:flex}.workspace{display:block}.workspace>.editor{width:100%;height:100%}.toolbar{flex-direction:column;height:auto;min-height:71px;padding:6px;align-items:stretch;gap:0}.toolbar .tools{justify-content:center}.toolbar .toolbtn{font-size:11px}.stage-scroll{padding:16px 10px}.statusbar{font-size:10px;padding:0 8px}.statusbar #selectionInfo{display:none}.library{padding:16px 15px}.template-grid{grid-template-columns:repeat(3,1fr)}.stage-hint{font-size:10px}}@media(max-width:1000px){.toolbar .tools:first-child{min-width:0;overflow-x:auto;justify-content:flex-start;scrollbar-width:thin}.toolbar .tools:first-child>*{flex-shrink:0}}@media(max-width:720px){.topbar{min-height:87px}.top-actions{width:100%;order:2;margin-left:0;overflow-x:auto;justify-content:flex-end}.topbar .top-actions #newBtn,.topbar .top-actions #openBtn{display:inline-flex}.project-head{order:3}.toolbar{min-height:77px}.toolbar .tools:first-child{justify-content:flex-start}.toolbar .tools:first-child>*{flex-shrink:0}}