@font-face{font-family:Manrope;src:url('fonts/manrope-cyrillic.woff2');font-weight:200 800;font-display:swap;unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Manrope;src:url('fonts/manrope-latin.woff2');font-weight:200 800;font-display:swap;unicode-range:U+0000-00FF,U+2000-206F,U+20AC,U+2122}@font-face{font-family:Lora;src:url('fonts/lora.woff2');font-weight:400 700;font-display:swap}
:root{--ink:#373932;--muted:#85887d;--line:#e5e6df;--green:#60684c;--tint:#f3f4ee;font:13px Manrope,Arial,sans-serif;color:var(--ink)}*{box-sizing:border-box}body{margin:0;background:#eeeee8;overflow:hidden}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer;border:0;background:none}button:disabled{opacity:.35;cursor:default}svg{width:19px;height:19px;stroke-width:1.7;flex-shrink:0}a{color:inherit;text-decoration:none}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #9a9f84;outline-offset:3px}input,select,textarea{max-width:100%;background:white;border:1px solid #dcdfd3;border-radius:7px;padding:10px 11px;width:100%}textarea{resize:vertical;min-height:76px;line-height:1.7}input[type=color]{padding:3px;width:38px;height:36px}input[type=range]{padding:0;accent-color:var(--green);border:0}.topbar{height:76px;background:white;display:flex;align-items:center;gap:30px;padding:0 26px;border-bottom:1px solid var(--line);position:relative;z-index:10}.brand{display:flex;align-items:center;gap:9px;font-family:Lora,Georgia,serif;font-size:23px;letter-spacing:-.8px;white-space:nowrap}.brand-mark{display:grid;place-items:center;width:32px;height:34px;border-radius:10px;background:var(--green);color:white;font-size:27px}.project-name{display:flex;flex-direction:column;gap:3px;min-width:130px;max-width:230px}.project-name input{border:0;padding:0;background:none;font-size:12px;font-weight:600;text-overflow:ellipsis}.project-name span{font-size:10px;color:var(--muted)}.top-actions{margin-left:auto;display:flex;gap:7px;align-items:center}.button{display:inline-flex;justify-content:center;align-items:center;gap:9px;min-height:39px;border-radius:7px;padding:10px 15px;font-size:12px;font-weight:600}.button.primary{background:var(--green);color:white}.button.primary:hover{background:#4e563c}.button.quiet:hover{background:var(--tint)}.button.small{font-size:11px;padding:7px 10px;min-height:32px}.button.full{width:100%}.icon-button{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;border-radius:6px}.icon-button:hover{background:var(--tint)}.separator{width:1px;height:22px;background:var(--line);margin:0 5px}.editor-shell{display:grid;grid-template-columns:66px minmax(0,1fr) 304px;height:calc(100dvh - 76px)}.rail{background:#fafbf7;border-right:1px solid var(--line);display:flex;align-items:center;flex-direction:column;gap:9px;padding:22px 8px 18px}.rail-button{border-radius:10px;width:43px;min-height:47px;display:flex;align-items:center;flex-direction:column;justify-content:center;gap:5px;font-size:9px}.rail-button svg{width:21px;height:21px}.rail-button:hover{background:#e8ebdd}.rail-button:first-child{background:var(--green);color:white}.rail-line{height:1px;width:25px;background:var(--line);margin:5px 0}.rail-bottom{margin-top:auto;color:var(--muted);font-size:9px;line-height:1.6;text-align:center}.workspace{display:flex;flex-direction:column;overflow:hidden;min-width:0}.workspace-bar{height:53px;flex-shrink:0;display:flex;align-items:center;padding:0 25px;gap:25px}.workspace-label{display:flex;align-items:center;gap:9px;font-size:11px;flex:1}.workspace-label>span:last-child{color:var(--muted)}.page-dot{height:6px;width:6px;border-radius:50%;background:#8e9875}.device-switch{display:flex;align-items:center;padding:3px;border:1px solid #dfe1d7;border-radius:8px;background:#f8f9f4;gap:2px}.device-switch button{border-radius:5px;min-width:31px;height:28px;display:flex;align-items:center;justify-content:center;font-size:11px;padding:0 8px;color:var(--muted)}.device-switch button.active{background:white;color:var(--green);box-shadow:0 1px 4px #353a1d14}.device-switch svg{width:17px;height:17px}.canvas-area{overflow:auto;flex:1;padding:12px 25px 25px;scrollbar-width:thin}.canvas-wrap{margin:auto;position:relative;max-width:1200px}.page-frame{position:relative;background:white;box-shadow:none;overflow:hidden;border-radius:0;min-height:400px}#canvas{border:0;background:white;display:block;transform-origin:top left;position:absolute;top:0;left:0}.add-at-end{width:100%;margin-top:17px;min-height:47px;font-size:11px;border:1px dashed #c5c9b9;border-radius:8px;background:#f3f4ec;color:var(--green)}.add-at-end:hover{background:#e7ebdc}.workspace-footer{height:32px;padding:0 26px;display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:9px;gap:10px;flex-shrink:0}.inspector{background:white;border-left:1px solid var(--line);overflow:auto;scrollbar-width:thin}.inspector-head{padding:25px 22px 20px;border-bottom:1px solid var(--line)}.overline{font-size:9px;color:var(--muted);font-weight:600;letter-spacing:1.2px;display:block;margin-bottom:9px}.inspector-head h2{margin:0;font-family:Lora,Georgia,serif;font-size:23px;font-weight:400;line-height:1.3}.inspector-head p{font-size:11px;color:var(--muted);line-height:1.7;margin:9px 0 0}.inspector-body{padding:20px 22px}.inspector-section{margin-bottom:24px}.section-label{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;font-weight:600;font-size:11px}.field{display:block;margin:0 0 13px;font-size:10px;color:#6a6e60;line-height:1.6}.field>span{display:block;margin-bottom:6px}.field input,.field textarea,.field select{display:block;font-size:11px}.mini-variants{display:grid;grid-template-columns:repeat(5,1fr);gap:6px}.mini-variant{padding:0;border-radius:5px;overflow:hidden;border:1px solid var(--line);height:52px;background:#f1f0e9}.mini-variant.active{border:2px solid var(--green)}.mini-variant>svg{width:100%;height:100%;stroke:none}.mini-variant:hover{border-color:#939d7c}.variant-current{font-size:10px;color:var(--muted);margin-top:9px}.choice-row{display:flex;gap:6px;flex-wrap:wrap}.choice{font-size:10px;padding:8px 10px;border:1px solid var(--line);border-radius:6px}.choice.active{background:#f0f3e8;border-color:#919d74;color:#4f5d35}.color-row{display:flex;gap:9px;align-items:center}.swatch{width:26px;height:26px;border:1px solid #00000012;border-radius:50%}.swatch.active{outline:2px solid var(--green);outline-offset:3px}.image-preview{width:100%;height:145px;object-fit:cover;border-radius:8px;margin-bottom:10px;border:1px solid var(--line)}.inspector .button{font-size:11px}.photo-actions{display:flex;gap:5px}.photo-actions .button{flex:1;background:#f3f4ed;padding:9px}.position-options{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin-top:10px}.position-options button{font-size:9px;border:1px solid var(--line);padding:7px;border-radius:4px}.position-options button.active{background:#e9eddf;border-color:#919d74}.position-hint{font-size:10px;color:var(--muted);line-height:1.6;margin:10px 0}.inspector details{border-top:1px solid var(--line);padding-top:16px;margin-top:20px}.inspector summary{font-size:10px;cursor:pointer;color:var(--muted);margin-bottom:14px}.inspector-actions{display:flex;align-items:center;gap:4px;margin-top:20px;padding-top:18px;border-top:1px solid var(--line)}.inspector-actions .delete{margin-left:auto;color:#a56c60}.text-tip{font-size:11px;line-height:1.8;color:var(--muted);background:#f6f7f2;padding:12px;border-radius:6px}.inline-back{font-size:10px;color:var(--green);margin-bottom:18px}.toggle{display:flex;gap:8px;align-items:center;font-size:10px;color:#656a5b}.toggle input{width:14px;accent-color:var(--green)}.count-stepper{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:7px;justify-content:space-between}.count-stepper button{padding:9px 17px;font-size:18px}.count-stepper span{font-size:11px}.item-editor{border-top:1px solid var(--line);padding-top:13px}.item-editor summary{font-size:11px;color:var(--ink)}.toast{position:fixed;bottom:28px;left:50%;transform:translate(-50%,15px);opacity:0;pointer-events:none;background:#343b2c;color:white;padding:13px 20px;border-radius:9px;font-size:12px;box-shadow:0 8px 30px #26331d20;transition:.2s;z-index:100;max-width:90%;text-align:center}.toast.show{opacity:1;transform:translate(-50%,0)}dialog{border:1px solid #dedfd5;border-radius:15px;padding:0;background:white;color:var(--ink);box-shadow:0 24px 100px #27301333;max-height:calc(100dvh - 55px);max-width:calc(100vw - 40px)}dialog::backdrop{background:#2a30254a;backdrop-filter:blur(3px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;padding:25px 30px;border-bottom:1px solid var(--line);gap:24px}.dialog-head h2{font-family:Lora,Georgia,serif;font-weight:400;font-size:28px;letter-spacing:-.7px;margin:0}.dialog-head .overline{margin:0 0 8px}.dialog-head>div>span:not(.overline){font-size:11px;color:var(--muted)}.dialog-lead{font-size:12px;color:#777c6c;line-height:1.8;margin:20px 30px}.dialog-footnote{font-size:10px;color:var(--muted);line-height:1.8;padding:0 30px 20px;margin:12px 0 0}.library-dialog{width:1020px}.library-body{display:grid;grid-template-columns:205px 1fr;min-height:570px;max-height:calc(100dvh - 185px);overflow:auto}.library-types{padding:24px 15px;border-right:1px solid var(--line);background:#fafbf7}.library-types input{font-size:11px;margin-bottom:20px}.type-button{display:flex;align-items:center;gap:10px;width:100%;font-size:11px;text-align:left;padding:11px;border-radius:7px}.type-button svg{width:16px;height:16px;color:#909581}.type-button.active{background:#e9eddf;color:#4e5b37;font-weight:600}.type-button:hover{background:#f0f2e9}.type-heading{font-size:9px;color:var(--muted);letter-spacing:1px;margin:18px 10px 7px}.library-designs{padding:24px 28px;overflow:auto}.library-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:23px}.library-heading h3{font-size:16px;font-weight:500;margin:0}.library-heading span{font-size:10px;color:var(--muted)}.variant-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.variant-card{padding:0;display:block;text-align:left;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:#fafbf7}.variant-card:hover{border-color:#76855b;box-shadow:0 3px 14px #26331d0d}.variant-preview{height:150px;overflow:hidden;pointer-events:none;background:#f1f0e9;position:relative}.variant-preview iframe{width:1000px;height:900px;border:0;transform:scale(.31);transform-origin:top left;position:absolute}.variant-card-footer{padding:12px 15px;display:flex;align-items:center;justify-content:space-between;font-size:11px;background:white}.variant-card-footer>span:last-child{color:#77845b;font-size:18px}.style-dialog{width:850px}.theme-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:13px;padding:4px 30px 30px}.theme-card{padding:0;text-align:left;border:1px solid var(--line);border-radius:9px;overflow:hidden}.theme-card.active{border:2px solid var(--green)}.theme-art{height:157px;padding:22px 14px;position:relative;display:flex;flex-direction:column;gap:12px}.theme-art .theme-title{font-size:22px;line-height:1.2;letter-spacing:-1px}.theme-art .theme-lines{width:75%;height:15px;border-top:2px solid currentColor;border-bottom:2px solid currentColor;opacity:.22}.theme-art .theme-button{height:19px;width:62px;border-radius:4px;margin-top:5px}.theme-swatches{display:flex;gap:5px;position:absolute;bottom:15px;right:12px}.theme-swatches span{width:11px;height:11px;border-radius:50%;border:1px solid #0001}.theme-name{padding:14px 12px;font-size:11px;font-weight:600;display:block}.theme-name small{display:block;color:var(--muted);font-size:9px;font-weight:400;line-height:1.5;margin-top:4px}.start-dialog{width:1020px}.scenario-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:23px;padding:0 30px 20px}.scenario-card{border:1px solid var(--line);border-radius:10px;overflow:hidden;display:block;text-align:left;padding:0;background:white}.scenario-card:hover{border-color:#919d74}.scenario-art{height:235px;overflow:hidden;background:#f4ede4}.scenario-art img{width:100%;height:100%;object-fit:cover}.scenario-card:first-child img{object-position:50% 30%}.scenario-card strong{display:block;font-size:14px;font-weight:600;margin:18px 18px 5px}.scenario-card p{font-size:11px;color:var(--muted);margin:0 18px 16px}.scenario-card .choose-template{display:flex;align-items:center;justify-content:space-between;background:#f5f6f0;border-top:1px solid var(--line);padding:13px 18px;font-size:11px;color:var(--green)}.project-dialog,.structure-dialog{width:460px}.project-actions{padding:18px 24px;display:flex;flex-direction:column;gap:5px}.project-actions button{justify-content:flex-start;border:1px solid var(--line)}.saved-heading{font-size:9px;color:var(--muted);letter-spacing:1px;margin:9px 30px 13px}.saved-project{display:flex;justify-content:space-between;align-items:center;padding:13px 30px;border-top:1px solid var(--line);width:100%;text-align:left}.saved-project small{color:var(--muted);font-size:10px}.saved-project.active{background:#f4f6ed}.structure-dialog #structureList{padding:0 24px 16px}.structure-row{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:7px;padding:13px 12px;margin-bottom:8px;cursor:grab;background:white}.structure-row.active{background:#f0f3e8;border-color:#b3bea0}.structure-row>svg{width:16px;color:#869571}.structure-row .drag-handle{color:#c1c4b7;letter-spacing:-2px}.structure-row .structure-text{flex:1;font-size:11px}.structure-row small{display:block;color:var(--muted);font-size:9px;line-height:1.6;margin-top:3px}.structure-dialog>.button{border-top:1px solid var(--line);border-radius:0;padding:19px}.preview-dialog{width:calc(100vw - 60px);height:calc(100dvh - 55px)}.preview-body{height:calc(100% - 93px);overflow:auto;background:#eceee5;padding:20px}.preview-body iframe{display:block;width:100%;height:100%;border:0;margin:auto;background:white}.preview-body.mobile iframe{width:390px;max-width:100%}[hidden]{display:none!important}
@media(max-width:1100px){.topbar{gap:18px;padding:0 18px}.brand{font-size:20px}.project-name{max-width:165px}.top-actions{gap:3px}.top-actions .button{padding:10px}.editor-shell{grid-template-columns:56px minmax(0,1fr) 270px}.canvas-area{padding:10px 17px 25px}.workspace-bar{padding:0 17px;gap:10px}.inspector-body,.inspector-head{padding-left:18px;padding-right:18px}.workspace-label>span:last-child,.workspace-footer>span:last-child{display:none}}
@media(max-width:800px){.topbar{height:64px;gap:10px;padding:0 12px}.brand{font-size:0;gap:0}.brand-mark{font-size:25px}.project-name{max-width:150px;min-width:80px}.top-actions .separator,.top-actions #redo{display:none}.top-actions #preview{font-size:0;padding:9px}.top-actions #projectMenu,.top-actions #downloadHtml{font-size:10px;padding:8px}.top-actions #downloadHtml svg{display:none}.editor-shell{height:calc(100dvh - 64px);grid-template-columns:49px minmax(0,1fr)}.rail{padding:16px 3px}.rail-button{width:39px}.inspector{position:fixed;right:0;top:64px;bottom:0;width:280px;z-index:8;box-shadow:-10px 0 30px #26331d15;display:none}.inspector.mobile-open{display:block}.workspace-bar{padding:0 12px;gap:10px}.workspace-label strong{font-size:10px}.workspace-bar #addTop{font-size:0;padding:5px}.workspace-bar #addTop:before{content:'+';font-size:20px}.canvas-area{padding:8px 10px 25px}.workspace-footer{font-size:8px;padding:0 10px}.library-body{grid-template-columns:145px 1fr;min-height:400px}.library-types{padding:15px 8px}.type-button{padding:9px;font-size:10px;gap:6px}.library-designs{padding:16px}.variant-grid{grid-template-columns:1fr}.library-heading{display:block}.library-heading span{display:block;margin-top:7px}.dialog-head{padding:20px}.dialog-head h2{font-size:23px}.dialog-lead{margin:16px 20px}.scenario-grid{grid-template-columns:1fr;gap:15px;padding:0 20px 20px}.scenario-art{height:180px}.scenario-card{display:grid;grid-template-columns:40% 1fr}.scenario-art{grid-row:span 3}.scenario-card strong{align-self:end;margin:18px 15px 7px}.scenario-card p{margin:0 15px 12px}.scenario-card .choose-template{padding:12px 15px}.theme-grid{grid-template-columns:repeat(2,1fr);padding:0 20px 25px}.theme-art{height:130px}.preview-dialog{max-width:calc(100vw - 16px);width:100%;height:calc(100dvh - 20px)}.preview-dialog .dialog-head{gap:10px;padding:15px}.preview-dialog .dialog-head h2{font-size:19px}.preview-dialog .dialog-head>div>span{display:none}.preview-body{height:calc(100% - 70px);padding:10px}.dialog-footnote{padding:0 20px 20px}}

@media(min-width:801px){.editor-shell.inspector-hidden{grid-template-columns:66px minmax(0,1fr)}.editor-shell.inspector-hidden .inspector{display:none}}

.preview-dialog[open]{display:flex;flex-direction:column}.preview-dialog .dialog-head{flex-shrink:0}.preview-dialog .preview-body{height:auto;flex:1;min-height:0}
