.generation-feedback{margin:18px 0;padding:20px;background:#f1eee6;border:1px solid #dfd8ca;border-radius:12px}
.generation-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:13px}.generation-heading strong{font:26px Georgia,serif;color:#766449;font-variant-numeric:tabular-nums}
.generation-track{height:5px;border-radius:4px;background:#ddd8cd;overflow:hidden;margin:16px 0}.generation-track i{display:block;position:relative;height:100%;min-width:3%;background:#938268;transition:width 1s linear}.generation-track i:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,transparent,#fff9,transparent);animation:generation-sheen 2s linear infinite}
.generation-feedback p{font-size:12px;margin:10px 0;color:#625a4d}.generation-feedback small{font-size:10px;color:#827c70}
@keyframes generation-sheen{from{transform:translateX(-100%)}to{transform:translateX(100%)}}
.result-touch-compare{position:relative;overflow:hidden;touch-action:pan-y;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;border-radius:14px;margin:16px 0;cursor:pointer}
#live-result .result-touch-compare img{width:100%;display:block;margin:0!important;border-radius:0!important;pointer-events:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
#live-result>.result-original-desktop{display:none!important}
#live-result .result-original-overlay{position:absolute;inset:0;height:100%;object-fit:contain;background:#f3f0e9;opacity:1!important;clip-path:inset(0 0 0 var(--result-reveal,100%))}
.result-touch-compare.show-original .result-original-overlay{clip-path:inset(0)!important}
.result-compare-divider{position:absolute;top:0;bottom:0;left:var(--result-reveal,100%);width:44px;transform:translateX(-50%);background:transparent;pointer-events:auto;cursor:ew-resize;touch-action:none}
.result-compare-divider:before{content:'';position:absolute;top:0;bottom:0;left:50%;width:2px;transform:translateX(-50%);background:#fff;box-shadow:0 0 3px #0004;pointer-events:none}
.result-compare-grip{position:absolute;left:50%;top:50%;display:flex;align-items:center;justify-content:center;gap:4px;width:42px;height:42px;transform:translate(-50%,-50%);border:2px solid #fff;border-radius:50%;background:#4b514ee8;box-shadow:0 2px 12px #0003;color:#fff;font:400 25px/1 Arial,sans-serif;letter-spacing:3px;text-indent:3px}
#live-result .result-compare-grip,#tryon-result-viewer .result-compare-grip{color:#fff!important;pointer-events:auto;touch-action:none}
.result-touch-compare.show-original .result-compare-divider{visibility:hidden}
.result-view-label{position:absolute;left:12px;top:12px;background:#faf8f0e8;color:#514a3e;padding:4px 10px;border-radius:4px;font-size:11px;pointer-events:none}
.result-compare-controls{margin:4px 0 0}
#live-result input.result-compare-range,#tryon-result-viewer input.result-compare-range{display:block;box-sizing:border-box;width:100%;height:44px;min-height:44px;margin:0;padding:0;border:0!important;background:transparent!important;appearance:none;-webkit-appearance:none;cursor:ew-resize;touch-action:none;direction:ltr}
.result-compare-range::-webkit-slider-runnable-track{height:3px;border:0;border-radius:2px;background:#d3d0c8}
.result-compare-range::-moz-range-track{height:3px;border:0;border-radius:2px;background:#d3d0c8}
.result-compare-range::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:24px;height:24px;margin-top:-10.5px;border:3px solid #fff;border-radius:50%;background:#514a3e;box-shadow:0 0 0 1px #c8c3b9,0 2px 6px #0002}
.result-compare-range::-moz-range-thumb{box-sizing:border-box;width:24px;height:24px;border:3px solid #fff;border-radius:50%;background:#514a3e;box-shadow:0 0 0 1px #c8c3b9,0 2px 6px #0002}
.result-compare-labels{display:flex;justify-content:space-between;gap:16px;color:#625d53;font-size:12px;line-height:1.5}
.result-compare-hint{font-size:11px;color:#777064;margin:10px 0 20px;text-align:center}
#live-result .result-compare-range:focus-visible{outline:2px solid #575e4d;outline-offset:2px}
.result-touch-compare:focus-visible{outline:2px solid #575e4d;outline-offset:4px}
.result-save-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.result-save-actions a,.result-save-actions button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 16px;text-decoration:none;cursor:pointer}
#live-result .result-primary-save,#tryon-result-viewer .result-primary-save{border:1px solid #514a3e!important;border-radius:9px!important;background:#514a3e!important;color:#fff!important;font-weight:500}
.result-save-status{font-size:11px;line-height:1.65;color:#777;margin:10px 0 0}.result-save-status:empty{display:none}
.result-viewer{box-sizing:border-box;width:min(1440px,calc(100vw - 24px));height:calc(100dvh - 24px);max-width:none;max-height:none;margin:auto;padding:0;border:0;border-radius:12px;background:#f7f7f7;color:#555;overflow:hidden;overscroll-behavior:contain}
.result-viewer[open]{display:flex;flex-direction:column}.result-viewer::backdrop{background:#0009;backdrop-filter:blur(3px)}
#tryon-result-viewer .result-viewer-close{position:absolute;z-index:2;top:calc(12px + env(safe-area-inset-top));right:12px;display:grid;place-items:center;width:44px;height:44px;min-height:44px;margin:0;padding:0;border:0!important;border-radius:50%!important;background:#fffffff0!important;color:#333!important;box-shadow:0 1px 8px #0000000d;font:300 28px/1 Arial,sans-serif;cursor:pointer}
.result-viewer-close:focus-visible,.result-viewer-viewport:focus-visible{outline:2px solid #555;outline-offset:-3px}
.result-viewer-viewport{position:relative;flex:1;min-height:0;min-width:0;overflow:auto;touch-action:pan-x pan-y pinch-zoom;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.result-viewer-stage{display:grid;place-items:center;min-width:100%;min-height:100%;box-sizing:border-box;padding:16px}
.result-viewer-compare{position:relative;flex:none;overflow:hidden;touch-action:pan-y pinch-zoom}
.result-viewer-viewport.is-zoomed .result-viewer-compare{touch-action:pan-x pan-y pinch-zoom}
.result-viewer .result-viewer-stage img{display:block;max-width:none;max-height:none;margin:0;border-radius:0;object-fit:contain;-webkit-touch-callout:default;touch-action:pan-x pan-y pinch-zoom}
.result-viewer .result-viewer-compare>.result-viewer-original{position:absolute;inset:0;width:100%;height:100%;background:#f7f7f7;clip-path:inset(0 0 0 var(--result-reveal,50%));pointer-events:none}
.result-viewer-compare .result-compare-divider{pointer-events:auto;cursor:ew-resize;touch-action:none}
.result-viewer-compare .result-compare-grip{pointer-events:auto}
.result-viewer-viewport.is-zoomed{cursor:grab}.result-viewer-viewport.is-zoomed:active{cursor:grabbing}
.result-viewer-controls{flex:none;padding:0 20px 10px;background:#fff;border-top:1px solid #e6e4de}
.result-viewer-controls .result-compare-labels{margin-top:-2px;font-size:11px}
.result-viewer-actions{display:flex;justify-content:center;gap:10px;margin-top:12px}
.result-viewer-actions a{display:inline-flex;align-items:center;justify-content:center;min-width:160px;min-height:44px;padding:10px 18px;border:1px solid #d4d0c6;border-radius:9px;color:#514a3e;background:#fff;text-decoration:none;cursor:pointer;font:13px/1.5 Arial,"Microsoft YaHei",sans-serif}
.result-viewer-status{flex:none;min-height:18px;margin:0;padding:0 16px calc(12px + env(safe-area-inset-bottom));background:#fff;color:#666;text-align:center;font:11px/1.6 Arial,"Microsoft YaHei",sans-serif}
@media(max-width:760px){
 body.mobile-site #tryon-result-viewer{background:#f7f7f7!important;color:#555!important;border-color:transparent!important}
 .result-viewer{width:100vw;height:100dvh;margin:0;border-radius:0}
 .result-viewer-status{padding-left:12px;padding-right:12px}
 .result-save-actions{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:8px}.result-save-actions a,.result-save-actions button{min-height:48px;padding:12px 10px;font-size:13px}
 .result-viewer-controls{padding:0 14px 10px}.result-viewer-actions{display:grid;grid-template-columns:1.3fr 1fr;gap:8px;margin-top:10px}.result-viewer-actions a{min-width:0;min-height:48px;padding:10px 8px;font-size:13px}
}
@media(max-height:500px) and (orientation:landscape){.result-viewer-controls{padding:0 14px 6px}.result-viewer-controls .result-compare-range{height:32px!important;min-height:32px!important}.result-viewer-controls .result-compare-labels{display:none}.result-viewer-actions{margin-top:0}.result-viewer-actions a{min-height:36px;padding:6px 14px}.result-viewer-status{padding-bottom:calc(5px + env(safe-area-inset-bottom));font-size:10px}}
@media(prefers-reduced-motion:reduce){.generation-track i{transition:none}.generation-track i:after{animation:none}}
/* Native WeChat menus need a real image target, not the overlay or a Blob link. */
#live-result.result-wechat-mobile .result-primary-save[hidden],#tryon-result-viewer.result-wechat-mobile .result-viewer-actions[hidden],.result-save-retry[hidden]{display:none!important}
#live-result.result-wechat-mobile .result-save-actions{display:flex;justify-content:center}
#live-result.result-wechat-mobile .result-touch-compare,#live-result.result-wechat-mobile .result-after{-webkit-touch-callout:default}
#live-result.result-wechat-mobile .result-touch-compare .result-after{pointer-events:auto}
#live-result.result-wechat-mobile .result-touch-compare .result-original-overlay{pointer-events:none}
#live-result.result-wechat-mobile .result-save-status{text-align:center}
.result-save-retry{display:block;min-height:44px;margin:8px auto;padding:8px 18px;border:1px solid #d4d0c6;background:#fff;color:#514a3e;font:13px/1.5 Arial,"Microsoft YaHei",sans-serif}
