*{box-sizing:border-box}body{margin:0;background:#f5f5f3;color:#252a28;font:14px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}button,input,textarea,select{font:inherit}button{cursor:pointer;border:1px solid #dedfdc;background:#fff;color:inherit;border-radius:8px;padding:11px 15px}button:hover{border-color:#719887}.primary{background:#244e3f;color:#fff;border:0}nav{position:fixed;inset:0 auto 0 0;width:220px;background:#fff;border-right:1px solid #e4e6e1;padding:28px 14px;display:flex;flex-direction:column;gap:8px}nav>b{font-size:19px;padding:0 10px;margin-bottom:35px}small{display:block;color:#939a92;font-size:11px;line-height:1.7}nav>small{padding:0 12px;margin-bottom:5px}nav>button{display:flex;align-items:center;gap:12px;text-align:left;border:0;padding:13px 12px;background:transparent}em{font-style:normal;display:grid;place-items:center;background:#eff1ed;border-radius:50%;width:28px;height:28px}.active{border-color:#4f8e73!important;background:#e9f2eb!important;color:#22593f}nav .active em{background:#2c7151;color:white}.nav-bottom{margin-top:auto;padding:10px}.nav-bottom button{margin-top:12px;width:100%}main{margin-left:220px;display:grid;grid-template-columns:minmax(470px,1fr) 370px;min-height:100vh}.controls{padding:30px 34px;max-height:100vh;overflow:auto}header{display:flex;align-items:center;justify-content:space-between;gap:18px;border-bottom:1px solid #e0e4dc;padding-bottom:22px}h1{font-size:24px;margin:0}header p{color:#90998d;margin:9px 0 0}h2{font-size:14px;margin:0 0 18px}label{display:block;font-size:12px;color:#6c7669;margin:15px 0}input:not([type=range]):not([type=color]),textarea,select{width:100%;display:block;border:1px solid #dce1d7;border-radius:8px;padding:11px;margin-top:8px;background:#fff;color:#30362e}textarea{resize:vertical}header select{width:230px;margin:0}.panel>section{padding:24px 0;border-bottom:1px solid #e0e4dc}.panel>button{margin-top:22px}.information{max-width:580px;padding-top:26px}.information>h2{display:none}.upload{border:1px dashed #9ba996;border-radius:10px;padding:24px;text-align:center;cursor:pointer;background:#f0f3ec}.note{color:#929a8c;font-size:12px;line-height:1.8}.row,.templates{display:flex;gap:10px;align-items:center}.row select{width:130px;margin:0}.slides,#exportSlides{display:flex;gap:12px}.slides button,#exportSlides button{width:68px;height:100px;padding:6px;font-size:11px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px}.slides img{width:30px;height:60px;object-fit:cover;border-radius:4px}.slides .placeholder{width:28px;height:58px;border-radius:5px;background:#dce6d9}.layout-grid{display:grid;grid-template-columns:repeat(9,1fr);gap:8px}.layout-grid button{padding:8px 3px;font-size:10px;border:1px solid transparent;background:transparent}.layout-icon{display:block;position:relative;height:67px;border-radius:7px;background:#e9ece5;margin-bottom:8px}.layout-icon i{position:absolute;background:#579178;border-radius:4px;width:28px;height:39px;top:21px;left:calc(50% - 14px)}.layout-icon b{position:absolute;background:#a5b0a0;width:24px;height:4px;left:calc(50% - 12px);top:9px;box-shadow:0 7px #b9c1b4}.layout-0 i{top:6px}.layout-0 b{top:49px}.layout-2 i,.layout-7 i{transform:rotate(-18deg)}.layout-8 i{transform:rotate(18deg)}.layout-3 i{height:28px;top:32px;box-shadow:0 -28px #579178}.layout-3 b{top:24px}.layout-4 i{left:50%}.layout-5 i{left:10%}.layout-6 i{width:22px;height:34px;left:calc(50% - 11px)}.palette{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}.palette button{border:1px solid transparent;background:transparent;padding:7px;font-size:11px}.palette i{display:block;width:42px;height:42px;border-radius:50%;margin:0 auto 10px;box-shadow:0 0 0 1px #0000000b}.settings{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.settings h2,.settings .note{grid-column:1/-1}.settings label{margin:8px 0}.settings input[type=color]{width:100%;height:34px;border:0;margin-top:8px}.settings input[type=range]{width:100%;margin-top:12px}.preview{background:#eaede6;border-left:1px solid #dce1d5;padding:25px 22px;display:flex;flex-direction:column;height:100vh;position:sticky;top:0}.preview-head{display:flex;justify-content:space-between;font-size:12px}.preview-head span{color:#8d9787}.stage{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;padding:28px 0}canvas{max-height:100%;max-width:100%;box-shadow:0 10px 28px #20332a20;cursor:move}.preview>p{text-align:center;color:#95a08b;font-size:11px}.export-panel{padding-top:35px;max-width:520px}.export-panel>p{color:#899381}.export-panel #exportSlides{margin:24px 0}#assets{display:flex;gap:8px;margin:15px 0}#assets img{width:40px;height:60px;object-fit:cover;border-radius:5px}[hidden]{display:none!important}@media(max-width:1150px){nav{width:185px}main{margin-left:185px;grid-template-columns:minmax(390px,1fr) 290px}.controls{padding:24px 20px}.layout-grid{grid-template-columns:repeat(5,1fr)}header{flex-wrap:wrap}}@media(max-width:800px){nav{position:static;width:100%;flex-direction:row;padding:12px;flex-wrap:wrap}nav>b{margin:0;width:100%}nav>small,.nav-bottom{display:none}main{margin:0;display:flex;flex-direction:column}.controls{max-height:none}.preview{position:static;height:600px}.palette{grid-template-columns:repeat(5,1fr)}}
.editor-toolbar{display:flex;justify-content:space-between;align-items:center;margin-top:26px;padding:16px;background:#fff;border:1px solid #dce1d7;border-radius:10px}.editor-toolbar span{font-size:12px;color:#94a18b}.manual-panel .settings{margin-top:18px;padding:22px;background:white;border:1px solid #dce1d7;border-radius:12px}.manual-panel .settings label:has(textarea){grid-column:1/-1}.manual-panel textarea{min-height:70px}
body.manual-mode main{grid-template-columns:1fr}body.manual-mode .preview{display:none}body.manual-mode .controls{padding:20px;max-height:none}.editor-toolbar{gap:8px;flex-wrap:wrap;margin:15px 0;border-radius:8px}.editor-toolbar button{padding:8px 12px}.editor-toolbar select{width:115px;margin:0 0 0 auto}.editor-shell{display:grid;grid-template-columns:180px minmax(220px,1fr) 240px;height:620px;border:1px solid #dce1d7;border-radius:10px;overflow:hidden;background:#fff}.layer-panel,.property-panel{padding:18px 12px;overflow:auto}.layer-panel{border-right:1px solid #e1e5dc}.property-panel{border-left:1px solid #e1e5dc}.layer-row{display:flex;gap:3px;margin:5px 0;align-items:center;border-radius:6px;background:#f5f7f2}.layer-row button{padding:8px 4px;border:0;background:transparent;font-size:11px}.layer-row button:first-child{flex:1;text-align:left}.layer-row.active{background:#e8f1ff!important;color:#2964a6}.editor-canvas{display:flex;flex-direction:column;background:#e7e9ed;min-width:0}.editor-canvas #canvasDock{flex:1;min-height:0;overflow:auto;display:flex;align-items:center;justify-content:center;padding:30px}#canvasDock canvas{max-height:100%;max-width:100%;touch-action:none}.zoom-bar{display:flex;gap:12px;align-items:center;justify-content:center;background:#fff;padding:8px;font-size:12px}.zoom-bar button{padding:5px 8px}.property-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 10px}.property-panel label{margin:9px 0}.property-panel input[type=color]{width:100%;height:30px;border:0}.property-panel textarea{min-height:60px}.property-panel h2{margin:12px 0}.property-panel .row{gap:4px;flex-wrap:wrap}.property-panel button{padding:7px;font-size:11px}.align-controls{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;margin-bottom:12px}.legacy-settings{margin:16px 0;color:#6d786b}body.manual-mode .settings{margin-top:12px}button:disabled{opacity:.4;cursor:default}@media(max-width:1000px){.editor-shell{grid-template-columns:130px minmax(200px,1fr) 190px}}@media(max-width:800px){.editor-shell{height:auto;grid-template-columns:120px 1fr}.editor-canvas{height:500px}.property-panel{grid-column:1/-1}.property-grid{grid-template-columns:repeat(3,1fr)}}

.legacy-settings{display:none}
/* Screenshot editor */
body.manual-mode{background:#fff;color:#202020}body.manual-mode nav{width:184px;padding:24px 12px;background:#fafafa}body.manual-mode main{margin-left:184px}body.manual-mode .controls{padding:0;height:100vh;overflow:hidden}body.manual-mode .controls>header{display:none}body.manual-mode .manual-panel{height:100%;display:flex;flex-direction:column}body.manual-mode .manual-panel>button{display:none}.editor-toolbar{height:72px;flex-shrink:0;border:0;border-bottom:1px solid #e6e6e6;border-radius:0;margin:0;padding:14px 22px;flex-wrap:nowrap;background:#fff}.editor-brand{display:flex;gap:13px;align-items:center;flex:1;font-size:19px}.editor-brand span{font-size:12px;color:#5b7762}.editor-toolbar button{background:white;border-color:#e7e7e7;color:#333;border-radius:9px}.editor-toolbar .editor-export{background:#191919;color:#fff;padding:12px 22px}.editor-shell{flex:1;height:auto;min-height:0;grid-template-columns:76px 280px minmax(240px,1fr);border:0;border-radius:0}.tool-rail{border-right:1px solid #eee;padding:12px 6px;overflow:auto;display:flex;flex-direction:column;gap:5px}.tool-rail button{border:0;background:transparent;display:flex;flex-direction:column;gap:7px;align-items:center;padding:13px 2px;font-size:11px;color:#777}.tool-rail i{font-style:normal;font-size:23px;line-height:24px}.tool-rail .active{background:#f2f2f2!important;color:#111!important}.tool-sidebar{overflow:auto;border-right:1px solid #e8e8e8;background:white}.tool-sidebar>section,.tool-sidebar>aside{padding:22px 18px;border:0}.tool-sidebar h2{font-size:15px;margin-bottom:20px}.tool-sidebar h3{font-size:12px;font-weight:500;color:#777;margin:24px 0 14px}.tool-sidebar input,.tool-sidebar textarea{border-color:#e6e6e6}.tool-sidebar input[type=color]{width:100%;height:40px;padding:4px;border:1px solid #ddd;border-radius:8px;background:white}.tool-sidebar .upload{background:#fafafa;border-color:#ddd;padding:20px}.editor-canvas{position:relative;background:#fafbfc}.canvas-top{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;font-size:12px;color:#999}.canvas-top button{padding:10px 14px;border-color:#e8e8e8;box-shadow:0 2px 4px #00000007} .editor-canvas #canvasDock{padding:28px 50px;overflow:auto;min-height:180px}#canvasDock canvas{box-shadow:0 3px 20px #00000012;outline:1px solid #e5e5e5;background:white}.editor-pages{display:flex;align-self:center;gap:10px;padding:12px 18px;margin:12px 20px 22px;border:1px solid #e7e7e7;border-radius:15px;background:white;box-shadow:0 5px 14px #00000008}.editor-pages button{padding:6px;width:58px;height:76px;border:1px solid #e5e5e5;background:#fff;display:flex;flex-direction:column;gap:5px;align-items:center;font-size:10px;color:#777}.editor-pages img{max-width:100%;height:49px;object-fit:contain}.editor-pages button.active{border:2px solid #222!important;background:#fff!important;color:#111}.zoom-bar{border-top:1px solid #eee;justify-content:flex-end;padding:10px 22px;height:51px}.zoom-bar button{border:0;background:transparent}.layer-row{background:#f8f8f8;padding:5px 3px}.layer-row button:first-child{font-size:12px}.media-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.media-grid button{padding:8px;height:130px;background:#f7f7f7;border-color:#eee}.media-grid img{height:100%;max-width:100%;object-fit:contain}.shape-grid,.frame-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.shape-grid button,.frame-grid button{font-size:40px;height:100px;background:#fafafa;border-color:#eee;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px}.shape-grid span,.frame-grid span{font-size:11px}.swatch-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:9px}.swatch-grid button{aspect-ratio:1;padding:0;border-radius:8px;border:3px solid white;box-shadow:0 0 0 1px #eee}.swatch-grid button:hover{box-shadow:0 0 0 2px #333}.template-preview{background:#efeae0;border-radius:12px;padding:25px;margin-bottom:20px;text-align:center}.template-preview span{font-size:10px}.template-preview strong{display:block;font-size:23px;margin:20px 0}.template-preview div{background:#fff;border:4px solid #292929;border-radius:12px;font-size:80px;width:90px;margin:auto;line-height:140px}.property-panel .align-controls button,.property-panel .row button{font-size:12px;background:#fafafa;border-color:#eee}.property-panel #deleteLayer{width:100%;margin-top:16px;color:#a33}.editor-toolbar #addText,.editor-toolbar #addShape{display:none}@media(max-width:1100px){body.manual-mode nav{width:155px}body.manual-mode main{margin-left:155px}.editor-shell{grid-template-columns:66px 240px minmax(200px,1fr)}.editor-brand{font-size:15px}.editor-canvas #canvasDock{padding:25px}}@media(max-width:800px){body.manual-mode nav{width:100%;padding:12px;position:static}body.manual-mode main{margin:0}body.manual-mode .controls{height:850px}.editor-shell{grid-template-columns:58px 210px minmax(150px,1fr)}.editor-canvas{height:auto}.editor-toolbar{padding:12px;gap:6px}.editor-brand span,#editorSave{display:none}.editor-toolbar select{width:85px}.editor-canvas #canvasDock{padding:15px}.editor-pages{gap:4px;padding:8px;margin:10px}.editor-pages button{width:30px;height:55px}.editor-pages img{height:30px}.tool-sidebar .property-panel{grid-column:auto}.zoom-bar{padding:8px;gap:3px}.canvas-top{padding:10px;flex-wrap:wrap;gap:8px}}
.text-add{width:100%;background:#191919;color:#fff;padding:13px!important;font-size:13px!important;margin-bottom:20px}.manual-mode nav .active{background:#ececec!important;color:#111}.manual-mode nav .active em{background:#222}.manual-mode .property-panel textarea{min-height:100px}
.editor-canvas #canvasDock{flex:1 1 0;height:0;min-height:0}#canvasDock canvas{height:100%;width:auto;max-width:100%;object-fit:contain}.editor-pages{flex-shrink:0}.canvas-top,.zoom-bar{flex-shrink:0}
.cat-template-card{padding:12px;width:190px;text-align:left}.cat-template-card>b{display:block;font-size:12px;margin-top:12px}.cat-mini{display:flex;flex-direction:column;align-items:center;gap:7px;background:#252525;color:white;border-radius:8px;height:220px;padding:24px 12px;overflow:hidden}.cat-mini strong{font:24px 'Songti SC',serif}.cat-mini small{color:#ccc;font-size:10px}.cat-mini i{font-style:normal;border:2px solid #bbb;border-radius:17px;background:#f5f1e5;color:#b5b0a0;font-size:65px;line-height:145px;width:95px;text-align:center;margin-top:13px}.cat-variants{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}
/* Unified editor workspace */
body.manual-mode main{margin-left:0}body.manual-mode .controls{height:100vh}.project-actions{display:flex;align-items:center;gap:12px}.project-actions #status{display:none}.project-actions #reset{font-size:12px;padding:10px}.tool-sidebar [data-tool-panel]>section{padding:18px 0;border-bottom:1px solid #eee}.tool-sidebar .layout-grid{grid-template-columns:repeat(3,1fr)}.tool-sidebar .palette{grid-template-columns:repeat(3,1fr)}.tool-sidebar .slides{gap:5px;flex-wrap:wrap}.tool-sidebar .slides button{width:40px;height:78px}.tool-sidebar .row{flex-wrap:wrap}.tool-sidebar .row select{width:100%}.tool-sidebar #exportSlides{flex-wrap:wrap;gap:6px}.tool-sidebar #exportSlides button{width:65px;height:42px}.tool-sidebar #assets{flex-wrap:wrap}.tool-sidebar #generate,.tool-sidebar #export{width:100%}.tool-sidebar [data-tool-panel="export"]{max-width:none}.tool-sidebar .cat-template-card{width:100%}.tool-sidebar .information{padding-top:0}.tool-sidebar .templates{display:block}.editor-toolbar #platform{width:190px}.tool-rail{gap:2px}.tool-rail button{padding:11px 2px}@media(max-width:800px){body.manual-mode main{margin-left:0}.project-actions{display:none}}
.tool-sidebar .settings{display:block;padding:0;margin:0;border:0}.tool-sidebar .settings label{margin:15px 0}.tool-sidebar .settings .note{display:none}
.center-information{grid-column:2/-1;grid-row:1;overflow:auto;padding:44px max(28px,calc((100% - 720px)/2));background:#fafbfc;min-height:0}.center-information>h2{font-size:25px;margin-bottom:28px}.center-information label{font-size:14px;margin:22px 0}.center-information input,.center-information textarea{padding:13px;background:white}.center-information .upload{background:white;padding:32px}.center-information #assets{flex-wrap:wrap}.center-information #assets img{width:64px;height:100px}.center-information #generate{padding:14px 28px}.information-mode .tool-sidebar,.information-mode .editor-canvas{display:none}.information-mode .editor-shell{grid-template-columns:76px minmax(0,1fr)}.information-mode .editor-toolbar #manualPage{display:none}@media(max-width:800px){.information-mode .editor-shell{grid-template-columns:58px minmax(0,1fr)}.center-information{padding:28px 24px}}
.studio-template-card{width:100%;padding:12px;text-align:left;margin-top:16px}.studio-template-card>b{display:block;font-size:12px;margin-top:12px}.studio-mini{height:220px;display:block;background:linear-gradient(145deg,#353535,#080808);border-radius:8px;overflow:hidden;position:relative;padding:16px}.studio-mini strong{font-size:35px;line-height:1;color:#555}.studio-mini i{position:absolute;left:42%;top:65px;border:2px solid #aaa;border-radius:15px;width:85px;height:170px;transform:rotate(-13deg);background:#181818;color:#777;font-size:65px;text-align:center}.studio-mini small{position:absolute;color:white;bottom:20px;left:16px;font-size:16px}
.editor-canvas{background:#202020}.editor-canvas #canvasDock,.editor-canvas .canvas-top,.editor-canvas .editor-pages{display:none}.store-preview{flex:1;min-height:0;overflow-y:auto;padding:32px 28px;color:#eee;--page-width:260px}.store-product{display:flex;align-items:center;gap:22px;padding-bottom:28px;border-bottom:1px solid #3d3d3d}.store-icon{width:84px;height:84px;flex-shrink:0;border-radius:20px;background:linear-gradient(145deg,#2596ff,#4855d8);display:grid;place-items:center;font-weight:700;font-size:24px}.store-product h1{font-size:24px;margin:0 0 8px}.store-product p{color:#aaa;margin:0 0 10px}.store-product span{color:#777;font-size:12px}.store-preview-heading{display:flex;justify-content:space-between;align-items:center;margin:25px 0 14px;gap:12px}.store-preview-heading h2{font-size:22px;margin:0}.store-preview-heading>div{display:flex;gap:8px}.store-preview-heading button{background:#303030;color:#eee;border-color:#454545;padding:8px 12px}.page-gallery{display:flex;gap:18px;overflow-x:auto;padding:4px 3px 18px;scrollbar-color:#555 #202020;align-items:flex-start}.page-card{flex:0 0 var(--page-width);width:var(--page-width)}.page-label{background:transparent;color:#aaa;border:0;padding:8px 0;margin-bottom:6px}.page-card.selected .page-label{color:#4fa4ff}.page-image{position:relative;width:100%}.page-image canvas{display:block;width:100%;height:auto;max-width:none;max-height:none;border-radius:14px;box-shadow:none;outline:1px solid #444;touch-action:none}.page-card.selected canvas{outline:2px solid #398bff}.gallery-hint{font-size:12px;color:#808080;margin:12px 0}.canvas-text-editor{position:absolute;z-index:5;margin:0!important;padding:0!important;border:2px solid #398bff!important;border-radius:2px!important;background:#202020ed!important;resize:none;line-height:1.2;transform-origin:center}.editor-canvas .zoom-bar{background:#202020;color:#aaa;border-color:#3d3d3d}.editor-canvas .zoom-bar button{color:#aaa}.information-mode .store-preview{display:none}
.store-preview{padding:24px 28px}.store-product{padding-bottom:20px}.store-icon{width:66px;height:66px;border-radius:17px;font-size:20px}.store-product h1{font-size:22px}.store-preview-heading{margin:20px 0 10px}.page-card{flex-basis:min(var(--page-width),calc((100vh - 330px)*.46));width:min(var(--page-width),calc((100vh - 330px)*.46))}.page-gallery{min-height:0}.store-preview{overflow-y:auto}.zoom-bar{flex-shrink:0}
.template-dialog{width:min(540px,90vw);padding:42px;border:0;border-radius:30px;color:#171717;box-shadow:0 20px 80px #0004}.template-dialog::backdrop{background:#171b2860;backdrop-filter:blur(5px)}.template-dialog h2{font-size:28px;margin:0 0 18px}.template-dialog p{color:#777}.dialog-close{position:absolute;right:16px;top:12px;border:0;background:transparent;font-size:30px;padding:4px 10px}.dialog-checkbox{display:flex;align-items:center;gap:10px;font-size:16px;margin:28px 0;color:#222}.dialog-checkbox input{width:20px!important;height:20px;margin:0!important}.dialog-actions{display:flex;gap:16px;margin-top:32px}.dialog-actions button{flex:1;font-weight:600;padding:16px 12px;font-size:16px}.dialog-actions .primary{background:#8a3cff}.template-detail-controls>.panel{padding:0}.tool-sidebar [data-tool-panel="templates"]>section{border:0;padding:0}
.template-back{border:0;background:transparent;padding:0;margin-bottom:22px;color:#777}.template-subnav{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;margin:18px 0}.template-subnav button{padding:9px 3px;font-size:12px;background:#f7f7f7;border:1px solid transparent}.template-subnav button.active{background:#222!important;color:white!important;border-color:#222!important}.template-page-details .template-detail-controls{padding:0;border:0}.template-page-details [data-template-edit]>section{padding:16px 0;border-bottom:1px solid #eee}.template-page-details .cat-variants{margin-top:20px}.template-page-details h2{margin-bottom:15px}
.history-icons{display:flex;gap:4px;margin-right:12px}.editor-toolbar .history-icons button{display:flex;align-items:center;justify-content:center;width:44px;height:40px;padding:4px 6px;border:0;background:transparent;line-height:1}.history-icons svg{display:block;width:24px;height:24px}.editor-toolbar .history-icons button:disabled{opacity:.4}.floating-text-toolbar{display:flex;gap:5px;align-items:center;padding:9px 12px;background:#fff;color:#222;border:1px solid #e2e2e8;border-radius:15px;margin:14px 14px 0;box-shadow:0 4px 15px #0002;flex-wrap:wrap;z-index:10;flex-shrink:0}.floating-text-toolbar button{padding:6px 9px;border:0;font-size:17px}.floating-text-toolbar select{width:auto;max-width:130px;padding:7px;margin:0;font-size:12px}.floating-text-toolbar input[type=number]{width:55px;margin:0;padding:6px;font-size:12px}.floating-text-toolbar input[type=color]{width:32px;height:30px;padding:0;border:0}.floating-text-toolbar label{display:flex;align-items:center;gap:4px;margin:0;font-size:10px}.floating-text-toolbar .active{background:#efe8ff!important;color:#6f38bb!important}.floating-text-toolbar~.store-preview{min-height:0}
.floating-page-toolbar{align-self:center;display:flex;align-items:center;gap:16px;padding:12px 18px;margin:16px 16px 0;border-radius:16px;background:white;color:#222;box-shadow:0 5px 18px #0002;flex-shrink:0}.floating-page-toolbar strong{font-size:14px}.toolbar-divider{height:24px;width:1px;background:#ddd}.palette-icon{width:32px;height:32px;border:0;border-radius:50%;padding:0;background:conic-gradient(red,#ff0,#0f0,#0ff,#00f,#f0f,red);box-shadow:inset 0 0 0 1px #0001}.quick-page-color{display:flex;align-items:center;gap:8px;margin:0;font-size:12px}.quick-page-color input{width:32px;height:30px;padding:0;border:0}.close-colors{float:right;border:0;padding:0 4px;background:transparent;font-size:25px;line-height:25px}.tool-sidebar [data-tool-panel="pageColors"] .swatch-grid button{border-radius:50%}.floating-page-toolbar~.store-preview{min-height:0}
.page-card{transition:width .28s cubic-bezier(.2,.7,.2,1),flex-basis .28s cubic-bezier(.2,.7,.2,1),opacity .25s}.page-gallery{position:relative;align-items:flex-start}.edit-focused .store-product{display:none}.edit-focused .store-preview-heading{margin-top:2px}.edit-focused .page-card{opacity:.55}.edit-focused .page-card.editing-page{flex-basis:var(--focused-page-width);width:var(--focused-page-width);opacity:1}.edit-focused .page-card.editing-page canvas{outline:2px solid #398bff;box-shadow:0 12px 30px #0005}.edit-focused .page-card:not(.editing-page):hover{opacity:.85}.edit-focused .page-gallery{padding-top:8px;padding-bottom:20px}.edit-focused .gallery-hint{margin:8px 0}.store-preview{scroll-behavior:smooth}@media(prefers-reduced-motion:reduce){.page-card{transition:none}.store-preview{scroll-behavior:auto}}

/* Screenhance-inspired workbench home */
.home-mode{background:#fff;color:#202124}.home-mode>nav,.home-mode>main{display:none!important}#workbenchHome[hidden]{display:none}.home-nav{position:fixed;inset:0 auto 0 0;width:224px;background:#fff;border-right:1px solid #e9e9eb;padding:18px 9px;display:flex;flex-direction:column;z-index:10}.home-logo{display:flex;align-items:center;gap:5px;color:#18202e;text-decoration:none;padding:0 7px;margin-bottom:29px;font-size:22px;letter-spacing:-1px}.home-logo svg{width:24px;height:24px}.home-nav button{width:100%;display:flex;align-items:center;gap:13px;padding:11px 12px;border:0;background:transparent;font-size:14px;text-align:left;color:#737373;border-radius:7px}.home-nav button svg{width:18px;height:18px;flex-shrink:0}.home-nav button small{margin-left:auto;font-size:9px;white-space:nowrap;color:#999}.home-nav button.selected{background:#f4f4f5;color:#171717}.home-nav button:hover:not(:disabled){background:#f4f4f5}.home-nav button:disabled{cursor:default}.home-nav-bottom{margin-top:auto}.home-upgrade{background:#fafafa;border:1px solid #e8e8eb;border-radius:8px;margin:15px 3px 20px;padding:14px 12px}.home-upgrade p{font-size:12px;color:#888;line-height:1.6;margin:9px 0}.home-upgrade button{background:#191919;color:#fff;text-align:center;justify-content:center;padding:9px}.home-local{border-top:1px solid #eee;margin:12px 8px 0;padding-top:17px;font-size:12px;color:#888}.home-main{margin-left:224px}.home-notice{height:44px;display:flex;align-items:center;justify-content:space-between;background:#191919;color:#fff;padding:0 24px;font-size:13px}.home-notice button{border:0;padding:6px 12px;border-radius:5px;font-size:12px;color:#191919}.home-content{max-width:1450px;margin:auto;padding:24px 48px 65px}.home-hero{border:1px solid #e5e5e8;border-radius:16px;background:radial-gradient(ellipse at left top,#fceede,transparent 48%),radial-gradient(ellipse at right bottom,#dcf3f9,transparent 52%),radial-gradient(ellipse at center bottom,#f4edff,transparent 60%),#fafafa;padding:57px 62px 70px;text-align:center;overflow:hidden}.home-hero h1{font-family:Georgia,'Songti SC',serif;font-size:40px;font-weight:500;letter-spacing:-1px}.home-hero>p{font-size:18px;color:#858585;margin:17px 0 42px}.home-categories{display:flex;gap:12px;overflow-x:auto;padding-bottom:2px;scrollbar-width:thin}.home-categories button{flex:0 0 125px;height:96px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;background:#ffffffaa;border:1px solid #e4e4e7;border-radius:13px;padding:10px;color:#626262}.home-categories svg{width:21px;height:21px}.home-categories b{font-size:13px;font-weight:500;white-space:nowrap}.home-categories small{font-size:10px;color:#999;line-height:1}.home-categories button:disabled{cursor:default}.home-section{margin-top:50px;scroll-margin-top:24px}.home-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.home-heading h2{font-size:20px;font-weight:600;margin:0}.home-heading button{background:none;border:0;padding:0;color:#858585;font-size:13px}.home-heading>span{font-size:12px;color:#999}.home-tabs{display:inline-flex;background:#f4f4f5;padding:4px;border-radius:8px;gap:3px}.home-tabs button{background:none;border:0;color:#858585;font-size:13px;font-weight:500;padding:8px 15px;border-radius:5px}.home-tabs button[aria-selected=true]{background:#fff;color:#292929;box-shadow:0 2px 3px #00000012}.home-filters{display:flex;gap:8px;margin:20px 0;flex-wrap:wrap}.home-filters button{border:0;border-radius:30px;background:#f5f5f5;color:#858585;padding:7px 13px;font-size:12px;font-weight:500}.home-filters button.selected{background:#191919;color:#fff}.home-template-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px 16px}.home-template-grid[hidden]{display:none}.home-template-card{padding:0;overflow:hidden;border:1px solid #e7e7e9;border-radius:15px;background:#fafafa;text-align:left;min-width:0;transition:box-shadow .2s,transform .2s}.home-template-card:hover:not(:disabled){border-color:#ccc;box-shadow:0 6px 22px #0000000b;transform:translateY(-2px)}.home-template-preview{height:200px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#e8ecf5,#e5e5eb);position:relative;overflow:hidden}.home-template-preview img{height:174px;width:auto;border-radius:7px;box-shadow:0 8px 18px #0003;object-fit:contain}.home-template-preview.tone-1{background:linear-gradient(135deg,#ffecd5,#f4e4ef)}.home-template-preview.tone-2{background:linear-gradient(135deg,#d9e5f2,#e8e5fb)}.home-template-preview.tone-3{background:linear-gradient(135deg,#17172e,#40435c)}.home-template-preview.tone-4{background:linear-gradient(135deg,#e9e9e6,#d6ded9)}.home-card-label{display:flex;align-items:center;gap:7px;background:#fff;padding:13px 12px;min-height:48px}.home-card-label b{font-size:12px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.home-card-label>span{font-size:9px;white-space:nowrap;background:#f5f5f5;color:#888;border-radius:3px;padding:3px 4px;margin-left:auto}.home-start-card{height:201px;border:2px dashed #e6e6e8;border-radius:12px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:18px;color:#929292;background:#fff}.home-start-card svg{width:25px;height:25px}.home-start-card b{font-size:14px;font-weight:500}.home-coming{position:absolute;top:10px;right:10px;font-size:10px;background:#fff9;border:1px solid #fff;border-radius:20px;padding:4px 8px;color:#666}.home-template-preview.mint{background:#d7ebe1}.home-template-preview.pink{background:linear-gradient(135deg,#f9d2e5,#fff0d2)}.home-template-preview.blue{background:#e2edf7}.home-template-preview.purple{background:#eee5f8}.home-demo-device{width:78%;height:65%;border:6px solid #25252b;border-radius:7px;background:#99e7c9;transform:rotate(-4deg);box-shadow:0 12px 20px #0002;padding:15px;font-size:23px;letter-spacing:-1px}.home-demo-device small{font-size:10px;color:#43645b;letter-spacing:0}.home-demo-device.laptop:after{content:'';position:absolute;background:#b9b9b9;left:-12%;right:-12%;height:7px;bottom:-10px;border-radius:0 0 15px 15px}.home-demo-device.duo{width:70px;height:148px;border-radius:15px;background:#f5a4c9;font-size:17px;box-shadow:60px 9px 0 -2px #f5a4c9,60px 9px 0 3px #25252b;transform:translateX(-25px) rotate(6deg);padding:12px 4px}.home-demo-device.browser{background:#fff;border:5px solid #ddd;font-size:20px;transform:rotate(0);color:#657485}.home-demo-device.browser:after{content:'';display:block;width:100%;height:50px;background:linear-gradient(110deg,#e5eef3 40%,#c6dbe8 40%);margin-top:13px;border-radius:5px}.home-empty{text-align:center;padding:60px 15px;color:#888;font-size:14px}.home-empty[hidden]{display:none}.home-empty p{font-size:12px;color:#999;margin:12px 0 20px}.home-empty button{background:#191919;color:#fff;border:0;padding:9px 14px;border-radius:5px}.home-draft-card{display:flex;gap:20px;align-items:center;width:300px;padding:15px;text-align:left;border-color:#e7e7e9}.home-draft-card img{height:100px;width:46px;object-fit:cover;border-radius:4px}.home-draft-card b{font-weight:500}.home-draft-card p{font-size:12px;color:#999}.home-mode .floating-text-toolbar,.home-mode .context-menu{display:none!important}#backToWorkbench{border:0;border-right:1px solid #ddd;border-radius:0;font-size:12px;padding:5px 12px 5px 0;margin-right:8px;background:transparent}@media(min-width:1600px){.home-template-preview{height:240px}}@media(max-width:1100px){.home-content{padding:24px}.home-hero{padding:42px 28px}.home-hero h1{font-size:32px}.home-template-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:760px){.home-nav{width:70px}.home-logo b,.home-nav button span,.home-nav button small,.home-nav-bottom{display:none}.home-logo{padding:0 12px}.home-nav button{justify-content:center}.home-main{margin-left:70px}.home-content{padding:16px}.home-notice{padding:0 12px}.home-notice span{font-size:10px}.home-hero{padding:35px 18px}.home-hero h1{font-size:27px}.home-hero>p{font-size:13px}.home-template-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 10px}.home-tabs button{padding:8px;font-size:11px}.home-template-preview{height:170px}.home-template-preview img{height:145px}.home-card-label{flex-wrap:wrap;padding:10px}.home-section{margin-top:32px}}
/* Workspace navigation is exclusive: never overlay the editor with home navigation. */
body:not(.home-mode) #workbenchHome{display:none!important}body.home-mode>main{display:none!important}body.manual-mode:not(.home-mode)>main{margin-left:0;min-width:0}.editor-shell,.tool-sidebar,.editor-canvas{min-width:0}.home-mode{overflow:auto}body.manual-mode:not(.home-mode){overflow:hidden}
#workbenchHome button:disabled{opacity:1}.home-categories button:disabled{color:#777}.home-nav button:disabled{color:#888}.home-template-card:disabled .home-card-label{color:#777}
/* Edge pages can center too; retain space on both ends of the horizontal strip. */
.page-gallery{padding-left:calc(50% - 130px);padding-right:calc(50% - 130px);scroll-padding-inline:calc(50% - 130px);overflow-y:visible}.page-card{transition:width .36s cubic-bezier(.2,.7,.2,1),flex-basis .36s cubic-bezier(.2,.7,.2,1),opacity .36s}.page-image canvas{transform-origin:center top}.edit-focused .page-gallery{padding-top:10px}.edit-focused .store-preview-heading{position:sticky;top:0;background:#202020;z-index:2;padding:4px 0 10px}.edit-focused .page-card.editing-page{min-width:var(--focused-page-width)}

/* Overview stops at the first and last page; only focused editing needs centering space. */
.store-preview:not(.edit-focused) .page-gallery{padding-inline:3px;scroll-padding-inline:3px}
.store-preview.edit-focused .page-gallery{padding-inline:calc((100% - var(--focused-page-width))/2);scroll-padding-inline:calc((100% - var(--focused-page-width))/2)}
.store-preview.edit-focused{overflow-y:hidden}.edit-focused .page-card{flex-basis:min(var(--page-width),var(--focused-page-width));width:min(var(--page-width),var(--focused-page-width))}

/* Keyboard navigation retains programmatic centering without manual scrolling. */
.page-gallery{overflow-x:hidden;overscroll-behavior-x:none}
.collapse-sidebar{display:flex;align-items:center;justify-content:center;margin:12px 14px 0;width:32px;height:32px;padding:0;border:0;background:transparent;color:#777;border-radius:8px}.collapse-sidebar:hover{background:#f2f2f2;color:#111}.tool-sidebar>section{padding-top:12px}body:not(.information-mode) .editor-shell.sidebar-collapsed{grid-template-columns:66px 0 minmax(0,1fr)}.sidebar-collapsed .tool-sidebar{visibility:hidden;overflow:hidden;border:0}.information-mode .editor-shell.sidebar-collapsed{grid-template-columns:76px minmax(0,1fr)}

.element-hover-box{position:absolute;pointer-events:none;border:1.5px solid #4c9dff;transform-origin:center;z-index:4;box-sizing:border-box}.element-hover-box[hidden]{display:none}.element-hover-box:before,.element-hover-box:after{content:"";position:absolute;width:6px;height:6px;border:1px solid #398bff;background:white;border-radius:1px}.element-hover-box:before{left:-4px;top:-4px}.element-hover-box:after{right:-4px;bottom:-4px}

.store-icon svg{width:48px;height:48px}.store-product h1[contenteditable="true"]{outline:1px solid #398bff;border-radius:4px}
.floating-image-toolbar{display:flex;align-items:center;justify-content:center;gap:5px;flex-wrap:wrap;background:#fff;color:#222;border-radius:16px;padding:10px 12px;margin:14px;box-shadow:0 5px 18px #0002;flex-shrink:0}.floating-image-toolbar[hidden]{display:none}.floating-image-toolbar button{border:0;background:transparent;padding:7px;font-weight:600}.floating-image-toolbar button:disabled{opacity:.3}.element-mini-tools{position:absolute;z-index:8;display:flex;gap:4px;transform:translateX(-50%);white-space:nowrap}.element-mini-top{padding:4px 7px;border-radius:24px;background:#fff;box-shadow:0 3px 10px #0003}.element-mini-tools button{display:grid;place-items:center;border:0;border-radius:50%;background:#fff;color:#222;padding:0;width:28px;height:28px;font-size:20px;touch-action:none}.element-mini-tools button:hover:not(:disabled){background:#edf4ff}.element-mini-bottom{gap:12px}.element-mini-bottom button{box-shadow:0 2px 6px #0003;border:1px solid #ddd}.element-mini-tools button:disabled{opacity:.3}.element-mini-top{max-width:210px}.element-mini-tools [data-mini=move]{cursor:move}.element-mini-tools [data-mini=rotate]{cursor:grab}

.store-product .store-icon{background:transparent}.store-icon img{display:block;width:48px;height:48px}

/* App Store product header proportions. */
.store-product{align-items:center;gap:42px;padding:8px 0 20px;min-height:156px}
.store-product .store-icon{width:92px;height:92px;border-radius:25px;background:#fff;box-shadow:0 2px 4px #0003}
.store-icon svg{display:block;width:58px;height:58px}
.store-product>div:last-child{min-width:0;flex:1}
.store-product h1{font-size:22px;line-height:1.25;font-weight:700;margin:0 0 5px;color:#ddd}
.store-product p{font-size:15px;line-height:1.4;margin:0 0 3px;color:#999;font-weight:600}
.store-product .store-device{display:block;font-size:13px;line-height:1.4;color:#626262;font-weight:600}
.store-acquisition{display:flex;align-items:center;gap:10px;margin-top:19px}
.store-product .store-get{border:0;border-radius:999px;background:#007aff;color:white;font-size:16px;font-weight:700;line-height:1;padding:7px 17px;opacity:1;cursor:default}
.store-acquisition span{font-size:10px;color:#999;font-weight:600}
@media(max-width:700px){.store-product{gap:20px}.store-product h1{font-size:19px}.store-product .store-icon{width:76px;height:76px;border-radius:21px}}

/* Selected-page navigation slides a strip of equally sized pages. */
.store-preview.edit-focused .page-card{flex:0 0 var(--focused-page-width);width:var(--focused-page-width);min-width:var(--focused-page-width);transition:opacity .2s}
.page-card{transition:opacity .2s}

.floating-image-toolbar{align-self:center;flex:0 0 auto;width:fit-content;max-width:calc(100% - 28px);margin:14px auto;padding:8px 12px}
.floating-text-toolbar,.floating-image-toolbar{align-self:center;flex:0 0 auto;width:fit-content;max-width:calc(100% - 28px);box-sizing:border-box;justify-content:center;margin:14px auto 0;padding:8px 12px}
/* Nine reference layouts, matching the supplied blue/gray thumbnail language. */
.tool-sidebar .templates.reference-layout-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 10px;align-items:start}
.reference-layout-grid .layout-template-card{margin:0;padding:0;border:0;background:transparent!important;color:#777;text-align:center;min-width:0}
.layout-template-card img{width:100%;display:block;border-radius:10px;border:3px solid transparent}
.layout-template-card b{display:block;font-size:12px;font-weight:500;margin-top:7px;white-space:nowrap}
.reference-layout-grid .layout-template-card.active{color:#078ee7!important}
.layout-template-card.active img{border-color:#078ee7}
.layout-template-card:hover img{border-color:#078ee780}
.layout-home-card{padding:16px;display:flex;flex-direction:column;align-items:center;gap:16px}
.layout-home-card img{width:140px;height:187px;object-fit:contain;border-radius:12px}
.layout-home-card>b{font-size:16px}
.layout-schematic{display:block;width:100%;border:3px solid transparent;border-radius:12px;overflow:hidden}
.layout-schematic svg{display:block;width:100%;height:auto}
.layout-template-card.active .layout-schematic{border-color:#078ee7}
.layout-template-card:hover .layout-schematic{border-color:#078ee780}
.layout-home-card .layout-schematic{width:140px;height:auto}
.launchstudio-mark{width:28px;height:28px;display:block;flex:none}
.home-logo .launchstudio-mark{width:28px;height:28px}
.editor-logo{display:inline-flex;align-items:center;flex:none;margin-right:4px}
