/* Retouch workspace */
.rt-hero{max-width:1120px;padding-top:18px;padding-bottom:14px}
.rt-trust{display:flex;justify-content:center;align-items:center;gap:10px;flex-wrap:wrap;margin-top:8px;color:var(--mute);font-size:.86rem;font-weight:650}
.rt-stage{display:grid;grid-template-columns:150px minmax(0,1fr) 150px;gap:14px;max-width:1450px;margin:0 auto;padding:0 16px;align-items:stretch}
.rt-workspace{min-width:0}
.rt-panel{border:1px solid var(--line);border-radius:20px;background:var(--surface);box-shadow:var(--shadow);padding:14px;min-width:0}
.rt-topline{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.rt-topline>div:first-child{display:grid;gap:1px}.rt-topline strong{font-size:1.02rem}.rt-topline small{color:var(--mute);font-size:.82rem}
.rt-top-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.rt-top-actions label,.rt-top-actions button{min-height:40px;display:inline-flex;align-items:center}
.rt-drop{min-height:255px;border:2px dashed #86bdb3;border-radius:16px;background:repeating-conic-gradient(#f4faf8 0 25%,#fff 0 50%) 0 0/22px 22px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:22px;cursor:pointer;outline-offset:3px}
.rt-drop:hover,.rt-drop:focus-visible,.rt-drop.over{border-color:var(--pri);background-color:var(--pri-soft)}
.rt-drop-icon{display:grid;place-items:center;width:60px;height:60px;border-radius:50%;background:var(--pri);color:#fff;font-size:2rem;font-weight:800;margin-bottom:10px;box-shadow:0 8px 20px rgba(15,118,110,.24)}
.rt-drop strong{font-size:1.15rem}.rt-drop p{color:var(--mute);margin:4px 0}.rt-drop>span{font-size:.8rem;color:var(--mute)}
.rt-editor{display:grid;gap:10px}
.rt-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px;border:1px solid var(--line);border-radius:14px;background:var(--bg2)}
.rt-toolgroup{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.rt-group-label{font-size:.75rem;color:var(--mute);font-weight:750;text-transform:uppercase;letter-spacing:.04em;margin-right:3px}
.rt-tool{min-height:38px;padding:6px 10px;border:1px solid var(--line);border-radius:9px;background:#fff;font-weight:650;font-size:.86rem}.rt-tool:hover{border-color:var(--pri)}.rt-tool.active{background:var(--pri);border-color:var(--pri);color:#fff}
.rt-tool:disabled{opacity:.42;cursor:not-allowed}
.rt-size{display:grid;gap:2px;min-width:150px;flex:1;font-size:.82rem;font-weight:650}.rt-size span{display:flex;justify-content:space-between;gap:8px}.rt-size input{width:100%;accent-color:var(--pri)}
.rt-stage-canvas{position:relative;min-height:300px;max-height:68vh;display:grid;place-items:center;overflow:auto;border-radius:13px;border:1px solid var(--line);background:repeating-conic-gradient(#eef6f3 0 25%,#fff 0 50%) 0 0/20px 20px}
#rtCanvas,#rtOverlayCanvas{display:block;grid-area:1 / 1 / 2 / 2;place-self:center;max-width:100%;max-height:68vh;width:auto;height:auto}#rtCanvas{position:relative;z-index:1;touch-action:none;cursor:crosshair}#rtOverlayCanvas{position:relative;z-index:2;pointer-events:none}#rtCanvas[hidden],#rtOverlayCanvas[hidden]{display:none}
.rt-stage-empty{display:grid;justify-items:center;text-align:center;padding:38px 15px;color:var(--mute)}.rt-stage-empty span{font-size:2.2rem}.rt-stage-empty p{margin:4px 0}
.rt-compare-divider{position:absolute;top:0;bottom:0;width:2px;background:#fff;box-shadow:0 0 0 1px rgba(0,0,0,.28);pointer-events:none;z-index:2}
.rt-bottom-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.rt-hint{margin:0;max-width:520px;color:var(--mute);font-size:.82rem}.rt-main-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.rt-main-actions button{min-height:44px}.rt-apply{min-height:44px;padding:0 16px;font-size:.94rem}.rt-status{margin:8px 2px 0;color:var(--mute);font-size:.86rem;min-height:1.3em}.rt-privacy-note{text-align:center;color:var(--mute);font-size:.82rem;margin:9px 0 0}
.rt-compare-control{display:grid;grid-template-columns:1fr;gap:2px;padding:9px 12px;border:1px solid var(--line);border-radius:12px;background:var(--bg2);font-size:.82rem}.rt-compare-control input{width:100%;accent-color:var(--pri)}.rt-compare-control>div{display:flex;justify-content:space-between;color:var(--mute);font-weight:650}
.rt-info{max-width:1280px}.rt-stepgrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.rt-stepgrid article{position:relative;min-width:0;padding:17px;border-radius:15px;border:1px solid var(--line);background:#fff}.rt-stepgrid h3{font-size:1rem;margin:10px 0 4px}.rt-stepgrid p{color:var(--mute);font-size:.9rem;margin:0}.rt-step-num{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:var(--pri-soft);color:var(--pri-d);font-weight:850}
.rt-example-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.rt-example-grid figure{margin:0;overflow:hidden;border:1px solid var(--line);border-radius:15px;background:#fff}.rt-example-grid figcaption{display:grid;gap:2px;padding:11px 13px}.rt-example-grid figcaption small{color:var(--mute)}.rt-example-art{height:150px;position:relative;overflow:hidden;background:linear-gradient(#d9eff2 0 57%,#a4c39c 57% 100%)}.rt-art-window{position:absolute;left:10%;top:14%;width:38%;height:45%;border:8px solid #f8f6eb;background:linear-gradient(135deg,#b4d8dc,#f3f7e7)}.rt-art-ground{position:absolute;inset:62% 0 0;background:repeating-linear-gradient(90deg,#b8a17c 0 12px,#c6af88 12px 24px)}.rt-art-object{position:absolute;left:61%;bottom:26px;width:42px;height:65px;border-radius:9px 9px 12px 12px;background:#b66d40;box-shadow:inset -8px 0 rgba(0,0,0,.08)}.rt-art-object:before{content:"";position:absolute;width:27px;height:9px;border-radius:9px;background:#7e4b31;top:-6px;left:8px}.rt-art-brush{position:absolute;right:8%;top:16%;width:68px;height:68px;border:3px dashed #ed5555;border-radius:50%;box-shadow:0 0 0 999px rgba(255,255,255,.05)}.rt-art-two{background:linear-gradient(#e6f2f0 0 60%,#b8a17c 60%)}.rt-art-three{background:linear-gradient(#d8e8ec,#ebf2ec 72%,#b0a18c 72%)}.rt-example-disclaimer{color:var(--mute);font-size:.86rem;margin:12px 0 0}
.rt-faq details{padding:13px 0;border-bottom:1px solid var(--line)}.rt-faq summary{font-weight:700;cursor:pointer}.rt-faq details p{color:var(--mute);margin:8px 0 0}.rt-more .relgrid{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}


/* FileLumi v46 Retouch editor: image on the left, controls on the right. */
.rt-panel{background:#fff;border:1px solid #e0e8ee;border-radius:20px;padding:18px;box-shadow:0 10px 32px rgba(20,45,65,.07)}
.rt-drop{min-height:315px;border:2px dashed #a9c8c7;border-radius:18px;background:linear-gradient(135deg,#f3fbfa,#f7f9ff);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:25px;cursor:pointer;transition:border-color .15s,background .15s}
.rt-drop:hover,.rt-drop.over{border-color:#079b96;background:#eaf9f7}
.rt-drop-icon{width:58px;height:58px;border-radius:18px;background:#dcf7f2;color:#079e98;display:grid;place-items:center;font-size:2.15rem;font-weight:400;margin-bottom:13px}
.rt-drop strong{font-size:1.1rem;color:var(--ink)}.rt-drop p{margin:7px 0;color:var(--mute)}.rt-drop>span{font-size:.82rem;color:#73828d}
.rt-editor[hidden],.rt-drop[hidden]{display:none!important}
.rt-editor{display:block!important;min-width:0}
.rt-editor-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:2px 0 15px;padding:2px 2px 12px;border-bottom:1px solid #e8edf1}
.rt-editor-heading>div:first-child{display:grid;gap:3px}.rt-editor-heading strong{font-size:1.04rem;color:var(--ink)}.rt-editor-heading small{color:var(--mute);font-size:.84rem}
.rt-zoom-controls{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.rt-zoom-controls>span{font-size:.78rem;color:var(--mute);font-weight:700}.rt-zoom-controls b{min-width:48px;text-align:center;font-variant-numeric:tabular-nums;font-size:.82rem;color:var(--ink)}
.rt-tool{min-height:37px;padding:7px 11px;border:1px solid #dce5eb;border-radius:10px;background:#fff;color:#294052;font:600 .82rem/1.2 inherit;cursor:pointer;transition:.14s}
.rt-tool:hover:not(:disabled){border-color:#80c6bd;background:#f0fbf9}.rt-tool:disabled{opacity:.42;cursor:not-allowed}.rt-tool.active{background:#e4f7f3;border-color:#75c7bd;color:#087b76}
.rt-editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 275px;gap:16px;align-items:stretch}
.rt-image-column{min-width:0;display:flex;flex-direction:column;gap:10px}
.rt-stage-canvas{position:relative;min-width:0;height:clamp(360px,55vw,610px);max-height:70vh;overflow:auto;display:flex;justify-content:safe center;align-items:safe center;border-radius:15px;border:1px solid #dfe7ec;background-color:#f7fafb;background-image:linear-gradient(45deg,#edf2f3 25%,transparent 25%),linear-gradient(-45deg,#edf2f3 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#edf2f3 75%),linear-gradient(-45deg,transparent 75%,#edf2f3 75%);background-size:24px 24px;background-position:0 0,0 12px,12px -12px,-12px 0;overscroll-behavior:contain;scrollbar-width:thin}
.rt-canvas-frame{position:relative;display:block;flex:none;width:1px;height:1px;margin:0}
.rt-canvas-frame canvas{position:absolute;left:0;top:0;display:block;width:100%;height:100%;max-width:none!important;max-height:none!important;touch-action:none}
#rtCanvas{z-index:1;cursor:crosshair}#rtOverlayCanvas{z-index:2;pointer-events:none}
.rt-compare-divider{position:absolute;z-index:4;top:0;bottom:auto;width:3px;background:#fff;box-shadow:0 0 0 1px rgba(20,40,60,.22),0 0 12px rgba(20,40,60,.25);pointer-events:none}
.rt-compare-divider:after{content:'↔';position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:34px;height:34px;border:2px solid #fff;border-radius:50%;background:#078f8b;color:#fff;display:grid;place-items:center;font-size:17px;font-weight:700;box-shadow:0 3px 12px rgba(0,0,0,.22)}
.rt-stage-empty{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:var(--mute);pointer-events:none}.rt-stage-empty[hidden]{display:none}.rt-stage-empty span{font-size:2.3rem}.rt-stage-empty p{margin:0}
.rt-image-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.rt-compare-hint{color:var(--mute);font-size:.79rem}.rt-compare-hint[hidden]{display:none}
.rt-tool-panel{min-width:0;display:flex;flex-direction:column;gap:15px;padding:16px;border:1px solid #e0e8ee;border-radius:15px;background:#fbfdfd;box-shadow:0 3px 12px rgba(27,54,72,.035)}
.rt-tool-panel-title{display:flex;align-items:flex-start;gap:10px;padding-bottom:12px;border-bottom:1px solid #e8eef0}.rt-tool-panel-title>span{width:35px;height:35px;display:grid;place-items:center;border-radius:11px;background:#e9f8f5;color:#079b91;font-size:1.15rem}.rt-tool-panel-title div{display:grid;gap:3px}.rt-tool-panel-title strong{font-size:.91rem;color:var(--ink)}.rt-tool-panel-title small{font-size:.74rem;color:var(--mute);line-height:1.35}
.rt-mode-tools{display:grid;grid-template-columns:1fr 1fr;gap:8px}.rt-size{display:grid;gap:8px;padding:12px;border:1px solid #e2eaed;border-radius:12px;background:#fff}.rt-size span{display:flex;justify-content:space-between;gap:8px;font-size:.82rem;font-weight:700;color:#334b5b}.rt-size input{width:100%;accent-color:#079b91}
.rt-edit-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.rt-edit-actions .rt-tool{padding:7px 5px;font-size:.76rem}
.rt-tool-help{padding:10px 11px;border-radius:11px;background:#eef7f7;color:#526c75;font-size:.78rem;line-height:1.5}
.rt-main-actions{display:grid;grid-template-columns:1fr;gap:8px;margin-top:auto}.rt-main-actions button{min-height:43px;width:100%;justify-content:center}.rt-apply{background:#078f89!important;border-color:#078f89!important;color:#fff!important}.rt-apply:hover:not(:disabled){background:#087a75!important}
.rt-compare-control{display:none!important}.rt-status{min-height:22px;margin:12px 2px 0;color:#506976;font-size:.84rem}.rt-privacy-note{margin:12px 4px 0;color:var(--mute);font-size:.8rem}
.rt-examples-section{margin-top:24px}.rt-example-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px}.rt-example-grid figure{margin:0;overflow:hidden;border:1px solid #e3eaee;border-radius:13px;background:#fff;box-shadow:0 3px 12px rgba(27,54,72,.035)}.rt-example-grid img{display:block;width:100%;aspect-ratio:16/10;object-fit:cover;background:#f1f5f5}.rt-example-grid figcaption{min-height:51px;padding:9px 10px;display:flex;align-items:center;font-size:.8rem;line-height:1.3;color:#263e50}
.rt-faq{max-width:960px}.rt-faq details{margin:9px 0;padding:0;border:1px solid #e1e9ec;border-radius:12px;background:#fff;overflow:hidden;box-shadow:0 2px 8px rgba(28,50,60,.025)}.rt-faq summary{position:relative;list-style:none;padding:15px 45px 15px 16px;cursor:pointer;font-size:.92rem;font-weight:750;color:#243f51}.rt-faq summary::-webkit-details-marker{display:none}.rt-faq summary:after{content:'＋';position:absolute;right:16px;top:50%;transform:translateY(-50%);font-size:1.15rem;color:#078f89}.rt-faq details[open] summary:after{content:'−'}.rt-faq details p{margin:0;padding:0 16px 16px;color:#617681;font-size:.87rem;line-height:1.65}
@media(min-width:851px){.mp-in{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media(max-width:980px){.rt-editor-layout{grid-template-columns:minmax(0,1fr) 245px}.rt-example-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.rt-editor-heading{align-items:flex-start;flex-direction:column}.rt-editor-layout{grid-template-columns:1fr}.rt-tool-panel{display:grid;grid-template-columns:1fr 1fr;gap:11px}.rt-tool-panel-title{grid-column:1/-1}.rt-mode-tools,.rt-size,.rt-edit-actions,.rt-tool-help,.rt-main-actions{min-width:0}.rt-tool-help{align-self:stretch}.rt-main-actions{grid-column:1/-1;grid-template-columns:1fr 1fr}.rt-stage-canvas{height:52vh;min-height:290px}.rt-example-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rt-edit-actions{grid-column:1/-1}}
@media(max-width:480px){.rt-panel{padding:10px}.rt-stage-canvas{height:44vh;min-height:245px}.rt-tool-panel{padding:11px;grid-template-columns:1fr}.rt-tool-panel-title,.rt-mode-tools,.rt-size,.rt-edit-actions,.rt-tool-help,.rt-main-actions{grid-column:1}.rt-main-actions{grid-template-columns:1fr}.rt-example-grid{gap:9px}.rt-example-grid figcaption{font-size:.74rem;padding:8px}.rt-zoom-controls{gap:5px}.rt-zoom-controls .rt-tool{padding:6px 8px}}

/* Interactive sample comparison (drag the divider; no range slider). */
.rt-demo-row{display:grid;grid-template-columns:190px minmax(0,1fr);align-items:center;gap:18px;margin:15px 0 22px;padding:14px;border:1px solid #e1e9ed;border-radius:16px;background:#fbfdfd}
.rt-demo-text{display:grid;gap:8px}.rt-demo-text b{font-size:.98rem;color:var(--ink)}.rt-demo-text p{margin:0;color:var(--mute);font-size:.84rem;line-height:1.55}
.rt-demo-compare{position:relative;isolation:isolate;width:100%;aspect-ratio:16/9;overflow:hidden;border-radius:12px;background:#e7ecec;box-shadow:0 3px 14px rgba(22,49,65,.1);cursor:ew-resize;touch-action:pan-y;user-select:none}
.rt-demo-compare img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;pointer-events:none}.rt-demo-after{z-index:1}.rt-demo-before{z-index:2;clip-path:inset(0 50% 0 0)}
.rt-demo-label{position:absolute;z-index:4;top:12px;padding:5px 10px;border-radius:7px;background:rgba(20,34,48,.78);color:#fff;font-size:.72rem;font-weight:800;letter-spacing:.02em;pointer-events:none}.rt-demo-label.is-before{left:12px}.rt-demo-label.is-after{right:12px}
.rt-demo-divider{position:absolute;z-index:5;left:50%;top:0;bottom:0;width:3px;transform:translateX(-50%);background:#fff;box-shadow:0 0 0 1px rgba(14,34,50,.16),0 0 12px rgba(0,0,0,.2);cursor:ew-resize;outline:none}.rt-demo-divider i{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:38px;height:38px;border:2px solid #fff;border-radius:50%;background:#078f89;color:#fff;font-style:normal;font-size:1.15rem;font-weight:800;box-shadow:0 3px 13px rgba(0,0,0,.22)}.rt-demo-divider:focus-visible i{outline:3px solid #153d68;outline-offset:3px}
@media(max-width:760px){.rt-demo-row{grid-template-columns:1fr;gap:10px}.rt-demo-compare{aspect-ratio:16/10}}


/* Full-screen Retouch editor: match the Enhancer / Remove BG editor shell. */
.rt-editor[hidden]{display:none!important}
.rt-editor:not([hidden]){position:fixed;inset:0;z-index:110;display:flex!important;flex-direction:column;gap:0;min-width:0;min-height:0;padding:0;background:var(--bg,#f6f9f8);overflow:hidden}
body.rt-modal-open{overflow:hidden!important}
.rt-editor-heading{flex:none;min-height:66px;display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0;padding:9px 16px;background:#fff;border-bottom:1px solid var(--line);box-shadow:0 1px 4px rgba(10,40,34,.05)}
.rt-editor-title{display:grid;gap:2px;min-width:0}.rt-editor-title strong{font-size:1rem;color:var(--ink)}.rt-editor-title small{font-size:.78rem;color:var(--mute)}.rt-dimensions{font-size:.78rem;font-weight:700;color:#31534e;font-variant-numeric:tabular-nums}
.rt-heading-controls{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}.rt-history-controls{display:flex;gap:6px}.rt-head-btn{width:44px;height:44px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);font-size:1.25rem}.rt-head-btn:hover:not(:disabled){background:var(--pri-soft);border-color:var(--pri)}.rt-head-btn:disabled{opacity:.36;cursor:not-allowed}
.rt-editor-layout{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:0;align-items:stretch}
.rt-image-column{min-height:0;min-width:0;display:flex;flex-direction:column;gap:0;padding:10px;background:#edf3f1}
.rt-stage-canvas{position:relative;flex:1;min-height:0;height:auto;max-height:none;width:100%;overflow:hidden;display:flex;justify-content:safe center;align-items:safe center;border-radius:10px;border:1px solid #d5e0dc;background-color:#f7faf9;background-image:linear-gradient(45deg,#e8efec 25%,transparent 25%),linear-gradient(-45deg,#e8efec 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e8efec 75%),linear-gradient(-45deg,transparent 75%,#e8efec 75%);background-size:22px 22px;background-position:0 0,0 11px,11px -11px,-11px 0;overscroll-behavior:contain;scrollbar-width:thin}
.rt-canvas-frame{position:relative;display:block;flex:none;margin:auto;width:1px;height:1px}.rt-canvas-frame canvas{position:absolute;left:0;top:0;display:block;width:100%;height:100%;max-width:none!important;max-height:none!important;touch-action:none}
#rtCanvas{z-index:1;cursor:crosshair}#rtOverlayCanvas{z-index:2;pointer-events:none}.rt-compare-divider{z-index:4}
.rt-compare-hold{position:absolute;z-index:8;right:12px;top:12px;min-height:40px;padding:8px 14px;border:0;border-radius:22px;background:#173f3b;color:white;font-weight:750;box-shadow:0 3px 12px rgba(0,0,0,.18)}.rt-compare-hold:disabled{opacity:.4}.rt-compare-hold:active{background:#0e766e}
.rt-stage-empty{position:absolute;inset:0;display:grid;place-content:center;justify-items:center}
.rt-tool-panel{min-height:0;height:100%;overflow:auto;padding:14px;background:#fff;border-left:1px solid var(--line);border-radius:0;box-shadow:none;display:flex;flex-direction:column;gap:12px}
.rt-tool-panel-title{padding:10px 12px;border-radius:12px;background:var(--pri-soft);display:flex;gap:10px;align-items:flex-start}.rt-tool-panel-title>span{font-size:1.15rem;color:var(--pri-d)}.rt-tool-panel-title>div{display:grid;gap:3px}.rt-tool-panel-title strong{font-size:.9rem}.rt-tool-panel-title small{color:var(--mute);font-size:.78rem;line-height:1.45}
.rt-mode-switch{display:grid;gap:7px;padding:11px;border:1px solid var(--line);border-radius:13px}.rt-mode-switch .rt-control-label{font-size:.75rem;letter-spacing:.04em;text-transform:uppercase;font-weight:800;color:var(--mute)}.rt-mode-switch small{color:var(--mute);font-size:.76rem;line-height:1.4}.rt-strength{min-width:0;flex:auto}
.rt-toolgroup.rt-edit-actions{display:grid;grid-template-columns:1fr;gap:7px}.rt-toolgroup.rt-edit-actions #rtClear{width:100%}
.rt-main-actions{display:grid;grid-template-columns:1fr;gap:8px;margin-top:auto}.rt-main-actions button{width:100%;min-height:46px}.rt-tool-help{margin:0;color:var(--mute);font-size:.78rem;line-height:1.45}
.rt-editor-footer{flex:none;min-height:68px;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:9px 16px;background:#fff;border-top:1px solid var(--line)}.rt-editor-footer .rt-status{flex:1;min-width:0;margin:0;font-size:.82rem}.rt-footer-actions{display:flex;align-items:center;gap:9px;flex:none}.rt-footer-actions button{min-width:124px;min-height:44px}
.rt-result{max-width:1160px;margin:28px auto 34px;padding:0 16px}.rt-result[hidden]{display:none!important}.rt-result-heading{margin-bottom:14px}.rt-result-heading h2{margin-bottom:4px}.rt-result-heading .sub{margin:0;color:var(--mute)}
.rt-result-compare{position:relative;width:100%;height:clamp(260px,48vw,560px);overflow:hidden;border:1px solid #d7e2df;border-radius:18px;background:#e9f0ed;touch-action:pan-y;user-select:none;cursor:ew-resize;box-shadow:0 8px 24px rgba(15,55,47,.08)}
.rt-result-before,.rt-result-after img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;display:block}.rt-result-before{z-index:1}.rt-result-after{position:absolute;inset:0;z-index:2;clip-path:inset(0 0 0 50%)}
.rt-result-tag{position:absolute;z-index:4;bottom:13px;padding:6px 12px;border-radius:22px;background:#173f3b;color:white;font-size:.78rem;font-weight:800;pointer-events:none}.rt-result-tag.is-before{left:13px}.rt-result-tag.is-after{right:13px}
.rt-result-handle{position:absolute;z-index:5;top:50%;left:50%;transform:translate(-50%,-50%);width:44px;height:44px;border:0;border-radius:50%;background:#f59e0b;color:#172b27;box-shadow:0 2px 10px rgba(0,0,0,.18);font-size:1.3rem;font-weight:800;pointer-events:none}
.rt-result-compare:before{content:"";position:absolute;z-index:4;top:0;bottom:0;left:50%;width:2px;background:#fff;box-shadow:0 0 0 1px rgba(0,0,0,.2);transform:translateX(-50%);pointer-events:none}
.rt-result-actions{display:flex;justify-content:center;gap:10px;margin:14px 0 0;flex-wrap:wrap}.rt-result-actions button{min-width:170px;min-height:46px}.rt-result-status{text-align:center;color:var(--mute);font-size:.82rem;min-height:1.2em;margin:7px 0 0}
@media(max-width:900px){.rt-editor-layout{grid-template-columns:minmax(0,1fr) 285px}.rt-tool-panel{gap:9px;padding:10px}}
@media(max-width:720px){.rt-editor-heading{min-height:58px;padding:7px 10px;align-items:flex-start}.rt-editor-title small{max-width:44vw}.rt-heading-controls{gap:6px}.rt-head-btn{width:36px;height:36px}.rt-zoom-controls{gap:4px}.rt-zoom-controls>span{display:none}.rt-zoom-controls .rt-tool{min-height:34px;padding:5px 8px}.rt-editor-layout{grid-template-columns:1fr;grid-template-rows:minmax(210px,1fr) auto}.rt-image-column{padding:6px}.rt-tool-panel{max-height:36vh;display:grid;grid-template-columns:1fr 1fr;align-content:start;gap:8px;border-left:0;border-top:1px solid var(--line)}.rt-tool-panel-title,.rt-tool-help,.rt-main-actions{grid-column:1/-1}.rt-mode-switch,.rt-size,.rt-strength,.rt-toolgroup{min-width:0}.rt-toolgroup.rt-edit-actions{grid-template-columns:1fr}.rt-editor-footer{min-height:62px;padding:7px 10px}.rt-editor-footer .rt-status{font-size:.72rem}.rt-footer-actions button{min-width:98px;min-height:41px;padding:0 9px}.rt-result-compare{height:clamp(220px,66vw,430px)}}
@media(max-width:480px){.rt-tool-panel{grid-template-columns:1fr 1fr;max-height:39vh}.rt-tool-panel-title,.rt-tool-help,.rt-main-actions{grid-column:1/-1}.rt-heading-controls{flex-wrap:wrap;justify-content:flex-end}.rt-zoom-controls b{min-width:39px}.rt-result-actions{display:grid;grid-template-columns:1fr}.rt-result-actions button{width:100%}}

/* Footer controls wrap cleanly in narrow windows and long translated labels. */
.rt-editor-footer{flex-wrap:wrap;align-items:center}
.rt-editor-footer .rt-status{flex:1 1 240px;overflow-wrap:anywhere}
.rt-footer-actions{display:flex;flex:0 1 auto;flex-wrap:wrap;justify-content:flex-end;gap:8px;min-width:0}
.rt-footer-actions button{flex:0 1 136px;min-width:110px;white-space:nowrap}
.rt-result-actions{align-items:stretch}
.rt-result-actions button{flex:0 1 220px;min-width:min(170px,100%)}
@media(max-width:540px){
  .rt-editor-footer{align-items:stretch;gap:7px}
  .rt-editor-footer .rt-status{flex:1 0 100%;min-height:1em}
  .rt-footer-actions{width:100%;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr)}
  .rt-footer-actions button{width:100%;min-width:0;flex:auto;padding-inline:8px;font-size:.82rem}
  .rt-result-actions{display:grid;grid-template-columns:1fr}
  .rt-result-actions button{width:100%;min-width:0}
}

/* Anchor the editor compare control to the image workspace, not the page header. */
.rt-image-column{position:relative}

/* Retouch v46 UI refinement: use the same spacious editor rhythm as Enhancer / Remove BG. */
.rt-editor:not([hidden]){background:var(--bg,#f5f9f7);}
.rt-editor-heading{min-height:68px;padding:10px 18px;gap:16px;}
.rt-editor-title strong{font-size:1.05rem;font-weight:800;}
.rt-editor-title small{font-size:.86rem;line-height:1.35;}
.rt-heading-controls{gap:12px;}
.rt-zoom-controls .rt-tool{min-width:42px;min-height:42px;font-size:1rem;font-weight:800;}
.rt-zoom-controls b{font-size:.92rem;min-width:50px;}
.rt-top-cancel{min-height:42px;padding:0 16px;white-space:nowrap;}
.rt-editor-layout{grid-template-columns:minmax(0,1fr) 320px;}
.rt-image-column{padding:12px 14px 14px;background:#edf4f1;gap:0;}
.rt-stage-canvas{flex:1 1 auto;min-height:220px;height:auto;max-height:none;overflow:auto;display:flex;justify-content:flex-start;align-items:flex-start;border-radius:13px;border:1px solid #d6e2dd;background-color:#f3f7f5;background-image:linear-gradient(45deg,#e2ebe7 25%,transparent 25%),linear-gradient(-45deg,#e2ebe7 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e2ebe7 75%),linear-gradient(-45deg,transparent 75%,#e2ebe7 75%);background-size:22px 22px;background-position:0 0,0 11px,11px -11px,-11px 0;overscroll-behavior:contain;scrollbar-width:thin;}
.rt-canvas-frame{position:relative;display:block;flex:none;margin:auto;}
.rt-canvas-frame canvas{position:absolute;inset:0;display:block;max-width:none!important;max-height:none!important;object-fit:fill;touch-action:none;}
.rt-image-actions{min-height:76px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:9px 8px 2px;background:#fff;border:1px solid #dce7e3;border-top:0;border-radius:0 0 13px 13px;}
.rt-image-actions .rt-apply{width:min(360px,90%);min-height:52px;border:0;border-radius:13px;padding:0 24px;font-size:1.02rem;font-weight:850;letter-spacing:.01em;box-shadow:0 4px 0 #08756f;}
.rt-image-actions .rt-apply:disabled{box-shadow:none;opacity:.55;}
.rt-image-actions .rt-status{width:100%;min-height:18px;margin:2px 0 0;text-align:center;font-size:.78rem;line-height:1.25;color:#5c7470;}
.rt-compare-hold{right:14px;top:14px;min-height:42px;padding:8px 16px;font-size:.9rem;background:#244e49;}
.rt-tool-panel{padding:15px 14px;gap:12px;background:#fff;border:0;border-left:1px solid #dce7e3;}
.rt-tool-panel-title{padding:12px 13px;border:1px solid #dce8e4;border-radius:13px;background:#f1f8f6;align-items:center;}
.rt-tool-panel-title>span{width:38px;height:38px;border-radius:11px;background:#dff4ef;font-size:1.25rem;}
.rt-tool-panel-title strong{font-size:.96rem;font-weight:850;}
.rt-tool-panel-title small{font-size:.82rem;line-height:1.45;}
.rt-control-card{display:grid;gap:9px;padding:13px 14px;border:1px solid #dce6e2;border-radius:13px;background:#fff;box-shadow:0 2px 7px rgba(24,56,48,.035);}
.rt-control-label{font-size:.78rem;font-weight:850;color:#47625c;letter-spacing:.05em;text-transform:uppercase;}
.rt-mode-tools{grid-template-columns:1fr 1fr;gap:8px;}
.rt-tool{min-height:44px;padding:9px 12px;border:1.5px solid #ccddd7;border-radius:11px;background:#fff;color:#243e39;font:700 .91rem/1.2 inherit;}
.rt-tool:hover:not(:disabled){border-color:#0b8a80;background:#f0faf7;}
.rt-tool.active{background:#dff3ee;border-color:#078f89;color:#08756e;box-shadow:0 0 0 1px #078f89 inset;}
.rt-tool:disabled{opacity:.45;}
.rt-mode-switch{gap:9px;}
.rt-mode-switch .rt-control-label{font-size:.78rem;}
.rt-mode-switch small{font-size:.82rem;line-height:1.45;}
.rt-size{padding:13px 14px;gap:10px;}
.rt-size span{font-size:.9rem;font-weight:800;color:#34514a;}
.rt-size input{height:26px;accent-color:#078f89;cursor:pointer;}
.rt-edit-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
.rt-edit-actions .rt-tool{min-height:41px;font-size:.84rem;padding:8px;}
.rt-tool-help{padding:12px 13px;font-size:.84rem;line-height:1.55;background:#eef7f5;color:#526d66;border-radius:12px;}
.rt-editor-cancelbar{display:none!important;}
.rt-privacy-note{font-size:.84rem;margin:10px 4px 0;}
.rt-examples-section{margin-top:32px;}
.rt-pair-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px;}
.rt-example-card{margin:0;overflow:hidden;border:1px solid #dfe8e4;border-radius:15px;background:#fff;box-shadow:0 4px 14px rgba(26,57,48,.055);}
.rt-pair-compare{position:relative;isolation:isolate;width:100%;aspect-ratio:4/5;overflow:hidden;background:#e9efec;cursor:ew-resize;touch-action:pan-y;user-select:none;}
.rt-pair-compare img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;pointer-events:none;}
.rt-pair-after{z-index:1;}
.rt-pair-before{z-index:2;clip-path:inset(0 50% 0 0);}
.rt-pair-label{position:absolute;z-index:4;top:10px;padding:5px 9px;border-radius:18px;background:rgba(22,50,45,.82);color:#fff;font-size:.75rem;font-weight:850;pointer-events:none;}
.rt-pair-label.is-before{left:10px;}.rt-pair-label.is-after{right:10px;}
.rt-pair-divider{position:absolute;z-index:5;left:50%;top:0;bottom:0;width:3px;transform:translateX(-50%);background:#fff;box-shadow:0 0 0 1px rgba(20,40,60,.15),0 0 12px rgba(0,0,0,.18);pointer-events:none;}
.rt-pair-divider i{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:36px;height:36px;border:2px solid #fff;border-radius:50%;display:grid;place-items:center;background:#078f89;color:#fff;font-size:1.1rem;font-style:normal;font-weight:900;box-shadow:0 3px 12px rgba(0,0,0,.2);}
.rt-pair-compare:focus-visible{outline:3px solid #0b8278;outline-offset:2px;}
.rt-example-card figcaption{min-height:46px;display:flex;align-items:center;padding:10px 12px;font-size:.9rem;font-weight:750;color:#28463e;}
.rt-faq{max-width:1120px;}
.rt-faq>.faq{margin-top:14px;}
.rt-faq .faq{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;}
.rt-faq .faq details{padding:0 17px;border-radius:14px;box-shadow:0 2px 8px rgba(25,60,50,.04);}
.rt-faq .faq summary{font-size:.94rem;line-height:1.4;padding:17px 34px 17px 0;}
.rt-faq .faq details p{font-size:.9rem;line-height:1.6;padding-bottom:16px;}
.rt-more .relgrid,.rt-popular .relgrid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;}
.rt-more .rel,.rt-popular .rel{min-height:52px;display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:12px;}
.rt-more .rel>span,.rt-popular .rel>span{width:28px;height:28px;flex:none;display:grid;place-items:center;border-radius:9px;background:#e8f6f2;color:#078f89;font-size:1.05rem;font-weight:900;}
.rt-popular{margin-bottom:34px;}
.rt-result{max-width:1200px;margin:30px auto 34px;}
.rt-result-compare{height:clamp(300px,54vw,620px);}
.rt-result-actions button{min-height:50px;border-radius:12px;font-size:.95rem;}
@media(max-width:1100px){.rt-pair-grid{grid-template-columns:repeat(4,minmax(0,1fr));}.rt-more .relgrid,.rt-popular .relgrid{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:900px){.rt-editor:not([hidden]){overflow-y:auto;}.rt-editor-layout{grid-template-columns:minmax(0,1fr) 290px;}.rt-tool-panel{overflow:auto;}.rt-pair-grid{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:700px){.rt-editor-heading{min-height:58px;padding:8px 10px;align-items:center;flex-wrap:wrap;}.rt-editor-layout{grid-template-columns:1fr;grid-template-rows:minmax(260px,1fr) auto;}.rt-image-column{min-height:320px;padding:8px;}.rt-stage-canvas{min-height:240px;}.rt-image-actions{min-height:68px;}.rt-image-actions .rt-apply{min-height:48px;}.rt-tool-panel{max-height:42vh;display:grid;grid-template-columns:1fr 1fr;align-content:start;gap:9px;border-left:0;border-top:1px solid #dce7e3;}.rt-tool-panel-title,.rt-tool-help{grid-column:1/-1;}.rt-mode-switch,.rt-size,.rt-control-card,.rt-edit-actions{min-width:0;}.rt-edit-actions{grid-column:1/-1;grid-template-columns:repeat(4,minmax(0,1fr));}.rt-pair-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;}.rt-faq .faq{grid-template-columns:1fr;}.rt-more .relgrid,.rt-popular .relgrid{grid-template-columns:repeat(2,minmax(0,1fr));}.rt-top-cancel{min-height:38px;padding:0 12px;}}
@media(max-width:480px){.rt-editor-heading{gap:6px;}.rt-editor-title small{max-width:54vw;}.rt-heading-controls{gap:5px;}.rt-zoom-controls .rt-tool{min-width:34px;min-height:36px;padding:5px 8px;}.rt-zoom-controls b{min-width:38px;font-size:.8rem;}.rt-tool-panel{grid-template-columns:1fr;max-height:44vh;}.rt-tool-panel-title,.rt-tool-help,.rt-edit-actions{grid-column:1;}.rt-edit-actions{grid-template-columns:repeat(2,minmax(0,1fr));}.rt-pair-grid{gap:9px;}.rt-example-card figcaption{font-size:.82rem;padding:9px;}.rt-result-compare{height:clamp(240px,70vw,410px);}}

.rt-image-actions .rt-apply{text-transform:capitalize;}

/* v47 Retouch page alignment with the FileLumi Enhancer experience */
.rt-hero{max-width:1120px;padding:10px 16px 4px}.rt-hero h1{margin:0 0 5px}
.rt-upload-stage{display:grid;grid-template-columns:minmax(0,1fr);max-width:1120px;margin:0 auto;padding:0 16px}
.rt-upload-stage .rt-panel{padding:10px;border:1px solid var(--line);border-radius:20px;background:#fff;box-shadow:var(--shadow)}
.rt-drop{min-height:300px;border:2px dashed #0f887e;border-radius:16px;background:repeating-conic-gradient(#f1f8f6 0 25%,#fff 0 50%) 0 0/22px 22px;gap:5px}
.rt-drop:hover,.rt-drop:focus-visible,.rt-drop.over{border-color:#08786f;background-color:#eaf7f4}
.rt-drop-icon{width:68px;height:68px;margin-bottom:8px}.rt-drop strong{font-size:1.15rem}.rt-drop p{font-size:.9rem}
.rt-upload-preview{display:block;max-width:min(100%,420px);max-height:190px;object-fit:contain;border-radius:12px;margin:0 auto 10px;box-shadow:0 3px 15px rgba(15,55,47,.12)}
.rt-upload-preview[hidden]{display:none!important}
.rt-start{display:block;width:min(100% - 32px,1120px);min-height:54px;margin:10px auto 0;font-size:1rem}
.rt-start:disabled{opacity:.45;cursor:not-allowed}.rt-upload-stage .rt-privacy-note{margin:8px auto 0}
.rt-editor:not([hidden]){z-index:200}.rt-editor-heading{min-height:62px}.rt-history-controls{display:flex;gap:6px}.rt-head-btn{display:grid;place-items:center;font-size:1.25rem;cursor:pointer}.rt-head-btn:disabled{opacity:.35}
.rt-tool-panel{gap:10px}.rt-control-card{padding:12px;border:1px solid var(--line);border-radius:14px;background:#fff}.rt-toolgroup{display:flex;gap:7px}.rt-mode-tools .rt-tool,.rt-mode-switch .rt-tool{flex:1;min-height:44px}.rt-size{min-width:0}.rt-size input{height:24px;cursor:pointer;accent-color:#0f8279}.rt-size b{font-variant-numeric:tabular-nums}.rt-toolgroup.rt-edit-actions{grid-template-columns:1fr}.rt-toolgroup.rt-edit-actions #rtClear{width:100%}
.rt-canvas-frame canvas{pointer-events:none}.rt-canvas-frame #rtCanvas{pointer-events:auto;cursor:crosshair}.rt-canvas-frame #rtOverlayCanvas{pointer-events:none}
.rt-editor-footer{z-index:5;min-height:72px;box-shadow:0 -3px 14px rgba(12,45,39,.06)}.rt-footer-actions{gap:9px}.rt-footer-actions #rtApply{min-width:170px}.rt-footer-actions #rtDownload{min-width:170px}
.rt-status{min-height:1.2em}.rt-result{scroll-margin-top:18px}.rt-stepgrid{display:none}
.rt-info#how{max-width:1120px}.rt-info#how .steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;list-style:none;padding:0;margin:18px 0 0}.rt-info#how .steps li{padding:18px;border:1px solid var(--line);border-radius:17px;background:#fff;box-shadow:var(--shadow);min-width:0}.rt-info#how .steps .n{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:var(--pri);color:#fff;font-weight:850}.rt-info#how .steps h3{margin:10px 0 4px;font-size:1rem}.rt-info#how .steps p{margin:0;color:var(--mute);font-size:.9rem;line-height:1.55}.rt-info#how .keys{border-top:1px dashed var(--line);padding-top:10px;margin-top:12px;color:var(--mute);font-size:.8rem}
.rt-examples-section{max-width:1280px}.rt-pair-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}.rt-example-card{overflow:hidden;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:var(--shadow)}.rt-pair-compare{aspect-ratio:1.25/1}.rt-example-card figcaption{padding:12px 14px;font-weight:700}.rt-more,.rt-popular{max-width:1120px}.rt-more .relgrid,.rt-popular .relgrid{grid-template-columns:repeat(5,minmax(0,1fr))}.rt-more .rel,.rt-popular .rel{min-height:66px;border-radius:15px;box-shadow:var(--shadow)}
@media(max-width:900px){.rt-pair-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.rt-more .relgrid,.rt-popular .relgrid{grid-template-columns:repeat(3,minmax(0,1fr))}.rt-info#how .steps{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.rt-drop{min-height:245px}.rt-pair-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.rt-more .relgrid,.rt-popular .relgrid{grid-template-columns:repeat(2,minmax(0,1fr))}.rt-info#how .steps{grid-template-columns:1fr 1fr}.rt-editor-footer{align-items:center}.rt-editor-footer .rt-status{display:none}.rt-footer-actions{width:100%;justify-content:flex-end}.rt-footer-actions button{flex:1 1 0;min-width:0!important}}
@media(max-width:480px){.rt-hero h1{font-size:1.55rem}.rt-pair-grid{grid-template-columns:1fr 1fr}.rt-info#how .steps{grid-template-columns:1fr}.rt-more .relgrid,.rt-popular .relgrid{grid-template-columns:1fr 1fr}.rt-footer-actions button{font-size:.82rem;padding:0 8px}.rt-heading-controls{gap:5px}.rt-history-controls{gap:4px}}

/* v48: Match the Enhancer upload stage and keep the Retouch CTA outside the hidden editor. */
.rt-hero{max-width:1120px;padding:8px 16px 5px}
.rt-hero h1{margin:0}
.rt-upload-stage{display:grid;grid-template-columns:160px minmax(0,1fr) 160px;gap:16px;align-items:stretch;max-width:1380px;height:var(--stageh,clamp(470px,calc(100dvh - 176px),780px));margin:0 auto;padding:0 16px;box-sizing:border-box}
.rt-workspace{display:flex;flex-direction:column;gap:10px;min-width:0;min-height:0}
.rt-upload-stage .rt-panel{position:relative;flex:1;min-height:0;height:auto;padding:10px;border:1px solid var(--line);border-radius:22px;background:var(--surface);box-shadow:var(--shadow);box-sizing:border-box}
.rt-drop{position:absolute;inset:10px;min-height:0;height:auto;border:3px dashed #89c3ba;border-radius:16px;background:repeating-conic-gradient(#f4faf8 0 25%,#fff 0 50%) 0 0/22px 22px;gap:6px;padding:16px;box-sizing:border-box;transition:border-color .15s,background-color .15s;overflow:hidden}
.rt-drop:hover,.rt-drop:focus-visible,.rt-drop.over{border-color:var(--pri);background-color:var(--pri-soft)}
.rt-drop-icon{display:grid;place-items:center;width:68px;height:68px;flex:none;margin:0 0 4px;border-radius:50%;background:var(--pri);color:#fff;font-size:1.9rem;font-weight:800;box-shadow:0 8px 20px rgba(15,118,110,.35)}
.rt-drop strong{font-size:1.25rem;line-height:1.3;color:var(--ink)}
.rt-drop p{margin:0;color:var(--mute);font-size:.92rem;line-height:1.45}
.rt-drop .rt-format-hint{margin-top:1px;font-size:.8rem;color:var(--mute)}
.rt-upload-preview{position:absolute;inset:8px;display:block;width:calc(100% - 16px);height:calc(100% - 16px);max-width:none;max-height:none;object-fit:contain;border-radius:10px;margin:0;box-shadow:none;pointer-events:none}
.rt-upload-preview[hidden]{display:none!important}
.rt-drop.has-image .rt-drop-icon,.rt-drop.has-image p,.rt-drop.has-image .rt-format-hint{display:none}
.rt-drop.has-image strong{position:absolute;z-index:2;left:50%;bottom:12px;transform:translateX(-50%);max-width:calc(100% - 24px);padding:7px 14px;border-radius:999px;background:rgba(16,48,43,.86);color:#fff;font-size:.84rem;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rt-start{display:block;flex:none;width:100%;min-height:58px;margin:0;font-size:1.05rem}
.rt-start:disabled{opacity:.55;cursor:not-allowed}
.rt-workspace .rt-privacy-note{flex:none;margin:0 auto;text-align:center;color:var(--mute);font-size:.85rem;line-height:1.3}
.rt-upload-stage>.ad.side{height:100%;min-height:0}
.rt-editor:not([hidden]){z-index:200}
@media(max-width:1180px){.rt-upload-stage{grid-template-columns:120px minmax(0,1fr) 120px}}
@media(max-width:900px){.rt-upload-stage{display:block;height:auto;padding:0 12px}.rt-upload-stage>.ad.side{display:none}.rt-workspace{gap:10px}.rt-upload-stage .rt-panel{height:min(62vh,420px);min-height:300px;flex:none}.rt-drop{min-height:0}.rt-start{width:100%;min-height:56px;margin:0}.rt-workspace .rt-privacy-note{margin:0 auto 2px}}
@media(max-width:520px){.rt-upload-stage{padding:0 10px}.rt-upload-stage .rt-panel{height:min(58vh,390px);min-height:270px;padding:8px}.rt-drop{inset:8px;padding:14px}.rt-drop-icon{width:62px;height:62px}.rt-drop strong{font-size:1.1rem}.rt-drop p{font-size:.86rem}.rt-start{min-height:54px;font-size:1rem}}

/* v48: Match the Enhancer upload stage and keep the Retouch CTA outside the hidden editor. */
.rt-hero{max-width:1120px;padding:8px 16px 5px}
.rt-hero h1{margin:0}
.rt-upload-stage{display:grid;grid-template-columns:160px minmax(0,1fr) 160px;gap:16px;align-items:stretch;max-width:1380px;height:var(--stageh,clamp(470px,calc(100dvh - 176px),780px));margin:0 auto;padding:0 16px;box-sizing:border-box}
.rt-workspace{display:flex;flex-direction:column;gap:10px;min-width:0;min-height:0}
.rt-upload-stage .rt-panel{position:relative;flex:1;min-height:0;height:auto;padding:10px;border:1px solid var(--line);border-radius:22px;background:var(--surface);box-shadow:var(--shadow);box-sizing:border-box}
.rt-drop{position:absolute;inset:10px;min-height:0;height:auto;border:3px dashed #89c3ba;border-radius:16px;background:repeating-conic-gradient(#f4faf8 0 25%,#fff 0 50%) 0 0/22px 22px;gap:6px;padding:16px;box-sizing:border-box;transition:border-color .15s,background-color .15s;overflow:hidden}
.rt-drop:hover,.rt-drop:focus-visible,.rt-drop.over{border-color:var(--pri);background-color:var(--pri-soft)}
.rt-drop-icon{display:grid;place-items:center;width:68px;height:68px;flex:none;margin:0 0 4px;border-radius:50%;background:var(--pri);color:#fff;font-size:1.9rem;font-weight:800;box-shadow:0 8px 20px rgba(15,118,110,.35)}
.rt-drop strong{font-size:1.25rem;line-height:1.3;color:var(--ink)}
.rt-drop p{margin:0;color:var(--mute);font-size:.92rem;line-height:1.45}
.rt-drop .rt-format-hint{margin-top:1px;font-size:.8rem;color:var(--mute)}
.rt-upload-preview{position:absolute;inset:8px;display:block;width:calc(100% - 16px);height:calc(100% - 16px);max-width:none;max-height:none;object-fit:contain;border-radius:10px;margin:0;box-shadow:none;pointer-events:none}
.rt-upload-preview[hidden]{display:none!important}
.rt-drop.has-image .rt-drop-icon,.rt-drop.has-image p,.rt-drop.has-image .rt-format-hint{display:none}
.rt-drop.has-image strong{position:absolute;z-index:2;left:50%;bottom:12px;transform:translateX(-50%);max-width:calc(100% - 24px);padding:7px 14px;border-radius:999px;background:rgba(16,48,43,.86);color:#fff;font-size:.84rem;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rt-start{display:block;flex:none;width:100%;min-height:58px;margin:0;font-size:1.05rem}
.rt-start:disabled{opacity:.55;cursor:not-allowed}
.rt-workspace .rt-privacy-note{flex:none;margin:0 auto;text-align:center;color:var(--mute);font-size:.85rem;line-height:1.3}
.rt-upload-stage>.ad.side{height:100%;min-height:0}
.rt-editor:not([hidden]){z-index:200}
@media(max-width:1180px){.rt-upload-stage{grid-template-columns:120px minmax(0,1fr) 120px}}
@media(max-width:900px){.rt-upload-stage{display:block;height:auto;padding:0 12px}.rt-upload-stage>.ad.side{display:none}.rt-workspace{gap:10px}.rt-upload-stage .rt-panel{height:min(62vh,420px);min-height:300px;flex:none}.rt-drop{min-height:0}.rt-start{width:100%;min-height:56px;margin:0}.rt-workspace .rt-privacy-note{margin:0 auto 2px}}
@media(max-width:520px){.rt-upload-stage{padding:0 10px}.rt-upload-stage .rt-panel{height:min(58vh,390px);min-height:270px;padding:8px}.rt-drop{inset:8px;padding:14px}.rt-drop-icon{width:62px;height:62px}.rt-drop strong{font-size:1.1rem}.rt-drop p{font-size:.86rem}.rt-start{min-height:54px;font-size:1rem}}

/* v49 Retouch UX polish: tools below the canvas, compact mobile editor, and consistent green actions. */
.rt-editor-layout{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(220px,1fr) auto!important;}
.rt-image-column{min-height:0!important;}
.rt-tool-panel{height:auto!important;max-height:30vh;overflow:auto;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:10px!important;border-left:0!important;border-top:1px solid #dce7e3!important;padding:12px 16px!important;}
.rt-tool-panel>.rt-mode-switch{grid-column:1/-1;order:0;}
.rt-tool-panel>.rt-control-card:has(#rtBrush){order:1;}
.rt-tool-panel>.rt-control-card:has(#rtSize){order:2;}
.rt-tool-panel>.rt-control-card:has(#rtStrength){order:3;}
.rt-tool-panel>.rt-edit-actions{order:4;grid-column:1/-1;}
.rt-tool-panel .rt-tool{color:#174b45;background:#fff;border:1px solid #b9d8d0;border-radius:10px;font-weight:750;}
.rt-tool-panel .rt-tool.active{background:#e4f5ef;border-color:#119b79;color:#075b48;}
.rt-tool-panel .rt-edit-actions #rtClear{width:100%;min-height:42px;}
.rt-tool-help,.rt-tool-panel-title{display:none!important;}
.rt-editor-footer{justify-content:flex-end!important;gap:10px!important;}
.rt-editor-footer .rt-status{display:none!important;}
.rt-footer-actions{width:auto!important;justify-content:flex-end!important;}
.rt-footer-actions button{min-width:145px;min-height:44px;border-radius:11px;font-weight:800;}
.rt-footer-actions #rtApply,.rt-footer-actions #rtDownload{background:#0b9875!important;color:#fff!important;border:1px solid #078568!important;box-shadow:none!important;}
.rt-footer-actions #rtApply:hover:not(:disabled),.rt-footer-actions #rtDownload:hover:not(:disabled){background:#087b60!important;}
.rt-footer-actions #rtApply:disabled,.rt-footer-actions #rtDownload:disabled{opacity:.45!important;}
.rt-footer-actions #rtCancel{background:#fff!important;color:#087b68!important;border:1.5px solid #0b9875!important;}
.rt-change-image{margin-top:4px;width:max-content;min-height:30px;padding:4px 10px;border:1px solid #b9d8d0;border-radius:8px;background:#fff;color:#087b68;font-weight:700;font-size:.78rem;}
.rt-change-image[hidden]{display:none!important;}
/* v55: selected image preview fills the same large upload stage as Enhancer / Remove BG. */
.rt-upload-preview{position:absolute!important;inset:8px!important;display:block!important;width:calc(100% - 16px)!important;height:calc(100% - 16px)!important;max-width:none!important;max-height:none!important;object-fit:contain!important;margin:0!important;border-radius:10px!important;box-shadow:none!important;pointer-events:none!important;}
.rt-upload-preview[hidden]{display:none!important}
.rt-drop.has-image{justify-content:center!important;}
@media(max-width:700px){
 .rt-editor-heading{min-height:58px;padding:7px 10px;gap:8px;}
 .rt-editor-title{flex:1 1 auto;}
 .rt-editor-title strong{font-size:.95rem;}
 .rt-heading-controls{gap:5px;}
 .rt-editor-layout{grid-template-rows:minmax(210px,1fr) auto!important;}
 .rt-image-column{min-height:230px!important;padding:7px!important;}
 .rt-stage-canvas{min-height:210px!important;height:auto!important;}
 .rt-tool-panel{max-height:34vh;grid-template-columns:1fr 1fr!important;padding:10px!important;gap:8px!important;}
 .rt-tool-panel>.rt-mode-switch{grid-column:1/-1!important;}
 .rt-tool-panel>.rt-control-card:has(#rtBrush){grid-column:1/-1!important;}
 .rt-tool-panel>.rt-control-card:has(#rtSize),.rt-tool-panel>.rt-control-card:has(#rtStrength){grid-column:span 1!important;}
 .rt-tool-panel>.rt-edit-actions{grid-column:1/-1!important;}
 .rt-editor-footer{min-height:60px;padding:7px 10px!important;}
 .rt-footer-actions{width:100%!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;}
 .rt-footer-actions #rtApply{grid-column:1/-1;grid-row:1;}
 .rt-footer-actions #rtCancel{grid-column:1;grid-row:2;}
 .rt-footer-actions #rtDownload{grid-column:2;grid-row:2;}
 .rt-footer-actions button{width:100%;min-width:0!important;min-height:42px!important;font-size:.85rem;padding:0 8px!important;}
}
@media(max-width:420px){.rt-tool-panel{max-height:37vh;}.rt-tool-panel .rt-control-card{padding:9px!important}.rt-change-image{font-size:.72rem;}}


/* v50: Retouch editor desktop split layout (photo left, controls right). */
.rt-editor:not([hidden]){display:flex!important;flex-direction:column!important;overflow:hidden!important;}
.rt-editor-layout{flex:1 1 auto!important;min-height:0!important;min-width:0!important;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(292px,330px)!important;grid-template-rows:minmax(0,1fr)!important;gap:0!important;align-items:stretch!important;overflow:hidden!important;}
.rt-image-column{grid-column:1!important;grid-row:1!important;min-width:0!important;min-height:0!important;height:100%!important;display:flex!important;flex-direction:column!important;padding:10px 12px!important;gap:0!important;background:#edf4f1!important;}
.rt-stage-canvas{position:relative!important;flex:1 1 auto!important;min-height:220px!important;max-height:none!important;height:auto!important;width:100%!important;display:flex!important;justify-content:center!important;align-items:center!important;overflow:auto!important;padding:10px!important;box-sizing:border-box!important;}
.rt-canvas-frame{position:relative!important;display:block!important;flex:none!important;margin:auto!important;}
.rt-canvas-frame canvas{position:absolute!important;left:0!important;top:0!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:fill!important;box-sizing:border-box!important;}
.rt-canvas-frame #rtCanvas{z-index:1!important;pointer-events:auto!important;touch-action:none!important;}
.rt-canvas-frame #rtOverlayCanvas{z-index:2!important;pointer-events:none!important;}
.rt-image-actions{flex:none!important;min-height:78px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:5px!important;padding:9px 8px 7px!important;background:#fff!important;border:1px solid #dce7e3!important;border-top:0!important;border-radius:0 0 13px 13px!important;}
.rt-image-actions #rtApply{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:min(360px,94%)!important;min-height:48px!important;margin:0!important;border:1px solid #078568!important;border-radius:11px!important;background:#0b9875!important;color:#fff!important;font-weight:850!important;box-shadow:none!important;}
.rt-image-actions #rtApply:hover:not(:disabled){background:#087b60!important;}
.rt-image-actions #rtApply:disabled{opacity:.5!important;}
.rt-image-actions .rt-status{width:100%!important;min-height:16px!important;margin:0!important;text-align:center!important;font-size:.76rem!important;line-height:1.25!important;color:#5c7470!important;}
.rt-tool-panel{grid-column:2!important;grid-row:1!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:11px!important;width:auto!important;height:100%!important;max-height:none!important;min-height:0!important;overflow:auto!important;padding:15px 14px!important;border:0!important;border-left:1px solid #dce7e3!important;border-radius:0!important;background:#fff!important;}
.rt-tool-panel>.rt-mode-switch{order:0!important;width:100%!important;}
.rt-tool-panel>.rt-control-card:has(#rtBrush){order:1!important;width:100%!important;}
.rt-tool-panel>.rt-control-card:has(#rtSize){order:2!important;width:100%!important;}
.rt-tool-panel>.rt-control-card:has(#rtStrength){order:3!important;width:100%!important;}
.rt-tool-panel>.rt-edit-actions{order:4!important;width:100%!important;}
.rt-tool-panel-title,.rt-tool-help{display:none!important;}
.rt-tool-panel .rt-tool{color:#174b45!important;background:#fff!important;border:1px solid #b9d8d0!important;border-radius:10px!important;font-weight:750!important;}
.rt-tool-panel .rt-tool.active{background:#e4f5ef!important;border-color:#119b79!important;color:#075b48!important;}
.rt-tool-panel .rt-edit-actions #rtClear{width:100%!important;min-height:42px!important;}
.rt-editor-footer{flex:none!important;min-height:66px!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:10px!important;padding:8px 14px!important;background:#fff!important;border-top:1px solid #dce7e3!important;}
.rt-editor-footer .rt-status{display:none!important;}
.rt-footer-actions{width:auto!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:9px!important;}
.rt-footer-actions button{min-width:145px!important;min-height:44px!important;border-radius:11px!important;font-weight:800!important;}
.rt-footer-actions #rtCancel{background:#fff!important;color:#087b68!important;border:1.5px solid #0b9875!important;}
.rt-footer-actions #rtDownload{background:#0b9875!important;color:#fff!important;border:1px solid #078568!important;box-shadow:none!important;}
.rt-footer-actions #rtDownload:hover:not(:disabled){background:#087b60!important;}
.rt-footer-actions #rtDownload:disabled{opacity:.5!important;}
.rt-change-image{margin-top:4px;width:max-content;min-height:30px;padding:4px 10px;border:1px solid #b9d8d0;border-radius:8px;background:#fff;color:#087b68;font-weight:700;font-size:.78rem;}
.rt-change-image[hidden]{display:none!important;}
@media(max-width:900px) and (min-width:701px){.rt-editor-layout{grid-template-columns:minmax(0,1fr) minmax(270px,300px)!important;}.rt-heading-controls{gap:7px!important;}}
@media(max-width:700px){
 .rt-editor:not([hidden]){overflow-y:auto!important;}
 .rt-editor-layout{flex:1 1 auto!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(210px,1fr) auto!important;overflow:visible!important;}
 .rt-image-column{grid-column:1!important;grid-row:1!important;min-height:225px!important;height:auto!important;padding:6px!important;}
 .rt-stage-canvas{min-height:190px!important;max-height:46vh!important;padding:7px!important;}
 .rt-image-actions{min-height:70px!important;padding:7px!important;}
 .rt-image-actions #rtApply{width:min(360px,96%)!important;min-height:44px!important;}
 .rt-tool-panel{grid-column:1!important;grid-row:2!important;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;align-content:start!important;gap:8px!important;max-height:37vh!important;height:auto!important;overflow:auto!important;padding:10px!important;border-left:0!important;border-top:1px solid #dce7e3!important;}
 .rt-tool-panel>.rt-mode-switch{grid-column:1/-1!important;}
 .rt-tool-panel>.rt-control-card:has(#rtBrush){grid-column:1/-1!important;}
 .rt-tool-panel>.rt-control-card:has(#rtSize),.rt-tool-panel>.rt-control-card:has(#rtStrength){grid-column:span 1!important;}
 .rt-tool-panel>.rt-edit-actions{grid-column:1/-1!important;}
 .rt-editor-footer{min-height:58px!important;padding:7px 9px!important;}
 .rt-footer-actions{width:100%!important;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:8px!important;}
 .rt-footer-actions button{width:100%!important;min-width:0!important;min-height:41px!important;padding:0 8px!important;font-size:.83rem!important;}
 .rt-heading-controls{gap:5px!important;}
}
@media(max-width:420px){.rt-tool-panel{max-height:39vh!important;}.rt-tool-panel .rt-control-card{padding:9px!important;}.rt-change-image{font-size:.72rem;}}

/* v52: remove the white strip behind the main Remove Object action. */
.rt-image-actions{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:8px 6px 4px!important;min-height:66px!important}.rt-image-actions .rt-status{background:transparent!important}

.rt-start[hidden]{display:none!important}


/* v54: show unmistakable processing feedback while Retouch repairs an object. */
.rt-processing{position:absolute;z-index:20;left:50%;top:50%;transform:translate(-50%,-50%);width:min(340px,calc(100% - 28px));display:grid;grid-template-columns:38px minmax(0,1fr);align-items:center;column-gap:11px;row-gap:9px;padding:15px 17px;border:1px solid #cfe4dd;border-radius:16px;background:rgba(255,255,255,.97);box-shadow:0 12px 36px rgba(12,50,42,.2);color:#173e36;text-align:left;}
.rt-processing[hidden]{display:none!important}.rt-processing-spinner{width:32px;height:32px;border:3px solid #d8eee8;border-top-color:#078f89;border-radius:50%;animation:rt-spin .8s linear infinite;grid-row:1/3;}
.rt-processing strong{font-size:.94rem;line-height:1.35}.rt-processing-track{height:6px;overflow:hidden;border-radius:8px;background:#e6f0ed}.rt-processing-track span{display:block;height:100%;width:0;border-radius:8px;background:#078f89;transition:width .2s ease}.rt-processing-track span.is-indeterminate{width:34%!important;animation:rt-progress 1.15s ease-in-out infinite alternate}.rt-processing small{grid-column:2;color:#607a73;font-size:.75rem}.rt-stage-canvas{position:relative}
@keyframes rt-spin{to{transform:rotate(360deg)}}@keyframes rt-progress{from{transform:translateX(-12%)}to{transform:translateX(190%)}}
.rt-editor-footer .rt-footer-actions #rtDownload{min-width:145px!important;min-height:48px!important;padding:10px 18px!important;border-radius:12px!important;font-size:.9rem!important;font-weight:750!important;letter-spacing:.005em!important;box-shadow:none!important;}
.rt-result-compare:before{left:var(--rt-compare,50%)}
@media(max-width:700px){.rt-processing{width:min(310px,calc(100% - 24px));padding:13px 14px}.rt-result-actions{display:grid;grid-template-columns:1fr 1fr}.rt-result-actions #rtCustom{grid-column:1/-1}.rt-editor-footer .rt-footer-actions #rtDownload{min-width:0!important;min-height:44px!important;font-size:.88rem!important}}
@media(max-width:420px){.rt-result-actions{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}}


/* v54: keep Retouch Done in the same compact button scale as the Remove BG editor. */
.rt-editor-footer .rt-footer-actions #rtDownload{
  width:auto!important;min-width:0!important;min-height:48px!important;
  padding:10px 20px!important;border-radius:14px!important;
  font-size:.9rem!important;font-weight:700!important;letter-spacing:.005em!important;
}
/* v54: stable drag behaviour on touch screens and a clear, centred result image. */
.rt-result-compare{touch-action:none!important;position:relative;isolation:isolate;background:repeating-conic-gradient(#e8efed 0 25%,#fff 0 50%) 0 0/18px 18px!important;}
.rt-result-before,.rt-result-after img{object-position:center center!important;}
.rt-result-after{overflow:hidden!important;}
.rt-result-handle{left:var(--rt-compare,50%);touch-action:none;}


/* v55: Retouch Before/After uses the same centred, aspect-ratio-fitted preview frame as Enhancer / Remove BG. */
.rt-result-stage{display:grid;place-items:center;width:100%;height:clamp(300px,62vh,640px);padding:10px;border-radius:22px;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);overflow:hidden;}
.rt-result-compare{width:auto;height:auto;max-width:100%;max-height:100%;aspect-ratio:var(--rt-result-ar,1.5);border:0;border-radius:12px;background:repeating-conic-gradient(#e9f1ee 0 25%,#fff 0 50%) 0 0/18px 18px;box-shadow:none;overflow:hidden;}
.rt-result-before,.rt-result-after img{object-fit:fill!important;}
.rt-result-after{overflow:hidden!important;}
@media(max-width:900px){.rt-result-stage{height:clamp(260px,52vh,520px);padding:8px;}}
@media(max-width:520px){.rt-result-stage{height:clamp(240px,50vh,460px);padding:6px;border-radius:16px;}}


/* v56: Retouch uses the same split Download control as Enhancer / Remove BG. */
.rt-result-actions .rt-download-split{flex:0 1 230px;min-width:170px;display:flex;align-items:stretch;}
.rt-result-actions .rt-download-split>.split{display:flex;width:100%;min-width:0;}
.rt-result-actions .rt-download-split .split .main{flex:1 1 auto;min-width:0;min-height:50px;justify-content:center;}
.rt-result-actions .rt-download-split .split .car{flex:0 0 46px;min-width:46px;min-height:50px;}
.rt-result-actions .rt-download-split .split .menu{z-index:30;}
@media(max-width:700px){.rt-result-actions #rtDownloadSplit{grid-column:1/-1;width:100%;}.rt-result-actions #rtDownloadSplit>.split{width:min(100%,360px);margin-inline:auto;}}
@media(max-width:480px){.rt-result-actions #rtDownloadSplit>.split{width:100%;}}

/* v62: obvious example zoom control + full-size interactive Before/After viewer. */
.rt-pair-compare{position:relative}
.rt-demo-viewer{position:fixed;z-index:100000;inset:0;display:grid;place-items:center;padding:18px;background:rgba(3,12,20,.9);backdrop-filter:blur(8px)}
.rt-demo-viewer-panel{width:min(1120px,96vw);max-height:96vh;display:flex;flex-direction:column;gap:12px;padding:14px;border:1px solid rgba(255,255,255,.2);border-radius:18px;background:#101d26;box-shadow:0 24px 90px rgba(0,0,0,.5)}
.rt-demo-viewer-top{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#fff;font-size:1rem}
.rt-demo-viewer-close{width:42px;height:42px;flex:none;border:1px solid rgba(255,255,255,.3);border-radius:50%;background:rgba(255,255,255,.1);color:#fff;font-size:1.65rem;line-height:1;cursor:pointer}
.rt-demo-viewer-stage{position:relative;isolation:isolate;width:auto;height:min(80vh,820px);max-width:100%;max-height:80vh;margin:0 auto;overflow:hidden;border-radius:12px;background:#24333e;cursor:ew-resize;touch-action:none;user-select:none;outline-offset:4px}
.rt-demo-full-after,.rt-demo-full-before{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}
.rt-demo-full-after{z-index:1}
.rt-demo-full-before-clip{position:absolute;z-index:2;inset:0;overflow:hidden;clip-path:inset(0 50% 0 0);pointer-events:none}
.rt-demo-full-before{object-fit:contain}
.rt-demo-viewer-tag{position:absolute;z-index:4;top:12px;padding:6px 10px;border-radius:20px;background:rgba(6,24,32,.78);color:#fff;font-size:.8rem;font-weight:850;pointer-events:none}
.rt-demo-viewer-tag.is-before{left:12px}.rt-demo-viewer-tag.is-after{right:12px}
.rt-demo-viewer-divider{position:absolute;z-index:5;top:0;bottom:0;left:50%;width:3px;transform:translateX(-50%);background:#fff;box-shadow:0 0 14px rgba(0,0,0,.45);pointer-events:none}
.rt-demo-viewer-divider i{position:absolute;top:50%;left:50%;display:grid;place-items:center;width:42px;height:42px;transform:translate(-50%,-50%);border:2px solid #fff;border-radius:50%;background:#087f78;color:#fff;font-style:normal;font-weight:900}
@media(max-width:600px){.rt-demo-viewer{padding:8px}.rt-demo-viewer-panel{padding:9px;border-radius:13px}.rt-demo-viewer-stage{height:min(76vh,700px)}}

/* v74: uploaded Retouch samples are landscape photos; preserve their full frame. */
.rt-pair-compare{aspect-ratio:3/2;background:#edf2f0}
.rt-pair-compare img{object-fit:contain;background:#edf2f0}
.rt-pair-compare.rt-single-example{cursor:zoom-in}
.rt-pair-compare .rt-single-photo{z-index:1;clip-path:none}
.rt-single-example .rt-pair-label.is-before{z-index:3}


/* v75: keep uploaded photo inside the Retouch drop zone and keep actions below it. */
.rt-upload-stage{display:grid;grid-template-columns:160px minmax(0,1fr) 160px;gap:16px;align-items:stretch;max-width:1380px;height:var(--stageh,clamp(470px,calc(100dvh - 176px),780px));margin:0 auto;padding:0 16px;box-sizing:border-box}
.rt-upload-stage .rt-panel{position:relative;flex:1;min-height:0;height:auto;padding:10px;border:1px solid var(--line);border-radius:22px;background:var(--surface);box-shadow:var(--shadow);box-sizing:border-box}
.rt-upload-stage .rt-drop{position:absolute;inset:10px;min-height:0;height:auto;overflow:hidden;box-sizing:border-box}
.rt-upload-preview{position:absolute!important;z-index:1;inset:8px!important;display:block!important;width:calc(100% - 16px)!important;height:calc(100% - 16px)!important;max-width:none!important;max-height:none!important;object-fit:contain!important;margin:0!important;border-radius:10px!important;pointer-events:none!important}
.rt-upload-preview[hidden]{display:none!important}
.rt-drop.has-image{justify-content:center!important}
.rt-drop.has-image .rt-drop-icon,.rt-drop.has-image p,.rt-drop.has-image .rt-format-hint{display:none!important}
.rt-drop.has-image strong{position:absolute;z-index:2;left:50%;bottom:12px;transform:translateX(-50%);max-width:calc(100% - 24px);padding:7px 14px;border-radius:999px;background:rgba(16,48,43,.88);color:#fff;font-size:.84rem;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rt-start{display:block;flex:none;width:100%;min-height:56px;margin:0;font-size:1rem}
.rt-start[hidden]{display:none!important}
.rt-upload-stage .rt-workspace{display:flex;flex-direction:column;gap:10px;min-width:0;min-height:0}
.rt-upload-stage .rt-workspace>.rt-panel{flex:1;min-height:0}
.rt-upload-stage .rt-footer-status{flex:none;margin:0 auto;text-align:center;max-width:100%;font-size:.82rem;line-height:1.35}
.rt-upload-stage>.ad.side{height:100%;min-height:0}
.rt-example-card figcaption{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.rt-example-try{min-height:34px;padding:6px 11px;border:1px solid #acd7cd;border-radius:9px;background:#f0faf6;color:#087b68;font-weight:750;font-size:.78rem;cursor:pointer}
.rt-example-try:hover{background:#e1f5ed;border-color:#0b9875}
.rt-example-try:disabled{opacity:.6;cursor:wait}
.rt-demo-viewer-actions{display:flex;justify-content:center;padding-top:12px}
.rt-demo-viewer-actions button{min-width:min(100%,260px);min-height:44px}
.rt-single-example{cursor:zoom-in}
@media(max-width:900px){.rt-upload-stage{display:block;height:auto;padding:0 12px}.rt-upload-stage>.ad.side{display:none}.rt-upload-stage .rt-panel{height:min(62vh,420px);min-height:300px;flex:none}.rt-upload-stage .rt-workspace{gap:9px}.rt-upload-stage .rt-start{width:100%;min-height:54px}.rt-upload-stage .rt-footer-status{margin:0 auto 4px}}
@media(max-width:520px){.rt-upload-stage{padding:0 10px}.rt-upload-stage .rt-panel{height:min(58vh,390px);min-height:270px;padding:8px}.rt-upload-stage .rt-drop{inset:8px;padding:14px}.rt-upload-stage .rt-drop-icon{width:62px;height:62px}.rt-upload-stage .rt-drop strong{font-size:1.05rem}.rt-upload-stage .rt-drop p{font-size:.84rem}.rt-example-card figcaption{align-items:flex-start}.rt-example-try{min-height:32px}}

/* v76: nine complete before/after examples in a clean 3 x 3 grid. */
.rt-examples-section .rt-pair-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
@media(max-width:900px){.rt-examples-section .rt-pair-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.rt-examples-section .rt-pair-grid{grid-template-columns:1fr}}

/* =====================  v78: Remove object + Done in the editor; big Enhancer-size preview after Done  ===================== */
.rt-start:disabled{opacity:.5;cursor:not-allowed;filter:saturate(.55)}
/* The result preview is exactly as large as the Enhancer / Remove BG result (css/style.css .res + .rstage .bigpv) */
.rt-result{max-width:1100px}
.rt-result .rt-result-stage{height:clamp(380px,72vh,760px);padding:10px;overflow:hidden}
@media(max-width:900px){.rt-result .rt-result-stage{height:clamp(300px,58vh,560px)}}
@media(max-width:520px){.rt-result .rt-result-stage{height:clamp(280px,54vh,520px);padding:6px}}

/* v79: footer = [Remove object] ...status... [Cancel][Done]; undo/redo/reset live in the top bar; no yellow shadow */
.rt-editor-footer{display:flex!important;align-items:center;flex-wrap:nowrap!important;gap:12px;padding:9px 16px!important;min-height:72px}
.rt-editor-footer #rtApply{order:1;flex:none;min-width:176px;min-height:48px;padding:0 20px;border-radius:12px;font-size:.94rem;font-weight:750;background:#0b9875!important;border:1px solid #078568!important;color:#fff!important}
.rt-editor-footer #rtApply:hover:not(:disabled){background:#087b60!important}
.rt-editor-footer .rt-status{order:2;flex:1 1 auto;min-width:0;margin:0;padding:0 6px}
.rt-editor-footer .rt-footer-actions{order:3;display:flex!important;flex:none;gap:10px;width:auto}
.rt-editor-footer .rt-footer-actions button{flex:none;min-width:124px;min-height:48px;padding:0 20px;border-radius:12px;font-size:.94rem;font-weight:750}
.rt-editor-footer .rt-footer-actions #rtDone{background:#173f3b!important;border:1px solid #173f3b!important;color:#fff!important}
.rt-editor-footer .rt-footer-actions #rtDone:hover:not(:disabled){background:#0f2f2c!important}
.rt-editor-footer button,.rt-editor-footer .go{box-shadow:none!important;transform:none!important;text-shadow:none!important}
.rt-editor-footer button:disabled{opacity:.42;cursor:not-allowed}
.rt-editor-heading .rt-history-controls{display:flex;gap:6px}
.rt-editor-heading .rt-head-btn{width:42px;height:42px}
@media(max-width:720px){
  .rt-editor-footer{display:grid!important;grid-template-columns:1fr;gap:8px;padding:8px 10px!important}
  .rt-editor-footer #rtApply{order:1;width:100%;min-width:0;min-height:46px}
  .rt-editor-footer .rt-status{display:none}
  .rt-editor-footer .rt-footer-actions{order:2;display:grid!important;grid-template-columns:1fr 1fr;width:100%}
  .rt-editor-footer .rt-footer-actions button{width:100%;min-width:0;min-height:46px;padding:0 8px;font-size:.9rem}
  .rt-editor-footer .rt-footer-actions #rtCancel{grid-column:1;grid-row:1}
  .rt-editor-footer .rt-footer-actions #rtDone{grid-column:2;grid-row:1}
  .rt-editor-heading .rt-head-btn{width:36px;height:36px}
}

/* v79: "Remove object" sits centred directly under the photo */
.rt-image-actions{flex:none!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;width:100%!important;min-height:64px!important;padding:10px 6px 2px!important;background:transparent!important;border:0!important;box-shadow:none!important}
.rt-image-actions #rtApply{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:auto!important;min-width:min(260px,92%)!important;min-height:48px!important;margin:0 auto!important;padding:0 28px!important;border-radius:999px!important;background:#0b9875!important;border:1px solid #078568!important;color:#fff!important;font-size:.98rem!important;font-weight:800!important;box-shadow:0 8px 18px -10px rgba(7,133,104,.7)!important}
.rt-image-actions #rtApply:hover:not(:disabled){background:#087b60!important}
.rt-image-actions #rtApply:disabled{opacity:.45!important;box-shadow:none!important;cursor:not-allowed}
@media(max-width:700px){.rt-image-actions{min-height:58px!important}.rt-image-actions #rtApply{width:100%!important;min-height:46px!important}}
