/* ==========================================================================
   SmallWorld Relationship Leads Prototype — Page Styles
   Layered on top of ../settings/shared/styles.css to share tokens.
   ========================================================================== */

/* ---------- Page shell ---------------------------------------------------- */
.rl-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem 56px;
}

/* ---------- Page-level tabs (connector-dashboard pattern) --------------- */
.rl-page-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e1e5e9;
  margin: 24px 0 18px;
  position: relative;
}

.rl-page-tab {
  padding: 10px 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #77797B;
  cursor: pointer;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  background: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.15s, border-color 0.15s;
}
.rl-page-tab:hover { color: #222; }
.rl-page-tab.active {
  color: #3f84e5;
  border-bottom-color: #3f84e5;
}

.rl-page-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  padding: 0 7px;
  border-radius: 10px;
  background: #F1F5F9;
  color: #77797B;
  font-size: 11px;
  font-weight: 700;
}
.rl-page-tab.active .rl-page-tab-badge { background: #F1F7FF; color: #3f84e5; }
.rl-page-tab-badge.alert { background: #FEE2E2; color: #DC2626; }
.rl-page-tab.active .rl-page-tab-badge.alert { background: #FEE2E2; color: #DC2626; }

/* ---------- Page hero + header ------------------------------------------- */
.rl-hero {
  padding: 12px 0 18px;
}

.rl-hero h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: #222;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.rl-hero-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 26px;
  padding: 0 10px;
  border-radius: 13px;
  background: linear-gradient(140deg, #3f84e5 0%, #2e6ec5 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  box-shadow: 0 2px 8px rgba(63,132,229,0.3);
}

.rl-hero-sub {
  margin-top: 10px;
  font-size: 13px;
  color: #57595B;
  line-height: 1.6;
  max-width: 760px;
}
.rl-hero-sub strong { color: #222; font-weight: 700; }
.rl-hero-sub a { color: #3f84e5; text-decoration: none; }
.rl-hero-sub a:hover { text-decoration: underline; }

/* ---------- Toolbar ------------------------------------------------------- */
.rl-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #e8ebef;
  border-radius: 10px;
  margin-bottom: 16px;
}

.rl-toolbar-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rl-toolbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.rl-filter-select {
  height: 32px;
  padding: 0 28px 0 12px;
  border: 1px solid #e1e5e9;
  border-radius: 6px;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%2377797B' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>") no-repeat right 10px center;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #222;
  appearance: none;
  cursor: pointer;
}
.rl-filter-select:focus { outline: none; border-color: #3f84e5; }

.rl-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid #e1e5e9;
  border-radius: 6px;
  background: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #57595B;
  cursor: pointer;
  transition: all 0.15s;
}
.rl-filter-chip:hover { color: #222; border-color: #c5d6ee; }
.rl-filter-chip.active {
  background: #F1F7FF;
  color: #3f84e5;
  border-color: #3f84e5;
}
.rl-filter-chip svg { width: 13px; height: 13px; }

.rl-search {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.rl-search input {
  height: 32px;
  padding: 0 12px 0 32px;
  width: 220px;
  border: 1px solid #e1e5e9;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12.5px;
  color: #222;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.rl-search input::placeholder { color: #9DA1A5; }
.rl-search input:focus { outline: none; border-color: #3f84e5; box-shadow: 0 0 0 3px rgba(63,132,229,0.12); }
.rl-search svg {
  position: absolute;
  left: 10px;
  width: 14px;
  height: 14px;
  color: #9DA1A5;
  pointer-events: none;
}

.rl-view-toggle {
  display: inline-flex;
  align-items: center;
  height: 32px;
  border: 1px solid #e1e5e9;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}
.rl-view-toggle button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  height: 100%;
  background: transparent;
  border: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #77797B;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.rl-view-toggle button + button { border-left: 1px solid #e1e5e9; }
.rl-view-toggle button:hover { color: #222; }
.rl-view-toggle button.active { background: #F1F7FF; color: #3f84e5; }
.rl-view-toggle svg { width: 14px; height: 14px; }

/* ---------- Tabs (Mine / Unassigned / All) ------------------------------- */
.rl-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 4px;
  border: 1px solid #e8ebef;
  border-radius: 8px;
  background: #fff;
  margin-bottom: 16px;
}
.rl-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: #57595B;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}
.rl-tab:hover { color: #222; }
.rl-tab.active {
  background: #F1F7FF;
  color: #3f84e5;
  box-shadow: inset 0 0 0 1px rgba(63,132,229,0.18);
}
.rl-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 16px;
  padding: 0 6px;
  border-radius: 8px;
  background: #F1F5F9;
  color: #57595B;
  font-size: 10.5px;
  font-weight: 700;
}
.rl-tab.active .rl-tab-badge { background: #fff; color: #1a56b8; }

/* ---------- Card grid ---------------------------------------------------- */
.rl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.rl-card {
  position: relative;
  background: #fff;
  border: 1px solid #e8ebef;
  border-radius: 12px;
  padding: 18px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}
.rl-card:hover {
  border-color: #c5d6ee;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(20,40,80,0.06);
}

.rl-card-flairs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.rl-card-flairs .audience-pill,
.level-pill {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  background: #f1f3f5;
  color: #57595B;
}

.level-pill.lvl-exec   { background: #fef3e2; color: #92560b; }
.level-pill.lvl-senior { background: #f3e8fd; color: #6b21a8; }
.level-pill.lvl-mid    { background: #e8f0fe; color: #1a56b8; }
.level-pill.lvl-ic     { background: #f1f3f5; color: #57595B; }

.rl-card-more {
  margin-left: auto;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 0;
  background: transparent;
  color: #9DA1A5;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.rl-card-more:hover { background: #F1F5F9; color: #222; }
.rl-card-more svg { width: 16px; height: 16px; }

.rl-card-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rl-avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  background: #3f84e5;
}
.rl-avatar.sm { width: 30px; height: 30px; font-size: 11px; }
.rl-avatar.lg { width: 56px; height: 56px; font-size: 16px; }

.rl-card-prospect-meta { min-width: 0; }
.rl-card-prospect-name {
  font-size: 16px;
  font-weight: 700;
  color: #222;
  letter-spacing: -0.2px;
  line-height: 1.2;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rl-card-prospect-title {
  font-size: 12px;
  color: #57595B;
  line-height: 1.4;
  margin-bottom: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rl-card-prospect-company {
  font-size: 12px;
  font-weight: 600;
  color: #222;
}

.rl-card-connector {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  background: #fafbfc;
  border-radius: 8px;
}
.rl-card-connector-meta { min-width: 0; line-height: 1.3; }
.rl-card-connector-label {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #9DA1A5;
}
.rl-card-connector-name {
  font-size: 12.5px;
  font-weight: 600;
  color: #222;
}

/* ---------- Strength chip (emoji + label) ------------------------------
   Strength is ALWAYS represented by the canonical emoji + label, never a
   bar meter. Bar meters are reserved for relevance. See style-guide.md. */
.strength-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 8px;
  border-radius: 99px;
  background: #f1f3f5;
  color: #57595B;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1px;
  line-height: 1;
}
.strength-chip.compact { padding: 3px 8px 3px 6px; font-size: 10.5px; gap: 5px; }

.strength-chip-emoji {
  font-size: 13px;
  line-height: 1;
  display: inline-block;
  /* keep emojis from inheriting underline / text effects */
  text-decoration: none;
}
.strength-chip.compact .strength-chip-emoji { font-size: 11.5px; }

.strength-chip.sx-very-strong { background: #fff0e3; color: #b04300; }
.strength-chip.sx-strong      { background: #e6f4ea; color: #1f7a3d; }
.strength-chip.sx-avg         { background: #e8f0fe; color: #1a56b8; }
.strength-chip.sx-weak        { background: #fef3e2; color: #92560b; }
.strength-chip.sx-very-weak   { background: #ffe3e3; color: #b50005; }
.strength-chip.sx-unknown     { background: #f1f3f5; color: #77797B; }

/* ---------- Card actions row -------------------------------------------- */
.rl-card-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid #f1f3f5;
}
.rl-card-actions.with-assign { grid-template-columns: repeat(4, 1fr); }

.rl-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 4px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  color: #57595B;
  cursor: pointer;
  transition: all 0.15s;
}
.rl-action-btn:hover {
  background: #F8FAFF;
  color: #222;
  border-color: #e8ebef;
}
.rl-action-btn svg { width: 14px; height: 14px; }

.rl-action-btn.is-primary {
  background: #3f84e5;
  color: #fff;
}
.rl-action-btn.is-primary:hover { background: #2e6ec5; color: #fff; }

.rl-action-btn.is-save:hover  { color: #b04300; border-color: #fdd5b1; background: #fff8f0; }
.rl-action-btn.is-hide:hover  { color: #77797B; border-color: #e1e5e9; background: #fafbfc; }

/* ---------- Card alt states (saved, dismissed, etc.) -------------------- */
.rl-card.is-saved {
  background: linear-gradient(135deg, #fff8f0 0%, #fff 60%);
  border-color: #fdd5b1;
}
.rl-card.is-saved::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: linear-gradient(180deg, #e3832a, #b04300);
  border-radius: 12px 0 0 12px;
}

.rl-card-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 24px 16px;
  color: #57595B;
}
.rl-card-empty-state .star {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff8f0;
  color: #e3832a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.rl-card-empty-state .star svg { width: 22px; height: 22px; }
.rl-card-empty-state .title { font-size: 13px; font-weight: 700; color: #222; }
.rl-card-empty-state .desc { font-size: 11.5px; color: #77797B; line-height: 1.4; }
.rl-card-empty-state a { color: #3f84e5; font-weight: 600; text-decoration: none; }
.rl-card-empty-state a:hover { text-decoration: underline; }

/* ---------- Dense table view -------------------------------------------- */
.rl-table-card {
  background: #fff;
  border: 1px solid #e8ebef;
  border-radius: 12px;
  overflow: hidden;
}
.rl-table-scroll { overflow-x: auto; }

.rl-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.rl-table thead th {
  position: sticky;
  top: 0;
  background: #fafbfc;
  padding: 11px 14px;
  text-align: left;
  font-family: 'Montserrat', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  color: #77797B;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-bottom: 1px solid #e8ebef;
  white-space: nowrap;
  user-select: none;
}
.rl-table th.sortable { cursor: pointer; }
.rl-table th.sortable:hover { color: #222; }
.rl-table .sort-arrow {
  display: inline-block;
  margin-left: 4px;
  color: #ccd1d6;
  font-size: 9px;
}
.rl-table th.sorted-asc .sort-arrow,
.rl-table th.sorted-desc .sort-arrow { color: #3f84e5; }
.rl-table th.sorted-asc .sort-arrow::after { content: ' \25B2'; }
.rl-table th.sorted-desc .sort-arrow::after { content: ' \25BC'; }

.rl-table tbody tr {
  border-bottom: 1px solid #f1f3f5;
  transition: background 0.1s;
}
.rl-table tbody tr:last-child { border-bottom: 0; }
.rl-table tbody tr:hover { background: #F8FAFF; }

.rl-table td {
  padding: 10px 14px;
  font-size: 12.5px;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rl-name-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.rl-name-cell .meta { min-width: 0; line-height: 1.25; }
.rl-name-cell .name {
  font-weight: 700;
  color: #222;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.rl-name-cell .sub {
  font-size: 11px;
  color: #77797B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}
.rl-name-cell .li-link {
  display: inline-flex;
  align-items: center;
  color: #0077b5;
  opacity: 0.6;
  transition: opacity 0.15s;
}
.rl-name-cell .li-link:hover { opacity: 1; }
.rl-name-cell .li-link svg { width: 12px; height: 12px; }

.rl-table .company-cell {
  font-weight: 600;
  color: #222;
}
.rl-table .company-cell .target-flag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #1a56b8;
  background: #e8f0fe;
  padding: 1px 6px;
  border-radius: 8px;
}

.rl-table .row-actions {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  opacity: 0.35;
  transition: opacity 0.15s;
}
.rl-table tr:hover .row-actions { opacity: 1; }

.rl-icon-btn {
  width: 26px;
  height: 26px;
  border: 0;
  background: transparent;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #77797B;
  cursor: pointer;
  transition: all 0.15s;
}
.rl-icon-btn:hover { background: #fff; color: #222; box-shadow: inset 0 0 0 1px #e1e5e9; }
.rl-icon-btn svg { width: 14px; height: 14px; }
.rl-icon-btn.is-primary { color: #3f84e5; }
.rl-icon-btn.is-primary:hover { background: #F1F7FF; color: #2e6ec5; box-shadow: inset 0 0 0 1px #c5d6ee; }
.rl-icon-btn.is-save:hover    { color: #b04300; box-shadow: inset 0 0 0 1px #fdd5b1; background: #fff8f0; }

/* ---------- Saved Leads index (company groups) -------------------------- */
.rl-company-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid #e8ebef;
  border-radius: 12px;
  margin-bottom: 10px;
  transition: all 0.15s;
  text-decoration: none;
  color: inherit;
}
.rl-company-card:hover {
  border-color: #c5d6ee;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(20,40,80,0.05);
}

.rl-company-mark {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #1a56b8;
  background: #e8f0fe;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.rl-company-meta { flex: 1; min-width: 0; }
.rl-company-name {
  font-size: 15px;
  font-weight: 700;
  color: #222;
  letter-spacing: -0.1px;
  margin-bottom: 4px;
}
.rl-company-stat {
  font-size: 12px;
  color: #57595B;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.rl-company-stat .star {
  display: inline-flex;
  align-items: center;
  color: #e3832a;
}
.rl-company-stat .star svg { width: 13px; height: 13px; }

.rl-company-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: #3f84e5;
}
.rl-company-action svg { width: 14px; height: 14px; transition: transform 0.15s; }
.rl-company-card:hover .rl-company-action svg { transform: translateX(2px); }

/* ---------- Empty states ------------------------------------------------ */
.rl-empty-card {
  background: #fff;
  border: 1px dashed #d1d5db;
  border-radius: 12px;
  padding: 56px 24px;
  text-align: center;
}
.rl-empty-illus {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F1F7FF 0%, #fff 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #3f84e5;
  border: 1px solid #e8ebef;
}
.rl-empty-illus svg { width: 36px; height: 36px; }
.rl-empty-title {
  font-size: 17px;
  font-weight: 700;
  color: #222;
  letter-spacing: -0.2px;
  margin-bottom: 6px;
}
.rl-empty-desc {
  font-size: 13px;
  color: #57595B;
  line-height: 1.55;
  max-width: 480px;
  margin: 0 auto 20px;
}
.rl-empty-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---------- Footer CTA -------------------------------------------------- */
.rl-footer-cta {
  margin-top: 28px;
  padding: 22px 24px;
  background: #fafbfc;
  border: 1px solid #e8ebef;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.rl-footer-cta-text { color: #57595B; font-size: 13px; line-height: 1.55; max-width: 640px; }
.rl-footer-cta-text strong { color: #222; font-weight: 700; }
.rl-footer-cta-text a { color: #3f84e5; text-decoration: none; font-weight: 600; }
.rl-footer-cta-text a:hover { text-decoration: underline; }

/* ---------- Toast (floating bottom-right) ------------------------------- */
.rl-toast {
  position: fixed;
  right: 28px;
  bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #1a1d1f;
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
  font-size: 12.5px;
  font-weight: 500;
  z-index: 50;
}
.rl-toast .check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2da95d;
  color: #fff;
}
.rl-toast .check svg { width: 14px; height: 14px; }
.rl-toast .undo {
  margin-left: 6px;
  background: transparent;
  border: 0;
  color: #82c5ff;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}

/* ---------- Modal (request intro / lead detail) ------------------------- */
.rl-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20,30,50,0.35);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
}

.rl-modal {
  width: min(680px, 92vw);
  max-height: 88vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 30px 60px rgba(20,40,80,0.18);
  display: flex;
  flex-direction: column;
}

.rl-modal-head {
  position: relative;
  padding: 22px 28px 14px;
  border-bottom: 1px solid #f1f3f5;
}
.rl-modal-eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #9DA1A5;
  margin-bottom: 6px;
}
.rl-modal-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: #222;
}
.rl-modal-sub {
  margin-top: 4px;
  font-size: 12.5px;
  color: #57595B;
}
.rl-modal-sub strong { color: #222; }

.rl-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #9DA1A5;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.rl-modal-close:hover { background: #f1f3f5; color: #222; }
.rl-modal-close svg { width: 16px; height: 16px; }

.rl-modal-body { padding: 18px 28px 8px; }
.rl-modal-foot {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding: 14px 24px 18px;
  border-top: 1px solid #f1f3f5;
}

.rl-form-section { margin-bottom: 18px; }
.rl-form-section:last-child { margin-bottom: 0; }

.rl-form-label-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 6px;
}
.rl-form-label-bar .label {
  font-size: 11.5px;
  font-weight: 700;
  color: #222;
  letter-spacing: 0.2px;
}
.rl-form-label-bar .helper {
  font-size: 11px;
  color: #77797B;
}

.rl-form-textarea {
  width: 100%;
  min-height: 92px;
  padding: 10px 12px;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12.5px;
  color: #222;
  line-height: 1.5;
  resize: vertical;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.rl-form-textarea:focus {
  outline: none;
  border-color: #3f84e5;
  box-shadow: 0 0 0 3px rgba(63,132,229,0.12);
}

.rl-form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.rl-form-input,
.rl-form-select {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12.5px;
  color: #222;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.rl-form-select {
  padding-right: 30px;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%2377797B' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>") no-repeat right 10px center;
  appearance: none;
}
.rl-form-input:focus,
.rl-form-select:focus {
  outline: none;
  border-color: #3f84e5;
  box-shadow: 0 0 0 3px rgba(63,132,229,0.12);
}

.rl-radio-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rl-radio-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #e1e5e9;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
}
.rl-radio-card:hover { border-color: #c5d6ee; background: #fafbfd; }
.rl-radio-card.selected {
  border-color: #3f84e5;
  background: #F1F7FF;
  box-shadow: 0 0 0 1px #3f84e5 inset;
}
.rl-radio-card input { margin-top: 2px; accent-color: #3f84e5; }
.rl-radio-card .rc-meta .title { font-size: 12.5px; font-weight: 700; color: #222; }
.rl-radio-card .rc-meta .desc {
  margin-top: 2px;
  font-size: 11.5px;
  color: #57595B;
  line-height: 1.5;
}

.rl-summary-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: #fafbfd;
  border: 1px solid #e8ebef;
  border-radius: 10px;
  margin-bottom: 18px;
}
.rl-summary-arrow {
  color: #9DA1A5;
  display: inline-flex;
  align-items: center;
}
.rl-summary-arrow svg { width: 16px; height: 16px; }

.rl-summary-block { display: flex; align-items: center; gap: 9px; min-width: 0; }
.rl-summary-block .meta { min-width: 0; line-height: 1.25; }
.rl-summary-block .role {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #9DA1A5;
}
.rl-summary-block .name {
  font-size: 13px;
  font-weight: 700;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}
.rl-summary-block .sub {
  font-size: 11px;
  color: #77797B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

/* ---------- Lead detail page -------------------------------------------- */
.rl-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 20px;
}
@media (max-width: 920px) {
  .rl-detail-grid { grid-template-columns: 1fr; }
}

.rl-detail-card {
  background: #fff;
  border: 1px solid #e8ebef;
  border-radius: 12px;
  padding: 22px 24px;
}

.rl-detail-prospect-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid #f1f3f5;
  margin-bottom: 18px;
}

.rl-detail-prospect-head .rl-card-prospect-name { font-size: 22px; }
.rl-detail-prospect-head .rl-card-prospect-title { font-size: 13px; }

.rl-detail-section { margin-bottom: 22px; }
.rl-detail-section:last-child { margin-bottom: 0; }

.rl-detail-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #9DA1A5;
  margin-bottom: 10px;
}

.rl-fact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 24px;
}
.rl-fact-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #9DA1A5;
  margin-bottom: 4px;
}
.rl-fact-value {
  font-size: 13px;
  font-weight: 600;
  color: #222;
}
.rl-fact-value a { color: #3f84e5; text-decoration: none; }
.rl-fact-value a:hover { text-decoration: underline; }

.rl-detail-aside .rl-detail-card + .rl-detail-card { margin-top: 18px; }

.rl-detail-quick-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rl-quick-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  text-decoration: none;
  color: #222;
  font-family: 'Montserrat', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  transition: all 0.15s;
}
.rl-quick-action:hover {
  border-color: #c5d6ee;
  background: #F8FAFF;
  transform: translateY(-1px);
}
.rl-quick-action svg { width: 14px; height: 14px; color: #57595B; }
.rl-quick-action.is-primary {
  background: #3f84e5;
  border-color: #3f84e5;
  color: #fff;
}
.rl-quick-action.is-primary svg { color: #fff; }
.rl-quick-action.is-primary:hover { background: #2e6ec5; }

.rl-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #3f84e5;
  text-decoration: none;
  margin-top: 18px;
}
.rl-back-link:hover { text-decoration: underline; }
.rl-back-link svg { width: 14px; height: 14px; }

/* ---------- Hidden helpers ---------------------------------------------- */
.is-hidden { display: none !important; }
