:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#202c43;background:#f7f8fc;font-synthesis:none;--blue:#2458dc;--muted:#7b8497;--line:#e5e8f0;--light:#eef3ff;--green:#147a64}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select,summary{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.43}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #94b1ff;outline-offset:3px}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.svg-library{position:absolute;width:0;height:0;overflow:hidden}[hidden]{display:none!important}.topbar{height:82px;max-width:1180px;margin:auto;padding:0 32px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:11px;font-size:18px;font-weight:750;letter-spacing:-.6px}.brand-icon{background:var(--blue);color:white;border-radius:11px;padding:10px;display:flex;box-shadow:0 4px 9px #2458dc21}.brand-icon svg{width:23px;height:23px}.brand small{display:block;font-size:9px;letter-spacing:2px;color:var(--muted);margin-top:3px;font-weight:650}.header-actions{display:flex;align-items:center;gap:23px}.local-pill{display:flex;align-items:center;gap:7px;font-size:11px;color:#66728a}.local-pill>span:first-child{width:6px;height:6px;background:#42a78b;border-radius:50%}.text-button{background:none;border:0;padding:6px 0;color:#52617b;font-size:12px}.round-button{width:29px;height:29px;border:1px solid #dce1ec;background:#fff;border-radius:50%;font-size:14px;color:#687690}main{max-width:1116px;margin:0 auto;padding:39px 32px 0}.intro{display:flex;justify-content:space-between;align-items:center;margin-bottom:29px}.eyebrow{font-size:10px;letter-spacing:1.9px;font-weight:750;color:var(--blue);margin:0 0 11px}h1{font-size:34px;letter-spacing:-1.3px;line-height:1.18;margin:0 0 11px;font-weight:720}.intro-copy{font-size:13px;color:#748097;margin:0;line-height:1.6}.privacy-mark{display:flex;gap:11px;align-items:center;color:#8b95a8;font-size:11px;line-height:1.6}.privacy-mark svg{width:30px;height:30px;color:#8394b1}.tool-tabs{display:flex;gap:6px;background:#ebeff7;padding:5px;border-radius:11px;width:fit-content;margin-bottom:18px}.tool-tab{border:0;background:none;display:flex;align-items:center;gap:8px;padding:11px 21px;border-radius:8px;color:#73809a;font-size:12px;font-weight:650;white-space:nowrap}.tool-tab svg{width:17px;height:17px}.tool-tab.active{color:var(--blue);background:#fff;box-shadow:0 2px 6px #263c6720}.workspace{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:19px;align-items:stretch}.file-panel,.settings-panel{background:#fff;border:1px solid var(--line);border-radius:15px;padding:22px;min-width:0;box-shadow:0 3px 14px #25395d03}.panel-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;gap:10px}.step-label{display:flex;align-items:center;gap:9px}.step{display:grid;place-items:center;width:23px;height:23px;background:var(--light);color:var(--blue);font-size:11px;border-radius:7px;font-weight:700}h2{font-size:14px;font-weight:680;margin:0;letter-spacing:-.2px}.subtle{font-size:9px;color:#9aa4b5;letter-spacing:.4px;white-space:nowrap}.dropzone{min-height:352px;border:1.5px dashed #d9e0f0;border-radius:11px;display:flex;align-items:center;flex-direction:column;justify-content:center;background:linear-gradient(135deg,#fafbfe,#f6f8fe);padding:20px;transition:background .15s,border-color .15s}.dropzone.dragging{background:#e9efff;border-color:var(--blue)}.upload-art{width:103px;height:79px;position:relative;margin:8px 0 22px}.paper{position:absolute;width:68px;height:73px;background:white;border:1px solid #d4dff9;border-radius:10px;box-shadow:0 5px 10px #1e3e7910}.paper.back{left:8px;top:0;transform:rotate(-13deg);background:#e8efff}.paper.front{left:33px;top:7px;transform:rotate(9deg);display:grid;place-items:center}.paper.front>svg{width:35px;height:35px;color:#829fe9;stroke-width:1.1}.tiny-check{position:absolute;bottom:-5px;right:-8px;background:#42aa8d;color:white;font-size:12px;border:3px solid #f8faff;border-radius:50%;width:26px;height:26px;display:grid;place-items:center}.dropzone h3{font-size:16px;margin:0 0 8px;letter-spacing:-.3px}.dropzone>p{font-size:11px;color:#8792a8;margin:0 0 22px;text-align:center;line-height:1.6}.primary,.secondary{border:0;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:12px 20px;font-size:12px;font-weight:650;transition:background .15s,transform .15s}.primary{background:var(--blue);color:#fff;box-shadow:0 4px 8px #2458dc16}.primary:hover:not(:disabled){background:#1b48be;transform:translateY(-1px)}.primary svg{width:17px;height:17px}.secondary{background:#f2f5fc;color:#52688f;border:1px solid #e5eaf5}.upload-note{font-size:9px!important;margin:12px 0 16px!important;letter-spacing:.1px}.sample-link{font-size:10px;color:#7c8da9;background:none;border:0;text-decoration:underline;text-decoration-color:#bac7df;text-underline-offset:4px}.field-label{display:block;font-size:11px;font-weight:650;color:#5b6882;margin-bottom:10px}.preset-row{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin-bottom:10px}.preset-row button{padding:9px 3px;border:1px solid #e2e7f2;background:#fff;color:#697a96;border-radius:7px;font-size:11px}.preset-row button.selected{border-color:#7599ee;background:#f0f4ff;color:var(--blue);font-weight:650}.input-unit{display:flex;align-items:center;border:1px solid #dfe5f0;border-radius:7px;background:#fff;overflow:hidden;min-width:0}.input-unit input{border:0;outline:none;padding:10px 12px;width:100%;min-width:0;font-size:12px;color:#334763;background:none}.input-unit:focus-within{box-shadow:0 0 0 2px #adc3ff}.input-unit span{font-size:10px;color:#8b96ab;white-space:nowrap;padding-right:13px}.helper{font-size:10px;color:#8a95aa;line-height:1.6;margin:8px 0 16px}.dimensions-heading{display:flex;align-items:center;justify-content:space-between;margin-top:19px;margin-bottom:9px}.dimensions-heading .field-label{margin:0}.checkbox-label{font-size:10px;display:flex;align-items:center;gap:6px;color:#7c89a1}.checkbox-label input{accent-color:var(--blue);width:13px;height:13px;margin:0}.dimension-row{display:flex;align-items:center;gap:9px}.times{color:#a6b0c3;font-size:13px}input:disabled{background:#f8f9fc;color:#9ba5b9}.dimension-row .input-unit{flex:1}.dimension-row .input-unit span{padding-right:8px}.dimension-row input{padding-left:10px}.output-format{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #eef1f7;padding-top:16px;margin-top:17px;font-size:11px;color:#74819a}.format-tag{font-size:9px;font-weight:650;background:#f0f3f9;color:#8290a7;padding:4px 8px;border-radius:4px}.full{width:100%}.process-button{margin-top:17px;justify-content:space-between;padding:13px 15px}.centered{text-align:center;margin:10px 0 0;font-size:9px}details{font-size:10px;color:#7e8da8}summary{cursor:pointer}.crop-settings{display:grid;grid-template-columns:1fr;gap:8px;padding-top:12px}.crop-settings input[type=range]{width:100%;accent-color:var(--blue)}select,.plain-input{width:100%;background:#fff;border:1px solid #dfe5f0;padding:10px;border-radius:7px;color:#566882;font-size:12px}.top-space{margin-top:22px}.pdf-note{padding:20px;background:#f5f8ff;display:flex;gap:12px;align-items:center;border-radius:9px;margin:23px 0;color:#8ba1cb}.pdf-note p{margin:0;font-size:12px;color:#7586a6;line-height:1.7}.preview-toolbar{display:flex;align-items:center;justify-content:space-between;gap:5px;margin-bottom:10px}.preview-toolbar>span{font-size:11px;max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#6a7994}.preview-toolbar>div{display:flex;gap:6px}.small-button{border:1px solid var(--line);background:#fff;padding:6px 9px;border-radius:6px;color:#6d7a95;font-size:10px}.image-stage{height:292px;background-color:#f3f5f9;background-image:linear-gradient(45deg,#e9edf4 25%,transparent 25%),linear-gradient(-45deg,#e9edf4 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e9edf4 75%),linear-gradient(-45deg,transparent 75%,#e9edf4 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0;display:flex;align-items:center;justify-content:center;border-radius:10px;position:relative;overflow:hidden;padding:16px}.image-stage canvas{max-width:100%;max-height:100%;object-fit:contain;box-shadow:0 5px 15px #20325320}#preview-tag{position:absolute;top:9px;left:9px;background:#fffE;color:#70809a;padding:5px 8px;border-radius:5px;font-size:9px}.file-meta{display:flex;justify-content:space-between;font-size:10px;color:#8b98ad;margin-top:13px}.result-panel{background:#f3fbf8;border:1px solid #cde9de;border-radius:13px;margin-top:18px;padding:20px;display:flex;align-items:center;gap:20px;flex-wrap:wrap}.result-heading{display:flex;align-items:center;gap:10px}.success-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#deefe7;color:var(--green)}.result-heading h2{color:#1f6d59;font-size:13px}.result-heading p{margin:5px 0 0;color:#739788;font-size:10px}.result-numbers{display:flex;gap:22px;align-items:center;margin-left:auto}.result-numbers small{font-size:8px;letter-spacing:.8px;color:#7f9f90;display:block;margin-bottom:4px}.result-numbers strong{font-size:13px;font-weight:650;color:#3f6c5b}.limit-badge{background:#e4f3eb;color:#3e8a70;font-size:9px;border-radius:5px;padding:5px 8px}.result-buttons{display:flex;gap:8px}.result-buttons .primary{background:#21856b}.result-buttons .secondary{background:white;color:#628176;border-color:#dceae4}.reassurance{display:grid;grid-template-columns:repeat(3,1fr);gap:30px;padding:27px 5px 30px}.reassurance>div{display:flex;align-items:flex-start;gap:12px}.mini-number{font-size:10px;color:#b5bfd1;margin-top:2px;border:1px solid #e2e7f0;padding:3px;border-radius:4px;line-height:12px}.reassurance p{margin:0}.reassurance strong{display:block;font-size:11px;font-weight:600;color:#6c7992;margin-bottom:5px}.reassurance p span{display:block;font-size:10px;color:#9ca6b8}footer{max-width:1052px;margin:auto;border-top:1px solid var(--line);padding:18px 0 24px;display:flex;align-items:center;justify-content:space-between;font-size:9px;color:#a2acbd}footer>div{display:flex;align-items:center;gap:18px}footer .text-button,footer a{font-size:9px;color:#8693a9}.version{color:#b8c0ce}.message{margin-top:14px;padding:13px 16px;border-radius:8px;font-size:12px;line-height:1.7;background:#eef4ff;color:#315c9e;border:1px solid #d4e2fa}.message.error{background:#fff3f0;border-color:#f5d7ce;color:#9d4b3b}.pdf-item{display:flex;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}.pdf-item:last-child{margin-bottom:15px}.pdf-item img{width:47px;height:58px;object-fit:contain;background:#f1f4fa;border-radius:5px}.pdf-item-info{flex:1;min-width:0}.pdf-item-info strong{font-size:11px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:550}.pdf-item-info span{font-size:9px;color:#94a0b5}.pdf-actions{display:flex;gap:4px}.pdf-actions button{border:1px solid var(--line);background:white;border-radius:5px;padding:5px 7px;font-size:11px;color:#7383a0}dialog{border:1px solid var(--line);border-radius:17px;padding:32px;max-width:420px;width:calc(100% - 32px);box-shadow:0 20px 100px #13224733;color:#33445f}dialog::backdrop{background:#1a294a65;backdrop-filter:blur(3px)}dialog h2{font-size:23px;margin-bottom:20px}dialog ol{padding-left:18px;font-size:12px;line-height:1.9}dialog li{margin-bottom:12px}.dialog-close{position:absolute;right:14px;top:12px;border:0;background:none;font-size:23px;color:#9aa6ba}.dialog-done{margin-top:10px}body.busy button:not(#help){pointer-events:none}body.busy .process-button{opacity:.6}.privacy-page{max-width:720px;margin:50px auto;padding:0 24px;font-size:14px;line-height:1.8}.privacy-page h1{font-size:30px}.privacy-page h2{margin-top:28px;font-size:18px}.privacy-page p,.privacy-page li{color:#6a7890}
@media(min-width:1400px){main{padding-top:55px}.intro{margin-bottom:34px}.dropzone{min-height:375px}.image-stage{height:315px}}
@media(max-width:800px){.topbar{height:71px;padding:0 22px}main{padding:28px 22px 0}h1{font-size:28px}.privacy-mark{display:none}.workspace{grid-template-columns:1.15fr 1fr;gap:12px}.file-panel,.settings-panel{padding:17px}.dropzone{min-height:350px;padding:12px}.dropzone h3{font-size:14px}.dropzone>p{font-size:10px}.tool-tab{padding:10px 16px}.result-numbers{margin-left:0}.reassurance{gap:12px}.reassurance>div{gap:7px}.reassurance p span{line-height:1.6}footer{margin:0 22px}}
@media(max-width:580px){.topbar{padding:0 18px;height:65px}.brand{font-size:16px}.brand-icon{padding:8px;border-radius:9px}.brand-icon svg{width:20px;height:20px}.brand small{font-size:7px}.header-actions{gap:14px}.local-pill{display:none}main{padding:27px 16px 0}.intro{margin-bottom:22px}h1{font-size:27px;max-width:320px;line-height:1.2;letter-spacing:-1px}.eyebrow{font-size:8px}.intro-copy{font-size:11px;max-width:310px}.tool-tabs{width:100%;gap:3px;margin-bottom:14px;padding:4px}.tool-tab{flex:1;justify-content:center;padding:10px 5px;font-size:10px;gap:5px}.tool-tab svg{width:15px;height:15px}.workspace{grid-template-columns:1fr;gap:13px}.file-panel,.settings-panel{padding:17px;border-radius:12px}.panel-heading{margin-bottom:15px}.dropzone{min-height:274px;padding:15px}.upload-art{margin:0 0 19px;width:90px;height:66px;transform:scale(.85)}.dropzone>p{font-size:10px;margin-bottom:16px}.dropzone h3{font-size:15px}.sample-link{font-size:10px}.image-stage{height:260px}.settings-panel .panel-heading{margin-bottom:19px}.dimensions-heading{margin-top:16px}.helper{margin-bottom:12px}.output-format{margin-top:14px;padding-top:13px}.process-button{margin-top:15px;padding:13px 15px}.preset-row button{padding:10px}.result-panel{padding:18px;gap:17px}.result-numbers{width:100%;justify-content:space-between}.result-buttons{width:100%}.result-buttons>button{flex:1}.reassurance{grid-template-columns:1fr;gap:17px;padding:25px 6px}.reassurance strong{font-size:11px}.reassurance p span{font-size:10px}.reassurance>div{gap:12px}.mini-number{padding:4px}footer{margin:0 18px;padding-bottom:22px;gap:12px;flex-wrap:wrap;font-size:8px}footer>div{gap:14px}.subtle{font-size:8px}.preview-toolbar>span{max-width:145px}.privacy-page{margin-top:30px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

@media(max-width:580px){body.has-file .intro{display:none}body.has-file main{padding-top:18px}body.has-file .image-stage{height:210px}.reassurance{padding:22px 6px}.helper{font-size:11px}.field-label{font-size:12px}.input-unit input{font-size:14px}.primary,.secondary{min-height:43px}.tool-tab{min-height:40px}.small-button{min-height:32px}}
/* v0.2: task-first, compact controls; supporting content is in Help. */
.topbar{height:70px}main{padding:27px 32px 26px}.intro{margin-bottom:20px}h1{font-size:30px;margin-bottom:7px}.intro-copy{font-size:12px;color:#6c7990}.tool-tabs{width:100%;margin-bottom:11px}.tool-tab{flex:1;justify-content:center;padding:11px 9px;font-size:11px}.task-strip{display:flex;gap:7px;margin-bottom:18px;overflow-x:auto;padding-bottom:3px}.task-strip button{border:1px solid #dce4f2;background:white;border-radius:20px;color:#61718e;padding:7px 12px;font-size:10px;white-space:nowrap}.task-strip button:hover{border-color:#8ca9ee;color:var(--blue)}.workspace{align-items:stretch}.file-panel,.settings-panel{border-radius:13px;padding:20px}.panel-heading{margin-bottom:16px}.dropzone{min-height:309px}.upload-art{margin-bottom:17px}.saved-settings{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:16px}.saved-settings .text-button{font-size:10px}.unit-controls{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:11px}.unit-controls label{font-size:10px;color:#738099}.unit-controls select,.unit-controls input{margin-top:6px;padding:9px 10px;font-size:11px}.compare-row{display:flex;gap:7px;margin-top:10px}.small-button.selected{color:var(--blue);border-color:#8faced;background:#f0f4ff}.result-summary{width:100%;margin:0;font-size:11px;line-height:1.5;color:#587d70}.result-buttons{margin-left:auto}.helper{color:#7a869b}.settings-panel .helper{font-size:10px}.result-panel{gap:16px}.web-ad-placement{margin:45px 0 20px;padding:22px 0;border-top:1px solid var(--line);text-align:center;min-height:130px}.web-ad-placement>span{display:block;font-size:10px;color:#8490a5;margin-bottom:18px}#sheet-preview{border:1px solid var(--line);padding:12px;margin-top:13px;border-radius:8px;text-align:center;background:#f6f8fc}#sheet-canvas{max-width:100%;max-height:190px;box-shadow:0 2px 9px #233a5415}#sheet-preview .helper{margin:7px 0 0}body[data-tool=sheet] .image-stage{height:200px}.guide-content{max-width:760px;padding:20px 0 35px}.guide-content h2{font-size:18px;margin-top:24px}.guide-content p,.guide-content li{font-size:14px;line-height:1.8;color:#697990}.guide-content li{margin-bottom:9px}.guide-content ol{padding-left:21px}.guide-content .primary{margin:8px 0}.guide-content a:not(.primary){color:var(--blue)}.guide-links{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:25px}.guide-links a{border:1px solid var(--line);background:white;padding:16px;border-radius:10px;font-size:13px}.guide-content details{border-bottom:1px solid var(--line);padding:12px 0}.guide-content summary{font-size:13px}.guide-content .specs{padding:16px;border:1px solid var(--line);border-radius:9px;background:white}
@media(min-width:1400px){main{padding-top:32px}.intro{margin-bottom:20px}.dropzone{min-height:320px}}
@media(max-width:580px){.topbar{height:64px}main{padding:22px 16px 24px}h1{font-size:26px}.intro-copy{font-size:11px}.intro{margin-bottom:17px}.tool-tabs{display:grid;grid-template-columns:repeat(5,1fr);gap:1px;padding:4px}.tool-tab{flex-direction:column;gap:5px;font-size:9px;padding:9px 3px;min-height:49px}.task-strip button{padding:7px 10px}.file-panel,.settings-panel{padding:16px}.dropzone{min-height:235px}.upload-art{transform:scale(.73);height:58px;margin:0 0 12px}.dropzone>p{margin-bottom:14px}.dropzone h3{font-size:14px}.primary,.secondary{min-height:44px}.settings-panel .helper{font-size:11px}.unit-controls select,.unit-controls input{font-size:13px;min-height:38px}.file-meta{gap:8px;flex-wrap:wrap}.result-buttons{margin:0}.has-file .task-strip{display:none}footer>div{flex-wrap:wrap;gap:12px}.guide-links{grid-template-columns:1fr}.guide-content p,.guide-content li{font-size:13px}}
