.retouch-entry{width:100%;margin:12px 0 4px!important;border:1px solid #d8d2c5!important;background:#f6f3ec!important;color:#665137!important;font-weight:650;display:flex;justify-content:center;align-items:center;gap:10px}.retouch-entry:hover{background:#ede5d5!important}.retouch-entry span{font-size:18px}
.lc-dialog.retouch-dialog{width:min(1500px,97vw);max-width:1500px;max-height:96dvh;border:0;border-radius:22px;padding:0;background:#faf9f6;color:#27302e}.retouch-dialog .lc-dialog-header{padding:20px 28px;border-bottom:1px solid #e7e3da;margin:0}.retouch-dialog .lc-dialog-header h2{font-size:23px}.retouch-dialog .lc-dialog-body{padding:0 28px 28px}.retouch-topline{display:flex;align-items:center;gap:18px;padding:18px 0;flex-wrap:wrap}.retouch-topline>span{font-size:10px;letter-spacing:2.3px;color:#9b7848;font-weight:750}.retouch-topline p{margin:0;color:#69726f;font-size:13px}.retouch-topline>b{margin-left:auto;font-size:12px;color:#65706a;font-weight:500}
.retouch-layout{display:grid;grid-template-columns:300px minmax(0,1fr);gap:25px}.retouch-controls{padding:20px;background:white;border:1px solid #e6e3db;border-radius:15px;align-self:start;display:flex;flex-direction:column;gap:14px}.retouch-step{display:flex;align-items:center;gap:9px}.retouch-step>span{font-size:11px;letter-spacing:1px;color:#97764a}.retouch-step h3{margin:0;font-size:15px}.retouch-step small{margin-left:auto;color:#87908a}.retouch-tools{display:grid;grid-template-columns:1fr 1fr;gap:8px}.retouch-tools button{border:1px solid #e6e5df;background:#fff;color:#4d5650;font-size:13px;padding:12px 4px;display:flex;align-items:center;justify-content:center;gap:8px;border-radius:10px}.retouch-tools button i{font-style:normal;font-size:18px;font-family:Georgia,serif}.retouch-tools button.selected{background:#263e36;border-color:#263e36;color:#f6edd9;box-shadow:0 3px 9px #203b3518}.retouch-hint{color:#788078;font-size:12px;line-height:1.7;margin:0}.retouch-controls label{display:flex;flex-direction:column;gap:7px;color:#535d55;font-size:12px}.retouch-controls input:not([type=checkbox]),.retouch-controls textarea{min-width:0;width:100%;border:1px solid #dedfd7;border-radius:8px;padding:10px;font:inherit;color:#27382f;background:#fcfcfa;box-sizing:border-box}.retouch-controls textarea{resize:vertical}.retouch-controls .link{text-align:left;color:#7b613c;font-size:12px;padding:0;align-self:start}
.retouch-references{padding:0;border:0;margin:0;min-width:0}.retouch-references legend{font-size:12px;color:#535d55;margin-bottom:8px}.retouch-references>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.retouch-references label{position:relative;cursor:pointer;overflow:hidden;border:2px solid #eee;border-radius:8px;padding:3px}.retouch-references label.selected{border-color:#8c9c7a;background:#f0f3ec}.retouch-references input{position:absolute;top:4px;left:4px;width:14px;height:14px}.retouch-references img{width:100%;height:59px;object-fit:contain;background:#f3f3ed}.retouch-references span{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:10px;display:block}.retouch-coordinates{font-size:12px;color:#687268}.retouch-coordinates>div{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-top:8px}.retouch-submit{border-top:1px solid #e9e6df;padding-top:15px;display:flex;flex-direction:column;gap:9px}.retouch-submit>b{font-size:13px}.retouch-submit small,.retouch-submit p{font-size:11px;line-height:1.7;color:#788078;margin:0}.retouch-submit>button{background:#263e36;border:0;border-radius:9px;color:#fff;padding:13px}.retouch-dialog button:disabled{opacity:.5;cursor:not-allowed}
.retouch-workspace{min-width:0}.retouch-viewbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;flex-wrap:wrap}.retouch-viewbar>div{display:flex;gap:3px;background:#eaece6;padding:4px;border-radius:10px}.retouch-viewbar button{background:none;color:#6c766d;border:0;font-size:12px;padding:9px 12px;border-radius:7px}.retouch-viewbar button.active{background:white;color:#354b3f;box-shadow:0 2px 5px #182c1810}.retouch-viewbar>span{font-size:11px;color:#8b938c}.retouch-canvas{border:1px solid #dedfd7;background-color:#ebede7;background-image:radial-gradient(#d5d9d0 .7px,transparent .7px);background-size:10px 10px;min-height:260px;border-radius:14px;padding:30px 20px;display:flex;align-items:center;justify-content:center}.retouch-selection{position:relative;max-width:100%;box-shadow:0 10px 34px #162b2420;line-height:0;user-select:none}.retouch-selection>img{width:100%;height:100%;object-fit:fill;pointer-events:none}.retouch-selection>svg{position:absolute;inset:0;width:100%;height:100%;touch-action:none;cursor:crosshair}
.retouch-comparison-wrap{width:100%;display:flex;flex-direction:column;align-items:center}.retouch-comparison{position:relative;max-width:100%;overflow:hidden;box-shadow:0 10px 34px #162b2420}.retouch-comparison img{position:absolute;inset:0;width:100%;height:100%;object-fit:fill}.retouch-divider{position:absolute;top:0;bottom:0;width:2px;background:white;pointer-events:none}.retouch-divider span{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background:white;border-radius:50%;padding:7px;box-shadow:0 2px 6px #0003;color:#263e36}.retouch-comparison>b{position:absolute;bottom:9px;border-radius:4px;padding:4px 8px;background:#102c32b0;color:white;font-size:10px;font-weight:500}.before-label{left:8px}.after-label{right:8px}.retouch-slider{display:flex;gap:12px;align-items:center;font-size:11px;color:#627260;width:min(400px,100%);margin-top:20px}.retouch-slider input{flex:1;accent-color:#34543f;min-width:50px}
.retouch-progress{margin:15px 0;border:1px solid #e6ddc9;border-radius:12px;padding:16px;background:#f7f0e3;display:flex;gap:14px;align-items:center}.retouch-progress b{font-size:14px}.retouch-progress p{font-size:12px;color:#8b7c63;margin:5px 0 0}.retouch-result-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:white;border:1px solid #e1e5da;border-radius:12px;margin-top:15px;padding:18px}.retouch-result-actions>div{flex:1;min-width:190px}.retouch-result-actions b{font-size:14px}.retouch-result-actions p{font-size:11px;color:#7b857c;line-height:1.6;max-width:540px}.retouch-result-actions a{color:#6f795e;font-size:11px;display:inline-block;margin-right:15px}.retouch-result-actions button{background:#29493b;border:0;border-radius:8px;padding:11px 16px;color:white;font-size:12px}.retouch-result-actions button.secondary{background:#eef0ea;color:#556447}.retouch-history{margin-top:25px}.retouch-history>p{font-size:12px;color:#869083;padding:20px 0}.retouch-history-list{display:flex;gap:10px;overflow-x:auto;padding:12px 1px}.retouch-history-list>button{display:flex;align-items:center;gap:10px;min-width:210px;text-align:left;background:white;color:#52604f;border:1px solid #dfe4d8;border-radius:10px;padding:10px}.retouch-history-list>button.selected{border-color:#859b74;background:#f0f4eb}.retouch-history-list img,.retouch-history-placeholder{width:60px;height:52px;object-fit:contain;background:#e9ece4;border-radius:5px;display:grid;place-items:center}.retouch-history-list b{display:block;font-size:12px}.retouch-history-list small{display:block;font-size:10px;color:#7b8774;margin-top:5px}.retouch-notice{border-left:3px solid #8e9d73;background:#edf2e5;padding:12px 15px;font-size:13px;color:#586746}.retouch-loading{padding:70px;text-align:center;color:#7f8c74}.retouch-dialog .alert{font-size:13px;line-height:1.7}
@media(max-width:850px){.retouch-layout{grid-template-columns:250px minmax(0,1fr);gap:14px}.retouch-controls{padding:14px}.retouch-dialog .lc-dialog-body{padding:0 16px 16px}.retouch-canvas{padding:12px;min-height:200px}.retouch-topline{gap:8px}.retouch-topline>b{width:100%;margin:0}}
@media(max-width:640px){.lc-dialog.retouch-dialog{width:100vw;max-width:100vw;max-height:100dvh;height:100dvh;border-radius:0;margin:0}.retouch-dialog .lc-dialog-header{padding:15px}.retouch-layout{display:flex;flex-direction:column}.retouch-controls{width:100%;box-sizing:border-box;order:2}.retouch-workspace{order:1}.retouch-tools{grid-template-columns:repeat(3,1fr)}.retouch-topline p{font-size:11px}.retouch-canvas{min-height:160px}.retouch-result-actions{padding:12px}.retouch-controls .retouch-references img{height:80px}}
.retouch-groups{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin:12px 0;background:#eef0ea;padding:4px;border-radius:10px}
.retouch-groups button{font-size:12px;padding:9px 3px;border:0;background:transparent;color:#627065;border-radius:7px}
.retouch-groups button[aria-pressed=true]{background:#2c493f;color:#fff}
.retouch-selection-tools{border:1px solid #dce2d7;border-radius:10px;padding:10px;margin-bottom:12px}
.retouch-selection-tools>div{display:flex;gap:5px;flex-wrap:wrap}.retouch-selection-tools button{border:1px solid #d6dfd1;border-radius:6px;padding:7px 10px;background:white;color:#53644f;font-size:12px;margin:2px}
.retouch-selection-tools button[aria-pressed=true]{border-color:#a99058;background:#f4eddf;color:#746039}
.retouch-controls .retouch-selection-tools label{font-size:12px;margin:10px 0}.retouch-selection-tools input[type=range]{padding:0;accent-color:#6e8161;width:100%}
.retouch-controls select{padding:9px;border:1px solid #dbe0d4;border-radius:7px;background:white;color:#384b40;width:100%}
.retouch-controls label.retouch-confirm{display:flex;align-items:flex-start;gap:8px;font-size:12px;line-height:1.6;background:#faf1df;padding:12px;border-radius:8px}.retouch-controls .retouch-confirm input{width:16px;flex:none;margin-top:2px}
.retouch-recognize{width:100%;padding:10px!important;border-radius:8px!important}.retouch-controls>small.retouch-hint{display:block;margin:8px 0 14px;font-size:11px}
.retouch-selection-wrap{width:100%;min-width:0}.retouch-zoom{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px;font-size:11px;color:#687768}
.retouch-zoom label{display:flex;align-items:center;gap:8px;white-space:nowrap}.retouch-zoom select{background:#fff;border:1px solid #cdd8c9;border-radius:6px;padding:5px;color:#385242}
.retouch-zoom-viewport{width:100%;max-height:65vh;overflow:auto;overscroll-behavior:contain;border-radius:4px}.retouch-zoom-stage{position:relative;min-width:100%}
.retouch-mask-preview{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;opacity:.42}
.retouch-controls .retouch-cutout-modes{border:0;padding:0;margin:0;min-width:0}.retouch-cutout-modes legend{font-size:11px;letter-spacing:.5px;color:#8c754c;margin-bottom:9px}.retouch-controls .retouch-cutout-modes label{flex-direction:row;align-items:flex-start;padding:13px 10px;border:1px solid #e0e5dc;border-radius:10px;margin-bottom:8px;cursor:pointer}.retouch-controls .retouch-cutout-modes label.selected{border-color:#7e9479;background:#f0f5ed}.retouch-controls .retouch-cutout-modes input[type=radio]{width:15px;height:15px;padding:0;margin:2px 3px 0 0;flex:none;accent-color:#395945}.retouch-cutout-modes b{display:block;font-size:13px;margin-bottom:5px}.retouch-cutout-modes small{display:block;color:#7b8578;font-size:11px;line-height:1.65}.retouch-cutout-modes p{font-size:11px;color:#7b8578;line-height:1.7}.retouch-transparent,.retouch-selection:has(img[src*="retouch-"]){background-color:#fff;background-image:conic-gradient(#e5e8e3 25%,transparent 0 50%,#e5e8e3 0 75%,transparent 0);background-size:20px 20px}
@media(min-width:641px){.retouch-controls,.retouch-workspace{max-height:calc(96dvh - 160px);overflow:auto;overscroll-behavior:contain}.retouch-workspace{padding-right:4px}.retouch-canvas{padding:18px}.retouch-zoom-viewport{max-height:calc(96dvh - 310px)}}
@media(max-width:640px){.retouch-zoom{flex-wrap:wrap}.retouch-zoom-viewport{max-height:50vh}.retouch-tools{grid-template-columns:repeat(2,1fr)}}
