/* ============================================================
   图像 > 调整 对话框（亮度/对比度、色阶、曲线、色相/饱和度、去色、反相、阈值）
   只作用于 .adjust-dialog / .adjust-backdrop / .menu-submenu，避免污染 app.css 的既有外壳。
   垂直几何：标题 40 + body 16/18 内边距 + 控件行 26~30 + 底部按钮 28，1080 下全部收得下。
   ============================================================ */

/* ---------- 菜单子菜单（图像 > 调整；真机裁切宽 226 逻辑像素） ---------- */
.menu-submenu { min-width: 226px; }
.menu-submenu .menu-entry { padding-right: 14px; }
.menu-submenu .menu-entry .shortcut { padding-left: 22px; }
.submenu-arrow { color: #cfcfcf; font-size: 11px; line-height: 22px; padding-left: 18px; }
.menu-entry.disabled .submenu-arrow { color: #6f6f6f; }

/* ---------- 对话框主体 ---------- */
.adjust-dialog { min-width: 380px; }
.adjust-dialog .dialog-body { gap: 10px; }
.adjust-dialog .dialog-footer { padding-top: 4px; }

.adj-row { display: flex; align-items: center; gap: 10px; }
.adj-label { width: 88px; flex: 0 0 auto; font-size: 12px; color: #dcdcdc; }
.adj-group-label {
  font-size: 11px; color: #a8a8a8; border-bottom: 1px solid #3a3a3a;
  padding-bottom: 3px; margin-top: 2px;
}
.adj-range {
  flex: 1 1 auto; min-width: 120px; height: 18px; margin: 0;
  accent-color: var(--accent); background: transparent; cursor: pointer;
}
.adj-number {
  width: 62px; flex: 0 0 auto; text-align: right; padding: 0 6px;
  height: 24px; font-size: 12px;
}
.adj-select { width: 232px; }

/* ---------- 预览 / 摘要 / 说明 ---------- */
.adj-preview-row {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid #333; padding-top: 8px; margin-top: 2px;
}
.adj-preview { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #dcdcdc; }
.adj-preview input { accent-color: var(--accent); margin: 0; }
.adj-summary { font-size: 11px; color: #9a9a9a; }
.adj-note { font-size: 11px; color: #a8a8a8; line-height: 1.6; }

/* ---------- 直方图（色阶 / 阈值） ---------- */
.adj-hist-wrap {
  background: #202020; border: 1px solid #5a5a5a; border-radius: 2px;
  width: 100%; height: 72px; overflow: hidden;
}
.adj-hist { display: block; width: 100%; height: 72px; }

/* ---------- 曲线画布 ---------- */
.adj-curve-wrap { display: flex; align-items: flex-start; gap: 14px; }
.adj-curve {
  display: block; width: 256px; height: 256px; flex: 0 0 auto;
  background: #1f1f1f; border: 1px solid #5f5f5f; border-radius: 2px;
  cursor: crosshair;
}
.adj-curve-side { display: flex; flex-direction: column; gap: 8px; width: 132px; }
.adj-small-btn { height: 24px; min-width: 0; padding: 0 10px; font-size: 11px; border-radius: 12px; }

/* ---------- 新增 15 项调整控件（复选框 / 颜色 / 超长对话框滚动） ---------- */
.adjust-dialog .dialog-body { max-height: 560px; overflow-y: auto; }
.adj-row-check { justify-content: flex-start; }
.adj-check { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #dcdcdc; }
.adj-check input { accent-color: var(--accent); margin: 0; }
.adj-color {
  width: 64px; height: 24px; padding: 0 2px; border: 1px solid #5a5a5a;
  border-radius: 2px; background: #2a2a2a; cursor: pointer;
}
.adj-color::-webkit-color-swatch-wrapper { padding: 0; }
.adj-color::-webkit-color-swatch { border: none; border-radius: 1px; }

