/* ===== 7.52 full redesign: the mockup on every screen ===== */
:root{--bg:#F5F7FB;--side:#FFFFFF;--card:#FFFFFF;--sf2:#F1F4F9;--btnb:#FFFFFF;--glass-b:#E3E8EF;--ln2:#D3DAE4;--line:#EDF1F6;--fill:#F1F4F9;--fg:#0F172A;--fg2:#334155;--muted:#5B6778;
  --blue:#1760F0;--bluebg:#EAF1FF;--blueln:#BCD2FF;--amber:#B45309;--amberbg:#FEF3E2;--amberln:#F3D3A4;--red:#C62828;--redbg:#FDECEC;--redln:#F5C2C2;--violet:#6D4AE0;--green:#0F8A4F}
html.dark{--bg:#0B0F14;--side:#0E1319;--card:#12181F;--sf2:#161D25;--btnb:#1A2129;--glass-b:#1E2630;--ln2:#2A3542;--line:#1A212B;--fill:#161D25;--fg:#E6EDF3;--fg2:#B6C2CE;--muted:#8B98A5;
  --blue:#4C8DFF;--bluebg:#15233F;--blueln:#2A4A82;--amber:#FFB547;--amberbg:#33270F;--amberln:#57421A;--red:#FF8A8A;--redbg:#2A1416;--redln:#4A2226;--violet:#B49BFF;--green:#3DDC97}
html.nd body,html.nd .app,html.nd .screens,html.nd .screen{background:var(--bg)!important}
html.nd body{color:var(--fg)}

/* ---------- rail (PC) ---------- */
@media (min-width:1100px){
  html.nd .app{grid-template-columns:72px minmax(0,1fr)!important;grid-template-rows:76px minmax(0,1fr)!important}
  html.nd .tabbar{padding:16px 0!important;align-items:center!important;gap:6px!important;background:var(--side)!important;border-right:1px solid var(--glass-b)!important;overflow:visible!important}
  html.nd .tabbar .brand{order:0;width:44px!important;height:44px!important;min-height:44px;border-radius:12px!important;background:var(--bluebg)!important;display:grid!important;place-items:center!important;padding:0!important;margin:0 0 14px!important;flex:none;cursor:pointer}
  html.nd .tabbar .brand svg:not(.lu){width:34px!important;height:34px!important}
  html.nd #sb-tog,html.nd .tabbar .grp,html.nd .tabbar button.sub[data-go],html.nd .tabbar .legal,html.nd .tabbar .dkfoot{display:none!important}
  html.nd .tabbar button[data-go],html.nd .tabbar .rset{width:48px!important;height:48px!important;min-height:48px!important;flex:none!important;padding:0!important;margin:0!important;border:0!important;border-radius:14px!important;display:grid!important;place-items:center!important;color:var(--muted)!important;background:transparent!important;position:relative;cursor:pointer}
  html.nd .tabbar button[data-go] svg,html.nd .tabbar .rset svg{width:22px!important;height:22px!important;stroke:currentColor!important;stroke-width:2!important;transform:none!important}
  html.nd .tabbar button[data-go]:hover,html.nd .tabbar .rset:hover{background:var(--fill)!important;color:var(--fg)!important}
  html.nd .tabbar button[data-go].on{background:var(--bluebg)!important;color:var(--blue)!important}
  html.nd .tabbar button[data-go] .anx{display:none!important}
  html.nd .tabbar [data-go=home]{order:1}html.nd .tabbar [data-go=leads]{order:2}html.nd .tabbar [data-go=notes]{order:3}html.nd .tabbar [data-go=qblast]{order:4}
  html.nd .tabbar [data-go=skip]{order:5}html.nd .tabbar [data-go=buyers]{order:6}html.nd .tabbar [data-go=analyze]{order:7}html.nd .tabbar [data-go=more]{order:8}
  html.nd .tabbar .rset{order:20;margin-top:auto!important}
  html.nd .tabbar .dkuser{order:21;width:auto!important;padding:0!important;margin:6px 0 0!important;background:none!important;border:0!important}
  html.nd .tabbar .uchip{padding:0!important;background:none!important;border:0!important;justify-content:center}
  html.nd .tabbar .uchip .av,html.nd .tabbar .dkuser .av{width:38px!important;height:38px!important;font-size:13px!important}
  html.nd .tabbar .badge{position:absolute!important;top:8px!important;right:8px!important;min-width:8px;height:8px;padding:0;font-size:0;border-radius:50%;background:var(--blue)!important}
  html.nd.electron body::before{left:72px!important}

  /* top bar */
  html.nd .topbar{height:76px!important;padding:0 32px!important;background:var(--bg)!important;border:0!important;display:flex!important;align-items:center!important;gap:12px!important}
  html.nd .topbar .gs{flex:1 1 320px!important;max-width:560px!important;height:44px!important;border-radius:12px!important;background:var(--card)!important;border:1px solid var(--glass-b)!important;margin:0!important}
  html.nd .topbar .gs input{font-size:14px!important}
  html.nd .topbar .tbact{margin-left:auto!important;display:flex!important;align-items:center!important;gap:8px!important}
  html.nd .topbar .tbnew{height:44px!important;border-radius:12px!important;padding:0 18px!important;font-weight:700!important;background:var(--blue)!important;color:#fff!important}
  html.nd .topbar .tbsep{display:none!important}
  html.nd .topbar [data-settings]{display:none!important}
  html.nd .topbar .ib{width:40px!important;height:40px!important;border-radius:12px!important;color:var(--muted)!important}
  html.nd .topbar .ib:hover{background:var(--card)!important;color:var(--fg)!important}
}
.tbpills{display:flex;gap:8px;align-items:center}
.tbp{height:32px;border-radius:999px;background:var(--card);border:1px solid var(--glass-b);display:inline-flex;align-items:center;gap:8px;padding:0 12px;font:inherit;font-size:12.5px;color:var(--fg2);cursor:pointer;white-space:nowrap}
.tbp:hover{border-color:var(--ln2)}.tbp i{width:8px;height:8px;border-radius:50%;background:var(--muted)}.tbp i.on{background:var(--blue)}.tbp i.warn{background:var(--amber)}
@media (max-width:1099px){.tbpills{display:none}}

/* ---------- phone tab bar ---------- */
@media (max-width:1099px){
  html.nd .tabbar{background:var(--side)!important;border-top:1px solid var(--glass-b)!important;backdrop-filter:none!important;box-shadow:none!important}
  html.nd .tabbar button[data-go]{color:var(--muted)!important;font-size:10.5px!important;font-weight:500!important}
  html.nd .tabbar button[data-go].on{color:var(--blue)!important;font-weight:650!important}
  html.nd .tabbar button[data-go].on svg{stroke:var(--blue)!important}
}

/* ---------- page headers and the page grid ---------- */
html.nd .screen > header.top{padding:8px 32px 18px!important;background:transparent!important;border:0!important;align-items:flex-end!important;min-height:0!important;backdrop-filter:none!important}
html.nd .screen > header.top h1{font-family:var(--head)!important;font-size:32px!important;font-weight:700!important;letter-spacing:-.02em!important;line-height:1.1!important;margin:0!important}
html.nd .screen > header.top .sub{font-size:14px!important;color:var(--muted)!important;margin-top:4px!important;font-weight:400!important}
html.nd .screen > header.top .tools{gap:8px!important}
html.nd .screen > header.top .tools .ib{width:40px!important;height:40px!important;border-radius:12px!important;background:var(--btnb)!important;border:1px solid var(--ln2)!important;color:var(--fg)!important}
@media (min-width:1100px){html.nd .screen > .scroll{padding-left:32px!important;padding-right:32px!important;padding-bottom:40px!important}}
@media (max-width:1099px){html.nd .screen > header.top{padding:18px 20px 12px!important}html.nd .screen > header.top h1{font-size:26px!important}}

/* ---------- shared pieces ---------- */
html.nd .glabel{font-size:12px!important;font-weight:700!important;letter-spacing:.08em!important;text-transform:uppercase!important;color:var(--muted)!important}
html.nd .group{background:var(--card)!important;border:1px solid var(--glass-b)!important;border-radius:16px!important;box-shadow:none!important}
html.nd .btn{height:44px;border-radius:12px!important;background:var(--btnb);border:1px solid var(--ln2)!important;color:var(--fg);font-weight:600}
html.nd .btn.pri{background:var(--blue)!important;border-color:transparent!important;color:#fff!important}
html.nd .btn.danger{color:var(--red)!important;background:var(--redbg)!important;border-color:var(--redln)!important}
html.nd .btn.sm{height:34px}
html.nd .pill{border-radius:8px!important;font-weight:500!important}
html.nd .pill.mu{background:var(--glass-b)!important;color:var(--fg2)!important}
html.nd .pill.bl{background:var(--bluebg)!important;color:var(--blue)!important}
html.nd .pill.a{background:var(--amberbg)!important;color:var(--amber)!important}
html.nd .pill.r{background:var(--redbg)!important;color:var(--red)!important}
html.nd .search{height:44px!important;border-radius:12px!important;background:var(--card)!important;border:1px solid var(--glass-b)!important}
html.nd .sheet{background:var(--card)!important;border-color:var(--glass-b)!important}
html.nd .kpis > div,html.nd .kgrid > div{background:var(--sf2)!important;border:0!important;border-radius:12px!important}
html.nd .kpis b,html.nd .kgrid b{font-family:var(--head)!important;font-size:22px!important}
html.nd .tile{background:var(--card)!important;border-radius:16px!important}

/* ---------- Today ---------- */
.iav{width:34px;height:34px;border-radius:50%;background:var(--glass-b);display:grid;place-items:center;font-size:12px;font-weight:600;flex:none}.iav svg{width:16px;height:16px}
.imt{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.imt b{font-size:13.5px}.imt small{font-size:13px;color:var(--fg2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.idot{width:8px;height:8px;border-radius:50%;background:var(--blue);margin-top:6px;flex:none}.iempty{font-size:13px;color:var(--muted)}
@media (max-width:1099px){
}

/* ---------- Deals ---------- */
html.nd #s-notes .dview{background:none!important;padding:0!important;gap:8px!important}
html.nd #s-notes .dview button{border:1px solid var(--ln2)!important;border-radius:999px!important;padding:7px 14px!important;color:var(--fg2)!important;background:none!important;font-weight:500}
html.nd #s-notes .dview button.on{background:var(--fg)!important;color:var(--bg)!important;border-color:transparent!important;font-weight:600}
html.nd .dbw{grid-template-columns:repeat(6,minmax(200px,1fr))!important;gap:14px!important}
html.nd .dcol{background:var(--side)!important;border:1px solid var(--glass-b)!important;border-radius:18px!important;padding:12px!important;gap:10px!important}
html.nd .dcol header b{font-size:14px!important}
html.nd .dcard{background:var(--card)!important;border:1px solid var(--glass-b)!important;border-radius:14px!important}
html.nd .dcard .dch b{font-size:14px!important}
html.nd .dfee{color:var(--blue)!important}
html.nd .dd-offer{background:var(--muted)}html.nd .dd-contract{background:var(--violet)}html.nd .dd-assigned{background:var(--blue)}html.nd .dd-closed{background:var(--green)}

/* ---------- Analyze ---------- */
html.nd .antabs{background:none!important;border:0!important;padding:0!important;gap:8px!important;margin:0 32px 16px!important}
html.nd .antabs button{border:1px solid var(--ln2)!important;border-radius:999px!important;padding:8px 16px!important;color:var(--fg2)!important;font-weight:500!important;font-size:13.5px!important;background:none!important;box-shadow:none!important}
html.nd .antabs button.on{background:var(--fg)!important;color:var(--bg)!important;border-color:transparent!important;font-weight:600!important}
html.nd .summary{background:var(--card)!important;border-radius:20px!important;border:1px solid var(--glass-b)!important}
html.nd .seg3{border-radius:12px!important;background:var(--card)!important}
@media (max-width:1099px){html.nd .antabs{margin:0 16px 12px!important}}

/* ---------- Leads: three columns ---------- */
@media (min-width:1100px){
  html.nd #s-leads > header.top{display:none!important}
  html.nd #s-leads .lwrap{display:grid!important;grid-template-columns:330px minmax(0,1fr)!important;grid-template-rows:auto minmax(0,1fr)!important;height:100%!important;gap:0!important;padding:0!important;margin:0!important}
  html.nd #s-leads.l3 .lwrap{grid-template-columns:330px minmax(0,1fr) 340px!important}
  html.nd #lside{grid-column:1;grid-row:1;width:auto!important;max-height:none!important;background:var(--side)!important;border:0!important;border-right:1px solid var(--glass-b)!important;border-radius:0!important;padding:20px 18px 10px!important;overflow:visible!important;display:flex!important;flex-direction:column;gap:8px!important;position:static!important}
  html.nd #lside::before{content:"Leads";font-family:var(--head);font-size:24px;font-weight:700;letter-spacing:-.02em;margin-bottom:2px}
  html.nd #lside .lsh{padding:0!important;margin:6px 0 0!important}
  html.nd #lside .lsh small{font-size:11.5px!important;font-weight:700!important;letter-spacing:.08em!important;text-transform:uppercase!important;color:var(--muted)!important}
  html.nd #lside{position:relative!important}
  html.nd #lside .lsl{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;overflow-x:auto;scrollbar-width:none;margin:0 -18px!important;padding:0 18px 2px!important;gap:6px!important}
  html.nd #lside .lsl::-webkit-scrollbar{display:none}
  html.nd #lside .lsi{width:auto!important;height:auto!important;min-height:0!important;border-radius:999px!important;padding:6px 12px!important;border:1px solid var(--ln2)!important;background:none!important;color:var(--fg2)!important;font-size:12.5px!important;gap:6px!important;flex:none!important;margin:0!important;white-space:nowrap}
  html.nd #lside .lsi svg{display:none}
  html.nd #lside .lsi span:not(.cdot){flex:none!important;overflow:visible!important}
  html.nd #lside .lsi i{font-style:normal;opacity:.75;margin:0!important;background:none!important;padding:0!important;font-size:12px!important;color:inherit!important}
  html.nd #lside .lsi.on{background:var(--blue)!important;color:#fff!important;border-color:transparent!important;font-weight:600!important}
  html.nd #lside .lsi .lsbar{display:none!important}
  html.nd #lside .lsi .cdot{width:7px!important;height:7px!important}
  html.nd #lside .lsh{display:flex!important;align-items:center;min-height:24px}
  html.nd #lside .lsh .ibs{width:28px!important;height:28px!important}
  html.nd #lside .lsum{background:none!important;border:0!important;padding:4px 0 0!important;margin:0!important;display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px}
  html.nd #lside .lsum > small,html.nd #lside .lsum-r{display:none!important}
  html.nd #lside .lsum-n{font-size:12px!important;color:var(--muted)!important;order:2}html.nd #lside .lsum-n b{font-size:12px!important;color:var(--fg)!important}
  html.nd #lside .lsum-p{flex:1 1 100%;height:4px!important;border-radius:4px!important;order:1;margin:0!important}
  html.nd #lside .lsdash{position:absolute!important;top:18px;width:36px!important;height:36px!important;border-radius:10px!important;border:1px solid var(--ln2)!important;background:var(--btnb)!important;color:var(--fg)!important;padding:0!important;margin:0!important;display:grid!important;place-items:center}
  html.nd #lside .lsdash[data-ldash]{right:62px}html.nd #lside .lsdash[data-limport]{right:18px}
  html.nd #lside .lsdash span{display:none}
  html.nd #lside .lsdash svg{width:17px!important;height:17px!important}
  html.nd #leads-body .lsrow .search{flex:1 1 auto;min-width:0}
  html.nd #lside.min{flex-direction:row!important;flex-wrap:wrap}
  html.nd #lside.min::before{flex:1 0 100%}
  html.nd #leads-body{grid-column:1;grid-row:2;min-height:0;overflow:auto;background:var(--side)!important;border-right:1px solid var(--glass-b)!important;padding:0 10px 80px!important;margin:0!important;max-width:none!important}
  html.nd #leads-body .lsrow{position:sticky;top:0;z-index:2;background:var(--side);padding:8px 8px 10px!important;margin:0!important;gap:6px!important}
  html.nd #leads-body .lsrow .search{height:38px!important;border-radius:10px!important}
  html.nd #leads-body .fbtn{width:38px!important;height:38px!important;border-radius:10px!important}
  html.nd #leads-body .lthead{display:none!important}
  html.nd #leads-body .lcount{padding:2px 10px 6px!important;font-size:12px!important;color:var(--muted)!important}
  html.nd #lead-list{display:flex;flex-direction:column;gap:4px}
  html.nd .lrow{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-areas:"mt disp" "mt num"!important;gap:2px 8px!important;padding:12px!important;border-radius:12px!important;border:1px solid transparent!important;background:none!important;height:auto!important;min-height:0!important;text-align:left;width:100%}
  html.nd .lrow:hover{background:var(--card)!important}
  html.nd .lrow.sel{background:var(--bluebg)!important;border-color:var(--blueln)!important}
  html.nd .lrow .mt{grid-area:mt;min-width:0}
  html.nd .lrow .mt b{font-size:14px!important}
  html.nd .lrow .mt small{font-size:12.5px!important;color:var(--muted)!important}
  html.nd .lrow .ldisp{grid-area:disp;justify-self:end;display:flex;gap:4px}
  html.nd .lrow .ldisp .pill{font-size:11.5px!important;padding:2px 7px!important}
  html.nd .lrow .lnum{grid-area:num;justify-self:end;font-size:11.5px;color:var(--muted)}
  html.nd .lrow .latt,html.nd .lrow .llast{display:none!important}
  html.nd #lead-pane{position:relative!important;grid-column:2;grid-row:1/3;width:auto!important;max-width:none!important;min-width:0;height:100%!important;overflow:auto;background:var(--bg)!important;border:0!important;border-radius:0!important;padding:24px 28px 40px!important;margin:0!important;box-shadow:none!important;}
  html.nd #lead-side{grid-column:3;grid-row:1/3;overflow:auto;border-left:1px solid var(--glass-b);padding:24px 20px 40px;display:flex;flex-direction:column;gap:12px;background:var(--bg)}
  html.nd #lead-side[hidden]{display:none!important}
  html.nd #s-leads.calling #lead-side{display:none!important}
  html.nd .app:has(#s-leads.on.calling){grid-template-columns:72px minmax(0,1fr)!important}
  html.nd .app:has(#s-leads.on.calling) .tabbar{display:flex!important}
  html.nd #s-leads.calling .lwrap{grid-template-columns:minmax(0,1fr)!important}
  html.nd #s-leads.calling #lside{display:none!important}
  html.nd #s-leads.calling:not(.qshow) #lead-pane{grid-column:1/-1!important}
  html.nd #s-leads.calling.qshow .lwrap{grid-template-columns:330px minmax(0,1fr)!important}
  html.nd #s-leads.calling.qshow #leads-body{grid-column:1!important;grid-row:1/3!important;display:block!important;width:auto!important;max-width:none!important;flex:none!important;padding-top:16px!important}
  html.nd #lead-start{position:absolute!important;left:18px!important;bottom:16px!important;width:294px!important;right:auto!important;height:50px!important;border-radius:14px!important;background:var(--blue)!important;color:#fff!important;box-shadow:0 8px 24px rgba(23,96,240,.25)!important;z-index:5;transform:none!important}
  html.nd #s-leads.calling #lead-start{display:none!important}
}
/* the lead in the middle */
html.nd #lead-pane .lhd{background:none!important;border:0!important;padding:0!important;position:static!important}
html.nd #lead-pane .lhd .sh{justify-content:flex-start!important;gap:10px!important;padding:0!important;min-height:0!important;position:relative}
html.nd #lead-pane .lhd .shtitle{font-family:var(--head)!important;font-size:32px!important;font-weight:600!important;letter-spacing:-.02em!important;text-align:left!important;flex:1;justify-content:flex-start!important}
html.nd #lead-pane .lhd #l-call{order:3;height:44px;border-radius:12px!important;background:var(--blue)!important;color:#fff!important;padding:0 18px!important;font-weight:700!important}
html.nd #lead-pane .lhd #l-close{position:absolute;top:0;right:0;z-index:2}
html.nd #lead-pane .lhd #l-close ~ .sh{padding-right:48px!important}
html.nd #lead-pane .laddrw{margin:6px 0 0!important;background:none!important;border:0!important;padding:0!important}
html.nd #lead-pane .laddr{background:none!important;border:0!important;padding:0!important;color:var(--fg2)!important;font-size:15px!important}
html.nd #lead-pane .lacts{display:flex!important;gap:8px!important;margin:14px 0 0!important;grid-template-columns:none!important}
html.nd #lead-pane .lacts .da{height:40px!important;flex:none!important;flex-direction:row!important;gap:8px!important;padding:0 14px!important;border-radius:12px!important;background:var(--btnb)!important;border:1px solid var(--ln2)!important;color:var(--fg)!important;font-size:13px!important;font-weight:500!important}
html.nd #lead-pane .lacts .da svg{width:16px!important;height:16px!important}
html.nd #lead-pane .dhead{margin:12px 0 0!important;gap:8px!important}
html.nd #lead-pane .dhead .pill{font-size:12px!important;padding:4px 8px!important}
html.nd #lead-pane .dtabs{margin:16px 0 0!important}
html.nd #s-leads.l3 #lead-pane #ltabs{display:none!important}
html.nd #lead-pane .lbody{padding:18px 0 0!important}
html.nd #lead-pane .lout{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important}
html.nd #lead-pane .lout button{height:48px!important;border-radius:12px!important;background:var(--card)!important;border:1px solid var(--ln2)!important;color:var(--fg)!important;font-size:13px!important;font-weight:500!important;justify-content:center!important}
html.nd #lead-pane .lout button[data-ld=int]{background:var(--bluebg)!important;border-color:var(--blueln)!important;color:var(--blue)!important;font-weight:600!important}
html.nd #lead-pane .lout button[data-ld=cb]{background:var(--amberbg)!important;border-color:var(--amberln)!important;color:var(--amber)!important;font-weight:600!important}
html.nd #lead-pane .lout button[data-ld=dnc]{background:var(--redbg)!important;border-color:var(--redln)!important;color:var(--red)!important}
html.nd #lead-pane .lout button.on{outline:2px solid var(--blue);outline-offset:1px}
html.nd #lead-pane .lph{background:var(--card)!important;border-radius:16px!important;padding:14px!important;margin:0 0 8px!important;border:1px solid var(--glass-b)!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto auto;grid-template-areas:"n c d" "t t d";gap:6px 8px;align-items:center}
html.nd #lead-pane .lph .pnum{grid-area:n;min-width:0}html.nd #lead-pane .lph [data-copy]{grid-area:c}html.nd #lead-pane .lph .callb{grid-area:d}html.nd #lead-pane .lph .ptag{grid-area:t;justify-self:start}
html.nd #lead-pane .lph .pnum b{font-size:16px!important;font-variant-numeric:tabular-nums}
html.nd #lead-pane .lph .callb{width:52px!important;height:52px!important;border-radius:50%!important;background:var(--blue)!important;color:#fff!important;border:0!important}
html.nd #lead-pane .lph .callb svg{stroke:#fff!important;width:20px!important;height:20px!important}
html.nd #lead-pane .lbody > .group:has(.lph){background:none!important;border:0!important;display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:10px}
html.nd #lead-pane .lbody > .group:has(.lph) .lph{margin:0!important}
html.nd #lead-pane .lbody > .group:has(.lph) #lp-add,html.nd #lead-pane .lbody > .group:has(.lph) #lp-skip{border:1.5px dashed var(--ln2)!important;border-radius:16px!important;background:none!important;min-height:64px;justify-content:center}
html.nd #lead-pane .cbq button{border-radius:999px!important;border:1px solid var(--ln2)!important;background:none!important;color:var(--fg2)!important}
/* notes and history on the right */
.lside3 .l3t{margin:6px 0 0;font-size:15px;font-weight:700;font-family:var(--font)}
.lside3 .lhd{display:none!important}
.lside3 .lbody{padding:0!important}
.lside3 .group{border-radius:12px!important}
.lside3 .notetext{border-radius:12px!important;background:var(--card)!important;border:1px solid var(--glass-b)!important;min-height:110px!important}
.lside3 .tl{display:flex;flex-direction:column;gap:12px}

/* call mode: soft outcome buttons like the mockup */
html.nd #lead-pane.calling{padding:20px 24px 32px!important}
html.nd .dout{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important}
html.nd .dout button{height:48px!important;border-radius:12px!important;background:var(--card)!important;border:1px solid var(--ln2)!important;color:var(--fg)!important;font-size:13px!important;font-weight:500!important;box-shadow:none!important;justify-content:center!important;gap:6px!important}
html.nd .dout button svg{width:16px!important;height:16px!important;stroke:currentColor!important}
html.nd .dout button kbd{background:none!important;color:var(--muted)!important;border:0!important;order:-1;font:inherit;font-weight:600;font-size:12px}
html.nd .dout button[data-do=int]{background:var(--bluebg)!important;border-color:var(--blueln)!important;color:var(--blue)!important;font-weight:600!important}
html.nd .dout button[data-do=cb]{background:var(--amberbg)!important;border-color:var(--amberln)!important;color:var(--amber)!important;font-weight:600!important}
html.nd .dout button[data-do=dnc]{background:var(--redbg)!important;border-color:var(--redln)!important;color:var(--red)!important}
html.nd .dcallb{background:var(--blue)!important;border-radius:14px!important;box-shadow:none!important}
html.nd .dnum{background:var(--card)!important;border:1px solid var(--glass-b)!important;border-radius:16px!important}

/* ---------- QBlast ---------- */
html.nd .qbtabs{padding:0 32px 14px!important;gap:8px!important;background:none!important;border:0!important}
html.nd .qbtabs button{border:1px solid var(--ln2)!important;border-radius:999px!important;padding:7px 14px!important;background:none!important;color:var(--fg2)!important;font-weight:500!important;font-size:13px!important;height:auto!important}
html.nd .qbtabs button svg{display:none}
html.nd .qbtabs button.on{background:var(--fg)!important;color:var(--bg)!important;border-color:transparent!important;font-weight:600!important}
html.nd .qbtabs button i{background:var(--blue)!important;color:#fff!important}
html.nd .qbcard{background:var(--card)!important;border-radius:20px!important;border:1px solid var(--glass-b)!important;box-shadow:none!important}
html.nd .qbkpi{background:var(--card)!important;border:1px solid var(--glass-b)!important;border-radius:16px!important;box-shadow:none!important}
html.nd .qbkpi b{font-family:var(--head)!important;color:var(--fg)!important}
html.nd .qbkpi b.g-t,html.nd .qbkpi b.b-t{color:var(--fg)!important}
html.nd .qbbal{height:44px;border-radius:12px!important;background:var(--card)!important;border:1px solid var(--glass-b)!important}
@media (min-width:1280px){
  html.nd #s-qblast.qb2{display:grid!important;grid-template-columns:minmax(0,1fr) 380px;grid-template-rows:auto auto minmax(0,1fr)}
  html.nd #s-qblast.qb2:not(.on){display:none!important}
  html.nd #s-qblast.qb2 > header.top,html.nd #s-qblast.qb2 > .qbtabs,html.nd #s-qblast.qb2 > #qb-body{grid-column:1}
  html.nd #s-qblast.qb2 > #qb-body{grid-row:3;min-height:0}
  html.nd #qb-aside{grid-column:2;grid-row:1/4;border-left:1px solid var(--glass-b);background:var(--side);padding:24px 18px;overflow:auto;display:flex;flex-direction:column;gap:10px}
}
.qbah{display:flex;align-items:center;gap:8px;margin-bottom:4px}.qbah h2{flex:1;margin:0;font-size:15px}
.qbai{display:flex;gap:10px;align-items:flex-start;text-align:left;width:100%;border:1px solid var(--glass-b);background:var(--card);border-radius:16px;padding:14px;color:inherit;font:inherit;cursor:pointer}
.qbai.un{border-color:var(--blueln)}.qbai .qbam{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.qbai .qbcn{display:flex;justify-content:space-between;gap:8px}.qbai .qbcn small{color:var(--muted);font-size:12px}
.qbai .qbcl{font-size:13.5px;color:var(--fg2);overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.qbaall{margin-top:4px;width:100%}

/* ---------- Skip Trace, Buyers, More ---------- */
html.nd .skcard,html.nd .gcard,html.nd .scard,html.nd .tcard{background:var(--card)!important;border-radius:20px!important;border:1px solid var(--glass-b)!important;box-shadow:none!important}
html.nd .skseg{background:var(--sf2)!important;border-radius:12px!important;padding:4px!important;border:0!important}
html.nd .skseg button.on{background:var(--fg)!important;color:var(--bg)!important;border-radius:9px!important}

/* ---------- Analyze calculators: inputs on the left, the verdict on the right ---------- */
@media (min-width:1280px){
  html.nd :is(#s-cash,#s-sf,#s-st,#s-hy,#s-flip).screen.on{display:grid!important;grid-template-columns:minmax(0,1fr) 340px;grid-template-rows:auto auto minmax(0,1fr);column-gap:20px;padding:0 32px 0 0!important}
  html.nd :is(#s-cash,#s-sf,#s-st,#s-hy,#s-flip) > header.top,html.nd :is(#s-cash,#s-sf,#s-st,#s-hy,#s-flip) > .antabs{grid-column:1/-1}
  html.nd :is(#s-cash,#s-sf,#s-st,#s-hy,#s-flip) > .seg3{display:none!important}
  html.nd :is(#s-cash,#s-sf,#s-st,#s-hy,#s-flip) > .panels{grid-column:1;grid-row:3;min-height:0;margin:0 0 0 32px!important;padding:0!important}
  html.nd :is(#s-cash,#s-sf,#s-st,#s-hy,#s-flip) > .summary{grid-column:2;grid-row:3;align-self:start;margin:0!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:16px!important;padding:20px!important;max-height:100%;overflow:auto}
  html.nd :is(#s-cash,#s-sf,#s-st,#s-hy,#s-flip) > .summary .gcol{flex-direction:row!important;align-items:center!important;gap:14px!important;order:1}
  html.nd :is(#s-cash,#s-sf,#s-st,#s-hy,#s-flip) > .summary .sumhead{order:0;display:flex;align-items:center;gap:8px;margin:0!important}
  html.nd :is(#s-cash,#s-sf,#s-st,#s-hy,#s-flip) > .summary .stats{order:2;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;width:100%;margin:0!important}
  html.nd :is(#s-cash,#s-sf,#s-st,#s-hy,#s-flip) > .summary .stat{background:var(--sf2);border-radius:12px;padding:12px!important;margin:0!important;border:0!important}
  html.nd :is(#s-cash,#s-sf,#s-st,#s-hy,#s-flip) > .summary .stat:first-child{grid-column:1/-1}
  html.nd :is(#s-cash,#s-sf,#s-st,#s-hy,#s-flip) > .summary .stat:first-child b{font-size:30px!important}
}
html.nd .summary .sumhead b{font-family:var(--head);font-size:15px}
html.nd .summary .stat small{font-size:11.5px!important;color:var(--muted)!important}
html.nd .summary .stat b{font-family:var(--head)!important;font-size:20px!important}

/* ---------- Deals header: totals and Add deal on the right ---------- */
@media (min-width:1100px){
  html.nd #s-notes > header.top{flex-wrap:wrap;gap:14px}
  html.nd #s-notes > header.top .earn{display:flex!important;gap:8px!important;margin:0 0 0 auto!important;padding:0!important;background:none!important;border:0!important}
  html.nd #s-notes > header.top .earn > div{background:var(--card)!important;border:1px solid var(--glass-b)!important;border-radius:12px!important;padding:8px 14px!important;min-width:0!important;display:flex;flex-direction:column}
  html.nd #s-notes > header.top .earn small{font-size:11.5px!important;color:var(--muted)!important;text-transform:none!important;letter-spacing:0!important}
  html.nd #s-notes > header.top .earn b{font-family:var(--head)!important;font-size:20px!important}
  html.nd #s-notes > header.top .tools{margin-left:0!important}
  html.nd .ndadd{height:52px;border:0;border-radius:12px;background:var(--blue);color:#fff;font:inherit;font-weight:700;padding:0 18px;display:inline-flex;align-items:center;gap:8px;cursor:pointer}
  html.nd .ndadd svg{width:18px;height:18px}
  html.nd #s-notes #fab{display:none!important}
  html.nd #deals-body{display:grid!important;grid-template-columns:auto minmax(0,360px);justify-content:space-between;align-content:start;gap:12px 16px}
  html.nd #deals-body > *{grid-column:1/-1;margin:0!important;min-width:0}
  html.nd #deals-body > #dview{grid-column:1}
  html.nd #deals-body > .search{grid-column:2;height:38px!important}
}

/* Leads flush against the rail */
@media (min-width:1100px){html.nd #s-leads .lwrap{position:absolute!important;inset:0!important}html.nd #lead-start{z-index:6!important}}
/* More: calm one-color icons */
html.nd .mi .ic{background:var(--bluebg)!important;color:var(--blue)!important;border-radius:12px!important}
html.nd .mi .ic svg{stroke:var(--blue)!important;color:var(--blue)!important}
html.nd #more-body .group{border-radius:20px!important}
html.nd #more-body .msec .glabel{margin:0 4px 10px!important}
/* Buyers */
@media (min-width:1100px){html.nd #s-buyers .bhub{margin:0 32px!important;gap:20px!important}}
html.nd .bhc{background:var(--card)!important;border:1px solid var(--glass-b)!important;border-radius:20px!important;box-shadow:none!important}
html.nd .bhc .bhi{background:var(--bluebg)!important;color:var(--blue)!important;border-radius:12px!important}
html.nd .bhc .bhi svg{stroke:var(--blue)!important}
html.nd .bhs > div{background:var(--sf2)!important;border:0!important;border-radius:12px!important}
html.nd .bhs b{font-family:var(--head)!important;font-size:22px!important}
html.nd .bhchips .add{border:1px solid var(--ln2)!important;background:none!important;border-radius:999px!important;color:var(--fg2)!important}

/* ---------- phone ---------- */
@media (max-width:1099px){
  html.nd .tabbar .rset{display:none!important}
  html.nd .tabbar [data-go=home]{order:1}html.nd .tabbar [data-go=leads]{order:2}html.nd .tabbar [data-go=notes]{order:3}html.nd .tabbar [data-go=qblast]{order:4}
  html.nd .tabbar [data-go=skip]{order:5}html.nd .tabbar [data-go=buyers]{order:6}html.nd .tabbar [data-go=analyze]{order:7}html.nd .tabbar [data-go=more]{order:8}
  html.nd #lead-start{background:var(--blue)!important;box-shadow:0 8px 24px rgba(23,96,240,.25)!important;border-radius:16px!important}
  html.nd .lout{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
/* lead details anywhere (side panel or phone sheet) */
html.nd .lout{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px!important}
html.nd .lout button{height:48px!important;border-radius:12px!important;background:var(--card)!important;border:1px solid var(--ln2)!important;color:var(--fg)!important;font-size:13px!important;font-weight:500!important;justify-content:center!important;display:flex!important;align-items:center;gap:6px}
html.nd .lout button[data-ld=int]{background:var(--bluebg)!important;border-color:var(--blueln)!important;color:var(--blue)!important;font-weight:600!important}
html.nd .lout button[data-ld=cb]{background:var(--amberbg)!important;border-color:var(--amberln)!important;color:var(--amber)!important;font-weight:600!important}
html.nd .lout button[data-ld=dnc]{background:var(--redbg)!important;border-color:var(--redln)!important;color:var(--red)!important}
html.nd .lout button.on{outline:2px solid var(--blue);outline-offset:1px}
html.nd .lacts .da,html.nd .dacts .da{background:var(--btnb)!important;border:1px solid var(--ln2)!important;color:var(--fg)!important;border-radius:12px!important;box-shadow:none!important}
html.nd .lacts .da svg,html.nd .dacts .da svg{stroke:var(--blue)!important;color:var(--blue)!important}
html.nd .dtabs{background:var(--sf2)!important;border-radius:12px!important;padding:4px!important;border:0!important}
html.nd .dtabs button.on{background:var(--fg)!important;color:var(--bg)!important;border-radius:9px!important}
