/* Scene: leads */
.leads { position: relative; padding: 18px; width: 100%; min-width: 0; font-family: var(--sans); --rh: 44px; }
.leads-nt, .leads-nt * { transition: none !important; animation: none !important; }
.leads-stage { display: grid; grid-template-columns: minmax(0, 190px) 18px minmax(0, 1fr); align-items: center; }

/* follower list */
.leads-ig { background: #fff; color: #111; border-radius: 16px; overflow: hidden; box-shadow: 0 24px 50px -24px rgba(0,0,0,.9); }
.leads-igh { display: flex; align-items: center; gap: 8px; padding: 11px 12px 8px; }
.leads-igh > img { width: 18px; height: 18px; display: block; flex: none; margin-left: auto; }
.leads-hav { width: 30px; height: 30px; border-radius: 50%; flex: none; overflow: hidden; box-shadow: 0 0 0 1.5px #fff, 0 0 0 3px #E1306C; margin: 3px; }
.leads-hav img, .leads-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.leads-igh b { display: block; font-size: 12px; font-weight: 600; line-height: 1.2; } .leads-igh small { font-size: 10px; color: #737373; display: block; line-height: 1.2; }
.leads-tabs { display: grid; grid-template-columns: 1fr 1fr; text-align: center; font-size: 10.5px; font-weight: 600; color: #A0A0A0; border-bottom: 1px solid #EFEFEF; }
.leads-tabs span { padding: 6px 0 7px; } .leads-tabs .on { color: #111; box-shadow: 0 1.5px 0 #111; }
.leads-view { height: calc(var(--rh) * 5); overflow: hidden; position: relative; }
.leads-view::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: linear-gradient(transparent, #fff); pointer-events: none; }
.leads-list { transition: transform .75s cubic-bezier(.6,0,.2,1); }
.leads.p2 .leads-list { transform: translateY(calc(var(--rh) * -5)); }
.leads.fast .leads-list { transform: translateY(calc(var(--rh) * -25)); transition: transform 2.7s cubic-bezier(.5,0,.15,1); }
.leads-r { height: var(--rh); display: flex; align-items: center; gap: 8px; padding: 0 10px 0 12px; position: relative; transition: opacity .45s, background .4s; }
.leads-av { width: 28px; height: 28px; border-radius: 50%; flex: none; overflow: hidden; display: grid; place-items: center; font-size: 11px; font-weight: 600; color: #fff; background: linear-gradient(135deg, hsl(var(--h) 70% 62%), hsl(calc(var(--h) + 40) 65% 42%)); }
.leads-rt { min-width: 0; flex: 1; line-height: 1.25; } .leads-rt b { display: block; font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leads-l2 { display: grid; } .leads-l2 > * { grid-area: 1 / 1; font-size: 9.5px; white-space: nowrap; transition: opacity .3s, transform .4s var(--ease); }
.leads-l2 small { color: #8A8A8A; } .leads-l2 em { font-style: normal; overflow: hidden; text-overflow: ellipsis; color: #8A8A8A; opacity: 0; transform: translateY(5px); display: flex; align-items: center; gap: 3px; }
.leads-l2 svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; flex: none; }
.leads-r.pk .leads-l2 small, .leads-r.sk .leads-l2 small { opacity: 0; transform: translateY(-5px); }
.leads-r.pk .leads-l2 em, .leads-r.sk .leads-l2 em { opacity: 1; transform: none; }
.leads-r.pk { background: #E9F9F0; } .leads-r.pk .leads-l2 em { color: #0B7A45; font-weight: 600; }
.leads-r.sk { opacity: .32; }
.leads-ck { width: 16px; height: 16px; border-radius: 50%; background: #1FA463; display: grid; place-items: center; flex: none; transform: scale(0); transition: transform .45s var(--ease); }
.leads-ck svg { width: 10px; height: 10px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.leads-r.pk .leads-ck { transform: scale(1); }

/* connector */
.leads-link { position: relative; height: 2px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.22) 0 3px, transparent 3px 6px); }
.leads-link i { position: absolute; left: 0; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); opacity: 0; }
.leads-link.go i { animation: leads-go .45s ease-out; }
@keyframes leads-go { 0% { opacity: 1; transform: translateX(-4px); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateX(16px); } }

/* sheet */
.leads-sheet { background: #fff; color: #202124; border-radius: 12px; overflow: hidden; box-shadow: 0 24px 50px -24px rgba(0,0,0,.9); min-width: 0; }
.leads-sh { display: flex; align-items: center; gap: 8px; padding: 9px 12px 8px; background: #F9FBFD; border-bottom: 1px solid #E1E3E6; }
.leads-sh > img { width: 17px; height: 23px; object-fit: contain; display: block; flex: none; }
.leads-stt { min-width: 0; line-height: 1.25; } .leads-stt b { display: block; font-size: 12px; font-weight: 500; white-space: nowrap; } .leads-stt small { font-size: 9px; color: #5F6368; white-space: nowrap; }
.leads-cnt { margin-left: auto; text-align: right; line-height: 1; flex: none; } .leads-cnt small { display: block; font-size: 8.5px; color: #5F6368; margin-top: 3px; letter-spacing: .02em; }
.leads-odo { display: inline-flex; align-items: flex-start; font: 600 22px/1 var(--mono); color: #0B7A45; height: 1em; overflow: hidden; letter-spacing: -.02em; }
.leads-d { display: block; overflow: hidden; transition: transform .45s var(--ease), max-width .4s, opacity .4s; transform: translateY(calc(var(--n) * -1em)); }
.leads-d i { display: block; height: 1em; font-style: normal; }
.leads-d0 { --n: var(--n0, 0); } .leads-d1 { --n: var(--n1, 0); max-width: 0; opacity: 0; } .leads-d2 { --n: var(--n2, 0); max-width: 0; opacity: 0; }
.leads.fast .leads-d { transition: transform 2.5s cubic-bezier(.3,.1,.1,1), max-width .4s, opacity .4s; } .leads.fast .leads-d1, .leads.fast .leads-d2 { max-width: 1em; opacity: 1; }
.leads-sr { display: grid; grid-template-columns: 22px minmax(0, 1fr) minmax(0, 1.3fr) 58px; font-size: 10px; line-height: 1; border-bottom: 1px solid #E8EAED; position: relative; }
.leads-sr span { padding: 6px 5px; border-right: 1px solid #E8EAED; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.leads-sr span:first-child { background: #F8F9FA; color: #5F6368; text-align: center; padding: 6px 0; font-size: 9px; } .leads-sr span:last-child { border-right: 0; text-align: right; }
.leads-ab span { background: #F8F9FA; color: #5F6368; text-align: center !important; font-size: 9px; padding: 4px 0; }
.leads-hr span:not(:first-child) { font-weight: 600; background: #E6F4EA; color: #0B5E36; }
.leads-rows .leads-sr span:nth-child(3) { font-family: var(--mono); font-size: 9px; letter-spacing: -.02em; color: #1558B0; }
.leads-rows .leads-sr span:not(:first-child) { opacity: 0; transition: opacity .35s; }
.leads-rows .leads-sr.on span { opacity: 1; }
.leads-rows .leads-sr::after { content: ''; position: absolute; inset: 0 0 0 22px; background: #B7EBCB; opacity: 0; pointer-events: none; }
.leads-rows .leads-sr.on::after { animation: leads-flash 1s ease-out; }
@keyframes leads-flash { 0% { opacity: .85; } 100% { opacity: 0; } }
.leads-sf { display: flex; align-items: center; justify-content: space-between; padding: 6px 10px; background: #F9FBFD; font-size: 9.5px; color: #5F6368; }
.leads-sf span { color: #0B7A45; font-weight: 600; box-shadow: 0 -2px 0 #0B7A45 inset; padding: 2px 8px 5px; margin: -2px 0 -6px; background: #E6F4EA; border-radius: 0 0 4px 4px; }
.leads-sf em { font-style: normal; font-weight: 600; color: #0B7A45; opacity: 0; transition: opacity .5s; } .leads-sf.on em { opacity: 1; }

/* outcome */
.leads-out { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 11px 14px; border-radius: 14px; background: var(--ok-bg); border: 1px solid rgba(61,214,140,.28); font-size: 12.5px; line-height: 1.4; color: var(--mute); opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .6s var(--ease); }
.leads-out.on { opacity: 1; transform: none; } .leads-out b { color: var(--ink); font-weight: 600; }
.leads-ok { width: 20px; height: 20px; border-radius: 50%; background: var(--ok); display: grid; place-items: center; flex: none; }
.leads-ok svg { width: 12px; height: 12px; fill: none; stroke: #06140D; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 600px) {
  .leads { padding: 12px; --rh: 38px; }
  .leads-stage { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .leads-link { display: none; } .leads-rows .leads-sr:nth-child(n+7) { display: none; }
  .leads-view { height: calc(var(--rh) * 5); } .leads-av { width: 24px; height: 24px; font-size: 10px; }
  .leads-out { font-size: 11.5px; margin-top: 12px; }
}
@media (min-width: 1001px) and (max-width: 1180px) {
  .leads-stage { grid-template-columns: minmax(0, 168px) 14px minmax(0, 1fr); }
  .leads-sr { grid-template-columns: 22px minmax(0, 1fr) minmax(0, 1.5fr); } .leads-sr span:nth-child(4) { display: none; } .leads-stt small { display: none; }
}
.leads-hr span:last-child { font-size: 9.5px; }
