/* imagekit — tool-specific components (loaded after the global /styles.css) */

.ik-drop {
  border: 2px dashed var(--border, #2a3344);
  border-radius: 12px;
  padding: 2.2rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.ik-drop:hover, .ik-drop:focus-visible, .ik-drop.is-over {
  border-color: var(--accent, #6ea8fe);
  background: color-mix(in srgb, var(--accent, #6ea8fe) 6%, transparent);
  outline: none;
}
.ik-drop.is-busy { opacity: .6; pointer-events: none; }
.ik-drop p { margin: .25rem 0; }
.ik-drop-icon { font-size: 2rem; line-height: 1; margin-bottom: .35rem; }

.ik-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.ik-q { font-weight: 700; margin-left: .35rem; }
.ik-range { width: 100%; accent-color: var(--accent, #6ea8fe); }

.ik-row {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .6rem 0;
  border-bottom: 1px solid var(--border, #2a3344);
}
.ik-row:last-child { border-bottom: 0; }
.ik-thumb {
  width: 52px; height: 52px;
  object-fit: cover;
  border-radius: 8px;
  flex: 0 0 auto;
  background: var(--border, #2a3344);
}
.ik-meta { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.ik-meta strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ik-badge {
  flex: 0 0 auto;
  font-size: .8rem;
  font-weight: 700;
  padding: .2rem .55rem;
  border-radius: 999px;
}
.ik-badge-good { background: rgba(46, 204, 113, .15); color: #2ecc71; }
.ik-badge-warn { background: rgba(241, 196, 15, .15); color: #f1c40f; }

#r-actions { display: flex; gap: .6rem; align-items: center; }

@media (max-width: 560px) {
  .ik-row { flex-wrap: wrap; }
  .ik-meta { flex-basis: calc(100% - 65px); }
}
