/* 10.9 精修独立编辑视图，沿用共享北欧工作台颜色。 */
.image-design [hidden] { display: none !important; }
.image-retouch-editor { display: grid; gap: 20px; min-width: 0; }
.image-retouch-editor-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.image-retouch-editor-head > div { flex: 1; min-width: 160px; }
.image-retouch-editor-head h3 { margin: 0; font-size: 18px; font-weight: 650; }
.image-retouch-editor-head p { margin: 3px 0 0; }
.image-retouch-editor-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(310px, 1fr); align-items: start; gap: 24px; min-width: 0; }
.image-retouch-canvas-panel, .image-retouch-editor-settings { min-width: 0; padding: 18px; background: var(--surface, #fff); border: 1px solid var(--line, #e4e3de); border-radius: 12px; }
.image-retouch-canvas-panel { display: grid; gap: 12px; }
.image-retouch-canvas .image-design-selection-stage { justify-self: center; max-width: 100%; }
.image-retouch-canvas .image-design-selection-image { max-height: min(58dvh, 700px); max-width: 100%; object-fit: contain; }
.image-retouch-canvas .image-design-selection-stage:focus-visible { outline: 2px solid var(--accent, #506577); outline-offset: 5px; }
.image-retouch-canvas .image-retouch-whole-image { cursor: zoom-in; }
.image-retouch-selection-rect { background: transparent; border: 2px solid var(--accent, #506577); box-shadow: 0 0 0 1px #fff, inset 0 0 0 1px #fff; }
.image-retouch-selection-rect:focus-visible { outline: 2px dashed var(--ink, #22262b); outline-offset: 4px; }
.image-retouch-canvas .image-design-selection-handle { width: 20px; height: 20px; }
.image-retouch-canvas .image-design-selection-handle.nw { top: -11px; left: -11px; }
.image-retouch-canvas .image-design-selection-handle.ne { top: -11px; right: -11px; }
.image-retouch-canvas .image-design-selection-handle.sw { bottom: -11px; left: -11px; }
.image-retouch-canvas .image-design-selection-handle.se { bottom: -11px; right: -11px; }
.image-retouch-opacity { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--muted, #656b72); }
.image-retouch-opacity input { flex: 1; max-width: 200px; min-height: 32px; accent-color: var(--accent, #506577); }
.image-retouch-opacity output { min-width: 36px; font-variant-numeric: tabular-nums; }
.image-retouch-versions-heading { display: flex; align-items: center; gap: 10px; justify-content: space-between; border-top: 1px solid var(--line, #e4e3de); padding-top: 14px; }
.image-retouch-versions-heading h4 { margin: 0; font-size: 14px; }
.image-retouch-version-strip { display: flex; align-items: start; gap: 10px; overflow-x: auto; padding: 3px 3px 8px; }
.image-retouch-version { flex: 0 0 94px; display: grid; gap: 7px; padding: 6px; min-width: 0; border: 1px solid var(--line, #e4e3de); border-radius: 8px; background: var(--surface, #fff); color: var(--muted, #656b72); font: inherit; font-size: 12px; cursor: pointer; }
.image-retouch-version img { display: block; width: 80px; height: 72px; object-fit: contain; background: var(--soft, #f1f0eb); border-radius: 5px; }
.image-retouch-version.active { border: 2px solid var(--accent, #506577); padding: 5px; color: var(--ink, #22262b); background: var(--selected, #e9edf0); }
.image-retouch-version:focus-visible { outline: 2px solid var(--accent, #506577); outline-offset: 2px; }
.image-retouch-editor-settings .image-design-feedback { padding-top: 0; border: 0; }
.image-retouch-editor-settings .image-design-feedback-composer { border: 1px solid var(--control-line, #a0a5a9); border-radius: 10px; min-width: 0; overflow: hidden; }
.image-retouch-editor-settings .image-design-feedback textarea { min-height: 140px; max-height: min(35dvh, 300px); }
.image-retouch-editor-settings .image-design-feedback-toolbar { align-items: center; }
.image-retouch-editor-settings .image-design-feedback-model { flex: 1 1 180px; }
.image-retouch-editor-settings .image-design-feedback-model select { width: 100%; max-width: 100%; }
.image-retouch-editor-settings .image-design-feedback-toolbar > .button { margin-left: auto; }
.image-retouch-editor-settings .image-design-operation-status { margin-top: 14px; }
.image-design-lightbox { box-sizing: border-box; width: min(1500px, 96vw); max-width: 96vw; height: 94dvh; max-height: 94dvh; padding: 16px 20px 12px; border: 0; border-radius: 12px; background: var(--surface, #fff); color: var(--ink, #22262b); box-shadow: 0 12px 36px rgba(25,30,35,.16); font-family: inherit; }
.image-design-lightbox::backdrop { background: rgba(25,30,35,.48); }
.image-design-lightbox > header { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding-bottom: 12px; }
.image-design-lightbox > header strong { margin-right: auto; font-size: 16px; }
.image-design-lightbox > header span, .image-design-lightbox > p { font-size: 12px; color: var(--muted, #656b72); }
.image-design-lightbox > p { margin: 8px 0 0; }
.image-design-lightbox-body { height: calc(100% - 78px); min-height: 0; overflow: auto; display: flex; align-items: center; justify-content: center; background: var(--soft, #f1f0eb); border-radius: 8px; }
.image-design-lightbox-body img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
@media (max-width: 1150px) {
  .image-retouch-editor-layout { grid-template-columns: minmax(0, 1.15fr) minmax(280px, 1fr); gap: 16px; }
  .image-retouch-canvas-panel, .image-retouch-editor-settings { padding: 14px; }
  .image-retouch-editor-settings .image-design-feedback-toolbar > .button { flex-basis: 100%; }
}
@media (max-height: 700px) {
  .image-retouch-canvas .image-design-selection-image { max-height: 48dvh; }
  .image-retouch-editor-settings .image-design-feedback textarea { min-height: 100px; }
}
@media (max-width: 850px) {
  .image-retouch-editor-layout { grid-template-columns: minmax(0, 1fr); }
}
