@charset "UTF-8";
html,body{height:100%;overflow:hidden;touch-action:pan-x pan-y;-webkit-text-size-adjust:100%;text-size-adjust:100%}
:root{font-family:"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:#284936;background:#edf4e9;font-synthesis:none;--green:#38644b;--soft:#eff6e9;--line:#e1eadb;--muted:#82957a}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{border:0;background:none;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}button:disabled{opacity:.35;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #91b47c;outline-offset:3px}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.symbols{position:absolute;width:0;height:0;overflow:hidden}[hidden]{display:none!important}h1,h2,p{margin:0}.app{max-width:640px;height:100dvh;min-height:500px;margin:auto;background:#fcfdf9;display:flex;flex-direction:column;position:relative;overflow:hidden;box-shadow:0 0 90px #5c785015}.app-header{height:76px;padding:16px 23px 8px;display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.brand{display:flex;align-items:center;gap:9px;font-size:21px;font-weight:650;letter-spacing:2px}.brand .brand-icon{width:38px;height:38px;flex-shrink:0}.app-header h1{font-size:16px;font-weight:550;position:absolute;left:50%;transform:translateX(-50%)}.icon-button{height:44px;width:44px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;color:#78906d}.icon-button:hover{background:#edf4e5}.icon-button svg{height:20px;width:20px}.back-icon{transform:rotate(180deg)}#historyActions{display:flex}#historyActions .icon-button{width:38px}.step-indicator{height:40px;display:flex;align-items:center;justify-content:center;gap:14px;color:#aab6a0;font-size:11px;flex-shrink:0;padding-bottom:8px}.step-indicator i{width:28px;height:1px;background:#dfe8d6}.step-indicator span{position:relative}.step-indicator .active{color:#50763b;font-weight:600}.step-indicator .active:after{content:'';position:absolute;bottom:-8px;left:50%;width:4px;height:4px;border-radius:50%;background:#88ab67}.app main{min-height:0;flex:1;display:flex}.screen{height:100%;width:100%;display:flex;flex-direction:column;min-height:0;position:relative}.welcome{display:flex;align-items:center;justify-content:center;flex-direction:column;flex:1;padding:12px 30px 30px;text-align:center}.welcome h2{font-size:33px;line-height:1.55;font-weight:550;letter-spacing:2px;margin-top:20px}.welcome>p{font-size:13px;color:#91a084;margin:14px 0 38px;letter-spacing:1px}.button{height:54px;padding:0 24px;border-radius:17px;display:inline-flex;align-items:center;justify-content:center;gap:10px;font-size:15px;font-weight:550;transition:background .2s,transform .2s}.button:hover:not(:disabled){transform:translateY(-1px)}.primary{background:#cfe5b8;color:#355a35;box-shadow:0 4px 12px #809e5810}.primary:hover:not(:disabled){background:#bedba1}.secondary{background:#eff5e8;color:#607e4c;font-size:12px;height:42px;border-radius:12px}.dark{background:#376249;color:white}.full{width:100%}.welcome>.button{width:min(100%,286px);height:57px}.text-button{font-size:12px;display:inline-flex;gap:6px;align-items:center;justify-content:center;min-height:44px;color:#889d77;padding:6px 9px}.text-button svg{width:16px;height:16px}.welcome>.text-button{margin-top:10px;font-size:11px;color:#97a68a}.local-note{font-size:10px;display:flex;align-items:center;justify-content:center;gap:6px;color:#9aaa8c;padding:13px 0 max(20px,env(safe-area-inset-bottom));flex-shrink:0}.local-note svg{height:13px;width:13px}.paper-art{width:190px;height:158px;position:relative;margin-top:5px}.paper{position:absolute;width:87px;height:123px;padding:12px;border:1px solid #d8e5ca;border-radius:12px;background:#fafdf5;box-shadow:0 10px 22px #66844312}.paper-back{left:16px;top:9px;transform:rotate(-13deg)}.paper-front{right:15px;top:24px;transform:rotate(12deg);background:#fff}.paper i{height:4px;border-radius:5px;display:block;background:#e3ebd9;margin:9px 0}.paper i:last-child{width:65%}.paper b{height:43px;border-radius:7px;background:#e9f1df;display:grid;place-items:center}.paper b .brand-icon{width:34px;height:34px}.paper-back b{background:#d9e8c7;margin-top:14px}.art-plus{position:absolute;right:6px;bottom:5px;width:36px;height:36px;border-radius:50%;background:#c9e1b0;color:#5e8345;border:4px solid #fcfdf9;display:grid;place-items:center}.art-plus svg{width:16px;height:16px}.collection{padding:22px 24px 12px;overflow:auto;flex:1;min-height:0;overscroll-behavior:contain}.collection-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.collection-heading h2{font-size:20px;font-weight:550}.collection-heading>span{color:#9ba88f;font-size:11px}.image-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 12px}.image-card{position:relative;border-radius:13px;aspect-ratio:.68;user-select:none;-webkit-user-select:none;transition:transform .15s;touch-action:pan-y}.image-card>button.thumb-button{width:100%;height:100%;overflow:hidden;border-radius:13px;padding:0;border:1px solid #e0e8d8;background:#f4f7ee;box-shadow:0 2px 5px #46643708;display:block}.image-thumb{width:100%;height:100%;object-fit:cover;object-position:top;pointer-events:none;display:block}.image-card .number{position:absolute;bottom:7px;left:7px;min-width:24px;height:24px;background:#416047d9;color:white;border:1px solid #ffffff66;font-size:11px;display:grid;place-items:center;border-radius:8px;pointer-events:none}.remove-image{position:absolute;top:-9px;right:-9px;width:37px;height:37px;display:grid;place-items:center;z-index:2}.remove-image svg{width:22px;height:22px;background:#fffffff0;border-radius:50%;padding:5px;box-shadow:0 1px 6px #2e44221a;color:#8b9a7b}.image-card.dragging{opacity:.45;transform:scale(.94);outline:2px solid #91b477;outline-offset:3px}.image-card.drag-over{outline:2px solid #7fa75e;outline-offset:3px}.add-tile{width:100%;height:57px;border:1px dashed #cbdcbb;border-radius:13px;display:flex;align-items:center;justify-content:center;gap:8px;color:#819d69;font-size:12px;margin-top:19px;background:#f7faf2}.add-tile svg{width:19px}.direction-picker{display:flex;justify-content:center;gap:3px;margin:23px auto 7px;padding:4px;background:#f0f5e9;width:max-content;border-radius:12px}.direction-picker button{display:flex;align-items:center;gap:5px;height:35px;padding:0 20px;color:#98aa86;font-size:11px;border-radius:9px}.direction-picker svg{width:14px;height:14px}.direction-picker .selected{background:white;color:#54733f;box-shadow:0 1px 5px #57723a10}.screen-footer{padding:15px 24px max(20px,env(safe-area-inset-bottom));background:#fcfdf9;flex-shrink:0;border-top:1px solid #eff3e9}.screen-footer .button{max-width:480px;margin:auto}.screen-footer .button svg:last-child{width:17px}.preview-caption{padding:14px 24px 17px;display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#97a48b;min-height:49px}.pending-button{font-size:10px;color:#b19a65;display:flex;align-items:center;gap:5px}.pending-button i{width:6px;height:6px;border-radius:50%;background:#c8a76c}.preview-viewport{flex:1;overflow:auto;min-height:0;padding:26px 38px 38px;background:#eef3e8;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c6d8b8 transparent}.preview-track{margin:0 auto;display:flex;flex-direction:column;background:white;width:max-content;box-shadow:0 5px 23px #46633714}.preview-track.horizontal{flex-direction:row}.preview-piece{position:relative;flex:none}.preview-crop{position:relative;overflow:hidden;width:100%;height:100%;border:0;padding:0;display:block;border-radius:0;background:white}.preview-crop img{position:absolute;max-width:none;display:block;pointer-events:none}.preview-crop:hover{outline:2px solid #b3cc99;outline-offset:-2px}.seam-marker{position:absolute;top:-17px;right:-28px;width:34px;height:34px;z-index:3;display:grid;place-items:center}.seam-marker span{width:7px;height:7px;border-radius:50%;background:#c5d7b5;border:1px solid #f8faf4}.seam-marker.pending span{background:#c6a168;box-shadow:0 0 0 4px #eee7d4}.preview-track.horizontal .seam-marker{top:-28px;left:-17px;right:auto}.export-content{flex:1;min-height:0;overflow:auto;padding:34px 30px 20px;text-align:center}.export-art{width:126px;height:188px;position:relative;margin:0 auto 28px;transform:rotate(-4deg)}.export-thumb{height:100%;width:100%;overflow:hidden;border:6px solid white;border-radius:8px;background:#eff5e6;box-shadow:0 8px 30px #42623a18}.export-thumb-piece{position:relative;overflow:hidden}.export-thumb img{position:absolute;display:block;max-width:none}.ready-badge{width:37px;height:37px;border-radius:50%;background:#d5e8c0;border:4px solid #fcfdf9;position:absolute;bottom:-9px;right:-15px;display:grid;place-items:center;color:#699049}.ready-badge svg{width:17px;height:17px}.export-content h2{font-size:25px;font-weight:550;letter-spacing:1px}.export-content>p{font-size:11px;color:#94a284;margin-top:10px}.format-summary{display:flex;align-items:center;gap:10px;border-top:1px solid #e8efdf;border-bottom:1px solid #e8efdf;margin-top:35px;padding:12px 0;text-align:left}.format-summary>svg{color:#98ae84;width:19px}.format-summary>span{font-size:12px;color:#6c8657}.format-summary .text-button{margin-left:auto;font-size:10px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:17px 0}.form-grid label,.form-label,#qualityLabel{display:flex;flex-direction:column;gap:9px;font-size:11px;color:#849975;text-align:left}.form-label{margin:17px 0}select,input[type=number]{min-height:42px;background:#f4f8ed;border:1px solid #dce7d1;border-radius:10px;color:#4f7140;padding:8px 11px;width:100%;font-size:12px}input[type=range]{width:100%;height:5px;accent-color:#8baa6f;margin:9px 0 19px;cursor:pointer}.notice{font-size:11px;line-height:1.7;padding:12px;border-radius:10px;background:#f6eedc;color:#a58d57;text-align:left;margin:15px 0}.acknowledge{display:flex;align-items:flex-start;gap:9px;font-size:10px;text-align:left;line-height:1.8;color:#9b8a60;margin-top:15px}.acknowledge input{accent-color:#88a56a;flex-shrink:0;width:17px;height:17px}.download-results{display:flex;flex-direction:column;gap:10px;margin-top:19px}.download-results a{font-size:13px;text-decoration:none;padding:16px 12px;color:#4b7139;background:#edf5e3;border-radius:13px}.toast{position:fixed;bottom:max(95px,calc(env(safe-area-inset-bottom) + 85px));left:50%;transform:translate(-50%,15px);max-width:calc(100% - 40px);width:max-content;background:#365641f0;border-radius:14px;color:#fff;font-size:12px;padding:13px 19px;opacity:0;pointer-events:none;z-index:100;transition:.2s;text-align:center;line-height:1.7}.toast.show{opacity:1;transform:translate(-50%,0)}.progress-overlay{position:fixed;inset:0;background:#f9fcf5f5;z-index:50;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:16px;backdrop-filter:blur(10px)}.progress-mark{width:64px;height:64px;background:#e5f0d8;border-radius:24px;display:grid;place-items:center;color:#8bab6a;animation:breathe 1.5s infinite alternate}.progress-mark .brand-icon{width:64px;height:64px}.progress-overlay h2{font-size:21px;font-weight:500}.progress-overlay>span{font-size:12px;color:#96a887}.progress-overlay progress{width:180px;height:4px;accent-color:#9aba7c}.progress-overlay .text-button{margin-top:20px}@keyframes breathe{to{transform:translateY(-7px);opacity:.65}}
dialog{color:#2e4c35;border:0;padding:0;background:#fcfdf9;box-shadow:0 25px 70px #19352320}dialog::backdrop{background:#1f392d45;backdrop-filter:blur(3px)}.action-sheet{width:min(100%,600px);max-width:100%;margin:auto auto 0;border-radius:25px 25px 0 0;padding:10px 24px max(28px,env(safe-area-inset-bottom))}.sheet-handle{width:31px;height:4px;background:#d7e3cc;margin:0 auto 10px;border-radius:5px}.sheet-heading{display:flex;justify-content:space-between;align-items:center}.sheet-heading h2{font-size:16px;font-weight:500}.action-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-top:10px}.action-grid>button{min-height:96px;border-radius:17px;background:#f0f6e8;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:13px;font-size:12px;color:#6b8a53}.action-grid svg{width:27px;height:27px;stroke-width:1.4}.fullscreen-editor{inset:0;width:100%;height:100dvh;max-width:640px;max-height:100dvh;margin:0 auto;border-radius:0;overflow:auto}.editor-header{height:70px;display:flex;align-items:center;justify-content:space-between;padding:10px 15px;position:sticky;top:0;background:#fcfdf9;z-index:5;border-bottom:1px solid #eaf0e3}.editor-header h2{font-size:16px;font-weight:500}.editor-header .done{font-weight:650;color:#456e39}.editor-stage{background:#edf3e6;padding-bottom:8px}.editor-stage-label{display:flex;align-items:center;justify-content:space-between;padding:4px 20px;color:#8ba276;font-size:10px}#editorScroller{height:clamp(190px,37dvh,400px);overflow:auto;text-align:center;scrollbar-width:thin}#editorCanvas{display:block;margin:0 auto;touch-action:none;cursor:ns-resize;max-width:none;background:white}.editor-tip{font-size:10px;text-align:center;padding:13px;color:#8ba177}.editor-controls{padding:12px 25px 25px}.range-label{font-size:12px;display:flex;align-items:center;justify-content:space-between;gap:7px;margin:9px 0;color:#73905e}.range-label input{width:80px;min-height:34px;margin-left:auto}.small-note{font-size:10px;line-height:1.7;color:#94a382;margin:7px 0}details{font-size:11px;color:#8ca075}details summary{cursor:pointer;min-height:40px;padding-top:9px}.crop-viewport{height:calc(100dvh - 273px);min-height:200px;overflow:auto;padding:30px 35px;background:#edf3e5;display:flex;align-items:flex-start;justify-content:center}.crop-frame{position:relative;flex-shrink:0;align-self:center;box-shadow:0 5px 20px #54763710}.crop-frame>img{width:100%;height:100%;display:block;pointer-events:none}.crop-shade{position:absolute;left:0;right:0;background:#263b3570;pointer-events:none}.crop-shade.start{top:0}.crop-shade.end{bottom:0}.crop-handle{position:absolute;left:-13px;right:-13px;width:calc(100% + 26px);height:40px;transform:translateY(-50%);cursor:ns-resize;touch-action:none;padding:0;display:flex;align-items:center;justify-content:center;z-index:2}.crop-handle:before{content:'';position:absolute;left:13px;right:13px;height:2px;background:#80aa60}.crop-handle i{width:40px;height:8px;background:#a5c786;border:2px solid #fcfdf9;border-radius:6px;z-index:1}.crop-frame.horizontal .crop-handle{top:-13px;bottom:-13px;height:calc(100% + 26px);width:40px;transform:translateX(-50%);cursor:ew-resize}.crop-frame.horizontal .crop-handle:before{top:13px;bottom:13px;left:auto;right:auto;width:2px;height:auto}.crop-frame.horizontal .crop-handle i{width:8px;height:40px}.crop-frame.horizontal .crop-shade{top:0;bottom:0;width:0;height:auto!important}.crop-frame.horizontal .crop-shade.start{left:0;right:auto}.crop-frame.horizontal .crop-shade.end{right:0;left:auto}.crop-controls{padding:17px 25px max(15px,env(safe-area-inset-bottom));text-align:center}.crop-controls>p{font-size:11px;color:#8ca177}.crop-controls .form-grid{margin:14px 0 5px}.info-dialog{width:calc(100% - 40px);max-width:400px;padding:20px 24px;border-radius:22px}.info-dialog #infoBody{font-size:12px;line-height:1.9;color:#7c9170;padding-top:15px}.info-dialog p{margin-bottom:12px}.drop-active .app{outline:3px dashed #9fbd80;outline-offset:-4px}
@media(min-width:800px){.app{max-width:580px;border-left:1px solid #e0e9d9;border-right:1px solid #e0e9d9}.app-header{height:85px;padding:20px 28px 10px}.welcome h2{font-size:37px}.paper-art{transform:scale(1.13);margin-bottom:17px}.collection{padding-left:33px;padding-right:33px}.image-list{gap:20px 16px}.screen-footer{padding-left:33px;padding-right:33px}.preview-viewport{padding-left:55px;padding-right:55px}.export-content{padding-left:45px;padding-right:45px}.fullscreen-editor{max-width:580px}.action-sheet{max-width:540px;margin:auto;border-radius:24px}.export-art{height:213px;width:143px}}
@media(max-height:720px){.app-header{height:62px;padding-top:7px}.step-indicator{height:33px}.welcome h2{font-size:28px;margin-top:10px}.paper-art{transform:scale(.82);height:133px;margin-top:0}.welcome>p{margin:10px 0 23px}.welcome{padding-bottom:0}.local-note{padding-bottom:16px}.export-content{padding-top:20px}.export-art{height:136px;width:96px;margin-bottom:22px}.export-content h2{font-size:21px}.format-summary{margin-top:23px}.screen-footer{padding-top:12px;padding-bottom:max(15px,env(safe-area-inset-bottom))}.button{height:50px}.editor-header{height:61px}.editor-controls{padding-top:6px}.crop-viewport{height:calc(100dvh - 265px)}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* Minimal, icon-led screens. */
#help,#historyActions{margin-left:auto}.step-indicator{gap:8px;height:30px;padding-bottom:12px}.step-indicator span{display:block;width:5px;height:5px;background:#d9e4cf;border-radius:9px}.step-indicator span.active{width:21px;background:#a6c18b}.step-indicator span.active:after{display:none}.welcome{padding-top:0;gap:0}.welcome .paper-art{margin-bottom:54px;transform:scale(1.18)}.welcome>.button{max-width:236px;height:57px}.welcome .resume-button{margin-top:17px;height:48px}.local-note{padding-bottom:30px}.local-note svg{height:16px;width:16px}.collection-heading h2{display:flex;align-items:center;gap:9px;font-size:16px;color:#819c6d}.collection-heading h2 svg{height:19px;width:19px}.collection-heading{margin-bottom:25px}.next-button{max-width:140px!important;margin:auto;height:52px;border-radius:18px}.next-button svg{width:23px!important;height:23px!important}.preview-caption{justify-content:flex-end;min-height:34px;padding:4px 24px 11px}.preview-viewport{padding-top:21px}.format-summary .icon-button{margin-left:auto}.export-content{display:flex;flex-direction:column;justify-content:center;flex-shrink:1}.export-content:has(#downloadResults a){justify-content:flex-start}.export-art{flex-shrink:0}.export-content>.format-summary{flex-shrink:0}.editor-stage-label{height:44px;justify-content:flex-end}.editor-controls .range-label>svg{width:17px;height:17px;color:#90a77e}.editor-controls details summary{list-style:none;display:flex;align-items:center;justify-content:center}.editor-controls details summary::-webkit-details-marker{display:none}.editor-controls details summary svg{width:19px;height:19px}.crop-viewport{height:calc(100dvh - 247px)}.crop-controls{padding-top:12px}.screen-footer{border-top:0}.action-grid>button{gap:12px}.editor-header .done{background:#eaf3df}.app-header h1:empty{display:none}.direction-picker button{padding:0 22px}.export-content>p{margin-top:0}.welcome .paper-art{margin-top:0}.preview-caption:not(:has(.pending-button:not([hidden]))){min-height:10px;padding:0}
@media(max-height:720px){.welcome .paper-art{transform:scale(.95);margin-bottom:37px}.local-note{padding-bottom:20px}.crop-viewport{height:calc(100dvh - 241px)}}

.export-content:has(#exportOptions:not([hidden])){justify-content:flex-start}
.auto-bars-option{display:flex;align-items:center;justify-content:center;gap:8px;font-size:12px;margin-top:20px;color:#54733f}.auto-bars-option input{width:18px;height:18px;accent-color:#729758}.bar-summary{text-align:center;font-size:11px;color:#82957a;margin-top:8px}.hd-tile{position:absolute;pointer-events:none;z-index:1;display:block}.direct-edit .source-frame>img,.direct-edit .source-frame.source-1>img{opacity:1}.direct-edit .source-frame .direct-shade{z-index:2}.source-number{z-index:3}.source-frame.active-source:after{z-index:3}.preview-viewport,.collection,.export-content,.crop-viewport{touch-action:pan-x pan-y}.app{min-height:0}
/* Direct manipulation: actions stay on the image. */
#back{display:none!important}.app-header{justify-content:flex-start}.screen-footer{display:flex;justify-content:space-between;gap:18px}.screen-footer .button{margin:0;width:110px;max-width:40%!important;flex:none}.screen-footer .previous-button{height:52px;background:#edf3e7;border-radius:18px}.screen-footer #generate{margin-left:auto;width:150px}.image-card{aspect-ratio:auto}.image-card>button.thumb-button{height:auto;aspect-ratio:.68;position:relative}.reorder-buttons{display:flex;justify-content:space-around;margin-top:6px;background:#f0f5e9;border-radius:10px}.reorder-buttons button{height:40px;flex:1;display:grid;place-items:center}.reorder-buttons svg{width:17px;height:17px}.preview-piece{outline:1px dashed #71a283;outline-offset:-1px}.preview-piece:nth-child(even){outline-color:#bd9666}.preview-crop:hover{outline:none}#inlineToolbar{display:flex;align-items:center;justify-content:space-between;padding:0 24px 8px}#saveInline{background:#dceccc}#stitchScreen:has(#inlineToolbar:not([hidden])) .preview-caption{display:none}.direct-edit{background:transparent;box-shadow:none}.source-frame{position:absolute;outline:2px dashed #579b84;outline-offset:-2px;--edge:#579b84}.source-frame.source-1{outline-color:#c79555;--edge:#c79555}.source-frame>img{width:100%;height:100%;pointer-events:none;display:block}.source-frame.source-1>img{opacity:.65}.source-number{position:absolute;left:-25px;top:8px;color:var(--edge);font-size:11px}.direct-shade{position:absolute;background:#29443866;pointer-events:none;left:0;right:0}.shade-start{top:0}.shade-end{bottom:0}.direct-handle{position:absolute;left:0;width:100%;height:36px;transform:translateY(-50%);border-top:2px solid var(--edge);color:var(--edge);touch-action:none;z-index:5;display:flex;justify-content:flex-start;padding:0;cursor:ns-resize}.direct-handle svg{width:34px;height:34px;background:#fcfdf9;border:1px solid var(--edge);padding:8px;border-radius:10px;transform:translate(-70%,-50%)}.source-1 .direct-handle{justify-content:flex-end}.source-1 .direct-handle svg{transform:translate(70%,-50%)}.join-drag{position:absolute;right:-42px;width:38px;height:44px;transform:translateY(-50%);z-index:8;background:#f5ead8;color:#a87536;border:1px dashed #c79555;border-radius:12px;touch-action:none;cursor:ns-resize}.horizontal .direct-handle{left:auto;top:0;width:36px;height:100%;transform:translateX(-50%);border-top:0;border-left:2px solid var(--edge);cursor:ew-resize;align-items:flex-start}.horizontal .direct-shade{top:0;bottom:0;left:auto;right:auto;height:100%}.horizontal .shade-start{left:0}.horizontal .shade-end{right:0}.horizontal .join-drag{top:-40px;right:auto;transform:translateX(-50%);cursor:ew-resize}.horizontal .source-1 .direct-handle{align-items:flex-end}.horizontal .source-number{top:-22px;left:8px}
/* Floating controls leave the canvas full height. */
.app-header{position:absolute;inset:12px 16px auto;height:auto;padding:0;z-index:20;pointer-events:none}.app-header>*{pointer-events:auto}.step-indicator{display:none}.app main{height:100%;flex:1}.app-header .brand{padding:8px 12px;background:#fcfdf9e8;border-radius:18px}.app-header .icon-button,#inlineToolbar .icon-button{background:#fcfdf9ed;box-shadow:0 3px 14px #304b3020;backdrop-filter:blur(10px)}.screen-footer{position:absolute;bottom:max(16px,env(safe-area-inset-bottom));left:16px;right:16px;background:none;border:0;padding:0;z-index:20;pointer-events:none}.screen-footer .button,.screen-footer .previous-button,.screen-footer #generate{pointer-events:auto;width:50px!important;height:50px;max-width:50px!important;min-width:50px;border-radius:50%;padding:0;box-shadow:0 4px 18px #38533324;backdrop-filter:blur(10px);font-size:0;gap:0}.screen-footer .button svg{width:22px!important;height:22px!important}.screen-footer .previous-button{background:#fcfdf9ed}.screen-footer #generate:disabled{font-size:10px}.preview-viewport{padding:85px 65px 90px}.collection{padding-top:78px;padding-bottom:85px}.export-content{padding-bottom:90px;padding-top:75px}.preview-caption{position:absolute;right:20px;top:70px;z-index:12;padding:0;min-height:0}.pending-button{border-radius:20px;background:#fcfdf9e8;padding:8px 12px;box-shadow:0 2px 10px #38533315}#inlineToolbar{position:absolute;top:16px;left:16px;right:16px;padding:0;z-index:25;pointer-events:none}#inlineToolbar button{pointer-events:auto}#inlineToolbar #saveInline{background:#daebc9ee}.direct-edit .direct-handle{left:20%;right:auto;width:44px;height:44px;border:0;transform:translate(-50%,-50%);display:grid;place-items:center;padding:0;z-index:10;--edge:#579b84}.direct-edit .direct-handle.trim-end{left:76%}.direct-edit .direct-handle.color-1{--edge:#c79555}.direct-handle i{width:36px;height:9px;border:2px solid white;background:var(--edge);border-radius:10px;box-shadow:0 1px 7px #284b3444;pointer-events:none}.direct-edit .join-drag{right:-51px;width:42px;height:48px;background:#fff9ee;box-shadow:0 2px 10px #68461b16}.source-frame>img{opacity:.86}.source-frame.source-1>img{opacity:.8}.direct-edit.horizontal .direct-handle{top:20%;left:auto;transform:translate(-50%,-50%);width:44px;height:44px;border:0}.direct-edit.horizontal .direct-handle.trim-end{top:76%;left:auto}.horizontal .direct-handle i{width:9px;height:36px}.direct-edit.horizontal .join-drag{top:-55px;right:auto}.horizontal .join-drag svg{transform:rotate(90deg)}
#historyActions{display:none!important}.edit-history{display:flex;gap:10px;pointer-events:auto}#inlineToolbar .icon-button{width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border-radius:50%;display:grid;place-items:center;flex:none}#inlineToolbar .edit-history{position:absolute;left:50%;transform:translateX(-50%)}#inlineToolbar #saveInline{margin-left:auto}.direct-edit .join-drag,.direct-edit .join-reset{width:44px;height:44px;padding:0;border:1px solid #c79555;border-radius:50%;display:grid;place-items:center;right:-53px;position:absolute;transform:translateY(-50%);color:#a87536;background:#fff9eef5;box-shadow:0 2px 10px #68461b16;z-index:11;touch-action:none}.join-reset svg{width:19px;height:19px}.direct-edit.horizontal .join-drag,.direct-edit.horizontal .join-reset{top:-55px;right:auto;transform:translateX(-50%)}.source-frame:not(.cropping){clip-path:inset(var(--trim-start,0%) 0 var(--trim-end,0%) 0)}.source-frame:not(.cropping) .direct-shade{display:none}.source-frame.active-source{outline:none}.source-outline{position:absolute;outline:2px solid #579b84;outline-offset:2px;pointer-events:none;z-index:6}.source-outline.color-1{outline-color:#c79555}.source-frame.cropping{z-index:4}.source-frame.cropping>img{opacity:1}.horizontal .source-frame:not(.cropping){clip-path:inset(0 var(--trim-end,0%) 0 var(--trim-start,0%))}.preview-viewport{overflow-anchor:none}
