/* ── Find Mode — overlay image + results panel ─────────────────────────── */

/* Overlay image has the same natural dimensions as previewImg and uses
   identical sizing/object-fit, so it scales and letterboxes in lockstep
   at any container size. No JS repositioning needed. */
.find-overlay-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  z-index: 2;
}

/* ── Results panel ──────────────────────────────────────────────────────── */

.find-results {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
}

.find-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.find-results-title {
  font-weight: 500;
  font-size: 14px;
  color: var(--heading);
}

.find-clear-btn {
  font-size: 12px;
  padding: 2px 10px;
}

/* ── Object list ────────────────────────────────────────────────────────── */

.find-object-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 160px;
  overflow-y: auto;
}

.find-object-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  font-size: 13px;
  color: var(--text);
  transition: border-color 0.15s, background 0.15s;
  user-select: none;
}

.find-object-item:hover {
  border-color: var(--accent);
  background: var(--surface-hover, var(--surface));
}

.find-object-item.selected {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 15%, var(--surface));
}

.find-color-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.find-object-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

/* ── Use as Mask button ─────────────────────────────────────────────────── */

.find-use-mask-btn {
  margin-top: 10px;
  width: 100%;
}
