
/* ── 픽셀 유동화 창 ─────────────────────────────────────────────────
   독일어 책 666~671쪽 20.12 절. 그림 20.60(창 전체) · 20.61(도구 열둘) ·
   20.62(속성 패널 다섯 절). 사장님 화면(2026-09-04)에서 배치를 쟀다 —
   왼쪽 도구 막대 한 줄 · 가운데 그림 · 오른쪽 속성, 왼쪽 아래 배율. */
.modal.liquify-modal {
  width: min(1180px, calc(100vw - 40px));
  height: min(860px, calc(100vh - 50px));
  max-height: calc(100vh - 40px);
}
.lq-body { flex: 1; display: flex; min-height: 0; }
.lq-tools {
  flex: 0 0 auto; display: flex; flex-direction: column; gap: 2px;
  padding: 6px 4px; border-right: 1px solid var(--line); background: var(--panel2);
}
.lq-tool { width: 28px; height: 26px; padding: 0; font-size: 11px; }
.lq-tool.on { background: var(--blue); color: #fff; }
.lq-stage { flex: 1; display: flex; flex-direction: column; min-width: 0; background: var(--canvas-bg, #2b2b2b); }
.lq-canvas { flex: 1; width: 100%; min-height: 0; display: block; cursor: crosshair; }
.lq-foot {
  display: flex; align-items: center; gap: 4px;
  padding: 4px 6px; border-top: 1px solid var(--line);
}
.lq-zoom-btn {
  background: none; border: 1px solid var(--line); color: var(--text);
  width: 20px; height: 20px; line-height: 1; border-radius: 3px; cursor: pointer;
}
.lq-zoom-select { height: 20px; font-size: 11px; }

/* 오른쪽 속성 — 절마다 세모로 접고 편다 (책 667쪽) */
.lq-side {
  flex: 0 0 300px; display: flex; flex-direction: column;
  border-left: 1px solid var(--line); overflow-y: auto; min-height: 0;
}
.lq-side-title { padding: 5px 8px; border-bottom: 1px solid var(--line); font-size: 11px; }
.lq-section { border-bottom: 1px solid var(--line); }
.lq-sec-head {
  display: flex; align-items: center; gap: 5px; width: 100%;
  background: none; border: 0; color: var(--text);
  padding: 5px 8px; font-size: 11px; cursor: pointer; text-align: left;
}
.lq-sec-tri { width: 9px; font-size: 8px; }
.lq-sec-body { display: none; padding: 2px 10px 8px 22px; }
.lq-section.open .lq-sec-body { display: block; }
.lq-field { display: grid; grid-template-columns: 1fr 52px; gap: 2px 6px; margin-bottom: 6px; align-items: center; }
.lq-field-label { font-size: 11px; color: var(--text); text-align: right; }
.lq-num { height: 18px; font-size: 11px; text-align: right; }
.lq-field .opt-range { grid-column: 1 / -1; width: 100%; }
.lq-field-sel { grid-template-columns: 1fr 1.2fr; }
.lq-field-sel select { grid-column: 2; height: 20px; font-size: 11px; }
.lq-check { display: flex; align-items: center; gap: 4px; font-size: 11px; margin: 3px 0; }
.lq-check input[disabled] + * , .lq-stylus-wrap:has(input[disabled]) { opacity: 0.45; }
.lq-mesh-row { display: flex; gap: 4px; flex-wrap: wrap; }
.lq-mesh-row > button { flex: 1 1 auto; font-size: 11px; }
.lq-mask-ops { display: flex; gap: 3px; margin-bottom: 6px; }
.lq-mask-ops > button { flex: 1; font-size: 11px; padding: 3px 0; }
.lq-mask-row { display: flex; gap: 4px; }
.lq-mask-row > button { flex: 1; font-size: 11px; }
.lq-view-checks { margin-bottom: 4px; }
.lq-soon { font-size: 11px; color: var(--text-dim); margin: 2px 0; line-height: 1.4; }
.lq-side-foot { margin-top: auto; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.lq-buttons { display: flex; gap: 5px; }
.lq-buttons > button { flex: 1; }
.modal.lqrec-modal { width: 320px; height: auto; }
/* 도구 막대는 아이콘 한 줄 — 원문(그림 20.61)도 글자 없이 아이콘만 세운다 */
.lq-tool { width: 26px; height: 24px; padding: 0; display: flex; align-items: center; justify-content: center; }
.lq-tool svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.3;
               stroke-linecap: round; stroke-linejoin: round; }
/* 마스크 섞기 다섯이 한 줄에 들어가야 한다 (268px 안) */
.lq-mask-ops > button { padding: 3px 2px; min-width: 0; }
/* 창 안 단추는 기본이 min-width 84px 이다 (확인·취소를 같은 크기로 맞추려고).
   유동화의 도구 막대·마스크 섞기·메시 단추는 좁은 칸에 여럿 서므로 그 규칙을 푼다 */
.modal .lq-tool { min-width: 0; width: 26px; height: 24px; padding: 0; border-radius: 4px; }
.modal .lq-mask-ops .ctx-btn { min-width: 0; padding: 4px 2px; font-size: 11px; font-weight: 400; }
.modal .lq-mask-row .ctx-btn,
.modal .lq-mesh-row .ctx-btn { min-width: 0; padding: 4px 6px; font-size: 11px; font-weight: 400; }
.modal .lq-zoom-btn { min-width: 0; }
