:root{--app-bg:#f5f2ec;--app-bg-strong:#ece6db;--panel:#fffdf9eb;--panel-solid:#fffdf9;--line:#dedbd5;--line-strong:#cfcbc1;--text:#211f1a;--muted:#857d6b;--accent:#d24a32;--accent-rgb:210, 74, 50;--accent-soft:#d24a3224;--accent-strong:#b23a25;--shadow:0 22px 50px #4a453a29;--shadow-soft:0 10px 24px #4a453a1c;--canvas-shadow:0 34px 70px #2e221633}*{box-sizing:border-box}html,body{height:100%;min-height:100%;color:var(--text);background:linear-gradient(#faf6ef 0%,#f1ebe1 100%);margin:0;font-family:Jost,Avenir Next,Segoe UI,sans-serif}body,body.has-dialog-open,body.has-mobile-layout-modal-open{overflow:hidden}a{color:inherit}button,input,textarea,select{font:inherit}button{cursor:pointer}code{font-family:SFMono-Regular,Menlo,Consolas,monospace;font-size:.9em}.app-shell{grid-template-rows:minmax(0,1fr);height:100vh;padding:8px 14px 12px;display:grid}.mobile-editor-notice,.mobile-layout-modal{display:none}.ruler-shell{display:none!important}.ruler-gutter{min-height:26px}.ruler-track{min-height:26px;box-shadow:var(--shadow-soft);background:#ffffffe6;border:1px solid #d7d4cce6;border-radius:12px;grid-template-columns:repeat(19,minmax(0,1fr));display:grid;overflow:hidden}.ruler-mark{color:var(--muted);justify-content:flex-start;align-items:flex-start;padding:4px 0 0 5px;font-size:9px;font-weight:600;display:flex;position:relative}.ruler-mark:before{content:"";background:#a59d8cb3;width:1px;height:8px;position:absolute;bottom:0;left:0}.studio-shell{grid-template-columns:286px minmax(0,1fr);align-items:start;gap:14px;height:100%;min-height:0;display:grid}.sidebar-panel,.workspace-stage{background:var(--panel);box-shadow:var(--shadow);border:1px solid #dad7cfeb}.sidebar-panel{border-radius:24px;flex-direction:column;height:100%;min-height:0;max-height:none;padding:12px;display:flex;overflow:hidden}.sidebar-header,.workspace-meta,.library-head{justify-content:space-between;align-items:center;gap:8px;display:flex}.panel-kicker,.section-label{color:var(--accent-strong);letter-spacing:.14em;text-transform:uppercase;margin:0;font-size:8px;font-weight:700}.sidebar-header h1,.workspace-meta h2{margin:2px 0 0;line-height:1}.sidebar-header h1{font-size:1.2rem}.workspace-meta{align-items:flex-start;margin-bottom:4px}.workspace-meta .panel-kicker{display:none}.workspace-meta h2{font-size:clamp(.92rem,1.2vw,1.25rem)}.workspace-hint{color:var(--muted);margin:2px 0 0;font-size:.66rem;line-height:1.25}.meta-pills{flex-wrap:wrap;justify-content:flex-end;gap:6px;display:flex}.meta-pill,.library-count{min-height:22px;color:var(--accent-strong);background:#d24a321a;border-radius:999px;justify-content:center;align-items:center;padding:0 8px;font-size:10px;font-weight:700;display:inline-flex}.icon-button,.pill-button,.segment-button,.format-button,.toolbar-action,.step-button,.layout-card{touch-action:manipulation;-webkit-tap-highlight-color:transparent;border:1px solid #0000;transition:transform .15s,box-shadow .15s,border-color .15s,background .15s}.icon-button:hover,.pill-button:hover,.segment-button:hover,.format-button:hover,.toolbar-action:hover,.step-button:hover,.layout-card:hover{transform:translateY(-1px)}.section-note,.strip-note{color:var(--muted);margin:0;font-size:.84rem;line-height:1.45}.control-stack{gap:12px;height:100%;min-height:0;display:grid}.sidebar-layout-controls{grid-template-rows:auto auto minmax(0,1fr)}.sidebar-gallery-block{align-content:start;min-height:0}.sidebar-gallery-block .gallery-grid{align-content:start;height:100%}.section-block{border-top:1px solid #f1f0ee;gap:10px;padding-top:14px;display:grid}.section-block:first-child{border-top:0;padding-top:0}.pill-group,.segment-control{gap:10px;display:grid}.pill-group{grid-template-columns:repeat(3,minmax(0,1fr))}.segment-control{grid-template-columns:repeat(2,minmax(0,1fr))}.pill-button,.segment-button,.primary-button{border-radius:14px;min-height:40px;font-size:.88rem;font-weight:700}.pill-button,.segment-button{color:var(--muted);background:#fbf6f5;border-color:#ecebe7}.pill-button.is-active,.segment-button.is-active,.format-button.is-active{color:var(--accent-strong);background:#d24a3224;border-color:#d24a323d}.primary-button{color:#fff;background:var(--accent);border:0;box-shadow:0 16px 30px #ea67463d}.field,.range-field{gap:8px;display:grid}.field span,.range-field span{color:var(--text);justify-content:space-between;align-items:center;gap:12px;font-size:.95rem;font-weight:600;display:flex}.field input[type=text],.field input[type=search],.field textarea{border:1px solid var(--line);background:var(--panel-solid);width:100%;color:var(--text);border-radius:14px;outline:none;padding:11px 12px;transition:border-color .16s,box-shadow .16s}.field textarea{resize:vertical;min-height:72px}.field input:focus,.field textarea:focus,.field input[type=search]:focus{border-color:#d24a3252;box-shadow:0 0 0 4px #d24a321f}.range-field input[type=range]{width:100%;accent-color:var(--accent)}.workspace-panel{grid-template-rows:auto auto minmax(0,1fr) auto;gap:8px;height:100%;min-height:0;display:grid;overflow:hidden}.floating-toolbar{z-index:20;border:1px solid var(--line-strong);background:var(--panel-solid);width:100%;max-width:100%;box-shadow:var(--shadow-soft);border-radius:13px;flex-direction:column;justify-content:flex-start;align-items:stretch;gap:6px;margin:0;padding:4px 5px;display:flex;overflow:visible}.toolbar-row{scrollbar-width:thin;align-items:center;gap:6px;min-width:0;display:flex;overflow:auto hidden}.toolbar-row.toolbar-row-controls{overflow:visible}.toolbar-group{white-space:nowrap;border-right:1px solid #f2f1ee;flex-wrap:nowrap;flex:none;align-items:center;gap:5px;padding-right:6px;display:flex}.toolbar-group:last-child{border-right:0;padding-right:0}[data-tooltip]{position:relative}[data-tooltip]:after{content:attr(data-tooltip);z-index:40;color:#fff;white-space:nowrap;pointer-events:none;opacity:0;background:#181713f0;border-radius:999px;padding:5px 8px;font-size:.67rem;font-weight:700;line-height:1;transition:opacity .14s,transform .14s;position:absolute;top:calc(100% + 8px);left:50%;transform:translate(-50%,-4px);box-shadow:0 10px 24px #130a082e}[data-tooltip]:hover:after,[data-tooltip]:focus-visible:after{opacity:1;transform:translate(-50%)}.toolbar-tooltip-anchor{display:inline-flex;position:relative}.format-button,.step-button,.toolbar-action{min-height:27px;color:var(--text);background:#faf5f4;border-color:#edece9;border-radius:10px;padding:0 9px;font-size:.74rem;font-weight:700}.layer-list{flex-wrap:nowrap;align-items:center;gap:5px;min-width:0;display:flex}.layer-chip{min-height:27px;color:var(--text);background:#faf5f4;border:1px solid #edece9;border-radius:10px;align-items:center;padding:0 3px 0 9px;transition:border-color .15s,background .15s;display:inline-flex}.layer-chip.is-active{background:var(--accent-soft);border-color:rgba(var(--accent-rgb), .24);color:var(--accent-strong)}.layer-chip-select{color:inherit;white-space:nowrap;cursor:pointer;background:0 0;border:0;font-size:.74rem;font-weight:700}.layer-chip-remove{width:18px;height:18px;color:inherit;opacity:.5;cursor:pointer;background:0 0;border:0;border-radius:7px;justify-content:center;align-items:center;margin-left:4px;padding:0;font-size:.95rem;line-height:1;transition:opacity .15s,background .15s;display:inline-flex}.layer-chip-remove:hover,.layer-chip-remove:focus-visible{opacity:1;background:rgba(var(--accent-rgb), .16)}.layer-chip-add{border:1px dashed var(--line-strong);background:var(--panel-solid);min-height:27px;color:var(--muted);white-space:nowrap;cursor:pointer;border-radius:10px;padding:0 11px;font-size:.74rem;font-weight:700;transition:transform .15s,border-color .15s,color .15s}.layer-chip-add:hover{border-color:rgba(var(--accent-rgb), .4);color:var(--accent-strong);transform:translateY(-1px)}.toolbar-typography select,.size-stepper{height:27px}.toolbar-typography select,.size-stepper input{background:var(--panel-solid);color:var(--text);border:1px solid #e7e5e0;border-radius:10px}.toolbar-typography select{outline:none;min-width:128px;max-width:154px;padding:0 8px;font-size:.82rem;font-weight:600}.toolbar-row-controls .toolbar-group:last-child{border-right:0;padding-right:0}.toolbar-typography select option{font-size:.94rem}.font-select-popover{position:relative}.font-select-trigger{background:var(--panel-solid);color:#24221d;white-space:nowrap;text-overflow:ellipsis;border:1px solid #e7e5e0;border-radius:10px;align-items:center;min-width:186px;max-width:210px;height:27px;padding:0 10px;font-size:.82rem;font-weight:600;display:inline-flex;overflow:hidden}.font-select-trigger:after{content:"▾";color:#88816f;margin-left:8px;font-size:.72rem}.font-select-trigger:disabled{opacity:.55}.font-select-menu{z-index:50;background:#fffffffa;border:1px solid #d1cdc5f0;border-radius:14px;width:min(340px,72vw);max-height:min(56vh,420px);padding:8px;position:absolute;top:calc(100% + 6px);left:0;overflow:auto;box-shadow:0 22px 40px #56352d33}.font-select-group{gap:4px;display:grid}.font-select-group+.font-select-group{border-top:1px solid #e7e5e1e0;margin-top:8px;padding-top:8px}.font-select-group-label{letter-spacing:.05em;text-transform:uppercase;color:#98907d;padding:2px 6px;font-size:.64rem;font-weight:700}.font-select-option{text-align:left;color:#28251f;background:0 0;border:1px solid #0000;border-radius:10px;width:100%;padding:6px 8px;font-size:.95rem;font-weight:400;display:block}.font-select-option:hover{background:#d24a3214}.font-select-option.is-active{background:#d24a3224;border-color:#d24a324d}.font-preview-chip{background:var(--panel-solid);min-width:122px;max-width:168px;height:27px;color:var(--text);white-space:nowrap;text-overflow:ellipsis;border:1px solid #e7e5e0;border-radius:10px;align-items:center;padding:0 10px;font-size:.92rem;font-weight:600;display:inline-flex;overflow:hidden;box-shadow:inset 0 1px #ffffff8c}.font-preview-chip.is-disabled{opacity:.55}.size-stepper{background:var(--panel-solid);border:1px solid #e7e5e0;border-radius:10px;align-items:center;display:inline-flex;overflow:hidden}.size-stepper input{text-align:center;border:0;outline:none;width:46px;height:100%;padding:0 4px}.size-stepper input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.size-stepper input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.step-button{background:var(--panel-solid);border:0;border-radius:0;min-width:26px;height:100%}.color-button{background:var(--panel-solid);border:1px solid #edece9;border-radius:10px;justify-content:center;align-items:center;width:27px;height:27px;padding:2px;display:inline-flex}.color-button input[type=color]{background:0 0;border:0;width:100%;height:100%;padding:0}.history-button{background:var(--panel-solid);min-width:31px;color:var(--accent-strong);border:1px solid #edece9;justify-content:center;align-items:center;padding:0;line-height:0;display:inline-flex}.history-button:hover{background:#d24a3214;border-color:#d24a322e}.history-button:disabled{opacity:.5;cursor:not-allowed}.history-icon{fill:none;stroke:currentColor;stroke-width:2.1px;stroke-linecap:round;stroke-linejoin:round;width:18px;height:18px}.history-button:disabled .history-icon{stroke:#cbc7bd}.workspace-stage{background:linear-gradient(#fffdf9c7,#f4eee5f5);border-radius:28px;height:100%;min-height:0;display:grid;overflow:hidden}.print-stage{--canvas-w:min(100%, 980px, calc((100vh - 300px) * 1.5));flex-direction:column;justify-content:center;align-items:center;gap:10px;height:100%;min-height:0;padding:12px 12px 10px;display:flex}.print-canvas{width:var(--canvas-w);aspect-ratio:3/2;max-width:100%;box-shadow:var(--canvas-shadow);background:#f8f8f8;border-radius:8px;position:relative;overflow:hidden}.image-action{align-items:center;gap:6px;padding:0 11px;display:inline-flex}.image-action-glyph{font-size:1.05em;line-height:0}.image-action:disabled{opacity:.45;cursor:not-allowed;box-shadow:none;transform:none}.toolbar-files{border-top:1px solid #f2f1ee;flex-wrap:wrap;gap:6px;padding-top:6px;display:flex}.toolbar-files:empty{display:none}.layout-image-file{border:1px solid var(--line);background:var(--panel-solid);border-radius:11px;align-items:center;gap:7px;max-width:230px;padding:4px 6px 4px 4px;display:inline-flex}.layout-image-file.is-active{border-color:rgba(var(--accent-rgb), .5);background:var(--accent-soft)}.layout-image-file-thumb{object-fit:cover;border:1px solid var(--line);background:#f8f3f2;border-radius:6px;width:40px;height:27px}.layout-image-file-select{background:0 0;border:0;min-width:0;padding:0}.layout-image-file-name{color:#353129;text-align:left;white-space:nowrap;text-overflow:ellipsis;max-width:104px;font-size:.7rem;font-weight:600;line-height:1.2;display:block;overflow:hidden}.layout-image-file-actions{align-items:center;gap:3px;display:inline-flex}.layout-image-file-rotate,.layout-image-file-remove{border:1px solid var(--line);background:var(--panel-solid);border-radius:7px;justify-content:center;align-items:center;width:24px;height:24px;font-size:.72rem;font-weight:700;line-height:1;display:inline-flex}.layout-image-file-rotate{color:#575245}.layout-image-file-remove{color:#8e314f}.layout-image-files-empty{display:none}.layout-tray{border:1px solid var(--line-strong);background:var(--panel-solid);box-shadow:var(--shadow-soft);border-radius:18px;grid-template-columns:auto auto minmax(0,1fr) auto;align-items:center;gap:14px;padding:9px 13px;display:grid}.tray-save{border:1px dashed rgba(var(--accent-rgb), .55);background:var(--accent-soft);min-width:74px;min-height:54px;color:var(--accent-strong);border-radius:12px;flex-direction:column;justify-content:center;align-items:center;gap:2px;padding:6px 12px;font-size:.72rem;font-weight:700;line-height:1.1;transition:transform .15s,background .15s,border-color .15s;display:inline-flex}.tray-save:hover:not(:disabled){background:rgba(var(--accent-rgb), .16);border-color:rgba(var(--accent-rgb), .82);transform:translateY(-1px)}.tray-save:disabled{cursor:not-allowed;border-style:solid;border-color:var(--line);background:var(--panel-solid);color:var(--muted)}.tray-save-glyph{font-size:1.2rem;line-height:.7}.layout-tray.is-empty{box-shadow:none;background:#fdfbfaa8;border-style:dashed}.layout-tray-head{align-items:center;gap:9px;display:flex}.layout-tray-label{max-width:86px;color:var(--accent-strong);letter-spacing:.14em;text-transform:uppercase;margin:0;font-size:8px;font-weight:700;line-height:1.25}.layout-tray-count{background:var(--accent);color:#fff;font-variant-numeric:tabular-nums;border-radius:999px;justify-content:center;align-items:center;min-width:26px;height:26px;padding:0 8px;font-size:.84rem;font-weight:800;display:inline-flex}.layout-tray.is-empty .layout-tray-count{color:#fffdf9;background:#d9d3c9}.layout-tray-list{scrollbar-width:thin;align-items:center;gap:9px;min-width:0;padding:3px 2px;display:flex;overflow-x:auto}.layout-tray-empty{color:var(--muted);margin:0;font-size:.78rem;line-height:1.4}.layout-tray-empty strong{color:#423d30;font-weight:700}.tray-chip{flex:none;position:relative}.tray-chip-select{border:1px solid var(--line);background:var(--panel-solid);width:80px;box-shadow:var(--shadow-soft);border-radius:11px;padding:0;transition:transform .15s,box-shadow .15s,border-color .15s;display:block;overflow:hidden}.tray-chip-select:hover{border-color:var(--line-strong);transform:translateY(-1px)}.tray-chip.is-current .tray-chip-select{border-color:var(--accent);box-shadow:0 0 0 2px rgba(var(--accent-rgb), .3), var(--shadow-soft)}.layout-stack-thumb-frame{background:#f8f8f7;display:block;overflow:hidden}.layout-stack-thumb-live{aspect-ratio:3/2;pointer-events:none;width:100%;display:block;position:relative;overflow:hidden}.layout-stack-thumb-mirror-stage{position:absolute;inset:0;overflow:hidden}.layout-stack-thumb-mirror-canvas{box-shadow:none;pointer-events:none;max-width:none}.layout-stack-thumb-mirror-canvas .selection-frame{display:none!important}.tray-chip-index{color:#fff;font-variant-numeric:tabular-nums;background:#14120ec7;border-radius:6px;justify-content:center;align-items:center;min-width:17px;height:17px;padding:0 4px;font-size:.64rem;font-weight:700;line-height:1;display:inline-flex;position:absolute;top:4px;left:4px}.tray-chip-delete{border:1px solid var(--line);background:var(--panel-solid);color:#8e314f;width:20px;height:20px;box-shadow:var(--shadow-soft);opacity:0;border-radius:999px;justify-content:center;align-items:center;font-size:.88rem;line-height:1;transition:opacity .14s;display:inline-flex;position:absolute;top:-6px;right:-6px}.tray-chip:hover .tray-chip-delete,.tray-chip-delete:focus-visible{opacity:1}.tray-chip-delete:hover{background:#fbe9e4;border-color:#c44e3a6b}.layout-submit-wrap{justify-self:end;position:relative}.layout-tray-submit{background:var(--accent);color:#fff;white-space:nowrap;min-height:44px;box-shadow:0 14px 30px rgba(var(--accent-rgb), .3);border:1px solid #0000;border-radius:14px;padding:0 22px;font-size:.9rem;font-weight:700;transition:transform .15s,box-shadow .15s,background .15s}.layout-tray-submit:hover:not(:disabled){background:#c0432d;transform:translateY(-1px)}.layout-tray-submit:disabled{color:#fbf8f3;box-shadow:none;cursor:not-allowed;background:#d9d3c9}.layout-submit-hint{color:#665f50;text-align:center;pointer-events:none;opacity:0;z-index:10;background:#fffffffa;border:1px solid #d1cdc5f2;border-radius:10px;min-width:196px;max-width:240px;padding:8px 10px;font-size:.7rem;line-height:1.3;transition:opacity .14s,transform .14s;position:absolute;bottom:calc(100% + 8px);right:0;transform:translateY(2px);box-shadow:0 10px 24px #33302824}.layout-submit-hint.is-visible{opacity:1;transform:translateY(0)}.submit-dialog{z-index:80;place-items:center;padding:24px;display:grid;position:fixed;inset:0}.submit-dialog[hidden]{display:none}.submit-dialog-backdrop{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#261c1270;border:0;position:absolute;inset:0}.submit-dialog-card{z-index:1;background:#fffffffa;border:1px solid #dad7d0f5;border-radius:28px;width:min(100%,460px);padding:24px 24px 22px;position:relative;box-shadow:0 26px 60px #44292233}.submit-dialog-kicker{color:var(--accent-strong);letter-spacing:.08em;text-transform:uppercase;margin:0 0 8px;font-size:.8rem;font-weight:700}.submit-dialog-card h2{color:#201e1a;margin:0;font-size:1.5rem;line-height:1.1}.submit-dialog-message{color:#676051;margin-top:14px;font-size:.96rem;line-height:1.45}.submit-dialog-message p{margin:0 0 12px}.submit-dialog-message p:last-child{margin-bottom:0}.submit-dialog-layouts{margin:0 0 12px;padding-left:20px}.submit-dialog-field{color:#555043;gap:6px;margin-top:10px;font-size:.9rem;font-weight:600;display:grid}.submit-dialog-field input{background:var(--panel-solid);color:#201e1a;border:1px solid #d5d1c9f5;border-radius:12px;outline:none;width:100%;min-height:40px;padding:0 12px}.submit-dialog-field input:focus{border-color:#d24a3280;box-shadow:0 0 0 3px #d24a3229}.submit-dialog-field.is-invalid{color:#9f2b2b}.submit-dialog-field.is-invalid input{border-color:#e05252b8;box-shadow:0 0 0 3px #e0525229}.submit-dialog-field-hint{color:#9f2b2b;margin:2px 0 0;font-size:.8rem;font-weight:600;line-height:1.3}.submit-dialog-field-hint[hidden]{display:none}.submit-dialog-status{border:1px solid #0000;border-radius:12px;min-height:40px;margin-top:12px;padding:10px 12px;font-size:.9rem;line-height:1.35}.submit-dialog-status[hidden]{display:none}.submit-dialog-status.is-progress{color:#a7462e;background:#ff7d5d1a;border-color:#ff7d5d57;align-items:center;gap:10px;display:flex}.submit-dialog-status.is-progress:before{content:"";border:2px solid #a7462e33;border-top-color:#a7462e;border-radius:50%;width:15px;height:15px;animation:.8s linear infinite submit-spin}.submit-dialog-status.is-success{color:#1c7e52;background:#2da86f1c;border-color:#2da86f66}.submit-dialog-status.is-warning{color:#946017;background:#e59e391f;border-color:#e59e3966}.submit-dialog-status.is-error{color:#9f2b2b;background:#e052521f;border-color:#e052526b}@keyframes submit-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.submit-dialog-actions{justify-content:flex-end;gap:10px;margin-top:18px;display:flex}.submit-dialog-secondary,.submit-dialog-primary{min-height:44px;font:inherit;border-radius:14px;padding:0 18px;font-weight:700}.submit-dialog-secondary{color:#2c2923;background:#faf5f4;border:1px solid #d5d1c9f5}.submit-dialog-primary{background:var(--accent);color:#fff;border:0;box-shadow:0 16px 28px #ea674638}.preview-photo-fill{z-index:0;position:absolute;inset:0}.preview-photo-fill[data-fill-mode=overlay]{z-index:2}.preview-photo-fill .photo-fill-slot{position:absolute;overflow:hidden}.preview-photo-fill .photo-fill-slot img{object-fit:cover;object-position:center top;transform-origin:top;width:100%;height:100%;transform:scale(1.16)}.print-canvas img{object-fit:contain;object-position:center;width:100%;height:100%;position:absolute;inset:0}#previewImage{z-index:1}.toolbar-action{background:var(--accent);color:#fff;border:0}.toolbar-action-secondary{color:var(--text);background:#faf5f4;border:1px solid #edece9}.toolbar-action:disabled{opacity:.45;cursor:not-allowed;box-shadow:none;transform:none}.preview-copy{z-index:3;pointer-events:none;position:absolute;inset:0}.layer-shell{z-index:3;pointer-events:auto;touch-action:none;-webkit-touch-callout:none;min-width:2ch;max-width:76%;min-height:1.2%;position:absolute;overflow:visible}.layer-shell:focus-within{touch-action:auto}.selection-frame{opacity:0;visibility:hidden;pointer-events:none;border:2px solid #d24a32c7;border-radius:8px;transition:opacity .14s,box-shadow .14s,transform .14s;position:absolute;inset:-1px}.layer-shell.is-active-layer{z-index:5}.layer-shell.is-active-layer .selection-frame,.layer-shell.is-interacting .selection-frame{opacity:1;visibility:visible;border-color:#d24a32c7;box-shadow:0 0 0 1px #d24a3238,0 12px 30px #4e22172e}.custom-image-shell{z-index:4;pointer-events:auto;touch-action:none;-webkit-touch-callout:none;position:absolute;overflow:visible}.custom-image-shell img{object-fit:cover;object-position:center;-webkit-user-select:none;user-select:none;pointer-events:none;width:100%;height:100%;display:block;position:absolute;top:50%;left:50%}.custom-image-shell .custom-image-frame{inset:-8px}.custom-image-shell.is-active .selection-frame{opacity:1;visibility:visible;box-shadow:0 0 0 1px #d24a3238,0 12px 30px #4e22172e}.layer-edge-handle,.layer-resize-handle{pointer-events:auto;touch-action:none;background:0 0;border:0;position:absolute}.layer-resize-handle{background:var(--panel-solid);z-index:30;border:2px solid #d24a32e6;border-radius:50%;width:16px;height:16px}.layer-edge-handle{z-index:20}.layer-edge-handle[data-layer-action=drag]{cursor:move}.layer-edge-handle.is-s,.layer-edge-handle.is-n{width:40px;height:16px;left:50%;transform:translate(-50%)}.layer-edge-handle.is-e,.layer-edge-handle.is-w{width:16px;height:64px;top:50%;transform:translateY(-50%)}.layer-edge-handle.is-e{cursor:ew-resize;right:-10px}.layer-edge-handle.is-s{cursor:ns-resize;bottom:-10px}.layer-edge-handle.is-n{cursor:ns-resize;top:-10px}.layer-edge-handle.is-w{cursor:ew-resize;left:-10px}.layer-edge-handle[data-layer-action=drag].is-n,.layer-edge-handle[data-layer-action=drag].is-e,.layer-edge-handle[data-layer-action=drag].is-s,.layer-edge-handle[data-layer-action=drag].is-w{cursor:move}.layer-edge-handle[data-layer-action=drag].is-n,.layer-edge-handle[data-layer-action=drag].is-s{width:auto;height:18px;left:-10px;right:-10px;transform:none}.layer-edge-handle[data-layer-action=drag].is-n{top:-10px}.layer-edge-handle[data-layer-action=drag].is-s{bottom:-10px}.layer-edge-handle[data-layer-action=drag].is-e,.layer-edge-handle[data-layer-action=drag].is-w{width:18px;height:auto;top:-10px;bottom:-10px;transform:none}.layer-edge-handle[data-layer-action=drag].is-e{right:-10px}.layer-edge-handle[data-layer-action=drag].is-w{left:-10px}.layer-resize-handle.is-nw{cursor:nwse-resize;top:-10px;left:-10px}.layer-resize-handle.is-ne{cursor:nesw-resize;top:-10px;right:-10px}.layer-resize-handle.is-sw{cursor:nesw-resize;bottom:-10px;left:-10px}.layer-resize-handle.is-se{cursor:nwse-resize;bottom:-10px;right:-10px}.preview-title,.preview-subtitle,.preview-meta-line,.preview-text-layer{cursor:text;white-space:pre;overflow-wrap:normal;word-break:keep-all;pointer-events:auto;outline:none;flex-direction:column;justify-content:center;align-items:stretch;width:100%;height:100%;margin:0;padding:8px 10px;display:flex;position:relative;overflow:hidden}.preview-title{letter-spacing:-.04em;font-size:86px;line-height:.94}.preview-subtitle{font-size:32px;line-height:1.18}.preview-meta-line{letter-spacing:.08em;font-size:24px;line-height:1.14}.preview-text-layer{font-size:30px;line-height:1.18}[data-layer-target][contenteditable=true]:focus{outline:none}[data-layer-target].is-empty:before{content:attr(data-placeholder);color:#ffffffeb;font-weight:600}.gallery-grid{gap:10px;min-height:0;margin-top:0;padding-right:4px;display:grid;overflow:auto}.layout-card{width:100%;color:inherit;text-align:left;background:#fffbfa;border-color:#eceae6;border-radius:14px;grid-template-columns:74px minmax(0,1fr);align-items:center;gap:10px;padding:8px;display:grid;box-shadow:0 8px 18px #4a453a0f}.layout-card.is-active{background:#d24a321f;border-color:#d24a3257}.layout-card.is-active .layout-thumb{transform:scale(.92)}.layout-card-upload{background:linear-gradient(#fffdf9,#f7f1e9);border-style:dashed;border-color:#e2e0da}.layout-card-upload:hover{background:#d24a3214;border-color:#d24a326b}.layout-thumb{object-fit:contain;object-position:center;background:#f8f2f1;border-radius:14px;width:100%;height:56px;transition:transform .15s}.layout-upload-thumb{background:linear-gradient(#fffdf9,#f8f2ea);border:1px dashed #e2e0da;place-items:center;display:grid}.layout-upload-plus{color:var(--accent-strong);font-size:1.65rem;font-weight:500;line-height:1}.layout-copy{gap:3px;min-width:0;display:grid}.layout-title{margin:0;font-size:.76rem;font-weight:700;line-height:1.2}.layout-subtitle{color:var(--muted);margin:0;font-size:.68rem;line-height:1.3}.layout-upload-description{color:var(--muted);margin:0;font-size:.62rem;line-height:1.35}.layout-tags{flex-wrap:wrap;gap:6px;display:flex}.layout-tag{min-height:20px;color:var(--accent-strong);background:#d24a3217;border-radius:999px;align-items:center;padding:0 6px;font-size:10px;font-weight:700;display:inline-flex}.empty-state{width:100%;color:var(--muted);text-align:center;background:#ffffff80;border:1px dashed #e3e1dc;border-radius:18px;padding:18px}@media (width<=1180px){body{overflow:auto}.app-shell{height:auto}.ruler-shell,.studio-shell{grid-template-columns:1fr}.ruler-gutter{display:none}.sidebar-panel{height:auto;min-height:auto;position:static}.floating-toolbar{justify-content:flex-start;width:100%}.workspace-panel,.workspace-stage{height:auto}}@media (width<=860px){.app-shell{padding:10px 10px 18px}.workspace-meta{flex-direction:column;align-items:flex-start}.meta-pills{justify-content:flex-start}.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.layout-card{grid-template-columns:1fr;align-items:start}.layout-thumb{aspect-ratio:3/2;height:auto}.toolbar-group{border-right:0;padding-right:0}.print-stage{--canvas-w:min(100%, 980px);min-height:auto;padding:20px 18px 22px}.layer-shell{max-width:84%}.layer-edge-handle.is-s,.layer-edge-handle.is-n{width:34px}.layer-edge-handle.is-e,.layer-edge-handle.is-w{height:56px}}@media (width<=680px){.sidebar-panel,.workspace-stage{border-radius:22px}.pill-group,.segment-control{grid-template-columns:1fr}.layout-title{font-size:.84rem}.layer-shell{max-width:92%}}@media (width<=760px){body{overflow:auto}.mobile-editor-notice{z-index:120;padding:calc(14px + env(safe-area-inset-top,0px)) 14px 14px;color:#fff;text-align:center;background:#2d2a24f2;border-bottom:1px solid #c4bfb4e6;margin:0;font-size:.9rem;font-weight:700;line-height:1.3;display:block;position:fixed;top:0;left:0;right:0}.app-shell{grid-template-rows:auto;height:auto;min-height:calc(100dvh - 46px);padding:84px 10px 16px}.studio-shell{height:auto;display:block}.workspace-panel{display:none}.sidebar-panel{border-radius:18px;padding:12px 10px;overflow:visible}.sidebar-gallery-block .section-label,.section-note{display:none}.gallery-grid{grid-template-columns:1fr;gap:10px}.layout-card{grid-template-columns:1fr;gap:8px;padding:8px}.layout-thumb{aspect-ratio:3/2;width:100%;height:auto}.layout-title{font-size:.86rem}.layout-subtitle{font-size:.68rem}.layout-card-upload,.mobile-layout-modal[hidden]{display:none}.mobile-layout-modal{z-index:180;place-items:center;padding:16px;display:grid;position:fixed;inset:0}.mobile-layout-modal-backdrop{background:#140c0af5;border:0;position:absolute;inset:0}.mobile-layout-modal-card{z-index:1;width:min(100%,980px);max-height:calc(100dvh - 36px);box-shadow:none;background:0 0;border:0;border-radius:0;gap:10px;padding:0;display:grid;position:relative}.mobile-layout-modal-close{color:#413d33;background:#fffffff0;border:1px solid #c4bfb4e6;border-radius:999px;width:32px;height:32px;font-size:1.4rem;font-weight:500;line-height:1;position:absolute;top:8px;right:8px}#mobileLayoutPreviewImage{object-fit:contain;background:0 0;border-radius:0;width:100%;max-height:calc(100dvh - 130px)}.mobile-layout-modal-title{text-align:center;color:#413d33;margin:0;padding:0 28px 2px;font-size:.82rem;font-weight:600}}@media (pointer:coarse){.layer-edge-handle:before,.layer-resize-handle:before{content:"";width:44px;height:44px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.layer-resize-handle{width:22px;height:22px}.format-button,.layer-chip,.layer-chip-add,.segment-button,.step-button{min-height:44px}.layer-chip-remove{width:36px;height:36px}.format-button,.step-button{min-width:44px}.color-button{width:44px;height:44px}#activeSizeInput,.font-select-trigger{min-height:44px}.font-select-menu [role=option]{align-items:center;min-height:44px;display:flex}.toolbar-row{flex-wrap:wrap;gap:10px;overflow:visible}.toolbar-group{gap:8px}.icon-button:hover,.pill-button:hover,.segment-button:hover,.layer-chip-add:hover,.format-button:hover,.toolbar-action:hover,.step-button:hover,.layout-card:hover{transform:none}}@media (pointer:coarse) and (orientation:landscape) and (width>=900px){body{overflow:hidden}.app-shell{height:100dvh}.studio-shell{grid-template-columns:248px minmax(0,1fr);align-items:stretch;height:100%}.sidebar-panel{height:100%;min-height:0;position:static}.workspace-panel,.workspace-stage{height:100%}.print-stage{--canvas-w:min(100%, 980px, calc((100dvh - 300px) * 1.5))}}@media (pointer:coarse) and (orientation:portrait) and (width>=760px){.studio-shell{grid-template-columns:minmax(0,1fr)}.sidebar-gallery-block{min-height:0}.gallery-grid{overscroll-behavior:contain;-webkit-overflow-scrolling:touch;max-height:42vh;padding-right:4px;overflow-y:auto}.print-stage{--canvas-w:100%;width:100%}}
