/* Growth > Leads (public/leads.js). Mocks: design/access-and-leads/mocks.html B1 to B5,
   P4 to P7 and the iPad pair. Tokens follow desk2.css where it's on, with the
   same values as fallbacks for the old desktop and the iPhone app. */
.lds, .lds-tb {
  --l-y: var(--d2-y, #F5C500); --l-ink: var(--d2-ink, #111); --l-bg: var(--d2-bg, #F4F4EF); --l-card: var(--d2-card, #fff);
  --l-line: var(--d2-line, #E3E3DC); --l-line2: var(--d2-line2, #EFEFE9); --l-mute: var(--d2-mute, #73736D); --l-soft: var(--d2-soft, #ECECE5);
  --l-red: var(--d2-red, #D6362B); --l-green: var(--d2-green, #1E9A4B); --l-amber: var(--d2-amber, #E0A100); --l-pill: var(--d2-pill, #FFF4B9);
  --l-edge: var(--d2-edge, 0 0 0 .5px rgba(0,0,0,.16), 0 1px 1.5px rgba(0,0,0,.07)); --l-r: 12px; --l-btn: var(--d2-btn-h, 30px);
  font-family: var(--d2-font, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif);
  color: var(--l-ink); font-size: 13px; line-height: 1.4; min-width: 0;
}
.lds *, .lds-sheet-wrap * { box-sizing: border-box; }
.lds button, .lds-sheet-wrap button, .lds select, .lds input, .lds-sheet-wrap input, .lds-sheet-wrap select, .lds-sheet-wrap textarea { font: inherit; color: inherit; }
.lds-mute { color: var(--l-mute); }
.lds-sub { display: block; color: var(--l-mute); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lds-sub.is-red, .lds-red { color: var(--l-red) !important; }
.lds-sub.is-amber { color: #A66F00; }
.lds-green { color: var(--l-green) !important; }
.lds-strong { font-weight: 600; }
.lds-grow { flex: 1 1 auto; }
.lds-center { text-align: center; }
.lds-pad { padding: 16px; }
.lds-ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.lds-card { background: var(--l-card); border-radius: var(--l-r); box-shadow: var(--l-edge); }
.lds-loading { padding: 28px; color: var(--l-mute); text-align: center; }
.lds-empty { text-align: center; padding: 40px 20px; color: var(--l-mute); }
.lds-empty h3 { color: var(--l-ink); margin: 10px 0 4px; font-size: 16px; }
.lds-empty p { margin: 0 0 14px; }
.lds-empty-ic { display: inline-flex; width: 40px; height: 40px; border-radius: 12px; background: var(--l-y); color: var(--l-ink); align-items: center; justify-content: center; }

/* buttons, segmented, chips */
.lds-btn { display: inline-flex; align-items: center; gap: 6px; height: var(--l-btn); padding: 0 11px; border-radius: 8px; border: 0; background: var(--l-card); box-shadow: var(--l-edge); cursor: pointer; white-space: nowrap; font-weight: 500; }
.lds-btn:hover:not(:disabled) { background: #FAFAF7; }
.lds-btn:disabled { opacity: .45; cursor: default; }
.lds-btn svg { flex: none; }
.lds-btn-y { background: var(--l-y); box-shadow: var(--d2-edge-y, 0 0 0 .5px rgba(0,0,0,.14), 0 1px 1.5px rgba(0,0,0,.1)); font-weight: 600; }
.lds-btn-y:hover:not(:disabled) { background: #EDBD00; }
.lds-btn-red { background: var(--l-red); color: #fff !important; }
.lds-btn-red:hover:not(:disabled) { background: #BF2C22; }
.lds-btn-ghost { box-shadow: none; background: transparent; color: var(--l-mute); }
.lds-btn-lg { height: 40px; padding: 0 14px; border-radius: 10px; }
.lds-btn-out { width: 100%; justify-content: center; height: 42px; background: transparent; box-shadow: inset 0 0 0 1.5px var(--l-y); color: #8A6A00; font-weight: 600; }
.lds-icon { width: var(--l-btn); padding: 0; justify-content: center; }
.lds-link { background: none; border: 0; padding: 0 4px; color: #8A6A00; font-weight: 600; cursor: pointer; display: inline-flex; gap: 5px; align-items: center; text-decoration: none; font-size: 12px; }
.lds-seg { display: inline-flex; background: var(--d2-seg-track, #EBEBE4); border-radius: 9px; padding: 2px; gap: 2px; }
.lds-seg button { border: 0; background: transparent; border-radius: 7px; padding: 4px 16px; cursor: pointer; font-weight: 500; }
.lds-seg button.is-on { background: var(--l-card); box-shadow: var(--l-edge); }
.lds-seg button:disabled { opacity: .45; cursor: default; }
.lds-seg-sm button { padding: 3px 10px; font-size: 12px; }
.lds-seg-full { display: flex; width: 100%; margin: 4px 0 14px; }
.lds-seg-full button { flex: 1; }
.lds-chips { display: flex; align-items: center; gap: 6px; margin: 0 0 14px; flex-wrap: wrap; }
.lds-chips-wrap { flex-wrap: wrap; }
.lds-chip { border: 0; background: var(--l-card); box-shadow: var(--l-edge); border-radius: 999px; height: 28px; padding: 0 11px; cursor: pointer; white-space: nowrap; }
.lds-chip b { font-weight: 500; color: var(--l-mute); margin-left: 2px; }
.lds-chip.is-on { background: var(--l-ink); color: #fff; box-shadow: none; }
.lds-chip.is-on b { color: rgba(255,255,255,.75); }
.lds-mini-sel { max-width: 96px; }
.lds .lds-pop, .lds .lds-mini-sel { width: auto; }
.lds-pop, .lds-mini-sel { height: 28px; border: 0; border-radius: 8px; background: var(--l-card); box-shadow: var(--l-edge); padding: 0 8px; cursor: pointer; max-width: 200px; }
.lds-pop-y { background: var(--l-pill); }
.lds-mini-sel { color: var(--l-mute); }
.lds-search { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; background: var(--l-soft); border-radius: 8px; color: var(--l-mute); min-width: 0; }
.lds-search input { border: 0; background: transparent; outline: none; width: 120px; color: var(--l-ink); }
.lds-tb .lds-btn { height: 28px; }
.lds-tb .lds-seg button { padding: 3px 14px; }
html.tp-ipad .lds-tb .lds-search { display: none; }
html.tp-ipad .lds-tb .lds-btn { height: 36px; }
.lds-p-ipad .lds-sb { font-size: 12px; padding: 0 4px 0 12px; }
.lds-tb { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lds-tb .lds-seg { margin-right: 8px; }
.lds-tb-title { display: flex; flex-direction: column; min-width: 0; }
.lds-tb-title b { font-size: 14px; }
.lds-webhead { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 16px; flex-wrap: wrap; }
.lds-webhead h2 { margin: 0; font-size: 22px; }
.lds-webhead p { margin: 2px 0 0; }
.lds-webtb { padding: 10px 12px; margin-bottom: 14px; }

/* avatars, pills, flags */
.lds-av { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; font-size: 11px; font-weight: 600; }
.lds-av-sm { width: 30px; height: 30px; }
.lds-av-lg { width: 40px; height: 40px; font-size: 13px; }
.lds-av-xl { width: 54px; height: 54px; font-size: 17px; }
.lds-av-0 { background: #FBE4EC; color: #A23B5E; } .lds-av-1 { background: #FCE8D8; color: #A0521A; } .lds-av-2 { background: #E2F2E6; color: #2E7A45; }
.lds-av-3 { background: #E4EDFA; color: #2F5C9E; } .lds-av-4 { background: #FFF2C2; color: #7F6200; } .lds-av-5 { background: #EEE6F8; color: #6340A0; }
.lds-pdot { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; font-size: 8.5px; font-weight: 700; vertical-align: middle; }
.lds-stage { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.lds-st-new { background: #E4EDFA; color: #2F5C9E; } .lds-st-contacted { background: var(--l-soft); color: #4D4D47; } .lds-st-qualified { background: var(--l-pill); color: #6A5300; }
.lds-st-proposal { background: #FCE8D8; color: #9A4C14; } .lds-st-won { background: #E2F2E6; color: #2E7A45; } .lds-st-lost { background: #FBE1DF; color: #9B2A22; }
.lds-flag { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 6px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.lds-flag svg { width: 12px; height: 12px; }
.lds-flag-blue { background: #E4EDFA; color: #2F5C9E; } .lds-flag-amber { background: var(--l-pill); color: #7F6200; } .lds-flag-red { background: #FBE1DF; color: #9B2A22; } .lds-flag-grey { background: var(--l-soft); color: #5D5D57; }
.lds-src { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.lds-src > span { min-width: 0; }
.lds-src-w { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lds-src-sm { font-size: 12px; color: var(--l-mute); gap: 4px; }
.lds-src-sm svg { width: 13px; height: 13px; }
.lds-ig, .lds-fb { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 4px; color: #fff; font-size: 8px; font-weight: 800; flex: none; }
.lds-ig { background: linear-gradient(135deg, #F9A63A, #D6249F 55%, #6C3BD1); }
.lds-fb { background: #1877F2; font-size: 11px; }
.lds-int { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--l-pill); color: #6A5300; font-weight: 600; font-size: 12px; }
.lds-tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 6px; background: #E4EDFA; color: #2F5C9E; font-weight: 600; font-size: 12px; border: 0; }
.lds-tag button { border: 0; background: none; color: inherit; cursor: pointer; padding: 0; font-size: 14px; line-height: 1; }
.lds-tag-add { background: var(--l-card); box-shadow: var(--l-edge); color: var(--l-mute); cursor: pointer; font-weight: 500; }
.lds-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.lds-unv { display: inline-flex; width: 14px; height: 14px; border-radius: 50%; background: var(--l-soft); color: var(--l-mute); font-size: 10px; align-items: center; justify-content: center; font-weight: 700; }

/* list + inspector */
.lds-split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.lds-main { min-width: 0; }
.lds-table { overflow: hidden; }
.lds-tr { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) 96px 48px minmax(0, 1.4fr) minmax(0, 120px); align-items: center; gap: 10px; padding: 9px 14px; border-top: 1px solid var(--l-line2); }
.lds-th { border-top: 0; color: var(--l-mute); font-size: 12px; padding-top: 10px; padding-bottom: 8px; }
.lds-row { cursor: pointer; outline: none; }
.lds-row:hover { background: #FAFAF6; }
.lds-row.is-sel { background: #FFF7D1; }
.lds-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lds-who > span { min-width: 0; }
.lds-who b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lds-next { display: block; min-width: 0; }
.lds-next-t { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.lds-flagcell { display: flex; justify-content: flex-end; }
.lds-foot { padding: 10px 14px; color: var(--l-mute); font-size: 12px; border-top: 1px solid var(--l-line2); }
.lds-banner { display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin-top: 14px; }
.lds-banner p { margin: 0; flex: 1; }
.lds-banner-amber { background: #FFF9E0; }
.lds-insp { position: sticky; top: calc(var(--d2-top, 0px) + 12px); background: var(--l-card); border-radius: var(--l-r); box-shadow: var(--l-edge); padding: 18px; display: flex; flex-direction: column; gap: 12px; min-height: 420px; }
.lds-insp-hd { display: flex; gap: 12px; align-items: center; }
.lds-insp-hd h3 { margin: 0; font-size: 18px; }
.lds-insp-hd p, .lds-insp p { margin: 0; }
.lds-kv h4, .lds-block h4, .lds-holly h4 { margin: 0 0 6px; font-size: 12px; color: var(--l-mute); font-weight: 600; }
.lds-kv .lds-strong { display: flex; gap: 6px; align-items: center; }
.lds-rowkv { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--l-line2); min-width: 0; }
.lds-rowkv:first-child { border-top: 0; }
.lds-rowkv > span:first-child { color: var(--l-mute); flex: none; min-width: 72px; }
.lds-rowkv > b { font-weight: 500; flex: 1; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.lds-insp-ft { margin-top: auto; display: flex; justify-content: flex-end; padding-top: 10px; border-top: 1px solid var(--l-line2); }

/* board */
.lds-board { display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr)) minmax(150px, .95fr); gap: 12px; align-items: start; }
.lds-bcol { background: #EDEDE6; border-radius: var(--l-r); padding: 10px 8px; min-height: 60vh; display: flex; flex-direction: column; gap: 8px; transition: background .12s; }
.lds-bcol.is-over { background: #E6E3CE; }
.lds-bcol header { display: flex; justify-content: space-between; align-items: center; padding: 0 4px 2px; }
.lds-lost { background: #F6EDEC; }
.lds-bcard, .lds-lcard { background: var(--l-card); border-radius: 10px; box-shadow: var(--l-edge); padding: 10px; cursor: pointer; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.lds-bcard.is-drag { opacity: .5; }
.lds-bc-hd { display: flex; align-items: center; gap: 8px; min-width: 0; }
.lds-bc-hd > span:nth-child(2) { flex: 1; min-width: 0; }
.lds-bc-hd b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lds-bc-src { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; }
.lds-bc-next { display: flex; align-items: center; gap: 6px; padding-top: 7px; border-top: 1px solid var(--l-line2); font-size: 12px; min-width: 0; }
.lds-bc-next .lds-sub { flex: none; }
.lds-lcard b { font-size: 13px; }
.lds-more { text-align: center; color: var(--l-mute); font-size: 12px; margin: 4px 0; }
.lds-dropnote { margin-top: auto; border: 1.5px dashed #E0A39C; color: #B0473E; border-radius: 10px; padding: 12px; font-size: 12px; text-align: center; }

/* lead page */
.lds-lead { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 22px; align-items: start; }
.lds-lead-main { min-width: 0; }
.lds-lead-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.lds-lhd { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.lds-lhd h2 { margin: 0; font-size: 22px; }
.lds-lhd p { margin: 2px 0 0; }
.lds-stages { display: flex; gap: 4px; margin: 6px 0 16px; }
.lds-sb { flex: 1; border: 0; height: 32px; background: var(--l-soft); color: var(--l-mute); font-weight: 600; cursor: pointer; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%, 10px 50%); padding: 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lds-sb:first-child { clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%); border-radius: 7px 0 0 7px; }
.lds-sb.is-past { background: #2C2C2A; color: #fff; }
.lds-sb.is-now { background: var(--l-y); color: var(--l-ink); }
.lds-sb-lost { flex: .8; clip-path: none; border-radius: 7px; background: var(--l-card); box-shadow: inset 0 0 0 1px #E8B6B1; color: var(--l-red); }
.lds-sb-lost.is-now { background: #FBE1DF; color: #9B2A22; }
.lds-sb:disabled { cursor: default; }
.lds-meta { display: flex; gap: 22px; align-items: flex-end; padding-bottom: 16px; border-bottom: 1px solid var(--l-line); margin-bottom: 14px; flex-wrap: wrap; }
.lds-metac { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lds-metac b { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.lds-lbl { font-size: 12px; color: var(--l-mute); }
.lds-due { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 0; border-radius: 8px; background: var(--l-pill); cursor: pointer; font-weight: 600; }
.lds-due.is-red { background: #FBE1DF; color: #9B2A22; }
.lds-tlhd { display: flex; align-items: center; gap: 10px; margin: 4px 0 10px; flex-wrap: wrap; }
.lds-tlhd h3 { margin: 0; font-size: 16px; }
.lds-tl { list-style: none; margin: 0; padding: 0; position: relative; }
.lds-ev { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 0 0 16px; position: relative; }
.lds-ev::before { content: ''; position: absolute; left: 14.5px; top: 32px; bottom: 0; width: 1px; background: var(--l-line); }
.lds-ev:last-child::before { display: none; }
.lds-ev.is-old { opacity: .55; }
.lds-ev-ic { width: 30px; height: 30px; border-radius: 50%; background: var(--l-card); box-shadow: var(--l-edge); display: inline-flex; align-items: center; justify-content: center; color: var(--l-mute); }
.lds-ev-hd { margin: 5px 0 6px; }
.lds-ev-b { margin: 0 0 6px; background: var(--l-card); border-radius: 10px; box-shadow: var(--l-edge); padding: 10px 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.lds-ev-attr { margin: 0; color: var(--l-mute); font-size: 12px; overflow-wrap: anywhere; }

/* Holly + side blocks */
.lds-holly { background: #F6F5F0; border-radius: 14px; padding: 14px; box-shadow: var(--l-edge); }
.lds-holly-flat { margin: 0 0 14px; }
.lds-holly header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.lds-holly header .lds-mute { font-size: 12px; }
.lds-hico { display: inline-flex; width: 28px; height: 28px; border-radius: 8px; background: var(--l-y); align-items: center; justify-content: center; flex: none; }
.lds-hsum { margin: 0 0 12px; font-size: 14px; line-height: 1.5; }
.lds-hnext { display: flex; gap: 10px; align-items: center; background: var(--l-card); border-radius: 10px; box-shadow: var(--l-edge); padding: 10px 12px; margin-bottom: 12px; }
.lds-hnext > div { flex: 1; min-width: 0; }
.lds-draft { background: var(--l-card); border-radius: 10px; box-shadow: var(--l-edge); padding: 10px 12px; margin-bottom: 8px; }
.lds-dhd { margin: 0 0 8px; padding-bottom: 8px; border-bottom: 1px solid var(--l-line2); overflow-wrap: anywhere; }
.lds-dhd span { color: var(--l-mute); font-size: 11px; margin-left: 6px; }
.lds-dhd span:first-child { margin-left: 0; }
.lds-dbody { white-space: normal; line-height: 1.55; overflow-wrap: anywhere; max-height: 320px; overflow: auto; }
.lds-dacts { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 6px 0; }
.lds-hnote { color: var(--l-mute); font-size: 12px; margin: 6px 0 0; }
.lds-block h4 { margin: 0 0 6px; }
.lds-kvcard { padding: 4px 14px; }
.lds-note-g { color: var(--l-green); font-size: 12.5px; display: flex; gap: 6px; align-items: flex-start; }

/* results */
.lds-kpis { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--l-card); border-radius: var(--l-r); box-shadow: var(--l-edge); margin-bottom: 14px; }
.lds-kpi { padding: 16px 18px; border-left: 1px solid var(--l-line2); display: flex; flex-direction: column; gap: 2px; }
.lds-kpi:first-child { border-left: 0; }
.lds-kpi b { font-size: 26px; font-weight: 600; }
.lds-kpi span { color: var(--l-mute); }
.lds-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lds-panel { padding: 14px 16px; min-width: 0; }
.lds-panel header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.lds-panel h3 { margin: 0; font-size: 15px; }
.lds-panel h4 { margin: 12px 0 6px; font-size: 13px; }
.lds-legend { display: inline-flex; gap: 6px; align-items: center; color: var(--l-mute); font-size: 12px; }
.lds-legend i { width: 10px; height: 10px; border-radius: 3px; background: #CFCFC6; display: inline-block; }
.lds-legend i.is-won { background: #3A3A37; margin-left: 6px; }
.lds-srcrow { display: grid; grid-template-columns: 110px minmax(0, 1fr) 38px 38px 60px; gap: 10px; align-items: center; padding: 6px 0; border-top: 1px solid var(--l-line2); }
.lds-srchd { color: var(--l-mute); font-size: 11.5px; border-top: 0; }
.lds-srcrow b { text-align: right; font-weight: 500; }
.lds-srcrow > span:last-child { text-align: right; }
.lds-srcrow-ph { grid-template-columns: 90px minmax(0, 1fr) 30px; }
.lds-bar { position: relative; height: 12px; background: var(--l-soft); border-radius: 4px; overflow: hidden; }
.lds-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: #CFCFC6; border-radius: 4px; }
.lds-bar i.is-won { background: #3A3A37; }
.lds-bar-y i { background: var(--l-y); }
.lds-fn { display: grid; grid-template-columns: 80px minmax(0, 1fr) 36px 40px; gap: 10px; align-items: center; padding: 5px 0; }
.lds-fn b { text-align: right; }
.lds-lostchips { display: flex; gap: 6px; flex-wrap: wrap; }
.lds-lostchip { background: #FBE1DF; color: #9B2A22; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.lds-weeks { display: flex; align-items: flex-end; gap: 8px; height: 110px; padding-top: 6px; }
.lds-wk { flex: 1; height: 100%; position: relative; }
.lds-wk i { position: absolute; left: 0; right: 0; bottom: 0; background: #CFCFC6; border-radius: 4px 4px 0 0; }
.lds-wk i.is-soc { background: #3A3A37; }
.lds-wkax { display: flex; justify-content: space-between; color: var(--l-mute); font-size: 11px; margin-top: 4px; }

/* iPad: list and lead side by side */
.lds-p-ipad { --l-btn: 40px; }
.lds-ipad { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 0; background: var(--l-card); border-radius: 16px; box-shadow: var(--l-edge); overflow: hidden; min-height: calc(100dvh - var(--d2-top, 64px) - 60px); }
.lds-ipl { border-right: 1px solid var(--l-line); padding: 14px 12px; background: #FBFBF8; min-width: 0; }
.lds-ipr { padding: 20px 24px; min-width: 0; }
.lds-cards { display: flex; flex-direction: column; gap: 4px; }
.lds-lcard2, .lds-ph-row { display: flex; gap: 10px; align-items: flex-start; text-align: left; width: 100%; border: 0; background: transparent; border-radius: 12px; padding: 10px; cursor: pointer; min-width: 0; }
.lds-lcard2.is-on { background: #FFF2B8; }
.lds-lc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lds-lc-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; min-width: 0; }
.lds-lc-top b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lds-lc-top .lds-sub { flex: none; }
.lds-lc-tags { display: flex; gap: 8px; align-items: center; margin-top: 4px; flex-wrap: wrap; }
.lds-ipd .lds-lhd { align-items: center; }
.lds-ipnext { display: flex; gap: 10px; align-items: center; margin: 4px 0 12px; }
.lds-ipnext b { font-size: 15px; }
.lds-ipacts { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--l-line); margin-bottom: 14px; }
.lds-ipd .lds-block { margin-top: 12px; }

/* iPhone */
.lds-p-phone { padding: 0 16px; }
.lds-ph-hd { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 12px; }
.lds-ph-hd h1 { margin: 0; font-size: 32px; letter-spacing: -.02em; }
.lds-ph-plus { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--l-y); display: inline-flex; align-items: center; justify-content: center; }
.lds-ph-plus svg { width: 22px; height: 22px; }
.lds-p-phone .lds-seg { display: flex; margin-bottom: 12px; }
.lds-p-phone .lds-seg button { flex: 1; padding: 7px 0; }
.lds-chips-scroll { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 12px; padding: 0 16px 2px; scrollbar-width: none; }
.lds-chips-scroll::-webkit-scrollbar { display: none; }
.lds-ph-list { background: var(--l-card); border-radius: 14px; box-shadow: var(--l-edge); overflow: hidden; margin-bottom: 16px; }
.lds-ph-row { border-radius: 0; border-top: 1px solid var(--l-line2); padding: 12px; }
.lds-ph-row:first-child { border-top: 0; }
.lds-ph-h2 { font-size: 20px; margin: 18px 0 8px; }
.lds-ph-nav { display: flex; align-items: center; margin: 4px 0 8px; }
.lds-ph-back, .lds-ph-icon { border: 0; background: none; display: inline-flex; align-items: center; gap: 2px; font-size: 16px; padding: 6px 0; cursor: pointer; }
.lds-ph-back svg, .lds-ph-icon svg { width: 22px; height: 22px; }
.lds-ph-id { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; margin-bottom: 12px; }
.lds-ph-id h2 { margin: 6px 0 0; font-size: 22px; }
.lds-ph-id p { margin: 0; }
.lds-ph-stages { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; margin-bottom: 14px; }
.lds-ph-stages span { background: var(--l-soft); color: var(--l-mute); font-size: 10.5px; font-weight: 600; text-align: center; padding: 5px 0; border-radius: 5px; }
.lds-ph-stages span.is-past { background: #2C2C2A; color: #fff; }
.lds-ph-stages span.is-now { background: var(--l-y); color: var(--l-ink); }
.lds-ph-card { margin-bottom: 4px; }
.lds-ph-ev { display: flex; gap: 10px; padding: 11px 12px; border-top: 1px solid var(--l-line2); }
.lds-ph-ev:first-child { border-top: 0; }
.lds-ph-ev > span:last-child { min-width: 0; flex: 1; }
.lds-ph-evb { display: block; margin-top: 4px; overflow-wrap: anywhere; }
.lds-ph-spacer { height: 90px; }
.lds-ph-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; justify-content: space-around; background: rgba(250,250,247,.96); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 1px solid var(--l-line); padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px)); }
.lds-ph-bar button { border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; color: var(--l-ink); min-width: 64px; padding: 4px 0; }
.lds-ph-bar svg { width: 22px; height: 22px; }
.lds-ph-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
.lds-ph-kpis .lds-kpi { background: var(--l-card); border-radius: 14px; box-shadow: var(--l-edge); border-left: 0; padding: 12px 14px; }
.lds-ph-kpis .lds-kpi span { font-size: 11.5px; }
.lds-ph-kpis .lds-kpi b { font-size: 26px; }
.lds-p-phone .lds-block { margin-bottom: 14px; }
/* While a lead is open on the iPhone, the app's own tab bar steps back for the action bar. */
html.tp-ios-app body.lds-ph-leadopen .mobile-bottom-nav { display: none !important; }

/* sheets */
.lds-sheet-wrap { position: fixed; inset: 0; z-index: 1000; background: rgba(20,20,18,.32); display: flex; align-items: center; justify-content: center; padding: 20px; font-family: var(--d2-font, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif); color: #111; font-size: 13px;
  --l-y: #F5C500; --l-line: #E3E3DC; --l-line2: #EFEFE9; --l-mute: #73736D; --l-soft: #ECECE5; --l-card: #fff; --l-red: #D6362B; --l-green: #1E9A4B; --l-pill: #FFF4B9; --l-edge: 0 0 0 .5px rgba(0,0,0,.16), 0 1px 1.5px rgba(0,0,0,.07); --l-btn: 30px; }
.lds-sheet { background: #fff; border-radius: 16px; box-shadow: 0 18px 50px rgba(0,0,0,.18), 0 2px 6px rgba(0,0,0,.06); width: min(480px, 100%); max-height: calc(100dvh - 40px); overflow: auto; padding: 22px 24px 18px; }
.lds-sheet-wide { width: min(600px, 100%); }
.lds-sheet h2 { margin: 0 0 4px; font-size: 18px; }
.lds-sheet > .lds-mute { margin: 0 0 14px; }
.lds-sheet-ic { width: 44px; height: 44px; border-radius: 12px; background: #E2F2E6; color: #2E7A45; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.lds-sheet-b { display: flex; flex-direction: column; gap: 10px; }
.lds-sheet-err { color: var(--l-red); margin: 8px 0 0; min-height: 1em; }
.lds-sheet-ft { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.lds-sheet-ft .lds-btn { justify-content: center; width: 100%; }
.lds-f { display: flex; flex-direction: column; gap: 4px; border: 0; padding: 0; margin: 0; min-width: 0; }
.lds-f > span, .lds-f legend { font-size: 12px; color: var(--l-mute); font-weight: 600; padding: 0; }
.lds-f input, .lds-f select, .lds-f textarea { border: 1px solid var(--l-line); border-radius: 9px; padding: 8px 10px; background: #fff; min-width: 0; width: 100%; }
.lds-f textarea { resize: vertical; }
.lds-f input:focus, .lds-f select:focus, .lds-f textarea:focus { outline: 0; border-color: var(--l-y); box-shadow: 0 0 0 3px rgba(245,197,0,.25); }
.lds-f-row { display: grid; grid-template-columns: 140px minmax(0, 1fr); align-items: center; gap: 10px; }
.lds-f-row > span:first-child { font-size: 13px; color: var(--l-mute); font-weight: 500; }
.lds-f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; min-width: 0; }
.lds-radios { display: flex; flex-direction: column; gap: 6px; }
.lds-radios-row { flex-direction: row; gap: 16px; }
.lds-radio { display: flex; gap: 8px; align-items: center; font-size: 13.5px; cursor: pointer; }
.lds-menu { display: flex; flex-direction: column; background: #fff; border-radius: 12px; box-shadow: var(--l-edge); overflow: hidden; }
.lds-menu-i { border: 0; background: none; text-align: left; padding: 12px 14px; border-top: 1px solid var(--l-line2); cursor: pointer; font-size: 14px; }
.lds-menu-i:first-child { border-top: 0; }
.lds-menu-i:disabled { color: var(--l-mute); cursor: default; }
.lds-mrow { display: grid; grid-template-columns: 90px 1fr 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--l-line2); align-items: center; }
.lds-mrow label { display: flex; gap: 6px; align-items: center; min-width: 0; overflow-wrap: anywhere; }
.lds-mhd { border-top: 0; color: var(--l-mute); }
.lds-check { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.lds-grab { width: 36px; height: 5px; border-radius: 3px; background: #D4D4CC; margin: -8px auto 12px; }
.lds-sw-phone { align-items: flex-end; padding: 0; }
.lds-sw-phone .lds-sheet { width: 100%; border-radius: 18px 18px 0 0; max-height: 88dvh; padding: 18px 16px calc(16px + env(safe-area-inset-bottom, 0px)); }
.lds-sw-phone .lds-sheet h2 { text-align: center; }
.lds-sw-phone .lds-sheet > .lds-mute { text-align: center; }
.lds-sw-phone .lds-f-row { grid-template-columns: 1fr; gap: 4px; }
.lds-sw-ipad .lds-btn { --l-btn: 40px; }

@media (max-width: 1280px) {
  .lds-split { grid-template-columns: minmax(0, 1fr) 280px; }
  .lds-tr { grid-template-columns: minmax(150px, 1.4fr) minmax(110px, 1fr) 96px 40px minmax(120px, 1.2fr) 112px; }
  .lds-lead { grid-template-columns: minmax(0, 1fr) 340px; }
  .lds-board { grid-template-columns: repeat(6, minmax(140px, 1fr)); overflow-x: auto; }
}
@media (max-width: 1080px) {
  .lds-split, .lds-lead { grid-template-columns: minmax(0, 1fr); }
  .lds-insp { display: none; }
  .lds-grid2 { grid-template-columns: 1fr; }
  .lds-tr { grid-template-columns: minmax(150px, 1.4fr) minmax(110px, 1fr) 96px minmax(120px, 1.2fr); }
  .lds-tr > :nth-child(4), .lds-tr > :nth-child(6) { display: none; }
  .lds-board { display: flex; overflow-x: auto; }
  .lds-bcol { min-width: 200px; }
}
@media (max-width: 760px) {
  .lds:not(.lds-p-phone) .lds-kpis { grid-template-columns: 1fr 1fr; }
  .lds-ipad { grid-template-columns: 1fr; }
  .lds-f2 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .lds-bcol { transition: none; } }

.lds-ipseg { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; }
.lds-ipseg .lds-seg button { padding: 7px 22px; }
.lds-fl { padding: 10px 14px; border-top: 1px solid var(--l-line2); }
.lds-fl:first-child { border-top: 0; }
.lds-fl p { margin: 0 0 2px; }
