@font-face{font-family:'Roboto Slab';src:url('/assets/roboto-slab.woff2') format('woff2');font-weight:100 900;font-display:swap}:root{--font-roboto-slab:'Roboto Slab'}html{scroll-behavior:smooth;scroll-padding-top:90px}[hidden]{display:none!important}button:disabled{cursor:not-allowed;opacity:.45}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,canvas:focus-visible{outline:2px solid #0785ed;outline-offset:4px}.canvas-col{min-width:0;display:flex;flex-direction:column}.canvas-top{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#71717a;gap:10px;margin-bottom:10px}.editor-kicker{display:flex;align-items:center;gap:7px;font-size:10px;letter-spacing:1px}.status-dot{width:6px;height:6px;background:#69956c;border-radius:50%}.dropzone{position:relative;display:flex;align-items:center;justify-content:center;background:#fafafa;border-radius:16px;aspect-ratio:4/3;overflow:auto;min-height:0}.dropzone.dragging{background:#edf7ff;outline:2px dashed #0785ed}.upload-zone{width:100%;height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;cursor:pointer;border:0;background:none;padding:18px;transition:background .2s}.upload-zone:hover{background:#f5f5f5}.upload-icon{width:64px;height:64px;display:grid;place-items:center;border-radius:16px;background:#edf7ff;color:#0785ed;margin-bottom:24px}.upload-zone strong{font-size:20px;font-weight:600}.upload-zone>span:not(.upload-icon){font-size:14px;color:#71717a;margin-top:7px}.upload-zone small{font-size:12px;color:#71717a;margin-top:8px}.canvas-stage{width:100%;flex-shrink:0;position:relative;line-height:0;background:repeating-conic-gradient(#eee 0 25%,white 0 50%) 0/16px 16px}.canvas-stage canvas{display:block;width:100%;height:auto}.canvas-stage #selection{position:absolute;inset:0;touch-action:none;cursor:crosshair}.canvas-bottom{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#71717a;gap:10px;min-height:30px;margin-top:5px}.canvas-bottom>span{display:flex;align-items:center;gap:6px}.text-button{font-size:11px;text-decoration:underline;text-underline-offset:3px;background:none;border:0;color:#71717a;cursor:pointer}.controls{min-width:0}.control-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px}.control-title h2{font-family:inherit;font-size:16px;font-weight:500;line-height:1.4}.control-title>span{font-size:10px;color:#a1a1aa}.mode-switch{display:flex;border-radius:16px;background:#f4f4f5;padding:4px;gap:3px;margin-bottom:20px}.mode-switch button{flex:1;border:0;background:none;font-size:14px;font-weight:500;color:#71717a;padding:8px;border-radius:12px;cursor:pointer}.mode-switch button[aria-pressed=true]{color:#0a0a0a;background:#fafaf9;box-shadow:0 1px 3px #0001}.mode-switch button span{font-size:18px;margin-right:7px;vertical-align:middle}.engine-label{display:block;font-size:12px;margin-bottom:16px}.engine-label select{display:block;width:100%;background:#f4f4f5;border:0;padding:10px 12px;border-radius:12px;font:inherit;margin-top:7px}.brush-heading{font-size:13px;font-weight:500;display:flex;justify-content:space-between;align-items:center}.brush-heading output{font-size:11px;color:#71717a}#brush-size{width:100%;accent-color:#0785ed;margin:17px 0 7px;height:5px;cursor:pointer}.range-captions{display:flex;justify-content:space-between;font-size:10px;color:#a1a1aa}.actions-row{display:flex;gap:8px;margin:15px 0}.light-button{background:white;border:1px solid #ececec;border-radius:10px;padding:9px 12px;font-size:11px;cursor:pointer}.actions-row .light-button{flex:1}.tip{display:flex;gap:8px;background:#fffbeb99;border:1px solid #fde68a;border-radius:12px;padding:12px;color:#78350f}.tip>span{font-size:20px;line-height:1.2}.tip p{font-size:11px;line-height:1.7}.tip strong{display:block;font-weight:600}.process-actions{margin-top:20px}.button{display:inline-flex;align-items:center;justify-content:center;gap:10px;border:0;border-radius:14px;padding:14px 22px;font-size:14px;font-weight:500;cursor:pointer}.process-actions>.button{width:100%}.orange{background:#0785ed;color:white}.process-actions .orange{justify-content:space-between}.download{background:#eaf4ed;color:#306740;margin-top:8px}.status{font-size:11px;line-height:1.7;color:#71717a;margin-top:10px;min-height:18px}.status.error{color:#b91c1c}.compare-button{display:block;margin:10px auto 0}.precise{font-size:11px;color:#71717a;margin-top:12px}.precise summary{cursor:pointer}.precise p{margin:10px 0}.coordinates{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:10px 0}.coordinates label{font-size:9px}.coordinates input{width:100%;font-size:12px;padding:5px;border:1px solid #ececec;border-radius:6px}.processing-note,.rights{font-size:10px;line-height:1.7;color:#71717a;margin-top:12px}.rights{font-size:10px;border-top:1px solid #ececec;padding-top:10px}.sample-link{font:inherit;color:#0785ed;text-decoration:underline;text-underline-offset:3px;cursor:pointer}.format-badge{border:1px solid #ececec;border-radius:6px;padding:7px 16px;font-size:14px;font-weight:500;color:#71717a;background:white}.mobile-menu{padding:0 24px 20px;display:flex;flex-direction:column;gap:12px;font-size:14px}.mobile-menu a{padding:8px 12px;background:#f4f4f5;border-radius:10px}.no-script{padding:16px;background:#edf7ff;text-align:center}.processing-note{padding:9px 11px;border-radius:10px;background:#f4f4f5}.tool-extras{display:flex;gap:7px;margin:10px 0}.tool-extras label{font-size:10px;color:#71717a;flex:1}.tool-extras input{width:100%;accent-color:#0785ed}.tool-extras button{font-size:10px}.zoomed .canvas-stage{width:150%;align-self:flex-start}.zoomed .dropzone{justify-content:flex-start;align-items:flex-start}.tool-extras button[aria-pressed=true]{color:#0785ed;border-color:#0785ed}
@media(max-width:1023px){.dropzone{aspect-ratio:4/3}.controls{margin-top:4px}.control-title{display:none}.canvas-top{font-size:10px}.engine-label{font-size:13px}.status,.tip p{font-size:12px}.rights,.processing-note{font-size:11px}.process-actions>.button{font-size:16px}.upload-zone small{font-size:11px}}@media(min-width:640px){.mobile-menu{display:none!important}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Keep the whole image reachable, including tall uploads and zoomed edges. */
.dropzone{align-items:flex-start;justify-content:flex-start}.canvas-stage{margin:auto;align-self:auto;max-width:none}.canvas-stage #picture{pointer-events:none}.canvas-stage #selection{z-index:1}.corner-presets{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin:8px 0 14px}.corner-presets>span{font-size:11px;color:#71717a;margin-right:2px}.corner-presets .light-button{padding:8px 10px}.status.error{background:#edf7ff;border-radius:8px;padding:8px 10px}.zoomed .canvas-stage{align-self:auto}


.gif-animation{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none}.tool-directory{position:relative}.tool-directory summary{cursor:pointer;list-style:none}.tool-directory-panel{position:absolute;top:100%;left:0;min-width:260px;padding:10px;background:#fff;border:1px solid #ececec;border-radius:14px;box-shadow:0 12px 35px #0001;z-index:55}.tool-directory-panel a{display:block;padding:9px 12px;font-size:13px;border-radius:8px}.tool-directory-panel a:hover{background:#f4f4f5}.scenario-sample{margin-top:15px;font-size:12px;text-align:center;color:#71717a}.scenario-sample button{color:#0785ed;cursor:pointer;text-decoration:underline}.scenario-note{font-size:11px;line-height:1.7;color:#71717a;margin-top:12px}
@media(max-width:639px){.mobile-menu{max-height:calc(100dvh - 84px);overflow-y:auto;overscroll-behavior:contain}}

/* Make the editable region explicit before any pixels are replaced. */
.editor-steps{display:flex;align-items:center;justify-content:center;gap:24px;list-style:none;padding:0;margin:0 0 18px;font-size:12px;color:#71717a;line-height:1.5}.editor-steps li{display:flex;align-items:center;gap:7px}.editor-steps li>span{display:inline-grid;place-items:center;width:24px;height:24px;border:1px solid #e4e4e7;border-radius:50%;background:#fff;flex-shrink:0;font-size:11px}.editor-steps [data-current]{color:#9a3412;font-weight:600}.editor-steps [data-current]>span{border-color:#0785ed;background:#edf7ff;color:#0877cf}.mode-switch{margin-bottom:16px}.mode-switch button{font-size:12px;padding:9px 6px}.mode-switch button span{font-size:15px;margin-right:3px}.mode-switch #erase-tool[aria-pressed=true]{color:#166534;background:#eef8f0}.tool-extras button{flex:1}.actions-row{flex-wrap:wrap;margin:10px 0}.actions-row .light-button{padding:9px 7px;white-space:nowrap}.selection-info{font-size:11px;line-height:1.7;margin-bottom:12px}.selection-info>p{margin:0}#selection-summary{color:#57534e}#selection-warning{margin-top:7px;padding:9px 11px;background:#edf7ff;border-radius:9px;color:#9a3412}.brush-cursor{position:absolute;z-index:3;pointer-events:none;transform:translate(-50%,-50%);border:1px solid #fff;outline:1px solid #0877cf;border-radius:50%;background:#0785ed26;box-sizing:border-box;min-width:2px;min-height:2px}.brush-cursor.keeping{outline-color:#15803d;background:#22c55e26}.canvas-bottom{align-items:flex-start;line-height:1.6;min-height:38px}.canvas-bottom>span{max-width:75%}.canvas-bottom>button{white-space:nowrap}.tip{margin-top:0}.dropzone{isolation:isolate}.canvas-stage{overflow:hidden}.process-actions>.button:disabled{opacity:.55}
@media(min-width:1024px){.dropzone{aspect-ratio:auto;min-height:400px;flex:1;height:clamp(400px,48vw,650px);max-height:650px}}
@media(max-width:639px){.editor-steps{gap:10px;justify-content:space-between;font-size:10px;align-items:flex-start}.editor-steps li{gap:5px;flex:1}.editor-steps li>span{width:21px;height:21px}.mode-switch button{min-height:44px}.light-button{min-height:40px}.canvas-bottom{font-size:10px}.canvas-bottom>span{max-width:68%}}

/* Default to the short brush-and-remove flow; reveal precision tools on demand. */
#editor>.card-soft{background:#fff;border:1px solid #e4e4e7;border-radius:28px;box-shadow:0 4px 24px #18181b06;padding:24px;align-items:stretch;gap:24px}.controls{background:#fff;border:1px solid #f1eeeb;border-radius:24px;padding:28px;box-shadow:0 8px 28px #43280c04}.control-kicker{font-size:10px;letter-spacing:1.5px;color:#a1a1aa;margin:0 0 7px}.control-title{display:flex!important;margin:0 0 6px}.control-title h2{font-size:23px;font-weight:600;letter-spacing:-.6px}.controls>.status{margin:0 0 28px;min-height:20px;font-size:12px;line-height:1.6}.controls>.brush-heading{font-size:14px}.controls>.brush-heading output{font-size:13px;color:#292524}.controls>#brush-size{margin:24px 0 12px;height:6px}.controls>.range-captions{display:none}.controls>.actions-row{margin:12px 0 5px;gap:14px}.controls>.actions-row .light-button{border:0;font-size:13px;background:#fafaf9;border-radius:12px;min-height:43px}.controls>.actions-row .light-button:hover:enabled{background:#f3f1ee}.process-actions{margin-top:28px}.process-actions>.button{border-radius:999px;justify-content:center;font-size:15px;font-weight:600;min-height:50px;padding:14px 18px}.process-actions>.orange{box-shadow:0 3px 7px #0785ed26}.change-image{display:flex;background:#18181b;color:#fff;margin-top:10px;text-decoration:none}.mode-notice{font-size:10px;line-height:1.5;text-align:center;color:#a1a1aa;margin:12px 0 0}.more-tools{border-top:1px solid #f0eeeb;margin-top:22px;padding-top:15px;font-size:12px;color:#78716c}.more-tools>summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center}.more-tools>summary::after{content:'+';font-size:18px;font-family:Arial,sans-serif;line-height:1}.more-tools[open]>summary::after{content:'−'}.advanced-tools{padding-top:20px}.advanced-tools .tip{margin-top:12px}.advanced-tools .engine-label{font-size:11px}.advanced-tools .light-button{min-height:37px}.canvas-top{display:none}.canvas-stage{border-radius:18px}.dropzone{border-radius:24px}.canvas-bottom{margin:9px 3px 0;min-height:20px}.canvas-bottom>span{max-width:100%;font-size:11px}.dropzone{height:clamp(330px,calc(100dvh - 170px),640px);min-height:330px;max-height:640px;flex:0 0 auto;aspect-ratio:auto}.upload-zone strong{font-size:20px}.compare-button{font-size:12px;margin-top:14px}.process-actions .download{margin-top:10px}
@media(max-width:1023px){#editor>.card-soft{gap:20px;padding:16px;border-radius:22px}.dropzone{height:clamp(240px,48dvh,480px);min-height:240px}.controls{padding:22px}.controls>.status{margin-bottom:22px}.control-title h2{font-size:21px}.controls{margin-top:0}}
#brush-size{appearance:none;-webkit-appearance:none;background:#efede8;border:0;border-radius:99px}#brush-size::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:20px;height:20px;background:#0785ed;border:3px solid #fff;border-radius:50%;box-shadow:0 2px 8px #0877cf30}#brush-size::-moz-range-thumb{width:15px;height:15px;background:#0785ed;border:3px solid #fff;border-radius:50%;box-shadow:0 2px 8px #0877cf30}
.repair-progress{padding:18px 0 6px}.progress-line{display:flex;justify-content:space-between;gap:12px;align-items:center;font-size:12px;margin-bottom:12px}.progress-stage{color:#44403c;font-weight:500}#progress-elapsed{color:#78716c;font-variant-numeric:tabular-nums}.activity-track{height:5px;overflow:hidden;background:#f1eeea;border-radius:99px}.activity-track>span{display:block;width:35%;height:100%;background:#0785ed;border-radius:inherit;animation:repair-activity 1.8s ease-in-out infinite}#progress-detail{font-size:11px;line-height:1.7;color:#78716c;margin:13px 0 0}.compare-result{margin-top:10px;background:#f4f3f0;color:#292524;border:1px solid #ece9e4}.continue-edit{display:block;margin:16px auto 0;text-align:center;font-size:12px}.result-download{box-shadow:0 3px 7px #0785ed26}#editor-controls[data-state=result] .process-actions{margin-top:8px}#editor-controls[data-state=result] .control-title h2{color:#166534}#editor-controls[data-state=paused] .status{background:#fffbeb;color:#92400e}#editor-controls[data-state=error] .control-title h2{color:#991b1b}#editor-controls[data-state=result] .compare-result[aria-pressed=true]{border-color:#78716c;background:#e7e5e4}@keyframes repair-activity{0%{transform:translateX(-110%)}100%{transform:translateX(390%)}}@media(prefers-reduced-motion:reduce){.activity-track>span{animation:none;transform:translateX(90%)}}
.selection-adjustments{display:flex;gap:10px;padding-top:16px}.selection-adjustments .light-button{flex:1;min-height:42px;font-size:12px}.selection-adjustments #erase-tool[aria-pressed=true]{color:#166534;border-color:#86b89a;background:#eef8f0}
/* A quiet benefits row directly under the homepage editor. */
.tool-footer{margin-top:26px;text-align:center}
.tool-benefits{display:flex;flex-wrap:wrap;justify-content:center;gap:12px 28px;margin:0;padding:0;list-style:none;color:#71717a;font-size:14px;line-height:1.6}
.tool-benefits li{display:flex;align-items:center;gap:9px}
.tool-benefits svg{flex:none;color:#0785ed}
.tool-samples{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:0 6px;margin:12px 0 0;color:#71717a;font-size:12px;line-height:1.6}
.tool-samples .sample-link{display:inline-flex;align-items:center;min-height:36px;color:#57534e;text-decoration-color:#d6d3d1;text-underline-offset:4px}
.tool-samples .sample-link:hover{color:#0877cf;text-decoration-color:currentColor}
#home:has(>.tool-footer){padding-bottom:64px}
@media(max-width:639px){.tool-footer{margin-top:22px}.tool-benefits{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 12px;text-align:left;font-size:12px}.tool-benefits li{align-items:flex-start;gap:7px}.tool-benefits svg{width:14px;height:14px;margin-top:3px}.tool-samples{margin-top:16px;font-size:12px}.tool-samples .sample-link{min-height:44px}#home:has(>.tool-footer){padding-bottom:40px}}
/* Give every upload/preview surface a visible boundary against the page. */
#editor .dropzone{box-sizing:border-box;background:#f2f2f2;border:1px solid #dedee2;border-radius:24px;transition:background-color .15s,border-color .15s}
#editor .upload-zone{align-self:stretch;min-height:100%;border-radius:inherit;background:transparent}
#editor .upload-zone:hover:enabled{background:#eaeaea}
#editor .dropzone:focus-within{border-color:#0785ed;box-shadow:0 0 0 3px #0785ed1a}
#editor .dropzone.dragging{background:#edf7ff;border-color:#0785ed;border-style:dashed;outline:none}
@media(min-width:640px) and (max-width:1023px){#menu-button{display:inline-flex}#mobile-menu:not([hidden]){display:flex!important;max-height:calc(100dvh - 84px);overflow-y:auto;overscroll-behavior:contain}}


/* Example readability: preserve the reference card; enlarge the actual marked area. */
.example-open{display:block;width:100%;min-width:0;padding:0;border:0;border-radius:16px;background:transparent;cursor:zoom-in;text-align:left;color:inherit}.example-open>div{width:100%}.example-open img{transition:filter .15s}.example-open:hover img{filter:brightness(.96)}.example-enlarge-hint{font-size:12px;line-height:1.6;color:#71717a;margin:12px 0 0;text-align:center}
.example-dialog{width:min(1120px,94vw);max-width:none;max-height:92dvh;margin:auto;padding:24px;border:1px solid #e7e5e4;border-radius:20px;background:#fff;color:#18181b;overflow:auto;box-shadow:0 24px 80px #0004}.example-dialog::backdrop{background:#18181bbd}.example-dialog header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.example-dialog h2{font-size:20px;font-weight:600;line-height:1.5}.example-close,.example-full,.example-preview-tabs button{min-height:44px;border:1px solid #e7e5e4;border-radius:12px;background:#fafafa;padding:9px 16px;cursor:pointer;font:inherit;font-size:14px}.example-close{white-space:nowrap}.example-preview-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin:18px 0}.example-preview-tabs{display:flex;gap:8px;flex-wrap:wrap}.example-preview-tabs button[aria-pressed=true]{background:#edf7ff;border-color:#0785ed;color:#0877cf}.example-preview-image{overflow:hidden;border-radius:12px;background:#f4f4f5}.example-preview-image img{display:block;width:100%;height:auto;max-height:65dvh;object-fit:contain}.example-preview-image.is-focused{aspect-ratio:4/3;max-height:65dvh}.example-preview-image.is-focused img{height:100%;max-height:none;object-fit:cover}.example-preview-help{font-size:12px;line-height:1.6;color:#71717a;margin:14px 0 0}@media(max-width:600px){.example-dialog{width:96vw;padding:14px;border-radius:16px}.example-dialog h2{font-size:16px}.example-close,.example-full,.example-preview-tabs button{font-size:12px;padding:8px 12px}.example-preview-image.is-focused{max-height:60dvh}}
.example-preview-image{width:100%;margin-inline:auto}.example-preview-image.is-focused{width:min(100%,calc(65dvh * 4 / 3));max-height:none}
.example-open .example-media-label{display:inline-block;position:static;margin:0 0 9px;max-width:100%;font-size:10px;line-height:1.5;white-space:normal}.example-detail-frame{background:#f4f3ef}.example-open{align-self:start}.example-open .example-detail-frame img{object-fit:contain}
.example-task{font-size:13px;line-height:1.65;font-weight:600;color:#292524;margin:0 0 14px}.example-selection-note{margin-top:20px;padding:12px 14px;border-radius:12px;background:#fff4ed;color:#9a3412;font-size:12px;line-height:1.7}.example-guide-heading{padding:28px 4px 8px}.example-guide-heading h3{font-size:24px;font-weight:600;line-height:1.4}.example-guide-heading p{font-size:14px;line-height:1.7;color:#71717a;margin-top:10px;max-width:760px}

/* Upload and controls share one editor frame. */
#editor>.card-soft>.controls{background:transparent;border:0;border-left:1px solid #eeece9;border-radius:0;box-shadow:none;padding:12px 4px 12px 24px}
.selection-adjustments{flex-wrap:wrap}.selection-adjustments #expand-selection{flex-basis:100%;min-height:44px}
@media(max-width:1023px){#editor>.card-soft>.controls{border-left:0;border-top:1px solid #eeece9;padding:20px 4px 4px}}
