/* Bundle importer (#307), rebuilt on the shared review flow (#390) — the
   person cards, item rows, and guided mode live in css/review-flow.css.
   This file keeps the import-only chrome: the source chooser, the provenance
   summary, and the three-way skip / add-new / match control mounted in each
   person card's head. */

/* The "Where's the bundle?" source chooser (#337) — Open from Drive / Choose a
   file / a GEDCOM file; the Drive tile is omitted when the Picker isn't set up.
   The tiles themselves wear the Share menu's rich-tile classes
   (`.add-chooser__option--rich`, layout.css) so the two choosers read as one
   product (#394) — this wrapper only stacks them full-width in the sm modal. */
.import-source-chooser {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* Where it came from + a counts line, on a soft sage wash. */
.import__summary {
  padding: 12px 16px;
  background: var(--color-accent-soft);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}
.import__from {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 18px;
  color: var(--color-accent);
  line-height: 1.2;
}
.import__counts {
  margin-top: 4px;
  font-size: 13px;
  color: var(--color-text-muted);
}

/* Three-way segmented control in the person card's head. */
.import-choice__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.import-choice__action {
  flex: 1 1 auto;
  min-width: 96px;
  min-height: var(--touch-target-min);
  padding: 8px 14px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}
.import-choice__action:hover:not(:disabled):not(.import-choice__action--selected) {
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.import-choice__action:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.import-choice__action--selected {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-surface);
  box-shadow: var(--shadow-sm);
}
.import-choice__action:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* The match picker only appears once "Match" is chosen. */
.import-choice__match {
  display: none;
  margin-top: 12px;
}
.import-choice__match--shown {
  display: block;
}
.import-choice__hint {
  margin-top: 6px;
  font-size: 12px;
  color: var(--color-text-muted);
  min-height: 1em;
}
.import-choice__hint--warn {
  color: var(--color-highlight-hover);
}

@media (max-width: 480px) {
  .import-choice__action {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .import-source,
  .import-choice__action {
    transition: none;
  }
}
