
/* 선택 도구 옵션바 */
.select-mode-group { display: inline-flex; gap: 2px; }
/* 스팟 복구의 유형 단추 셋 (책 650쪽 그림 20.25 의 Art) · 제거 도구의 ⊕⊖ */
.heal-type-group { display: inline-flex; gap: 2px; }
.remove-op { padding: 2px 5px; }
/* 제거 도구 ⚙ — 오버레이 색·불투명도 (책 655쪽 그림 20.35) */
.opts-remove { position: relative; display: inline-flex; align-items: center; gap: 8px; }
.remove-gear-pop {
  position: absolute; top: 26px; left: 0; z-index: 60;
  background: var(--panel2); border: 1px solid var(--line); border-radius: 6px;
  padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; font-size: 12px;
  box-shadow: 0 6px 16px -6px rgba(0,0,0,.6); white-space: nowrap;
}
.remove-gear-pop label { display: flex; align-items: center; gap: 6px; justify-content: space-between; }
.remove-gear-pop input[type="color"] { width: 28px; height: 18px; padding: 0; border: 1px solid var(--line); background: none; }
.select-mode { padding: 2px 5px; line-height: 0; }
.select-mode svg { width: 15px; height: 15px; }
.select-mode svg rect, .select-mode svg path { fill: none; stroke: currentColor; stroke-width: 1.2; }
.select-mode svg rect[fill], .select-mode svg path[fill] { fill: currentColor; }

/* Photoshop 은 선택 옵션바 오른쪽 끝에 "선택 및 마스크…" 를 둔다 — 같은 자리에 놓는다 */
.opts-refine {
  margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 4px;
  color: var(--text); cursor: pointer; padding: 3px 10px; font: inherit; font-size: 12px;
  white-space: nowrap; flex: none;
}
.opts-refine:hover:not([disabled]) { background: var(--panel2); }
.opts-refine[disabled] { opacity: .45; cursor: default; }
.select-feather { width: 52px; }

/* 조정·필터 대화상자.
   새 문서 대화상자(.newdoc-form)의 220px 폭을 물려받아 글자와 버튼이 꺾이던 것을 바로잡는다 */
.adjust-form { display: flex; flex-direction: column; gap: 10px; width: 380px; }
.adjust-row { display: flex; align-items: center; gap: 10px; }
/* 슬라이더가 든 조정 줄은 두 줄로 — 위: 이름 ……… 값(숫자 칸), 아래: 슬라이더 가득.
   포토샵 조정 창·속성 패널 배치다 (책 420쪽 그림 11.2 Helligkeit/Kontrast, 사장님 화면 #53).
   요소 차례는 markup 대로 두고 order 로만 옮긴다 — 값 칸을 채우는 JS 는 그대로다.
   다이얼(.adjust-dial)이 든 줄은 예외 (색조 고리 같은 특수 줄). */
.adjust-row:has(input[type="range"]):not(:has(.adjust-dial)) { flex-wrap: wrap; row-gap: 2px; }
.adjust-row:has(input[type="range"]):not(:has(.adjust-dial)) > * { order: 2; }
.adjust-row:has(input[type="range"]):not(:has(.adjust-dial)) > .adjust-label { order: 1; flex: 1 1 auto; min-width: 0; }
.adjust-row:has(input[type="range"]):not(:has(.adjust-dial)) > input[type="range"] { order: 3; flex: 1 1 100%; width: 100%; }
.adjust-row:has(input[type="range"]):not(:has(.adjust-dial)) > .adjust-value { width: auto; min-width: 34px; }
.adjust-label { min-width: 84px; color: var(--text-dim); font-size: 12px; white-space: nowrap; }
.adjust-row .opt-range { flex: 1; width: auto; min-width: 0; }
/* 각도 줄에는 다이얼이 더 붙어 [슬라이더][숫자][다이얼][°] 가 한 줄에 들어가야 한다.
   슬라이더가 안 줄어들면 다이얼이 창 밖으로 밀려 잘렸다 */
.adjust-row:has(.adjust-dial) .opt-range { flex: 1 1 40px; }
.adjust-value { width: 34px; text-align: right; font-size: 12px; color: var(--text-dim); }
/* 슬라이더 옆 값 칸 — 원문은 여기에 숫자를 친다.
   .adjust-value 의 34px 를 이겨야 하므로 **그 뒤에** 둔다 (앞에 두면 잘린다).
   -200 같은 네 글자까지 들어가야 한다. */
.adjust-value-num {
  /* `.newdoc-form input { width:100% }` 이 이겨서 335px 로 늘어났다 —
     같은 힘이라 뒤에 와도 안 이긴다. 칸 이름을 하나 더 붙여 힘을 높인다. */
  width: 58px; min-width: 58px; max-width: 58px; flex: none;
  text-align: right; padding: 2px 5px;
  background: var(--sunken); border: 1px solid var(--line); border-radius: 4px;
  color: var(--text); font: inherit; font-size: 12px;
}
.adjust-value-num:focus { outline: 1px solid var(--blue); border-color: var(--blue); }
.adjust-row input.adjust-value-num { width: 58px; }   /* 폼 규칙(width:100%)을 이긴다 */
.adjust-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
/* ── 조정 창 배치 (사장님 화면 #55 밝기/대비, 2026-09-02) ──
   왼쪽에 슬라이더·체크, 오른쪽에 단추가 세로로 [확인][취소][재설정][자동], 그 아래 미리 보기.
   markup 차례는 그대로 두고 grid·order 로만 옮긴다. */
/* 칸을 이름으로 잡는다 — 프리셋 줄·미리 보기 칸은 창마다 여닫히므로, 차례로 흘려 두면
   숨은 줄 때문에 단추 열이 아래로 밀린다 (실측 2026-09-02) */
.adjust-backdrop .adjust-form {
  display: grid; grid-template-columns: 1fr auto; align-items: start; column-gap: 16px;
  grid-template-areas: "presets presets" "preview preview" "fields actions";
}
.adjust-backdrop .adjust-presets { grid-area: presets; }
.adjust-backdrop .adjust-preview-box { grid-area: preview; }
.adjust-backdrop .adjust-fields { grid-area: fields; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.adjust-backdrop .adjust-actions {
  grid-area: actions; flex-direction: column; align-items: stretch;
  justify-content: flex-start; margin-top: 0; flex-wrap: nowrap;
  /* 폭을 고정한다 — auto 로 두면 스포이드 줄·긴 단추가 열을 넓혀 왼쪽 칸이 쪼그라들었다
     (노출 창에서 슬라이더가 절반만 남았다, 실측 2026-09-02) */
  width: 126px; min-width: 126px;
}
/* 차례: 확인 · 취소 · 재설정 · 자동 · (아래) 미리 보기 */
.adjust-backdrop .adjust-actions > * { order: 3; }
.adjust-backdrop .adjust-actions > .primary-btn { order: 1; }
.adjust-backdrop .adjust-actions > .adjust-cancel-btn { order: 2; }
.adjust-backdrop .adjust-actions > .adjust-auto-btn { order: 4; }
.adjust-backdrop .adjust-actions > .adjust-preview-label { order: 5; margin-top: 8px; justify-content: flex-start; }
/* 단추 안 글자는 가운데로 (세로로 서면 왼쪽 정렬이 어색하다) */
.adjust-backdrop .adjust-actions button { text-align: center; }
/* 단축키 표기 — 미리 보기(Alt+P) 처럼 이름 뒤에 흐리게 */
.key-hint { color: var(--text-dim); margin-left: 0; font-size: 11px; }   /* 원문은 "미리 보기(Alt+P)" 로 붙여 쓴다 */
/* 조정 창 슬라이더 손잡이는 **동그라미** 다 (사장님 화면 #55). 텍스트 뒤틀기 창(#53)·
   속성 패널은 세모다 — 원문이 창마다 다르므로 우리도 창을 따라간다. */
body.editor-body .adjust-backdrop input[type="range"]::-webkit-slider-thumb {
  width: 11px; height: 11px; margin-top: -5px; border-radius: 50%; clip-path: none;
}
body.editor-body .adjust-backdrop input[type="range"]::-moz-range-thumb {
  width: 11px; height: 11px; border-radius: 50%; clip-path: none;
}
/* 대화상자 버튼은 줄바꿈하지 않는다 ("재 설 정"처럼 세로로 꺾이던 문제) */
.adjust-actions button, .newdoc-form button, .modal button { white-space: nowrap; }

/* 시작 화면 자동 저장 복구 버튼 */
.start-restore { margin-top: 14px; }
.start-restore .restore-name { color: var(--text-dim); }

/* 플라이아웃 항목 강조 (드래그 중 커서 아래) */
.tool-flyout button.hover { background: var(--blue); color: #fff; }
.tool-flyout button.hover svg { stroke: #fff; }
.tool-flyout button.hover .dd-key { color: #ffffffcc; }

/* 레이어 스타일 */
.ls-section { font-size: 13px; margin-top: 2px; }
.ls-color { width: 34px; height: 22px; padding: 0; border: 1px solid var(--line); border-radius: 4px; background: none; cursor: pointer; }

/* 피사체 선택/배경 제거 방식 선택 */
.seg-modal { width: 380px; }
.seg-note { margin: 0 0 4px; font-size: 12px; color: var(--text-dim); }
/* .newdoc-form 의 220px 를 물려받으면 설명 글(nowrap)이 상자 밖으로 나간다 */
.seg-form { display: flex; flex-direction: column; gap: 8px; width: auto; }
.seg-option, .seg-option span { white-space: normal; word-break: keep-all; }
.seg-option {
  display: flex; flex-direction: column; gap: 3px; text-align: left;
  background: var(--deep); border: 1px solid var(--line); border-radius: 8px;
  color: var(--text); padding: 11px 14px; font: inherit; cursor: pointer;
}
.seg-option b { font-size: 13px; }
.seg-option span { color: var(--text-dim); font-size: 12px; }
.seg-option:hover:not(:disabled) { border-color: var(--blue); }
.seg-option:disabled { opacity: 0.55; cursor: default; }

/* 드래그 중 커서 옆 수치 표시 (W × H, 이동량) */
.drag-hud {
  position: absolute; z-index: 30; pointer-events: none;
  background: var(--panel); border: 1px solid var(--line); border-radius: 4px;
  padding: 2px 6px; font-size: 10.5px; color: var(--text);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.drag-hud[hidden] { display: none; }
/* 이름표와 숫자를 줄마다 (Photoshop 의 커서 옆 표시와 같은 모양).
   숫자 둘만 있으면 어느 쪽이 가로인지 매번 헷갈린다. */
.drag-hud .hud-row { display: flex; align-items: baseline; gap: 5px; }
.drag-hud .hud-row + .hud-row { margin-top: 0; }
/* 이름표는 흐린 글자색으로 — 색을 따로 주면 그림 위에서 저 혼자 튄다 */
.drag-hud .hud-label { min-width: 9px; text-align: right; color: var(--text-dim); }
.drag-hud .hud-value { flex: 1; text-align: right; }

/* 조정 프리셋 · 레벨 상단 */
.adjust-presets, .levels-top { display: flex; align-items: center; gap: 6px; }
/* 사전 설정 줄 — 이름 + 목록(넓게) + ≡ 메뉴 (원문 화면 #59·#62·#64, 2026-09-02) */
.adjust-presets .adjust-row-label { flex: none; margin: 0; color: var(--text-dim); font-size: 12px; }
.adjust-presets .adjust-preset-select { flex: 1 1 auto; min-width: 0; width: auto; }
.adjust-preset-menu-btn { display: flex; align-items: center; gap: 1px; padding: 4px 6px; flex: none; }
.adjust-preset-menu-btn .dd-caret { font-size: 9px; color: var(--text-dim); }
.adjust-preset-menu { position: fixed; z-index: 95; min-width: 140px; }
/* 색 범위 단추 줄 (색조/채도) — 손·색상환·색 동그라미 여섯 (원문 화면 #64, 2026-09-02) */
.adjust-row-bands { gap: 0; }
.adjust-bands { display: flex; align-items: center; gap: 6px; }
.adjust-band {
  width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--band-color, var(--panel2)); cursor: pointer; padding: 0; flex: none;
}
.adjust-band.band-master {
  /* 마스터는 색상환 */
  background: conic-gradient(#e23c3c, #e5d13a, #3fbf4a, #3ec8d8, #3a5fe0, #e03ac8, #e23c3c);
}
.adjust-band:hover { border-color: var(--text-dim); }
.adjust-band.on { outline: 2px solid var(--blue); outline-offset: 1px; }
/* 색상화 줄 오른쪽의 스포이드 셋과 반전 (원문 화면 #64, 2026-09-02) */
.hs-tools { display: flex; align-items: center; gap: 4px; margin-left: auto; flex: none; flex-wrap: nowrap; }
.hs-tools .hs-dropper { position: relative; padding: 3px 6px; flex: none; }
.hs-tools .hs-dropper svg {
  width: 14px; height: 14px; display: block; fill: none; flex: none;
  stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round;
}
.hs-sign { position: absolute; right: 1px; top: 0; font-size: 9px; line-height: 1; color: var(--text-dim); }
.hs-dropper.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.hs-dropper.disabled, .hs-invert.disabled { opacity: .38; pointer-events: none; }
.hs-invert { padding: 3px 10px; flex: none; }
/* 노출 창의 스포이드 셋 — 단추 열 아래 한 줄 (원문 화면 #59) */
/* 스포이드 셋 — 원문은 테두리 없는 아이콘 셋이 왼쪽에 모여 있다 (사장님 화면 #59·#62).
   전에는 네모 단추 셋이 단추 열(126px)을 꽉 채워 창 밖으로 밀려 나가 보였다 */
.adjust-droppers { display: flex; gap: 9px; justify-content: flex-start; margin-top: 9px; }
.adjust-droppers[hidden] { display: none; }
.adjust-backdrop .adjust-droppers .adjust-dropper,
.adjust-dropper {
  flex: none; width: 22px; height: 22px; min-width: 22px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border: none; background: none; border-radius: 2px;
}
.adjust-dropper svg {
  width: 15px; height: 15px; display: block; fill: none;
  stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round;
}
.adjust-dropper.ad-black { color: #111; filter: drop-shadow(0 0 1px var(--text-dim)); }
.adjust-dropper.ad-gray { color: #999; }
.adjust-dropper.ad-white { color: #fff; }
.adjust-dropper:hover { background: var(--hover, #4a4a4a); }
/* 고른 스포이드만 바탕이 들어간다 (원문 #59 도 눌린 것 하나만 밝다) */
.adjust-dropper.on { background: var(--blue); border-color: var(--blue); color: #fff; filter: none; }
.adjust-backdrop.over-canvas { cursor: var(--eyedrop-cursor, crosshair); }
/* 단추 열이 오른쪽에 서면서 왼쪽 칸이 좁아졌다 — 이름·값 칸이 한 줄에 들어가게 넓힌다
   (노출의 "감마 교정" 처럼 이름이 길면 380px 에서 줄이 접혔다, 실측 2026-09-02) */
.adjust-backdrop .adjust-form { width: 420px; }
.adjust-backdrop .adjust-form:has(.hs-tools) { width: 460px; }
/* 라디오가 한 줄에 셋이면 폭이 더 든다 (색상 균형의 어두운/중간/밝은 영역) */
.adjust-backdrop .adjust-form:has(.adjust-radios) { width: 500px; }
/* 라디오 줄은 이름을 왼쪽에 두고 갈래를 그 옆에 (원문 화면 #66·#68) */
.adjust-row:has(.adjust-radios) .adjust-label { flex: none; }
.adjust-row:has(.adjust-radios) { justify-content: flex-start; }
.adjust-row-check:has(.hs-tools) .adjust-label { flex: none; min-width: 0; white-space: nowrap; }
/* 이전 - 이후 색 띠 (원문 화면 #64) */
.adjust-row-ba { display: block; }
.adjust-row-ba .adjust-label { display: block; min-width: 0; margin-bottom: 4px; }
.hs-ba { display: flex; flex-direction: column; gap: 3px; }
/* 띠는 −180°(청록)에서 시작해 **가운데가 빨강**(0°) 이다 (사장님 화면 #62·#64) */
.hs-ba-strip {
  height: 14px; border: 1px solid var(--line); border-radius: 2px;
  background: linear-gradient(to right, #0ff, #00f, #f0f, #f00, #ff0, #0f0, #0ff);
}
/* 두 띠 사이 색 범위 막대 — 안쪽 두 개(그대로 걸림)와 바깥 두 세모(서서히 약해짐) */
.hs-range { position: relative; height: 11px; }
.hs-rng-span { position: absolute; top: 4px; height: 3px; background: var(--text-dim); border-radius: 1px; }
.hs-rng-h { position: absolute; top: 0; width: 9px; height: 11px; margin-left: -4.5px; cursor: ew-resize; touch-action: none; }
.hs-rng-b, .hs-rng-c { background: #d8d8d8; width: 3px; margin-left: -1.5px; border-radius: 1px; }
.hs-rng-a, .hs-rng-d {
  width: 0; height: 0; margin-left: -4px; margin-top: 2px;
  border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 7px solid #999;
}
.hs-rng-h::after { content: ""; position: absolute; left: -4px; right: -4px; top: -2px; bottom: -2px; }
.hs-ba-deg { display: flex; justify-content: space-between; color: var(--text-dim); font-size: 11px; }
.adjust-row-check { flex-wrap: nowrap; }
/* 색 띠 트랙은 조금 두껍다 — 색이 보여야 한다 (원문 화면 #64) */
body.editor-body .adjust-backdrop input[type="range"].tinted::-webkit-slider-runnable-track { height: 10px; border-radius: 2px; border: none; }
body.editor-body .adjust-backdrop input[type="range"].tinted::-moz-range-track { height: 10px; border-radius: 2px; border: none; }
body.editor-body .adjust-backdrop input[type="range"].tinted::-webkit-slider-thumb { margin-top: -1px; }
.adjust-presets select, .levels-top select {
  background: var(--sunken); border: 1px solid var(--line); border-radius: 5px;
  color: var(--text); padding: 4px 6px; font: inherit; font-size: 12px;
}
.adjust-preset-select, .levels-preset-select { flex: 1; min-width: 0; }
.levels-top label { display: flex; align-items: center; gap: 6px; color: var(--text-dim); font-size: 12px; }
/* 사전 설정 고르개가 flex:1 로 늘어나며 채널 고르개를 눌러 "RGB" 가 "I" 로 잘렸다.
   채널은 안 줄인다 — 어느 채널을 만지는지가 레벨·곡선에서 가장 중요한 값이다. */
.levels-top > label { flex: none; }
.levels-channel, .curves-channel { min-width: 64px; }
.adjust-preview-label { margin-right: auto; font-size: 12px; }
.adjust-input { flex: 1; }
.adjust-modal { width: max-content; min-width: 380px; max-width: calc(100vw - 40px); max-height: calc(100vh - 16px); overflow-y: auto; }

/* 레이어 스타일 — Photoshop 대화상자와 같은 세 칸 구성.
   왼쪽 효과 목록 · 가운데 고른 효과의 항목 · 오른쪽 확인/취소/미리 보기. */
.styles-modal { width: 800px; max-width: calc(100vw - 40px); }
.ls-name-row { display: flex; align-items: center; gap: 10px; padding: 12px 16px 0; }
.ls-name {
  flex: 1; background: var(--deep); border: 1px solid var(--line); border-radius: 5px;
  color: var(--text); padding: 4px 8px; font: inherit;
}
.ls-body {
  display: flex; gap: 12px; padding: 12px 16px 16px; align-items: flex-start;
  /* 두 칸의 높이를 하나로 묶어 둔다 — 어느 효과를 골라도 대화상자 크기가 그대로다.
     항목이 가장 많은 경사와 엠보스가 스크롤 없이 들어가는 높이다.
     창이 낮으면 줄인다 (창 밖으로 삐져나가느니 안쪽이 밀리는 편이 낫다) */
  /* 545 는 처음 만들 때 잡은 값이다. 그 뒤 대조로 「혼합 옵션」과 「경사와 엠보스」에
     칸이 늘어 판이 이 높이를 넘어섰고(각각 550·578px), 그 둘만 스크롤이 생겨 아래
     항목이 잘렸다 (코드 리뷰 2026-09-06). 가장 큰 판이 들어갈 만큼 올린다 —
     창이 낮으면 calc 쪽이 이겨 창 밖으로는 안 나간다 */
  --ls-col-h: min(610px, calc(100vh - 230px));
}

.ls-list {
  flex: 0 0 168px; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: 5px; padding: 4px; background: var(--deep);
  height: var(--ls-col-h); overflow-y: auto;
}
.ls-item {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 8px; font-size: 12.5px; color: var(--text-dim);
  cursor: pointer; border-radius: 4px; white-space: nowrap;
}
.ls-item:hover { background: var(--panel2); color: var(--text); }
.ls-item.on { background: var(--panel2); color: #fff; }
/* 포토샵에 없는 우리 것 — 목록에서 한 칸 띄워 구분한다 */
.ls-item.ours:first-of-type { margin-top: 6px; border-top: 1px solid var(--line); padding-top: 9px; }
.ls-item input[type="checkbox"] { flex: none; }
/* 겹 늘리기 ＋ — 겹칠 수 있는 다섯 효과 줄의 오른쪽 끝에 붙는다.
   근거: docs/adobe-help/images/fm-the-left-panel-of-the-opened-layer-style-dialog-bo.jpg */
.ls-item-add {
  margin-left: auto; flex: none;
  width: 16px; height: 16px; line-height: 1; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; cursor: pointer;
  background: transparent; color: var(--text-dim);
  border: 1px solid var(--line); border-radius: 2px;
}
.ls-item-add:hover { background: var(--panel2); color: var(--text); border-color: var(--text-dim); }

.ls-panels {
  flex: 1 1 auto; min-width: 0;
  border: 1px solid var(--line); border-radius: 5px; padding: 12px 14px;
  height: var(--ls-col-h); overflow-y: auto;
}
.ls-panel { display: flex; flex-direction: column; gap: 10px; }
.ls-panel[hidden] { display: none; }
.ls-panel[data-panel="bevel"] { gap: 6px; }
.ls-default-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ls-panel-title {
  margin: 0 0 4px; font-size: 12.5px; color: var(--text); font-weight: 600;
  border-bottom: 1px solid var(--line); padding-bottom: 8px;
}
.ls-panels .adjust-label { min-width: 92px; }
/* 항목이 많은 효과(경사와 엠보스)는 포토샵처럼 묶음 제목으로 나눈다 */
.ls-group {
  margin: 6px 0 2px; font-size: 12px; color: var(--text-dim);
  border-bottom: 1px solid var(--line); padding-bottom: 6px;
}
.ls-panel .adjust-input { flex: 1; max-width: 160px; }
.ls-item-plain { padding-left: 26px; }
/* 어떤 효과에 딸린 항목 — 한 칸 들여 놓는다 (경사와 엠보스의 윤곽선·텍스처) */
.ls-item-sub { padding-left: 22px; }
.ls-contour-curve {
  width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 3px; flex: none;
}

/* 스타일 칸 — 효과 한 벌을 담아 둔 축소판 (포토샵 스타일 목록과 같은 자리) */
.ls-preset-grid {
  display: grid; grid-template-columns: repeat(auto-fill, 56px); gap: 8px;
  align-content: start;
}
.ls-preset {
  position: relative; width: 56px; height: 56px; padding: 0;
  border: 1px solid var(--line); border-radius: 4px; background: var(--deep);
  cursor: pointer; overflow: hidden; line-height: 0;
}
.ls-preset:hover { border-color: var(--accent, #4a86c8); }
.ls-preset canvas { width: 100%; height: 100%; }
.ls-preset-x {
  position: absolute; top: 0; right: 0; width: 15px; height: 15px;
  display: none; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.65); color: #fff; font-size: 12px; line-height: 1;
}
.ls-preset:hover .ls-preset-x { display: flex; }

/* ── 혼합 옵션 (Photoshop 레이어 스타일 > 혼합 옵션) ───────────────── */
/* 항목이 가장 많은 판 — 줄 간격을 좁혀 스크롤 없이 한 화면에 담는다 */
.ls-panel[data-panel="blend"] { gap: 5px; }
.ls-panel[data-panel="blend"] .ls-group { margin: 3px 0 1px; }
.ls-channels { display: flex; gap: 14px; align-items: center; }
.ls-channels label { display: flex; align-items: center; gap: 4px; font-size: 12px; }
.ls-check-row {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; color: var(--text-dim); cursor: pointer; padding: 0 0 0 92px;
}
.ls-check-row:hover { color: var(--text); }
.ls-check-row input { flex: none; }
.ls-blendif-head { display: flex; align-items: center; gap: 8px; }
.ls-blendif-head select {
  background: var(--sunken); border: 1px solid var(--line); border-radius: 4px;
  color: var(--text); font: inherit; font-size: 12px; padding: 1px 4px;
}
.blendif { margin: 0 0 6px; }
.blendif-top {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text-dim); margin-bottom: 3px;
}
.blendif-name { min-width: 92px; }
.blendif-high { margin-left: auto; }
/* 막대는 검정에서 흰색까지 — 손잡이가 가리키는 밝기가 바로 보인다 */
.blendif-bar {
  position: relative; height: 13px; border: 1px solid var(--line); border-radius: 2px;
  background: linear-gradient(to right, #000, #fff);
  margin-bottom: 9px; cursor: pointer; touch-action: none;
}
/* 손잡이는 막대 아래에 반쪽짜리 삼각형 두 개 — 붙어 있으면 하나로 보이고,
   Alt 로 끌면 갈라져 그 사이에서 서서히 나타난다 (Photoshop 과 같다) */
.blendif-handle {
  position: absolute; top: 100%; width: 5px; height: 8px; margin-top: 1px;
  background: #d8d8d8; cursor: ew-resize;
}
.blendif-handle[data-handle="0"], .blendif-handle[data-handle="2"] {
  transform: translateX(-5px); clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.blendif-handle[data-handle="1"], .blendif-handle[data-handle="3"] {
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}
.blendif-white { background: #fff; }
.ls-blend-fill[disabled] { opacity: 0.4; }
.ls-note { margin: 4px 0 0; font-size: 11.5px; color: var(--text-dim); line-height: 1.5; }
/* 항목이 많은 판은 줄 간격을 조금 좁혀 스크롤 없이 담는다 */
.ls-panel .adjust-row { padding: 1px 0; }

.ls-side { flex: 0 0 148px; display: flex; flex-direction: column; gap: 8px; }
.ls-side .primary-btn, .ls-side .ctx-btn { width: 100%; }
.ls-preview-row { font-size: 12.5px; color: var(--text-dim); }
.ls-preview {
  width: 132px; height: 132px; border: 1px solid var(--line); border-radius: 4px;
  background: var(--deep);
}
