/* 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; }
#nc-msg:empty { display: none; }
.nc-grid { align-items: start; }
.nc-prev-wrap { display: flex; justify-content: center; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.nc-prev-wrap canvas { display: block; max-width: 100%; max-height: 60vh; width: auto; height: auto; border-radius: 4px; box-shadow: 0 2px 10px rgba(0,0,0,.18); }
.nc-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 8px 2px; }
.nc-thumbs:empty { display: none; }
.nc-thumbs button { flex: none; width: 56px; height: 56px; padding: 0; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--bg); cursor: pointer; }
.nc-thumbs button.on { border-color: var(--c); box-shadow: 0 0 0 2px var(--brand-soft); }
.nc-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nc-bar { margin-top: 6px; }
.nc-sw { display: flex; flex-wrap: wrap; gap: 8px; }
.nc-sw button { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; }
.nc-sw button.on { outline: 3px solid var(--c); outline-offset: 2px; }
.nc-out-size { font-size: 14px; margin: 4px 0 0; }
