/* ════════════════════════════════════════════════════════════════════════
   Selliora — Lead page (r763). Styles for selliora-lead-page.js.
   Everything is scoped to .lp2-page so other pages are untouched.
   ════════════════════════════════════════════════════════════════════════ */
.lp2-page{
  --lp2-card:var(--s,#fff);--lp2-bd:var(--bd,#E2E8F0);--lp2-ink:var(--t,#0F172A);--lp2-ink2:var(--t2,#334155);--lp2-mute:var(--t3,#64748B);
  --lp2-blue:#1D4ED8;--lp2-blue2:#1D6FF2;--lp2-blue-bg:#EAF1FE;--lp2-green:#15803D;--lp2-green-bg:#E8F7EE;--lp2-red:#B91C1C;--lp2-violet:#6D28D9;
  --lp2-ring:#3B82F6;--lp2-ring-bg:#DBE7FB;
  --lp2-st-past:#1E2A4A;--lp2-st-cur:#1D6FF2;--lp2-st-next:#DCEAFE;--lp2-st-next-t:#1E3A8A;--lp2-st-won:#DDF5E5;--lp2-st-won-t:#14532D;--lp2-st-lost:#FDE4E4;--lp2-st-lost-t:#7F1D1D;
  --lp2-r:12px;
}
[data-theme="dark"] .lp2-page{
  --lp2-blue:#7EA8FF;--lp2-blue-bg:rgba(59,130,246,.16);--lp2-green:#4ADE80;--lp2-green-bg:rgba(34,197,94,.14);--lp2-red:#F87171;--lp2-violet:#C4B5FD;
  --lp2-ring-bg:#22324D;--lp2-st-next:#1B2B47;--lp2-st-next-t:#BFD3FF;--lp2-st-won:#16301F;--lp2-st-won-t:#9BE7B4;--lp2-st-lost:#3A1B1B;--lp2-st-lost-t:#FCA5A5;
}
.lp2-page .lpv-content{gap:10px}
.lp2-page .lp2-i{flex:none;display:inline-block;vertical-align:middle}
.lp2-dim{color:var(--lp2-mute)}
.lp2-red{color:var(--lp2-red)!important}
.lp2-link{color:var(--lp2-blue);font-weight:700;font-size:12px;cursor:pointer;text-decoration:none}
.lp2-link:hover{text-decoration:underline}
.lp2-k{display:block;font-size:11.5px;color:var(--lp2-mute);font-weight:500}
.lp2-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* top row */
.lp2-top{display:flex;align-items:center;gap:8px;flex:none;margin:0 0 -2px!important;min-height:28px}
#page-profile > .lpv-split.lp2-page{margin-top:-16px}
.lp2-top .btn.sm{height:26px;padding:0 9px;font-size:12px}
.lp2-back{display:inline-flex;align-items:center;gap:6px;background:none;border:0;color:var(--lp2-ink);font:inherit;font-size:13px;font-weight:700;cursor:pointer;padding:2px 2px}
.lp2-back .lp2-i{color:var(--lp2-blue)}
.lp2-pager{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--lp2-mute)}

/* header */
.lp2-hero{flex:none;background:var(--lp2-card);border:1px solid var(--lp2-bd);border-radius:12px;padding:12px 16px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;box-shadow:0 1px 2px rgba(15,23,42,.04)}
.lp2-who{display:flex;align-items:center;gap:14px;min-width:0;flex:1 1 420px}
.lp2-ava{position:relative;flex:none;width:50px;height:50px;border-radius:50%;background:#0F1B33;color:#fff;display:grid;place-items:center;font-size:18px;font-weight:800}
.lp2-ava-b{position:absolute;right:-3px;bottom:-3px;width:20px;height:20px;border-radius:50%;background:#16A34A;border:3px solid var(--lp2-card);display:grid;place-items:center;color:#fff}
.lp2-who-t{min-width:0;display:flex;flex-direction:column;gap:4px}
.lp2-name-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.lp2-name{margin:0;font-size:19px;line-height:1.2;font-weight:800;letter-spacing:-.3px;color:var(--lp2-ink)}
.lp2-pill{display:inline-flex;align-items:center;gap:4px;height:21px;padding:0 8px;border-radius:6px;font-size:11.5px;font-weight:700}
.lp2-pill-g{background:var(--lp2-green-bg);color:var(--lp2-green)}
.lp2-pill-b{background:var(--lp2-blue-bg);color:var(--lp2-blue)}
.lp2-meta{display:flex;flex-wrap:wrap;align-items:center;gap:4px 16px;font-size:12.5px;color:var(--lp2-ink2);font-weight:500}
.lp2-m{display:inline-flex;align-items:center;gap:6px;color:inherit;text-decoration:none}
a.lp2-m:hover{color:var(--lp2-blue)}
.lp2-m .lp2-i{color:var(--lp2-blue)}
.lp2-copy{cursor:pointer}
.lp2-tag{display:inline-flex;align-items:center;gap:6px;padding:3px 9px;border-radius:6px;background:var(--s2,#F1F5F9);color:var(--lp2-ink);font-weight:700;font-size:12px}
.lp2-tag .lp2-i{color:var(--lp2-blue)}
.lp2-sub{font-size:11.5px;color:var(--lp2-mute)}
.lp2-acts{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.lp2-btn{position:relative;height:36px;padding:0 12px;border-radius:8px;font:inherit;font-size:13px;font-weight:700;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--lp2-bd);background:var(--lp2-card);color:var(--lp2-ink);transition:filter .15s,background .15s}
.lp2-btn:hover{filter:brightness(.97)}
.lp2-green{background:#15803D;border-color:#15803D;color:#fff;min-width:92px}
.lp2-green:hover{filter:brightness(1.08)}
.lp2-violet{border-color:#C4B5FD;color:var(--lp2-violet)}
.lp2-blue{border-color:#93B4F5;color:var(--lp2-blue)}
.lp2-teal{border-color:#99D5D0;color:#0F766E}
[data-theme="dark"] .lp2-teal{color:#5EEAD4}
[data-theme="dark"] .lp2-ava{background:#2B3B62}
.lp2-icon{width:36px;padding:0}
.lp2-cnt{position:absolute;top:-7px;right:-7px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:#DC2626;color:#fff;font-size:10.5px;font-weight:800;display:grid;place-items:center;border:2px solid var(--lp2-card)}

/* stage arrows */
.lp2-stages{flex:none}
.lp2-st-row{display:flex;align-items:stretch}
.lp2-st{flex:1 1 0;min-width:110px;display:flex;align-items:center;gap:10px;height:46px;padding:0 22px 0 30px;margin-left:-14px;border:0;font:inherit;text-align:left;cursor:pointer;position:relative;
  clip-path:polygon(0 0,calc(100% - 18px) 0,100% 50%,calc(100% - 18px) 100%,0 100%,18px 50%)}
.lp2-st-first{margin-left:0;padding-left:18px;border-radius:12px 0 0 12px;clip-path:polygon(0 0,calc(100% - 18px) 0,100% 50%,calc(100% - 18px) 100%,0 100%)}
.lp2-st-last{border-radius:0 12px 12px 0;clip-path:polygon(0 0,100% 0,100% 100%,0 100%,18px 50%)}
.lp2-st-one{margin-left:0;border-radius:12px;clip-path:none}
.lp2-st:hover{filter:brightness(1.04)}
.lp2-st-dot{width:26px;height:26px;border-radius:50%;flex:none;display:grid;place-items:center;background:#fff}
.lp2-st-t{display:flex;flex-direction:column;gap:0;min-width:0}
.lp2-st-t b{font-size:13px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lp2-st-t small{font-size:11px;font-weight:600;opacity:.85;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lp2-st-past{background:var(--lp2-st-past);color:#fff}
.lp2-st-past .lp2-st-dot{background:rgba(255,255,255,.16);color:#fff}
.lp2-st-cur{background:var(--lp2-st-cur);color:#fff}
.lp2-st-cur .lp2-st-dot{color:var(--lp2-st-cur)}
.lp2-st-next{background:var(--lp2-st-next);color:var(--lp2-st-next-t)}
.lp2-st-next .lp2-st-dot{color:#1D6FF2}
.lp2-st-won,.lp2-st-won-on{background:var(--lp2-st-won);color:var(--lp2-st-won-t)}
.lp2-st-won .lp2-st-dot,.lp2-st-won-on .lp2-st-dot{color:#15803D}
.lp2-st-won-on{background:#15803D;color:#fff}
.lp2-st-lost,.lp2-st-lost-on{background:var(--lp2-st-lost);color:var(--lp2-st-lost-t)}
.lp2-st-lost .lp2-st-dot,.lp2-st-lost-on .lp2-st-dot{color:#DC2626}
.lp2-st-lost-on{background:#DC2626;color:#fff}
.lp2-st-end{margin-top:6px}

/* three columns */
.lp2-page .lp2-body{flex:1 1 auto;min-height:0;display:flex;gap:10px;align-items:stretch}
.lp2-left,.lp2-right{flex:0 0 250px;min-width:0;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:10px;padding-right:2px}
.lp2-right{flex-basis:300px}
.lp2-left > *,.lp2-right > *{flex:none}
.lp2-mid{flex:1 1 400px;min-width:0;display:flex;flex-direction:column;background:var(--lp2-card);border:1px solid var(--lp2-bd);border-radius:var(--lp2-r);overflow:hidden}
.lp2-mid #lpv_tab_body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:12px 14px}
.lp2-left::-webkit-scrollbar,.lp2-right::-webkit-scrollbar,.lp2-mid #lpv_tab_body::-webkit-scrollbar{width:6px}
.lp2-left::-webkit-scrollbar-thumb,.lp2-right::-webkit-scrollbar-thumb,.lp2-mid #lpv_tab_body::-webkit-scrollbar-thumb{background:var(--bd2,#CBD5E1);border-radius:4px}

/* cards */
.lp2-card{background:var(--lp2-card);border:1px solid var(--lp2-bd);border-radius:var(--lp2-r);padding:12px 14px;display:flex;flex-direction:column;gap:8px}
.lp2-card-h{display:flex;align-items:center;gap:8px}
.lp2-card-h h2{margin:0;flex:1;font-size:13px;font-weight:800;color:var(--lp2-ink);white-space:nowrap;text-transform:none;letter-spacing:0}
.lp2-hi{color:var(--lp2-blue);display:inline-grid;place-items:center}
.lp2-go{width:26px;height:26px;border:0;background:none;color:var(--lp2-mute);cursor:pointer;border-radius:6px;display:grid;place-items:center}
.lp2-go:hover{background:var(--s2,#F1F5F9);color:var(--lp2-ink)}

.lp2-score{display:flex;align-items:center;gap:12px}
.lp2-ring{position:relative;width:72px;height:72px;flex:none}
.lp2-ring svg{width:72px;height:72px}
.lp2-ring > div{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center}
.lp2-ring b{font-size:21px;font-weight:800;line-height:1;color:var(--lp2-ink)}
.lp2-ring small{font-size:11px;color:var(--lp2-mute);font-weight:600}
.lp2-sc-side{display:flex;flex-direction:column;gap:6px;min-width:0}
.lp2-band{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:700}
.lp2-band i{width:8px;height:8px;border-radius:50%;display:inline-block}

.lp2-q{display:flex;align-items:center;gap:8px;font-size:12px}
.lp2-q-i{width:18px;color:var(--lp2-blue);display:grid;place-items:center;flex:none}
.lp2-q-i.lp2-gr{color:#16A34A}
.lp2-q-i.lp2-rd{color:#DC2626}
.lp2-q-k{width:76px;flex:none;color:var(--lp2-mute);font-weight:500}
.lp2-q-v{font-weight:600;color:var(--lp2-ink);min-width:0;overflow-wrap:anywhere}
.lp2-fu{display:flex;gap:8px;align-items:flex-start;font-size:12px}
.lp2-fu .lp2-q-i{margin-top:2px}
.lp2-fu b{font-weight:600;color:var(--lp2-ink)}

.lp2-wa{flex-direction:row;align-items:center;gap:12px;padding:12px 14px}
.lp2-wa-i{width:34px;height:34px;border-radius:50%;background:#16A34A;color:#fff;display:grid;place-items:center;flex:none}
.lp2-wa-t{display:flex;flex-direction:column;gap:1px;min-width:0}
.lp2-wa-t b{font-size:13px;color:var(--lp2-ink)}
.lp2-wa-t small{font-size:11.5px;color:var(--lp2-mute)}

/* AI Insights (filled by selliora-copilot.js) */
.lp2-page .lp2-ai{margin:0!important;border-radius:var(--lp2-r)!important;border:1px solid var(--lp2-bd)!important;box-shadow:none!important}
.lp2-page .lp2-ai .cp-r-h{color:var(--lp2-blue)}
.lp2-page .lp2-ai .cp-r-h b{font-size:13px;font-weight:800}
.lp2-page .lp2-ai{padding:12px 14px!important;font-size:12.5px}
.lp2-page .lp2-ai .cp-r-sum{font-size:12.5px;line-height:1.55}

/* tabs */
.lp2-tabs{display:flex;gap:2px;padding:0 10px;border-bottom:1px solid var(--lp2-bd);overflow-x:auto;flex:none;scrollbar-width:none}
.lp2-tabs::-webkit-scrollbar{display:none}
.lp2-tab{flex:none;height:40px;padding:0 9px;border:0;background:none;font:inherit;font-size:12.5px;font-weight:600;color:var(--lp2-ink2);cursor:pointer;display:inline-flex;align-items:center;gap:6px;box-shadow:inset 0 -2px 0 transparent}
.lp2-tab:hover{color:var(--lp2-ink)}
.lp2-tab.on{color:var(--lp2-blue);font-weight:800;box-shadow:inset 0 -2px 0 var(--lp2-blue)}
.lp2-badge{font-size:11px;font-weight:800;color:#fff;background:var(--lp2-blue);padding:1px 7px;border-radius:6px}
[data-theme="dark"] .lp2-badge{color:#0B0F16}

/* Overview tab: sections and field tiles */
.lp2-overview > .card{border:0!important;box-shadow:none!important;padding:0!important;background:none!important}
.lp2-overview .lpv-details-sec{margin-bottom:14px}
.lp2-overview .lpv-sec-h{text-transform:capitalize!important;display:flex!important;align-items:center;gap:8px;font-size:13.5px!important;font-weight:800!important;text-transform:none!important;letter-spacing:0!important;color:var(--lp2-ink)!important;border:0!important;margin:4px 0 10px!important;padding:0!important}
.lp2-overview .lpv-details-grid{grid-template-columns:repeat(auto-fill,minmax(min(215px,100%),1fr))!important;gap:8px!important}
.lp2-overview .lpv-row{position:relative;display:grid!important;grid-template-columns:22px minmax(0,1fr);grid-template-areas:"i l" "i v";column-gap:10px!important;row-gap:2px;align-items:center!important;align-content:center;padding:8px 28px 8px 10px!important;border:1px solid var(--lp2-bd)!important;border-radius:9px;background:var(--lp2-card);min-height:48px;box-sizing:border-box}
.lp2-overview .lpv-row > .lp2-fi{grid-area:i;color:var(--lp2-blue);display:grid;place-items:center}
.lp2-overview .lpv-row > .lp2-fi-wa{width:24px;height:24px;border-radius:50%;background:#16A34A;color:#fff}
.lp2-overview .lpv-row > .lp2-fi-wa .lp2-i{width:13px;height:13px}
.lp2-overview .lpv-row > div:nth-of-type(1){grid-area:l;flex:none!important;font-size:11px!important;font-weight:600;color:var(--lp2-mute)!important}
.lp2-overview .lpv-row > div:nth-of-type(2){grid-area:v;font-size:12.5px!important;font-weight:700;color:var(--lp2-ink);overflow:hidden;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.lp2-overview .lpv-row > div:nth-of-type(2):has(input,select,textarea){display:block;-webkit-line-clamp:unset}
.lp2-overview .lpv-row > a.lpv-pen,.lp2-overview .lpv-row > span:last-child:not(.lp2-fi){position:absolute;top:8px;right:9px;opacity:0;transition:opacity .15s}
.lp2-overview .lpv-row:hover > a.lpv-pen,.lp2-overview .lpv-row:hover > span:last-child:not(.lp2-fi){opacity:.7}
.lp2-overview .lpv-row.lp2-empty-f > div:nth-of-type(2){font-weight:500;color:var(--t3,#94A3B8)}
.lp2-overview .lpv-details-grid > div:not(.lpv-row){grid-column:1/-1}

/* right column */
.lp2-sel select{height:28px;padding:0 6px;border:1px solid var(--lp2-bd);border-radius:6px;background:var(--lp2-card);color:var(--lp2-ink);font:inherit;font-size:11.5px;font-weight:700;cursor:pointer}
.lp2-tl-wrap{display:flex;flex-direction:column}
.lp2-tl{display:flex;gap:10px}
.lp2-tl-rail{display:flex;flex-direction:column;align-items:center;flex:none}
.lp2-tl-rail i{width:2px;flex:1;min-height:12px;background:var(--lp2-bd)}
.lp2-tl-dot{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;color:#fff;flex:none}
.lp2-tl-b{flex:1;min-width:0;padding-bottom:14px}
.lp2-tl-top{display:flex;justify-content:space-between;gap:8px;align-items:baseline}
.lp2-tl-top b{font-size:13px;color:var(--lp2-ink)}
.lp2-tl-top small{font-size:11px;color:var(--lp2-mute);white-space:nowrap}
.lp2-tl-b p{margin:2px 0 0;font-size:12px;line-height:1.45;color:var(--lp2-ink2);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.lp2-all{font-size:13px}
.lp2-empty{font-size:12.5px;color:var(--lp2-mute);padding:6px 0}
.lp2-rels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.lp2-rel{display:flex;align-items:center;gap:8px;padding:10px;border:1px solid var(--lp2-bd);border-radius:10px;background:var(--lp2-card);cursor:pointer;font:inherit;text-align:left;color:var(--lp2-mute);min-width:0}
.lp2-rel:hover{border-color:var(--lp2-blue)}
.lp2-rel-i{width:30px;height:30px;border-radius:8px;display:grid;place-items:center;flex:none}
.lp2-rel-i.b{background:var(--lp2-blue-bg);color:var(--lp2-blue)}
.lp2-rel-i.g{background:var(--lp2-green-bg);color:var(--lp2-green)}
.lp2-rel-i.v{background:rgba(124,58,237,.12);color:var(--lp2-violet)}
.lp2-rel-t{flex:1;display:flex;flex-direction:column;min-width:0}
.lp2-rel-t small{font-size:11px;font-weight:600;line-height:1.25}
.lp2-rel-t b{font-size:14px;font-weight:800;color:var(--lp2-ink)}

/* smaller screens: the right column goes under the other two, the page scrolls as a whole */
@media (max-width:1280px){
  #page-profile.active.lp2-on{height:auto!important;overflow:visible!important}
  .lp2-page .lp2-body{flex-wrap:wrap;overflow:visible}
  .lp2-left,.lp2-right{overflow:visible}
  .lp2-mid{flex:1 1 420px;overflow:visible}
  .lp2-mid #lpv_tab_body{overflow:visible}
  .lp2-right{flex:1 1 100%;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(300px,100%),1fr));align-items:start}
}
@media (max-width:820px){
  .lp2-left{flex:1 1 100%}
  .lp2-st-row{overflow-x:auto}
  .lp2-st{min-width:150px}
}

/* r765: the Activity tab as a timeline */
.lp2-page .lp2-tlcard{border:0!important;box-shadow:none!important;padding:0!important;background:none!important}
.lp2-tl-full{margin-top:12px}
.lp2-tl-full .lp2-tl{gap:12px}
.lp2-tl-full .lp2-tl-dot{width:32px;height:32px}
.lp2-tl-full .lp2-tl-b{padding-bottom:16px;border-bottom:1px solid var(--lp2-bd);margin-bottom:14px}
.lp2-tl-full .lp2-tl:last-child .lp2-tl-b{border-bottom:0;margin-bottom:0}
.lp2-tl-h{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap;min-width:0}
.lp2-tl-h b{font-size:13px;color:var(--lp2-ink)}
.lp2-tl-h .pill{font-size:10px!important}
.lp2-tl-txt{margin-top:3px;font-size:12.5px;line-height:1.5;color:var(--lp2-ink2);white-space:pre-wrap;overflow-wrap:anywhere}
.lp2-tl-full .lp2-tl-top small{font-size:11.5px}

/* ════ r765 · WhatsApp chat popup (bottom-right) ════
   A clear edge all round, a WhatsApp-green header, a rounded composer. */
.wa-pop-host{right:20px!important;gap:14px!important}
.wa-pop-host .wapop.wapop{width:372px!important;border:1px solid rgba(15,23,42,.14)!important;border-bottom:0!important;border-radius:16px 16px 0 0!important;
  box-shadow:0 -10px 40px rgba(15,23,42,.22),0 0 0 1px rgba(255,255,255,.04) inset!important;background:#fff!important}
.wa-pop-host .wapop.wapop .wapop-head{background:#0B7A5F!important;border-bottom:0!important;padding:11px 12px!important;gap:10px!important}
.wa-pop-host .wapop.wapop .wapop-av{width:36px!important;height:36px!important;font-size:12.5px!important;box-shadow:0 0 0 2px rgba(255,255,255,.35)!important}
.wa-pop-host .wapop.wapop .wapop-who b{color:#fff!important;font-size:14px!important;font-weight:700!important}
.wa-pop-host .wapop.wapop .wapop-who i{color:rgba(255,255,255,.85)!important;font-size:11px!important}
.wa-pop-host .wapop.wapop .wapop-acts button{color:rgba(255,255,255,.92)!important;width:28px!important;height:28px!important;border-radius:8px!important}
.wa-pop-host .wapop.wapop .wapop-acts button:hover{background:rgba(255,255,255,.16)!important;color:#fff!important}
.wa-pop-host .wapop.wapop .wapop-acts button.on,.wa-pop-host .wapop.wapop .wapop-acts button.on svg{color:#FFD54F!important}
.wa-pop-host .wapop.wapop .wapop-badge{background:#fff!important;color:#0B7A5F!important}
.wa-pop-host .wapop.wapop .wapop-bar{background:#F0F2F5!important;border-bottom:1px solid #E2E6EA!important;padding:7px 10px!important;gap:8px!important;display:flex!important}
.wa-pop-host .wapop.wapop .wapop-bar select{flex:1;height:30px!important;border-radius:999px!important;border:1px solid #D9DEE3!important;background:#fff!important;color:#3B4A54!important;font-size:12px!important;font-weight:600!important;padding:0 10px!important}
.wa-pop-host .wapop.wapop .wapop-body{height:380px!important;background-color:#EFEAE2!important;padding:10px 12px 8px!important}
.wa-pop-host .wapop.wapop .wapop-foot{background:#F0F2F5!important;border-top:1px solid #E2E6EA!important;padding:8px 10px!important;gap:4px!important;align-items:center!important}
.wa-pop-host .wapop.wapop .wapop-foot textarea{background:#fff!important;border:1px solid #E2E6EA!important;border-radius:20px!important;padding:9px 14px!important;font-size:13px!important;min-height:38px;box-sizing:border-box}
.wa-pop-host .wapop.wapop .wapop-ic{width:32px;height:32px;border-radius:50%!important;color:#54656F!important}
.wa-pop-host .wapop.wapop .wapop-send{background:#00A884!important;width:38px!important;height:38px!important;box-shadow:0 2px 6px rgba(0,168,132,.35)}
.wa-pop-host .wapop.wapop.min{border-radius:14px 14px 0 0!important}
[data-theme="dark"] .wa-pop-host .wapop.wapop{background:#111B21!important;border-color:#2A3942!important}
[data-theme="dark"] .wa-pop-host .wapop.wapop .wapop-head{background:#1F2C34!important}
[data-theme="dark"] .wa-pop-host .wapop.wapop .wapop-bar,[data-theme="dark"] .wa-pop-host .wapop.wapop .wapop-foot{background:#202C33!important;border-color:#2A3942!important}
[data-theme="dark"] .wa-pop-host .wapop.wapop .wapop-bar select,[data-theme="dark"] .wa-pop-host .wapop.wapop .wapop-foot textarea{background:#2A3942!important;border-color:#2A3942!important;color:#E9EDEF!important}
[data-theme="dark"] .wa-pop-host .wapop.wapop .wapop-body{background-color:#0B141A!important}
@media(max-width:620px){.wa-pop-host{right:0!important}.wa-pop-host .wapop.wapop{width:100%!important}}
body.has-statusbar .wa-pop-host{bottom:26px!important}

/* ════ r767 · Quick Info in the header, icon buttons, Call Log as a timeline ════ */
.lp2-hero{padding:10px 14px!important;gap:12px!important}
.lp2-who{flex:1 1 300px!important}
.lp2-hero .lp2-who{flex:0 1 auto!important}
.lp2-qi{flex:1 1 auto;display:flex;justify-content:center;align-items:center;gap:8px;min-width:0;flex-wrap:wrap}
.lp2-qi-i{display:flex;align-items:center;gap:9px;padding:7px 12px 7px 8px;border-radius:12px;background:var(--s2,#F6F8FB);border:1px solid var(--lp2-bd);min-width:0}
.lp2-qi-ic{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;flex:none}
.lp2-qi-g{background:#E7F7EE;color:#15803D}
.lp2-qi-v{background:#F1ECFE;color:#6D28D9}
.lp2-qi-b{background:#E8F0FE;color:#1D4ED8}
.lp2-qi-a{background:#FEF3E2;color:#B45309}
[data-theme="dark"] .lp2-qi-g{background:rgba(34,197,94,.15);color:#4ADE80}
[data-theme="dark"] .lp2-qi-v{background:rgba(139,92,246,.18);color:#C4B5FD}
[data-theme="dark"] .lp2-qi-b{background:rgba(59,130,246,.18);color:#93C5FD}
[data-theme="dark"] .lp2-qi-a{background:rgba(245,158,11,.16);color:#FCD34D}
.lp2-qi-t{display:flex;flex-direction:column;min-width:0}
.lp2-qi-t small{font-size:10.5px;color:var(--lp2-mute);font-weight:600;line-height:1.2;white-space:nowrap}
.lp2-qi-t b{font-size:12.5px;font-weight:700;color:var(--lp2-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:130px;line-height:1.35}
.lp2-acts .lp2-icon{width:36px;min-width:36px;padding:0}
.lp2-acts .lp2-icon.lp2-violet:hover{background:rgba(124,58,237,.08)}
.lp2-acts .lp2-icon.lp2-blue:hover{background:var(--lp2-blue-bg)}
.lp2-acts .lp2-icon.lp2-teal:hover{background:rgba(15,118,110,.08)}


.lp2-calls [data-testid="lpv-calls"]{border:0!important;box-shadow:none!important;padding:0!important;background:none!important}
.lp2-calls .ktile{padding:8px 12px!important;border-radius:10px!important}
.lp2-calls .ktile-v{font-size:18px!important}
.lp2-calls .act-list{display:flex;flex-direction:column}
.lp2-calls .act-row{position:relative;display:flex;gap:12px;padding:0 0 16px!important;margin:0 0 14px!important;border:0!important;border-bottom:1px solid var(--lp2-bd)!important;background:none!important}
.lp2-calls .act-row:last-child{border-bottom:0!important;margin-bottom:0!important}
.lp2-calls .act-row::before{content:"";position:absolute;left:15px;top:36px;bottom:-14px;width:2px;background:var(--lp2-bd)}
.lp2-calls .act-row:last-child::before{display:none}
.lp2-calls .act-dot{width:32px!important;height:32px!important;min-width:32px;border-radius:50%!important;color:#fff!important;display:grid!important;place-items:center;font-size:0;flex:none}
.lp2-calls .act-name{font-size:13px;font-weight:700;color:var(--lp2-ink)}
.lp2-calls .act-desc{font-size:12px;color:var(--lp2-ink2);margin-top:2px}
.lp2-calls .act-top{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.lp2-calls .act-row{align-items:flex-start!important}
.lp2-calls .act-dot{margin:0!important;align-self:flex-start!important}
.lp2-calls .act-top{justify-content:flex-start!important}
.lp2-calls .act-top .pill:last-child{margin-left:auto}
.lp2-calls .act-body .btn.sm{height:28px;font-size:12px}

/* header as three columns: who | quick info (centred) | buttons */
.lp2-page .lp2-hero{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto;align-items:center}
.lp2-page .lp2-hero .lp2-acts{flex-wrap:nowrap}
.lp2-page .lp2-qi{justify-content:center}
@media (max-width:1360px){
  .lp2-page .lp2-hero{grid-template-columns:minmax(0,1fr) auto}
  .lp2-page .lp2-qi{grid-column:1/-1;grid-row:2;justify-content:flex-start}
}
@media (max-width:820px){
  .lp2-page .lp2-hero{grid-template-columns:1fr}
  .lp2-page .lp2-hero .lp2-acts{flex-wrap:wrap}
  .lp2-page .lp2-qi{grid-row:auto}
}
/* centre block: a tidy 2 × 2 grid on wide screens, one row when it drops under the name */
.lp2-page .lp2-qi{display:grid;grid-template-columns:repeat(2,minmax(0,max-content));gap:6px;justify-content:center}
.lp2-page .lp2-qi-i{padding:5px 12px 5px 6px;border-radius:10px}
.lp2-page .lp2-qi-ic{width:26px;height:26px;border-radius:8px}
@media (max-width:1360px){.lp2-page .lp2-qi{display:flex;flex-wrap:wrap;justify-content:flex-start}}
/* r769: every header action is an icon; Quick Info gets the room — one row of four */
.lp2-page .lp2-acts{gap:6px}
.lp2-page .lp2-acts .lp2-icon{width:38px;height:38px;min-width:38px;border-radius:10px}
.lp2-page .lp2-acts .lp2-green{background:#15803D;border-color:#15803D;color:#fff}
.lp2-page .lp2-acts .lp2-wa{background:#25D366;border-color:#25D366;color:#fff}
.lp2-page .lp2-acts .lp2-green:hover,.lp2-page .lp2-acts .lp2-wa:hover{filter:brightness(1.07)}
.lp2-page .lp2-qi{grid-template-columns:repeat(4,max-content);gap:8px}
@media (max-width:1500px){.lp2-page .lp2-qi{grid-template-columns:repeat(2,max-content)}}

/* r770: Quick Info columns follow how many facts are picked */
.lp2-page .lp2-qi{grid-template-columns:repeat(var(--qi-cols,4),max-content)}
@media (max-width:1500px){.lp2-page .lp2-qi{grid-template-columns:repeat(var(--qi-cols-m,2),max-content)}}
.lp2-qi-r{background:#FDECEC;color:#B91C1C}
[data-theme="dark"] .lp2-qi-r{background:rgba(239,68,68,.16);color:#FCA5A5}
/* Customize window */
.lp2-cz{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:22px;align-items:start}
@media (max-width:700px){.lp2-cz{grid-template-columns:1fr}}
.lp2-cz h3{margin:0 0 3px;font-size:13.5px;font-weight:800;color:var(--t)}
.lp2-cz p{margin:0 0 10px;font-size:12px;color:var(--t3)}
.lp2-cz-list{display:flex;flex-direction:column;gap:6px}
.lp2-cz-row{display:flex;align-items:center;gap:8px;padding:6px 8px;border:1px solid var(--bd);border-radius:10px;background:var(--s)}
.lp2-cz-row .lp2-qi-ic{width:26px;height:26px;border-radius:8px;display:grid;place-items:center}
.lp2-cz-n{width:18px;font-size:11px;font-weight:800;color:var(--t3);text-align:center}
.lp2-cz-l{flex:1;font-size:13px;font-weight:600;color:var(--t)}
.lp2-cz-b{width:28px;height:28px;border:1px solid var(--bd);border-radius:7px;background:var(--s);color:var(--t2);cursor:pointer;display:grid;place-items:center}
.lp2-cz-b:hover:not(:disabled){border-color:var(--p);color:var(--p)}
.lp2-cz-b:disabled{opacity:.35;cursor:default}
.lp2-cz-k{font-size:11px;font-weight:700;color:var(--t3);margin:14px 0 6px;text-transform:uppercase;letter-spacing:.04em}
.lp2-cz-adds{display:flex;flex-wrap:wrap;gap:6px}
.lp2-cz-add{display:inline-flex;align-items:center;gap:5px;height:30px;padding:0 11px;border:1px dashed var(--bd2);border-radius:999px;background:var(--s);color:var(--t2);font:inherit;font-size:12px;font-weight:600;cursor:pointer}
.lp2-cz-add:hover:not(:disabled){border-style:solid;border-color:var(--p);color:var(--p)}
.lp2-cz-add:disabled{opacity:.4;cursor:default}
.lp2-cz-chk{display:flex;align-items:center;gap:8px;padding:6px 2px;font-size:13px;cursor:pointer}
.lp2-cz-chk input{width:auto}

/* r771: Quick Info sits in the exact middle of the header */
.lp2-page .lp2-hero{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important}
.lp2-page .lp2-hero .lp2-who{justify-self:start;min-width:0}
.lp2-page .lp2-hero .lp2-acts{justify-self:end}
.lp2-page .lp2-qi{justify-self:center}
@media (max-width:1360px){
  .lp2-page .lp2-hero{grid-template-columns:minmax(0,1fr) auto!important}
  .lp2-page .lp2-qi{justify-self:start}
}
@media (max-width:820px){.lp2-page .lp2-hero{grid-template-columns:1fr!important}}
/* r771: tighter Overview tab — buttons share the first heading's line, smaller gaps and tiles */
.lp2-mid #lpv_tab_body{padding:10px 12px!important}
.lp2-overview > .card > div:first-child{float:right;margin:0!important;position:relative;z-index:1;gap:6px!important}
.lp2-overview > .card > div:first-child .btn.sm{height:26px;padding:0 9px;font-size:11.5px}
.lp2-overview .lpv-details-sec{margin-bottom:10px!important}
.lp2-overview .lpv-sec-h{margin:2px 0 7px!important;min-height:26px}
.lp2-overview .lpv-details-grid{grid-template-columns:repeat(auto-fill,minmax(min(195px,100%),1fr))!important;gap:6px!important}
.lp2-overview .lpv-row{min-height:44px!important;padding:6px 26px 6px 10px!important}
.lp2-overview .lpv-row > div:nth-of-type(1){font-size:10.5px!important}
.lp2-overview > .card > div:last-child{margin-top:8px!important;padding-top:8px!important}
.lp2-overview .lpv-row.lp2-oneword > div:nth-of-type(2){display:block!important;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}

/* r772: Messages tab as a chat */
.lp2-msg-bar{display:flex;align-items:center;gap:6px;margin-bottom:10px;flex-wrap:wrap}
.lp2-chip{height:30px;padding:0 12px;border-radius:999px;border:1px solid var(--lp2-bd);background:var(--lp2-card);color:var(--lp2-ink2);font:inherit;font-size:12px;font-weight:700;cursor:pointer;display:inline-flex;align-items:center;gap:6px}
.lp2-chip span{font-size:11px;color:var(--lp2-mute);font-weight:700}
.lp2-chip.on{background:var(--lp2-blue-bg);border-color:var(--lp2-blue);color:var(--lp2-blue)}
.lp2-chip.on span{color:var(--lp2-blue)}
.lp2-msg-open{height:32px;padding:0 12px;font-size:12.5px;background:#25D366;border-color:#25D366;color:#fff}
.lp2-msgs{background:#EFEAE2;border-radius:12px;padding:12px 14px;display:flex;flex-direction:column;gap:4px;max-height:calc(100vh - 380px);min-height:260px;overflow-y:auto;border:1px solid var(--lp2-bd)}
[data-theme="dark"] .lp2-msgs{background:#0B141A;border-color:#1F2C34}
.lp2-msg-day{align-self:center;margin:8px 0 6px}
.lp2-msg-day span{font-size:11px;font-weight:600;color:#54656F;background:#fff;padding:3px 10px;border-radius:8px;box-shadow:0 1px .5px rgba(11,20,26,.13)}
[data-theme="dark"] .lp2-msg-day span{background:#182229;color:#8696A0}
.lp2-msg{display:flex;flex-direction:column;align-items:flex-start;max-width:78%;margin:1px 0}
.lp2-msg.out{align-self:flex-end;align-items:flex-end}
.lp2-msg-who{display:inline-flex;align-items:center;gap:4px;font-size:10.5px;font-weight:700;color:#0F766E;margin:4px 6px 2px}
.lp2-msg-who.ai{color:#6D28D9}
.lp2-msg-ch{margin-left:4px;font-size:9.5px;font-weight:800;color:#475569;background:rgba(255,255,255,.75);padding:1px 6px;border-radius:5px}
.lp2-bub{position:relative;background:#fff;color:#111B21;border-radius:8px;border-top-left-radius:0;padding:6px 9px 4px;font-size:13px;line-height:1.45;box-shadow:0 1px .5px rgba(11,20,26,.13);overflow-wrap:anywhere}
.lp2-msg.out .lp2-bub{background:#D9FDD3;border-top-left-radius:8px;border-top-right-radius:0}
[data-theme="dark"] .lp2-bub{background:#202C33;color:#E9EDEF}
[data-theme="dark"] .lp2-msg.out .lp2-bub{background:#005C4B}
.lp2-bub-meta{display:inline-flex;align-items:center;gap:3px;float:right;margin:6px 0 -2px 10px;font-size:10.5px;color:#667781}
[data-theme="dark"] .lp2-bub-meta{color:#8696A0}
.lp2-tick{font-style:normal;letter-spacing:-2px}
.lp2-tick.read{color:#53BDEB}
.lp2-tick.err{color:#DC2626;letter-spacing:0;font-weight:800}
.lp2-msg-err{font-size:11px;color:#B91C1C;margin:2px 6px}
.lp2-msg-empty{display:flex;flex-direction:column;align-items:center;gap:6px;padding:40px 16px;text-align:center;color:var(--lp2-mute);border:1px dashed var(--lp2-bd);border-radius:12px}
.lp2-msg-empty b{color:var(--lp2-ink);font-size:14px}
.lp2-msg-empty span{font-size:12.5px;max-width:360px}

/* r772: Leads page quick tabs (All Leads, Re-Enquired, Referred To Me, Follow-Up, New, Pending) as icons;
   the name shows on hover, the count sits as a small badge */
#page-leads .qtb{position:relative;width:38px;height:38px;min-width:38px;padding:0!important;justify-content:center;gap:0!important;border-radius:10px}
#page-leads .qtb .qt-lbl{display:none}
#page-leads .qtb > svg:first-child{width:26px!important;height:26px!important;margin:0!important}
#page-leads .qtb.on{box-shadow:0 0 0 2px var(--c) inset;background:color-mix(in srgb,var(--c) 8%,transparent)}
#page-leads .qtb .qt-n{position:absolute;top:-6px;right:-6px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--c);color:#fff;font-size:10.5px;font-weight:800;display:grid;place-items:center;line-height:1;border:2px solid var(--s,#fff);margin:0!important}

/* r773: Messages tab = the WhatsApp Chat page look */
.lp2-wachat{background-color:var(--wa-chat-bg)!important;background-image:none!important;border:1px solid var(--wa-border,var(--lp2-bd));border-radius:12px;padding:12px 4% 10px!important;max-height:calc(100vh - 380px);min-height:260px;overflow-y:auto}
.lp2-wachat .wa-bubble{border-radius:10px!important;box-shadow:0 1px 2px rgba(15,23,42,.08)!important;max-width:min(70%,520px)}
.lp2-wachat .wa-bubble.out{background:var(--wa-out-bubble)!important}
.lp2-wachat .wa-bubble.in{background:var(--wa-in-bubble)!important}
.lp2-wachat .wa-bubble::after{display:none!important}

/* r774: Leads toolbar — [Bulk Actions] first, then [Refresh, Filter, Sort, Columns], then the view icons last.
   The chip bar and the view bar are separate nodes (one is rebuilt on every render), so they are
   flattened into the row with display:contents and placed with order. */
#page-leads #sv-leads-row{flex-wrap:nowrap;gap:0!important;column-gap:0!important}
#page-leads #sv-leads-row #lead-chipbar > *{margin-right:8px}
#page-leads #sv-leads-row > #sv-leads-bar{margin-left:12px!important}
#page-leads #sv-leads-row > #lead-chipbar,
#page-leads #sv-leads-row #lead-chipbar > .chipbar-right{display:contents!important}
#page-leads #sv-leads-row #lead-chipbar > *{order:2}
#page-leads #sv-leads-row #lead-chipbar > .qt-row{order:1;flex:1 1 auto;min-width:120px}
#page-leads #sv-leads-row .chipbar-right > .bulk-btn{order:2}
#page-leads #sv-leads-row > #sv-leads-bar{order:6}
#page-leads #sv-leads-row .chipbar-right > .cbtn:not(.bulk-btn){order:4}
#page-leads #sv-leads-row > #lead-pagesize{order:5;width:auto!important;margin:0!important;flex:0 0 auto}
#page-leads #sv-leads-row > #lead-pagesize [data-colpick]{margin:0!important}

/* segmented look: buttons of one group touch, sharing their borders */
#page-leads #sv-leads-row #sv-leads-bar .cbtn-group{gap:0!important}
#page-leads #sv-leads-row .chipbar-right > .cbtn,
#page-leads #sv-leads-row #sv-leads-bar .cbtn,
#page-leads #sv-leads-row > #lead-pagesize .col-gear{border-radius:0!important;margin:0 0 0 -1px!important;width:36px!important;min-width:36px!important;height:34px!important;padding:0!important;position:relative}
#page-leads #sv-leads-row .chipbar-right > .cbtn:hover,
#page-leads #sv-leads-row #sv-leads-bar .cbtn:hover,
#page-leads #sv-leads-row .chipbar-right > .cbtn.on,
#page-leads #sv-leads-row #sv-leads-bar .cbtn.on{z-index:1}
/* group 1 ends: Bulk (left) … last view (right) */
#page-leads #sv-leads-row .chipbar-right > .bulk-btn{border-radius:9px!important;margin:0 0 0 auto!important;display:inline-grid!important;place-items:center!important;gap:0!important}
#page-leads #sv-leads-row #sv-leads-bar .cbtn:last-child{border-radius:0 9px 9px 0!important}
#page-leads #sv-leads-row #sv-leads-bar .cbtn:first-child{border-radius:9px 0 0 9px!important;margin-left:0!important}
/* group 2: Refresh … Columns */
#page-leads #sv-leads-row .chipbar-right > .cbtn[onclick^="cbRefresh"]{border-radius:9px 0 0 9px!important;margin-left:12px!important}
#page-leads #sv-leads-row .chipbar-right > .cbtn[onclick^="cbSort"]{border-radius:0 9px 9px 0!important}
#page-leads #sv-leads-row > #lead-pagesize .col-gear{margin-left:-1px!important;border-radius:0 9px 9px 0!important;display:inline-grid!important;place-items:center!important;border:1px solid var(--bd2)!important;background:transparent!important;color:var(--t2)!important}
#page-leads #sv-leads-row:has(> #lead-pagesize .col-gear) .chipbar-right > .cbtn[onclick^="cbSort"]{border-radius:0!important}
/* Bulk Actions as an icon; the ticked count is a corner badge */
#page-leads #sv-leads-row .bulk-btn > span,
#page-leads #sv-leads-row .bulk-btn > svg:last-of-type:not(:first-of-type){display:none!important}
#page-leads #sv-leads-row .bulk-btn .bulk-n{position:absolute;top:-7px;right:-7px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--acc);color:#fff;font-size:10.5px;font-weight:800;display:grid;place-items:center;line-height:1;border:2px solid var(--s,#fff);margin:0!important;z-index:2}
#page-leads #sv-leads-row .bulk-btn.on{background:color-mix(in srgb,var(--acc) 10%,transparent)!important;color:var(--acc)!important;border-color:var(--acc)!important}

/* Upload next to + in the top bar */
.topbar .tb-right .tb-io .tb-btn{width:38px;height:38px;padding:0;border:1px solid var(--bd2);border-radius:10px;background:var(--s);color:var(--t2)}
.topbar .tb-right .tb-io .tb-btn:hover{border-color:var(--acc);color:var(--acc)}

@media(max-width:820px){
  #page-leads #sv-leads-row{flex-wrap:wrap;row-gap:8px!important}
  #page-leads #sv-leads-row #lead-chipbar > .qt-row{flex-basis:100%}
}
/* r774: room above the quick tabs so the corner count badges are not cut off (the row scrolls sideways, so it clips) */
#page-leads #lead-chipbar .qt-row{padding:9px 9px 2px 2px!important;margin-top:-9px!important;margin-bottom:-2px!important;align-items:center}

/* r776: table headings in black (dark text in dark mode) on every list — Leads, Opportunities, Tasks, Activity, … */
.page thead th,.page thead th .th-lab,.page thead th .th-lab > span:not([style*="opacity"]),.page thead th > span:not(.th-grip){color:var(--t)!important}
.page thead th{font-weight:700!important}

/* r777: a template someone else created opens read-only */
#template-modal.tp-ro #tp_save_draft,#template-modal.tp-ro #tp_save_main{display:none!important}
#template-modal.tp-ro .modal button:not(.modal-close):not(.tp-ro-note button):not(.modal-actions button){pointer-events:none;opacity:.45}
#template-modal.tp-ro input:disabled,#template-modal.tp-ro select:disabled,#template-modal.tp-ro textarea:disabled{opacity:1;color:var(--t);background:var(--s2);cursor:default}
.tp-ro-note{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 12px;padding:10px 12px;border-radius:10px;border:1px solid color-mix(in srgb,var(--acc,#f97316) 35%,var(--bd));background:color-mix(in srgb,var(--acc,#f97316) 8%,var(--s));font-size:12.5px;color:var(--t)}
.tp-ro-note .btn{margin-left:auto}
