.tensor-leads {
  position: relative; width: 100%; height: 100%; min-height: 360px;
  overflow: hidden; border-radius: 6px; container-type: inline-size;
  display: flex; flex-direction: column; justify-content: center;
  padding: 30px 22px; color: #101512;
  background: radial-gradient(ellipse at 80% 25%, #e8f7ed85, transparent 55%), #fcfdfc;
  font-family: Inter, "Inter Placeholder", sans-serif; --lead-step: 84px;
}
.tensor-leads, .tensor-leads * { box-sizing: border-box; }
.tensor-leads .lead-eyebrow { margin: 0 0 18px 14px; font-size: 13px; color: #87908e; letter-spacing: -.3px; }
.lead-dashboard { border: 1px solid #e9edeb; border-radius: 20px; padding: 22px 12px 12px; background: #ffffffd9; box-shadow: 0 12px 28px #193f2310; }
.lead-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 12px; min-height: 56px; margin-bottom: 18px; }
.lead-title { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.lead-title strong { font-size: clamp(24px, 4.7cqw, 34px); font-family: "PP Editorial New Ultralight", serif; font-weight: 200; letter-spacing: -1px; }
.lead-live { display: inline-flex; align-items: center; gap: 6px; color: #0b9050; font-size: 14px; font-weight: 600; }
.lead-live i { width: 8px; height: 8px; border-radius: 50%; background: #0a9a56; animation: lead-live-pulse 2s ease-in-out infinite; }
.lead-toast { flex: none; display: flex; align-items: center; gap: 9px; padding: 13px 11px; border: 1px solid #d7eee1; border-radius: 12px; background: #f4fbf7; box-shadow: 0 8px 20px #00843e0c; font-size: 12px; font-weight: 550; white-space: nowrap; animation: lead-toast-cycle 4s ease-in-out infinite; }
.lead-check { display: grid; place-items: center; width: 27px; height: 27px; background: #139952; color: white; border-radius: 50%; }
.lead-check svg { width: 16px; height: 16px; }
.lead-toast-close { color: #929995; font-size: 19px; margin-left: 6px; font-weight: 400; }
.lead-columns, .lead-row { display: grid; grid-template-columns: 1.4fr 1.18fr .8fr; align-items: center; column-gap: 8px; padding: 0 15px; }
.lead-columns { color: #77807d; font-size: 12px; margin-bottom: 10px; }
.lead-rows { height: calc(var(--lead-step) * 3 - 8px); position: relative; overflow: hidden; border-radius: 12px; }
.lead-row { position: absolute; top: 0; left: 0; right: 0; height: calc(var(--lead-step) - 8px); border: 1px solid #edf0ee; border-radius: 12px; background: white; animation: lead-row-cycle 12s ease-in-out infinite; animation-delay: var(--lead-delay); }
.lead-person, .lead-source { display: flex; align-items: center; min-width: 0; gap: 12px; white-space: nowrap; }
.lead-person { font-size: clamp(12px, 2.35cqw, 16px); font-weight: 600; letter-spacing: -.45px; }
.lead-avatar { flex: none; width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background-color: #edf0ee; }
.lead-avatar-emily { background-image: url('/images/uSM8CH7hANm7RkHNBqbwvWHzABk-9183da04.webp'); background-size: 255%; background-position: 54% 23%; }
.lead-source { font-size: clamp(11px, 2.1cqw, 14px); letter-spacing: -.3px; gap: 10px; }
.lead-source-icon { width: 34px; height: 34px; flex: none; border-radius: 10px; background: #f3f5f4; display: grid; place-items: center; }
.lead-source-icon svg, .lead-source-icon img { width: 21px; height: 21px; object-fit: contain; }
.lead-status { position: relative; display: grid; place-items: center; height: 31px; max-width: 94px; border-radius: 30px; background: #ddf7e7; color: #008238; font-size: 12px; font-weight: 600; }
.lead-status span { grid-area: 1 / 1; animation: lead-status-new 12s ease-in-out infinite; animation-delay: var(--lead-delay); }
.lead-status .lead-qualified { animation-name: lead-status-qualified; }
.lead-motion-control { position: absolute; right: 14px; bottom: 10px; width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid #dbe5df; border-radius: 50%; background: #ffffffe6; color: #5a7163; cursor: pointer; }
.lead-motion-control svg { width: 12px; height: 12px; }
.lead-motion-control[hidden] { display: none; }
.lead-motion-control:focus-visible { outline: 2px solid #149453; outline-offset: 3px; }
.tensor-leads:not(.is-playing) *, .tensor-leads:not(.is-playing) *::before { animation-play-state: paused !important; }
@keyframes lead-live-pulse { 0%, 100% { box-shadow: 0 0 0 0 #12985520; } 50% { box-shadow: 0 0 0 5px #12985508; } }
@keyframes lead-toast-cycle { 0%, 64%, 100% { opacity: 1; transform: translateY(0); } 76% { opacity: 0; transform: translateY(-5px); } 88% { opacity: 0; transform: translateY(7px); } }
/* Each row visits all three slots (rows are 4s apart in a 12s cycle). All rows move down together
   while the bottom one fades out (25–29.333%, 58.333–62.666%, 91.666–96%); right after, that row
   wraps while transparent and enters at the top as the new lead (96–100%). */
@keyframes lead-row-cycle {
  0%, 25% { transform: translateY(0); opacity: 1; background: #f0fbf5; }
  29.333%, 58.333% { transform: translateY(var(--lead-step)); opacity: 1; background: white; }
  62.666%, 91.666% { transform: translateY(calc(var(--lead-step) * 2)); opacity: 1; background: white; }
  95.99% { transform: translateY(calc(var(--lead-step) * 3)); opacity: 0; background: white; }
  96% { transform: translateY(calc(var(--lead-step) * -1)); opacity: 0; background: #f0fbf5; }
  100% { transform: translateY(0); opacity: 1; background: #f0fbf5; }
}
/* The status resets to "New" only while its row is transparent. */
@keyframes lead-status-new { 0%, 17%, 96%, 100% { opacity: 1; transform: translateY(0); } 22%, 95.99% { opacity: 0; transform: translateY(-4px); } }
@keyframes lead-status-qualified { 0%, 17%, 96%, 100% { opacity: 0; transform: translateY(4px); } 22%, 95.99% { opacity: 1; transform: translateY(0); } }
@container (max-width: 540px) {
  .lead-header { flex-wrap: wrap; gap: 12px; padding: 0 5px; margin-bottom: 15px; }
  .lead-toast { margin-left: auto; padding: 8px 10px; font-size: 11px; }
  .lead-check { width: 22px; height: 22px; }
  .lead-title strong { font-size: 26px; }
  .lead-person, .lead-source { gap: 6px; }
  .lead-avatar { width: 30px; height: 30px; }
  .lead-source-icon { width: 25px; height: 25px; border-radius: 7px; }
  .lead-source-icon svg, .lead-source-icon img { width: 17px; height: 17px; }
  .lead-columns, .lead-row { padding: 0 8px; column-gap: 6px; grid-template-columns: 1.35fr 1.16fr .8fr; }
  .lead-status { font-size: 10px; height: 26px; }
  .lead-columns { font-size: 10px; }
  .lead-rows { --lead-step: 64px; }
}
@media (max-width: 809.98px) {
  .tensor-leads { padding: 18px 10px 30px; }
  .tensor-leads .lead-eyebrow { margin-bottom: 12px; font-size: 11px; }
  .lead-dashboard { padding: 14px 8px 8px; border-radius: 15px; }
}
@container (max-width: 360px) {
  .lead-source { font-size: 10.5px; }
}
@container (max-width: 300px) {
  .lead-person .lead-avatar { display: none; }
  .lead-person { font-size: 11px; }
  .lead-source-icon { width: 20px; height: 22px; }
  .lead-source { gap: 3px; font-size: 10px; }
  .lead-columns, .lead-row { padding: 0 6px; grid-template-columns: 1.1fr 1.3fr .85fr; }
}
@media (prefers-reduced-motion: reduce) {
  .tensor-leads * { animation-play-state: paused !important; }
  /* Static feed: one row per slot, the newest lead on top. */
  .tensor-leads .lead-row, .tensor-leads .lead-status span { animation: none !important; }
  .lead-row:nth-child(1) { background: #f0fbf5; }
  .lead-row:nth-child(2) { transform: translateY(var(--lead-step)); }
  .lead-row:nth-child(3) { transform: translateY(calc(var(--lead-step) * 2)); }
  .lead-row:nth-child(1) .lead-qualified, .lead-row:nth-child(n+2) .lead-status span:not(.lead-qualified) { opacity: 0; }
}

.lead-title strong { font-family: "PP Editorial New Ultralight", sans-serif; font-weight: 200; line-height: 1.05; letter-spacing: -.02em; font-feature-settings: "blwf", "cv03", "cv04", "cv09", "cv11"; }
