/* Image editor, studio-level tools (client/editor-studio.js). Theme tokens only; both themes; no shadows on flat elements. */
#image-editor .editor-stage-wrap{display:flex;flex-direction:column;min-width:0;min-height:0;background:var(--surface-2)}
#image-editor .editor-stage-wrap>.editor-stage{flex:1 1 auto;min-height:0}
#image-editor .editor-stage.editor-zoomed{display:block;overflow:auto;padding:16px;overscroll-behavior:contain}
#image-editor .editor-stage.editor-zoomed canvas{display:block;margin:0 auto}
#image-editor .editor-stage.editor-panning,#image-editor .editor-stage.editor-panning canvas{cursor:grab}
#image-editor .editor-zoom{display:flex;align-items:center;justify-content:center;gap:4px;padding:8px;border-top:1px solid var(--hair);background:var(--surface)}
#image-editor .editor-zoom .btn{min-width:36px;min-height:32px;padding:4px 10px}
#image-editor .editor-zoom-pct{min-width:52px;text-align:center;font:500 12px/1 var(--ui);color:var(--ink-2)}
#image-editor .editor-tabs{display:flex;gap:0;margin:0 0 4px;border:1px solid var(--hair-2);border-radius:8px;overflow:hidden}
#image-editor .editor-tabs .btn{flex:1 1 0;border:0;border-radius:0;background:transparent;color:var(--ink-2);min-height:36px;font-size:12px}
#image-editor .editor-tabs .btn+.btn{border-left:1px solid var(--hair-2)}
#image-editor .editor-tabs .btn[aria-selected=true]{background:var(--sel-fill);color:var(--sel-ink);font-weight:var(--sel-weight)}
#image-editor .editor-tab-hidden{display:none}
#image-editor .editor-select-modes{margin:2px 0 6px}
#image-editor .editor-visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
#image-editor .editor-real-logo{display:grid;gap:8px;margin:8px 0 12px;padding:12px;border:1px solid var(--hair);border-radius:10px;background:var(--surface-2)}
#image-editor .editor-real-logo.editor-real-logo-offer{border-color:var(--sel-line)}
#image-editor .editor-real-logo .editor-subhead{margin:0}
#image-editor .editor-real-logo-list{display:grid;gap:10px}
#image-editor .editor-real-logo-group{display:grid;gap:6px}
#image-editor .editor-real-logo-unchecked{font-size:11px;color:var(--status-warn)}
#image-editor .editor-real-logo-results{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
#image-editor .editor-photo-picker{position:absolute;inset:0;z-index:5;display:flex;flex-direction:column;background:var(--paper);color:var(--ink)}
#image-editor .editor-photo-head{display:flex;align-items:center;gap:12px;padding:12px 16px;border-bottom:1px solid var(--hair)}
#image-editor .editor-photo-head .btn{margin-left:auto}
#image-editor .editor-photo-head .editor-tool-hint{margin:0}
#image-editor .editor-photo-body{flex:1 1 auto;min-height:0;display:grid;grid-template-columns:96px minmax(0,1fr) 300px}
#image-editor .editor-photo-strip{display:flex;flex-direction:column;gap:6px;padding:8px;overflow:auto;border-right:1px solid var(--hair);background:var(--surface)}
#image-editor .editor-photo-thumb{padding:2px;min-height:0;border:1px solid var(--hair-2);background:var(--surface)}
#image-editor .editor-photo-thumb[aria-pressed=true]{border-color:var(--sel-line);background:var(--sel-fill)}
#image-editor .editor-photo-thumb img{display:block;width:100%;height:auto}
#image-editor .editor-photo-stage{display:flex;align-items:center;justify-content:center;overflow:hidden;padding:16px;background:var(--surface-2);min-height:0}
#image-editor .editor-photo-stage.editor-zoomed{display:block;overflow:auto}
#image-editor .editor-photo-canvas{max-width:100%;max-height:100%;touch-action:none;cursor:crosshair}
#image-editor .editor-photo-stage.editor-zoomed .editor-photo-canvas{max-width:none;max-height:none;display:block;margin:0 auto}
#image-editor .editor-photo-tools{display:grid;align-content:start;gap:8px;padding:12px 16px;overflow:auto;border-left:1px solid var(--hair);background:var(--surface)}
#image-editor .editor-photo-tools .editor-zoom{border:1px solid var(--hair);border-radius:8px;justify-content:flex-start}
#image-editor .editor-photo-preview img{display:block;height:112px;width:auto;max-width:100%;object-fit:contain;margin:0 auto;background:var(--surface-2);border:1px solid var(--hair);border-radius:8px}
#image-editor .editor-check{display:flex;gap:8px;align-items:flex-start;font-size:12.5px;color:var(--ink-2)}
@media(max-width:740px){
  #image-editor .editor-stage-wrap{height:50%;flex-shrink:0}
  #image-editor .editor-stage-wrap>.editor-stage{height:auto;flex:1 1 auto;min-height:0}
  #image-editor .editor-zoom .btn{min-width:44px;min-height:44px}
  #image-editor .editor-photo-body{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(220px,1fr) auto}
  #image-editor .editor-photo-strip{flex-direction:row;border-right:0;border-bottom:1px solid var(--hair)}
  #image-editor .editor-photo-thumb{width:64px;flex:0 0 auto}
  #image-editor .editor-photo-tools{border-left:0;border-top:1px solid var(--hair);max-height:42dvh}
}
/* Round two: Edits list, Colour tab, logo colour */
#image-editor .editor-steps{margin:4px 0 8px;padding:10px 12px;border:1px solid var(--hair);border-radius:10px;background:var(--surface-2)}
#image-editor .editor-steps .editor-subhead{margin:0 0 6px;display:flex;gap:8px;align-items:baseline}
#image-editor .editor-steps-note{font-weight:500;font-size:11.5px;color:var(--ink-3)}
#image-editor .editor-steps-list{list-style:none;margin:0;padding:0;display:grid;gap:2px;max-height:180px;overflow:auto}
#image-editor .editor-step{display:flex;align-items:center;gap:4px}
#image-editor .editor-step .editor-step-go{flex:1 1 auto;justify-content:flex-start;text-align:left;min-height:32px}
#image-editor .editor-step.is-undone .editor-step-go{text-decoration:line-through;color:var(--ink-3)}
#image-editor .editor-adjust-svg{position:absolute;width:0;height:0;overflow:hidden}
#image-editor .editor-looks{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 8px}
#image-editor .editor-looks .field-label{width:100%}
#image-editor .editor-looks .btn[aria-pressed=true]{background:var(--sel-fill);border-color:var(--sel-line);color:var(--sel-ink);font-weight:var(--sel-weight)}
#image-editor .editor-adj-group{display:grid;gap:2px;margin:6px 0}
/* 16 Nov 2026 (editor parity): the selected logo's frame and the removed marks' outlines over the picture; the answer next to the button */
#image-editor .editor-stage{position:relative}
#image-editor .editor-frame{position:absolute;pointer-events:none;overflow:visible}
#image-editor .editor-frame-logo{fill:none;stroke:var(--sel-line);stroke-width:2}
#image-editor .editor-frame-ghost{fill:none;stroke:var(--ink-3);stroke-width:1.5;stroke-dasharray:5 4}
#image-editor .editor-frame-num{fill:var(--ink-2);font-family:var(--ui)}
#image-editor .editor-near-status{margin:6px 0 2px;font-size:12.5px;line-height:1.4;color:var(--ink-2)}
#image-editor .editor-near-status[data-kind=error]{color:var(--status-error,var(--ink))}
#image-editor .editor-near-status[data-kind=warn]{color:var(--status-warn,var(--ink))}
#image-editor .btn[aria-busy=true]{cursor:progress}
#image-editor .editor-leave{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:13px;color:var(--ink)}
