/* Lot 458: keep the current image and download action ahead of optional tools. */
#imageStudioRoot .image-studio-quick-export{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:8px 0 10px;min-width:0}
#imageStudioRoot .image-studio-quick-export .button{width:auto;min-height:40px;padding:8px 16px;font-size:13px;font-weight:800;white-space:normal}
#imageStudioRoot .image-studio-quick-export .mini-button{min-height:36px;font-size:12px;white-space:normal}
#imageStudioQuickExportResult{flex:1 1 100%;font-size:12px;min-height:0}
#imageStudioQuickExportResult:empty{display:none}
#imageStudioRoot details.image-studio-journey{display:block;padding:0;margin:10px 0 0;overflow:hidden}
#imageStudioRoot .image-studio-journey>summary{cursor:pointer;padding:12px 14px;font-size:13px;color:#102a51;list-style-position:inside}
#imageStudioRoot .image-studio-journey>summary #imageStudioJourneyCounter{float:right;font-size:12px;color:#536783}
#imageStudioRoot .image-studio-journey-body{display:grid;gap:10px;padding:0 14px 14px}
#imageStudioRoot .image-studio-journey:not([open]) .image-studio-journey-body{display:none}
#imageStudioRoot #imageStudioLooks{margin:10px 0 0}
#imageStudioRoot .image-studio-preview-note{padding-bottom:0}
@media(max-width:600px){#imageStudioRoot .image-studio-quick-export .button{flex:1 1 auto}#imageStudioRoot .image-studio-quick-export .mini-button{flex:1 1 auto}}

/* Lot 461 — native crop handles and exact coordinates. */
#imageStudioRoot .image-studio-native-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:8px 0}
#imageStudioRoot .image-studio-native-crop-details summary{cursor:pointer;font-weight:650;font-size:13px}
#imageStudioRoot .image-studio-native-crop-details input{width:100%;min-width:0}
#imageStudioRoot .native-crop-adjust{pointer-events:auto;cursor:move;touch-action:none}
#imageStudioRoot .native-crop-handle{position:absolute;width:14px;height:14px;background:white;border:2px solid #a43a70;border-radius:3px;transform:translate(-50%,-50%);pointer-events:auto;touch-action:none}
#imageStudioRoot .handle-nw{left:0;top:0;cursor:nwse-resize}#imageStudioRoot .handle-n{left:50%;top:0;cursor:ns-resize}#imageStudioRoot .handle-ne{left:100%;top:0;cursor:nesw-resize}#imageStudioRoot .handle-e{left:100%;top:50%;cursor:ew-resize}#imageStudioRoot .handle-se{left:100%;top:100%;cursor:nwse-resize}#imageStudioRoot .handle-s{left:50%;top:100%;cursor:ns-resize}#imageStudioRoot .handle-sw{left:0;top:100%;cursor:nesw-resize}#imageStudioRoot .handle-w{left:0;top:50%;cursor:ew-resize}
#imageStudioRoot #isSizeError[hidden]{display:none}

/* Lot 462: native enhancement controls in the existing adjustment panel. */
#imageStudioRoot .image-studio-native-enhance-details{margin-top:12px;padding-top:10px;border-top:1px solid #e3e7ed}
#imageStudioRoot .image-studio-native-enhance-details summary{cursor:pointer;font-weight:650;font-size:13px;margin-bottom:8px}
#imageStudioRoot .image-studio-native-enhance-details input,#imageStudioRoot .image-studio-native-enhance-details select{width:100%;min-width:0}

/* Lot 463 — native mask editing, transparent pixels are visible on a checkerboard. */
#imageStudioRoot #isMaskEditor[hidden]{display:none}
#imageStudioRoot #isMaskCanvas{display:block;width:100%;height:auto;max-width:100%;cursor:crosshair;touch-action:none;margin:8px 0;background-color:#fff;background-image:conic-gradient(#d9e0e9 25%,#fff 0 50%,#d9e0e9 0 75%,#fff 0);background-size:16px 16px;border:1px solid #d5dce7;border-radius:4px}

#imageStudioRoot .is-native-erase-canvas{display:block;width:auto;max-width:100%;height:auto;max-height:420px;touch-action:none;cursor:crosshair;background:#e6eaf0;border:1px solid #cbd5e1;border-radius:8px;margin:8px 0}
#imageStudioRoot .is-native-erase-actions{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}
#imageStudioRoot #isExtendPlan,#imageStudioRoot #isEraseCount{display:block;margin:8px 0;font-weight:600}

/* Lot 468: native zone editing */
.native-privacy-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.native-privacy-fields input{min-width:0;width:100%}
.image-studio-privacy-overlay.native-privacy-selected{outline:2px solid #3478df;outline-offset:3px}
.image-studio-privacy-list button[aria-pressed="true"]{border-color:#3478df;box-shadow:inset 0 0 0 1px #3478df}
#isPrivacyEdit:not([hidden]){display:grid;gap:8px;margin:10px 0}

/* Lot 471: direct native privacy interaction. */
#imageStudioRoot .native-privacy-active{touch-action:none;cursor:crosshair}
#imageStudioRoot .native-privacy-active:focus-visible{outline:2px solid #3478df;outline-offset:2px}
#imageStudioRoot .native-privacy-handle{position:absolute;width:12px;height:12px;box-sizing:border-box;background:#fff;border:2px solid #3478df;border-radius:2px;transform:translate(-50%,-50%);pointer-events:none}

/* Lot 472: native quality review, real 100% output pixels. */
#imageStudioRoot .native-upscale-review{max-width:100%;overflow:auto;max-height:420px;background:#edf0f4;border-radius:8px}
#imageStudioRoot .native-upscale-review-canvas{position:relative;width:100%;max-width:100%;line-height:0}
#imageStudioRoot .native-upscale-review-canvas img{display:block;width:100%;max-width:none;height:auto;object-fit:contain}
#imageStudioRoot .native-upscale-review-canvas img+img{position:absolute;inset:0;height:100%;clip-path:inset(0 var(--upscale-reveal,50%) 0 0)}
#imageStudioRoot .native-upscale-review-canvas.split{display:flex;gap:0}
#imageStudioRoot .native-upscale-review-canvas.split img{width:50%;position:static;height:auto;clip-path:none;align-self:start}
#imageStudioRoot #isUpscaleAuditView{font-size:.83rem;overflow-wrap:anywhere}
#imageStudioRoot #isUpscaleAuditView p{margin:.45rem 0}
#imageStudioRoot .native-upscale-review-canvas img{background:repeating-conic-gradient(#e0e5eb 0% 25%,#fff 0% 50%) 0 0/16px 16px;user-select:none;-webkit-user-drag:none}
#imageStudioRoot .native-upscale-details summary{cursor:pointer;font-weight:650;font-size:13px}
#imageStudioRoot .native-upscale-details input{width:100%;min-width:0}
/* Lot 474: finishing preview, independent of the current raster. */
#imageStudioRoot .is-cut-review-frame{overflow:auto;max-height:320px;min-height:60px;background-color:#eee;background-image:conic-gradient(#d5d9de 25%,#fff 0 50%,#d5d9de 0 75%,#fff 0);background-size:16px 16px;border:1px solid #aeb8c5;border-radius:6px;}
#imageStudioRoot .is-cut-review-frame[data-bg=light]{background:#fff}
#imageStudioRoot .is-cut-review-frame[data-bg=dark]{background:#20252d}
#imageStudioRoot .is-cut-review-frame img{display:block;height:auto;object-fit:contain;}
#imageStudioRoot #isCutFinishFindings{font-size:.83rem;overflow-wrap:anywhere;}
#imageStudioRoot #isCutFinishFindings p{margin:.4rem 0;}

/* Lot 475 */
.is-color-review-stage{position:relative;overflow:hidden;border-radius:8px;background:repeating-conic-gradient(#ddd 0% 25%,#fff 0% 50%) 0 0/16px 16px;max-width:100%;margin:.5rem 0}.is-color-review-stage img{display:block;width:100%;height:auto}.is-color-review-stage img+img{position:absolute;inset:0;clip-path:inset(0 50% 0 0)}

.is-restore-review{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.is-restore-review figure{margin:0;min-width:0;overflow:auto;max-height:360px}.is-restore-review img{display:block;width:100%;height:auto}.is-restore-zoom .is-restore-review img{width:auto;max-width:none;max-height:none}#isRestoreCanvas{touch-action:none;width:100%;height:auto;display:block}
