/* Fill Forms: page-specific styles. Shared look comes from brand.css and app-shell.css. */
.app-title { font-size: var(--step-3); margin-bottom: 0.3em; }
.intro { color: var(--muted); max-width: 70ch; margin-bottom: 20px; }
.two-up { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.two-up .drop { min-height: 200px; align-content: center; }
.drop[data-ready] { border-style: solid; border-color: var(--ok); }
.drop .file-name { font-weight: 700; color: var(--fg); overflow-wrap: anywhere; }
.drop .field { width: min(280px, 100%); text-align: left; }
.step { display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 50%; background: var(--hero); color: var(--on-hero); font-size: 0.75em; vertical-align: 0.15em; margin-right: 6px; }
.sample-line { margin-top: 16px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

#match { margin-top: 36px; }
#match > h2 { font-size: var(--step-2); margin: 0 0 6px; }
#match > h2:focus { outline: none; }
#match-help { max-width: 80ch; margin: 0 0 14px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); }
#map { border-collapse: collapse; width: 100%; min-width: 620px; }
#map th, #map td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
#map thead th { background: var(--hero); color: var(--on-hero); font-size: var(--step--1); }
#map tbody tr:last-child td, #map tbody tr:last-child th { border-bottom: 0; }
#map tbody th { font-weight: 600; }
#map .kind { display: block; font-weight: 400; font-size: var(--step--1); color: var(--muted); }
#map select { font: inherit; padding: 0.4em 0.6em; border: 2px solid var(--line); border-radius: var(--radius-s); background: var(--bg); color: var(--fg); max-width: 100%; }
#map select:focus { border-color: var(--primary); outline: none; }
#map tr.unmatched select { border-color: var(--highlight); }
#map .example { overflow-wrap: anywhere; }
#map .example .warn { display: block; color: var(--danger); font-size: var(--step--1); margin-top: 2px; }
#map .example .none { color: var(--muted); }

.options { display: grid; grid-template-columns: minmax(180px, 220px) 1fr; gap: 16px 24px; margin: 20px 0; align-items: start; }
.options .names input { width: 100%; }
.small { font-size: var(--step--1); margin: 6px 0 0; }
.chip { font: inherit; font-size: 0.8rem; padding: 2px 8px; margin: 2px 2px 2px 0; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--fg); cursor: pointer; }
.chip:hover { border-color: var(--primary); }
#name-preview { color: var(--muted); overflow-wrap: anywhere; }

.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
#progress { margin-top: 14px; max-width: 420px; }
.done { border: 2px solid var(--ok); border-radius: var(--radius-m); background: var(--surface); padding: 16px 20px; margin: 16px 0; }
.done:focus { outline: none; }
.done h3 { margin: 0 0 6px; font-size: var(--step-1); }
.done p { margin: 0 0 12px; }
.warnings { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; max-height: 260px; overflow: auto; }
.warnings li { border-left: 4px solid var(--highlight); padding: 6px 10px; background: var(--bg); border-radius: var(--radius-s); font-size: var(--step--1); overflow-wrap: anywhere; }
.how { margin-top: 28px; font-size: var(--step--1); max-width: 80ch; }

@media (max-width: 640px) {
  .options { grid-template-columns: minmax(0, 1fr); }
}
