@font-face{font-family:'Dela Gothic';src:url('./assets/dela-gothic-one.woff2') format('woff2');font-display:swap}
:root{--lavender:#dfd0ff;--ink:#000;--mono:'Cascadia Mono',Consolas,monospace;--display:'Dela Gothic','Arial Black',sans-serif;color-scheme:light}
*,*::before,*::after{box-sizing:border-box}body{margin:0;background:#fff;color:#000;font:1rem/1.55 system-ui,sans-serif}button,input,select{font:inherit;color:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button,select{cursor:pointer}button{background:#fff}button:disabled,fieldset:disabled{cursor:default;opacity:.45}button:disabled{pointer-events:none}[hidden]{display:none!important}a{color:inherit}h1,h2,p{margin:0}h2{font-size:1rem;line-height:1.3}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}::selection{background:var(--lavender)}:focus-visible{outline:3px solid #000;outline-offset:4px}.wrap{width:min(calc(100% - 6rem),80rem);margin:auto}.sr-only{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap}.skip{position:fixed;top:12px;left:12px;z-index:20;transform:translateY(-200%);background:#000;color:#fff;padding:12px}.skip:focus{transform:none}.pill-nav{display:flex;justify-content:center;gap:.3rem;width:fit-content;max-width:calc(100% - 1.5rem);margin:1.5rem auto;padding:.3rem;border:1px solid #000;border-radius:3rem}.pill-nav a{display:flex;align-items:center;gap:.4rem;min-height:44px;padding:.5rem 1rem;border:1px solid transparent;border-radius:3rem;text-decoration:none;font-size:.85rem;font-weight:800}.pill-nav a:hover,.pill-nav a[aria-current]{background:var(--lavender)}.pill-nav a[aria-current]{border-color:#000}.app-shell{border:1px solid #000;border-radius:1.7rem;overflow:hidden}.app-header{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1.7rem 2rem 1.8rem;background:var(--lavender);border-bottom:1px solid #000}.back-link,.eyebrow,.format-note,.local-tag{font:700 .75rem/1.5 var(--mono);letter-spacing:.06em}.back-link{display:inline-flex;align-items:center;min-height:28px;text-decoration:none}.back-link:hover{text-decoration:underline}h1{font:400 clamp(1.8rem,3.3vw,3rem)/1.2 var(--display);letter-spacing:-.055em;margin:.3rem 0 .6rem}.title-dot{margin-left:.04em}.app-header p{font-size:.95rem}.brand-mark{object-fit:contain;transform:rotate(-8deg);margin:0 .5rem}.flow{display:flex;align-items:center;gap:1.7rem;flex-wrap:wrap;border-bottom:1px solid #000;padding:.85rem 1.5rem;font-size:.8rem;font-weight:650}.flow>span{display:flex;align-items:center;gap:.45rem}.flow b{display:grid;place-items:center;width:23px;height:23px;border:1px solid #000;border-radius:50%;font:700 .7rem var(--mono)}.flow span:first-child b{background:var(--lavender)}.flow .local-tag{margin-left:auto;font-size:.65rem}.workspace{display:grid;grid-template-columns:172px minmax(0,1fr) 264px;min-height:590px}.workspace>*{min-width:0}.panel-heading{display:flex;justify-content:space-between;align-items:center;gap:.5rem;margin-bottom:1rem}.panel-heading .eyebrow{font-size:.63rem}.pages-panel{border-right:1px solid #000;padding:1.2rem .9rem}.count{font:700 .7rem var(--mono);color:#535353}.button,.icon-button{display:inline-flex;align-items:center;justify-content:center;gap:.65rem;min-height:44px;padding:.65rem .85rem;border:1px solid #000;border-radius:.65rem;font-weight:750;font-size:.8rem;line-height:1.3;text-decoration:none;transition:background .15s,box-shadow .15s,transform .15s}.button:hover,.icon-button:hover{background:var(--lavender)}.button:active,.icon-button:active{transform:translateY(2px)}.primary{background:var(--lavender);box-shadow:3px 3px 0 #000}.primary:hover{background:#fff;box-shadow:4px 4px 0 #000}.primary:active{box-shadow:1px 1px 0 #000}.icon-button{width:44px;padding:.4rem;font-size:1.3rem;flex:none}.add-button{width:100%}.add-button span{font-size:1.2rem;line-height:1}.page-hint{margin:1.7rem .4rem;color:#686868;text-align:center;font-size:.8rem}.page-list{list-style:none;margin:1rem 0 0;padding:0;display:grid;gap:1rem}.page-card{position:relative;border:1px solid #b4b4b4;border-radius:.65rem;padding:.4rem;background:#fff;min-width:0}.page-card.selected{border-color:#000;background:var(--lavender);box-shadow:2px 2px 0 #000}.page-select{display:grid;justify-items:center;width:100%;padding:.3rem;border:0;background:transparent}.page-select img{display:block;width:100%;height:110px;object-fit:contain;background:#f1f0f3;border-radius:.25rem}.page-select span{display:block;max-width:100%;font-size:.7rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:.35rem}.page-actions{display:flex;justify-content:center;margin-top:.2rem}.page-actions button{border:0;background:transparent;width:44px;height:44px;font-size:1rem;border-radius:.4rem}.page-actions button:hover{background:#fff}.preview-panel{position:relative;background:#f6f5f8;display:flex;flex-direction:column}.preview-top{display:flex;justify-content:space-between;align-items:center;padding:1.15rem 1.3rem;gap:.5rem;min-height:58px}.preview-top .eyebrow{font-size:.65rem;color:#525057}.image-info{font: .65rem var(--mono);color:#666}.empty-state{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:1.5rem 1rem 2rem;min-height:500px}.document-art{position:relative;width:125px;height:135px;display:grid;place-items:center;margin-bottom:1.4rem;transform:rotate(-7deg)}.document-art::before{content:'';position:absolute;inset:8px 7px 3px 14px;background:var(--lavender);border-radius:14px;transform:rotate(15deg)}.document-art svg{position:relative;width:105px;height:125px;transform:rotate(7deg)}.art-corner{position:absolute;width:18px;height:18px;z-index:1}.tl{top:0;left:0;border-top:2px solid;border-left:2px solid}.tr{top:0;right:0;border-top:2px solid;border-right:2px solid}.bl{bottom:0;left:0;border-bottom:2px solid;border-left:2px solid}.br{bottom:0;right:0;border-bottom:2px solid;border-right:2px solid}.empty-state h2{font:400 clamp(1.4rem,2.1vw,2rem)/1.3 var(--display);letter-spacing:-.05em}.empty-state p{font-size:.9rem;color:#565359;margin:1rem 0 1.3rem}.empty-state .primary{padding:.85rem 1.1rem}.format-note{font-size:.6rem;color:#656168;margin:1rem 0 .2rem}.text-button{border:0;background:transparent;text-decoration:underline;text-underline-offset:3px;min-height:44px;padding:.5rem .15rem;font-size:.78rem;font-weight:650;border-radius:5px}.text-button:hover{color:#5b358a}.adjustments{padding:1.2rem;border-left:1px solid #000;display:flex;flex-direction:column}fieldset{border:0;padding:0;margin:0;min-width:0}fieldset>label,.slider-field label{display:flex;justify-content:space-between;font-size:.83rem;font-weight:650;margin-bottom:.55rem}.mode-grid{display:grid;grid-template-columns:1fr 1fr;gap:.4rem;margin-bottom:1.5rem}.mode-grid button{min-height:44px;padding:.45rem .3rem;border:1px solid #b2aeb8;border-radius:.45rem;font-size:.75rem}.mode-grid [aria-pressed=true]{background:var(--lavender);border-color:#000}.mode-grid button:hover{border-color:#000}.slider-field{margin:1.1rem 0}.slider-field output{font:700 .75rem var(--mono);background:#f1eff5;padding:.12rem .35rem;border-radius:.3rem}input[type=range]{width:100%;margin:0;accent-color:#000;height:32px;cursor:pointer}.range-labels{display:flex;justify-content:space-between;font: .6rem var(--mono);color:#6c6871}.micro{font-size:.7rem;line-height:1.55;color:#625e67;margin:.4rem 0}.full{width:100%}.export-cta{margin-top:auto;padding-top:1.5rem}.export-cta>.eyebrow{display:block;margin-bottom:.7rem;font-size:.63rem}.export-cta .micro{margin-top:.7rem}.privacy{display:flex;align-items:center;gap:.8rem;padding:1rem 1.5rem;border-top:1px solid #000}.privacy svg{flex:none;width:19px;height:19px}.privacy p{font-size:.74rem;color:#535057}.privacy strong{color:#000}footer{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1.2rem 0 1.5rem;font-size:.75rem}footer .eyebrow{font-size:.6rem;color:#666}.notice{display:flex;justify-content:space-between;align-items:center;gap:1rem;border:1px solid #000;border-radius:.7rem;padding:.6rem 1rem;margin-top:1rem;background:var(--lavender);font-size:.85rem}.notice.error{background:#fff0ec}.notice p+p{margin-top:.4rem}.drop-overlay{position:absolute;inset:8px;border:2px dashed #000;border-radius:1rem;background:#dfd0fff2;display:grid;place-items:center;z-index:5;font-weight:800;text-align:center}.editor-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:.4rem;padding:0 1rem .8rem}.zoom-label{display:flex;align-items:center;gap:.4rem;margin-left:auto;font-size:.75rem}.zoom-label select{min-height:44px;padding:.3rem;font-size:.75rem}.stage{overflow:auto;height:430px;padding:30px;display:flex;align-items:safe center;justify-content:safe center;touch-action:pan-x pan-y;scrollbar-gutter:stable;cursor:grab}.stage:active{cursor:grabbing}.canvas-box{position:relative;flex:none;width:100%;line-height:0;box-shadow:0 3px 18px #0002;user-select:none}.canvas-box canvas{display:block;width:100%;height:auto}.canvas-box.crop{box-shadow:none}#crop-overlay{position:absolute;inset:0}#crop-mask{position:absolute;inset:0;width:100%;height:100%;overflow:visible}#mask-path{fill:#0009}#crop-polygon{stroke:#dfd0ff;stroke-width:.65;fill:none;vector-effect:non-scaling-stroke}.corner{position:absolute;width:44px;height:44px;border-radius:50%;transform:translate(-50%,-50%);border:2px solid #000;background:var(--lavender);box-shadow:0 1px 6px #0005;font:700 .8rem var(--mono);touch-action:none;cursor:move}.corner:focus-visible{outline-color:#fff;box-shadow:0 0 0 6px #000}.crop-toolbar{display:flex;align-items:center;gap:.4rem;padding:0 1rem;font-size:.75rem}.crop-toolbar select{max-width:160px}.crop-toolbar .text-button{margin-left:auto}.crop-actions{padding:.6rem 1rem;border-top:1px solid #d1ced6}.crop-actions p{font-size:.7rem;color:#625e67;margin-bottom:.6rem}.crop-actions>div{display:flex;justify-content:flex-end;gap:.5rem;flex-wrap:wrap}.preview-bottom{display:flex;justify-content:space-between;align-items:center;gap:.5rem;padding:.5rem 1rem;font: .7rem var(--mono);border-top:1px solid #d1ced6}.preview-bottom .text-button{font-family:system-ui}.compare-active .canvas-box{outline:2px solid #000}select,input:not([type=range]){background:#fff;border:1px solid #8a858e;border-radius:.5rem;min-height:44px;padding:.5rem .65rem;max-width:100%}dialog{border:1px solid #000;border-radius:1.3rem;padding:1.6rem;width:min(480px,calc(100% - 2rem));max-height:calc(100dvh - 2rem);overflow:auto;box-shadow:6px 6px 0 #000}dialog::backdrop{background:#0007}.dialog-heading{display:flex;gap:1rem;align-items:center;margin-bottom:.5rem}.dialog-heading h2{font:400 1.3rem/1.4 var(--display);letter-spacing:-.04em}.dialog-heading .icon-button{margin-left:auto}dialog p{font-size:.85rem}dialog label{display:block;margin:1rem 0 .3rem;font-size:.83rem;font-weight:650}dialog input,dialog select{width:100%}dialog .form-pair{display:grid;grid-template-columns:1fr 1fr;gap:.7rem}dialog .micro{font-size:.75rem}#export-status{margin:.8rem 0}#export-status.error{color:#9a2100}progress{width:100%;accent-color:#000;margin-top:1rem}
@media(min-width:1400px){.stage{height:500px}.workspace{min-height:660px}.pages-panel{padding:1.4rem 1.1rem}.workspace{grid-template-columns:180px minmax(0,1fr) 280px}}
@media(max-width:1050px){.wrap{width:calc(100% - 2rem)}.workspace{grid-template-columns:140px minmax(0,1fr) 230px}.adjustments{padding:1rem}.flow{gap:1rem}.flow .local-tag{display:none}.stage{height:400px;padding:26px}.app-header{padding:1.5rem}.preview-top{flex-wrap:wrap}.page-actions{flex-wrap:wrap}.page-actions button{width:34px;min-height:44px}.page-select img{height:90px}}
@media(max-width:800px){.workspace{grid-template-columns:130px minmax(0,1fr)}.adjustments{grid-column:1/-1;border-left:0;border-top:1px solid #000;display:block}.adjustments fieldset{display:grid;grid-template-columns:1fr 1fr;column-gap:1.5rem;align-items:start}.adjustments fieldset>label,.adjustments fieldset>.mode-grid{grid-column:1/-1}.adjustments fieldset>label{margin-top:.5rem}.mode-grid{grid-template-columns:repeat(4,1fr);margin-bottom:0}.adjustments fieldset>.micro{grid-column:1/-1}.export-cta{border-top:1px solid #ddd;margin-top:1rem;padding-top:1rem}.empty-state{min-height:440px}.brand-mark{width:60px;height:60px}.stage{height:420px}.pages-panel{grid-row:1}.panel-heading .eyebrow{font-size:.7rem}}
@media(max-width:520px){.wrap{width:calc(100% - 1.25rem)}.pill-nav{margin:.8rem auto}.pill-nav a{font-size:.7rem;padding:.4rem .6rem;gap:.2rem}.pill-nav a span{display:none}.app-shell{border-radius:1.1rem}.app-header{padding:1.15rem;align-items:flex-start}.brand-mark{width:42px;height:50px;margin:1.7rem 0 0}h1{font-size:1.65rem;max-width:220px}.app-header p{font-size:.8rem}.back-link{font-size:.6rem}.flow{display:grid;grid-template-columns:1fr 1fr;gap:.5rem;padding:.8rem 1rem;font-size:.7rem}.workspace{display:flex;flex-direction:column}.pages-panel{border:0;border-bottom:1px solid #000;padding:.8rem 1rem}.panel-heading{margin-bottom:.7rem}.pages-panel .panel-heading{display:inline-flex;margin:0 .7rem 0 0;gap:.5rem}.pages-panel .add-button{width:auto;float:right}.page-list{display:flex;overflow-x:auto;gap:.6rem;padding:4px 3px 6px;margin-top:.7rem;clear:both}.page-list:empty{display:none}.page-card{width:118px;flex:none}.page-select img{height:80px}.page-actions button{width:34px}.page-hint{text-align:left;clear:both;margin:.8rem 0 0;padding-top:.5rem;font-size:.75rem}.empty-state{min-height:420px;padding-top:1rem}.preview-top{padding:.8rem 1rem}.preview-top .eyebrow{font-size:.6rem}.empty-state h2{font-size:1.5rem}.stage{height:370px;padding:26px}.editor-toolbar{padding:0 .6rem .5rem;gap:.3rem}.editor-toolbar .button{padding:.5rem;font-size:.75rem}.editor-toolbar .icon-button{width:44px}.zoom-label{gap:.2rem;margin-left:0}.zoom-label select{width:85px}.privacy{padding:.9rem 1rem;align-items:flex-start}.privacy p{font-size:.7rem}.privacy strong{display:block}.adjustments fieldset{column-gap:1rem}.adjustments fieldset>.text-button{font-size:.7rem}.mode-grid{gap:.3rem}.mode-grid button{font-size:.65rem;padding:.3rem}.micro{font-size:.7rem}footer{align-items:flex-start;font-size:.65rem}footer .eyebrow{font-size:.5rem;max-width:120px;text-align:right}.crop-toolbar{flex-wrap:wrap}.crop-toolbar select{max-width:145px}.crop-toolbar .text-button{margin-left:0}.crop-actions>div .button{font-size:.75rem}.preview-bottom{font-size:.65rem}.notice{padding:.6rem}.dialog-heading h2{font-size:1.1rem}}
.crop-status{font-size:.8rem;line-height:1.5;margin:0 1rem .7rem;padding:.6rem .75rem;border:1px solid #c4b8d8;border-radius:.5rem;background:#eee6fa}.crop-toolbar{flex-wrap:wrap}.crop-toolbar .button{font-size:.75rem;padding:.4rem .6rem}.empty-state .auto-hint{font-size:.75rem;margin:.4rem 0;color:#51495d}
#crop-mask path{stroke:none}.page-actions{flex-wrap:wrap}.page-actions button{width:44px;min-width:44px;min-height:44px}.page-select{min-height:44px}.pages-panel .count{font-size:.7rem}
@media(max-width:520px){.page-card{width:148px}.mode-grid button{font-size:.75rem}.page-actions button{width:44px}.zoom-label{margin-left:0}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}}
