.retouch-modal{width:min(1450px,97vw);padding:0;background:#211e28;color:#ddd7e4;border:1px solid #48404f;border-radius:12px;max-height:95vh}.retouch-modal .close{background:#3c3544;color:#cfc1db;right:20px;top:20px}.rt-header{padding:25px 34px;border-bottom:1px solid #3c3544;display:flex;align-items:center;justify-content:space-between;gap:25px}.rt-header h2{margin:0;font-size:22px;font-family:'Microsoft YaHei',sans-serif}.rt-header>span{font-size:10px;letter-spacing:1px;color:#9d8da8;margin-right:35px}.rt-header .eyebrow{color:#b9a2cb;font-size:9px}.rt-layout{display:grid;grid-template-columns:275px 1fr;min-height:560px}.rt-tools{padding:21px;background:#292430;border-right:1px solid #3c3544}.rt-tabs{display:flex;padding:4px;background:#201c26;border-radius:7px;margin-bottom:24px}.rt-tabs button{flex:1;border:0;border-radius:5px;background:transparent;color:#9c8daa;padding:11px}.rt-tabs button.on{color:#e9def2;background:#655174}.rt-section-title{font-size:12px;color:#dfcce9;margin:21px 0 12px}.retouch-modal .rt-help{font-size:10px;line-height:1.9;color:#a393ae;margin:10px 0 16px}.rt-range-label{display:flex;justify-content:space-between;font-size:11px;color:#bcaec9;margin-top:20px}.rt-range-label output{font-size:10px;color:#d2b4e7}.rt-tools input[type=range]{width:100%;accent-color:#b496ce;cursor:pointer;margin-top:10px}.rt-btn{border:1px solid #51435e;border-radius:5px;background:#342c3d;color:#ccbadb;padding:9px 11px;font-size:10px;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.rt-btn:hover{background:#463851}.rt-btn.active{background:#6b527c;color:white}.rt-btn.full{width:100%}.rt-tools select,.rt-version-bar select{width:100%;padding:9px;border-radius:4px;border:1px solid #51435e;background:#302838;color:#cbb9d9;font-size:10px;margin-top:10px}.rt-brush-buttons{display:flex;gap:10px;margin:15px 0}.rt-brush-buttons>*{flex:1}.rt-ai{border-top:1px solid #42364e;margin-top:28px;padding-top:20px}.rt-ai label{font-size:11px;color:#c7acdc}.rt-ai textarea{display:block;width:100%;background:#221d29;border:1px solid #493e54;border-radius:4px;padding:10px;color:#d5c4e0;font-size:10px;line-height:1.8;margin:12px 0}.rt-ai .rt-btn{width:100%}.retouch-modal .rt-ai p{font-size:10px;color:#b39dc2;line-height:1.8;white-space:pre-wrap;max-height:200px;overflow:auto}.rt-image-area{padding:20px 24px;min-width:0}.rt-image-top{display:flex;justify-content:space-between;align-items:center;color:#aa9bb5;font-size:10px;gap:8px;margin-bottom:18px}.rt-image-top>div{display:flex;gap:7px}.rt-stage{position:relative;max-width:100%;width:fit-content;margin:auto;background:#15121a;line-height:0;min-height:100px}.rt-stage img{display:block;max-width:100%;max-height:58vh;width:auto;height:auto;object-fit:contain}.rt-stage canvas{position:absolute;inset:0;width:100%;height:100%;touch-action:none;cursor:crosshair}.rt-status{font-size:10px;line-height:1.8;padding:16px 0;color:#ac9bb9}.rt-version-bar{display:flex;align-items:center;gap:12px;border-top:1px solid #39303f;padding-top:15px;flex-wrap:wrap}.rt-version-bar label{font-size:10px;color:#aa95b8}.rt-version-bar select{margin:0;width:230px;max-width:100%}.rt-footer{display:flex;justify-content:space-between;align-items:center;padding:18px 30px;border-top:1px solid #3f3449;font-size:10px;color:#aa96b6;background:#292330}.rt-save{background:#a58ab9;color:#1e1525;border:0;border-radius:5px;padding:13px 23px;font-size:12px}.rt-btn[hidden]{display:none}.retouch-modal:focus{outline:none}@media(max-width:850px){.rt-layout{grid-template-columns:220px 1fr}.rt-tools{padding:15px}.rt-header{padding:20px}.rt-header>span{display:none}.rt-image-area{padding:16px}.rt-image-top{flex-wrap:wrap}.rt-stage img{max-height:48vh}}@media(max-width:600px){.rt-layout{display:flex;flex-direction:column-reverse}.rt-tools{border:0}.rt-tools #rt-controls{max-height:340px;overflow:auto;padding:0 10px}.rt-image-area{padding:12px}.rt-stage img{max-height:40vh}.rt-header h2{font-size:18px}.rt-footer{padding:14px;gap:10px}.rt-save{padding:12px 15px}.rt-version-bar{gap:8px}.rt-version-bar select{width:170px}.rt-ai{margin-top:15px}.rt-ai p{max-height:140px}.retouch-modal{max-height:94vh}.rt-tabs{margin-bottom:12px}}

.rt-stage{width:min(100%,calc(55vh * var(--photo-aspect,1.5)))}.rt-stage img{width:100%;height:auto;max-height:none}
