/* /linkedin-prospecting-software/ in the painted theme (template-parts/painted/pages/linkedin-prospecting-software.php).

   The header's piece is the workflow's window, the search it started from on top and one track per person under it:
   the person, then a cell for each LinkedIn step (Visit, Request, Accepted, Message, Reply), lit on the day it happens.
   LinkedIn's steps wear the LinkedIn lane's blue as the multichannel page draws it, the email instead the outreach
   orange, a reply the AI line's green. On a phone a track is the person over a row of five small cells with their
   step's name under each, the reply under them. assets/js/pages/linkedin-prospecting-software.js plays the days; with
   reduced motion or no script the window stands as it ends. */

.gsp-pp .pp-head { --pp-pic: 1100px; }

.lps { display: grid; gap: 14px; text-align: left; }
.lps-win { overflow: hidden; }
.lps-act { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px 0 8px; border-radius: 999px; background: var(--ai-t); font: 600 12.5px/1 var(--sans); color: var(--ai-d); }
.lps-act i { width: 7px; height: 7px; border-radius: 50%; background: var(--ai); }
.lps-day { margin-right: 10px; font: 500 12px/1 var(--mono); color: var(--mute); white-space: nowrap; }
.lps-day b { color: var(--ink); font-weight: 600; }

/* ---------- the search it started from ---------- */
.lps-src { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 16px 24px; border-bottom: 1px solid rgba(70, 52, 40, .09); background: color-mix(in srgb, var(--paper) 60%, #fff); }
.lps-q { display: flex; flex: 1 1 360px; align-items: center; gap: 12px; min-width: 0; }
.lps-q .disc { display: grid; flex: none; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--data-t); color: var(--data-d); }
.lps-q .disc svg.i { width: 16px; height: 16px; }
.lps-q > span:last-child { display: grid; gap: 2px; min-width: 0; }
.lps-q small { font: 500 11px/1.3 var(--mono); letter-spacing: .02em; color: var(--mute); }
.lps-q b { font-weight: 600; font-size: 14.5px; line-height: 1.35; color: var(--ink); }
.lps-sn { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px rgba(70, 52, 40, .14); font-size: 12.5px; color: var(--body); white-space: nowrap; }
.lps-sn svg.i { width: 13px; height: 13px; color: var(--mute); }
.lps-n { display: inline-flex; align-items: baseline; gap: 5px; font-size: 13px; color: var(--mute); white-space: nowrap; }
.lps-n b { margin-left: 6px; font: 600 15px/1 var(--mono); color: var(--ink); }
.lps-n b:first-child { margin-left: 0; }

/* ---------- the tracks ---------- */
.lps-grid { --cols: minmax(150px, 1.15fr) repeat(4, minmax(0, .8fr)) minmax(0, 1.75fr); list-style: none; margin: 0; padding: 6px 24px 8px; }
.lps-hd, .lps-r { display: grid; grid-template-columns: var(--cols); align-items: center; gap: 10px; }
.lps-hd { padding: 10px 0 8px; font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mute-2); }
.lps-r { position: relative; min-height: 62px; padding: 9px 0; border-top: 1px solid rgba(70, 52, 40, .08); }
.lps-p { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lps-p .gsp-face { flex: none; width: 28px; height: 28px; }
.lps-p > span { display: grid; min-width: 0; }
.lps-p b { font-weight: 600; font-size: 13.5px; line-height: 1.25; color: var(--ink); }
.lps-p small { overflow: hidden; font-size: 12px; line-height: 1.35; color: var(--mute); white-space: nowrap; text-overflow: ellipsis; }

/* a cell: its dot with the step's glyph, the words under it, and the track's line from its dot to the next cell's (each
   later cell paints over the line that reaches it); none into a step the person has not reached */
.lps-c { --gap: 10px; --dot: 0px; position: relative; z-index: 1; display: grid; justify-items: start; gap: 4px; min-width: 0; }
.lps-c:not(:last-child)::before { content: ""; position: absolute; top: calc(var(--dot) + 13px); left: 13px; width: calc(100% + var(--gap)); height: 1px; background: rgba(70, 52, 40, .16); }
.lps-c:has(+ .lps-reply)::before { width: calc(100% + var(--gap) - 13px); }
.lps-c:has(+ .lps-off)::before, .lps-off::before, .lps-reply::before { display: none; }
.lps-c i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(70, 52, 40, .16); color: var(--mute); transition: background .25s, color .25s, box-shadow .25s; }
.lps-c i svg.i { width: 13px; height: 13px; }
.lps-c small { overflow: hidden; max-width: 100%; font: 500 10.5px/1.3 var(--mono); color: var(--mute); white-space: nowrap; text-overflow: ellipsis; }
.lps-done i { background: var(--data-t); box-shadow: 0 0 0 1px color-mix(in srgb, var(--data) 30%, transparent); color: var(--data-d); }
.lps-wait i, .lps-queue i, .lps-next i { box-shadow: 0 0 0 1px rgba(70, 52, 40, .22); color: var(--body); }
.lps-wait small, .lps-next small { color: var(--body); }
.lps-no i { background: var(--sunk); box-shadow: none; color: var(--mute); }
.lps-mail i { background: var(--out-t); box-shadow: 0 0 0 1px color-mix(in srgb, var(--out) 30%, transparent); color: var(--out-d); }
.lps-mail small { color: var(--out-d); }
.lps-off i { width: 8px; height: 8px; margin: 9px; background: rgba(70, 52, 40, .14); box-shadow: none; }

/* the reply: their words in a bubble on the line's paper, the channel and the label under it */
.lps-reply { display: grid; gap: 5px; padding: 8px 11px 8px 12px; border-radius: 12px 12px 12px 4px; background: color-mix(in srgb, var(--ai-t) 70%, #fff); box-shadow: 0 0 0 1px color-mix(in srgb, var(--ai) 20%, transparent); }
.lps-reply q { quotes: none; font-size: 12.5px; line-height: 1.38; color: var(--ink); }
.lps-reply small { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font: 500 10.5px/1.3 var(--mono); color: var(--ai-d); white-space: normal; }
.lps-ch { display: inline-flex; align-items: center; gap: 4px; color: var(--body); }
.lps-ch svg.i { width: 11px; height: 11px; }

/* ---------- the foot: the workflow's counts so far ---------- */
.lps-ft { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(70, 52, 40, .09); background: color-mix(in srgb, var(--paper) 60%, #fff); }
.lps-ft li { display: grid; gap: 3px; padding: 14px 24px 15px; }
.lps-ft li + li { border-left: 1px solid rgba(70, 52, 40, .08); }
.lps-ft b { font: 600 20px/1 var(--mono); letter-spacing: -.02em; color: var(--ink); }
.lps-ft span { font-size: 12px; line-height: 1.35; color: var(--mute); }

/* the line a phone prints for the tracks it folds */
.lps-more { display: none; }

.lps-re { justify-self: center; height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px rgba(70, 52, 40, .16); font: 600 13px/1 var(--sans); color: var(--ink); cursor: pointer; }
.lps-re:hover { box-shadow: 0 0 0 1px rgba(70, 52, 40, .3); }

/* ---------- the play: a cell not reached yet stands as an empty dot, a reply as nothing ---------- */
.lps.is-playing .lps-c[data-d]:not(.on) i { background: #fff; box-shadow: 0 0 0 1px rgba(70, 52, 40, .12); color: transparent; }
.lps.is-playing .lps-c[data-d]:not(.on) small { color: transparent; }
.lps.is-playing .lps-reply:not(.on) { opacity: 0; transform: translateY(4px); }
.lps-reply { transition: opacity .35s, transform .35s; }
.lps.is-playing .lps-ft b { color: var(--mute); }

/* ---------- a narrower window: the person's line shortens, the reply keeps its room ---------- */
@media (max-width: 1180px) {
  .lps-grid { --cols: minmax(130px, 1fr) repeat(4, minmax(0, .74fr)) minmax(0, 1.6fr); padding: 6px 18px 8px; }
  .lps-src, .lps-ft li { padding-left: 18px; padding-right: 18px; }
  .lps-c small { font-size: 10px; }
}

/* ---------- a phone: each track the person over five small cells, the step under each, the reply under them ---------- */
@media (max-width: 760px) {
  .lps-src { padding: 14px 16px; }
  .lps-q { flex-basis: 100%; }
  .lps-q b { font-size: 13.5px; }
  .lps-grid { padding: 2px 14px 6px; }
  .lps-hd { display: none; }
  .lps-r { grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: start; gap: 10px 4px; padding: 14px 0 12px; }
  .lps-x { display: none; }
  .lps-more { display: flex; flex-wrap: wrap; gap: 4px 8px; padding: 12px 0 10px; border-top: 1px solid rgba(70, 52, 40, .08); font-size: 12.5px; line-height: 1.4; color: var(--mute); }
  .lps-more b { font-weight: 600; color: var(--ink); }
  .lps-p { grid-column: 1 / -1; }
  .lps-c { --gap: 4px; --dot: 14px; }
  .lps-c::after { content: attr(data-col); order: -1; height: 10px; font: 500 9.5px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--mute-2); }
  .lps-c:has(+ .lps-reply)::before { display: none; }
  .lps-c small { font-size: 9.5px; white-space: normal; }
  .lps-reply { grid-column: 1 / -1; order: 9; }
  .lps-reply::after { display: none; }
  .lps-off small { display: none; }
  .lps-ft { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lps-ft li { padding: 12px 16px; }
  .lps-ft li + li { border-left: 0; }
  .lps-ft li:nth-child(even) { border-left: 1px solid rgba(70, 52, 40, .08); }
  .lps-ft li:nth-child(n + 3) { border-top: 1px solid rgba(70, 52, 40, .08); }
  .lps-ft li:first-child { grid-column: 1 / -1; }
  .lps-ft li:nth-child(2) { border-left: 0; }
  .lps-ft li:nth-child(odd):not(:first-child) { border-left: 1px solid rgba(70, 52, 40, .08); }
  .lps-ft b { font-size: 18px; }
}
