:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#242932;background:#fff;font-synthesis:none;--blue:#1673f4;--muted:#7a828e;--line:#e9ecf0}
*{box-sizing:border-box}body{margin:0;min-height:100svh;display:flex;flex-direction:column}button,a,input{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{font:inherit}button,a{outline-offset:5px}button:focus-visible,a:focus-visible{outline:3px solid #8cbcff}button{cursor:pointer}button:disabled{cursor:default}a{color:inherit;text-decoration:none}svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}[hidden]{display:none!important}
.site-header{height:100px;padding:0 5.2%;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{display:inline-flex;gap:10px;align-items:center;font-size:29px;font-weight:780;letter-spacing:-1.3px}.brand svg{height:31px;width:31px;stroke:none;color:#2876ea}.brand-suffix{color:#8993a0;font-weight:560}.header-note{font-size:13px;color:#7a828e;display:flex;align-items:center;gap:7px}.header-note svg{height:15px;width:15px;stroke-width:1.7}main{flex:1;width:100%}.home{width:min(1080px,calc(100% - 96px));margin:73px auto 95px;display:grid;grid-template-columns:1.1fr 1fr;gap:70px;align-items:center}.intro{padding-bottom:10px}.eyebrow{font-size:11px;font-weight:700;letter-spacing:1.55px;color:#89919d;margin:0 0 20px}.intro h1{font-size:clamp(42px,4.5vw,60px);line-height:1.08;letter-spacing:-2.9px;font-weight:780;margin:0}.blue-dot{color:var(--blue)}.intro-copy{font-size:20px;font-weight:500;letter-spacing:-.4px;margin:23px 0 0;color:#565f6b}.intro-detail{font-size:15px;color:#939aa4;margin:10px 0 0}.upload-column{padding-top:38px}.upload-card{height:346px;border:1px solid #e7eaf0;border-radius:24px;box-shadow:0 10px 32px #18294207,0 2px 6px #18294203;display:flex;align-items:center;flex-direction:column;justify-content:center;background:#fff}.upload-symbol{margin:0 0 23px;color:#bcc9dc}.upload-symbol svg{width:42px;height:42px;stroke-width:1.5}.upload-plus{stroke:#fff;stroke-width:4;paint-order:stroke;fill:none;color:var(--blue);filter:drop-shadow(0 0 0 var(--blue))}.button{min-height:46px;display:inline-flex;align-items:center;justify-content:center;gap:9px;border:0;border-radius:999px;font-size:15px;font-weight:600;line-height:1.3;padding:12px 22px;transition:background .15s,transform .15s,color .15s}.button:active{transform:translateY(1px)}.primary{background:var(--blue);color:white}.primary:hover{background:#0965e0}.upload-button{font-size:20px;min-height:58px;padding:15px 33px;box-shadow:0 2px 3px #0050ac12}.upload-button svg{width:22px;height:22px}.drop-copy{font-size:17px;font-weight:520;letter-spacing:-.2px;color:#626c79;margin:19px 0 0}.paste-copy{color:#9aA1ac;font-size:14px;display:flex;align-items:center;gap:8px;margin:11px 0 0}kbd{font:12px inherit;background:#f5f6f8;border:1px solid #e7e9ee;border-radius:5px;padding:3px 6px;color:#7b8592;line-height:1}.file-types{font-size:12px;color:#a1a8b2;margin:26px 0 0}.upload-benefits{display:flex;align-items:center;justify-content:center;gap:23px;margin:21px 0 0;font-size:12px;color:#8b939d}.upload-benefits span{display:flex;align-items:center;gap:5px}.upload-benefits svg{width:14px;height:14px;stroke-width:2;color:#8f9ba9}
.demo-art{width:334px;margin:0 0 31px 12px;transform:rotate(-3deg)}.demo-frame{height:216px;border-radius:15px;position:relative;overflow:hidden;border:5px solid #fff;box-shadow:0 4px 20px #202b4012}.checker{background-color:#fff;background-image:linear-gradient(45deg,#edf0f3 25%,transparent 25%),linear-gradient(-45deg,#edf0f3 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#edf0f3 75%),linear-gradient(-45deg,transparent 75%,#edf0f3 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0}.demo-cutout,.demo-before img{width:100%;height:100%;object-fit:cover;object-position:center 35%;display:block}.demo-before{position:absolute;inset:0;clip-path:inset(0 51% 0 0)}.demo-divider{position:absolute;top:0;bottom:0;left:49%;width:2px;background:white}.demo-divider span{position:absolute;top:48%;left:1px;transform:translate(-50%,-50%);background:#fff;border-radius:50%;font-size:16px;letter-spacing:1px;font-weight:600;width:24px;height:24px;display:grid;place-items:center;color:#8490a0;box-shadow:0 1px 6px #0002}.demo-label{position:absolute;bottom:12px;right:10px;border-radius:6px;padding:6px 8px;background:white;color:#6d7784;font-size:10px;box-shadow:0 2px 8px #2939550d;letter-spacing:.1px}
.workspace{max-width:1100px;margin:34px auto 50px;width:calc(100% - 96px);animation:enter .2s ease-out}.workspace-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:26px}.workspace-heading .eyebrow{margin-bottom:9px;font-size:10px}.workspace-heading h1{font-size:34px;letter-spacing:-1.3px;margin:0;font-weight:730}.subtle{background:#f5f6f8;color:#6c7683;min-height:42px;font-size:14px}.subtle:hover{background:#eaeef3}.subtle svg{width:18px;height:18px}.editor{border:1px solid var(--line);border-radius:22px;overflow:hidden;background:#fff;box-shadow:0 8px 35px #27375004}.toolbar{min-height:83px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:17px 23px;border-bottom:1px solid var(--line)}.tabs{display:flex;gap:4px;background:#f4f5f7;border-radius:30px;padding:4px}.tab{border:0;border-radius:30px;padding:11px 17px;font-size:14px;font-weight:560;color:#8a929d;background:transparent;transition:background .15s,color .15s}.tab.active{background:#fff;color:#333e4d;box-shadow:0 1px 4px #2437500d}.download-button{font-size:14px;min-height:43px;padding:11px 21px}.download-button svg{width:18px;height:18px}.download-button[aria-disabled=true]{background:#d5dfed;color:#fff;pointer-events:none}.preview-area{height:min(58vh,550px);min-height:300px;padding:28px;display:flex;align-items:center;justify-content:center;background:#fafbfc;position:relative}.image-stage{position:relative;max-width:100%;max-height:100%;border-radius:9px;overflow:hidden;line-height:0;box-shadow:0 1px 8px #15253f08}.image-stage>img{display:block;max-width:100%;max-height:min(calc(58vh - 56px),494px);width:auto;height:auto;object-fit:contain}.image-stage.is-processing>img{opacity:.73;transition:opacity .2s}.image-info{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:17px 25px;color:#9299a4;font-size:12px;min-height:50px;border-top:1px solid var(--line)}.file-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#6f7986}.result-note{text-align:center;font-size:13px;color:#929aa5;margin-top:20px}.processing-badge{position:absolute;bottom:47px;left:50%;transform:translateX(-50%);background:white;border:1px solid #e8edf4;box-shadow:0 4px 16px #20304014;border-radius:30px;padding:11px 13px 11px 15px;display:flex;align-items:center;gap:9px;font-size:13px;white-space:nowrap;color:#596777}.processing-badge button{border:0;border-left:1px solid #e5e9ef;color:#919aa5;background:transparent;font-size:12px;padding:3px 5px 3px 10px;margin-left:3px}.spinner{width:15px;height:15px;border:2px solid #dceaff;border-top-color:var(--blue);border-radius:50%;animation:spin .7s linear infinite}.processing-effects{position:absolute;inset:0;pointer-events:none}.processing-effects>span{position:absolute;color:#fff;font-size:27px;line-height:1;text-shadow:0 1px 3px #51688650;animation:sparkle 1.4s ease-in-out infinite;top:22%;left:27%}.processing-effects>span:nth-child(2){top:62%;left:74%;animation-delay:-.6s;font-size:18px}.processing-effects>span:nth-child(3){top:45%;left:14%;animation-delay:-.2s;font-size:14px}.processing-effects>span:nth-child(4){top:15%;left:72%;animation-delay:-.8s;font-size:17px}.processing-effects>span:nth-child(5){top:78%;left:39%;animation-delay:-1.1s;font-size:22px}.processing-effects>span:nth-child(6){top:43%;left:56%;animation-delay:-.4s;font-size:21px}.scan-line{position:absolute;top:0;left:0;right:0;height:2px;background:#ffffffb0;animation:scan 2s ease-in-out infinite}
footer{display:flex;justify-content:space-between;gap:20px;padding:25px 5.2% 29px;color:#a1a7b0;font-size:12px}.notice{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);max-width:calc(100% - 40px);width:max-content;background:#fff6f4;color:#a54b3a;border:1px solid #f3d3ca;border-radius:13px;padding:14px 15px 14px 19px;display:flex;align-items:center;gap:20px;z-index:50;font-size:14px;box-shadow:0 4px 30px #55332210}.notice button{font-size:23px;border:0;background:transparent;color:inherit;padding:0 4px}.drop-overlay{position:fixed;inset:12px;z-index:100;background:#f5f9fff5;border:2px dashed #73a9f8;border-radius:26px;display:grid;place-items:center;text-align:center;pointer-events:none}.drop-overlay svg{width:48px;height:48px;color:var(--blue)}.drop-overlay h2{font-size:32px;letter-spacing:-1px;margin:20px 0 10px}.drop-overlay p{color:#8893a3}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@keyframes spin{to{transform:rotate(360deg)}}@keyframes sparkle{0%,100%{opacity:0;transform:scale(.4) rotate(-10deg)}50%{opacity:1;transform:scale(1) rotate(10deg)}}@keyframes scan{0%{top:0;opacity:0}20%,75%{opacity:.5}100%{top:100%;opacity:0}}@keyframes enter{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:1500px){.home{margin-top:105px;margin-bottom:120px}}
@media(max-width:950px){.home{gap:35px;width:calc(100% - 64px);margin-top:65px}.intro h1{font-size:45px;letter-spacing:-2px}.demo-art{width:290px;margin-left:0}.demo-frame{height:190px}.intro-copy{font-size:17px}.upload-benefits{gap:12px;font-size:11px}.upload-card{height:332px}.header-note{font-size:12px}}
@media(max-width:700px){.site-header{height:80px;padding:0 24px}.brand{font-size:26px}.brand svg{width:27px;height:27px}.header-note{font-size:0;gap:0}.header-note svg{height:18px;width:18px}.home{display:flex;flex-direction:column;gap:28px;width:calc(100% - 40px);max-width:440px;margin:25px auto 55px}.intro{text-align:center;padding:0}.demo-art{width:230px;margin:0 auto 23px}.demo-frame{height:149px}.demo-label{font-size:8px;padding:4px 6px;bottom:8px;right:6px}.eyebrow{font-size:9px;margin-bottom:15px;letter-spacing:1.2px}.intro h1{font-size:43px;letter-spacing:-2px}.intro-copy{font-size:16px;margin-top:17px}.intro-detail{font-size:13px;margin-top:8px}.upload-column{width:100%;padding:0}.upload-card{height:280px;border-radius:22px}.upload-symbol{margin-bottom:17px}.upload-symbol svg{height:35px;width:35px}.upload-button{min-height:53px;font-size:18px}.drop-copy{font-size:15px;margin-top:16px}.paste-copy{font-size:13px;margin-top:9px}.file-types{font-size:11px;margin-top:20px}.upload-benefits{gap:20px;font-size:11px;margin-top:16px}footer{font-size:10px;padding:20px 24px;gap:12px}.workspace{width:calc(100% - 28px);margin:17px auto 35px}.workspace-heading{margin:0 9px 20px}.workspace-heading h1{font-size:29px}.workspace-heading .eyebrow{font-size:8px;letter-spacing:.9px}.workspace-heading .subtle{font-size:12px;padding:10px 12px;gap:5px;min-height:37px}.workspace-heading .subtle svg{height:15px;width:15px}.toolbar{padding:12px;flex-wrap:wrap;justify-content:center;gap:12px}.tabs{flex:1;justify-content:center}.tab{padding:10px 12px;font-size:12px;white-space:nowrap}.download-button{width:100%;min-height:42px}.preview-area{height:410px;min-height:240px;padding:18px}.image-stage>img{max-height:374px}.image-info{font-size:10px;padding:13px 15px;gap:12px}.result-note{font-size:12px}.processing-badge{bottom:28px;font-size:11px;padding:10px}.processing-badge button{font-size:10px}.drop-overlay h2{font-size:26px}.notice{font-size:13px}.editor{border-radius:18px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.processing-effects>span{opacity:.8}.spinner{border-top-color:var(--blue)}}
.recent-link{display:block;width:max-content;margin:19px auto 0;font-size:13px;color:#7b8798;text-decoration:underline;text-underline-offset:4px}.recent-link:hover{color:var(--blue)}
.editor-page footer{display:none}.editor-page .workspace{margin-bottom:154px}.image-tray{position:fixed;z-index:20;left:50%;bottom:23px;transform:translateX(-50%);display:flex;align-items:center;gap:11px;padding:9px;max-width:calc(100% - 40px);background:#ffffffed;border:1px solid #eef0f4;border-radius:22px;box-shadow:0 4px 18px #24375006}.add-image{flex:0 0 73px;width:73px;height:73px;border:0;border-radius:14px;background:#f0f2f5;color:#8993a0;display:grid;place-items:center;transition:background .15s}.add-image:hover{background:#e5eaf1;color:#52647c}.add-image svg{height:29px;width:29px;stroke-width:1.6}.image-tabs{display:flex;gap:11px;overflow-x:auto;scrollbar-width:thin;max-width:730px;padding:4px 3px}.image-tab-item{position:relative;flex:0 0 73px;width:73px;height:73px}.image-tab{height:73px;width:73px;display:flex;align-items:center;justify-content:center;border:2px solid transparent;border-radius:14px;padding:4px;background:#f5f6f8;overflow:hidden;transition:border .15s,background .15s}.image-tab[aria-selected=true]{border-color:var(--blue);background:white;box-shadow:0 0 0 1px var(--blue)}.image-tab img{width:100%;height:100%;object-fit:contain;border-radius:8px}.remove-image{position:absolute;right:-1px;top:-1px;display:none;align-items:center;justify-content:center;width:21px;height:21px;padding:0;border:2px solid white;border-radius:50%;background:#7c8592;color:#fff;font-size:16px;line-height:1}.image-tab-item:hover .remove-image,.image-tab-item:focus-within .remove-image,.image-tab-item.selected .remove-image{display:flex}.pending-indicator{position:absolute;bottom:8px;right:8px;width:6px;height:6px;background:#9eabbc;border:1px solid #fff;border-radius:50%}.saved-label{position:absolute;bottom:-20px;left:0;right:0;text-align:center;font-size:10px;color:#99a2af;white-space:nowrap}.editor-page .home{margin-bottom:160px}.image-tray .image-tabs:empty{display:none}.editor-page .preview-area{height:min(51vh,500px)}.editor-page .image-stage>img{max-height:min(calc(51vh - 56px),444px)}
@media(max-width:700px){.image-tray{bottom:26px;gap:8px;padding:7px;border-radius:18px;max-width:calc(100% - 24px)}.add-image{flex-basis:59px;width:59px;height:59px;border-radius:11px}.image-tab-item,.image-tab{width:59px;height:59px;border-radius:11px}.image-tab-item{flex-basis:59px}.image-tabs{gap:8px}.saved-label{font-size:9px}.editor-page .workspace{margin-bottom:137px}.editor-page .preview-area{height:46vh;min-height:220px}.editor-page .image-stage>img{max-height:calc(46vh - 36px)}.workspace-heading h1{font-size:clamp(21px,6vw,29px)}}
/* The editor is a fixed viewport: toolbar, fitted canvas, and bottom filmstrip. */
body.editor-page{height:100dvh;min-height:0;overflow:hidden}.editor-page .site-header{height:72px;flex:0 0 72px}.editor-page main{flex:1;min-height:0;display:flex;flex-direction:column;position:relative;padding-bottom:104px;overflow:hidden}.editor-page .workspace{width:100%;max-width:none;margin:0;flex:1;min-height:0;display:flex;flex-direction:column;padding:8px 32px 0}.editor-page .workspace-heading{display:none}.editor-page .editor{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden;border:0;border-radius:0;box-shadow:none;background:transparent}.editor-page .toolbar{align-self:center;flex:0 0 64px;height:64px;min-height:64px;width:min(960px,100%);padding:9px 12px 9px 19px;border:1px solid #e8ebf0;border-radius:999px;box-shadow:0 3px 14px #25395304;gap:14px;flex-wrap:nowrap;background:white}.editor-page .tabs{display:contents}.editor-page .tab{display:flex;align-items:center;justify-content:center;gap:9px;padding:9px 8px;font-size:16px;font-weight:580;background:transparent;box-shadow:none;color:#637080;white-space:nowrap}.editor-page .tab.active{color:#465466}.editor-page .tab svg{width:23px;height:23px;color:#8a95a1;stroke-width:1.7}.editor-page .compare-button{margin-left:auto;border-radius:9px;padding:9px}.editor-page .compare-button:hover,.editor-page .compare-button.active{background:#f0f5fb}.editor-page .compare-button.active svg{color:var(--blue)}.editor-page .download-button{width:auto;min-height:44px;padding:12px 22px;font-size:15px}.editor-page .preview-area{height:auto;min-height:0;flex:1;padding:28px 18px 10px;background:transparent;overflow:hidden}.editor-page .image-stage{max-height:100%;max-width:100%;border:1px solid #e9ecf0;border-radius:17px;box-shadow:0 7px 25px #1d35560a;flex-shrink:0}.editor-page .image-stage>img{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain}.editor-page .image-info{flex:0 0 27px;align-self:center;min-height:27px;width:min(760px,100%);padding:5px 0 0;border:0;font-size:11px;gap:20px}.editor-page .result-note{flex:0 0 25px;height:25px;line-height:20px;font-size:11px;text-align:center;margin:0;padding:3px 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.editor-page .image-tray{left:0;right:0;bottom:0;transform:none;width:100%;max-width:none;height:104px;padding:12px 20px 18px;border:0;border-radius:0;box-shadow:none;background:#fff;justify-content:center;gap:12px}.editor-page .image-tabs{max-width:min(800px,calc(100vw - 135px));overscroll-behavior-x:contain}.editor-page .saved-label{display:none}.editor-page .home{overflow:auto;margin-top:20px;margin-bottom:20px}.editor-page .processing-badge{bottom:24px}.editor-page .notice{bottom:112px}
@media(max-width:700px){.editor-page .site-header{height:64px;flex-basis:64px}.editor-page main{padding-bottom:90px}.editor-page .workspace{padding:3px 12px 0}.editor-page .toolbar{height:55px;min-height:55px;flex-basis:55px;gap:9px;padding:6px 8px 6px 13px}.editor-page .tab{font-size:13px;padding:8px 5px;gap:6px}.editor-page .tab svg{width:20px;height:20px}.editor-page .compare-button{padding:7px}.editor-page .download-button{font-size:13px;padding:11px 16px;min-height:39px;gap:6px}.editor-page .download-button svg{width:16px;height:16px}.editor-page .preview-area{height:auto;min-height:0;padding:22px 3px 10px}.editor-page .image-stage{border-radius:12px}.editor-page .image-stage>img{max-height:100%}.editor-page .image-info{font-size:10px;min-height:24px;flex-basis:24px;gap:12px}.editor-page .result-note{font-size:10px;height:22px;flex-basis:22px}.editor-page .image-tray{height:90px;padding:10px 12px 17px;gap:10px}.editor-page .image-tabs{max-width:calc(100vw - 107px)}.editor-page .processing-badge{bottom:18px;max-width:calc(100% - 12px);font-size:10px}.editor-page .notice{bottom:95px}}
@media(max-height:540px){.editor-page .site-header{height:48px;flex-basis:48px}.editor-page main{padding-bottom:72px}.editor-page .toolbar{height:48px;min-height:48px;flex-basis:48px}.editor-page .preview-area{padding-top:8px;padding-bottom:3px}.editor-page .image-tray{height:72px;padding:4px 12px 10px}.editor-page .add-image,.editor-page .image-tab,.editor-page .image-tab-item{height:52px;width:52px;flex-basis:52px}.editor-page .result-note{display:none}}
/* Keep the upload composition centered in the available homepage space. */
body:not(.editor-page) main{display:flex;align-items:center;justify-content:center;padding:44px 0 58px;min-height:0}body:not(.editor-page) .home{margin:0 auto;width:min(1080px,calc(100% - 96px));gap:70px;align-items:center}body:not(.editor-page) .upload-column{padding-top:0}body:not(.editor-page) .demo-art{transform:none;margin-left:0}.editor-page:not(.editor-has-image) main{padding-bottom:0;justify-content:center}.editor-page:not(.editor-has-image) .home{margin:20px auto}
@media(max-width:950px){body:not(.editor-page) .home{width:calc(100% - 64px);gap:35px}}
@media(max-width:700px){body:not(.editor-page) main{padding:15px 0 30px}body:not(.editor-page) .home{width:calc(100% - 40px);gap:26px;max-width:440px}body:not(.editor-page) .demo-art{margin-left:auto;margin-right:auto}body:not(.editor-page) .upload-column{padding:0}}
.editor-page .tab svg.chevron{width:13px;height:13px;margin-left:-3px}.brush-tools{flex:0 0 auto;align-self:center;width:min(960px,100%);display:flex;align-items:center;justify-content:center;gap:20px;padding:12px 15px 0;font-size:12px;color:#7b8797}.brush-modes{display:flex;background:#f2f4f7;border-radius:10px;padding:3px;gap:3px}.brush-mode{border:0;background:transparent;padding:7px 10px;display:flex;align-items:center;gap:5px;font-size:12px;color:#8792a0;border-radius:8px}.brush-mode.selected{background:#fff;color:#3c6da9;box-shadow:0 1px 3px #00000008}.brush-mode svg{height:16px;width:16px}.brush-size{display:flex;align-items:center;gap:9px}.brush-size input{width:96px;cursor:pointer}.edge-assist{display:flex;align-items:center;gap:5px;white-space:nowrap;font-size:12px;cursor:pointer}.brush-history{display:flex;gap:6px}.brush-history button{border:0;background:transparent;color:#7c899a;padding:7px;display:grid;place-items:center;border-radius:7px}.brush-history button:hover:enabled{background:#eff3f8}.brush-history button:disabled{opacity:.3}.brush-history svg{width:18px;height:18px}.brush-done{border:0;background:#edf4ff;color:#3175cb;border-radius:8px;font-size:12px;padding:8px 12px;font-weight:600}.brush-canvas{position:absolute;inset:0;width:100%;height:100%;touch-action:none;cursor:none}.image-stage.editing>#preview-image{visibility:hidden}.brush-cursor{position:absolute;pointer-events:none;border:1px solid white;box-shadow:0 0 0 1px #26354e99;border-radius:50%;transform:translate(-50%,-50%);z-index:5}.editor-page .image-stage>.reveal-original{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}.reveal-line{position:absolute;top:0;bottom:0;left:0;width:2px;background:#fff;box-shadow:0 0 3px #6b809655;pointer-events:none}.revealing .reveal-original{animation:cutout-wipe .48s cubic-bezier(.25,.7,.25,1) forwards}.revealing .reveal-line{animation:cutout-line .48s cubic-bezier(.25,.7,.25,1) forwards}@keyframes cutout-wipe{from{clip-path:inset(0 0 0 0)}to{clip-path:inset(0 0 0 100%)}}@keyframes cutout-line{from{left:0}to{left:100%}}
@media(max-width:700px){.brush-tools{flex-wrap:wrap;gap:8px 13px;padding:10px 0 0;justify-content:center}.brush-size input{width:81px}.brush-mode{padding:6px 9px}.brush-history button{padding:5px}.brush-done{padding:7px 10px}.brush-tools:not([hidden])+.preview-area{padding-top:12px}.editor-page .tab svg.chevron{width:11px;height:11px;margin-left:-5px}.editor-page .toolbar{gap:6px}}

.brush-status{position:absolute;left:50%;top:8px;transform:translateX(-50%);padding:7px 12px;border:1px solid #e9edf2;border-radius:20px;background:#ffffffed;box-shadow:0 2px 8px #26364a05;color:#7b8797;font-size:11px;line-height:1.3;white-space:nowrap;pointer-events:none;z-index:6}.brush-status.busy{color:#3175cb}.brush-status.busy::before{content:"";display:inline-block;width:9px;height:9px;border:1.5px solid #dceaff;border-top-color:#3175cb;border-radius:50%;margin-right:7px;vertical-align:-1px;animation:spin .7s linear infinite}.image-stage[aria-busy=true] .brush-canvas{cursor:progress}@media(prefers-reduced-motion:reduce){.brush-status.busy::before{animation:none}}

.improve-button{display:flex;align-items:center;justify-content:center;gap:6px;flex-shrink:0;border:0;background:#f0f5ff;color:#3175cb;border-radius:999px;padding:10px 14px;font-size:14px;font-weight:550}.improve-button:hover{background:#e5efff}.improve-button svg{height:17px;width:17px}.improve-button:disabled{opacity:.45;cursor:default}@media(max-width:700px){.improve-button{font-size:12px;padding:9px;gap:4px}.improve-button svg{width:14px;height:14px}.editor-page .toolbar:has(.improve-button:not([hidden])) .download-button{padding-inline:12px}}

.upload-card{position:relative}.ai-status{position:absolute;bottom:12px;left:12px;right:12px;margin:0;text-align:center;font-size:11px;line-height:15px;color:#8493a5}.ai-status::before{content:"";display:inline-block;width:5px;height:5px;background:#9aaac0;border-radius:50%;margin-right:6px;vertical-align:1px}.ai-status[data-state=ready]::before{background:#5b9b86}.ai-status[data-state=preparing]::before{width:8px;height:8px;border:1.5px solid #dce5f0;border-top-color:#6c96cc;background:none;vertical-align:0;animation:spin .7s linear infinite}@media(prefers-reduced-motion:reduce){.ai-status[data-state=preparing]::before{animation:none}}

/* Consistent, keyboard-accessible editor controls. */
.brush-tools{color:#758192;gap:18px}
.brush-modes{background:#f1f3f6;padding:3px;gap:2px;border-radius:10px}
.brush-mode{color:#7c8797;min-height:30px;transition:background .12s,color .12s}
.brush-mode.selected{color:#426183;background:#fff;box-shadow:0 1px 3px #26364a0a}
.brush-mode:not(.selected):hover{background:#e8ecf2;color:#4e6076}
.brush-size{gap:10px}
.brush-size input{appearance:none;-webkit-appearance:none;height:28px;padding:0;margin:0;background:transparent;outline:none;--range-fill:31.034%}
.brush-size input::-webkit-slider-runnable-track{height:4px;border-radius:999px;background:linear-gradient(to right,var(--blue) 0 var(--range-fill),#e2e7ef var(--range-fill) 100%)}
.brush-size input::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:16px;height:16px;margin-top:-6px;border:2px solid #fff;border-radius:50%;background:var(--blue);box-shadow:0 0 0 1px #dce4ef;transition:transform .12s}
.brush-size input::-moz-range-track{height:4px;border-radius:999px;background:#e2e7ef}
.brush-size input::-moz-range-progress{height:4px;border-radius:999px;background:var(--blue)}
.brush-size input::-moz-range-thumb{width:12px;height:12px;border:2px solid #fff;border-radius:50%;background:var(--blue);box-shadow:0 0 0 1px #dce4ef;transition:transform .12s}
.brush-size input:hover::-webkit-slider-thumb,.brush-size input:active::-webkit-slider-thumb{transform:scale(1.12)}
.brush-size input:hover::-moz-range-thumb,.brush-size input:active::-moz-range-thumb{transform:scale(1.12)}
.brush-size input:focus-visible{outline:2px solid #9ebdf7;outline-offset:3px;border-radius:7px}
.edge-assist{gap:8px;min-height:32px;user-select:none;color:#64748a}
.edge-assist input{appearance:none;-webkit-appearance:none;display:grid;place-content:center;width:16px;height:16px;flex:0 0 16px;padding:0;margin:0;border:1.5px solid #c8d1df;border-radius:5px;background:#fff;cursor:pointer;transition:background .12s,border-color .12s}
.edge-assist input::before{content:"";width:4px;height:7px;border:solid #fff;border-width:0 1.8px 1.8px 0;transform:translateY(-1px) rotate(45deg) scale(0);transition:transform .12s}
.edge-assist input:checked{background:var(--blue);border-color:var(--blue)}
.edge-assist input:checked::before{transform:translateY(-1px) rotate(45deg) scale(1)}
.edge-assist:hover input:not(:checked){border-color:#8da5c6}
.edge-assist input:focus-visible{outline:2px solid #9ebdf7;outline-offset:3px}
.brush-history{gap:4px}
.brush-history button{width:32px;height:32px;padding:7px}
.brush-done{min-height:32px;padding:8px 13px;background:#eff4fc;color:#426fba;transition:background .12s}
.brush-done:hover{background:#e4edfb}
@media(max-width:700px){.brush-tools{gap:6px 13px}.brush-mode{min-height:29px}.brush-history button{width:30px;height:30px}}
@media(prefers-reduced-motion:reduce){.brush-tools *,.edge-assist input::before{transition:none}.brush-size input::-webkit-slider-thumb,.brush-size input::-moz-range-thumb{transition:none}}
@media(forced-colors:active){.edge-assist input{appearance:auto}.edge-assist input::before{display:none}.brush-size input::-webkit-slider-thumb{background:Highlight}.brush-size input::-webkit-slider-runnable-track{background:CanvasText}.brush-size input::-moz-range-thumb,.brush-size input::-moz-range-progress{background:Highlight}}

/* Homepage examples sit below the first-screen upload area. */
body:not(.editor-page) main{display:block;padding:0}
body:not(.editor-page) .home{min-height:calc(100svh - 176px);padding:40px 0 44px}
.editor-page .home-extras{display:none}
.examples-cue{height:76px;display:flex;align-items:center;justify-content:center;gap:10px;font-size:13px;color:#7c8797}
.examples-cue:hover{color:var(--blue)}
.examples-cue svg{width:16px;height:16px}
.examples-section{border-top:1px solid #edf0f4;background:#fafbfc;padding:76px 0 0;scroll-margin-top:24px}
.examples-inner{width:min(1080px,calc(100% - 96px));margin:0 auto}
.examples-heading{text-align:center;margin:0 auto 42px;max-width:600px}
.examples-heading h2{font-size:36px;line-height:1.2;letter-spacing:-1.2px;margin:0 0 14px;font-weight:720}
.examples-heading p{font-size:15px;line-height:1.7;color:#7a8594;margin:0}
.examples-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px}
.example-card{min-width:0}
.example-card h3{font-size:19px;letter-spacing:-.35px;font-weight:650;margin:22px 0 9px}
.example-card>p{font-size:14px;line-height:1.7;color:#7c8795;margin:0;max-width:310px}
.comparison{aspect-ratio:4/3;position:relative;overflow:hidden;border:1px solid #e6eaf0;border-radius:16px;isolation:isolate;touch-action:pan-y;user-select:none;cursor:ew-resize}
.comparison>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;pointer-events:none}
.comparison-before{clip-path:inset(0 calc(100% - var(--split)) 0 0)}
.comparison-divider{position:absolute;top:0;bottom:0;left:var(--split);width:2px;transform:translateX(-1px);background:#fff;pointer-events:none;z-index:2}
.comparison-divider>span{position:absolute;left:1px;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:38px;height:38px;border:1px solid #e5e9ee;background:#fff;border-radius:50%;box-shadow:0 2px 8px #1e304019;color:#63738a}
.comparison-divider svg{width:22px;height:22px;stroke-width:1.8}
.comparison-label{position:absolute;top:13px;z-index:1;font-size:10px;line-height:1;letter-spacing:.1px;background:#fffffff2;border:1px solid #ffffffa0;color:#566476;padding:7px 9px;border-radius:6px;pointer-events:none}
.before-label{left:13px}.after-label{right:13px}
.comparison.at-start .before-label,.comparison.at-end .after-label{visibility:hidden}
.comparison-range{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:ew-resize;touch-action:pan-y}
.comparison:focus-within{outline:3px solid #9abcf5;outline-offset:4px}
.examples-note{font-size:11px;color:#97a0ad;text-align:center;margin:28px 0 0}
.examples-cta{margin-top:60px;padding:34px 0 38px;border-top:1px solid #e7ebf1;display:flex;align-items:center;justify-content:space-between;gap:28px}
.examples-cta h2{font-size:23px;font-weight:650;letter-spacing:-.6px;margin:0 0 8px}
.examples-cta p{font-size:14px;color:#7b8797;line-height:1.6;margin:0}
.examples-cta .button{flex-shrink:0;padding-inline:25px}
.examples-cta .button svg{width:18px;height:18px}
@media(max-width:950px){.examples-inner{width:calc(100% - 64px)}.examples-grid{gap:20px}.comparison-label{font-size:9px;padding:6px 7px;top:10px}.before-label{left:10px}.after-label{right:10px}}
@media(max-width:700px){body:not(.editor-page) .home{min-height:0;padding:15px 0 12px}.examples-cue{height:76px}.examples-section{padding-top:48px}.examples-inner{width:calc(100% - 40px);max-width:440px}.examples-heading{margin-bottom:30px}.examples-heading h2{font-size:29px;letter-spacing:-.9px}.examples-heading p{font-size:14px;max-width:300px;margin:auto}.examples-grid{grid-template-columns:1fr;gap:34px}.example-card h3{margin-top:17px}.example-card>p{max-width:none}.comparison-label{font-size:10px;padding:7px 9px;top:13px}.before-label{left:13px}.after-label{right:13px}.examples-note{margin-top:24px}.examples-cta{margin-top:34px;padding:29px 0 34px;flex-direction:column;text-align:center;gap:22px}.examples-cta h2{font-size:22px}.examples-cta p{max-width:285px}}

/* Selection methods keep the area choice separate from restore / erase. */
.brush-tools{flex-wrap:wrap;gap:10px 16px;padding-top:12px}
.selection-tools{display:flex;gap:3px;padding:3px;border:1px solid #e7ebf1;border-radius:11px;background:#fff}
.selection-tool{display:flex;align-items:center;justify-content:center;gap:6px;min-height:31px;padding:6px 10px;border:0;border-radius:7px;background:transparent;color:#7a8798;font-size:12px;font-weight:550}
.selection-tool svg{width:17px;height:17px}
.selection-tool.selected{color:#316fca;background:#edf4ff}
.selection-tool:hover:not(.selected){background:#f4f6f9;color:#4d617b}
.selection-tool:focus-visible{outline:2px solid #9ebdf7;outline-offset:2px}
.brush-canvas[data-tool=object],.brush-canvas[data-tool=lasso]{cursor:crosshair}
@media(max-width:700px){.selection-tools{order:-1;width:100%;max-width:310px}.selection-tool{flex:1}.brush-tools{gap:7px 12px}.brush-status{font-size:10px;padding:6px 9px;max-width:calc(100% - 16px);text-align:center;white-space:normal}}

.brush-status{width:max-content}

/* Model preparation is visible without blocking upload or manual editing. */
.ai-status{position:static;margin:14px auto 0;max-width:340px;min-height:52px;padding:0 5px;color:#64748a;font-size:12px;line-height:17px}
.ai-status::before{display:none}
.ai-status #ai-label::before{content:"";display:inline-block;width:6px;height:6px;margin-right:6px;vertical-align:1px;border-radius:50%;background:#9aaac0}
.ai-status[data-state=ready] #ai-label::before{background:#5b9b86}
.ai-status small,.brush-status small{display:block;font-size:10px;font-weight:400;line-height:15px;color:#7b8797;margin-top:5px}
.ai-progress{appearance:none;-webkit-appearance:none;display:block;width:100%;height:4px;margin:7px 0 0;border:0;border-radius:999px;overflow:hidden;background:#e7edf5;color:var(--blue)}
.ai-progress::-webkit-progress-bar{border-radius:999px;background:#e7edf5}
.ai-progress::-webkit-progress-value{border-radius:999px;background:var(--blue);transition:width .12s linear}
.ai-progress::-moz-progress-bar{border-radius:999px;background:var(--blue)}
.ai-progress:indeterminate{background:linear-gradient(90deg,#e7edf5 30%,#8ab6f3 50%,#e7edf5 70%);background-size:200% 100%;animation:ai-loading 1.2s linear infinite}
.ai-progress:indeterminate::-webkit-progress-bar{background:transparent}
.ai-status+.upload-benefits{margin-top:9px}
.processing-copy{min-width:0;line-height:1.4;text-align:left}
.processing-badge{max-width:calc(100% - 24px);white-space:normal;border-radius:16px}
.processing-badge .spinner,.processing-badge button{flex-shrink:0}
.brush-status:has(.ai-progress){border-radius:12px;min-width:230px;max-width:calc(100% - 16px);padding:10px 14px;text-align:center;white-space:normal}
@keyframes ai-loading{to{background-position:-200% 0}}
@media(max-width:700px){.ai-status{min-height:52px;margin-top:12px}.brush-status:has(.ai-progress){min-width:min(250px,calc(100% - 16px))}.editor-page .processing-badge{max-width:calc(100% - 12px)}.processing-copy{max-width:240px}}

.brand-group{display:flex;align-items:center;gap:12px;min-width:0}.beta-label{font-size:10px;font-weight:500;color:#798391;background:#f4f5f7;border-radius:5px;padding:4px 6px;white-space:nowrap;letter-spacing:0}@media(max-width:400px){.brand-group{gap:8px}.beta-label{font-size:9px;padding:3px 5px}.site-header{gap:12px}}
