:root{--ink:#203b31;--green:#28684e;--muted:#6e7971;--line:#dce1d8;--cream:#f5f4ee}*{box-sizing:border-box}body{margin:0;background:var(--cream);color:var(--ink);font-family:system-ui,-apple-system,"Segoe UI",sans-serif}button,input,select{font:inherit}button,a,input,select{outline-offset:4px}button{cursor:pointer}header{max-width:1240px;margin:auto;padding:28px 30px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}a{color:inherit}.brand{text-decoration:none;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;font-size:25px;font-weight:800;letter-spacing:-1px;display:flex;align-items:center;gap:9px}.brand-icon{display:grid;place-items:center;width:33px;height:33px;background:var(--ink);border-radius:9px;color:white}.brand-dot{color:#8f9c6c;margin-left:-9px}.header-note{font-size:12px;display:flex;gap:8px;align-items:center}.dot{width:6px;height:6px;background:#759966;border-radius:50%}main{max-width:1120px;margin:auto;padding:0 24px}.intro{text-align:center;padding:56px 0 37px}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:700;color:var(--green);margin-bottom:18px}h1{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;font-size:clamp(42px,6vw,66px);line-height:1.1;letter-spacing:-3px;margin:0;font-weight:800}h1 span{color:#809175}.intro p{color:var(--muted);font-size:15px;line-height:1.7;margin:20px 0}.trust{display:flex;gap:23px;justify-content:center;font-size:11px;color:#596c5c}.workspace{display:grid;grid-template-columns:1fr 1fr;background:white;border:1px solid var(--line);border-radius:20px;overflow:hidden;box-shadow:0 18px 50px #203b3108}.editor,.preview{padding:30px}.preview{background:#eef1e9;border-left:1px solid var(--line)}.step-label{font-size:10px;font-weight:700;letter-spacing:1.4px;display:flex;align-items:center;gap:10px}.step-label>span{color:#8b9a84;border:1px solid #c9d3c3;padding:4px 6px;border-radius:5px;letter-spacing:0}.tabs{display:flex;background:#f1f3ee;padding:4px;border-radius:9px;margin:20px 0 16px}.tabs button{width:50%;padding:10px;border:0;border-radius:6px;background:transparent;color:#778076;font-size:12px;font-weight:600}.tabs .active{background:white;color:var(--ink);box-shadow:0 2px 5px #0000000a}.dropzone{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:7px;border:1.5px dashed #bdcbbb;border-radius:12px;background:#fbfcf9;padding:24px 12px;cursor:pointer;text-align:center;overflow-wrap:anywhere}.dropzone:hover,.dropzone.drag{border-color:var(--green);background:#eef6ec}.upload-icon{background:#eaf0e5;border-radius:10px;padding:1px 12px;font-size:30px;margin-bottom:4px}.dropzone strong{font-size:13px}.dropzone span:not(.upload-icon){font-size:12px;color:var(--muted)}.dropzone small{font-size:10px;color:#879084;margin-top:8px}.dropzone input{position:absolute;width:1px;height:1px;opacity:0}.dropzone:focus-within{outline:2px solid var(--green)}.section-heading{font-size:12px;font-weight:700;display:flex;justify-content:space-between;margin:21px 0 10px}.section-heading span{font-weight:400;font-size:10px;color:var(--muted)}.two-fields{display:flex;align-items:center;gap:10px}.two-fields label{flex:1;font-size:10px;color:var(--muted)}input[type=number],select{border:1px solid var(--line);background:white;border-radius:7px;padding:10px;color:var(--ink);width:100%;margin-top:5px}input[type=range]{width:100%;accent-color:var(--green)}.times{margin-top:17px;color:#9ba493}.hint{font-size:10px;line-height:1.5;color:var(--muted)}.field-label{display:block;font-size:11px;margin-top:15px}select{font-size:11px}.presets{display:flex;gap:8px}.presets button{border:1px solid var(--line);background:white;padding:9px 0;border-radius:7px;flex:1;font-size:11px;color:var(--muted)}.presets button.selected{border-color:var(--green);background:#eef4eb;color:var(--green);font-weight:700}.custom-size{display:flex;align-items:center;gap:10px;font-size:11px;color:var(--muted);margin-top:10px}.custom-size input{width:90px;margin:0}.check{display:flex;gap:7px;font-size:10px;align-items:flex-start;margin:14px 0;color:var(--muted);line-height:1.5}.check input{accent-color:var(--green);margin:1px 0}.primary,.download{display:flex;justify-content:space-between;align-items:center;width:100%;border:0;border-radius:8px;padding:14px 18px;font-size:12px;font-weight:600;background:var(--green);color:white;text-decoration:none}.primary:disabled{opacity:.45;cursor:not-allowed}.status{font-size:11px;line-height:1.5;min-height:17px;color:var(--muted);margin-bottom:0}.status.error{color:#a14232}.preview-heading{display:flex;align-items:center;justify-content:space-between;margin:22px 0 17px;gap:8px}h2{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;margin:0;font-size:17px;letter-spacing:-.5px}.jpg-tag{font-size:8px;letter-spacing:1px;border:1px solid #ccd7c5;border-radius:5px;padding:5px 7px;color:#68815b}.preview-stage{height:340px;border:1px solid #d9e0d1;border-radius:10px;background-color:#f7f9f3;background-image:linear-gradient(45deg,#edf0e8 25%,transparent 25%),linear-gradient(-45deg,#edf0e8 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#edf0e8 75%),linear-gradient(-45deg,transparent 75%,#edf0e8 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0;display:flex;align-items:center;justify-content:center;overflow:hidden;padding:16px}#empty{text-align:center}.empty-icon{font-size:45px;color:#adbba3;margin-bottom:20px}#empty strong{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;font-size:21px;line-height:1.3;color:#8b9c80;letter-spacing:-.5px}#empty p{color:#91a088;font-size:11px}.preview-stage img{max-width:100%;max-height:100%;object-fit:contain;box-shadow:0 5px 20px #0000000c}.metrics{display:grid;grid-template-columns:1fr 1.3fr 1fr;gap:8px;margin:20px 0}.metrics>div{border-right:1px solid #d7dfd0}.metrics>div:last-child{border:0}.metrics span{display:block;font-size:8px;letter-spacing:1px;color:#829079;margin-bottom:8px}.metrics strong{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;font-size:16px}.download{background:var(--ink)}.download.disabled{opacity:.35;pointer-events:none}.checks{font-size:11px;line-height:1.8;color:var(--green);background:#e3ecdc;border-radius:7px;padding:10px;margin-bottom:15px}.privacy-note{display:flex;gap:12px;align-items:flex-start;margin-top:19px}.privacy-note>span{font-size:24px;color:#789168}.privacy-note p{font-size:10px;color:#7b8a73;line-height:1.7;margin:0}.privacy-note strong{color:#546d4b;font-weight:600}.text-button{border:0;background:none;color:var(--muted);font-size:10px;padding:8px 0;text-decoration:underline}.notes{display:grid;grid-template-columns:repeat(3,1fr);gap:40px;padding:35px 4px 50px}.notes span{font-size:8px;font-weight:700;letter-spacing:1px;color:#7d8a73}.notes h3{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;font-size:13px;margin:11px 0 7px}.notes p{font-size:11px;line-height:1.7;color:var(--muted);margin:0}footer{max-width:1240px;margin:auto;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:23px 30px;font-size:10px;color:var(--muted)}footer .brand{font-size:18px;color:var(--ink)}[hidden]{display:none!important}@media(max-width:700px){header{padding:20px}.intro{padding:35px 0 28px}h1{letter-spacing:-2px}.intro p{font-size:13px}.desktop{display:none}.trust{gap:12px;font-size:10px}.workspace{grid-template-columns:1fr}.editor,.preview{padding:23px}.preview{border-left:0;border-top:1px solid var(--line)}.preview-stage{height:280px}.notes{grid-template-columns:1fr;gap:20px;padding:28px 0}.notes p{font-size:12px}footer{flex-wrap:wrap;gap:15px;padding:20px}footer>span:last-child{width:100%}.header-note{font-size:10px}main{padding:0 15px}}@media(prefers-reduced-motion:no-preference){button,a{transition:background .15s,opacity .15s}}

/* Compact introduction: keep the tool near the top. */
.intro{text-align:left;padding:22px 0 20px}.intro h1{font-size:28px;line-height:1.25;letter-spacing:-1px}.intro p{font-size:13px;line-height:1.5;margin:7px 0 10px}.intro .trust{justify-content:flex-start;gap:18px;font-size:10px}@media(max-width:700px){.intro{padding:18px 0 17px}.intro h1{font-size:24px;letter-spacing:-.7px}.intro p{font-size:12px;margin:6px 0 9px}.intro .trust{gap:12px;font-size:9px}}

/* Original message, compact spacing. */
.intro{padding:18px 0}.intro .eyebrow{font-size:10px;letter-spacing:1.4px;margin-bottom:7px}.intro h1{font-size:36px;line-height:1.2}.intro p{margin:8px 0 9px;font-size:13px}@media(max-width:700px){.intro{padding:16px 0}.intro h1{font-size:28px;line-height:1.2}.intro p{font-size:12px}}

/* Original image stays visible while the output is prepared. */
.source-preview{display:block;max-width:100%;width:auto;height:150px;object-fit:contain;border-radius:6px;margin-bottom:5px}.dropzone.has-image{padding:14px 12px}.dropzone.has-image small{margin-top:2px}.dropzone #replaceHint{font-size:10px;color:var(--green)}

/* Automatic editing keeps controls and the current result together. */
.preview-stage canvas{max-width:100%;max-height:100%;object-fit:contain;box-shadow:0 5px 20px #0000000c}
.auto-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--line);margin-top:16px;padding-top:10px;font-size:11px;color:var(--green)}
.auto-bar .text-button{font-size:11px;padding:10px 0}
#previewStatus{min-height:33px;margin:12px 0 0}#shrinkHint{margin-top:-5px}
input:disabled{opacity:.45;cursor:not-allowed}input[aria-invalid=true]{border-color:#a14232}
#cropControls{background:#f7f9f4;padding:4px 12px;border-radius:8px;margin-top:12px}
#cropControls .field-label{margin-top:10px}#cropControls .text-button{min-height:36px}
.mobile-preview-link{display:none}.preview{scroll-margin-top:12px}
@media(min-width:701px){.workspace{overflow:clip;align-items:start}.preview{position:sticky;top:12px;border-radius:0 19px 19px 0}.editor{min-width:0}}
@media(max-width:700px){.source-preview{height:110px}.auto-bar{flex-wrap:wrap}.mobile-preview-link{display:block;color:var(--green);font-size:12px;padding:13px 0}.preview-heading{margin-top:16px}.presets button{min-height:40px}.text-button{min-height:36px}.two-fields label{min-width:0}input[type=range]{min-height:30px}}

.mobile-live{display:none}
@media(max-width:700px){.workspace{overflow:clip}.mobile-live{display:grid;grid-template-columns:1fr auto;align-items:center;gap:5px 12px;position:sticky;top:0;z-index:2;background:#f4f7ef;border:1px solid #d9e0d1;border-radius:9px;padding:9px;margin:8px 0 16px;box-shadow:0 4px 14px #203b3112}.mobile-live>div{grid-column:1/-1;height:110px;display:flex;justify-content:center;align-items:center}.mobile-live canvas,.mobile-live img{max-width:100%;max-height:100%;object-fit:contain}.mobile-live span,.mobile-live a{font-size:10px}.mobile-live a{color:var(--green);padding:6px}}

.background-tools{margin:10px 0 18px;padding:14px;background:#f4f7ef;border:1px solid var(--line);border-radius:10px}.bg-actions{display:flex;align-items:center;gap:15px;flex-wrap:wrap}.secondary{border:1px solid var(--green);border-radius:7px;padding:11px 14px;background:white;color:var(--green);font-size:12px;font-weight:600;min-height:42px}.secondary:disabled{opacity:.55;cursor:default}.background-tools .hint{margin:8px 0 0;font-size:11px}.background-tools .status:empty{display:none}.background-tools progress{width:100%;height:5px;accent-color:var(--green);margin-top:12px}.bg-comparison{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}.bg-comparison figure{margin:0;text-align:center;min-width:0}.bg-comparison img{width:100%;height:115px;object-fit:contain;background:#fff;border:1px solid var(--line);border-radius:7px}.bg-comparison figcaption{font-size:10px;margin-top:5px;color:var(--muted)}
/* Readable controls and supporting pages; keep the tool first. */
:root{--muted:#58675d}header{gap:18px;padding-top:20px;padding-bottom:20px}header nav,footer nav{display:flex;flex-wrap:wrap;gap:12px 20px}header nav a{font-size:13px;text-underline-offset:4px}footer{gap:18px;flex-wrap:wrap;font-size:12px}footer nav{width:100%;border-top:1px solid var(--line);padding-top:16px}footer nav a{text-underline-offset:4px}
.intro h1{font-size:clamp(26px,3.2vw,36px);letter-spacing:-1.2px}.intro p{font-size:14px}.intro .trust{font-size:12px;flex-wrap:wrap;gap:8px 18px}.workspace{scroll-margin-top:15px}.step-label{font-size:11px}.section-heading,.field-label,.custom-size,.check,.hint,.status,.checks,.privacy-note p,.auto-bar{font-size:12px}.two-fields label{font-size:12px}.two-fields input,.custom-size input,select{font-size:14px;min-height:44px}.tabs button,.presets button,.secondary,.download{font-size:13px;min-height:44px}.text-button{font-size:12px;min-height:36px}.dropzone small{font-size:11px;color:var(--muted)}.dropzone strong{font-size:14px}.metrics span{font-size:10px;color:#58694e}.jpg-tag{font-size:10px;color:#4e6743}.notes p{font-size:13px}.notes h3{font-size:15px}.notes span{font-size:10px;color:#58694e}.notes{padding-bottom:28px}
.skip-link{position:fixed;top:-100px;left:12px;z-index:10;background:var(--ink);color:white;padding:12px 18px;border-radius:7px}.skip-link:focus{top:12px}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #397b59;outline-offset:3px}
.help-section{border-top:1px solid var(--line);padding:30px 0 45px}.help-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px}.help-heading h2{font-size:23px}.help-heading .eyebrow{margin-bottom:7px}.help-heading>a{font-size:13px;white-space:nowrap}.help-section details{border-bottom:1px solid var(--line);padding:15px 0}.help-section summary{font-size:15px;font-weight:600;cursor:pointer;line-height:1.5}.help-section details p{font-size:14px;line-height:1.8;max-width:80ch;color:var(--muted);margin:12px 0 2px}
.document{max-width:850px;padding-top:28px;padding-bottom:54px}.back-link{font-size:14px}.document article{margin-top:24px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:36px}.document h1{font-size:clamp(28px,4vw,40px);letter-spacing:-1.2px;line-height:1.2}.document h2{font-size:21px;margin:30px 0 12px}.document p,.document li,.document dd{font-size:15px;line-height:1.85;color:#4e6054}.document .lead{font-size:18px;color:var(--ink);line-height:1.7}.document .updated{font-size:12px}.document li{margin-bottom:7px}.document ul{padding-left:23px}.document dt{font-weight:650;margin-top:20px}.document dd{margin:8px 0 0}.document a{overflow-wrap:anywhere;text-underline-offset:3px}.inline-cta{display:inline-block;background:var(--green);color:#fff;padding:12px 18px;border-radius:8px;text-decoration:none;font-weight:600}.document .inline-cta{color:white}
@media(max-width:700px){header{align-items:flex-start;flex-wrap:wrap;padding:16px}.brand{font-size:23px}header nav{gap:18px}.intro h1{font-size:28px}.intro h1 span{display:block}.intro .trust{font-size:11px}.editor,.preview{padding:18px}.two-fields input,.custom-size input,select{font-size:16px}.help-heading{align-items:flex-start;flex-direction:column;gap:12px}.document{padding-top:22px}.document article{padding:22px 19px}.document h1{font-size:29px}.mobile-live span,.mobile-live a{font-size:12px}.mobile-live>div{height:90px}.metrics strong{font-size:14px}.auto-bar{gap:8px}.notes{gap:18px}footer .brand{font-size:21px}}

/* Non-blocking, equally weighted optional analytics choices. */
.analytics-choice{position:fixed;z-index:20;bottom:16px;left:16px;right:16px;margin:0 auto;max-width:680px;background:#fff;border:1px solid #9cafa1;box-shadow:0 6px 32px #203b3126;border-radius:12px;padding:18px 20px;color:var(--ink)}
.analytics-choice[hidden]{display:none}.analytics-choice strong{font-size:16px}.analytics-choice p{font-size:13px;line-height:1.55;margin:8px 0}.analytics-choice a{text-decoration:underline}.analytics-choice .analytics-summary{font-size:12px;color:var(--muted)}
.analytics-actions{display:flex;gap:12px;margin-top:12px}.analytics-actions button{flex:1;border:1px solid var(--green);border-radius:7px;padding:10px 14px;min-height:44px;background:white;color:var(--green);font:inherit;font-size:13px;font-weight:600;cursor:pointer}.analytics-actions button:hover{background:#edf2e8}
.analytics-settings{border:0;padding:0;background:none;color:inherit;text-decoration:underline;text-underline-offset:4px;font:inherit;cursor:pointer}
@media(max-width:700px){.analytics-choice{bottom:8px;left:8px;right:8px;padding:14px}.analytics-choice p{font-size:12px}.analytics-actions{gap:8px}.analytics-actions button{padding:9px;font-size:12px}}
