
/* Server-rendered Eagle Eye modules share the React workspace visual system. */
.eagle-legacy-workspace {
  --eagle-blue: #2455d9;
  --eagle-blue-bright: #2878f6;
  --eagle-orange: #ff7a45;
  --eagle-ink: #17223b;
  --eagle-muted: #667085;
  --eagle-line: #e3e9f3;
  --eagle-radius-control: var(--lr-radius-control);
  --eagle-radius-panel: var(--lr-radius-panel);
  min-height: calc(100vh - var(--lr-header-height));
  gap: 16px;
  background: var(--lr-bg);
}

.eagle-legacy-workspace .lead-card {
  border-color: var(--eagle-line);
  border-radius: var(--eagle-radius-panel);
  box-shadow: 0 8px 22px rgba(31, 55, 96, .04);
}

.eagle-legacy-workspace .lead-card-header h1 {
  font-size: 20px;
  line-height: 1.35;
}

.eagle-legacy-workspace .lead-card-header p {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.55;
}

.eagle-legacy-workspace.lead-sources-workspace .lead-profile-hero h1 {
  font-size: 22px;
  line-height: 1.35;
}

.lead-card {
  background: #fff;
  border-radius: var(--lr-radius-panel);
  border: 1px solid rgba(223, 230, 243, .76);
  box-shadow: 0 10px 26px rgba(20, 38, 82, .035);
}

.lead-search-panel {
  min-height: 236px;
  display: grid;
  align-content: center;
  gap: 16px;
  padding: 26px 30px;
}

.lead-panel-copy h1,
.lead-card-header h1,
.lead-profile-hero h1 {
  margin: 0;
  color: var(--lr-heading);
  font-size: 28px;
  line-height: 1.25;
  font-weight: 600;
}

.lead-panel-copy p,
.lead-profile-hero p,
.lead-rule-grid p {
  margin: 8px 0 0;
  color: #58657c;
}

.lead-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  color: var(--lr-blue);
  font-size: 13px;
  font-weight: 400;
}

.lead-search-form {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.lead-search-tabs {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  width: fit-content;
  min-height: 36px;
  padding: 0;
  border-bottom: 1px solid #edf1f7;
  background: transparent;
}

.lead-search-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: auto;
  min-height: 34px;
  border-bottom: 2px solid transparent;
  color: #536078;
  font-weight: 500;
}

.lead-search-tabs a.active {
  color: var(--lr-blue);
  border-bottom-color: var(--lr-blue);
  background: transparent;
  box-shadow: none;
}

.lead-search-field {
  display: grid;
  gap: 8px;
  color: #3f4c63;
  font-weight: 400;
}

.lead-search-field input {
  min-height: 48px;
  border-color: #dce4f3;
  border-radius: 8px;
}

.lead-search-submit {
  min-width: 142px;
  min-height: 48px;
  border-radius: 8px;
  background: var(--lr-blue);
  border-color: var(--lr-blue);
  font-weight: 400;
}

.lead-search-submit.is-loading {
  cursor: wait;
  opacity: .82;
}

.lead-source-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lead-source-strip span,
.lead-source-summary span,
.lead-source-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: #eef3ff;
  color: #2f55ee;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 400;
}

.lead-diagnose-link {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  color: #4c5c75;
  background: #f4f6fb;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 400;
}

.lead-diagnose-link:hover {
  color: var(--lr-blue);
  background: #eef3ff;
}

.lead-job-status,
.lead-error {
  border-radius: 8px;
  padding: 10px 12px;
  background: #f6f8ff;
  color: #44516a;
  font-weight: 400;
}

.lead-error {
  background: #fff2f0;
  color: var(--lr-red);
}

.lead-results-panel,
.lead-profile-panel,
.lead-pool-card,
.lead-page-card,
.lead-rules-card,
.lead-profile-facts,
.lead-profile-hero {
  padding: 24px;
}

.lead-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.lead-card.lr-table-card {
  padding: 0;
  box-shadow: none;
}

.lead-card.lr-table-card > .lead-card-header {
  flex: 0 0 auto;
  min-height: 64px;
  margin: 0;
  padding: 18px 22px;
  border-bottom: 1px solid #edf1f7;
  background: #fff;
}

.lead-card.lr-table-card > .lead-filter-bar {
  flex: 0 0 auto;
  margin: 14px 22px 16px;
}

.lead-card.lr-table-card > .lead-table-wrap,
.lead-card.lr-table-card .lead-table-wrap {
  border-width: 0;
  border-radius: 0;
}

.lead-card.lr-table-card > .lead-evidence-chain-list {
  padding: 18px 22px;
}

.lead-card.lr-table-card > .lead-empty-state {
  min-height: 176px;
  padding: 28px 22px;
}

.lead-card-header h2,
.lead-rule-grid h2 {
  margin: 0;
  color: var(--lr-heading);
  font-size: 18px;
  font-weight: 600;
}

.lead-card-header p {
  margin: 8px 0 0;
  color: #667287;
  line-height: 1.55;
}

.lead-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.lead-stat-card {
  min-height: 128px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
}

.lead-stat-card span {
  display: block;
  color: #667287;
  font-size: 16px;
  font-weight: 400;
}

.lead-stat-card strong {
  display: block;
  margin-top: 8px;
  color: #0f172a;
  font-size: 36px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0;
}

.lead-stat-card em {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border-radius: 999px;
  padding: 0 14px;
  color: #2563eb;
  background: #eff6ff;
  font-style: normal;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

.lead-table-wrap {
  overflow-x: auto;
}

.lead-table {
  margin: 0;
  min-width: 760px;
}

.lead-table th,
.lead-table thead th {
  color: #5a6579;
  font-size: 13px;
  font-weight: 400;
  background: #f7f9fe;
}

.lead-table td {
  color: #273348;
  vertical-align: middle;
}

.lead-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 400;
}

.lead-status-queued {
  color: #725300;
  background: #fff7d6;
}

.lead-status-running {
  color: #2544c7;
  background: #edf2ff;
}

.lead-status-success {
  color: #0f6b47;
  background: #e8f7ef;
}

.lead-status-failed {
  color: var(--lr-red);
  background: #fff0ec;
}

.lead-link {
  color: var(--lr-blue);
  font-weight: 400;
}

.lead-empty-state {
  min-height: 180px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  text-align: center;
  color: #667287;
}

.lead-empty-state.compact {
  min-height: 96px;
}

.lead-empty-state strong {
  color: var(--lr-heading);
  font-size: 18px;
  font-weight: 500;
}

.lead-company-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.lead-company-card {
  min-height: 124px;
  display: grid;
  align-content: center;
  gap: 8px;
  border: 1px solid #e6ecf7;
  border-radius: 8px;
  padding: 16px;
  color: var(--lr-heading);
  background: #fbfcff;
}

.lead-company-card:hover {
  border-color: var(--lr-blue);
  box-shadow: 0 12px 26px rgba(58, 87, 247, .12);
}

.lead-company-card strong {
  font-size: 17px;
  font-weight: 500;
}

.lead-company-card span,
.lead-muted-line,
.lead-company-card em,
.lead-evidence-item em {
  color: #667287;
  font-style: normal;
}

.lead-muted-line {
  display: block;
  margin-top: 4px;
  font-size: 13px;
}

.lead-filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 10px;
  margin-bottom: 16px;
}

.lead-row-actions {
  white-space: nowrap;
}

.lead-row-actions a + a {
  margin-left: 10px;
}

.lead-profile-workspace {
  grid-template-rows: auto auto auto 1fr;
}

.lead-profile-workbench {
  display: block;
}

.lead-profile-grid {
  display: grid;
  grid-template-columns: minmax(620px, 1.45fr) minmax(340px, .9fr);
  gap: 16px;
  align-items: start;
}

.lead-profile-main,
.lead-profile-side {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.lead-profile-module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.lead-profile-banner,
.lead-profile-module,
.lead-profile-suggestions,
.lead-profile-note {
  border: 1px solid rgba(223, 230, 243, .9);
  border-radius: var(--lr-radius-panel);
  background: #fff;
  box-shadow: 0 10px 26px rgba(20, 38, 82, .035);
}

.lead-profile-banner {
  min-height: 148px;
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 22px;
  background: linear-gradient(135deg, #ffffff, #eef5ff);
  border-color: #d6e5ff;
}

.lead-profile-banner-head,
.lead-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lead-profile-banner h1 {
  margin: 0;
  color: var(--lr-heading);
  font-size: 25px;
  line-height: 1.25;
  font-weight: 600;
}

.lead-profile-banner p {
  max-width: 840px;
  margin: 0;
  color: #627089;
  line-height: 1.55;
}

.lead-profile-module,
.lead-profile-suggestions,
.lead-profile-note {
  padding: 18px;
}

.lead-profile-module h2,
.lead-profile-suggestions h2,
.lead-section-title h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--lr-heading);
  font-size: 17px;
  font-weight: 600;
}

.lead-section-title h2 {
  margin: 0;
}

.lead-profile-module h2 span {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  color: #2f55ee;
  background: #edf4ff;
  font-size: 13px;
  font-weight: 500;
}

.lead-profile-kv {
  display: grid;
  gap: 0;
  margin: 0;
}

.lead-profile-kv div {
  display: grid;
  grid-template-columns: 122px minmax(0, 1fr);
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px dashed #e5eaf4;
}

.lead-profile-kv div:last-child {
  border-bottom: 0;
}

.lead-profile-kv dt {
  color: #718098;
  font-weight: 500;
}

.lead-profile-kv dd {
  margin: 0;
  color: #26344c;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.lead-profile-kv.compact div {
  grid-template-columns: 96px minmax(0, 1fr);
}

.lead-profile-divider {
  height: 1px;
  background: #e7edf8;
}

.lead-profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.lead-tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.lead-tag.dark {
  color: #fff;
  background: #111827;
}

.lead-tag.blue {
  color: #1d4ed8;
  background: #eff6ff;
}

.lead-tag.green {
  color: #15803d;
  background: #ecfdf3;
}

.lead-tag.amber {
  color: #b45309;
  background: #fffbeb;
}

.lead-tag.purple {
  color: #6d28d9;
  background: #f5f3ff;
}

.lead-tag.gray {
  color: #475467;
  background: #f2f4f7;
}

.lead-profile-note {
  display: grid;
  gap: 4px;
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #475467;
}

.lead-profile-note strong {
  color: var(--lr-heading);
  font-size: 15px;
}

.lead-score-list,
.lead-source-confidence {
  display: grid;
  gap: 16px;
}

.lead-score-list div,
.lead-source-confidence div {
  display: grid;
  gap: 8px;
}

.lead-score-list div {
  grid-template-columns: 1fr auto;
}

.lead-score-list b,
.lead-source-confidence b {
  height: 9px;
  grid-column: 1 / -1;
  display: block;
  overflow: hidden;
  border-radius: 999px;
  background: #f2f4f7;
}

.lead-score-list i,
.lead-source-confidence i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #60a5fa, #2563eb);
}

.lead-score-list i.green,
.lead-source-confidence i.green {
  background: linear-gradient(90deg, #34d399, #16a34a);
}

.lead-score-list i.amber,
.lead-source-confidence i.amber {
  background: linear-gradient(90deg, #fbbf24, #d97706);
}

.lead-score-list span {
  color: #667287;
}

.lead-score-list em {
  color: #667287;
  font-style: normal;
}

.lead-source-confidence div {
  border: 1px solid #e7edf8;
  border-radius: 14px;
  padding: 12px;
  background: #fff;
  grid-template-columns: 1fr auto;
}

.lead-source-confidence strong {
  color: var(--lr-heading);
  font-size: 15px;
}

.lead-profile-timeline {
  display: grid;
  gap: 10px;
}

.lead-profile-timeline div {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
}

.lead-profile-timeline span {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #3730a3;
  background: #e0e7ff;
  font-size: 12px;
  font-weight: 600;
}

.lead-profile-timeline p {
  display: grid;
  gap: 4px;
  margin: 0;
  border: 1px solid #e7edf8;
  border-radius: 14px;
  padding: 10px 12px;
  background: #fff;
}

.lead-profile-timeline strong {
  color: var(--lr-heading);
  font-size: 14px;
}

.lead-profile-timeline em {
  color: #667287;
  font-style: normal;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.lead-profile-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.lead-profile-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.lead-fact-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.lead-fact-grid div {
  min-height: 78px;
  display: grid;
  align-content: center;
  gap: 6px;
  border-radius: 8px;
  background: #f7f9fe;
  padding: 12px;
}

.lead-fact-grid span {
  color: #718098;
  font-size: 13px;
}

.lead-fact-grid strong {
  color: var(--lr-heading);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.lead-source-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lead-source-summary span {
  gap: 8px;
}

.lead-source-summary b {
  font-weight: 500;
}

.lead-field-table {
  min-width: 980px;
}

.lead-field-table th,
.lead-field-table td {
  padding: 20px 22px;
  font-size: 15px;
  line-height: 1.55;
}

.lead-field-table thead th {
  background: #f8fafc;
  color: #667287;
  font-size: 15px;
  font-weight: 500;
}

.lead-field-table tbody tr + tr td {
  border-top: 1px solid #e5eaf4;
}

.lead-rule-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 999px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.1;
  white-space: nowrap;
}

.lead-rule-pill.blue {
  color: #1d4ed8;
  background: #eff6ff;
}

.lead-rule-pill.green {
  color: #15803d;
  background: #ecfdf3;
}

.lead-rule-pill.amber {
  color: #b45309;
  background: #fffbeb;
}

.lead-rule-pill.purple {
  color: #6d28d9;
  background: #f5f3ff;
}

.lead-rule-pill.red {
  color: #be123c;
  background: #fff1f2;
}

.lead-profile-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin: 0;
}

.lead-profile-detail-grid div {
  min-height: 72px;
  display: grid;
  align-content: start;
  gap: 6px;
  border: 1px solid #e7edf8;
  border-radius: 8px;
  background: #fbfcff;
  padding: 12px;
}

.lead-profile-detail-grid dt {
  color: #718098;
  font-size: 13px;
  font-weight: 400;
}

.lead-profile-detail-grid dd {
  margin: 0;
  color: var(--lr-heading);
  font-size: 15px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.lead-profile-prototype {
  --lead-prototype-bg: #f5f7fb;
  --lead-prototype-panel: #ffffff;
  --lead-prototype-panel-soft: #f8fafc;
  --lead-prototype-text: #111827;
  --lead-prototype-muted: #6b7280;
  --lead-prototype-line: #e5e7eb;
  --lead-prototype-primary: #2563eb;
  --lead-prototype-primary-soft: #eff6ff;
  --lead-prototype-success: #16a34a;
  --lead-prototype-success-soft: #ecfdf5;
  --lead-prototype-warning: #d97706;
  --lead-prototype-warning-soft: #fffbeb;
  --lead-prototype-purple: #7c3aed;
  --lead-prototype-purple-soft: #f5f3ff;
  --lead-prototype-radius-control: var(--lr-radius-control);
  --lead-prototype-radius-panel: var(--lr-radius-panel);
  --lead-prototype-shadow: 0 10px 28px rgba(15, 23, 42, .06);
  min-height: calc(100vh - 72px);
  background: transparent;
  color: var(--lead-prototype-text);
}

.lead-prototype-link-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--lead-prototype-radius-control);
  padding: 0 16px;
  border: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  background: var(--lead-prototype-primary);
  color: #fff;
  width: 100%;
  margin-top: 10px;
}

.lead-prototype-layout {
  width: min(100%, 1500px);
  margin: 0 auto;
  padding: 0 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(320px, 1fr);
  gap: 16px;
}

.lead-prototype-main {
  min-width: 0;
}

.lead-prototype-side {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lead-prototype-panel {
  border: 1px solid var(--lead-prototype-line);
  border-radius: var(--lead-prototype-radius-panel);
  background: var(--lead-prototype-panel);
  box-shadow: var(--lead-prototype-shadow);
}

.lead-prototype-pad {
  padding: 22px;
}

.lead-prototype-hero {
  overflow: hidden;
  padding: 26px;
  background:
    radial-gradient(circle at 12% 8%, rgba(37, 99, 235, .12), transparent 28%),
    radial-gradient(circle at 95% 14%, rgba(124, 58, 237, .12), transparent 30%),
    #fff;
}

.lead-prototype-hero-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.lead-prototype-company-title {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.lead-prototype-company-title h2 {
  margin: 0;
  color: var(--lead-prototype-text);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
}

.lead-prototype-subline {
  margin: 8px 0 0;
  color: var(--lead-prototype-muted);
  font-size: 14px;
}

.lead-prototype-badge-row {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.lead-prototype-badge {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.lead-prototype-badge.success {
  color: #15803d;
  background: var(--lead-prototype-success-soft);
  border-color: #bbf7d0;
}

.lead-prototype-badge.primary {
  color: #1d4ed8;
  background: var(--lead-prototype-primary-soft);
  border-color: #bfdbfe;
}

.lead-prototype-badge.warning {
  color: #b45309;
  background: var(--lead-prototype-warning-soft);
  border-color: #fde68a;
}

.lead-prototype-badge.purple {
  color: #6d28d9;
  background: var(--lead-prototype-purple-soft);
  border-color: #ddd6fe;
}

.lead-prototype-score-card {
  min-width: 172px;
  border-radius: var(--lead-prototype-radius-panel);
  background: #0f172a;
  color: #fff;
  padding: 18px;
  text-align: center;
  box-shadow: 0 18px 32px rgba(15, 23, 42, .22);
}

.lead-prototype-score-label {
  margin-bottom: 6px;
  color: #cbd5e1;
  font-size: 12px;
}

.lead-prototype-score {
  font-size: 44px;
  line-height: 1;
  font-weight: 600;
}

.lead-prototype-score-desc {
  margin-top: 8px;
  color: #e2e8f0;
  font-size: 13px;
}

.lead-prototype-metric-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.lead-prototype-metric {
  min-width: 0;
  border: 1px solid var(--lead-prototype-line);
  border-radius: var(--lead-prototype-radius-panel);
  background: rgba(248, 250, 252, .88);
  padding: 14px;
}

.lead-prototype-num {
  margin-bottom: 4px;
  color: var(--lead-prototype-text);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.lead-prototype-txt {
  color: var(--lead-prototype-muted);
  font-size: 12px;
}

.lead-prototype-section-title {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lead-prototype-section-title h3 {
  margin: 0;
  color: var(--lead-prototype-text);
  font-size: 17px;
  font-weight: 600;
}

.lead-prototype-section-title span {
  color: var(--lead-prototype-muted);
  font-size: 12px;
}

.lead-prototype-two-col {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 18px;
}

.lead-prototype-ai-box {
  border: 1px solid #dbeafe;
  border-radius: var(--lead-prototype-radius-panel);
  background: linear-gradient(135deg, #eff6ff, #f5f3ff);
  padding: 20px;
}

.lead-prototype-ai-summary {
  margin: 0 0 16px;
  color: var(--lead-prototype-text);
  font-size: 15px;
}

.lead-prototype-suggestion-list {
  margin: 14px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.lead-prototype-suggestion {
  border: 1px solid rgba(191, 219, 254, .8);
  border-radius: var(--lead-prototype-radius-panel);
  background: rgba(255, 255, 255, .7);
  padding: 12px;
  color: var(--lead-prototype-text);
  font-size: 13px;
}

.lead-prototype-suggestion strong,
.lead-prototype-script-box strong {
  font-weight: 600;
}

.lead-prototype-script-box {
  margin-top: 14px;
  border: 1px solid #dbeafe;
  border-radius: var(--lead-prototype-radius-panel);
  background: #fff;
  padding: 14px;
}

.lead-prototype-script-box p {
  margin: 0;
  color: var(--lead-prototype-text);
  font-size: 14px;
}

.lead-prototype-action-box {
  display: grid;
  gap: 12px;
}

.lead-prototype-action-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--lead-prototype-line);
  border-radius: var(--lead-prototype-radius-panel);
  background: #fff;
  padding: 14px;
}

.lead-prototype-step {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--lead-prototype-primary-soft);
  color: var(--lead-prototype-primary);
  font-size: 12px;
  font-weight: 600;
}

.lead-prototype-action-item strong {
  display: block;
  margin-bottom: 3px;
  color: var(--lead-prototype-text);
  font-size: 14px;
  font-weight: 600;
}

.lead-prototype-action-item p {
  margin: 0;
  color: var(--lead-prototype-muted);
  font-size: 13px;
}

.lead-prototype-card-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.lead-prototype-info-card {
  border: 1px solid var(--lead-prototype-line);
  border-radius: var(--lead-prototype-radius-panel);
  background: var(--lead-prototype-panel);
  padding: 18px;
}

.lead-prototype-info-card h4 {
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--lead-prototype-text);
  font-size: 15px;
  font-weight: 600;
}

.lead-prototype-mini-tag {
  border-radius: 999px;
  background: #f3f4f6;
  padding: 4px 8px;
  color: var(--lead-prototype-muted);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.lead-prototype-field-list {
  display: grid;
  gap: 10px;
}

.lead-prototype-field {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 10px;
  color: var(--lead-prototype-text);
  font-size: 13px;
}

.lead-prototype-k {
  color: var(--lead-prototype-muted);
}

.lead-prototype-v {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.lead-prototype-business-scope {
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  max-height: calc(1.5em * 2);
  line-height: 1.5;
}

.lead-prototype-source {
  display: inline-flex;
  margin-left: 4px;
  border-radius: var(--lead-prototype-radius-control);
  background: #eef2ff;
  padding: 2px 6px;
  color: #4338ca;
  font-size: 11px;
  font-weight: 600;
}

.lead-prototype-tabs-panel {
  margin-top: 18px;
  overflow: hidden;
}

.lead-prototype-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  border-bottom: 1px solid var(--lead-prototype-line);
  background: #fff;
  padding: 14px 14px 0;
}

.lead-prototype-tab-btn {
  border: 0;
  border-radius: var(--lead-prototype-radius-control) var(--lead-prototype-radius-control) 0 0;
  background: transparent;
  padding: 12px 14px;
  color: var(--lead-prototype-muted);
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
}

.lead-prototype-tab-btn.active {
  background: var(--lead-prototype-primary-soft);
  color: var(--lead-prototype-primary);
}

.lead-prototype-tab-content {
  display: none;
  background: #fff;
  padding: 20px;
}

.lead-prototype-tab-content.active {
  display: block;
}

.lead-prototype-evidence-note {
  margin: 0 0 14px;
  color: var(--lead-prototype-muted);
  font-size: 13px;
}

.lead-prototype-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--lead-prototype-line);
  border-radius: var(--lead-prototype-radius-panel);
}

.lead-prototype-table {
  width: 100%;
  min-width: 760px;
  margin: 0;
  border-collapse: collapse;
  color: var(--lead-prototype-text);
  font-size: 13px;
}

.lead-prototype-table th,
.lead-prototype-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--lead-prototype-line);
  text-align: left;
  vertical-align: top;
}

.lead-prototype-table th {
  background: #f8fafc;
  color: #374151;
  font-size: 12px;
  font-weight: 600;
}

.lead-prototype-table tr:last-child td {
  border-bottom: 0;
}

.lead-prototype-raw-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.lead-prototype-raw-card {
  border: 1px solid var(--lead-prototype-line);
  border-radius: var(--lead-prototype-radius-panel);
  background: #f8fafc;
  padding: 14px;
}

.lead-prototype-raw-card h4 {
  margin: 0 0 10px;
  color: var(--lead-prototype-text);
  font-size: 14px;
  font-weight: 600;
}

.lead-prototype-raw-card pre {
  max-height: 320px;
  margin: 0;
  overflow: auto;
  color: #334155;
  font-family: var(--lr-font-family);
  font-size: 12px;
  white-space: pre-wrap;
  word-break: break-word;
}

.lead-prototype-footer-note {
  margin-top: 18px;
  color: var(--lead-prototype-muted);
  font-size: 12px;
  text-align: center;
}

.lead-prototype-progress-list,
.lead-prototype-rank-list,
.lead-prototype-todo-list,
.lead-prototype-source-confidence {
  display: grid;
  gap: 13px;
}

.lead-prototype-progress-row {
  display: grid;
  gap: 6px;
}

.lead-prototype-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--lead-prototype-text);
  font-size: 13px;
}

.lead-prototype-progress-head strong {
  font-weight: 600;
}

.lead-prototype-bar,
.lead-prototype-source-confidence b {
  height: 9px;
  display: block;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}

/* Person lookup is isolated from public-company search because it handles internal sensitive data. */
.lead-person-workspace {
  width: 100%;
  min-height: calc(100vh - var(--lr-header-height));
  padding: 16px 16px 48px;
  color: #17223b;
  background: #ebf0fa;
}

.lead-person-search-hero,
.lead-person-profile-hero,
.lead-person-results-panel,
.lead-person-cases-panel,
.lead-person-info-card {
  border: 1px solid #e3e9f3;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(37, 61, 104, .06);
}

.lead-person-search-hero {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(520px, 1.28fr);
  align-items: center;
  gap: 40px;
  padding: 32px 36px;
  background: linear-gradient(135deg, #eff6ff, #f5f3ff);
}

.lead-person-eyebrow {
  display: block;
  margin-bottom: 6px;
  color: #3157ff;
  font-size: 13px;
  font-weight: 600;
}

.lead-person-search-hero h1,
.lead-person-profile-title h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.3;
  font-weight: 600;
}

.lead-person-search-hero p,
.lead-person-profile-title p,
.lead-person-info-card p {
  margin: 8px 0 0;
  color: #667085;
  line-height: 1.7;
}

.lead-person-search-form {
  display: grid;
  gap: 8px;
}

.lead-person-search-form label {
  color: #344054;
  font-size: 13px;
  font-weight: 600;
}

.lead-person-search-form > div {
  height: 52px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 10px;
}

.lead-person-search-form input {
  min-width: 0;
  border: 1px solid #cfd9ea;
  border-radius: 8px;
  padding: 0 16px;
  background: #fff;
  color: #17223b;
  font-size: 15px;
  outline: none;
}

.lead-person-search-form input:focus {
  border-color: #3157ff;
  box-shadow: 0 0 0 3px rgba(49, 87, 255, .12);
}

.lead-person-search-form .btn {
  border-radius: 8px;
}

.lead-person-search-form small,
.lead-person-section-head span,
.lead-person-result-main small,
.lead-person-result-stats small,
.lead-person-card-note {
  color: #98a2b3;
  font-size: 12px;
}

.lead-person-alert {
  margin-top: 14px;
  border: 1px solid #fecdca;
  border-radius: 8px;
  padding: 12px 16px;
  background: #fef3f2;
  color: #b42318;
}

.lead-person-results-panel,
.lead-person-cases-panel {
  margin-top: 16px;
  padding: 22px 24px;
}

.lead-person-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.lead-person-section-head > div {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.lead-person-section-head h2,
.lead-person-info-card h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.lead-person-scope-badge,
.lead-person-source-tags span {
  border-radius: 999px;
  padding: 5px 10px;
  background: #edf3ff;
  color: #3157ff !important;
  font-size: 12px;
}

.lead-person-result-list {
  display: grid;
  gap: 12px;
}

.lead-person-result-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 132px 92px;
  align-items: center;
  gap: 16px;
  border: 1px solid #e3e9f3;
  border-radius: 8px;
  padding: 16px 18px;
  background: #fff;
  color: #17223b;
  text-decoration: none;
}

.lead-person-result-card:hover {
  border-color: #a9c0ff;
  box-shadow: 0 8px 22px rgba(49, 87, 255, .08);
}

.lead-person-avatar {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #3157ff;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
}

.lead-person-avatar.large {
  width: 70px;
  height: 70px;
  font-size: 25px;
}

.lead-person-result-main {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.lead-person-result-main strong {
  font-size: 16px;
  font-weight: 600;
}

.lead-person-mask-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lead-person-mask-row b {
  border-radius: 5px;
  padding: 3px 8px;
  background: #f2f4f7;
  color: #475467;
  font-size: 12px;
  font-weight: 500;
}

.lead-person-result-stats {
  display: grid;
  gap: 2px;
  text-align: right;
}

.lead-person-result-stats b {
  color: #3157ff;
  font-size: 22px;
}

.lead-person-open {
  border-radius: 8px;
  padding: 9px 12px;
  background: #3157ff;
  color: #fff;
  text-align: center;
  font-size: 13px;
}

.lead-person-boundary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.lead-person-boundary-grid > div {
  display: grid;
  gap: 6px;
  border: 1px solid #e3e9f3;
  border-radius: 8px;
  padding: 18px;
  background: #f8faff;
}

.lead-person-boundary-grid span {
  color: #667085;
  font-size: 13px;
  line-height: 1.6;
}

.lead-person-back {
  display: inline-block;
  margin-bottom: 10px;
  color: #3157ff;
  font-size: 13px;
  text-decoration: none;
}

.lead-person-profile-hero {
  padding: 28px;
}

.lead-person-profile-title {
  display: flex;
  align-items: center;
  gap: 18px;
}

.lead-person-profile-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.lead-person-profile-summary > div {
  display: grid;
  gap: 4px;
  border: 1px solid #e3e9f3;
  border-radius: 8px;
  padding: 15px 16px;
  background: #f8faff;
}

.lead-person-profile-summary strong {
  font-size: 22px;
}

.lead-person-profile-summary span {
  color: #667085;
  font-size: 12px;
}

.lead-person-compliance-note {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  border-left: 4px solid #3157ff;
  padding: 12px 14px;
  background: #edf3ff;
  color: #475467;
  font-size: 13px;
  line-height: 1.6;
}

.lead-person-compliance-note strong {
  flex: 0 0 auto;
  color: #17223b;
}

.lead-person-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.lead-person-info-card {
  min-width: 0;
  min-height: 210px;
  padding: 20px;
}

.lead-person-detail-list {
  display: grid;
  gap: 0;
  margin-top: 12px;
}

.lead-person-detail-list > a,
.lead-person-detail-list > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #edf1f6;
  padding: 10px 0;
  color: #475467;
  text-decoration: none;
}

.lead-person-detail-list > a:last-child,
.lead-person-detail-list > div:last-child {
  border-bottom: 0;
}

.lead-person-detail-list b {
  color: #17223b;
  font-size: 13px;
  font-weight: 500;
  text-align: right;
}

.lead-person-detail-list.compact span {
  color: #667085;
  font-size: 13px;
}

.lead-person-metric-value {
  margin-top: 26px;
  color: #3157ff;
  font-size: 34px;
  font-weight: 600;
}

.lead-person-metric-value.small {
  font-size: 24px;
}

.lead-person-source-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.lead-person-empty-inline {
  margin-top: 18px;
  border-radius: 8px;
  padding: 16px;
  background: #f8faff;
  color: #98a2b3;
  font-size: 13px;
}

.lead-person-case-table-wrap {
  overflow-x: auto;
}

.lead-person-case-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.lead-person-case-table th,
.lead-person-case-table td {
  border-bottom: 1px solid #edf1f6;
  padding: 12px 10px;
  color: #475467;
  text-align: left;
  white-space: nowrap;
}

.lead-person-case-table th {
  background: #f8faff;
  color: #667085;
  font-weight: 500;
}

@media (max-width: 1100px) {
  .lead-person-search-hero {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .lead-person-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .lead-person-workspace {
    padding: 12px 12px 36px;
  }

  .lead-person-search-hero,
  .lead-person-profile-hero,
  .lead-person-results-panel,
  .lead-person-cases-panel {
    padding: 18px;
  }

  .lead-person-search-form > div,
  .lead-person-result-card,
  .lead-person-boundary-grid,
  .lead-person-profile-summary,
  .lead-person-card-grid {
    grid-template-columns: 1fr;
  }

  .lead-person-search-form > div {
    height: auto;
  }

  .lead-person-search-form input,
  .lead-person-search-form .btn {
    height: 48px;
  }

  .lead-person-result-card {
    justify-items: start;
  }

  .lead-person-result-stats {
    text-align: left;
  }

  .lead-person-open {
    width: 100%;
  }

  .lead-person-profile-title,
  .lead-person-compliance-note {
    align-items: flex-start;
    flex-direction: column;
  }
}

.lead-prototype-bar span,
.lead-prototype-source-confidence i {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
}

.lead-prototype-source-confidence i.lead-prototype-bar-warning {
  background: linear-gradient(90deg, #fbbf24, #d97706);
}

.lead-prototype-rank-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--lead-prototype-line);
  border-radius: var(--lead-prototype-radius-panel);
  background: var(--lead-prototype-panel-soft);
  padding: 12px;
}

.lead-prototype-rank-item div:first-child {
  min-width: 0;
}

.lead-prototype-rank-item strong {
  display: block;
  color: var(--lead-prototype-text);
  font-size: 13px;
  font-weight: 600;
}

.lead-prototype-rank-item span:not(.lead-prototype-badge) {
  color: var(--lead-prototype-muted);
  font-size: 12px;
}

.lead-prototype-source-confidence > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  border: 1px solid var(--lead-prototype-line);
  border-radius: var(--lead-prototype-radius-panel);
  background: #fff;
  padding: 12px;
}

.lead-prototype-source-confidence strong {
  color: var(--lead-prototype-text);
  font-size: 14px;
  font-weight: 600;
}

.lead-prototype-source-confidence b {
  grid-column: 1 / -1;
}

.lead-prototype-todo {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--lead-prototype-line);
  border-radius: var(--lead-prototype-radius-panel);
  background: #fff;
  padding: 12px;
}

.lead-prototype-todo input {
  margin-top: 4px;
  accent-color: var(--lead-prototype-primary);
}

.lead-prototype-todo strong {
  display: block;
  margin-bottom: 2px;
  color: var(--lead-prototype-text);
  font-size: 13px;
  font-weight: 600;
}

.lead-prototype-todo span {
  color: var(--lead-prototype-muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

/* The fixed global sidebar leaves roughly 1,000px for content at 1280px. */
@media (max-width: 1360px) {
  .lead-prototype-layout {
    grid-template-columns: 1fr;
  }

  .lead-prototype-side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .lead-prototype-layout {
    padding: 0 0 24px;
  }

  .lead-prototype-hero-head,
  .lead-prototype-two-col {
    grid-template-columns: 1fr;
    display: grid;
  }

  .lead-prototype-score-card {
    text-align: left;
  }

  .lead-prototype-metric-grid,
  .lead-prototype-card-grid,
  .lead-prototype-suggestion-list,
  .lead-prototype-raw-grid,
  .lead-prototype-side {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .lead-prototype-layout {
    padding: 0 0 20px;
  }

  .lead-prototype-company-title h2 {
    font-size: 22px;
  }

  .lead-prototype-field {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

.lead-evidence-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.lead-evidence-item {
  display: grid;
  gap: 6px;
  border: 1px solid #e7edf8;
  border-radius: var(--lr-radius-panel);
  padding: 14px;
  background: #fbfcff;
}

.lead-evidence-item span {
  color: var(--lr-blue);
  font-size: 13px;
  font-weight: 400;
}

.lead-evidence-item strong {
  color: var(--lr-heading);
  font-weight: 500;
}

.lead-evidence-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(380px, .9fr);
  gap: 16px;
  align-items: stretch;
}

.lead-evidence-chain-list {
  display: grid;
  gap: 14px;
}

.lead-evidence-chain-item {
  display: grid;
  gap: 10px;
  border: 1px solid #e5eaf4;
  border-radius: var(--lr-radius-panel);
  padding: 18px;
  background: #fff;
}

.lead-evidence-chain-title,
.lead-evidence-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lead-evidence-chain-title strong {
  color: #111827;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}

.lead-evidence-chain-item p,
.lead-prototype-note {
  margin: 0;
  color: #667287;
  line-height: 1.6;
}

.lead-evidence-meta span {
  color: #7a869a;
  font-size: 13px;
}

.lead-relation-card {
  display: grid;
  align-content: start;
  gap: 16px;
}

.lead-relation-map {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid #e0e7f3;
  border-radius: var(--lr-radius-panel);
  background:
    radial-gradient(circle at 72% 26%, rgba(34, 197, 94, .09), transparent 34%),
    radial-gradient(circle at 28% 22%, rgba(59, 130, 246, .08), transparent 34%),
    #fff;
}

.lead-relation-center {
  position: absolute;
  left: 50%;
  top: 55%;
  z-index: 2;
  transform: translate(-50%, -50%);
  max-width: 210px;
  min-width: 152px;
  min-height: 80px;
  display: grid;
  place-items: center;
  border-radius: var(--lr-radius-panel);
  padding: 16px 22px;
  color: #fff;
  background: #2554e0;
  box-shadow: 0 18px 34px rgba(37, 84, 224, .24);
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.lead-relation-lines span {
  position: absolute;
  left: 50%;
  top: 55%;
  width: 35%;
  height: 3px;
  border-radius: 999px;
  background: #cdd8ff;
  transform-origin: left center;
}

.lead-relation-lines .line-0 { transform: rotate(-34deg); }
.lead-relation-lines .line-1 { transform: rotate(-164deg); }
.lead-relation-lines .line-2 { transform: rotate(22deg); }
.lead-relation-lines .line-3 { transform: rotate(154deg); }
.lead-relation-lines .line-4 { transform: rotate(74deg); }
.lead-relation-lines .line-5 { transform: rotate(-88deg); }

.lead-relation-node {
  position: absolute;
  z-index: 3;
  min-width: 128px;
  max-width: 180px;
  min-height: 56px;
  display: grid;
  place-items: center;
  gap: 2px;
  border: 1px solid #d7e7ff;
  border-radius: var(--lr-radius-control);
  padding: 10px 16px;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 14px 30px rgba(20, 38, 82, .08);
  text-align: center;
}

.lead-relation-node strong {
  color: #111827;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}

.lead-relation-node span {
  color: #667287;
  font-size: 12px;
  font-weight: 400;
}

.lead-relation-node.pos-0 { top: 46px; right: 90px; }
.lead-relation-node.pos-1 { top: 98px; left: 40px; }
.lead-relation-node.pos-2 { top: 142px; right: 36px; }
.lead-relation-node.pos-3 { bottom: 86px; left: 42px; }
.lead-relation-node.pos-4 { bottom: 88px; right: 42px; }
.lead-relation-node.pos-5 { bottom: 28px; left: 50%; transform: translateX(-50%); }

.lead-prototype-note {
  color: #6b778d;
  font-size: 15px;
}

.lead-source-detail summary {
  color: var(--lr-blue);
  cursor: pointer;
  font-weight: 400;
}

.lead-source-detail dl {
  display: grid;
  grid-template-columns: minmax(100px, .35fr) minmax(160px, 1fr);
  gap: 6px 10px;
  max-width: 520px;
  margin: 10px 0 0;
  padding: 10px;
  border-radius: var(--lr-radius-panel);
  background: #f7f9fe;
}

.lead-source-detail dt {
  color: #5a6579;
  font-weight: 400;
}

.lead-source-detail dd {
  margin: 0;
  color: #26344c;
  overflow-wrap: anywhere;
}

.lead-rule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.lead-rule-grid section {
  min-height: 156px;
  border: 1px solid #e7edf8;
  border-radius: var(--lr-radius-panel);
  background: #fbfcff;
  padding: 18px;
}

.lead-rules-sources {
  margin-top: 18px;
}

.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--lr-bg);
}

.login-panel {
  width: min(440px, calc(100vw - 32px));
  background: #fff;
  border: 1px solid #e3e9f3;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .08);
}

.login-panel .login-brand {
  justify-content: center;
  gap: 14px;
  margin-bottom: 30px;
}

.login-panel .brand-logo {
  width: 48px;
  height: 48px;
}

.login-brand h1 {
  color: var(--lr-heading);
  font-size: 24px;
  line-height: 1.25;
  font-weight: 600;
  margin: 0;
}

.login-brand p {
  color: var(--lr-muted);
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
}

.login-form {
  display: grid;
  gap: 12px;
}

@media (max-width: 576px) {
  .login-body {
    padding: 16px;
  }

  .login-panel {
    width: 100%;
    padding: 28px 24px;
  }

  .login-panel .login-brand {
    margin-bottom: 24px;
  }
}

.assignment-participant-preview {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid #e8edf6;
  border-radius: 6px;
  background: #f8fbff;
  color: #67738a;
  font-size: 13px;
}

.assignment-participant-preview.is-warning {
  border-color: #ffd6c7;
  background: #fff7f3;
  color: #b5532d;
}

.assignment-participant-chips,
.assignment-run-center-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.assignment-participant-chips em,
.assignment-run-center-chips em {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 4px;
  background: #eef3ff;
  color: #2f55ee;
  font-style: normal;
  font-weight: 600;
}

.assignment-run-center-chips em.is-empty {
  background: #fff0ec;
  color: #bf4b31;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: var(--lr-sider-width) minmax(0, 1fr);
  }

  .lead-profile-grid {
    grid-template-columns: 1fr;
  }

  .upload-home-layout {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  }

}

@media (max-width: 980px) {
  .upload-home-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .upload-stage {
    min-height: 620px;
    padding-top: 96px;
  }

  .upload-record-aside {
    min-height: 320px;
  }
}

@media (max-width: 767px) {
  .app-shell,
  .app-shell.sidebar-collapsed,
  html.lerong-sidebar-collapsed .app-shell {
    --lr-header-height: 56px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: var(--lr-header-height) auto;
  }

  .app-topbar {
    grid-column: 1;
  }

  .sidebar-region {
    position: static;
    grid-column: 1;
    grid-row: 2;
    width: 0;
    height: 0;
    border: 0;
    overflow: visible;
  }

  .lr-ant-desktop-sider,
  .shell-sidebar-fallback {
    display: none;
  }

  .content {
    grid-column: 1;
    grid-row: 2;
    min-height: calc(100vh - var(--lr-header-height) - 24px);
    margin: 12px;
  }

  .content:has(.lead-prototype-layout) {
    margin: 12px;
  }

  .lr-ant-mobile-nav-trigger {
    position: relative;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    margin-left: 8px;
    padding: 0;
  }

  .lr-ant-mobile-nav-trigger > span,
  .lr-ant-mobile-nav-trigger::before,
  .lr-ant-mobile-nav-trigger::after {
    width: 18px;
    height: 1.5px;
    border-radius: 999px;
    background: #333;
    content: "";
  }

  .lr-ant-mobile-nav-trigger::before,
  .lr-ant-mobile-nav-trigger::after {
    position: absolute;
    left: 11px;
  }

  .lr-ant-mobile-nav-trigger::before {
    top: 13px;
  }

  .lr-ant-mobile-nav-trigger::after {
    bottom: 13px;
  }

  .lr-ant-topbar-brand,
  .shell-topbar-fallback .shell-brand,
  .app-shell.sidebar-collapsed .lr-ant-topbar-brand,
  .app-shell.sidebar-collapsed .shell-topbar-fallback .shell-brand,
  html.lerong-sidebar-collapsed .lr-ant-topbar-brand,
  html.lerong-sidebar-collapsed .shell-topbar-fallback .shell-brand {
    width: auto;
    flex-basis: auto;
    border-right: 0;
    padding: 0 10px 0 4px;
  }

  .app-shell.sidebar-collapsed .lr-ant-topbar-brand strong,
  .app-shell.sidebar-collapsed .shell-topbar-fallback .shell-brand strong,
  html.lerong-sidebar-collapsed .lr-ant-topbar-brand strong,
  html.lerong-sidebar-collapsed .shell-topbar-fallback .shell-brand strong {
    display: block;
  }

  .lr-ant-topbar-brand img,
  .shell-topbar-fallback .shell-brand img {
    width: 24px;
    height: 34px;
    flex-basis: 24px;
  }

  .lr-ant-topbar-brand strong,
  .shell-topbar-fallback .shell-brand strong {
    font-size: 16px;
  }

  .lr-ant-topbar-menu.ant-menu-horizontal,
  .shell-topbar-fallback .shell-top-links {
    padding: 0;
    overflow: hidden;
  }

  .lr-ant-topbar-menu.ant-menu-horizontal > .ant-menu-item,
  .shell-topbar-fallback .shell-top-links > a {
    min-width: 58px;
    padding-inline: 10px;
    font-size: 14px;
  }

  .topbar-profile-button,
  .shell-profile-fallback-menu {
    margin-right: 10px;
  }

  .topbar-avatar {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px;
    max-width: 34px;
    min-height: 34px;
    max-height: 34px;
  }

  .lr-ant-mobile-nav-drawer .ant-drawer-header {
    min-height: 56px;
    padding: 0 16px;
  }

  .lr-ant-mobile-nav-drawer .ant-drawer-body {
    padding: 10px 12px 16px;
  }
}

@media (max-width: 780px) {
  .ledger-toolbar,
  .ledger-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .assignment-selection-bar,
  .assignment-selection-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .assignment-selection-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .content {
    padding: 16px;
  }

  .upload-stage {
    min-height: auto;
    padding: 48px 16px 32px;
  }

  .upload-copy h2 {
    font-size: 30px;
  }

  .upload-copy span {
    font-size: 16px;
  }

  .import-upload-island {
    margin-top: 28px;
  }

  .lr-ant-import-upload .ant-upload-wrapper .ant-upload-drag,
  .lr-ant-import-upload .ant-upload-drag-container {
    height: 170px;
    min-height: 170px;
  }

  .lr-ant-upload-files {
    gap: 8px 16px;
    padding: 0;
  }

  .lead-search-tabs,
  .lead-search-tabs a {
    width: 100%;
  }

  .metric-grid,
  .layout-grid,
  .lead-stat-grid,
  .lead-evidence-layout,
  .lead-search-form,
  .lead-filter-bar,
  .lead-fact-grid,
  .lead-rule-grid,
  .user-management-page,
  .assignment-members-grid,
  .assignment-members-layout,
  .assignment-case-tool-grid,
  .assignment-summary-grid,
  .department-layout,
  .department-filter,
  .lead-profile-grid,
  .lead-profile-module-grid {
    grid-template-columns: 1fr;
  }

  .department-layout {
    height: auto;
    max-height: none;
  }

  .lead-profile-hero,
  .lead-card-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .department-toolbar {
    flex-direction: column;
    justify-content: flex-start;
  }

  .department-toolbar > div:first-child {
    width: 100%;
    flex: 0 1 auto;
  }

  .department-toolbar .table-actions {
    width: 100%;
    max-width: none;
    flex-basis: auto;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .department-tree-panel {
    height: auto;
    max-height: none;
  }

  .department-tree {
    max-height: 420px;
  }

  .staff-roster-sync-totals {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .staff-roster-sync-totals > div:nth-child(3n) {
    border-right: 0;
  }

  .staff-roster-sync-totals > div:nth-child(-n + 3) {
    border-bottom: 1px solid #edf0f5;
  }

  .lr-drawer {
    width: min(750px, 100vw);
  }

  .import-day-header {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 12px 16px;
  }

  .issue-detail-item {
    grid-template-columns: 1fr;
  }
}
