/* Reach Portal UI v2 — match dashboard mockup chrome + module sync */

.sales-layout.reach-shell,
.sales-layout {
  --reach-teal: #0b6b57;
  --reach-teal-dark: #084f41;
  --reach-teal-soft: #e7f5f0;
  --reach-teal-border: #b7d7cd;
  --reach-ink: #0f2f2a;
  --reach-muted: #5f746f;
  --reach-line: #dce8e4;
  --reach-bg: #f5f8f7;
  --reach-card: #ffffff;
  --reach-ok: #0f7a4c;
  --reach-warn: #b7791f;
  --reach-danger: #b91c1c;
  --reach-blue: #1d6fd8;
  --rpu-shadow: 0 8px 24px rgba(15, 47, 42, 0.05);
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 100vh;
  background: var(--reach-bg) !important;
  color: var(--reach-ink);
  font-family: 'DM Sans', Manrope, system-ui, sans-serif;
}

/* ═══════════ HEADER (mockup: top tools + nav) ═══════════ */
.sales-layout .b2b-header {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border-bottom: 1px solid var(--reach-line) !important;
  background: #fff !important;
  box-shadow: 0 4px 18px rgba(15, 47, 42, 0.04) !important;
  position: sticky;
  top: 0;
  z-index: 50;
}

.sales-layout .b2b-header-leading {
  display: none !important; /* brand moved into .rpu-topbar */
}

.rpu-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  width: 100%;
  box-sizing: border-box;
  background: #fff;
}

.rpu-topbar .brand,
.rpu-topbar a.brand {
  flex: 0 0 auto;
  color: var(--reach-teal) !important;
  font: 800 1.15rem/1 Manrope, 'DM Sans', sans-serif !important;
  letter-spacing: -0.03em;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.rpu-topbar .brand::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50% 50% 50% 0;
  background: #e11d48;
  transform: rotate(-45deg);
  box-shadow: inset -3px -3px 0 2px #fff;
  flex: none;
}

.rpu-search {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 560px;
  width: min(560px, 46vw);
  margin: 0 auto;
  background: #f3f7f5;
  border: 1px solid var(--reach-line);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--reach-muted);
  font-size: 13px;
  min-width: 220px;
  height: 42px;
  box-sizing: border-box;
}

.rpu-search > span {
  flex: none;
  font-size: 15px;
  line-height: 1;
}

.rpu-search input,
.sales-layout .rpu-search input,
.sales-layout .rpu-search input[type='search'] {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  width: 100% !important;
  min-width: 0 !important;
  flex: 1 1 auto;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  line-height: 40px !important;
  font: 500 14px/40px 'DM Sans', sans-serif !important;
  color: var(--reach-ink) !important;
  padding: 0 4px !important;
  margin: 0 !important;
  border-radius: 0 !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.rpu-search input::-webkit-search-decoration,
.rpu-search input::-webkit-search-cancel-button,
.rpu-search input::-webkit-search-results-button {
  -webkit-appearance: none;
}

.rpu-search kbd {
  font: 700 10px/1 'DM Sans', sans-serif;
  border: 1px solid #c9d7d2;
  border-radius: 6px;
  padding: 3px 6px;
  color: var(--reach-muted);
  background: #fff;
  white-space: nowrap;
  flex: none;
}

.rpu-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 80;
  background: #fff;
  border: 1px solid var(--reach-line);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(15, 47, 42, 0.12);
  max-height: 360px;
  overflow: auto;
  padding: 6px;
}

.rpu-search-results[hidden] {
  display: none !important;
}

.rpu-search-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  color: var(--reach-ink);
  font: 600 13px/1.25 'DM Sans', sans-serif;
}

.rpu-search-item:hover,
.rpu-search-item:focus {
  background: var(--reach-teal-soft);
  outline: none;
}

.rpu-search-item small {
  color: var(--reach-muted);
  font-weight: 500;
  font-size: 11.5px;
}

.rpu-search-empty {
  padding: 14px 12px;
  color: var(--reach-muted);
  font-size: 13px;
}

.rpu-top-right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.rpu-chip,
.rpu-bell,
.rpu-profile {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--reach-line);
  background: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  font: 600 12.5px/1 'DM Sans', sans-serif;
  color: var(--reach-ink);
  height: 38px;
  box-sizing: border-box;
}

.rpu-chip {
  appearance: none;
  cursor: pointer;
  padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235f746f' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.rpu-bell {
  position: relative;
  width: 38px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
  font-size: 15px;
  cursor: pointer;
}

.rpu-bell::after {
  content: attr(data-count);
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #e11d48;
  color: #fff;
  font: 800 9px/16px 'DM Sans', sans-serif;
  text-align: center;
  padding: 0 3px;
}

.rpu-bell.is-empty::after,
.rpu-bell[data-count='']::after,
.rpu-bell[data-count='0']::after {
  display: none;
}

.rpu-profile {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  text-align: left;
}

.rpu-profile:focus-visible,
.rpu-bell:focus-visible {
  outline: 2px solid var(--reach-teal);
  outline-offset: 2px;
}

.rpu-pop {
  position: fixed;
  z-index: 1300;
  width: 320px;
  max-width: calc(100vw - 24px);
  background: #fff;
  border: 1px solid var(--reach-line);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(15, 47, 42, 0.16);
  color: var(--reach-ink);
  font: 600 13px/1.35 'DM Sans', sans-serif;
  overflow: hidden;
}

.rpu-pop-profile {
  width: 260px;
  padding-bottom: 6px;
}

.rpu-pop-head,
.rpu-pop-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid #edf2f0;
}

.rpu-pop-foot {
  border-bottom: 0;
  border-top: 1px solid #edf2f0;
  justify-content: center;
}

.rpu-pop-head strong {
  font: 800 14px/1 Manrope, sans-serif;
}

.rpu-pop-link {
  border: 0;
  background: none;
  color: var(--reach-teal);
  font: 700 12px/1 'DM Sans', sans-serif;
  cursor: pointer;
  padding: 0;
}

.rpu-pop-empty {
  margin: 0;
  padding: 22px 14px;
  color: var(--reach-muted);
  text-align: center;
  font-weight: 500;
}

.rpu-pop-list {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  max-height: 360px;
  overflow-y: auto;
}

.rpu-pop-list li button {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  width: 100%;
  border: 0;
  background: none;
  padding: 10px 14px;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.rpu-pop-list li button:hover {
  background: var(--reach-teal-soft);
}

.rpu-pop-list li.is-unread b {
  font-weight: 800;
}

.rpu-pop-list span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.rpu-pop-list small {
  color: var(--reach-muted);
  font-weight: 500;
  font-size: 12px;
}

.rpu-pop-dot {
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--reach-teal);
}

.rpu-pop-list li:not(.is-unread) .rpu-pop-dot {
  opacity: 0.35;
}

.rpu-pop-who {
  display: grid;
  gap: 2px;
  padding: 14px;
  border-bottom: 1px solid #edf2f0;
  margin-bottom: 4px;
}

.rpu-pop-who strong {
  font: 800 14px/1.2 Manrope, sans-serif;
}

.rpu-pop-who small {
  color: var(--reach-muted);
  font-weight: 500;
}

.rpu-pop-mail {
  word-break: break-all;
}

.rpu-pop-item {
  display: block;
  width: 100%;
  border: 0;
  background: none;
  padding: 9px 14px;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.rpu-pop-item:hover,
.rpu-pop-item:focus-visible {
  background: var(--reach-teal-soft);
  outline: none;
}

.rpu-pop-item.is-danger {
  color: #b91c1c;
}

.rpu-pop-sep {
  border: 0;
  border-top: 1px solid #edf2f0;
  margin: 4px 0;
}

.rpu-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--reach-teal-soft);
  color: var(--reach-teal);
  font: 800 11px/1 Manrope, sans-serif;
  flex: none;
}

.rpu-profile {
  padding: 4px 12px 4px 4px;
  max-width: 240px;
}

.rpu-profile span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.15;
  min-width: 0;
}

.rpu-profile strong {
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rpu-profile small {
  color: var(--reach-muted);
  font-weight: 500;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Nav row */
.sales-layout .b2b-nav.b2b-nav-desktop {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  width: 100%;
  box-sizing: border-box;
  padding: 6px 14px 10px !important;
  margin: 0 !important;
  border-top: 1px solid #eef3f1;
  background: #fff;
}

.sales-layout .b2b-nav a,
.sales-layout .b2b-nav .btn-link {
  color: var(--reach-muted) !important;
  font: 650 12.5px/1 'DM Sans', sans-serif !important;
  padding: 9px 12px !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  text-decoration: none !important;
  background: transparent !important;
  border: 0 !important;
  cursor: pointer;
}

.sales-layout .b2b-nav a.active {
  color: #fff !important;
  background: var(--reach-teal) !important;
  box-shadow: 0 6px 14px rgba(11, 107, 87, 0.22) !important;
}

.sales-layout .b2b-nav a:hover:not(.active),
.sales-layout .b2b-nav .btn-link:hover {
  background: var(--reach-teal-soft) !important;
  color: var(--reach-teal) !important;
}

.sales-layout .b2b-main {
  max-width: 1280px !important;
  margin: 0 auto !important;
  padding: 22px 20px 72px !important;
  width: 100%;
  box-sizing: border-box;
}

/* ═══════════ Shared module sync ═══════════ */
.sales-layout h1,
.sales-layout .reach-page-head h1 {
  font: 800 clamp(1.4rem, 2.1vw, 1.8rem)/1.15 Manrope, sans-serif !important;
  letter-spacing: -0.035em;
  color: var(--reach-ink) !important;
  margin: 0 !important;
}

.sales-layout .muted,
.sales-layout .reach-page-head p {
  color: var(--reach-muted) !important;
}

.sales-layout .card,
.sales-layout .reach-card,
.sales-layout .reach-panel {
  background: var(--reach-card) !important;
  border: 1px solid var(--reach-line) !important;
  border-radius: 16px !important;
  box-shadow: var(--rpu-shadow) !important;
}

.sales-layout .btn,
.sales-layout .reach-btn,
.sales-layout button.btn {
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--reach-teal) !important;
  color: #fff !important;
  font: 700 13px/1 'DM Sans', sans-serif !important;
  padding: 10px 16px !important;
}

.sales-layout .btn.secondary,
.sales-layout .reach-btn.secondary,
.sales-layout button.btn.secondary {
  background: #fff !important;
  color: var(--reach-teal) !important;
  border: 1px solid var(--reach-teal-border) !important;
}

.sales-layout .grid-stats,
.sales-layout .grid.grid-stats {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important;
  gap: 12px !important;
}

.sales-layout .stat-card {
  padding: 14px !important;
}

.sales-layout .stat-label {
  color: var(--reach-muted) !important;
  font: 600 11px/1.2 'DM Sans', sans-serif !important;
}

.sales-layout .stat-card strong {
  display: block;
  margin-top: 8px;
  font: 800 1.3rem/1 Manrope, sans-serif !important;
}

.sales-layout table,
.sales-layout .reach-table {
  width: 100%;
  border-collapse: collapse;
  font: 500 13px/1.4 'DM Sans', sans-serif;
}

.sales-layout th {
  background: #f3f8f6 !important;
  color: var(--reach-muted) !important;
  font-weight: 700 !important;
  text-align: left;
  padding: 11px 12px !important;
  border-bottom: 1px solid var(--reach-line) !important;
}

.sales-layout td {
  padding: 11px 12px !important;
  border-bottom: 1px solid #edf2f0 !important;
}

.sales-layout input,
.sales-layout select,
.sales-layout textarea {
  border: 1px solid var(--reach-line) !important;
  border-radius: 10px !important;
  font: 500 13px/1.35 'DM Sans', sans-serif !important;
  color: var(--reach-ink) !important;
  background: #fff !important;
}

.rtp-panel {
  --rtp-green: #0b6b57 !important;
  --rtp-green-dark: #084f41 !important;
}

/* ═══════════ DASHBOARD ═══════════ */
.rpu-hide-native > *:not([data-rpu-dash]) {
  display: none !important;
}

.rpu-dash {
  display: block;
}

.rpu-dash-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.rpu-dash-head h1 {
  margin: 0;
  font: 800 clamp(1.55rem, 2.4vw, 1.95rem)/1.1 Manrope, sans-serif;
  letter-spacing: -0.04em;
  color: var(--reach-ink);
}

.rpu-dash-head p {
  margin: 6px 0 0;
  color: var(--reach-muted);
  font-size: 13.5px;
  max-width: 64ch;
}

.rpu-range {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--reach-line);
  background: #fff;
  border-radius: 12px;
  padding: 8px 12px;
  font: 650 13px/1 'DM Sans', sans-serif;
  box-shadow: var(--rpu-shadow);
}

.rpu-range input[type='date'] {
  border: 0 !important;
  padding: 0 !important;
  min-width: 118px;
  background: transparent !important;
}

.rpu-kpi-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.rpu-kpi {
  background: #fff;
  border: 1px solid var(--reach-line);
  border-radius: 14px;
  padding: 14px 12px 14px;
  box-shadow: var(--rpu-shadow);
  min-height: 96px;
}

.rpu-kpi span {
  display: block;
  font: 600 11px/1.2 'DM Sans', sans-serif;
  color: var(--reach-muted);
}

.rpu-kpi b {
  display: block;
  margin-top: 10px;
  font: 800 1.35rem/1 Manrope, sans-serif;
  color: var(--reach-ink);
  letter-spacing: -0.02em;
}

.rpu-kpi em {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 8px;
  font: 700 11px/1 'DM Sans', sans-serif;
  color: var(--reach-ok);
  font-style: normal;
}

.rpu-mid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.rpu-card {
  background: #fff;
  border: 1px solid var(--reach-line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--rpu-shadow);
}

.rpu-card h3 {
  margin: 0 0 14px;
  font: 750 14px/1.2 Manrope, sans-serif;
  color: var(--reach-ink);
}

.rpu-funnel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.rpu-funnel-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--w, 100%);
  max-width: 100%;
  background: linear-gradient(90deg, #0b6b57, #14967a);
  color: #fff;
  border-radius: 8px;
  padding: 10px 14px;
  font: 700 12.5px/1 'DM Sans', sans-serif;
  box-sizing: border-box;
}

.rpu-funnel-step:nth-child(2) { background: linear-gradient(90deg, #0d7a63, #1aa884); }
.rpu-funnel-step:nth-child(3) { background: linear-gradient(90deg, #128a70, #22b48f); }
.rpu-funnel-step:nth-child(4) { background: linear-gradient(90deg, #1a9a7d, #2fc49c); }

.rpu-side-stats {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.rpu-side-stats div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  padding: 9px 11px;
  border-radius: 10px;
  background: #f4f8f6;
}

.rpu-donut-wrap {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
  align-items: center;
}

.rpu-donut {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: conic-gradient(
    #0b6b57 0 calc(var(--p1, 32) * 1%),
    #1d6fd8 0 calc((var(--p1) + var(--p2, 26)) * 1%),
    #6d4ec9 0 calc((var(--p1) + var(--p2) + var(--p3, 14)) * 1%),
    #b7791f 0 calc((var(--p1) + var(--p2) + var(--p3) + var(--p4, 8)) * 1%),
    #94a3b8 0
  );
  position: relative;
}

.rpu-donut::before {
  content: '';
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  background: #fff;
}

.rpu-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12.5px;
}

.rpu-legend i {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 7px;
}

.rpu-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rpu-bar-row {
  display: grid;
  grid-template-columns: 78px 1fr 42px;
  gap: 8px;
  align-items: center;
  font-size: 12.5px;
}

.rpu-bar-track {
  height: 10px;
  border-radius: 999px;
  background: #e8efec;
  overflow: hidden;
}

.rpu-bar-fill {
  height: 100%;
  border-radius: inherit;
}

.rpu-bar-fill.pos { background: #0f7a4c; }
.rpu-bar-fill.neu { background: #d97706; }
.rpu-bar-fill.neg { background: #dc2626; }
.rpu-bar-fill.pen { background: #2563eb; }

.rpu-bottom {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr 1fr;
  gap: 12px;
}

.rpu-emp {
  display: flex;
  gap: 8px;
  align-items: center;
}

.rpu-tag {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 8px;
  font: 700 11px/1 'DM Sans', sans-serif;
}
.rpu-tag.blue { background: #e8f1fc; color: #1d6fd8; }
.rpu-tag.purple { background: #efeafc; color: #6d4ec9; }
.rpu-tag.green { background: #e8f8ef; color: #0f7a4c; }
.rpu-tag.amber { background: #fff6e5; color: #b7791f; }
.rpu-tag.gray { background: #eef2f1; color: #526662; }

.rpu-rank {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rpu-rank-row {
  display: grid;
  grid-template-columns: 22px 1fr 44px;
  gap: 8px;
  align-items: center;
  font-size: 12.5px;
}

.rpu-msg {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
}
.rpu-msg.ok { background: #e8f8ef; color: #0f7a4c; }
.rpu-msg.err { background: #fef2f2; color: #b91c1c; }

@media (max-width: 1100px) {
  .rpu-kpi-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rpu-mid, .rpu-bottom { grid-template-columns: 1fr; }
  .rpu-search { max-width: none; }
}

@media (max-width: 768px) {
  .rpu-topbar {
    flex-wrap: wrap;
    padding: 10px 12px;
  }
  .rpu-search {
    order: 3;
    flex: 1 1 100%;
    max-width: none;
    margin: 0;
  }
  .rpu-kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rpu-donut-wrap { grid-template-columns: 1fr; justify-items: center; }
  .rpu-profile span { display: none; }
  .sales-layout .b2b-nav.b2b-nav-desktop { display: none !important; }
}

/* My HR Profile workspace (Care/Ops-style People embed) */
.sales-layout .b2b-main.rpu-hr-on {
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  position: relative;
  min-height: calc(100vh - 120px);
}
.sales-layout .b2b-main.rpu-hr-on > *:not([data-rpu-hr]) {
  display: none !important;
}
.rpu-hr-workspace {
  position: absolute;
  inset: 0;
  background: #f5f8f7;
  z-index: 5;
}
.rpu-hr-workspace iframe {
  width: 100%;
  height: calc(100vh - 118px);
  min-height: 640px;
  border: 0;
  display: block;
  background: #fff;
}

/* Add new lead popup (live leads page) */
.reach-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 47, 42, 0.48);
  backdrop-filter: blur(2px);
}
.reach-modal {
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  margin: 0 !important;
  box-shadow: 0 28px 64px rgba(15, 47, 42, 0.22) !important;
}
.reach-leads-page > form.reach-card {
  position: fixed !important;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 121;
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  margin: 0 !important;
  box-shadow: 0 28px 64px rgba(15, 47, 42, 0.22) !important;
}
.reach-leads-page:has(> form.reach-card)::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(15, 47, 42, 0.48);
}
body.rpu-lead-modal-open {
  overflow: hidden;
}
.rpu-lead-modal-x {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid #d7e4df;
  border-radius: 999px;
  background: #fff;
  color: #5f746f;
  font: 700 20px/1 'DM Sans', sans-serif;
  cursor: pointer;
  z-index: 2;
}

/* Log visit popup (live visit page) */
.reach-visit-page > form.reach-card.reach-modal {
  position: fixed !important;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 121;
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  margin: 0 !important;
  box-shadow: 0 28px 64px rgba(15, 47, 42, 0.22) !important;
}
body.rpu-visit-modal-open {
  overflow: hidden;
}
