/* ==========================================================================
   System2 Configurator - "Import from AnyRail" panel
   Token-only (see configurator.css :root). Light, matches the estate.
   Reuses the .s2c-btn family from convert.css.
   ========================================================================== */

.s2c-import {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  padding: 16px 18px;
  margin-bottom: 16px;
}

.s2c-import__head h2 {
  font-size: 1.05rem;
  margin: 0 0 2px;
}
.s2c-import__sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
}

/* ---------- dropzone ---------- */
.s2c-import__drop {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  padding: 14px 16px;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-card);
  background: var(--section-bg);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.s2c-import__drop.is-dragover {
  border-color: var(--accent);
  background: var(--accent-light);
}
.s2c-import__drop-icon {
  color: var(--accent);
  flex: 0 0 auto;
  display: flex;
}
.s2c-import__drop-text {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.s2c-import__drop-or {
  color: var(--muted);
  font-size: 0.875rem;
}
/* the native input is driven by the Choose-file button */
.s2c-import__file {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.s2c-import__pick {
  flex: 0 0 auto;
}

/* ---------- result (parsed summary / guidance / confirmation) ---------- */
.s2c-import__result {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  font-size: 0.9rem;
}
.s2c-import__result.is-ok {
  background: var(--success-light);
  border-color: var(--success-border);
  color: #065f46;
}
.s2c-import__result.is-warn {
  background: var(--warning-light);
  border-color: var(--warning-border);
  color: #92400e;
}
.s2c-import__msg strong {
  font-weight: 700;
}
.s2c-import__actions {
  margin-top: 10px;
}

/* ---------- footnote ---------- */
.s2c-import__hint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}
.s2c-import__hint-lead { margin: 0 0 6px; }
.s2c-import__how {
  margin: 0 0 8px;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.s2c-import__how li { line-height: 1.45; }
.s2c-import__note { margin: 0; opacity: 0.85; }

@media (max-width: 640px) {
  .s2c-import__drop {
    flex-direction: column;
    align-items: flex-start;
  }
}
