@charset "UTF-8";
/* Cutout page — 色键抠图专属：棋盘格透明预览 / 关键色卡 / 底色行；其余复用 compress.css */
/* ── 结果区 ── */
.co-work {
  margin-top: 20px;
}

.co-stage {
  border: 1px solid #eceae4;
  border-radius: 16px;
  background: #fcfbf8;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 220px;
}

/* 分屏 segmented 工具栏：右上角绝对定位，不推挤舞台内容 */
.co-stage__toolbar {
  align-self: flex-end;
  margin-bottom: -6px;
}
.co-stage__toolbar[hidden] {
  display: none;
}

.co-viewseg {
  display: inline-flex;
  background: #f1eee6;
  border: 1px solid #eceae4;
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}
.co-viewseg button {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 4px 12px;
  font: inherit;
  font-size: 12.5px;
  line-height: 1.4;
  color: rgba(28, 28, 28, 0.62);
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.co-viewseg button:hover {
  color: #1c1c1c;
}
.co-viewseg button.is-active {
  background: #fcfbf8;
  color: #1c1c1c;
  box-shadow: 0 1px 2px rgba(28, 28, 28, 0.06);
}
.co-viewseg button:focus-visible {
  outline: 2px solid rgba(28, 28, 28, 0.35);
  outline-offset: 1px;
}

/* 预览层容器：主 canvas + 对比 canvas + 手柄均叠在同一坐标 */
.co-stage__holder {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0; /* 去掉 canvas inline 下方间隙，确保叠加层尺寸与主 canvas 一致 */
}

.co-stage__canvas {
  display: none;
  position: relative;
  z-index: 1;
}
.co-stage__canvas:not([hidden]) {
  display: block;
}
.co-stage__canvas {
  max-width: 100%;
  max-height: 42vh;
  width: auto;
  height: auto;
  border-radius: 6px;
  /* 棋盘格行底：透明像素透出格子，抠得干不干净一眼可见 */
  background: repeating-conic-gradient(#e9e5db 0% 25%, #f8f6f0 0% 50%) 50%/16px 16px;
  box-shadow: 0 0 0 1px rgba(28, 28, 28, 0.05);
}
.co-stage__canvas.is-eye {
  cursor: crosshair;
}

.co-stage__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: rgba(28, 28, 28, 0.62);
  font-size: 13px;
  text-align: center;
  line-height: 1.8;
}
.co-stage__placeholder[hidden] {
  display: none;
}
.co-stage__placeholder svg {
  width: 40px;
  height: 40px;
  opacity: 0.4;
}

.co-fileinfo {
  margin: 12px 2px 0;
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
  color: rgba(28, 28, 28, 0.62);
  min-height: 18px;
}

.co-metrics {
  margin: 6px 2px 0;
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
  color: rgba(28, 28, 28, 0.62);
  letter-spacing: 0.01em;
  min-height: 18px;
}
.co-metrics[hidden] {
  display: none;
}

/* 对比层：与主 canvas 同尺寸同坐标，z-index 高于一层 */
.co-stage__compare {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  border-radius: 6px;
  pointer-events: none;
  z-index: 2;
  box-shadow: 0 0 0 1px rgba(28, 28, 28, 0.05);
}
.co-stage__compare:not([hidden]) {
  display: block;
}

.co-stage__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(28, 28, 28, 0.35);
  cursor: ew-resize;
  z-index: 3;
  touch-action: none;
}
.co-stage__handle[hidden] {
  display: none;
}
.co-stage__handle {
  /* 中间一个 22px 圆形抓接，方便手机触控 */
}
.co-stage__handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(28, 28, 28, 0.35), inset 0 0 0 1px rgba(28, 28, 28, 0.15);
}
.co-stage__handle {
  /* 箭头符号（纯 CSS） */
}
.co-stage__handle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  z-index: 4;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 5px solid rgba(28, 28, 28, 0.6);
  margin-left: 2px;
  pointer-events: none;
}
.co-stage__handle:focus-visible {
  outline: 2px solid rgba(28, 28, 28, 0.5);
  outline-offset: 2px;
}

/* ── 侧栏：关键色显示 ── */
.co-key-hex {
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  font-size: 12.5px;
  color: #1c1c1c;
  letter-spacing: 0.02em;
}

.co-key-swatch {
  display: block;
  height: 30px;
  border-radius: 8px;
  border: 1px solid #dcd8cc;
  background: repeating-conic-gradient(#e9e5db 0% 25%, #f8f6f0 0% 50%) 50%/12px 12px;
  position: relative;
  /* 底色层用 CSS 变量注入当前关键色（JS setProperty('--sw')） */
}
.co-key-swatch::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 7px;
  background: var(--sw, #ffffff);
}

/* 取色笔开关：复用 pl-check 视觉但独立命名，避免跨页耦合 */
.co-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(28, 28, 28, 0.62);
  cursor: pointer;
}
.co-check input {
  margin-top: 2px;
  accent-color: #1c1c1c;
  flex-shrink: 0;
}

/* ── 自定义底色行：color 输入 + 标签横排 ── */
.co-dim-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  /* flex 会盖掉 UA [hidden]{display:none}，显隐必须配套补回 */
}
.co-dim-row[hidden] {
  display: none;
}
.co-dim-row .control-label {
  flex-shrink: 0;
}
.co-dim-row input[type=color] {
  width: 52px;
  height: 30px;
  padding: 2px;
  border: 1px solid #dcd8cc;
  border-radius: 8px;
  background: #f1eee6;
  cursor: pointer;
}

/* 下载按钮处理中：右侧小转圈 + 当前进度百分比文字（JS 写入 label） */
#co-btn-download.is-busy {
  opacity: 0.9;
  cursor: progress;
  position: relative;
}
#co-btn-download.is-busy::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: co-spin 0.7s linear infinite;
}

@keyframes co-spin {
  to {
    transform: rotate(360deg);
  }
}
/* ── 多图队列卡列表（≥ 2 张才展示） ── */
.co-queue {
  margin-top: 18px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.co-queue[hidden] {
  display: none;
}

.co-queue__title {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(28, 28, 28, 0.62);
  margin: 0 0 2px;
}

.coq-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border: 1px solid #eceae4;
  border-radius: 12px;
  background: #fcfbf8;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.coq-card.is-current {
  border-color: #dcd8cc;
  background: #f1eee6;
}
.coq-card.is-done {
  border-color: rgba(63, 107, 74, 0.32);
}
.coq-card.is-failed {
  border-color: rgba(176, 74, 63, 0.35);
}

.coq-card__thumb {
  flex: none;
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #eceae4;
  background: repeating-conic-gradient(#e9e5db 0% 25%, #f8f6f0 0% 50%) 50%/8px 8px;
}

.coq-card__main {
  flex: 1;
  min-width: 0;
}

.coq-card__name {
  margin: 0;
  font-size: 13px;
  color: #1c1c1c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.coq-card__meta {
  margin: 2px 0 0;
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  font-size: 11.5px;
  color: rgba(28, 28, 28, 0.62);
}

.coq-card__ops {
  flex: none;
  display: flex;
  gap: 6px;
}
.coq-card__ops .btn-sm {
  padding: 4px 10px;
  font-size: 12px;
}

/* ── 质量滑杆行：只在 WebP / JPEG 下可见，隐藏时靠 [hidden]{display:none} ── */
#co-quality-row {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #eceae4;
}
#co-quality-row[hidden] {
  display: none;
}

/* 防带 display 的按钮类压掉 hidden 属性（全站陷阱） */
.cutout-page .btn[hidden],
.cutout-page .co-queue .btn[hidden] {
  display: none !important;
}

/* ── 批次 3：局部精修笔刷 ── */
.co-stage__canvas.is-brush {
  cursor: none;
}

.co-stage__brush {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 4;
  border: 1.5px solid rgba(28, 28, 28, 0.85);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6), 0 1px 3px rgba(28, 28, 28, 0.18);
  background: rgba(255, 255, 255, 0.12);
  transform: translateZ(0);
  display: block;
}
.co-stage__brush[hidden] {
  display: none;
}
.co-stage__brush.is-erase {
  border-color: rgba(176, 74, 63, 0.85);
  background: rgba(176, 74, 63, 0.1);
}

/* 撤销/重做行：与下载按钮同块但上面分隔 */
.co-undo-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.co-undo-row .btn-sm {
  flex: 1;
  padding: 6px 10px;
  font-size: 12.5px;
}
.co-undo-row .btn-sm svg {
  vertical-align: -2px;
  margin-right: 4px;
}

/*# sourceMappingURL=cutout.css.map */
