/* shared look for the image batch tools (copied per tool on purpose) */
.imgt-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.imgt-bar b { margin-right: auto; }
.imgt-bar .btn { min-height: 40px; padding: 8px 14px; }
.imgt-list { max-height: 320px; overflow-y: auto; }
.imgt-list li { min-width: 0; }
.imgt-list .imgt-th { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; flex: none; background: repeating-conic-gradient(#ccc 0 25%, #fff 0 50%) 50% / 12px 12px; }
.imgt-list .fn { display: flex; flex-direction: column; }
.imgt-list .fn b, .imgt-list .fn small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.imgt-list .fn b { font-size: 14.5px; }
.imgt-list .fn small { font-size: 13px; color: var(--muted); }
.file-list.imgt-list li .btn.ok { background: var(--ok); color: #fff; font-size: 15px; padding: 8px 12px; min-height: 40px; border-radius: 10px; }
.imgt-check { display: flex; align-items: center; gap: 8px; margin: 10px 0; font-weight: 600; cursor: pointer; }
.imgt-wh > * { flex: 1 1 110px; }
.imgt-sum { margin: 6px 0 4px; font-size: 14px; }
.imgt-sum b { color: var(--ink); }
.seg + .seg { margin-top: 6px; }
input[type=color] { width: 100%; min-height: 42px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); padding: 3px; cursor: pointer; }
.imgt-zip { width: 100%; margin: 6px 0 4px; }
.imgt-warn { margin-top: 12px; }
.imgt-warn ul { margin: 6px 0 0; padding-left: 18px; }
#cp-msg:empty { display: none; }
/* compress: before / after viewer */
.cp-kb { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.cp-kb button { font: inherit; font-weight: 700; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 10px; padding: 9px 14px; min-height: 42px; cursor: pointer; flex: 1 1 60px; }
.cp-kb button.on { background: var(--c); color: var(--brand-ink); border-color: var(--c); }
.cp-cmp { margin-top: 16px; border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: var(--bg); }
.cp-cmp-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.cp-cmp-top b { margin-right: auto; }
.cp-stage { position: relative; width: 100%; max-height: 62vh; margin: 0 auto; overflow: hidden; border-radius: 10px; touch-action: pan-y; cursor: ew-resize; user-select: none;
  background: repeating-conic-gradient(#ccc 0 25%, #fff 0 50%) 50% / 16px 16px; }
.cp-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; max-width: none; }
.cp-line { position: absolute; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.35); pointer-events: none; }
.cp-line::after { content: "⇔"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%; background: #fff; color: #222; display: grid; place-items: center; font-weight: 900; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.cp-tag { position: absolute; top: 8px; background: rgba(0,0,0,.62); color: #fff; font-size: 12.5px; font-weight: 700; padding: 3px 8px; border-radius: 8px; pointer-events: none; max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-tag.l { left: 8px; } .cp-tag.r { right: 8px; }
.cp-sbs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cp-sbs figure { margin: 0; min-width: 0; }
.cp-sbs img { width: 100%; max-height: 50vh; object-fit: contain; border-radius: 8px; background: repeating-conic-gradient(#ccc 0 25%, #fff 0 50%) 50% / 14px 14px; display: block; }
.cp-sbs figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 4px; }
.cp-zoom { font-size: 13px; }
.cp-save { font-weight: 800; color: var(--ok); }
.cp-more summary { cursor: pointer; font-weight: 700; margin-top: 8px; }
.file-list.imgt-list li .cp-eye { font-size: 18px; }
