/* ===========================================================================
   Outreach
   ---------------------------------------------------------------------------
   Three numbered stages down the page — pending approval, approved and
   waiting, sent — so the screen reads as a pipeline rather than a list with a
   status column.

   Each card carries the whole four-email schedule as a rail, so approving is a
   decision about a sequence rather than about one subject line.
   =========================================================================== */

.stage { display: flex; flex-direction: column; gap: 36px }
.stage__head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap }
.stage__head h3 {
  margin: 0; font-size: 19px; font-weight: var(--weight-strong); letter-spacing: -.02em;
  display: flex; align-items: center; gap: 10px;
}
.stage__head h3 .ms { font-size: 20px; color: var(--muted) }
/* A heading's own count, grey, as a sub tab's is. */
.stage__head h3 .stage__n { font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums }
/* Back to Today, left of a To do list section's title, which then drops its
   own icon so the arrow stands alone. */
.stage__back {
  width: 40px; height: 40px; flex: 0 0 40px; margin-left: -8px; border-radius: var(--r-pill);
  display: grid; place-items: center; color: var(--text); text-decoration: none;
  transition: background-color .18s ease;
}
.stage__back .ms { font-size: 22px }
.stage__back:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--text) }
.stage__back:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px }
.stage__back + h3 > .ms:first-child { display: none }

/* The pipeline at a glance: one step per stage, joined by a line, the count
   carrying the weight. Amber when something waits on you, green when sends are
   queued, quiet otherwise. */
.stagestrip {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 6px;
}
.stagestrip__step {
  position: relative; display: flex; align-items: center; gap: 12px; min-width: 0;
  padding: 12px 16px; border: none; border-radius: 15px; background: none; cursor: pointer;
  font-family: inherit; color: var(--text); text-align: left;
}
.stagestrip__step:hover { background: var(--page) }
.stagestrip__step + .stagestrip__step::before {
  content: ""; position: absolute; left: -6px; top: 50%; width: 12px; height: 2px; background: var(--hair);
}
.stagestrip__icon {
  width: 36px; height: 36px; flex: 0 0 36px; border-radius: var(--r-pill);
  display: grid; place-items: center; background: var(--page); color: var(--muted);
}
.stagestrip__icon .ms { font-size: 19px }
.stagestrip__title {
  flex: 1; min-width: 0; font-size: 13px; font-weight: var(--weight-strong);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.stagestrip__count { font-size: 22px; font-weight: var(--weight-strong); font-variant-numeric: tabular-nums; letter-spacing: -.02em }
.stagestrip__step--wait .stagestrip__icon { background: var(--amber); color: var(--ink-fixed) }
.stagestrip__step--go .stagestrip__icon { background: #2E9E63; color: #FFF }
@media (max-width: 640px) {
  .stagestrip__title { display: none }
  .stagestrip__step { justify-content: center; padding: 10px 8px }
}
/* A stage's count: coloured words, no tag box around them. */
.stage__count {
  font-size: 13px; font-weight: var(--weight-strong); white-space: nowrap;
  background: none; color: #6B4A00;
}
.stage__count--go { color: #1E7A4A }
/* A count drawn as an icon and its number. */
.stage__count--icon { display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums }
.stage__count--icon .ms { font-size: 16px }
/* min() so a phone narrower than one card gets one card at its own width,
   rather than a 400px card hanging off the right edge. */
.stage__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(400px, 100%), 1fr)); gap: 20px }

/* An empty stage: the outline of the card that will land in it. */
.seqghost {
  max-width: 420px; border: 1.5px dashed var(--line); border-radius: 24px; padding: 22px 26px;
  display: flex; flex-direction: column; gap: 14px;
}
.seqghost__top { display: flex; align-items: center; gap: 12px; margin-bottom: 4px }
.seqghost__mark { width: 40px; height: 40px; border-radius: 11px; background: var(--line) }
.seqghost__bar { height: 10px; width: 45%; border-radius: var(--r-pill); background: var(--line) }
.seqghost__step { display: flex; align-items: center; gap: 12px }
.seqghost__dot { width: 10px; height: 10px; flex: 0 0 10px; border-radius: var(--r-pill); background: var(--line) }
.seqghost__dot--first { background: var(--muted); opacity: .45 }
.seqghost__line { height: 8px; width: 30%; border-radius: var(--r-pill); background: var(--line) }

.seqcard {
  border-radius: 24px; padding: 24px 26px; display: flex; flex-direction: column;
  cursor: pointer; text-align: left; font-family: inherit; color: var(--text);
  transition: border-color .16s ease;
  background: #FFF8E6; border: 1px solid #F0DFAE;
}
.seqcard:hover { border-color: var(--ink) }
/* One rhythm down every work card: the card spaces its parts, 20px apart, so
   no part's own margin can crowd or strand the next. The business foot still
   takes the spare height so a row of cards ends level. */
.seqcard { gap: 20px }
.seqcard > *:not(.who__foot) { margin-top: 0; margin-bottom: 0 }
.seqcard > .who__foot { margin-top: auto }
.seqcard--go { background: #E9F5EE; border-color: #C4E0CF }
.seqcard__top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px }
.seqcard__mark {
  width: 40px; height: 40px; flex: 0 0 40px; border-radius: 11px;
  display: grid; place-items: center; font-size: 13px; font-weight: var(--weight-strong);
  background: var(--coral); color: var(--on-coral);
}
.seqcard--go .seqcard__mark { background: #2E9E63; color: #FFF }
.seqcard__top .wheel { margin-left: auto }
.seqcard__fit { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto }
.seqcard__fit .wheel { margin-left: 0 }
.seqcard__fitlabel { font-size: 12px; font-weight: var(--weight-strong); color: var(--muted); white-space: nowrap }

/* Both ends of every work card: the person at the top, the business at the
   foot, each a row of mark, name and the fit ring with its label. The two
   rows share one grid so the rings line up in a column. The person's mark is
   the larger: the card is about them. The foot takes the card's spare height,
   so the businesses of a row of cards sit level.
   No rules across the card: space alone sets its parts apart. Every gap
   inside a part is far smaller than the gap between parts, so the card
   reads as three blocks at a glance, person, why and when, business and step:
     32px  under the person and above the business, the same both sides so
           the middle reads as one band; more above the business where the
           card is short
     24px  the card's padding, a little less than the gaps between parts
      8px  between the reasons in a list (.ans__why), so they read as one list
   The card's own 20px gap is the base the 32s adjust. */
.who { display: grid; gap: 12px }
.seqcard > .who { margin-bottom: 12px }
.who__row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px }
.who__foot { margin-top: auto; padding-top: 18px }
.seqcard > .who__foot { padding-top: 12px }
/* An action row just above the business needs no rule of its own. */
.seqcard__foot:has(+ .who__foot) { border-top: 0; padding-top: 0 }
.who__mark { width: 44px; height: 44px; flex-basis: 44px; border-radius: 12px }
.who__logo {
  width: 32px; height: 32px; justify-self: center; border-radius: 9px;
  display: grid; place-items: center; font-size: 11.5px; font-weight: var(--weight-strong);
  background: var(--card); color: var(--ink); border: 1px solid rgb(0 0 0 / .1);
}
.who__text { min-width: 0 }
.who__name, .who__coname {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.who__name { font-size: 16px; font-weight: var(--weight-strong) }
.who__coname { font-size: 14px; font-weight: var(--weight-strong) }
.who__sub { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.who__fit { display: inline-flex; align-items: center; gap: 8px }
.who__fitlabel { font-size: 12px; font-weight: var(--weight-strong); color: var(--muted); white-space: nowrap }
.who__row--co .wheel { width: 32px; height: 32px; flex-basis: 32px }
.who__row--co .wheel__inner { width: 24px; height: 24px; font-size: 11px }
@media (max-width: 420px) {
  .who__fit { flex-direction: column-reverse; gap: 2px }
  .who__fitlabel { font-size: 11px }
}
/* The frame stays quiet so the eye lands in the middle. The person and the
   business are smaller and lighter than the work between them: a smaller
   mark and ring on top, and at the foot a muted name, logo and ring. The
   middle's key figures are drawn larger in their own rules below. */
.who__row { grid-template-columns: 40px minmax(0, 1fr) auto }
.who__mark { width: 40px; height: 40px; flex-basis: 40px; border-radius: 11px }
.who__name { font-size: 15px }
.who__sub { font-size: 12px }
.who__fitlabel { font-size: 11.5px; font-weight: 400 }
.who__row .wheel { width: 34px; height: 34px; flex-basis: 34px }
.who__row .wheel__inner { width: 26px; height: 26px; font-size: 11.5px }
/* The business row: logo flush left, name, then its small fit ring beside
   it, with "Open" pushed to the far right. */
.who__row--co { display: flex; align-items: center; gap: 8px }
.who__row--co .who__text { flex: 0 1 auto }
.who__row--co .wheel { flex: none }
.who__foot:has(> .who__open) { display: flex; align-items: center; gap: 8px }
.who__foot > .who__row--co { flex: 1 1 auto; min-width: 0 }
.who__foot > .who__open { margin-left: auto; padding-left: 8px }
.who__row--co .who__logo { flex: none; width: 24px; height: 24px; border-radius: 7px; font-size: 9px; margin: 0 }
.who__row--co .who__coname { font-size: 12px; color: var(--muted) }
.who__row--co .who__sub { font-size: 10.5px }
/* The business's own small ring. Whole pixels with an even 3px band (24 round
   18), so it stays round wherever the row puts it; an odd size left a 2.5px
   band that drew lopsided. The number sits on a line exactly its own height,
   so it centres in the ring. */
.who__row--co .wheel { width: 24px; height: 24px; flex-basis: 24px }
.who__row--co .wheel__inner { width: 18px; height: 18px; font-size: 9px; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums }
/* "Open" at the foot's right: the card's way in, darkening with the card's hover. */
.who__open {
  display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
  font-size: 13px; font-weight: var(--weight-strong); color: var(--muted);
  transition: color .16s ease;
}
.who__open .ms { font-size: 17px; transition: transform .16s ease }
.seqcard:hover .who__open, .seqcard:focus-visible .who__open { color: var(--ink) }
.seqcard:hover .who__open .ms { transform: translateX(2px) }
@media (prefers-reduced-motion: reduce) { .who__open .ms { transition: none } }
/* Where a card has a step, the step takes Open's place: its channel's mark and
   a verb, in the channel's colour, and it keeps that colour on hover. */
.who__act { gap: 6px; font-size: 14px }
.who__act .ms { font-size: 18px }
.seqcard:hover .who__act .ms { transform: none }
.who__act--linkedin, .seqcard:hover .who__act--linkedin, .seqcard:focus-visible .who__act--linkedin { color: #00669C }
.who__act--email, .seqcard:hover .who__act--email, .seqcard:focus-visible .who__act--email { color: #04635C }
.who__act--call, .seqcard:hover .who__act--call, .seqcard:focus-visible .who__act--call { color: #1F7A4A }
.who__act--whatsapp, .seqcard:hover .who__act--whatsapp, .seqcard:focus-visible .who__act--whatsapp { color: #1C7D45 }
.who__act:not(.who__act--linkedin, .who__act--email, .who__act--call, .who__act--whatsapp, .who__act--nonumber, .who__act--findnumber) { color: var(--text) }
.who__act--nonumber, .seqcard:hover .who__act--nonumber, .seqcard:focus-visible .who__act--nonumber,
.who__act--findnumber, .seqcard:hover .who__act--findnumber, .seqcard:focus-visible .who__act--findnumber { color: var(--muted) }
/* Cold outreach's status (approvalMark): three dots joined like the
   sequence's timeline (to approve, approved, sending), filled as far as the
   row has come, over the stage's icon and name. The colour is the state, so
   it holds on hover rather than turning ink. */
.apprmark { flex-direction: column; align-items: flex-end; gap: 6px }
.apprmark__track { display: flex; align-items: center }
.apprmark__track i { position: relative; width: 10px; height: 10px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 2px var(--line) }
.apprmark__track i + i { margin-left: 16px }
.apprmark__track i + i::before {
  content: ""; position: absolute; right: 100%; top: 4px; width: 16px; height: 2px; background: var(--line);
}
.apprmark__track i.on { background: currentColor; box-shadow: none }
.apprmark__track i.on + i.on::before { background: currentColor }
.apprmark__said { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; overflow: hidden; text-overflow: ellipsis }
.seqcard:hover .apprmark .ms { transform: none }
.apprmark--warn, .seqcard:hover .apprmark--warn, .seqcard:focus-visible .apprmark--warn { color: #8A5A00 }
.apprmark--go, .seqcard:hover .apprmark--go, .seqcard:focus-visible .apprmark--go { color: #04635C }
.apprmark--good, .seqcard:hover .apprmark--good, .seqcard:focus-visible .apprmark--good { color: #1F7A4A }
.apprmark--muted, .seqcard:hover .apprmark--muted, .seqcard:focus-visible .apprmark--muted { color: var(--muted) }
/* Every work card's middle: why, then when, in the same places on every card,
   split by a hairline. The step to take is in the foot (.who__act). No
   captions: each answer is worded to stand on its own. The grid's columns are
   set by workAnswers(), as a card with no deadline has only its why. */
.ans { display: grid }
/* Each answer sits in the middle of the row's height, so a one-line When or
   Do lines up with the centre of a longer list of reasons beside it. The
   columns themselves still stretch, so the dividers run the full height. */
.ans__s { display: flex; flex-direction: column; justify-content: center; gap: 8px; min-width: 0; padding: 0 16px }
.ans__s:first-child { padding-left: 0 }
.ans__s:last-child { padding-right: 0 }
.ans__s + .ans__s { border-left: 1px solid rgb(16 33 31 / .1) }
.ans__why { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none }
.ans__why li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 8px; align-items: start; font-size: 15px; font-weight: var(--weight-strong); line-height: 1.3; text-wrap: pretty }
/* Three or more reasons. Counted from the first item rather than with
   :has(li:nth-child(3)) li, which made Chrome restyle every li on the page
   whenever anything changed (same specificity as that form). */
ul.ans__why > li:nth-child(n):where(:first-child:nth-last-child(n+3), :first-child:nth-last-child(n+3) ~ li) { font-size: 14px; font-weight: 500 }
.ans__age { font-weight: 500; color: var(--muted); white-space: nowrap }
.ans__icon { display: grid; color: #04635C }
.ans__icon .ms { font-size: 20px; margin-top: -1px }
.ans__icon svg { margin-top: 1px }
.ans__when { font-size: 19px; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; text-wrap: balance }
/* On a phone, side by side is too narrow for a reason, so why and when
   stack, still in order, split by a hairline. */
@media (max-width: 480px) {
  .ans:has(> .ans__s--why + .ans__s) { grid-template-columns: minmax(0, 1fr) !important; row-gap: 16px }
  .ans > .ans__s--why:not(:only-child) { padding: 0 0 16px; border-bottom: 1px solid rgb(16 33 31 / .1) }
  .ans > .ans__s--why + .ans__s { padding-left: 0; border-left: 0 }
  .ans__when { font-size: 18px }
}

/* The To do list's work tabs as one list (workList), not a grid of cards: a
   queue is read top to bottom, and a row shows three times as many people
   a screen. Each card keeps its markup; here the wrappers that only stack
   it step aside (display: contents) so each part lands in a column of the
   row, under the header that names that column once. The person and the
   business each keep their own row, so a fit ring sits right after the name
   it scores ("Person and fit", "Business and fit"). The work is on the
   right: why, when, and the step in its channel's colour.
   Below 760px of list the header goes and a row stacks into short lines:
   the person and their fit, why, when, the business and the step. */
.worklist {
  --wl-cols: minmax(0, 1.3fr) minmax(0, 1.15fr) minmax(0, 1.5fr) minmax(0, .85fr) 164px;
  container-type: inline-size;
  /* The Companies table's container (.table): a 16px radius, a faint edge,
     the softest shadow. Clip, not hidden: hidden makes the list a scroller
     of its own, and its column heads would pin to it rather than the page. */
  background: var(--card); border: 1px solid rgba(16, 33, 31, .07); border-radius: 16px;
  box-shadow: 0 1px 2px rgba(16, 33, 31, .04); overflow: clip;
}
.worklist__head { display: none }
.worklist > .seqcard {
  /* A button sizes to its content; a row is the list's full width. */
  width: 100%; box-sizing: border-box;
  display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; gap: 8px 12px;
  border: 0; border-radius: 0; background: none; padding: 14px 16px;
  transition: background-color .16s ease;
}
.worklist > .seqcard + .seqcard { border-top: 1px solid var(--hair) }
.worklist > .seqcard:hover { background: var(--page); border-color: transparent; box-shadow: none; transform: none }
.worklist > .seqcard:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px }
.worklist > .seqcard > *, .worklist > .seqcard > .who__foot { margin: 0; padding: 0 }
.worklist .who, .worklist .ans { display: contents }

/* The person: picture, name and role, and their fit ring straight after. */
.worklist .who > .who__row { grid-column: 1 / -1; grid-row: 1; display: flex; align-items: center; gap: 12px; min-width: 0 }
.worklist .who__mark { flex: none; width: 36px; height: 36px; border-radius: 10px; font-size: 12px }
.worklist .who__row .who__text { flex: 0 1 auto; min-width: 0 }
.worklist .who__fit { flex: none; margin-left: -2px }
.worklist .who__name { font-size: 14px }
.worklist .who__sub { font-size: 12px }
.worklist .who__fit .wheel { width: 30px; height: 30px; flex-basis: 30px }
.worklist .who__fit .wheel__inner { width: 22px; height: 22px; font-size: 10.5px }

/* Why, then when. */
.worklist .ans > .ans__s, .worklist .ans > .ans__s--why:not(:only-child) { padding: 0; border: 0; gap: 4px; justify-content: center }
.worklist .ans__s--why { grid-column: 2; grid-row: 2 }
.worklist .ans__s:not(.ans__s--why) { grid-column: 2; grid-row: 3 }
.worklist .ans__why { gap: 4px }
.worklist .ans__why li, .worklist ul.ans__why > li:nth-child(n):where(:first-child:nth-last-child(n+3), :first-child:nth-last-child(n+3) ~ li) {
  grid-template-columns: 18px minmax(0, 1fr); gap: 6px; font-size: 13.5px; font-weight: 500; line-height: 1.35;
}
.worklist .ans__why li:first-child { font-weight: var(--weight-strong) }
/* Three reasons (a buying signal's) sit a touch closer, so they fit an 86px row. */
.worklist .ans__why:has(li:nth-child(3)) { gap: 2px }
.worklist .ans__s--why ul.ans__why > li:nth-child(n):where(:first-child:nth-last-child(n+3), :first-child:nth-last-child(n+3) ~ li) { font-size: 13px; line-height: 17px }
.worklist .ans__icon .ms { font-size: 18px; margin-top: 0 }
.worklist .ans__when { font-size: 13.5px; line-height: 1.3; font-weight: 700; letter-spacing: 0; text-wrap: balance }
/* What makes the time good, under it and quieter: the time is read first. */
.ans__whensub { display: flex; align-items: center; gap: 4px; font-size: 12.5px; line-height: 1.3; font-weight: 500; color: var(--muted); white-space: nowrap; min-width: 0 }
.ans__whensub > span { overflow: hidden; text-overflow: ellipsis }
.ans__whensub .ms { font-size: 15px; color: inherit }
/* A call row's reason (Rob, 17 Nov 2026, option A): the icon in a round
   mark washed in its colour, the reason in a few bold words, and under it,
   quieter, how late it is and the calls so far. */
.worklist .callrow .ans__why li { display: block; min-width: 0 }
.worklist .callrow .ans__icon { width: auto; height: auto; display: block; min-width: 0 }
.worklist .callrow .ans__why li > span:not(.ans__icon) { display: none }
.rsn { display: flex; align-items: center; gap: 10px; min-width: 0; --rsn: var(--muted) }
.rsn__mark { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--rsn); background: color-mix(in srgb, var(--rsn) 14%, transparent) }
.worklist .rsn__mark .ms { font-size: 18px }
.rsn__text { display: grid; min-width: 0 }
.rsn__lbl { font-size: 13.5px; line-height: 1.3; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.rsn__sub { font-size: 12.5px; line-height: 1.3; font-weight: 500; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.rsn--late { --rsn: var(--bad) }
.rsn--late .rsn__lbl, .rsn--late .rsn__sub { color: var(--bad) }
.rsn--due { --rsn: #B07A00 }
.rsn--warm { --rsn: #D9603F }
.rsn--reply { --rsn: #00877C }
/* The best time and why on one line, the day drawn under them. */
.worklist .callrow .ans__when { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 10px; min-width: 0 }
.worklist .callrow .ans__when .ans__whensub { flex: 0 1 auto }
.tl__time { flex: none; white-space: nowrap }
/* Their day as one line: an hour's green wash as strong as the chance they
   pick up then, the best window solid, today's past faded, a pin on now,
   and the window's hours under it with the day's ends. */
.tl { display: block; width: 100%; max-width: 240px; margin-top: 8px }
.tl__track { position: relative; display: flex; height: 8px; border-radius: 4px; overflow: visible; background: var(--hair) }
.tl__hr { flex: 1; background: var(--good) }
.tl__hr:first-child { border-radius: 4px 0 0 4px }
.tl__hr:last-of-type { border-radius: 0 4px 4px 0 }
.tl__past { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px 0 0 4px; background: repeating-linear-gradient(135deg, rgb(255 255 255 / .75) 0 2px, rgb(255 255 255 / .45) 2px 4px) }
.tl__best { position: absolute; top: -1px; bottom: -1px; min-width: 6px; border-radius: 5px; background: var(--good) }
.tl--later .tl__best { background: color-mix(in srgb, var(--good) 70%, transparent) }
.tl__now { position: absolute; top: -5px; bottom: -5px; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--text) }
.tl__now::before { content: ""; position: absolute; top: -3px; left: -2px; width: 6px; height: 6px; border-radius: 50%; background: var(--text) }
.tl__keys { position: relative; display: block; height: 15px; margin-top: 5px; font-size: 11px; line-height: 15px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap }
.tl__win { position: absolute; top: 0; transform: translateX(-50%); font-weight: 700; color: #1F7A4A }
/* Near an end the window's hours sit against it rather than past it. */
.tl__win--start { transform: none }
.tl__win--end { transform: translateX(-100%) }
.worklist > .seqcard:hover .tl__past { background: repeating-linear-gradient(135deg, rgb(244 244 244 / .75) 0 2px, rgb(244 244 244 / .45) 2px 4px) }
/* Calls gives Best time the room Later had, for its day line. */
.worklist--calls { --wl-cols: minmax(0, 1.25fr) minmax(0, 1.1fr) minmax(0, 1.2fr) minmax(0, 1.45fr) 120px }
@container (min-width: 760px) and (max-width: 1099.98px) {
  .worklist--calls > .worklist__head, .worklist--calls > .seqcard { --wl-cols: minmax(0, 1.2fr) minmax(0, .95fr) minmax(0, 1.15fr) minmax(0, 1.4fr) 112px }
}

/* The business with its ring straight after the name, then the step; the
   step drops to its own line, still on the right, when the business would
   have to give way to it. */
.worklist .who__foot { grid-column: 2; grid-row: 4; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; min-width: 0 }
.worklist .who__row--co { flex: 0 1 auto; gap: 8px; min-width: 0 }
.worklist .who__row--co .who__text { flex: 0 1 auto; min-width: 0 }
.worklist .who__foot > .who__open { flex: none; margin-left: auto; padding-left: 0 }
.worklist .who__act { font-size: 13px; gap: 5px }
.worklist .who__act .ms { font-size: 17px }
.worklist .licard__foot { grid-column: 2; grid-row: 2; margin: 0; padding: 0; border: 0 }
/* A row with no person (a customer, a quiet deal) starts at the business. */
.worklist > .seqcard:not(:has(> .who)) .who__foot { grid-row: 1 }
/* A skeleton row while the list loads. */
.worklist__skrow { display: flex; align-items: center; gap: 16px; padding: 14px 18px; min-height: 68px }
.worklist__skrow + .worklist__skrow { border-top: 1px solid var(--hair) }

/* A task: the row opens what it is for through a button laid over it, and
   the box to tick it off sits above that, its own control. */
.worklist__task { position: relative; cursor: default }
.worklist__hit {
  position: absolute; inset: 0; z-index: 0; width: 100%; padding: 0; border: 0; background: none; cursor: pointer;
}
.worklist__hit:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px }
.worklist__task > :not(.worklist__hit) { pointer-events: none }
.worklist__tick {
  pointer-events: auto; position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 0; border: 0; background: none; cursor: pointer; font: inherit; font-size: 13px;
  font-weight: var(--weight-strong); color: var(--muted);
}
.worklist__tick:hover, .worklist__tick:focus-visible { color: var(--text) }
.worklist__tick:hover .todo__check { border-color: var(--ink) }
.worklist__tick:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 6px }
.worklist__tick[aria-checked="true"] { color: var(--good) }
.worklist__tick[aria-checked="true"] .todo__check { background: var(--good); border-color: var(--good); color: #FFF }
.worklist__task.is-done { opacity: .5 }
.worklist__task.is-done .ans__why li { text-decoration: line-through }
/* A row with a step and a Done (a customer's check-in): Done sits under the
   step in its column, not in a column of its own. */
@container (min-width: 760px) {
  .worklist .who__foot > .worklist__tick:not(.who__open) { grid-column: 5; grid-row: 1; justify-self: end; align-self: end; padding: 0 }
  .worklist .who__foot:has(> .worklist__tick:not(.who__open)) > .who__open { align-self: start; margin-top: 2px }
}

/* A sequence's row: its sends on a timeline, evenly spaced (--at, 0 to 1,
   set by the card), the dates under the nodes saying the gaps. A thin
   rule runs through the middle of the nodes, green as far as the last send
   that has gone (--done). Every send is the same round node in the sending
   calendar's colour with the mail icon in it; a step that also adds a
   LinkedIn touch wears LinkedIn's mark as a badge on its node, so the
   nodes stay one size. Ringed while it waits, solid once it has gone, with
   its day under it, green with a tick once sent. The box is exactly a node
   and its day tall, so the row centres it. The step's words stay for
   screen readers. */
.worklist .steplist {
  grid-column: 2; grid-row: 2; position: relative; display: block; height: 47px; margin: 0; padding: 0;
  --pad: 34px; --node: 28px;
}
.worklist .steplist::before, .worklist .steplist::after {
  content: ""; position: absolute; left: var(--pad); top: calc(var(--node) / 2 - 1px); height: 2px; border-radius: 2px;
}
.worklist .steplist::before { right: var(--pad); background: var(--line) }
.worklist .steplist::after { width: calc(var(--done, 0) * (100% - 2 * var(--pad))); background: var(--good) }
.worklist .steplist li, .worklist .steplist li:first-child, .worklist .steplist li:last-child {
  position: absolute; top: 0; z-index: 1; left: calc(var(--pad) + var(--at, 0) * (100% - 2 * var(--pad)));
  transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 0; border: 0; white-space: nowrap;
}
.worklist .steplist__n {
  position: relative; display: grid; place-items: center; width: var(--node); height: var(--node); padding: 0;
  border-radius: var(--r-pill); background: var(--card); box-shadow: inset 0 0 0 1.5px currentColor;
}
.worklist .steplist__ch { display: grid; place-items: center }
.worklist .steplist__ch .ms { font-size: 16px; line-height: 1 }
/* LinkedIn as a badge on the node's lower right, ringed to sit off it. */
.worklist .steplist__ch svg { position: absolute; right: -6px; bottom: -4px; box-shadow: 0 0 0 2px var(--card) }
.worklist > .seqcard:hover .steplist__ch svg { box-shadow: 0 0 0 2px var(--page) }
/* Sent: the node fills with its colour and the mail icon turns white (its
   colour stays the node's, so only the paint changes). */
.worklist .steplist li.is-sent .steplist__n { background: currentColor; box-shadow: none }
.worklist .steplist li.is-sent .steplist__ch .ms { -webkit-text-fill-color: #FFF }
.worklist .steplist__day { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; font-weight: var(--weight-strong); color: var(--text); line-height: 16px }
.worklist .steplist__day .ms { font-size: 14px }
.worklist .steplist li.is-sent .steplist__day { color: #1F7A4A }
/* Paused: a step still to go has no day, only the pause in muted ink. */
.worklist .steplist .steplist__day--paused { color: var(--muted); font-weight: 500 }
.worklist .steplist__num, .worklist .steplist__what, .worklist .steplist__sent, .worklist .steplist li > span:empty {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
/* Short of room, a day is its date alone; a sequence with no steps draws no line. */
@container (max-width: 1000px) { .worklist .steplist__wd { display: none } }
.worklist .steplist:not(:has(li))::before { display: none }

/* A when's time as a slim bar under its words: how long they have waited,
   how much of a window is left, how far past due. Its colour is the
   answer's own. */
.meter { display: block; width: min(100%, 120px); height: 4px; border-radius: 4px; background: var(--hair); overflow: hidden }
.meter > i { display: block; height: 100%; border-radius: inherit; background: var(--muted) }
.meter--good > i { background: var(--good) }
.meter--warn > i { background: var(--amber) }
.meter--bad > i { background: #C0362C }
/* Calls made so far: three dots, one filled for each try. */
.tries { display: inline-flex; align-items: center; gap: 2px; height: 18px }
.tries > i { width: 6px; height: 6px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1.5px currentColor; opacity: .55 }
.tries > i.on { background: currentColor; opacity: 1 }
/* Their working day under the best time to call. */
.worklist .ans__s .callwin { height: 16px; gap: 2px; margin-top: 3px }
.worklist .ans__s .callwin i { width: 5px; border-radius: 1.5px }
.worklist .ans__s .callwin i.now { width: 6px }

/* Nothing waiting: the outline of the row that will land here. */
.worklist--ghost { border-style: dashed; background: none }
.worklist--ghost .seqghost__bar { width: 30% }
.worklist__ghoststeps { display: flex; gap: 22px; margin-left: auto }

@container (min-width: 760px) {
  /* The column heads as Companies' (.corow--head): the page grey, ending in
     a hairline, and pinned to the top of the page while the rows scroll
     under them. The page has 32px of padding above, so -32px pins them flush
     with its top. Each list's heads stay inside their own list, so on a page
     of two lists (Buying signals) the second pushes the first away. */
  .worklist__head {
    display: grid; grid-template-columns: var(--wl-cols); column-gap: 20px; align-items: center;
    position: sticky; top: -32px; z-index: 2;
    padding: 16px 24px; background: var(--page); border-bottom: 1px solid var(--line);
    font-size: 12.5px; font-weight: 500; color: var(--muted); white-space: nowrap;
  }
  /* A tablet's page has 16px above, as Companies' heads allow for. */
  @media (max-width: 900px) { .worklist__head { top: -16px } }
  .worklist__head span { min-width: 0; overflow: hidden; text-overflow: ellipsis }
  /* The step sits at the row's right edge, so its title does too. */
  .worklist__head span:last-child { text-align: right }
  /* Every row as tall as a sequence's, its timeline the tallest thing a row
     draws, so each list keeps one rhythm and they all match. */
  .worklist > .seqcard { grid-template-columns: var(--wl-cols); column-gap: 20px; row-gap: 0; min-height: 86px; padding: 12px 24px }
  .worklist .who > .who__row { grid-column: 1 }
  /* The column header names it, so the ring's own label goes. */
  .worklist .who__fitlabel { display: none }
  .worklist .who__foot { display: contents }
  .worklist .who__row--co { grid-column: 2; grid-row: 1 }
  .worklist .ans__s--why { grid-column: 3; grid-row: 1 }
  .worklist .ans__s:not(.ans__s--why) { grid-column: 4; grid-row: 1 }
  .worklist .who__foot > .who__open { grid-column: 5; grid-row: 1; justify-self: end; margin: 0 }
  .worklist .licard__foot { grid-column: 3 / span 2; grid-row: 1 }
  .worklist .steplist { grid-column: 3 / span 2; grid-row: 1 }
  /* A list with no deadlines anywhere (Follow up, LinkedIn) gives When's
     column to Why rather than showing an empty one. */
  .worklist:not(:has(.ans__when)) .worklist__head > .worklist__col:nth-child(4) { visibility: hidden }
  .worklist:not(:has(.ans__when)) .ans__s--why { grid-column: 3 / span 2 }
  .worklist .who__row--co .who__coname { font-size: 13px; color: var(--text) }
  .worklist .who__row--co .who__sub { font-size: 11.5px }
}
/* On a phone a task with nobody on it leads with the task, not its box. */
@container (max-width: 759.98px) {
  .worklist > .worklist__task:not(:has(> .who)) .ans__s--why { grid-row: 1 }
  .worklist > .worklist__task:not(:has(> .who)) .ans__s:not(.ans__s--why) { grid-row: 2 }
  .worklist > .worklist__task:not(:has(> .who)) .who__foot { grid-row: 3 }
}
/* A narrower desktop list gives Why and When the room the names lose (they
   end in an ellipsis), so a row's answers still fit its 86px. */
@container (min-width: 760px) and (max-width: 1099.98px) {
  /* Set on the rows: a container query cannot restyle the list itself. */
  .worklist__head, .worklist > .seqcard {
    --wl-cols: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1.45fr) minmax(0, .95fr) 150px; column-gap: 16px;
  }
}
@media (prefers-reduced-motion: reduce) { .worklist > .seqcard { transition: none } }

/* A sequence's steps, one line each: its number in the sending calendar's
   colour, the day, what it sends, and Sent once it has. */
.steplist { display: grid; margin: 0; padding: 0; list-style: none }
.steplist li { display: grid; grid-template-columns: 18px 88px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 8px 0; font-size: 14px; line-height: 1.3 }
.steplist li + li { border-top: 1px solid rgb(16 33 31 / .1) }
.steplist li:first-child { padding-top: 0 }
.steplist li:last-child { padding-bottom: 0 }
.steplist__n { font-weight: 700; font-variant-numeric: tabular-nums }
.steplist__n--1 { color: #04635C }
.steplist__n--2 { color: var(--stage-2) }
.steplist__n--3 { color: var(--stage-3) }
.steplist__n--4 { color: var(--stage-4) }
.steplist__day { font-weight: var(--weight-strong); white-space: nowrap; font-variant-numeric: tabular-nums }
.steplist__what { color: var(--muted); min-width: 0 }
.steplist__sent { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: var(--weight-strong); color: #1F7A4A }
.steplist__sent .ms { font-size: 16px }

.seqcard__foot {
  display: flex; align-items: center; gap: 10px; margin-top: 20px;
  padding-top: 18px; border-top: 1px solid rgba(0, 0, 0, .08);
  font-size: 12.5px; font-weight: var(--weight-strong); color: var(--muted);
}
.seqcard--go .seqcard__foot { border-top-color: rgba(16, 33, 31, .1) }

/* The five-step schedule, drawn as a rail so the shape of the sequence is
   visible without opening it.

   The dot has to land on the label's centre line, and the gutter cannot ask
   the text how tall it is — so the line box and the gap to the next step are
   named here and both columns are measured off them. Splitting the row height
   between a fixed top segment and an elastic bottom one is what does it: with
   two elastic halves the dot centres in the whole row instead, which sat it
   below a label pinned to the top of that row. */
.rail {
  --rail-line: 20px; --rail-gap: 18px; --rail-dot: 10px;
  display: flex; align-items: stretch; gap: 12px;
}
.rail__gutter { display: flex; flex-direction: column; align-items: center; width: 12px; flex: 0 0 12px }
.rail__line { width: 2px; background: #E6D9AE }
.rail__line:first-child { flex: 0 0 calc((var(--rail-line) - var(--rail-dot)) / 2) }
.rail__line:last-child { flex: 1 1 auto }
.seqcard--go .rail__line { background: #C4E0CF }
/* The stubs above the first dot and below the last one are spacers, not rail:
   they keep both ends of the line stopping dead on a dot. Written after the
   tone rules and with the same reach, or a toned card repaints them. */
.rail__line--blank, .seqcard--go .rail__line--blank { background: transparent }
.rail__dot {
  width: var(--rail-dot); height: var(--rail-dot); flex: 0 0 var(--rail-dot);
  border-radius: var(--r-pill); box-sizing: border-box; background: #E6D9AE;
}
.seqcard--go .rail__dot { background: #2E9E63 }
.rail__dot--first { background: var(--ink) }
/* The LinkedIn step on a sequence card: the mark itself is the dot, a touch
   larger so the logo reads, and kept LinkedIn's own blue whatever the card's
   tone — it says which channel, not how far along. */
.rail__dot--li, .seqcard--go .rail__dot--li {
  width: 16px; height: 16px; flex-basis: 16px; margin: -2px 0;
  background: transparent; display: grid; place-items: center; border-radius: 3px; overflow: hidden;
}
.rail__body {
  flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 10px;
  line-height: var(--rail-line); padding-bottom: var(--rail-gap);
}
.rail__label { font-size: 13px; line-height: var(--rail-line); color: var(--text) }
.rail__label--muted { color: var(--muted) }
.rail__when {
  margin-left: auto; font-size: 11.5px; line-height: var(--rail-line);
  color: var(--muted); white-space: nowrap;
}

/* Sent, as a table of sequences with a pip per step. */
.senttable { background: var(--card); border: 1px solid var(--line); border-radius: 24px; overflow: hidden }
.sentrow {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 3.6fr) minmax(0, 1fr);
  gap: 26px; align-items: center; padding: 15px 26px;
  border-top: 1px solid var(--hair); cursor: pointer; width: 100%;
  background: none; border-left: none; border-right: none; border-bottom: none;
  font-family: inherit; text-align: left; color: var(--text);
}
.sentrow:hover { background: var(--page) }
.sentrow--head {
  background: var(--page); border-top: none; padding: 14px 26px; cursor: default;
  font-size: 11.5px; font-weight: var(--weight-strong); color: var(--muted);
}
.sentrow--head:hover { background: var(--page) }
.pips { display: grid; grid-template-columns: repeat(5, 1fr); align-items: start; min-width: 0 }
.pip { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0 }
.pip__label { font-size: 10.5px; font-weight: var(--weight-strong); letter-spacing: .01em; color: var(--muted); white-space: nowrap }
.pip__dot {
  width: 22px; height: 22px; border-radius: var(--r-pill); display: grid; place-items: center;
  background: var(--page); color: var(--muted); font-size: 13px; z-index: 1;
}
.pip__dot--done { background: var(--ink); color: var(--on-ink) }
.pip__dot--reply { background: #2E9E63; color: #FFF }
.pip__dot--bad { background: #C0362C; color: #FFF }
.pip__rail { position: absolute; top: 10px; left: 50%; width: 100%; height: 2px; background: var(--hair) }
.pip__date { font-size: 10.5px; color: var(--muted); white-space: nowrap }
.sentrow__state {
  display: flex; align-items: center; gap: 4px; margin-top: 3px;
  font-size: 12px; font-weight: var(--weight-strong); color: var(--text);
}
.sentrow__state .ms { font-size: 14px; color: var(--amber) }
