:root{font:14px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#202b3a;background:#f4f6fa;--blue:#2756dd;--ink:#192433;--muted:#768294;--border:#e2e7f0}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.42;cursor:not-allowed}button:focus-visible,a:focus-visible{outline:3px solid #83a0ff;outline-offset:3px}a{color:inherit}.sidebar{position:fixed;inset:0 auto 0 0;width:220px;background:#192638;color:#bdc9da;padding:32px 22px;display:flex;flex-direction:column;z-index:2}.brand{font-size:24px;letter-spacing:-1.3px;text-decoration:none;font-weight:750;color:#fff}.brand span{font-weight:350}.brand b{color:#a4baff;margin-left:7px;font-size:29px}.workspace-tag{font-size:8px;letter-spacing:1.8px;color:#7f94b2;margin:17px 0 38px}.sidebar nav{display:flex;flex-direction:column;gap:9px}.sidebar nav a{text-decoration:none;font-size:12px;padding:14px 13px;border-radius:9px}.sidebar nav a:hover{background:#24364c}.sidebar nav .active{background:#2d4770;color:white}.sidebar-bottom{margin-top:auto;font-size:11px;color:#afbdd2}.sidebar-bottom p{font-size:10px;color:#7087a6;line-height:1.8}.online-dot{display:inline-block;background:#6fcca2;width:6px;height:6px;border-radius:50%;margin-right:6px}.shell{margin-left:220px}header{height:78px;padding:0 36px;display:flex;align-items:center;justify-content:space-between;gap:15px;background:#ffffffc9;border-bottom:1px solid var(--border)}header strong{font-size:12px}.breadcrumb,.slash{font-size:12px;color:#98a3b3}.slash{margin:0 14px}.header-actions{display:flex;align-items:center;gap:15px}.header-actions>span{font-size:10px;color:#8492a3}main{max-width:1600px;margin:auto;padding:35px}.heading{display:flex;align-items:center;justify-content:space-between;gap:28px;margin:5px 0 25px}.eyebrow{font-size:9px;letter-spacing:1.8px;font-weight:650;color:#7186a9}h1{font-size:clamp(25px,2.7vw,38px);letter-spacing:-1.4px;line-height:1.2;margin:12px 0}p{line-height:1.65;color:#748197}.heading p{font-size:12px;max-width:640px;margin-bottom:0}.heading>button{white-space:nowrap}.steps{display:flex;gap:25px;margin:28px 0;font-size:11px;color:#8a96a7}.steps a{text-decoration:none}.steps b{font-size:10px;padding:5px 8px;background:#e3eafc;color:#3d64c2;border-radius:50%;margin-right:6px}.work-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(330px,.85fr);gap:22px;align-items:start}.card{background:#fff;border:1px solid var(--border);border-radius:15px;padding:25px;box-shadow:0 4px 16px #1b2b4a04}.card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:21px}.kicker{font-size:8px;letter-spacing:1.7px;color:#8c9aaf;font-weight:650}h2{font-size:18px;letter-spacing:-.5px;margin:8px 0 0}.tag{font-size:9px;background:#f1f4f9;border:1px solid #e6ebf3;border-radius:30px;padding:7px 10px;white-space:nowrap;color:#77849b}.drop{position:relative;min-height:124px;border:1.5px dashed #b9c9ed;background:#f7f9ff;border-radius:10px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:7px;text-align:center;padding:17px;cursor:pointer;transition:background .15s}.drop.over{background:#e8efff;border-color:#3663dc}.drop:focus-within{outline:3px solid #97aff1}.drop input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.drop strong{font-size:12px;color:#3a5792}.drop span:not(.upload-symbol),.drop small{font-size:9px;color:#8b9cb7}.upload-symbol{font-size:24px;color:#5679c8}.photo-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:16px 0}.thumbs{display:flex;gap:8px;overflow:auto;min-height:49px}.thumbs button{background:#f2f4f8;border:2px solid transparent;border-radius:8px;width:49px;height:49px;padding:2px;flex-shrink:0}.thumbs button.active{border-color:#4169dc}.thumbs img{width:100%;height:100%;object-fit:contain;border-radius:4px}.view-tabs{display:flex;align-items:center;gap:4px;background:#f6f7fa;border:1px solid #e6eaf1;border-bottom:0;border-radius:10px 10px 0 0;padding:7px}.view-tabs button{border:0;background:transparent;color:#8b98ab;font-size:10px;padding:8px 12px;border-radius:6px}.view-tabs button.selected{background:white;box-shadow:0 1px 4px #1d315211;color:#2f59c8}.view-tabs>span{margin-left:auto;max-width:150px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-size:9px;color:#97a3b6}.stage{position:relative;min-height:260px;max-height:520px;aspect-ratio:1;display:flex;align-items:stretch;border:1px solid #e5e9f0;border-radius:0 0 10px 10px;overflow:hidden;background:repeating-conic-gradient(#eef0f4 0 25%,#f9fafc 0 50%) 50%/18px 18px}.canvas-wrap{position:relative;min-width:0;flex:1;display:flex;align-items:center;justify-content:center}.canvas-wrap canvas{width:100%;height:100%;object-fit:contain}.canvas-label{position:absolute;left:12px;top:12px;border-radius:5px;background:#ffffffde;color:#7d8999;padding:6px 8px;font-size:9px;z-index:1}.second{border-left:1px solid #d5dfef}.stage.comparing{aspect-ratio:1.4}.stage.comparing canvas{width:100%;height:100%;object-fit:contain}#sample-label{position:absolute;bottom:10px;left:10px;font-size:9px;padding:5px;background:#ffffffe0;border-radius:4px;color:#758197}.empty{position:absolute;inset:0;z-index:1;display:flex;justify-content:center;align-items:center;flex-direction:column;background:#f5f7fb;color:#8ea0bc}.empty span{font-size:32px;color:#aebbd0}.empty strong{font-size:12px;margin:12px 0 0}.empty p{font-size:10px;color:#9ba8ba}.image-status{font-size:10px;line-height:1.6;color:#7c8ba0;margin:13px 0}.tool-grid,.two{display:grid;grid-template-columns:1fr 1fr;gap:12px}label{font-size:11px;color:#64748c;display:flex;flex-direction:column;gap:7px;font-weight:600}input,select,textarea{width:100%;border:1px solid #dfe5ef;border-radius:7px;padding:11px 12px;background:#fff;color:#324059;font-size:12px;font-weight:400;min-width:0}input:focus,select:focus,textarea:focus{outline:2px solid #b7c9ff;outline-offset:1px}input::placeholder,textarea::placeholder{color:#a2acbc}textarea{resize:vertical}.scale-label{position:relative;margin:17px 0}.scale-label span{position:absolute;right:0;top:0;font-size:10px;color:#92a0b8}.scale-label input{accent-color:#3863db;padding:0;cursor:pointer}.processing-actions{display:flex;gap:9px;align-items:stretch}.processing-actions .primary{flex:1}.processing-actions select{font-size:10px;width:135px;background:#f8faff}.primary,.outline,.quiet{border-radius:7px;padding:11px 14px;font-size:11px;font-weight:600;line-height:1.3}.primary{border:1px solid var(--blue);background:var(--blue);color:white;box-shadow:0 3px 7px #2756dd18}.primary:hover:enabled{background:#204bc7}.outline{background:#fff;color:#5c6d88;border:1px solid #dbe3f0}.quiet{background:transparent;border:0;color:#7d8eaa;font-size:10px;padding:8px}.secondary-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.secondary-actions .quiet{padding-left:0}.hint{font-size:9px;color:#9aa6b7;line-height:1.7;margin:12px 0 0}.section-note{font-size:11px;margin:-7px 0 22px}.details-card form{display:flex;flex-direction:column;gap:16px}.required{color:#dd7f79}.attribute-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:-12px}.attribute-head strong{font-size:11px;color:#65758f}.attribute-row{display:grid;grid-template-columns:1fr 1.1fr 25px;gap:8px;margin-bottom:8px}.attribute-row button{padding:0}.export-card{margin-top:22px}.export-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:25px}.export-grid label+label{margin-top:16px}.export-grid label>span{font-size:9px;color:#97a4b7}#result-text{font-size:12px;line-height:1.8}.export-box{padding:24px;background:#f4f7fd;border:1px solid #e5ebf7;border-radius:10px}.export-box h3{font-size:16px;letter-spacing:-.3px;margin-top:0}.export-box ul{font-size:11px;line-height:1.9;color:#72819b;padding-left:18px}.export-box p,.export-box small{font-size:10px;line-height:1.8;color:#8b99af}.export-box .primary{width:100%;margin:14px 0}.help{margin:34px 0}.help h2{font-size:18px;margin-bottom:15px}.help>div{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px}.help details{background:#fff;border:1px solid var(--border);border-radius:10px;padding:17px;font-size:11px}.help summary{cursor:pointer;color:#6d7b92;font-weight:600}.help p{font-size:11px}footer{border-top:1px solid var(--border);padding:23px 0;color:#9ba8b9;font-size:9px;display:flex;justify-content:space-between;gap:15px}.progress-wrap{padding:15px;background:#eef3ff;border-radius:8px;margin:14px 0}.progress-wrap progress{width:100%;height:5px;accent-color:#3864d9}.progress-wrap span{display:block;font-size:10px;color:#5f7bb8;margin-top:8px}.review{margin-top:15px;padding:17px;background:#f1f6ff;border:1px solid #cddcfc;border-radius:9px}.review strong{font-size:11px;color:#46669d}.review p{font-size:10px}.review>div{display:flex;gap:8px}.alert{font-size:11px;padding:13px;border-radius:8px;margin-bottom:15px;line-height:1.6}.error{background:#fff3f1;color:#a96257;border:1px solid #f0d2cc}.toast{position:fixed;left:50%;bottom:22px;transform:translateX(-50%);z-index:20;max-width:92vw;box-shadow:0 10px 30px #12243b24;border-radius:10px;padding:15px 21px;background:#23364e;color:#fff;font-size:12px;line-height:1.6}[hidden]{display:none!important}@media(min-width:1550px){main{padding:40px 50px}.stage{max-height:590px}}@media(max-width:1130px){.sidebar{width:175px;padding:27px 15px}.brand{font-size:21px}.workspace-tag{font-size:7px}.sidebar nav a{font-size:10px;padding:12px 9px}.shell{margin-left:175px}main{padding:24px}.work-grid{grid-template-columns:1fr}.heading{align-items:flex-start}.heading>button{font-size:9px}.stage{max-height:430px}.help>div{grid-template-columns:1fr}.details-card form{display:grid;grid-template-columns:1fr 1fr}.details-card form>*{grid-column:1/-1}.details-card form>.two{grid-column:1/-1}}@media(max-width:650px){.sidebar{position:static;width:auto;padding:15px 18px;flex-direction:row;justify-content:space-between;align-items:center}.sidebar .workspace-tag,.sidebar nav,.sidebar-bottom{display:none}.shell{margin:0}header{height:62px;padding:0 18px}.header-actions>span{display:none}.breadcrumb,.slash{display:none}main{padding:20px 14px}.heading{display:block}.heading>button{margin-top:17px}.eyebrow{font-size:7px}h1{font-size:28px;letter-spacing:-1px}.heading p{font-size:11px}.steps{gap:12px;justify-content:space-between;font-size:8px}.steps b{font-size:8px;padding:4px 6px;margin-right:3px}.card{padding:18px}.card-head h2{font-size:17px}.view-tabs>span{display:none}.view-tabs button{font-size:9px;padding:8px 10px}.processing-actions{flex-wrap:wrap}.processing-actions select{width:100%}.export-grid{grid-template-columns:1fr}.stage{min-height:250px;max-height:none}.stage.comparing{aspect-ratio:1}.tool-grid label,.two label{font-size:10px}.help{margin-top:28px}footer{flex-direction:column}.header-actions{gap:5px}.header-actions .quiet{font-size:9px}.review>div{flex-wrap:wrap}}

.crop-tool{border:1px solid #e0e7f3;border-radius:8px;padding:12px;margin:14px 0}.crop-tool summary{font-size:10px;color:#7286a7;cursor:pointer}.crop-values{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:12px 0}.crop-values input{padding:8px}.crop-values label{font-size:9px}

/* Readable editor typography */
label{font-size:12px}input,select,textarea{font-size:13px}.hint{font-size:11px}.section-note{font-size:12px}.image-status{font-size:11px}.sidebar nav a{font-size:12px}.export-box p,.export-box small{font-size:11px}.primary,.outline{font-size:12px}.help details,.help p{font-size:12px}.view-tabs button{font-size:11px}.drop small,.drop span:not(.upload-symbol){font-size:10px}.card-head h2{font-size:20px}.heading p{font-size:13px}.tag{font-size:10px}@media(max-width:650px){.card-head h2{font-size:18px}.heading p{font-size:12px}label{font-size:11px}.primary,.outline{font-size:11px}.view-tabs button{font-size:10px}}

/* Simple mode: only the essentials up front. */
.shell{margin-left:0}header{height:76px;max-width:1160px;margin:auto;padding:0 30px;background:transparent;border-bottom:1px solid #e1e6ef}.simple-brand{text-decoration:none;font-size:24px;letter-spacing:-1px;font-weight:800;color:#20314a}.simple-brand span{font-weight:350}.simple-brand b{color:#5475df;margin-left:7px;font-size:27px}.demo-tag{font-size:10px;color:#8b98aa;margin-right:auto;margin-left:15px}main{max-width:1160px;padding:32px 30px}.heading{margin:2px 0 22px}.heading h1{font-size:38px;letter-spacing:-1.4px}.heading p{font-size:15px;margin:10px 0 0;color:#8190a6}.steps{justify-content:center;gap:45px;margin:26px 0 30px;font-size:13px}.steps b{font-size:11px;margin-right:9px}.work-grid{grid-template-columns:minmax(0,1.1fr) minmax(310px,.9fr);gap:24px}.card-head{margin-bottom:20px}.kicker{font-size:9px}.card-head h2{font-size:22px}.card{padding:25px}.drop{min-height:135px}.drop strong{font-size:15px}.drop span:not(.upload-symbol){font-size:12px}.drop small{font-size:10px}.stage{min-height:230px;max-height:360px;aspect-ratio:1.25}.stage.comparing{aspect-ratio:1.4}.image-status{font-size:11px;min-height:18px}.view-tabs button:disabled{display:none}.more-tools,.more-details{border-top:1px solid #e9edf4;padding-top:15px;margin:14px 0;font-size:12px;color:#8191a9}.more-tools>summary,.more-details>summary{cursor:pointer;list-style:none;font-size:12px;color:#6f83a6;user-select:none}.more-tools>summary:before,.more-details>summary:before{content:'+ ';font-size:15px;color:#4365c3}.more-tools[open]>summary:before,.more-details[open]>summary:before{content:'− '}.more-tools>.tool-grid{margin-top:18px}.more-tools>label{margin-top:13px}.more-tools>.quiet{display:inline-block}.more-details[open]{display:flex;flex-direction:column;gap:17px}.more-details .attribute-head{margin-bottom:0}.processing-actions .primary{width:100%;padding:15px;font-size:14px}.details-card form{gap:20px}label{font-size:13px}input,select,textarea{font-size:14px;padding:12px 13px}.details-card .primary{padding:15px;font-size:14px}.simple-note{font-size:11px;text-align:center;color:#a0adbf;margin-top:-7px}.secondary-actions #download-image{width:100%;margin-top:3px;padding:12px}.review strong{font-size:14px}.review p{font-size:12px;margin:7px 0 13px}.review .primary,.review .outline{font-size:12px;padding:12px}.export-card{margin-top:24px}.export-box small{font-size:11px}.export-box .primary{font-size:14px;padding:15px}.help{margin:30px 0}.help-drawer>summary{font-size:12px;color:#8796ae;cursor:pointer;text-align:center;list-style:none}.help-drawer>div{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:20px}footer{font-size:10px;color:#99a5b5}.header-actions .quiet{padding:10px 14px;background:white;border:1px solid #dfe5ef;border-radius:8px;font-size:12px}.header-actions>span{font-size:10px}@media(max-width:820px){main{padding:25px 18px}header{padding:0 18px}.work-grid{grid-template-columns:1fr}.heading h1{font-size:32px}.heading p{font-size:13px}.heading>button{font-size:11px}.stage{max-height:430px}.details-card form{display:flex}.help-drawer>div{grid-template-columns:1fr}.steps{gap:27px;font-size:11px}.card{padding:21px}}@media(max-width:500px){.heading h1{font-size:30px}.heading p{font-size:12px;line-height:1.7}.heading{margin-top:5px}.heading>button{font-size:11px;padding:9px 12px;margin-top:14px}.simple-brand{font-size:21px}.header-actions>span{display:none}.steps{margin:23px 0;font-size:10px;gap:20px}.steps b{font-size:9px;margin-right:5px}.card-head h2{font-size:20px}.card{padding:18px}label{font-size:12px}.stage{max-height:none;min-height:240px}.drop strong{font-size:14px}.drop span:not(.upload-symbol){font-size:10px}.export-grid{grid-template-columns:1fr}.help-drawer>div{grid-template-columns:1fr}}

.photo-card.has-photo .drop{min-height:55px;padding:11px;flex-direction:row;gap:12px}.photo-card.has-photo .drop strong{font-size:12px}.photo-card.has-photo .drop>span:not(.upload-symbol),.photo-card.has-photo .drop>small{display:none}.photo-card .processing-actions{margin:12px 0 15px}.photo-card .stage{max-height:310px;min-height:220px;aspect-ratio:1.4}.photo-card .view-tabs{margin-top:0}.photo-card .secondary-actions{margin-top:15px}.photo-card .more-tools{margin:12px 0}.photo-card .review{margin-top:12px}

.quick-backgrounds{display:flex;align-items:center;gap:10px;margin:15px 0}.quick-backgrounds>span{font-size:12px;color:#70829d;margin-right:auto}.swatch{width:30px;height:30px;border-radius:50%;border:2px solid #dde4ed;padding:0;cursor:pointer}.swatch.white{background:#fff}.swatch.warm{background:#f1ece4}.swatch.blue{background:#dce4ec}.swatch.transparent{background:conic-gradient(#dce2eb 25%,white 0 50%,#dce2eb 0 75%,white 0);background-size:10px 10px}.swatch[aria-pressed="true"]{outline:2px solid #5475df;outline-offset:3px}.swatch:disabled{opacity:.4;cursor:default}.image-download{display:grid;grid-template-columns:100px 1fr;gap:10px}.image-download #download-image{margin:0;width:100%;font-size:13px}.image-download select{width:100%;background:white}.image-download small{grid-column:1/-1;color:#7d8da5;font-size:11px}.image-download small:empty{display:none}.fit-toggle{display:flex;align-items:center;gap:8px}.fit-toggle input{width:auto;accent-color:#5475df}.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}

.sample-gallery{margin:18px 0}.sample-gallery>span{display:block;font-size:12px;color:#7c8da4;margin-bottom:10px}.sample-gallery>div{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.sample-card{padding:0;overflow:hidden;border:1px solid #e3e8ef;border-radius:12px;background:white;cursor:pointer;transition:transform .15s,border-color .15s}.sample-card:hover{transform:translateY(-2px);border-color:#5475df}.sample-card img{display:block;width:100%;aspect-ratio:1.3;object-fit:cover}.sample-card span{display:block;font-size:11px;color:#4f6382;padding:8px}.sample-gallery>small{display:block;font-size:9px;color:#99a5b5;margin-top:8px}.quick-backgrounds{flex-wrap:wrap;gap:9px}.swatch.sage{background:#dce8df}.swatch.rose{background:#f0dce3}.swatch.dark{background:#242c38}.scene-choices{display:flex;gap:8px;align-items:center;margin-bottom:12px;flex-wrap:wrap}.scene{min-width:65px;height:40px;padding:8px 12px;border:1px solid #dde4ed;border-radius:8px;font-size:10px;color:#3a4c66;cursor:pointer}.scene.studio{background:linear-gradient(135deg,#faf7f1,#d6c6b7)}.scene.sky{background:linear-gradient(135deg,#e3f2ff,#b8cadb)}.scene.sunset{background:linear-gradient(135deg,#ffe1c8,#e3b3c7)}.scene[aria-pressed="true"]{outline:2px solid #5475df;outline-offset:1px}.custom-color{display:flex;align-items:center;gap:7px;font-size:10px;margin-left:auto}.custom-color input{width:34px;height:34px;padding:2px;border-radius:8px;cursor:pointer}.background-upload{position:relative;display:block;text-align:center;padding:12px!important;font-size:12px;cursor:pointer;border-style:dashed;overflow:hidden}.background-upload input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}.background-options>small{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;color:#8798ad;margin-top:6px}.photo-card.has-photo .sample-gallery img{aspect-ratio:2}.photo-card .stage{max-height:350px;min-height:250px}.photo-card .image-download{display:grid}@media(max-width:500px){.quick-backgrounds>span{flex-basis:100%;margin-bottom:5px}.sample-gallery>div{gap:8px}.scene{min-width:59px}.custom-color{margin-left:0}}

.photo-scenes{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 12px}.photo-scenes button{padding:0;position:relative;overflow:hidden;border:1px solid #dfe5ed;border-radius:10px;cursor:pointer;text-align:left;background:white}.photo-scenes img{width:100%;height:70px;object-fit:cover;display:block}.photo-scenes span{position:absolute;left:8px;bottom:7px;font-size:10px;padding:4px 7px;border-radius:6px;background:#ffffffdf;color:#354965}.photo-scenes button[aria-pressed="true"]{outline:2px solid #5475df;outline-offset:2px}.photo-scenes button:disabled{opacity:.5}

.processing-actions{display:flex;flex-wrap:wrap;gap:8px}.processing-actions #remove-all{width:100%;padding:11px}.cutout-open{margin-top:10px;width:100%;font-size:12px}.thumbs button{position:relative}.thumbs button>span{position:absolute;bottom:0;left:0;right:0;background:#334fbd;color:white;font-size:8px;padding:2px}.effect-sliders label{margin-top:15px}.effect-sliders input{padding:0;margin-top:8px;width:100%;accent-color:#5475df}.ai-background{border:1px solid #dde4f4;border-radius:10px;margin:15px 0;background:#f8faff}.ai-background>summary{padding:14px;font-size:12px;color:#4058a7;cursor:pointer}.ai-body{padding:0 14px 14px;display:flex;flex-direction:column;gap:12px}.ai-body textarea{background:white}.ai-body>small{font-size:10px;line-height:1.5;color:#8795a9}.prompt-chips{display:flex;gap:8px}.prompt-chips button{background:white;border:1px solid #dce3ef;border-radius:20px;font-size:11px;padding:6px 11px;color:#657795}.ai-setup{font-size:11px;line-height:1.6;color:#75859e}.ai-setup .quiet{display:block;padding:8px 0}.ai-body #ai-preview{width:100%;border-radius:8px;display:block;margin-bottom:10px}.ai-body #ai-use{width:100%}.ai-body .primary{padding:12px;font-size:12px}#cutout-dialog{width:min(680px,94vw);max-height:92vh;padding:22px;border:1px solid #dce3ed;border-radius:18px;color:#20314a;box-shadow:0 20px 70px #14244533}#cutout-dialog::backdrop{background:#17263a88}.cutout-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.cutout-head h2{font-size:19px;margin:0 0 15px}.brush-tools{display:flex;gap:8px;flex-wrap:wrap}.brush-tools button{font-size:11px;padding:9px}.brush-tools [aria-pressed=true]{background:#e8edff;border-color:#5475df}.brush-size-label{display:flex;align-items:center;gap:15px;margin:15px 0;font-size:12px}.brush-size-label input{padding:0}.brush-canvas-wrap{background:conic-gradient(#e3e8ef 25%,white 0 50%,#e3e8ef 0 75%,white 0);background-size:16px 16px;max-height:52vh;overflow:auto;border:1px solid #e2e7ee;border-radius:8px;margin:12px 0}.brush-canvas-wrap canvas{display:block;width:100%;height:auto;touch-action:none;cursor:crosshair}#brush-apply{width:100%;padding:12px}.cutout-open[disabled]{display:none}

.ai-connect{border-top:1px solid #e1e7f1;margin-top:10px;padding-top:10px}.ai-connect summary{cursor:pointer;font-size:12px;color:#4058a7}.ai-connect label{margin:14px 0 10px;font-size:11px}.ai-connect input{font-size:12px;background:white}.ai-connect small,.ai-connect a{display:block;margin-top:10px;font-size:10px;line-height:1.6}.ai-connect button{font-size:11px;padding:10px}
/* Picaeye release candidate: a compact workbench with progressive detail. */
.brand-dot{font-size:13px!important;color:#4067e5;margin-inline-start:4px}.simple-brand{font-weight:800;letter-spacing:-1px;font-size:26px}.heading h1{max-width:720px;font-size:40px;line-height:1.12;letter-spacing:-1.6px}.heading p{line-height:1.6}.header-actions{gap:7px}.header-actions .quiet{white-space:nowrap}.header-actions>span{display:none}#language{width:66px;padding:8px;margin-inline-start:auto;border-radius:8px;background:white;font-size:12px}header .demo-tag{margin-inline-end:auto;margin-inline-start:12px}.header-actions{margin-inline-start:7px}.steps span{white-space:nowrap}footer nav{display:flex;gap:15px;flex-wrap:wrap}footer a{color:#667b9b;text-decoration:none}.position-sliders label{margin-top:15px}.position-sliders input{width:100%;padding:0;margin-top:8px;accent-color:#5475df}#preview.draggable{cursor:grab;touch-action:none}#preview.dragging{cursor:grabbing}#projects-dialog{width:min(640px,94vw);border:1px solid #dce3ed;border-radius:18px;padding:24px;color:#20314a;max-height:85vh}#projects-dialog::backdrop{background:#17263a88}.project-entry{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:16px 0;border-top:1px solid #e4e9f0}.project-entry strong{font-size:14px;display:block}.project-entry small{font-size:10px;color:#8290a5;display:block;margin-top:7px}.project-entry button{font-size:11px;padding:10px 15px}.toast{z-index:1000}html[dir=rtl] .work-grid{direction:rtl}html[dir=rtl] input,html[dir=rtl] textarea{text-align:right}@media(max-width:800px){header{height:auto;min-height:76px;flex-wrap:wrap;padding:15px 18px;gap:12px}.header-actions{width:100%;margin:0;display:grid;grid-template-columns:1fr 1fr auto}.header-actions .quiet{font-size:11px;padding:9px 11px}.heading h1{font-size:34px}.heading{margin-top:5px}.steps{gap:19px}#language{margin-inline-start:0}header .demo-tag{margin-inline-end:0}.simple-brand{margin-inline-end:auto}.work-grid{gap:18px}}@media(max-width:400px){.heading h1{font-size:29px}.card{padding:15px}.steps{font-size:9px;gap:10px}.header-actions .quiet{font-size:10px;padding:8px}.quick-backgrounds{gap:9px}.photo-scenes span{font-size:9px}}
.legal-page{max-width:760px;padding:45px 25px;line-height:1.8}.legal-page h1{font-size:32px;margin:25px 0}.legal-page h2{font-size:19px;margin:25px 0 10px}.legal-page p{color:#556a87}.legal-page a{color:#4067e5}.legal-page .notice{padding:15px;border:1px solid #e2e7ef;border-radius:10px}
/* Keep intrinsic select/button widths from widening narrow phone grids. */
.work-grid>*,.export-grid>*,.tool-grid>*,.two>*,.sample-gallery>div>*,.photo-scenes>*,.image-download>*{min-width:0}.tool-grid,.two{grid-template-columns:repeat(2,minmax(0,1fr))}.sample-gallery>div{grid-template-columns:repeat(3,minmax(0,1fr))}.photo-scenes{grid-template-columns:repeat(2,minmax(0,1fr))}.photo-card,.details-card,.export-card{max-width:100%}input,select,textarea{max-width:100%}input[type=range]{margin-inline:0}.project-entry>div{min-width:0}.project-entry strong{overflow-wrap:anywhere}.project-entry button{flex-shrink:0}
/* Give the preview a definite height so square canvases stay fully visible. */
.photo-card .stage{width:100%;max-width:100%;height:clamp(250px,32vw,350px);min-height:0;max-height:none;aspect-ratio:auto}.stage .canvas-wrap{height:100%;max-width:100%}.stage .canvas-wrap canvas{display:block;max-width:100%;max-height:100%;object-fit:contain}

/* Tamil needs room for vowel signs and longer action labels. */
html[lang=ta]{font-family:-apple-system,BlinkMacSystemFont,"Tamil Sangam MN","Nirmala UI","Latha",sans-serif;line-height:1.65}
html[lang=ta] h1,html[lang=ta] h2,html[lang=ta] .kicker{letter-spacing:normal;line-height:1.5}
html[lang=ta] .heading h1{font-size:clamp(25px,2.6vw,34px)}
html[lang=ta] button{line-height:1.65;overflow-wrap:anywhere}
html[lang=ta] #language{width:92px}
html[lang=ta] .header-actions .quiet{white-space:normal}
html[lang=ta] .heading>button{white-space:normal;flex-shrink:0;max-width:210px}
html[lang=ta] .steps{flex-wrap:wrap;gap:14px}
html[lang=ta] .steps span{white-space:normal}
html[lang=ta] .tag{white-space:normal;text-align:center}
html[lang=ta] .scene{height:auto;min-height:40px}
html[lang=ta] .view-tabs{flex-wrap:wrap}
html[lang=ta] .project-entry{align-items:flex-start}
@media(max-width:500px){html[lang=ta] .two,html[lang=ta] .tool-grid{grid-template-columns:1fr}html[lang=ta] .header-actions{grid-template-columns:1fr 1fr}html[lang=ta] .header-actions #save{grid-column:1/-1}html[lang=ta] .steps{font-size:10px;justify-content:flex-start}html[lang=ta] .heading>button{max-width:100%}}

html[lang=pt] #language{width:105px}html[lang=pt] .header-actions .quiet{white-space:normal}html[lang=pt] .heading>button{white-space:normal;flex-shrink:0;max-width:210px}html[lang=pt] .view-tabs{flex-wrap:wrap}

html[lang=ru] #language{width:105px}html[lang=ru] .header-actions .quiet{white-space:normal}html[lang=ru] .heading>button{white-space:normal;flex-shrink:0;max-width:210px}html[lang=ru] .view-tabs{flex-wrap:wrap}

.billing-nav{font-size:11px;text-decoration:none;color:#4c68a7;white-space:nowrap}.billing-demo-banner{text-align:center;background:#edf2ff;color:#5470a7;font-size:11px;padding:9px 18px}@media(max-width:800px){.billing-nav{margin-left:auto;margin-right:0}.header-actions{order:2}}
footer .billing-withdraw{color:#2345a2;font-weight:700;text-decoration:underline;text-underline-offset:3px}
/* Photo order and export controls */
.photo-toolbar{flex-wrap:wrap}
.photo-toolbar .thumbs{min-width:0}
.photo-order-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.thumbs button .cover-badge{inset:auto auto 3px 3px;max-width:calc(100% - 6px);padding:2px 5px;background:#163a99;color:#fff;border-radius:4px;font-size:9px;line-height:1.35;white-space:normal;text-align:left}
.photo-card .image-download{display:grid;grid-template-columns:minmax(132px,1fr) minmax(72px,.45fr) minmax(135px,1fr);align-items:end;gap:10px}
.photo-card .image-download label{min-width:0}
.photo-card .image-download select{width:100%;max-width:none}
.photo-card .image-download small{grid-column:1/-1}
.package-options{display:grid;gap:14px}
.package-options button{width:100%;white-space:normal}
.package-options small{display:block;margin-top:4px;color:#536581;font-size:12px;line-height:1.5}
.title-warning{margin:3px 0 10px;color:#9e273a;font-size:12px}
#result-title[aria-invalid="true"]{border-color:#a83747}
@media(max-width:560px){
  .photo-order-actions{width:100%;justify-content:flex-start}
  .photo-card .image-download{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .photo-card .image-download #download-image{grid-column:1/-1}
}
.export-box #review-next{width:100%;margin-bottom:12px}
