/* sources.css — the Sources tab on a search's page (static/js/pages/sources.js). Every rule sits
   under html.ui-new; the shapes are the portal's own (.stepper, .card, .row-card, .process-steps,
   .badge, .chip, .callout), this file only lays them out. */
html.ui-new .src-wrap { max-width: 1180px; margin: 0 auto; padding: var(--space-4, 16px) 0 var(--space-8, 48px); }
html.ui-new .src-stepper { margin: 0 0 var(--space-5, 24px); }
html.ui-new .src-stepnote { margin: calc(-1 * var(--space-4, 16px)) 0 var(--space-5, 24px); font-size: 12px; }
html.ui-new .src-card { padding: 18px 20px; margin-bottom: var(--space-4, 16px); }
html.ui-new .src-head { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
html.ui-new .src-head h3 { margin: 0 0 2px; font-size: var(--text-md, 16px); }
html.ui-new .src-ht { flex: 1; min-width: 220px; }
html.ui-new .src-seg { margin-left: auto; }
html.ui-new .src-sum { margin: 0 0 6px; }
html.ui-new .src-line { margin: 0 0 6px; font-size: var(--text-sm, 14px); }
html.ui-new .src-errline { color: var(--danger, #b42318); }
html.ui-new .src-also { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 12px; }
html.ui-new .src-also-l { font-size: var(--text-sm, 14px); color: var(--ink-600, #555); margin-right: 2px; }
html.ui-new .src-chip { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
html.ui-new .src-chip input { margin: 0; }
html.ui-new .src-list { margin: 8px 0 12px; }
html.ui-new .src-row { display: flex; align-items: flex-start; gap: 12px; }
html.ui-new .src-row:hover { transform: none; }
html.ui-new .src-out { opacity: .55; }
html.ui-new .src-tick { padding-top: 2px; }
html.ui-new .src-main { flex: 1; min-width: 0; }
html.ui-new .src-why { font-size: var(--text-sm, 14px); color: var(--ink-700, #333); margin-top: 6px; }
html.ui-new .src-reasons { font-size: var(--text-xs, 12px); color: var(--energy-yellow-800, #7a5a00); margin-top: 4px; }
html.ui-new .src-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
html.ui-new .src-done, html.ui-new .src-err { margin-bottom: 12px; }
html.ui-new .src-card .process-steps li { justify-content: space-between; }
@media (max-width: 640px) {
  html.ui-new .src-seg { margin-left: 0; }
  html.ui-new .src-row { flex-wrap: wrap; }
}
html.ui-new .src-names { color: var(--ink-600, #555); margin-top: 4px; }
html.ui-new .src-btns { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
/* Step 1's filters and "Sharpen from this search's saves" (the Find people rethink, 2026-10-27). */
html.ui-new .src-filters { margin: 6px 0 12px; }
html.ui-new .src-fline, html.ui-new .src-sharp { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0; }
html.ui-new .src-fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px 14px; margin: 8px 0; }
html.ui-new .src-fgrid label { display: flex; flex-direction: column; gap: 4px; font-size: var(--text-sm, 14px); color: var(--ink-600, #555); }
html.ui-new .src-fgrid input, html.ui-new .src-fgrid select { font: inherit; padding: 6px 8px; border: 1px solid var(--line-300, #ddd); border-radius: 8px; background: var(--paper-0, transparent); }
/* Search by hand, on the tab (2026-10-27): the words, then the two links and Add person on one line. */
html.ui-new .src-hand { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 10px; margin: 8px 0 4px; }
html.ui-new .src-hand label { display: flex; flex-direction: column; gap: 4px; flex: 1 1 220px; font-size: var(--text-sm, 14px); color: var(--ink-600); }
html.ui-new .src-hand input { font: inherit; padding: 6px 8px; border: 1px solid var(--line-300); border-radius: 8px; background: var(--paper-0); }
html.ui-new .src-seg { flex-wrap: wrap; }
/* Step 2's two lists, each its own part with a quiet heading (2026-10-27). */
html.ui-new .src-part { border-top: 1px solid var(--line-300); padding-top: 12px; margin-top: 12px; }
html.ui-new .src-part:first-of-type { border-top: 0; margin-top: 4px; padding-top: 0; }
html.ui-new .src-part h4 { margin: 0 0 6px; font-size: var(--text-md, 15px); }
html.ui-new .src-outbtn { margin: 4px 0 8px; }
html.ui-new .src-stop { border-left: 4px solid var(--energy-yellow); }
html.ui-new .src-stop .btn { margin-left: 8px; }
html.ui-new .src-tickall { margin-left: var(--space-2, 8px); }

/* The last run's rows while the ranking runs again, and how long the ranking took (2026-10-27) */
html.ui-new .src-stale { margin: 0 0 8px; padding: 6px 10px; border-left: 3px solid var(--energy-yellow, #f2c050); }
html.ui-new .src-took { margin: 0 0 6px; }
