*{box-sizing:border-box}body{margin:0;background:#f7f7fa;color:#292332;font:16px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}button,input,textarea{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #a98ad1;outline-offset:3px}button{transition:background .15s,transform .15s}button:hover{filter:brightness(.96)}header{height:88px;background:white;border-bottom:1px solid #e7e3eb;display:flex;align-items:center;padding:0 5%;gap:24px}.brand{display:flex;align-items:center;gap:12px;color:#34243f;text-decoration:none;font-size:22px;letter-spacing:-.7px}.brand b{font-weight:450}.mark{width:43px;height:43px;display:grid;place-items:center;background:#49305e;color:white;border-radius:13px;font:italic 40px Georgia;position:relative;padding-bottom:7px}.mark span{position:absolute;font:20px Georgia;right:5px;top:0}.header-note{color:#89828e;font-size:14px;flex:1;padding-left:22px;border-left:1px solid #e6e0eb}.quiet{border:1px solid #ddd5e4;background:white;color:#5e466e;border-radius:8px;padding:9px 16px;font-size:14px}main{max-width:1440px;margin:auto;padding:35px 5% 22px}.intro{display:flex;justify-content:space-between;align-items:center;margin-bottom:29px}.eyebrow{font-size:11px;letter-spacing:2px;font-weight:700;color:#8c6c9e}h1{font-size:30px;letter-spacing:-1px;line-height:1.25;margin:9px 0}p{margin:0;color:#847b8b}.intro p{font-size:15px}.local-note{font-size:12px;color:#82778c;display:flex;gap:8px}.local-note span{color:#957ca7}.workspace{display:grid;grid-template-columns:350px minmax(0,1fr);gap:25px;align-items:start}.controls{border:1px solid #e4dfea;background:white;border-radius:14px;overflow:hidden}.controls section{padding:22px;border-bottom:1px solid #eeeaf1}.controls section:last-child{border:0}h2{margin:0 0 16px;font-size:16px;font-weight:650;display:flex;gap:9px;align-items:center}.step{display:inline-grid;place-items:center;background:#f0eaf6;border-radius:50%;width:25px;height:25px;color:#725285;font-size:12px}h2 small{margin-left:auto;color:#99909e;font-size:11px;font-weight:400}.upload{border:1.5px dashed #d2c1de;border-radius:10px;display:flex;align-items:center;flex-direction:column;background:#fcfaff;padding:18px 6px;cursor:pointer;text-align:center}.upload input{position:absolute;width:1px;height:1px;opacity:0}.upload:focus-within{outline:3px solid #a98ad1}.upload.drag{background:#ede4f5}.upload-icon{font-size:25px;line-height:1;background:#eee5f5;border-radius:9px;width:38px;height:38px;padding:5px;color:#78558d;margin-bottom:8px}.upload strong{font-size:14px;max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.upload span:not(.upload-icon){color:#8a8093;font-size:13px}.upload small{font-size:11px;color:#a197a9;margin-top:10px}.segmented{display:flex;gap:7px}.segmented button{font-size:12px;flex:1;display:flex;flex-direction:column;align-items:center;gap:7px;background:white;border:1px solid #e6e0eb;padding:11px 4px;border-radius:8px;color:#776d81}.segmented button.selected,.presets button.selected{background:#f4edf9;border-color:#9471ae;color:#65447d}.shape{width:21px;height:21px;border:1.5px solid currentColor;border-radius:3px}.shape.round{border-radius:50%}.shape.rect{width:29px}.size-row{display:flex;gap:12px;margin-top:15px}.size-row label{flex:1;font-size:12px;color:#817588}.size-row input{width:100%;margin-top:6px;border:1px solid #e2dce7;border-radius:7px;padding:8px 10px;color:#3c3047;background:#fff}.presets{display:flex;gap:6px;margin-top:10px}.presets button{flex:1;border:1px solid #e4deea;border-radius:5px;background:white;padding:5px 2px;font-size:12px;color:#8b7f96}textarea{resize:vertical;width:100%;border:1px solid #ded7e4;background:#fff;border-radius:8px;padding:10px 12px;font-size:14px;min-height:68px}textarea::placeholder{color:#b3a9bb}.styles{display:flex;gap:6px;margin-top:10px}.styles button{flex:1;background:white;border:1px solid #e7e0ed;border-radius:7px;color:#94869e;font-size:11px;padding:6px 1px;display:flex;flex-direction:column;align-items:center;gap:1px}.styles button span{font-size:25px;line-height:1.3;color:#63536f}.styles button.selected{border-color:#a283b9;background:#f8f3fc}.classic{font-family:Georgia,serif}.hand{font-family:cursive;font-style:italic}.modern{font-family:Arial,sans-serif}.bold{font-family:Arial,sans-serif;font-weight:900}.text-options{display:flex;gap:18px;margin:17px 0 12px}.text-options label,.range-label{font-size:12px;color:#81748c}.colors{display:flex;gap:6px;align-items:center;margin-top:9px}.colors button{width:22px;height:22px;border-radius:50%;border:1px solid #d8d1de;background:var(--swatch);padding:0}.colors button.selected{outline:2px solid #bda9cd;outline-offset:2px}.colors input{width:24px;height:24px;padding:0;border:0;background:transparent;cursor:pointer}.font-size{flex:1;min-width:65px}.font-size input{width:100%;margin-top:14px}input[type=range]{accent-color:#8e6aaa;width:100%;height:4px;cursor:pointer}.range-label{display:flex;justify-content:space-between;margin:12px 0 7px}.check{display:flex;gap:7px;font-size:12px;color:#887b93;margin-top:13px;align-items:center}.check input{accent-color:#7e5995}.preview-panel{min-width:0;background:white;border:1px solid #e4dfea;border-radius:14px;padding:24px}.preview-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.preview-head h2{margin:0}.preview-head>span{font-size:12px;color:#8e7d9a;background:#f6f2f9;padding:5px 11px;border-radius:30px}.stage{height:480px;background-color:#f3f0f6;background-image:radial-gradient(#d9d1e1 .8px,transparent .8px);background-size:16px 16px;border-radius:10px;display:flex;align-items:center;justify-content:center;position:relative;padding:30px 30px 50px}.canvas-wrap{position:relative;height:100%;max-width:100%;aspect-ratio:1;filter:drop-shadow(0 12px 15px #3c205717)}canvas{display:block;width:100%;height:100%;background:transparent;touch-action:none;cursor:grab}canvas:active{cursor:grabbing}.empty{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;pointer-events:none;text-align:center;padding:35px}.empty h3{font-size:17px;line-height:1.4;color:#84728e;font-weight:500;margin:12px 0 7px}.empty p{font-size:12px;color:#a394ad}.empty button{pointer-events:auto;margin-top:18px;color:#77578e;background:#f2eaf8;border:0;padding:8px 20px;border-radius:7px;font-size:13px}.empty-symbol{font-size:27px;border:1px solid #e5d9ee;border-radius:12px;color:#b49ac5;width:48px;height:48px;display:grid;place-items:center}.measure{position:absolute;bottom:14px;font-size:12px;color:#998ba4;letter-spacing:.5px}.preview-bottom{display:flex;justify-content:space-between;gap:10px;font-size:11px;color:#a699af;margin:13px 0 25px}.export{border-top:1px solid #eee8f2;padding-top:23px;display:flex;align-items:center;justify-content:space-between;gap:15px}.export h3{font-size:16px;margin:0 0 5px}.export p{font-size:12px}.primary{border:0;border-radius:9px;background:#694381;color:#fff;font-size:14px;font-weight:600;padding:13px 22px;white-space:nowrap}.primary span{margin-right:6px;font-size:20px}.primary:disabled{background:#ded2e7;color:#9581a5;cursor:not-allowed}.print-note{font-size:11px;margin:17px 0 0;color:#a498ac}#status{font-size:13px;margin-top:12px;color:#986334}.text-button{background:none;border:none;color:#7c5397;font-size:12px;padding:7px 0}.help{display:block;color:#8b7f94;font-size:11px}footer{max-width:1440px;padding:0 5% 25px;margin:auto;color:#a89aaf;font-size:12px;display:flex;justify-content:space-between}[hidden]{display:none!important}@media(min-width:1400px){.stage{height:550px}}@media(max-width:900px){.workspace{grid-template-columns:310px minmax(0,1fr);gap:15px}.controls section{padding:17px}.stage{height:370px;padding:20px 15px 45px}.preview-panel{padding:17px}.export{flex-direction:column;align-items:stretch}.header-note,.local-note{display:none}.quiet{margin-left:auto}.intro h1{font-size:26px}.empty{padding:20px}.empty h3{font-size:14px}}@media(max-width:650px){header{height:70px;padding:0 20px}.brand{font-size:19px}main{padding:25px 16px}.intro{margin-bottom:22px}.intro h1{font-size:25px}.workspace{grid-template-columns:1fr}.preview-panel{grid-row:1}.stage{height:340px}.preview-bottom{margin-bottom:14px}.export{flex-direction:row}.export h3{font-size:14px}.primary{padding:10px 13px;font-size:13px}.controls section{padding:20px}.empty h3{font-size:17px}footer{padding:0 20px 22px}.print-note{font-size:11px}.eyebrow{font-size:10px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}

header .quiet{margin-left:auto}.brand{font-size:21px}.mark{font-style:normal;font-size:32px;padding-bottom:3px}.presets{margin-top:16px;display:grid;grid-template-columns:1fr 1fr;gap:8px}.presets button{padding:10px;font-size:14px}.presets small{display:block;font-size:12px;margin-top:2px}.size-note{font-size:14px;margin-top:12px}.curve-actions{display:flex;gap:7px;margin-top:12px}.curve-actions button{flex:1;font-size:13px;color:#7c658c;border:1px solid #e0d7e7;border-radius:6px;background:#fff;padding:6px}.curve-actions button.selected{background:#f4edf9;border-color:#9471ae}.segmented button{font-size:14px}.range-label,.text-options label,.check{font-size:14px}.styles button{font-size:13px}.empty{padding:15px}.empty h3{font-size:14px}.empty p{font-size:12px}.empty-symbol{display:none}.empty button{margin-top:10px}.preview-panel{position:sticky;top:20px}@media(max-width:650px){.brand{font-size:17px;gap:8px}.mark{width:34px;height:34px;font-size:27px}header{padding:0 15px;gap:8px}.quiet{font-size:12px;padding:8px}.preview-panel{position:static}.empty h3{font-size:12px}.empty p{display:none}}

.stage{height: min(76vh, 860px);min-height:550px;padding:22px 20px 42px;background:#eeeaf2}.canvas-wrap{flex:none;background:white;box-shadow:0 3px 18px #36244624;filter:none}.preview-panel{padding:20px}.preview-bottom{font-size:13px;margin:13px 0 18px}.measure{font-size:13px;color:#6e607b;bottom:10px}.fit-warning{padding:15px;background:#fff5e8;color:#8a531c;border:1px solid #e9c99d;border-radius:8px;margin-bottom:16px;font-size:14px}.fit-warning p{color:inherit;margin:6px 0 12px}.fit-warning button{padding:8px 12px;border:1px solid #bd8b52;border-radius:6px;background:white;color:#744313;font-size:14px}.fit-note{font-size:14px;color:#6e527f;margin:0 0 16px}.empty h3{font-size:16px}.empty p{font-size:14px}.empty button{font-size:14px}.preview-head{gap:10px;flex-wrap:wrap}@media(max-width:900px) and (min-width:651px){.workspace{grid-template-columns:275px minmax(0,1fr)}.stage{padding-left:10px;padding-right:10px;min-height:460px}}@media(max-width:650px){main{padding:15px 8px}.preview-panel{padding:14px 10px}.stage{height:auto;min-height:0;aspect-ratio:21/32.7;padding:14px 12px 36px}.preview-head h2{font-size:15px}.preview-head>span{font-size:12px}.export{flex-wrap:wrap}.primary{width:100%}.preview-bottom{font-size:12px}.empty p{display:block}}

.preview-bottom:has(#quality:empty){display:none}.export{margin-top:18px}

/* Mobile editor: only the controls scroll; the sheet remains visible. */
@media(max-width:650px){
 html{height:100%;overflow:hidden}
 body{height:100vh;height:100dvh;overflow:hidden;display:flex;flex-direction:column}
 header{height:54px;flex:0 0 54px;padding:0 12px}
 main{width:100%;flex:1;min-height:0;padding:8px 8px 0;display:flex;flex-direction:column}
 .workspace{display:flex;flex-direction:column;flex:1;min-height:0;gap:8px}
 .preview-panel{display:contents}
 .preview-live{order:-1;flex:none;background:white;border:1px solid #e4dfea;border-radius:12px;padding:8px}
 .preview-head{margin-bottom:6px;gap:4px}
 .preview-head h2{font-size:14px}
 .preview-head>span{padding:2px 8px}
 .stage{height:clamp(130px,31dvh,290px);min-height:0;aspect-ratio:auto;padding:7px 10px 23px;border-radius:7px}
 .measure{font-size:11px;bottom:3px}
 .preview-bottom{margin:4px 0 0;font-size:12px}
 .controls{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scroll-padding:12px}
 .controls section{padding:16px}
 .export{order:3;flex:none;margin:0;padding:8px 4px max(8px,env(safe-area-inset-bottom));border-top:1px solid #e4dfea;background:#f7f7fa}
 .export>div{display:none}
 .primary{min-height:44px;width:100%;font-size:15px;padding:8px 14px}
 footer{display:none}
 #status:empty{display:none}
 #status{order:4;flex:none;margin:0;padding:0 8px 6px;font-size:12px}
 .fit-warning,.fit-note{margin:0;font-size:12px}
 textarea{font-size:16px}
 .styles button,.curve-actions button,.segmented button{min-height:44px}
 .colors{gap:10px}.colors button,.colors input{width:28px;height:28px}
 input[type=range]{height:24px;margin:2px 0}
 .font-size input{margin-top:5px}
 .empty{padding:4px}.empty button{font-size:12px;padding:6px;margin:0}
}
@media(max-width:650px){.workspace{align-items:stretch}.preview-live,.controls,.export{width:100%}}
