/* 2026-10-30: spreadsheet imports (three stages). The two cards themselves use company-merge.css (MergeFieldEditor). */
.imp-page h1 { font-size: 30px; margin-bottom: 4px; overflow-wrap: anywhere; }
.imp-h2 { font-size: 22px; font-weight: 700; margin: 0 0 8px; }
.imp-page p, .imp-page li { font-size: 18px; }
.imp-label { display: block; font-size: 16px; font-weight: 600; color: #334155; margin: 8px 0 4px; }
.imp-kicker { font-size: 16px; color: #5b6475; margin: 6px 0 0; }
.imp-state { display: inline-block; font-size: 16px; font-weight: 600; color: #1e3a8a; background: #e8efff; border-radius: 999px; padding: 2px 10px; }
.imp-steps-list { margin: 0 0 12px 18px; }
.imp-uploads, .imp-items, .imp-mentions { list-style: none; padding: 0; margin: 0; }
.imp-uploads li, .imp-items li, .imp-mentions li { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 10px 0; border-top: 1px solid #eef0f4; }
.imp-up-name, .imp-item-name { font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }
.imp-counts { display: flex; flex-wrap: wrap; gap: 12px; font-size: 15px; color: #334155; }
.imp-table-wrap { width: 100%; }
.imp-table { width: 100%; border-collapse: collapse; }
.imp-table th, .imp-table td { padding: 8px; border-top: 1px solid #eef0f4; text-align: left; vertical-align: top; font-size: 16px; overflow-wrap: anywhere; }
.imp-table th { color: #5b6475; font-weight: 600; font-size: 15px; }
.imp-sheet-name { font-weight: 700; }
.imp-kind { font-size: 16px; max-width: 280px; }
.imp-ex { color: #334155; }
.imp-sub { display: block; font-size: 15px; margin-top: 6px; }
.imp-check, .imp-radio { display: flex; gap: 8px; align-items: flex-start; font-size: 16px; margin: 6px 0; cursor: pointer; }
.imp-check input, .imp-radio input { width: 18px; height: 18px; margin-top: 3px; flex: none; }
.imp-num { max-width: 120px; }
.imp-map-top { display: flex; flex-wrap: wrap; gap: 24px; margin-bottom: 10px; }
.imp-map-top fieldset { border: 0; padding: 0; margin: 0; }
.imp-map th:first-child, .imp-map td:first-child { white-space: nowrap; min-width: 6.5em; }
.imp-save { margin-top: 14px; }
.imp-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; }
.imp-tab { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border: 2px solid #c9d2e3; border-radius: 12px; background: #fff; color: #1f2937; text-decoration: none; font-size: 17px; font-weight: 600; min-width: 170px; }
.imp-tab.on { border-color: #1d4ed8; background: #eef4ff; color: #1e3a8a; }
.imp-tab:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
.imp-tab-n { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; background: #1d4ed8; color: #fff; font-size: 15px; align-items: center; justify-content: center; }
.imp-tab-c { font-size: 14px; font-weight: 400; color: #5b6475; }
.imp-stage-intro { margin-top: 0; }
.imp-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.imp-filter .btn { font-size: 15px; }
.imp-item.st-3 .imp-state { background: #e7f6ec; color: #166534; }
.imp-item.st-2 .imp-state { background: #fdf5e1; color: #854d0e; }
.imp-item.st-4 .imp-state, .imp-item.imp-wait .imp-state { background: #eef0f4; color: #475569; }
.imp-where summary, .imp-history summary, .imp-sheetonly summary { font-size: 17px; font-weight: 600; cursor: pointer; }
.imp-where ul, .imp-history ul { margin: 8px 0 0 18px; }
.imp-cands { border: 0; padding: 0; margin: 0 0 8px; display: grid; gap: 8px; }
.imp-cand { display: flex; gap: 10px; align-items: flex-start; border: 2px solid #dfe3ea; border-radius: 12px; padding: 10px 12px; cursor: pointer; font-size: 17px; }
.imp-cand.on { border-color: #1d4ed8; background: #f5f8ff; }
.imp-cand input { width: 20px; height: 20px; margin-top: 3px; flex: none; }
.imp-cand span { display: flex; flex-direction: column; gap: 2px; overflow-wrap: anywhere; }
.imp-search { margin: 6px 0; max-width: 520px; }
.imp-side { margin-top: 10px; padding: 10px 12px; border: 1px solid #dfe3ea; border-radius: 10px; display: grid; gap: 8px; max-width: 640px; }
.imp-side .btn { justify-self: start; }
.imp-forward { border: 0; padding: 0; margin: 0 0 10px; }
.imp-kept, .imp-locked { margin-top: 10px; }
.imp-newform { display: grid; grid-template-columns: minmax(140px, max-content) 1fr; gap: 8px 14px; align-items: start; }
.imp-newform dt label { font-size: 16px; font-weight: 600; margin-top: 8px; }
.imp-newform dd { margin: 0; }
.imp-sheetonly { margin-top: 12px; }
.imp-sheetonly dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 8px 0 0; font-size: 16px; }
.imp-sheetonly dd { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.imp-pre { white-space: pre-line; }
.imp-decide { margin-top: 12px; max-width: 640px; }
.imp-page .cm-lbl { display: none; }
/* 2026-10-30 guided start: progress through the three stages, one primary action, details tucked away. */
.imp-progress { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 10px 0 14px; counter-reset: none; }
.imp-progress li { flex: 1 1 200px; position: relative; }
.imp-progress li > a, .imp-progress li > .imp-step { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; height: 100%;
    padding: 10px 14px; border: 2px solid #c9d2e3; border-radius: 12px; background: #fff; color: #1f2937; text-decoration: none; }
.imp-progress li > .imp-step { background: #f6f7f9; color: #475569; }
.imp-progress li.on > a { border-color: #1d4ed8; background: #eef4ff; color: #1e3a8a; }
.imp-progress li > a:hover { border-color: #1d4ed8; }
.imp-progress li > a:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 2px; }
.imp-step-n { grid-row: span 2; display: inline-flex; width: 30px; height: 30px; border-radius: 50%; background: #1d4ed8; color: #fff; font-size: 16px; font-weight: 700; align-items: center; justify-content: center; }
.imp-step > .imp-step-n { background: #64748b; }
.imp-step-t { font-size: 18px; font-weight: 700; }
.imp-step-c { font-size: 15px; color: #475569; }
.imp-progress-sm { margin: 4px 0 6px; }
.imp-progress-sm li { flex: 0 1 auto; display: flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #f1f4f8; color: #475569; font-size: 15px; }
.imp-progress-sm li.on { background: #1d4ed8; color: #fff; font-weight: 700; }
.imp-progress-sm .imp-step-n { width: 22px; height: 22px; font-size: 13px; grid-row: auto; background: #fff; color: #1e3a8a; }
.imp-progress-sm .imp-step-t { font-size: 15px; font-weight: inherit; }
.imp-start { border: 2px solid #1d4ed8; }
.imp-plan { margin: 6px 0 10px 18px; }
.imp-plan li { margin: 4px 0; overflow-wrap: anywhere; }
.imp-details { margin-top: 18px; }
.imp-details > summary { font-size: 18px; font-weight: 600; cursor: pointer; padding: 10px 0; color: #1e3a8a; }
.imp-details > summary:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 2px; }
.imp-approvals-link { margin: 4px 0 10px; font-weight: 600; }
.imp-ask fieldset { border: 0; padding: 0; margin: 0 0 8px; }
.imp-qcols { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.imp-qcols label { font-size: 17px; }
.imp-qcols .form-select { max-width: 420px; font-size: 17px; margin-top: 4px; }
.imp-continue { margin-top: 16px; }
.imp-auto { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.imp-inline { padding: 0; font-size: 17px; vertical-align: baseline; }

@media (max-width: 820px) {
  .imp-table thead { display: none; }
  .imp-table tr { display: block; border-top: 1px solid #dfe3ea; padding: 8px 0; }
  .imp-table td { display: block; border: 0; padding: 3px 0; }
  .imp-page .cm-lbl { display: inline; color: #5b6475; font-weight: 600; }
  .imp-tab { min-width: 0; flex: 1 1 100%; }
  .imp-newform { grid-template-columns: 1fr; }
  .imp-sheetonly dl { grid-template-columns: 1fr; }
}

/* 2026-10-30 (Leon): the plain match screen — one line, two small cards (spreadsheet left, ClientPulse right), one question. */
.imp-found { font-size: 20px; margin: 0 0 12px; }
.imp-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 720px; margin-bottom: 16px; }
.imp-mini-card { border: 2px solid #e6c27a; background: #fffdf8; border-radius: 12px; padding: 10px 14px; display: grid; gap: 2px; font-size: 18px; min-width: 0; overflow-wrap: anywhere; }
.imp-mini-card.cp { border-color: #15803d; background: #fff; }
.imp-mini-tag { font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #6b4a07; }
.imp-mini-card.cp .imp-mini-tag { color: #14532d; }
.imp-diff-lead { font-size: 18px; margin: 0 0 10px; }
.imp-same { border: 0; padding: 0; margin: 18px 0 4px; }
.imp-same .imp-radio { font-size: 18px; }
.imp-same .imp-radio input { width: 22px; height: 22px; margin-top: 2px; }
.imp-other legend { float: none; margin: 0; }
.imp-locked { font-size: 16px; margin-top: 10px; }
.imp-more, .imp-admin { margin-top: 18px; border-top: 1px solid #dfe3ea; padding-top: 10px; }
.imp-more summary, .imp-admin summary { cursor: pointer; font-size: 16px; color: #1d4ed8; min-height: 24px; }
.imp-more[open] > *:not(summary), .imp-admin[open] > *:not(summary) { margin-top: 10px; }
.imp-admin ul { padding-left: 1.2em; display: grid; gap: 6px; }
@media (max-width: 520px) { .imp-mini { grid-template-columns: 1fr; } }

/* 2026-10-31: earlier review shown beside an import item (history only). */
.imp-evidence summary { font-weight: 600; cursor: pointer; }
.imp-ev-n { font-weight: 400; color: #475569; }
.imp-h3 { font-size: 1rem; font-weight: 600; margin: 14px 0 6px; }
.imp-ev-list { list-style: none; padding: 0; margin: 0; }
.imp-ev-item { border-top: 1px solid #e2e8f0; padding: 10px 0; }
.imp-ev-title { margin: 0 0 2px; }
.imp-ev-status { display: inline-block; font-size: 0.9375rem; padding: 1px 8px; border-radius: 10px; background: #f1f5f9; color: #334155; }
.imp-ev-status.open { background: #fef3c7; color: #78350f; }
.imp-ev-answers { margin: 4px 0; padding-left: 20px; }
.imp-ev-change { margin: 4px 0; color: #1e3a8a; }
.imp-ev-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.imp-ev-table th, .imp-ev-table td { text-align: left; padding: 4px 8px; border-bottom: 1px solid #e2e8f0; vertical-align: top; }
.imp-earlier, .imp-covered { margin-top: 8px; }
@media (max-width: 640px) {
    .imp-ev-table thead { display: none; }
    .imp-ev-table tr { display: block; padding: 6px 0; border-bottom: 1px solid #e2e8f0; }
    .imp-ev-table td { display: inline; border: 0; padding: 0; }
    .imp-ev-table td:not(:last-child)::after { content: " · "; color: #475569; }
}
/* 2026-10-31 (Leon): the review opened from the sign-in window — a slim bar with progress and a large X back to work. */
.imp-flow { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #eef4ff; border: 1px solid #c9d2e3; border-radius: 12px; padding: 6px 6px 6px 16px; margin: 0 0 12px; }
.imp-flow-t { font-size: 17px; font-weight: 600; color: #1e3a8a; overflow-wrap: anywhere; }
.imp-flow-x { background: #fff; border: 2px solid #94a3b8; border-radius: 10px; font-size: 30px; line-height: 1; color: #1f2937; cursor: pointer; min-width: 48px; min-height: 48px; flex: none; }
.imp-flow-x:hover { border-color: #1d4ed8; color: #1d4ed8; }
.imp-flow-x:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 2px; }
.imp-review-done { max-width: 640px; }

/* 2026-10-31 (Leon): no exact match — spreadsheet card left, ClientPulse matches / the new card right. */
.imp-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; margin: 8px 0 12px; }
.imp-pcard { border: 2px solid #c3c9d4; border-radius: 12px; padding: 10px 14px 14px; background: #fff; min-width: 0; }
.imp-pcard-src { border-color: #e6c27a; background: #fffdf8; }
.imp-pcard-new, .imp-pcard-pick { border-color: #15803d; }
.imp-pcard-h { font-size: 20px; margin: 4px 0 8px; overflow-wrap: anywhere; }
.imp-pick-legend { font-size: 17px; font-weight: 600; margin: 6px 0 8px; float: none; }
.imp-sheetvals { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 0; font-size: 17px; }
.imp-sheetvals dt { font-weight: 600; color: #3d4555; }
.imp-sheetvals dd { margin: 0; overflow-wrap: anywhere; }
.imp-pcard .imp-newform { grid-template-columns: 1fr; gap: 2px; }
.imp-adddetails { margin-top: 10px; }
.imp-adddetails > summary { font-size: 17px; font-weight: 600; color: #1d4ed8; cursor: pointer; min-height: 24px; }
@media (max-width: 820px) { .imp-pair { grid-template-columns: 1fr; } }
/* 2026-11-01: companies ClientPulse already has on the project (existing information, not questions). */
.imp-existing { border-left: 4px solid #15803d; }
.imp-existing ul { margin: 6px 0 0 18px; }
.imp-already { color: #166534; font-weight: 600; }
