:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,sans-serif;color:#19332f;background:#f4f7f6;font-size:16px}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{min-height:46px;border:1px solid #cbd8d3;border-radius:10px;background:white;color:#19332f;padding:11px 17px;cursor:pointer;font-weight:600}button:hover{background:#eaf2ee}button:focus-visible,input:focus-visible,a:focus-visible{outline:3px solid #d59c38;outline-offset:3px}button:disabled{opacity:.45;cursor:default}.primary{background:#164f45;border-color:#164f45;color:white}.primary:hover{background:#103c34}header{height:88px;background:white;border-bottom:1px solid #dce5e1;display:flex;align-items:center;justify-content:space-between;padding:0 max(24px,calc((100vw - 1200px)/2))}.brand{display:flex;gap:10px;align-items:center;color:#173f37;text-decoration:none;font-size:30px;font-weight:750;letter-spacing:-1px}.mark{font-size:30px;background:#ddefe6;padding:0 8px;border-radius:9px}.brand-sub{font-size:11px;letter-spacing:2px;margin-left:8px;font-weight:600}.privacy{font-size:14px;color:#537067}main{max-width:1200px;margin:0 auto;padding:45px 24px}.heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:35px}.eyebrow{font-size:12px;font-weight:750;letter-spacing:2px;color:#56736b}h1{font-family:Georgia,serif;font-weight:400;font-size:clamp(30px,4vw,48px);letter-spacing:-1.5px;margin:12px 0}p{line-height:1.6;color:#576c65}.heading p{margin:0}.count{display:flex;flex-direction:column;align-items:center;border-left:1px solid #ccd9d2;padding:8px 30px}.count strong{font-size:36px;font-weight:500}.count span{font-size:14px;color:#62766e}.workspace{display:grid;grid-template-columns:290px 1fr;gap:35px}aside{display:flex;flex-direction:column;gap:12px}aside label{font-size:14px;font-weight:650}input:not([type=checkbox]):not([type=range]){width:100%;padding:13px;border:1px solid #cbd8d3;border-radius:8px;background:white;color:#19332f}input[hidden]{display:none!important}.tip{margin:14px 0 0;padding:20px;background:#e7eeea;border-radius:12px}.tip strong{font-size:14px}.tip p,.export p,.storage{font-size:14px;margin:8px 0 0}.export{border-top:1px solid #d5dfda;margin-top:12px;padding-top:22px}.export button{width:100%;display:flex;justify-content:space-between}.storage{color:#61776d}.section-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;gap:10px}.section-top h2{font-size:18px;margin:0}.section-top span{font-size:13px;color:#61766e}.empty{border:1.5px dashed #bdcdc4;background:#fff9;min-height:415px;border-radius:18px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:32px}.empty-icon{font-size:35px;background:#e8f0eb;color:#47816a;width:68px;height:68px;border-radius:20px;display:grid;place-items:center}.empty h3{font-size:21px;margin:24px 0 0}.empty p{max-width:290px;margin:10px 0 24px}#pages{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.page{background:white;border:1px solid #dce5e0;border-radius:12px;overflow:hidden}.preview{display:block;width:100%;padding:12px;border:0;border-radius:0;background:#e7ede9}.preview img{width:100%;height:205px;object-fit:contain;display:block}.page-footer{padding:12px}.page-label{display:flex;justify-content:space-between;align-items:center;font-size:14px;font-weight:650;margin-bottom:10px}.page-label span{font-size:12px;color:#658073;font-weight:400}.actions{display:flex;gap:5px}.actions button{padding:5px 8px;min-height:36px;flex:1;font-size:14px}.actions .delete{color:#a34339}#notice{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#173f37;color:white;padding:14px 22px;border-radius:12px;max-width:90vw;z-index:10;display:none;box-shadow:0 5px 30px #0003}dialog{width:min(700px,96vw);max-height:94dvh;overflow:auto;border:0;border-radius:18px;padding:24px;color:#19332f}dialog::backdrop{background:#0a221ed9}.dialog-head,.dialog-bottom,.range-label{display:flex;justify-content:space-between;align-items:center;gap:12px}.dialog-head h2{margin:7px 0 0;font-size:24px}.dialog-head button{border:0;font-size:20px}.instruction{font-size:14px;margin:14px 0}.canvas-wrap{background:#dde6e0;display:flex;justify-content:center;border-radius:8px;overflow:hidden}canvas{display:block;max-width:100%;max-height:48dvh;object-fit:contain;touch-action:none}.tools{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.tools button{font-size:14px;padding:8px 10px}.range-label{font-size:14px;margin-top:20px}input[type=range]{width:100%;accent-color:#164f45;margin:12px 0}.check{display:flex;align-items:center;gap:8px;font-size:14px}.check input{width:20px;height:20px;accent-color:#164f45}.dialog-bottom{justify-content:flex-end;margin-top:20px;border-top:1px solid #d5dfda;padding-top:18px}@media(max-width:850px){#pages{grid-template-columns:repeat(2,minmax(0,1fr))}.workspace{gap:24px;grid-template-columns:245px 1fr}}@media(max-width:620px){header{height:70px;padding:0 18px}.brand{font-size:25px}.brand-sub{display:none}.privacy{font-size:12px}main{padding:28px 18px}.heading{margin-bottom:25px}.heading p{font-size:14px}.count{padding:0 0 0 17px}.count strong{font-size:28px}.count span{font-size:12px}.workspace{grid-template-columns:1fr;gap:26px}aside{display:grid;grid-template-columns:1fr 1fr}aside label,aside>input,.tip,.export,.storage{grid-column:1/-1}.tip{margin:0;padding:14px}.tip p{margin-top:4px}.export{margin-top:0;padding-top:14px}.storage{margin:0}.empty{min-height:280px}.preview img{height:185px}dialog{padding:18px}.section-top span{font-size:12px}}

#share{margin-top:10px}#shareFile{width:100%}.canvas-wrap{padding:12px}canvas{cursor:crosshair}#shareDialog{max-width:430px}#shareStatus{overflow-wrap:anywhere}

#finish{margin-bottom:10px}.dialog-bottom{flex-wrap:wrap}.dialog-bottom button{flex:1;white-space:nowrap}#finishDialog{max-width:440px}#finishDialog>button{display:block;width:100%;margin-top:12px}#finishSummary{font-weight:650;overflow-wrap:anywhere}#newDoc{border-color:transparent;color:#71685a}
#emptyImport{margin-top:10px}#cameraDialog{width:min(680px,100vw);background:#f4f7f6}#cameraStatus{font-size:15px;line-height:1.5;min-height:2em}.camera-view{background:#12231e;border-radius:12px;overflow:hidden;min-height:180px;display:flex;align-items:center;justify-content:center}.camera-view video{width:100%;max-height:52dvh;object-fit:contain;display:block}.camera-actions{display:flex;gap:12px;margin-top:16px}.camera-actions button{flex:1;min-height:55px}.camera-help{font-size:14px;margin:12px 0}#cameraRecovery:not([hidden]){display:flex;flex-wrap:wrap;gap:10px;margin-top:15px}@media(max-width:620px){#cameraDialog{margin:0;width:100vw;height:100dvh;max-height:100dvh;max-width:100vw;border-radius:0;padding:18px}.camera-view video{max-height:49dvh}.camera-actions{position:sticky;bottom:0;background:#f4f7f6;padding:12px 0}.camera-actions button{font-size:15px;padding:10px}}
#editor .canvas-wrap{background:#34453e;padding:16px;min-height:220px}#editor canvas{max-height:62dvh;box-shadow:0 5px 18px #0005;animation:page-reveal .25s ease-out}#crop[hidden]{display:none}#compare[aria-pressed=true]{background:#d8e9e0;border-color:#164f45}#editStatus{background:#e5efe9;border-radius:8px;padding:12px;margin:14px 0;color:#284c3e}#shadow{accent-color:#164f45}@keyframes page-reveal{from{opacity:.6;transform:scale(.96)}to{opacity:1;transform:scale(1)}}@media(prefers-reduced-motion:reduce){#editor canvas{animation:none}}@media(max-width:620px){#editor{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;border-radius:0}#editor .canvas-wrap{padding:12px}#editor canvas{max-height:60dvh}.dialog-bottom{position:sticky;bottom:-18px;background:#fff;padding:14px 0 20px;z-index:1}}
