/* Limpiador de contactos: the two file slots, the column row and the result panel.
   Everything else comes from /assets/base.css. */

/* ── File slots ─────────────────────────────────────────── */
.inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 640px) {
  .inputs {
    grid-template-columns: minmax(0, 1fr);
  }
}

.slot {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.slot-label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-2);
}
.slot-label .optional {
  font-weight: 400;
  color: var(--muted);
}

.drop {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 88px;
  padding: 16px 18px;
  border: 1.5px dashed var(--border-input);
  border-radius: var(--radius-card);
  background: var(--surface);
  cursor: pointer;
  transition:
    border-color 130ms var(--ease),
    background-color 130ms var(--ease);
}
.drop:hover,
.drop.is-over {
  border-color: var(--brand-blue);
  background: var(--surface-hover);
}
.drop:not(.is-loaded):focus-within {
  box-shadow: var(--focus-ring);
  border-color: var(--brand-blue);
}
.drop input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
}
.drop-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  flex: none;
}
.drop-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.drop-title {
  font-weight: 500;
}
.drop-title .link {
  color: var(--brand-blue);
}
.drop-meta {
  font-size: 0.8125rem;
  color: var(--muted);
}

.drop.is-loaded {
  border-style: solid;
  border-color: var(--border);
  box-shadow: var(--shadow);
  cursor: default;
}
.drop.is-loaded:hover {
  background: var(--surface);
}
.drop.is-loaded .drop-icon {
  background: var(--success-soft);
  color: var(--success-strong);
}
.drop.is-loaded input[type="file"] {
  display: none;
}
.drop-name {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.drop-actions {
  margin-left: auto;
  display: flex;
  gap: 4px;
  flex: none;
}

.drop.is-error {
  border-color: var(--critical-strong);
  border-style: solid;
}
.drop.is-error .drop-icon {
  background: var(--critical-soft);
  color: var(--critical-strong);
}
.drop.is-error .drop-meta {
  color: var(--critical-strong);
}

/* ── Columns ────────────────────────────────────────────── */
.columns {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px 16px;
}
/* ── Result ─────────────────────────────────────────────── */
.result {
  display: grid;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.result-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.bar-end {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
