/* ============================================================
   Duplicate Image Finder - tool styles (NEW 2026-10-12), scoped under .dif-*
   Shared look (cards, buttons, segments, kpis, drop zone, info section)
   comes from /styles/ia-tool.css. Light default, dark via [data-theme="dark"].
   ============================================================ */
.dif .dif-drop-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-top: 0.5rem; }
.dif .dif-prog { padding: 1rem 0 0.4rem; }
.dif .dif-prog-top { display: flex; align-items: center; gap: 0.8rem; }
.dif .dif-prog-top span { flex: 1; min-width: 0; font-size: 0.88rem; color: var(--ia-t2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dif .dif-prog-top strong { font-variant-numeric: tabular-nums; color: var(--ia-t1); }
.dif .dif-bar { height: 8px; border-radius: 999px; background: var(--ia-sunk); border: 1px solid var(--ia-line); overflow: hidden; margin-top: 0.6rem; }
.dif .dif-bar span { display: block; height: 100%; width: 0; background: var(--ia-c); transition: width 0.2s; }
.dif .dif-tools { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; justify-content: space-between; margin: 0.4rem 0 1rem; }
.dif .dif-tools .ia-muted { font-size: 0.82rem; }
.dif .dif-group { border: 1px solid var(--ia-line); border-radius: 14px; margin-bottom: 0.8rem; background: var(--ia-card); overflow: hidden; }
.dif .dif-group header { display: flex; justify-content: space-between; gap: 0.6rem; padding: 0.55rem 0.9rem; background: var(--ia-sunk); border-bottom: 1px solid var(--ia-line); font-size: 0.86rem; color: var(--ia-t2); }
.dif .dif-group header strong { color: var(--ia-t1); }
.dif .dif-row { display: flex; gap: 0.7rem; overflow-x: auto; padding: 0.8rem; scrollbar-width: thin; }
.dif .dif-item { position: relative; margin: 0; flex: 0 0 160px; border: 2px solid var(--ia-line); border-radius: 12px; overflow: hidden; cursor: pointer; background: var(--ia-card); }
.dif .dif-item:hover { border-color: var(--ia-line-c); }
.dif .dif-item:focus-visible { outline: 3px solid var(--ia-c); outline-offset: 1px; }
.dif .dif-item.is-keep { border-color: var(--ia-ok); }
.dif .dif-thumb { height: 120px; display: flex; align-items: center; justify-content: center; }
.dif .dif-thumb img { max-width: 100%; max-height: 120px; display: block; }
.dif .dif-item em { position: absolute; top: 6px; left: 6px; font-style: normal; font-size: 0.7rem; font-weight: 800; padding: 0.12rem 0.45rem; border-radius: 6px; color: #fff; background: rgba(15, 23, 42, 0.78); }
.dif .dif-item em.dif-keep { background: #2f855a; }
.dif .dif-item em.dif-same { background: #c23b3b; }
.dif .dif-item figcaption { display: flex; flex-direction: column; gap: 0.1rem; padding: 0.45rem 0.55rem; border-top: 1px solid var(--ia-line); min-width: 0; }
.dif .dif-item figcaption strong { font-size: 0.78rem; color: var(--ia-t1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dif .dif-item figcaption span { font-size: 0.7rem; color: var(--ia-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 600px) {
    .dif .dif-item { flex-basis: 130px; }
    .dif .dif-thumb { height: 96px; }
}
