/* ─────────────────────────────────────────────────────────────────────────
   lead_card.css — shared opportunity-card styling  (v1.6.2, 2026-09-04; header row 1 + AR way-in 2026-10-09)

   Pairs with /static/js/lead_card.js. Loaded by BOTH dashboard.html and
   leads.html so the two pages render identical cards.

   v1.6.2 — Header and body swapped per rep directive. The header carries
   the customer (name, job #, address, phone, email); the body carries the
   verification pills. The v1.6.1 spreadsheet grid was reverted — it buried
   the customer in a table instead of putting them front and centre.
   ───────────────────────────────────────────────────────────────────── */

/* ── HEADER row 1: time · date · name · job # · result, all on one line ──
   Rows 1 and 2 used to be separate divs, which split the appointment from
   its result. Merged; flex-wrap keeps it sane when a card carries price,
   balance, payment and scope pills as well.                              */
.lc-hdr-row1--merged {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  row-gap: 5px;
}

/* Time, day, customer name, job number and the result all read at ONE size,
   a step up from before, so nothing in that line looks subordinate. The
   money pills stay a touch smaller so they don't compete with the name. */
.lc-hdr-row1--merged .appt-time,
.lc-hdr-row1--merged .lead-cust,
.lc-hdr-row1--merged .lead-ident-job,
.lc-hdr-row1--merged .hdr-rtype,
.lc-hdr-row1--merged .hdr-rtype-primary,
.lc-hdr-row1--merged .hdr-resulted {
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
}

/* The page's own address / phone / email blocks now render INSIDE the
   coloured header, under the name. They were written for the pale body,
   so they hard-code dark text (var(--ee-dark)) — invisible on the green,
   blood-orange and black headers. One foreground token per header variant
   fixes every nested element at once. */
.lc-header            { --lc-hdr-fg: #1a4459; }   /* pale green — dark text */
.lc-header.sale       { --lc-hdr-fg: #FFFFFF; }   /* dark green            */
.lc-header.nodemo     { --lc-hdr-fg: #FFFFFF; }   /* blood orange          */
.lc-header.canceled   { --lc-hdr-fg: #FFFFFF; }   /* black                 */
.lc-header.demo       { --lc-hdr-fg: #3E2723; }   /* yellow — dark text    */
.lc-header.nosale     { --lc-hdr-fg: #4A1B2C; }   /* pink (not resulted) — dark plum text (d353) */
.lc-header.nothit,
.lc-header.reset      { --lc-hdr-fg: #FFFFFF; }   /* slate                 */

.lc-header .lead-address,
.lc-header .lead-address span,
.lc-header .lead-contact-row,
.lc-header .lead-contact-row span,
.lc-header .lead-contact-row a {
  color: var(--lc-hdr-fg) !important;
}

/* ── contact line: phone and email SIDE BY SIDE ─────────────────────────
   The page stylesheet sets flex-direction:column on this row, which was
   fine in the body but costs two full lines in the header. Side by side
   with a separator gives the header one line instead of two, and the
   address below it keeps the space it needs. Stacks again on narrow
   screens (see the media query at the foot of this file).             */
.lc-header .lead-contact-row {
  margin-bottom: 0;
  margin-top: 3px;
  font-size: 12px;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
}

/* Thin separator between phone and email when they share the line. */
.lc-header .lead-contact-row > div + div {
  position: relative;
  padding-left: 14px;
}
.lc-header .lead-contact-row > div + div::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 11px;
  background: currentColor;
  opacity: 0.28;
}

/* The expander button rows must never inherit the side-by-side layout. */
.lc-header .lead-contact-row > div > div { padding-left: 0; }
.lc-header .lead-contact-row > div > div::before { content: none; }

/* ── address line: its own breathing room, one size up, travel on the right ──
   The address is what the rep actually navigates to, so it gets more space
   above it and a larger face than the contact details it sits under. */
.lc-hdr-addr-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.lc-hdr-addr-row .lead-address {
  margin-bottom: 0;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  flex: 1 1 auto;
  min-width: 0;
}

/* Three deliberate sizes in the header, largest first:
     14px  identity + result   (who / what happened)
     13px  address             (where you're going)
     12px  phone / email       (how you reach them)
   Anything flatter and the eye has nowhere to land.                     */

/* Travel + fuel hugs the right-hand end of the address line. */
.lc-hdr-addr-row .travel-row,
.lc-hdr-addr-row .travel-leg-row {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  border-top: 0;
  text-align: right;
  white-space: nowrap;
}

/* The expander chips (G-Maps / Waze / Call / Text / Compose) keep their own
   light background, so they need their own dark text back. */
.lc-header .nav-btn,
.lc-header .get-dir-btn,
.lc-header .travel-leg-row .tleg-inner { color: #1a4459 !important; }

/* ── travel time + fuel, directly under the address ─────────────────────
   Same colour problem as the contact blocks: these were written for the
   pale body and hard-code muted/orange text that vanishes on the dark
   headers. The gas figure keeps a warm tint so it still reads as money. */
.lc-header .travel-row {
  border-top: 0;
  margin-top: 2px;
  padding-top: 0;
  font-size: 11px;
}

.lc-header .travel-row,
.lc-header .travel-dist,
.lc-header .travel-time,
.lc-header .travel-leave { color: var(--lc-hdr-fg) !important; }

.lc-header .travel-gas { color: var(--lc-hdr-fg) !important; opacity: 0.95; }

.lc-header.demo .travel-gas,
.lc-header .travel-gas.tg-light { color: #E65100 !important; }

.lc-header .travel-leg-row {
  text-align: left;
  padding: 2px 0 0;
}

.lead-ident-job--none {
  opacity: 0.6;
  font-style: italic;
}

/* ── BODY: verification pills ──────────────────────────────────────────── */
.lc-vpills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 7px 0 4px;
}

.lc-vpill {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15px;
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
  border: 1px solid transparent;
  text-decoration: none;
  line-height: 1.35;
  font-family: inherit;
}

/* button-flavoured pills must not inherit the UA button look */
button.lc-vpill { cursor: pointer; }
a.lc-vpill:hover,
button.lc-vpill:hover { filter: brightness(0.96); }

/* Four MEANINGS, four treatments — never the same styling for all of them
   (spec §19). Result colour lives on the header; these are body states.
     ok    something is done            green, settled
     warn  operational work outstanding amber, needs you
     bad   something actually broke     red, urgent
     opp   optional growth              violet + star, invitation not a debt
     none  neutral / not applicable     grey, silent                       */
.lc-vpill--ok   { background: #e4f2f9; color: #1a4459; border-color: #95cbe6; }
.lc-vpill--warn { background: #FFF3E0; color: #E65100; border-color: #FFB74D; }
.lc-vpill--bad  { background: #FFEBEE; color: #C62828; border-color: #EF9A9A; }
.lc-vpill--none { background: #F5F5F5; color: #757575; border-color: #E0E0E0; }
/* v1.9.28 — SELF-GEN BONUS IS BLUE, and blue on purpose. Rep: "self gen
   or sgs or REWARDS leads that quakify foir bonus recieve addition 15% blue
   commsision idenidifier" and "bonmus commish should show blue on lead
   cards or calander". Every other money pill on this card is green (paid
   / expected) or amber (excluded), so blue is the one colour that cannot
   be mistaken for ordinary commission -- which matters, because this
   money is paid on a separate rail and Payout's commission line does not
   include it. */
.lc-vpill--bonus { background: #E3F2FD; color: #0D47A1; border-color: #64B5F6; }

/* Growth reads as an opportunity, deliberately quieter than an amber
   warning: an un-run REFERRAL means nothing is wrong. Lighter weight and a
   dashed edge keep it from competing with required work (§13). */
.lc-vpill--opp {
  background: #F6F1FB;
  color: #6A1B9A;
  border-color: #CE93D8;
  border-style: dashed;
  font-weight: 700;
}

/* Growth pills sort to the end of the row so required work reads first. */
.lc-vpills .lc-vpill--opp { order: 2; }
.lc-vpills { align-items: flex-start; }

/* ── action bar ─────────────────────────────────────────────────────────
   Two rows: agents/money first, utility second. lc-row-break forces the
   split so the same buttons wrap the same way on both pages.            */
.lc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-start;
  align-items: center;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--ee-pale, #c4e2f1);
}

.lc-actions .lc-row-break {
  flex-basis: 100%;
  height: 0;
  margin: 1px 0;
}

/* v1.7.5 — Rep directive: "instead of the clustered, small buttons make
   them large, like the rest of them, like EaveDrop." Every action now
   carries a text label at EaveDrop's size, with a 44px touch target
   (Apple/Android minimum) so they work one-handed on a phone per §20. */
.lc-actions .act-btn,
.lc-actions button,
.lc-actions a.act-btn {
  border: 1px solid transparent;
  background: #78909C;
  color: #fff;
  border-radius: 9px;
  padding: 0 11px;
  min-height: 34px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15px;
  gap: 5px;
  cursor: pointer;
  line-height: 1.15;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
  max-width: 100%;
}

/* A tally for actions that legitimately happen more than once — replay
   frames today. Reads as a count, not as an alert. */
.lc-actions .act-count {
  display: inline-block;
  margin-left: 4px;
  padding: 0 5px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.28);
  font-size: 10.5px;
  font-weight: 900;
  line-height: 16px;
  min-width: 16px;
  text-align: center;
}

/* A completed action stays visible but recedes, so the row still answers
   "what is left" at a glance without hiding history. */
.lc-actions .act-btn:hover { filter: brightness(1.1); }

/* Two per row on a phone, three or four on a wider screen — sized by
   min-width rather than a fixed column count so a long label never
   truncates. */


.lc-actions .act-btn:hover { filter: brightness(1.07); }

@media (max-width: 560px) {
  .lc-actions { gap: 5px; }
  .lc-actions .act-btn,
  .lc-actions button { font-size: 11.5px; padding: 0 9px; min-height: 32px; }
  .lc-vpill { font-size: 10px; padding: 3px 8px; }
  .lc-hdr-contact { gap: 7px; }
  .lc-hdr-contact .lc-hc { font-size: 10.5px; }
}

/* The commission pill keeps its own dark-green face and blur-until-tapped
   behaviour (defined per page) even while sitting in the pill row. */
.lc-vpills .hdr-commission-pill { border-color: transparent; }

/* ── property imagery: collapse instead of leaving grey boxes ───────────
   Spec §10 / §20: no giant empty Street View / Satellite placeholders and
   no wasted vertical space. The estimator's own photo block already hides
   a broken image; this caps the slot so a failed pair collapses to a thin
   line rather than two full-height grey rectangles. */
.lead-photos:empty { display: none; }

.lead-photos .no-photo {
  height: auto !important;
  min-height: 0 !important;
  padding: 6px 8px;
  font-size: 10.5px;
  line-height: 1.2;
}

.lc-imagery-none {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 2px;
  padding: 5px 9px;
  background: #FAFAFA;
  border: 1px dashed #E0E0E0;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #9E9E9E;
}

.lc-imagery-none button {
  background: #fff;
  border: 1px solid #E0E0E0;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 10.5px;
  font-weight: 800;
  color: #616161;
  cursor: pointer;
}

/* ── property imagery: compact strip, tap to enlarge ────────────────────
   Was a fixed 120px pair that burned the same vertical space whether the
   tiles loaded or not. Now a 66px strip by default — enough to recognise
   the house — expanding to 190px on tap. Answers "should imagery go in
   the header": no. The header is identity and is already three rows on
   a phone; imagery is reference material and belongs in the body.      */
.lead-photos {
  cursor: zoom-in;
  margin-top: 6px;
}

.lead-photos .lead-photo-wrap {
  min-height: 0;
  height: 66px;
  transition: height 140ms ease;
}

.lead-photos .lead-photo-wrap img {
  height: 66px;
  transition: height 140ms ease;
}

.lead-photos.lc-photos-open { cursor: zoom-out; }
.lead-photos.lc-photos-open .lead-photo-wrap,
.lead-photos.lc-photos-open .lead-photo-wrap img { height: 190px; }

/* A tile that failed shrinks to a caption instead of a grey rectangle. */
.lead-photos .no-photo {
  height: auto !important;
  min-height: 0 !important;
  padding: 6px 8px;
}

.lead-photos .lead-photo-label { font-size: 9px; }

@media (max-width: 560px) {
  /* One line is tight on a phone — let phone and email stack again. */
  .lc-header .lead-contact-row { flex-direction: column; gap: 2px; }
  .lc-header .lead-contact-row > div + div { padding-left: 0; }
  .lc-header .lead-contact-row > div + div::before { content: none; }
  .lc-hdr-addr-row { gap: 4px; }
  .lead-photos .lead-photo-wrap,
  .lead-photos .lead-photo-wrap img { height: 58px; }
}

/* ── HEADER row 1: no pill, just large type ─────────────────────────────
   Rep directive: "get rid of the pills for the name, make time date and
   name larger." `.appt-time` was a dark rounded pill with white text
   sitting ON an already-coloured header — a box inside a box. The text
   carries itself at this size, and dropping the pill lets the result badge
   be the only chip in the row, which is what should draw the eye. */
.lc-hdr-row1--merged .appt-time {
  background: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  color: var(--lc-hdr-fg) !important;
  font-size: 20px !important;
  font-weight: 900;
  letter-spacing: 0.2px;
  line-height: 1.25;
  text-align: left;
  white-space: normal;
}

/* The customer-name pill goes too, for the same reason. */
.lc-hdr-row1--merged .hdr-cust-name,
.lc-hdr-row1--merged .lead-id-pill {
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
  color: var(--lc-hdr-fg) !important;
  font-size: 20px !important;
  max-width: none;
}

@media (max-width: 560px) {
  .lc-hdr-row1--merged .appt-time,
  .lc-hdr-row1--merged .hdr-cust-name { font-size: 17px !important; }
}

/* ── PRODUCT QUOTE LINES ─────────────────────────────────────────────────
   Sits directly under the Street View / Satellite pair, titled QUOTE or
   WORK ORDER by result. A four-column grid so code, description, quantity
   and extended price all align down the card — a quote the rep can check
   against CRM line by line rather than by total alone. */
.lc-ql {
  margin: 8px 0 4px;
  border: 1px solid var(--ee-pale, #c4e2f1);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.lc-ql-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 6px 10px;
  background: #0c2937;
  color: #fff;
}

.lc-ql-title  { font-size: 11px; font-weight: 900; letter-spacing: 0.8px; }
.lc-ql-short  { font-size: 11px; font-weight: 800; opacity: .85;
                font-family: ui-monospace, monospace; }
.lc-ql-count  { font-size: 10px; font-weight: 800; opacity: .7; }
.lc-ql-total  { margin-left: auto; font-size: 13px; font-weight: 900; }

.lc-ql-row {
  display: grid;
  grid-template-columns: 58px 1fr 62px 74px;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-top: 1px solid #e8f3f9;
  font-size: 12px;
}

.lc-ql-row:nth-child(even) { background: #f6fbfd; }

.lc-ql-code { font-weight: 900; color: #0c2937;
              font-family: ui-monospace, monospace; font-size: 11px; }
.lc-ql-desc { color: #37474F; overflow: hidden; text-overflow: ellipsis;
              white-space: nowrap; }
.lc-ql-qty  { text-align: right; font-weight: 800; color: #263238; }
.lc-ql-uom  { font-size: 9.5px; font-weight: 700; opacity: .6;
              margin-left: 2px; }
.lc-ql-ext  { text-align: right; font-weight: 900; color: #1a4459; }

.lc-ql-warn {
  padding: 5px 10px;
  border-top: 1px solid #FFE0B2;
  background: #FFF3E0;
  color: #E65100;
  font-size: 11px;
  font-weight: 800;
}

/* Older quotes for the same opportunity. The current one is rendered above;
   these are the alternatives, newest first. */
.lc-ql-others {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 6px 10px; border-top: 1px dashed #c4e2f1; background: #f6fbfd;
}
.lc-ql-others-label { font-size: 10px; font-weight: 800; color: #78909C;
                      text-transform: uppercase; letter-spacing: .4px; }
.lc-ql-chip {
  background: #fff; border: 1px solid #bedff0; border-radius: 20px;
  padding: 2px 9px; font-size: 10.5px; font-weight: 800; color: #1a4459;
  cursor: pointer; font-family: inherit; white-space: nowrap;
}
.lc-ql-chip:hover { background: #e4f2f9; }

@media (max-width: 560px) {
  .lc-ql-row { grid-template-columns: 50px 1fr 54px 66px; font-size: 11px; }
  .lc-ql-desc { font-size: 10.5px; }
}

/* ── HEADER: two columns ────────────────────────────────────────────────
   Rep directive: "on left margin stack phone email address; stack job#,
   then scope, then payment terms, then installation date. Make it look
   professional."

   Left  = how to reach them  (phone, email, address, travel)
   Right = what the job is    (job #, scope, payment terms, install)

   Two aligned columns rather than one long ribbon, so the eye can find
   either kind of fact without reading the whole header. Collapses to a
   single stack on a phone, contact first — §20 is mobile-first, and
   contact is what a rep reaches for standing on a doorstep.            */
/* v1.8.15 — Rep directive: "move phone email and address far left, and
   statuses to the right of header."

   The left column was sized `1fr`, so it took all the slack and its text
   floated in the middle of a wide card instead of sitting against the
   edge. Both tracks are now content-sized with space-between, which pins
   contact hard left and the status block hard right and puts the empty
   space between them where it belongs. */
/* v1.8.16 — flex, not grid. `max-content` tracks let a long address
   swell the left column and shove the status block off its edge, so the
   right column only LOOKED pinned on wide cards. Flex with
   space-between pins both edges regardless of content width, and
   min-width:0 lets the left side shrink instead of pushing. */
.lc-hdr-cols {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-top: 7px;
  width: 100%;
}

.lc-hdr-col-left  { min-width: 0; flex: 1 1 auto; text-align: left; }
/* flex-shrink 0: the status block is short and fixed-ish, so when space
   runs out the ADDRESS should wrap, not the status column collapse. */
.lc-hdr-col-right { flex: 0 0 auto; text-align: right; margin-left: auto; }

/* Right column: label / value pairs on a fixed label width so the values
   line up down the column. That alignment is most of what reads as tidy. */
.lc-hd {
  display: grid;
  grid-template-columns: auto auto;
  gap: 2px 10px;
  align-items: baseline;
  /* Pushed to the right edge of its column so the values form a clean
     right margin rather than trailing off mid-card. */
  justify-content: end;
}

.lc-hd-row { display: contents; }

.lc-hd-k {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  opacity: 0.62;
  color: var(--lc-hdr-fg);
  white-space: nowrap;
  text-align: right;
}

.lc-hd-v {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--lc-hdr-fg);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 700px) {
  /* v1.8.16 — Rep directive: status must hold the right of the header
     "at least on narrow screens". The previous rule stacked the two
     columns here, which is exactly where the status stopped holding its
     edge. Two columns are KEPT; the type and gaps tighten instead, and
     the left column is allowed to wrap so the status never gets pushed. */
  .lc-hdr-cols      { gap: 8px; }
  .lc-hdr-col-left  { flex: 1 1 0; min-width: 0; }
  .lc-hdr-col-right { flex: 0 0 auto; text-align: right; }
  .lc-hd            { grid-template-columns: auto auto; gap: 1px 6px;
                      justify-content: end; }
  .lc-hd-k          { text-align: right; font-size: 9px; }
  .lc-hd-v          { font-size: 11px; }
}

@media (max-width: 430px) {
  /* Only on a genuinely tiny screen does the label column stop earning
     its width. Values stay right-aligned; the labels go. */
  .lc-hd-k { display: none; }
  .lc-hd   { grid-template-columns: auto; }
}

/* ── v1.8.12 — quote panel on every card ────────────────────────────────
   The panel now renders for every opportunity and every result, so it has
   two states it never had before: nothing quoted yet, and lines that came
   from your CRM rather than the estimator. Both are muted — an empty
   quote block is context, not a task, and must not compete with the
   card's real call to action. */
.lc-ql--empty          { opacity: .62; }
.lc-ql-none            { padding: 4px 8px 6px; font-size: 11px; color: #78909C;
                         font-style: italic; }
.lc-ql-origin          { padding: 2px 8px 5px; font-size: 10px; color: #78909C; }

/* CRM association. Sits in the panel header, pushed to the right of
   the short code but left of the total, so the eye still lands on money. */
.lc-ql-sf              { margin-left: auto; font-size: 10px; font-weight: 600;
                         padding: 1px 6px; border-radius: 8px; white-space: nowrap; }
.lc-ql-sf--ok          { background: #e4f2f9; color: #1a4459; }
.lc-ql-sf--warn        { background: #FFF3E0; color: #E65100; }
.lc-ql-sf--none        { background: #ECEFF1; color: #607D8B; }
/* Only drop the total's auto-push when the badge is there to do it —
   otherwise a card with no badge would lose its right-aligned total. */
.lc-ql-sf + .lc-ql-total { margin-left: 8px; }

/* A CRM bundle header is a real order row but carries no scope and
   usually no money, so it is dimmed rather than hidden — the card must not
   silently disagree with the record it mirrors. */
.lc-ql-row.is-structural { opacity: .55; }

/* ── v1.8.13 — header status + completion marks ─────────────────────────
   Rep directive: current status in the sale header — install date, job #,
   Photo App, quote/work order — "with green checks when completed", and
   the duplicate pills gone from the body.

   A tick is a claim, so it only appears where the data proves the thing is
   finished. Outstanding items get a hollow ○ rather than a red mark: on a
   card, red reads as broken, and "not scheduled yet" is a normal state for
   a job sold this morning. Anything unprovable gets no glyph at all. */
.lc-hd-ok    { margin-left: 5px; font-size: 9.5px; }
.lc-hd-todo  { margin-left: 5px; font-size: 9.5px; opacity: .55; }

/* The lifecycle rung. Reads as a chip so it is distinguishable at a glance
   from the plain label/value rows around it. */
.lc-hd-stage        { font-weight: 800; letter-spacing: .2px; }
/* At the ceiling of what we can currently prove — the rungs above it have
   no data source. Dotted underline marks "this is as far as we can see",
   not "stalled"; the tooltip explains which. */
.lc-hd-stage.is-ceiling { border-bottom: 1px dotted currentColor; }

/* ── v1.8.17 — contact rail: phone, email, address on ONE left edge ─────
   Rep directive: "phone email and address need to be locked to the left,
   take to the margin, none staggered."

   Three separate things were pushing them off that edge:
     1. .lead-contact-row laid phone and email side by side, so email sat
        mid-card rather than under the phone;
     2. the separator gave every element after the first a 14px
        padding-left, which is the stagger itself; and
     3. .lc-hdr-addr-row used space-between, so the address was pushed
        around by whatever travel chip sat beside it.

   All three now stack against the same margin. Travel moves below the
   address rather than fighting it for the line.                        */
.lc-header .lead-contact-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin-top: 3px;
  padding-left: 0;
}
/* Kill the separator + its indent — with the items stacked, a vertical
   rule between them is meaningless and the padding is the stagger. */
.lc-header .lead-contact-row > div + div        { padding-left: 0; }
.lc-header .lead-contact-row > div + div::before { content: none; }
.lc-header .lead-contact-row > div,
.lc-header .lead-contact-row > div > div,
.lc-header .lead-contact-row a,
.lc-header .lead-contact-row span {
  padding-left: 0;
  margin-left: 0;
  text-align: left;
}

.lc-hdr-addr-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 2px;
  margin-top: 5px;
  padding-left: 0;
}
.lc-hdr-addr-row .lead-address {
  padding-left: 0;
  margin-left: 0;
  text-align: left;
  flex: 0 0 auto;
}
/* Travel + fuel: under the address, same edge, not right-aligned. */
.lc-hdr-addr-row .travel-row,
.lc-hdr-addr-row .travel-leg-row {
  text-align: left;
  padding-left: 0;
  margin-left: 0;
  flex: 0 0 auto;
}

/* ── v1.8.18 — vertical completion bar, tied to the status column ───────
   Rep directive: "add that same bar to our header cards, make the bar
   vertical tied with the status, but use blue checks for crm
   actions needed for initiating contracts."

   It sits to the LEFT of the status rows and runs the same height, so the
   bar and the rows read as one block rather than two widgets. Vertical
   also means it costs no horizontal room in a header that is already
   pinned contact-left / status-right. */
.lc-hd-wrap {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 8px;
  justify-content: flex-end;
}

.lc-cbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex: 0 0 auto;
}

.lc-cbar-pct {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: -.2px;
  color: var(--lc-hdr-fg);
  opacity: .85;
  font-variant-numeric: tabular-nums;
}

/* The track fills the height of the status rows beside it. */
.lc-cbar-track {
  display: flex;
  flex-direction: column-reverse;   /* fills upward, like a gauge */
  gap: 2px;
  flex: 1 1 auto;
  min-height: 44px;
  width: 6px;
}

.lc-cseg {
  display: block;
  flex: 1 1 0;
  width: 100%;
  border-radius: 2px;
  background: currentColor;
  opacity: .18;                     /* outstanding: present but quiet */
}

/* GREEN — the job itself moved. */
.lc-cseg--done.lc-cseg--job { background: #2c5e77; opacity: 1; }
/* BLUE — a CRM contract action, done. */
.lc-cseg--done.lc-cseg--sf  { background: #1565C0; opacity: 1; }

/* Outstanding CRM work keeps a blue tint so the rep can see at a
   glance that the gap is theirs, in your CRM, rather than something they
   are waiting on the customer or the crew for. */
.lc-cseg--todo.lc-cseg--sf  { background: #1565C0; opacity: .26; }
.lc-cseg--todo.lc-cseg--job { background: currentColor; opacity: .18; }

/* Hollow: we cannot evaluate this step. Not done, not outstanding —
   outlined so it never reads as either. */
.lc-cseg--unknown {
  background: transparent;
  box-shadow: inset 0 0 0 1px currentColor;
  opacity: .32;
}

@media (max-width: 700px) {
  .lc-cbar-track { min-height: 38px; width: 5px; }
  .lc-cbar-pct   { font-size: 8.5px; }
}

/* ── v1.9.1 — CRM-VERIFIED QUOTE / WORK ORDER ───────────────────────
   Rep directive: "lead cards and quotes need to show the current quote is
   synced with CRM with that blue outline, same for work order.
   CRM verified on the header of the quote for the lead cards."

   Blue is the card's established CRM colour — the header ticks for
   CRM actions already use it — so the outline reads as "this panel
   is the CRM one" before the badge is read. It is applied to the
   PANEL rather than the title so it reads identically whether the result
   is a quote or a work order; only the title changes between them.

   Deliberately an outline and not a fill: the panel carries the priced
   product lines, and a background tint behind money is harder to read. */
.lc-ql--sfok {
  border: 1.5px solid #1976D2;
  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.12);
}
.lc-ql--sfok .lc-ql-head {
  border-bottom-color: rgba(25, 118, 210, 0.35);
}
.lc-ql--sfok .lc-ql-title {
  color: #0D47A1;
}
/* The verified badge sits on the header beside the title. */
.lc-ql--sfok .lc-ql-sf--ok {
  background: rgba(25, 118, 210, 0.10);
  color: #0D47A1;
  border: 1px solid rgba(25, 118, 210, 0.30);
}

/* v1.9.9 — LP: the last price given (after the same-day purchase
   discount). Weighted heavier than the other header values because
   it is the number the rep is looking for when they reopen a lead. */
.lc-hd-lp { font-weight: 900; letter-spacing: 0.2px; }
[data-dark="1"] .lc-hd-lp { color: #95cbe6; }

/* v1.9.10 — RETAIL / COST / INCENTIVE, and whether CRM agrees.
   The v1.9.9 `.lc-hd-lp` rule above is superseded: LP became the
   Incentive row. It is left in place because nothing else weights a
   header value and removing it would be a change with no upside. */

/* The incentive price is the number a rep reopens a lead to find, so it
   carries the weight LP used to. */
.lc-hd-inc { font-weight: 900; letter-spacing: 0.2px; }
[data-dark="1"] .lc-hd-inc { color: #95cbe6; }

/* Cost is a rep-only figure — never quoted to a customer — so it reads
   quieter than the two prices either side of it. */
.lc-hd-cost { font-weight: 700; opacity: 0.82; }

/* Parity with CRM, as a mark rather than a second number.
   Green ✓ agrees; amber ≠ means the customer's record and this card
   disagree about money, which is the one worth stopping for. Absent
   where CRM has not synced that field at all. */
.lc-hd-par {
  margin-left: 4px;
  font-size: 10px;
  font-weight: 900;
  vertical-align: 1px;
}
.lc-hd-par--ok  { color: #2c5e77; }
.lc-hd-par--off { color: #E65100; }
[data-dark="1"] .lc-hd-par--ok  { color: #95cbe6; }
[data-dark="1"] .lc-hd-par--off { color: #FFB74D; }

/* NOT APPLICABLE — a step this result cannot reach. DocuSign on a demo is
   the case that matters: the rep cannot sign a contract on a job nobody
   bought, so the segment must read as neither done nor outstanding.
   Dashed rather than the solid outline `unknown` uses, because "cannot
   apply here" and "we could not evaluate this" are different answers. */
.lc-cseg--na {
  background: transparent;
  box-shadow: inset 0 0 0 1px currentColor;
  opacity: .18;
}

/* v1.9.11 — ADDRESS, PHONE AND EMAIL AS REAL TAP TARGETS.
   Rep directive: "make address, email, phone a tad larger, easily clickable
   without miss clicking."

   They were bare inline <span>s with an onclick: the hit area was exactly
   the glyphs, three of them stacked a few pixels apart, so a thumb aiming
   for the phone opened the address. Padding is what fixes that, and padding
   needs inline-block — on an inline span it would overlap the neighbouring
   line rather than push it away.

   ~34px of height plus a 6px gap keeps three separate targets a thumb can
   hit without magnifying the header; the page CSS owns the colours, so only
   size and spacing are set here. */
.lc-header .lead-address > span,
.lc-header .lead-contact-row > div > span {
  display: inline-block;
  font-size: 13.5px;
  line-height: 1.35;
  padding: 7px 10px;
  margin: 0 0 2px;
  border-radius: 8px;
  /* A faint plate so the target reads as pressable rather than as label
     text that happens to respond. */
  background: rgba(0, 0, 0, 0.055);
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.12);
  touch-action: manipulation;
}
.lc-header.sale .lead-address > span,
.lc-header.sale .lead-contact-row > div > span,
.lc-header.nodemo .lead-address > span,
.lc-header.nodemo .lead-contact-row > div > span,
.lc-header.canceled .lead-address > span,
.lc-header.canceled .lead-contact-row > div > span {
  /* Dark headers: a black plate is invisible, a white one reads correctly. */
  background: rgba(255, 255, 255, 0.14);
}
.lc-header .lead-contact-row { gap: 6px; }
/* The address is the one a rep reads at a glance while driving, so it keeps
   a little more weight than the other two. */
.lc-header .lead-address > span { font-size: 14px; }

/* Stack them on a phone: side-by-side targets that wrap mid-row are exactly
   where a mis-tap happens. */
@media (max-width: 520px) {
  .lc-header .lead-contact-row { flex-direction: column; align-items: flex-start; }
  .lc-header .lead-address > span,
  .lc-header .lead-contact-row > div > span { width: 100%; }
}

/* v1.9.11 — DASHBOARD LEAD CARDS START COLLAPSED.
   Rep directive: "dashboard leadcard default collapsed."

   Header only until the rep opens one: the header already carries time,
   customer, result, contact, job number, scope and the three prices, which
   is the whole reason to look at a list. The body (imagery, quote lines,
   pills, action bar) is what makes the list long.

   Expansion is remembered per lead for the session — the dashboard
   re-renders every 60 seconds, and a card that slammed shut mid-read would
   be a worse bug than the long list this fixes. */
.lead-card.lc-collapsed .lc-body { display: none; }
.lead-card .lc-header { position: relative; cursor: pointer; }
/* Chevron bottom-right of the header: the top-right holds the result pill
   and the rows above are full-width, so this is the one corner that is
   reliably free. */
.lead-card .lc-header::after {
  content: '▾';
  position: absolute;
  right: 8px;
  bottom: 4px;
  font-size: 11px;
  line-height: 1;
  opacity: 0.55;
  pointer-events: none;
}
.lead-card.lc-collapsed .lc-header::after { content: '▸'; }

/* v1.9.12 — the per-customer CRM link. Underlined on hover only:
   a permanently underlined link in a tidy label/value column reads as
   clutter, but with no affordance at all a rep will not know it is one. */
.lc-hd-sf {
  color: var(--lc-hdr-fg);
  text-decoration: none;
  font-weight: 800;
  border-bottom: 1px dotted currentColor;
  /* Comfortable to hold without being a different size from its neighbours,
     and no text selection popping up mid-press. */
  padding: 2px 0;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}
.lc-hd-sf:hover { border-bottom-style: solid; }

/* v1.9.15 — STREET + SKY VIEW: TALLER, AND COLLAPSIBLE.
   Rep: "make the street and sky view just a little taller, easier to see;
   also make it collapsable if needed in body lead cards."

   Both pages hardcode 120px in their own <style> block, for the image, the
   wrapper's min-height and the no-photo placeholder. These rules are scoped
   with `.lc-body` so they out-specify those without !important — the page
   stylesheet keeps owning colours and borders, this owns the height.

   168px is deliberately "a little taller": enough to read a roofline and
   trim run at a glance, not so tall that the quote panel below it drops off
   a phone screen. Street View is returned at 600x300, so 168px is still
   inside its aspect ratio and object-fit:cover has real pixels to work with. */
.lc-body .lead-photo-wrap     { min-height: 168px; }
.lc-body .lead-photo-wrap img { height: 168px; }
.lc-body .lead-photo-wrap.no-photo,
.lc-body .lead-photo-wrap .no-photo { height: 168px; }

/* A touch larger too — 9px was hard to read over a bright photo. */
.lc-body .lead-photo-label { font-size: 10px; padding: 3px 0; }

@media (max-width: 430px) {
  /* On a phone the pair sits side by side, so each is half the width;
     shorter keeps them from looking like two letterboxes. */
  .lc-body .lead-photo-wrap     { min-height: 138px; }
  .lc-body .lead-photo-wrap img { height: 138px; }
  .lc-body .lead-photo-wrap.no-photo,
  .lc-body .lead-photo-wrap .no-photo { height: 138px; }
}

/* The toggle. A real <button> rather than a styled div: it is keyboard
   reachable and announces itself, and the rep taps it on a phone. */
.lc-img-bar {
  display: block;
  width: 100%;
  margin: 8px 0 0;
  padding: 5px 8px;
  border: 1px solid var(--border, #bedff0);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.03);
  color: inherit;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2px;
  text-align: left;
  cursor: pointer;
  opacity: 0.75;
  touch-action: manipulation;
}
.lc-img-bar:hover { opacity: 1; }
[data-dark="1"] .lc-img-bar { background: rgba(255, 255, 255, 0.06); }

/* display:none, not height:0 — a hidden Street View tile should stop
   fetching and stop costing Maps quota, not merely be invisible.

   Scoped with `.lc-body` because both pages declare `.lead-photos {
   display:flex }` in their own <style> block: same specificity, later source
   order, so the page won and the block stayed visible on /leads even with the
   class applied. Three classes beats one without reaching for !important. */
.lc-body .lead-photos.lc-img-hidden,
.lead-card .lead-photos.lc-img-hidden { display: none; }

/* v1.9.15 — CRM CHATTER ON THE CARD.
   Rep: "all chatter/post associated with any lead needs to show up on lead
   card under communications or history, also an action notification."

   Three visual weights, matching how the posts actually break down (233 real
   posts: 185 routing notices, 42 integration posts, 6 written by a
   colleague). If they all looked the same the six that matter would be lost
   in the 227 that don't. */
.lc-chatter {
  margin: 8px 0 4px;
  border: 1px solid var(--border, #bedff0);
  border-radius: 10px;
  overflow: hidden;
  font-size: 12px;
  background: #fff;
}
[data-dark="1"] .lc-chatter { background: rgba(255, 255, 255, 0.04); }

.lc-chatter-head {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 7px 10px;
  background: rgba(21, 101, 192, 0.08);
  font-size: 11px; font-weight: 900; letter-spacing: 0.3px;
  color: #0D47A1;
}
.lc-chatter-count {
  background: #E65100; color: #fff;
  border-radius: 10px; padding: 1px 7px; font-size: 10px;
}
.lc-chatter-ack {
  margin-left: auto;
  border: 1px solid rgba(13, 71, 161, 0.35);
  background: #fff; color: #0D47A1;
  border-radius: 8px; padding: 3px 9px;
  font: inherit; font-size: 10px; font-weight: 800; cursor: pointer;
}
.lc-chatter-load { padding: 10px; color: var(--muted, #888); font-size: 11px; }

.lc-chatter-row { padding: 8px 10px; border-top: 1px solid #eef7fb; }
.lc-chatter-meta {
  display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap;
  font-size: 10px; color: var(--muted, #888); margin-bottom: 3px;
}
.lc-chatter-tag {
  text-transform: uppercase; letter-spacing: 0.4px;
  font-weight: 900; font-size: 9px;
  border-radius: 6px; padding: 1px 5px;
  background: rgba(0, 0, 0, 0.06);
}
/* CRM posts arrive with their own line breaks; keep them, and never
   let a long URL blow the card's width. */
.lc-chatter-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.4;
}
.lc-chatter-replies { display: block; margin-top: 4px; font-size: 10px; color: #1565C0; }
.lc-chatter-link {
  display: block; padding: 7px 10px; border-top: 1px solid #eef7fb;
  font-size: 11px; font-weight: 800; color: #1565C0; text-decoration: none;
}

/* NEEDS ACTION — the only row that shouts. */
.lc-chatter-row.lc-chatter-issue {
  background: #FFF3E0;
  border-left: 3px solid #E65100;
}
.lc-chatter-issue .lc-chatter-tag { background: #E65100; color: #fff; }
[data-dark="1"] .lc-chatter-row.lc-chatter-issue { background: rgba(230, 81, 0, 0.16); }

/* Routing chatter: present, deliberately quiet. It is the bulk of the feed
   and none of it needs the rep. */
.lc-chatter-row.lc-chatter-routine { opacity: 0.62; }
.lc-chatter-row.lc-chatter-routine .lc-chatter-body { font-size: 11px; }
.lc-chatter-row.lc-chatter-system .lc-chatter-tag { background: rgba(21, 101, 192, 0.18); color: #0D47A1; }

/* ── v1.9.17 — thread history, reply box, @mention menu ──────────────────
   The panel is a two-way thread now, not a read-only list, so the rep's own
   replies are tinted and the whole reply block is visually subordinate to the
   post it answers — a rep scanning a job should see the ISSUE first and the
   conversation second. `overflow: hidden` is deliberately dropped for the
   form's wrapper so the mention menu is not clipped by the panel. */
.lc-ch-thread {
  margin: 6px 0 2px 10px;
  padding-left: 8px;
  border-left: 2px solid #bedff0;
}
.lc-ch-thread--pending { font-size: 10px; color: #1565C0; border-left-color: #90CAF9; }
.lc-ch-cmt { padding: 4px 0; }
.lc-ch-cmt-meta {
  display: flex; gap: 6px; align-items: baseline;
  font-size: 10px; color: var(--muted, #888);
}
.lc-ch-cmt-meta b { font-size: 10.5px; color: var(--text, #222); }
.lc-ch-cmt-body { font-size: 11.5px; line-height: 1.35; white-space: pre-wrap; }
.lc-ch-cmt--mine { background: rgba(44,94,119, 0.07); border-radius: 6px; padding: 4px 6px; }
[data-dark="1"] .lc-ch-cmt--mine { background: rgba(108,183,220, 0.14); }

.lc-ch-replybar { margin: 5px 0 0 10px; }
.lc-ch-replybtn {
  background: none; border: 1px solid var(--border, #bedff0);
  color: #1565C0; border-radius: 14px;
  /* ~34px tall, matching the tap targets set for the address / phone / email
     row — the rep taps these on a phone in a driveway. */
  padding: 7px 14px; min-height: 34px;
  font-size: 11.5px; font-weight: 700; cursor: pointer;
}
.lc-ch-replybtn:hover { background: rgba(21, 101, 192, 0.08); }

.lc-ch-form { position: relative; margin: 6px 0 4px 10px; }
.lc-ch-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 4px; }
.lc-ch-chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(21, 101, 192, 0.12); color: #0D47A1;
  border-radius: 12px; padding: 3px 9px;
  font-size: 11px; font-weight: 700;
}
.lc-ch-chip b { cursor: pointer; font-size: 13px; line-height: 1; padding: 0 2px; }
.lc-ch-input {
  width: 100%; box-sizing: border-box;
  border: 1px solid var(--border, #bedff0); border-radius: 8px;
  padding: 8px 10px; font-size: 12.5px; font-family: inherit;
  resize: vertical; background: #fff; color: var(--text, #222);
}
[data-dark="1"] .lc-ch-input { background: rgba(255, 255, 255, 0.06); color: #e4f2f9; }
.lc-ch-menu {
  position: absolute; z-index: 30; left: 0; right: 0;
  max-height: 208px; overflow-y: auto;
  background: #fff; border: 1px solid var(--border, #bedff0);
  border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
[data-dark="1"] .lc-ch-menu { background: #152026; }
.lc-ch-mitem {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  width: 100%; text-align: left; background: none; border: none;
  border-bottom: 1px solid #eef7fb;
  padding: 9px 10px; min-height: 34px;
  font-size: 12px; font-weight: 600; color: var(--text, #222); cursor: pointer;
}
.lc-ch-mitem:hover { background: rgba(44,94,119, 0.09); }
/* Where the suggestion came from: on this job / office / crm. A rep
   tagging "Zach" needs to know which Zach this is. */
.lc-ch-mitem i { font-style: normal; font-size: 9.5px; color: var(--muted, #888); text-transform: uppercase; }
.lc-ch-mnone { padding: 9px 10px; font-size: 11px; color: var(--muted, #888); }

.lc-ch-actions { display: flex; align-items: center; gap: 9px; margin-top: 5px; }
.lc-ch-send {
  background: linear-gradient(135deg, #1565C0, #0D47A1); color: #fff;
  border: none; border-radius: 8px;
  padding: 8px 15px; min-height: 34px;
  font-size: 12px; font-weight: 800; cursor: pointer;
}
.lc-ch-send:disabled { opacity: 0.6; cursor: default; }
.lc-ch-msg { font-size: 11px; color: var(--muted, #888); }
.lc-ch-msg--ok { color: #2c5e77; font-weight: 700; }
.lc-ch-msg--bad { color: #C62828; font-weight: 700; }
.lc-ch-offnote { padding: 7px 10px; font-size: 10.5px; color: var(--muted, #888); }

/* ── v1.9.17 — the header's two new verification marks ───────────────────
   Rep: "fix the verified blue pills for successfully synced CRM
   quotes", against the earlier directive behind the completion bar: "use
   blue checks for crm actions".

   BLUE means the ORG confirms it (quote synced, graduated to a work order,
   incentive price applied, payment taken); GREEN (.lc-hd-ok) means the job
   itself moved. Two different claims, so two different colours — a rep
   scanning the header can tell "CRM agrees" from "this is done".

   Named .lc-hd-sfok, not .lc-hd-sf: that class is already the per-customer
   CRM link. */
.lc-hd-sfok {
  margin-left: 5px;
  font-size: 10px;
  font-weight: 900;
  color: #1565C0;
}
[data-dark="1"] .lc-hd-sfok { color: #64B5F6; }

/* Amber, and deliberately louder than the outstanding circle: a scope change
   or an incentive price CRM does not hold is money that disagrees with
   itself, not merely a step left to do. */
.lc-hd-warn {
  margin-left: 5px;
  font-size: 10px;
  font-weight: 900;
  color: #E65100;
}
[data-dark="1"] .lc-hd-warn { color: #FFB74D; }

/* ── v1.9.17 — THE QUOTE MONEY STRIP ────────────────────────────────────
   Rep: "for the quote — 6 products, list price, retail price pills in the
   middle of the lead card — those need to be structured at the top of the
   quote, also hidable, showing retail, incentive price and cost."

   They were loose chips halfway down the /leads card, nowhere near the
   quote they describe. Now they are one row directly under the quote title,
   always in the same order, so the rep reads them the same way every time.

   `.lc-qlm-off` is set on <html> rather than per card: it is one preference,
   and applying it at the root means a re-render cannot flash the money on
   screen before a timer hides it again. */
.lc-qlmoney {
  border-bottom: 1px solid #eef7fb;
  background: rgba(44,94,119, 0.035);
}
[data-dark="1"] .lc-qlmoney { background: rgba(255, 255, 255, 0.03); }

.lc-qlm-bar {
  display: block; width: 100%;
  background: none; border: none; border-bottom: 1px solid #eef7fb;
  /* Full-width and ~30px tall: this gets tapped mid-conversation. */
  padding: 7px 10px; min-height: 30px;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.2px;
  color: var(--muted, #78909C); text-align: left; cursor: pointer;
}
.lc-qlm-bar:hover { background: rgba(44,94,119, 0.07); }

.lc-qlm-row {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 8px 10px;
}
.lc-qlm-off .lc-qlm-row { display: none; }

.lc-qlm {
  font-size: 11px; font-weight: 700;
  background: #fff; color: var(--text, #37474F);
  border: 1px solid var(--border, #bedff0);
  border-radius: 12px; padding: 3px 9px;
}
[data-dark="1"] .lc-qlm { background: rgba(255, 255, 255, 0.06); color: #e4f2f9; }
/* The incentive price is the one the rep is hunting for, so it carries the
   CRM blue the rest of the money verification uses. */
.lc-qlm--inc {
  background: rgba(21, 101, 192, 0.10);
  color: #0D47A1;
  border-color: rgba(21, 101, 192, 0.32);
  font-weight: 900;
}
[data-dark="1"] .lc-qlm--inc { background: rgba(21, 101, 192, 0.26); color: #BBDEFB; }
.lc-qlm--off { background: #FFF3E0; color: #E65100; border-color: #FFCC80; }
[data-dark="1"] .lc-qlm--off { background: rgba(230, 81, 0, 0.22); color: #FFCC80; }

/* v1.9.17 — the header figure is now LABELLED (contract / incentive / cost
   basis). Unlabelled it read as "the price", which is exactly how a rep
   quotes a cost-basis number to a customer by accident. */
.lc-ql-total i {
  display: block;
  font-style: normal;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  opacity: 0.62;
  text-align: right;
  margin-top: -2px;
}

/* The CRM badge is a CRM claim, so it is BLUE whether or not
   the panel happens to carry the verified outline. It used to be green and
   only turned blue inside `.lc-ql--sfok`, which meant the rep's "verified
   blue pill" was green on every card where the outline had not fired. */
.lc-ql-sf--ok {
  background: rgba(21, 101, 192, 0.10);
  color: #0D47A1;
  border: 1px solid rgba(21, 101, 192, 0.30);
}
[data-dark="1"] .lc-ql-sf--ok { background: rgba(21, 101, 192, 0.28); color: #BBDEFB; }

/* v1.9.17 — a commission that is not expected to pay. Struck through rather
   than hidden: money vanishing off a card reads as a bug in the app, and the
   rep still wants to see what the deal was worth before it was reassigned or
   its install was cancelled. */
.hcp-val--void { text-decoration: line-through; opacity: 0.75; }

/* ── v1.9.17 — QUOTE = YELLOW, WORK ORDER = GREEN ────────────────────────
   Rep: "make sure lead cards show quote header as yellow if quote and green
   if work order."

   The same two colours the card bodies already use for demo vs sale
   (#FFFDE7 / #e4f2f9 on /leads), so the panel header now agrees with the
   card it sits in. The header used to be #0c2937 on every card regardless
   of stage.

   A yellow header needs DARK text to stay readable, which is why this is a
   pair of rules and not just a background swap — white-on-yellow was the
   first thing that went wrong when this was tried. */
.lc-ql--quote .lc-ql-head {
  background: linear-gradient(180deg, #FDD835, #F9A825);
  color: #3E2723;
}
.lc-ql--quote .lc-ql-head .lc-ql-title { color: #3E2723; }
/* The CRM badge keeps its own blue/grey fill, but its border has to
   survive on yellow. */
.lc-ql--quote .lc-ql-head .lc-ql-sf--none {
  background: rgba(62, 39, 35, 0.10);
  color: #3E2723;
  border: 1px solid rgba(62, 39, 35, 0.28);
}
[data-dark="1"] .lc-ql--quote .lc-ql-head {
  background: linear-gradient(180deg, #F9A825, #EF6C00);
  color: #1A1200;
}

.lc-ql--wo .lc-ql-head {
  background: linear-gradient(180deg, #2c5e77, #1a4459);
  color: #fff;
}
.lc-ql--wo .lc-ql-head .lc-ql-title { color: #fff; }
[data-dark="1"] .lc-ql--wo .lc-ql-head {
  background: linear-gradient(180deg, #1a4459, #0c2937);
}

/* ── v1.9.17 — CUSTOMER INSIGHTS PANEL ───────────────────────────────────
   Facts on top with their source, then what to SAY, visually separated.
   The separation is the point: the detail text is written for the rep and
   the opener is written to be spoken, and a rep skimming in a driveway will
   read whichever one is in front of them. */
.lc-insights {
  margin: 8px 0 4px;
  border: 1px solid rgba(21, 101, 192, 0.30);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  font-size: 12px;
}
[data-dark="1"] .lc-insights { background: rgba(255, 255, 255, 0.04); }

.lc-ins-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 7px 10px;
  background: rgba(21, 101, 192, 0.10);
  color: #0D47A1;
  font-size: 11px; font-weight: 900; letter-spacing: 0.3px;
}
/* How much of the picture this actually is. Stated rather than implied —
   three of four sources answering is a different thing from four of four,
   and the rep is about to say these out loud. */
.lc-ins-cov { margin-left: auto; font-weight: 700; opacity: 0.75; font-size: 10px; }
.lc-ins-load { padding: 10px; font-size: 11px; color: var(--muted, #888); }

.lc-ins-row { padding: 7px 10px; border-top: 1px solid #eef7fb; }
.lc-ins-head { font-size: 12px; font-weight: 800; }
.lc-ins-detail { font-size: 11px; line-height: 1.35; color: var(--muted, #607D8B); margin-top: 2px; }
.lc-ins-src {
  display: inline-block; margin-top: 3px;
  font-size: 9px; font-weight: 800; letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #607D8B;
  background: #ECEFF1; border-radius: 8px; padding: 1px 7px;
}
[data-dark="1"] .lc-ins-src { background: rgba(255, 255, 255, 0.10); color: #B0BEC5; }

.lc-ins-saywrap {
  border-top: 2px solid rgba(44,94,119, 0.35);
  background: rgba(44,94,119, 0.05);
  padding: 7px 10px 9px;
}
[data-dark="1"] .lc-ins-saywrap { background: rgba(108,183,220, 0.10); }
.lc-ins-saytitle {
  font-size: 9.5px; font-weight: 900; letter-spacing: 0.5px;
  text-transform: uppercase; color: #2c5e77; margin-bottom: 4px;
}
.lc-ins-say {
  font-size: 12.5px; line-height: 1.4; font-weight: 600;
  padding: 4px 0 4px 10px;
  border-left: 2px solid #6cb7dc;
  margin-bottom: 3px;
}

/* ── v1.9.17 — APPLIED / JOB-NUMBER VERIFICATION ROW ─────────────────────
   Rep: "both sales and demos [should] receive job numbers as a verification,
   in the quote header and the body of the lead card." This row sits directly
   under the quote title, above the money strip, because whether the quote is
   actually APPLIED to the opportunity decides whether any of the money below
   it means anything — CRM derives the job number and the contract
   amount from the primary quote only. */
.lc-qa {
  display: flex; flex-wrap: wrap; align-items: center; gap: 7px;
  padding: 7px 10px;
  border-bottom: 1px solid #eef7fb;
  font-size: 11.5px;
  min-height: 20px;
}
.lc-qa:empty { display: none; }          /* nothing to say, no empty band */

.lc-qa-ok   { font-weight: 900; color: #0D47A1; }
.lc-qa-warn { font-weight: 800; color: #E65100; }
.lc-qa-note { color: var(--muted, #78909C); font-weight: 600; }
.lc-qa-tax  { color: var(--muted, #78909C); font-weight: 700; font-size: 10.5px; }

/* The job number is the verification the rep reads first, so it is the
   loudest thing in the row — monospace so two numbers can be compared by
   eye against CRM. */
.lc-qa-job {
  font-family: ui-monospace, monospace;
  font-weight: 900; font-size: 11.5px;
  background: rgba(21, 101, 192, 0.10);
  color: #0D47A1;
  border: 1px solid rgba(21, 101, 192, 0.30);
  border-radius: 10px; padding: 2px 8px;
}
[data-dark="1"] .lc-qa-job { background: rgba(21,101,192,0.28); color: #BBDEFB; }

.lc-qa-btn {
  margin-left: auto;
  background: none; border: 1px solid var(--border, #bedff0);
  color: #1565C0; border-radius: 14px;
  /* ~34px, the tap-target size used for the address/phone row. */
  padding: 7px 13px; min-height: 34px;
  font-size: 11.5px; font-weight: 800; cursor: pointer;
}
.lc-qa-btn:hover { background: rgba(21, 101, 192, 0.08); }
/* The one that writes to your CRM is filled, not outlined — this changes
   the contract amount the office reads, so it should not look incidental. */
.lc-qa-btn--do {
  background: linear-gradient(135deg, #1565C0, #0D47A1);
  color: #fff; border: none; font-weight: 900;
}

/* -- v1.9.28 - ORDER / BOOK THE INSTALL ---------------------------------
   Sits directly under the quote-apply row and mirrors its geometry, so the
   two read as one ladder: is the quote applied, then is it ordered, then is
   the install booked. GREEN rather than blue - this band is about the
   install calendar, and the card already uses green for a work order. */
.lc-ib {
  display: flex; flex-wrap: wrap; align-items: center; gap: 7px;
  padding: 7px 10px;
  border-bottom: 1px solid #eef7fb;
  font-size: 11.5px;
  min-height: 20px;
}
.lc-ib:empty { display: none; }

.lc-ib-done { font-weight: 900; color: #1a4459; }
.lc-ib-ok   { font-weight: 900; color: #0D47A1; }
.lc-ib-warn { font-weight: 800; color: #E65100; }
.lc-ib-note { color: var(--muted, #78909C); font-weight: 600; }

/* The booked date, monospace and loud for the same reason the job number
   is: it is the fact the rep repeats to the customer. */
.lc-ib-day {
  font-family: ui-monospace, monospace;
  font-weight: 900; font-size: 11.5px;
  background: rgba(26,68,89, 0.10);
  color: #1a4459;
  border: 1px solid rgba(26,68,89, 0.30);
  border-radius: 10px; padding: 2px 8px;
}
[data-dark="1"] .lc-ib-day { background: rgba(26,68,89,0.30); color: #bedff0; }

.lc-ib-btn {
  margin-left: auto;
  background: none; border: 1px solid var(--border, #bedff0);
  color: #1a4459; border-radius: 14px;
  padding: 7px 13px; min-height: 34px;
  font-size: 11.5px; font-weight: 800; cursor: pointer;
}
.lc-ib-btn:hover { background: rgba(26,68,89, 0.08); }
/* Filled, not outlined: these two write to your CRM and put a crew on a
   calendar, so they must not look incidental. */
.lc-ib-btn--do {
  background: linear-gradient(135deg, #2c5e77, #1a4459);
  color: #fff; border: none; font-weight: 900;
}

/* ── v1.9.17 — QUOTE-HEADER STATUS SHADING, AND NO OVERLAP ───────────────
   Rep: "clean up the statuses and the incentive in [the] quote section on
   the header. Make sure that it's not overlapping other writing depending on
   size. Those statuses should be 1, 2 or 3 word descriptions and should
   change when the action has occurred ... check marks, blue shading, green
   shading, whatever is necessary."

   THE OVERLAP had two causes, and both are fixed here rather than by
   shortening text alone:
     1. the status and the money shared one flex line with no minimum gap,
        so on a narrow card the badge ran into the total;
     2. `.lc-ql-total` carries a second line (its CONTRACT / INCENTIVE
        label), which made the row taller than the badge and let the two
        baselines collide when it wrapped.
   The head is now an explicit wrap container with a row-gap, the badge can
   no longer be squeezed below its own text width, and the money block is
   pinned right as a self-contained column.

   THE COLOUR LADDER — three meanings, not decoration:
     GREEN  a finished fact: a job number exists, or the quote is an order
     BLUE   CRM confirms it but it is not finished (synced, applied)
     GREY   nothing has happened there yet (in estimator, not checked)
     AMBER  the only state asking the rep to do something */
.lc-ql-head {
  row-gap: 5px;
  column-gap: 8px;
}
.lc-ql-sf {
  /* Never squeezed narrower than its own three words. */
  flex: 0 0 auto;
  white-space: nowrap;
}
.lc-ql-total {
  flex: 0 0 auto;
  margin-left: auto;
  /* Its own column so the CONTRACT / INCENTIVE sub-label cannot push into
     the status beside it. */
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.15;
}

/* GREEN — a finished fact (Verified, Work order). */
.lc-ql-sf--done {
  background: rgba(44,94,119, 0.14);
  color: #1a4459;
  border: 1px solid rgba(44,94,119, 0.40);
  font-weight: 900;
}
[data-dark="1"] .lc-ql-sf--done {
  background: rgba(108,183,220, 0.22); color: #bedff0;
}

/* The applied row uses the same three meanings, so a rep reads one language
   in both places. */
.lc-qa-done {
  font-weight: 900; color: #1a4459;
  background: rgba(44,94,119, 0.13);
  border: 1px solid rgba(44,94,119, 0.38);
  border-radius: 10px; padding: 2px 8px;
}
[data-dark="1"] .lc-qa-done { background: rgba(108,183,220,0.20); color: #bedff0; }

/* Keep the row from ever stacking on top of the money above it. */
.lc-qa { row-gap: 5px; }

/* ── v1.9.17 — THE HEADER ROW MUST NOT CRUSH THE % BAR ───────────────────
   Rep: "make sure that line doesn't eat up all the space in the header,
   pushing the hundred percent bar too far over to the left."

   Cause, found by reading the cascade rather than guessing: `.lc-hd-v` is
   `white-space: nowrap`, which is CORRECT for this row — money, dates and
   job numbers must never break mid-value. But a long value then could not
   wrap, so it forced the `.lc-hd` grid wider, and `.lc-cbar` beside it is
   `flex: 0 0 auto`, so the whole wrap overflowed and the bar was shoved out
   of place.

   Shortening the words was half the fix. This is the other half: the grid is
   allowed to SHRINK, an over-long value ellipsizes instead of pushing, and
   the bar is given a floor it cannot be squeezed below. The full text is
   still one hover away in the title attribute. */
.lc-hd-wrap { min-width: 0; }
.lc-hd {
  min-width: 0;          /* a grid in a flex row defaults to min-content —
                            which is what let a nowrap value force the width */
  flex: 1 1 auto;
}
.lc-hd-v {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* The completion bar keeps its own space whatever the rows do. */
.lc-cbar {
  flex: 0 0 auto;
  min-width: 34px;
}

/* ── TAKE PHOTOS BAR ──────────────────────────────────────────────────────
   Rep directive 2026-09-11: "ADD TAKE PHOTOS BAR ABOVE quote sync sold
   upload all photos at once or snap photos as we go organize them drawings
   up front and house photos follow including roofline close-up photo".

   Rendered by `photoBar` in lead_card.js, immediately above the quote /
   sync / sold panel. Blue rather than the card's green, because it is an
   INPUT strip sitting between two read-only panels (imagery above, quote
   below) and at a glance the rep needs to see where the card stops
   reporting and starts asking.

   The slot chips are <label>s wrapping a hidden file input rather than
   buttons: `capture="environment"` on the input is what opens the rear
   camera straight to the shot on a phone, and a button would need a
   second tap to reach it. */
.lc-photobar {
  margin: 8px 0 6px;
  padding: 8px 10px;
  background: #E3F2FD;
  border: 1.5px solid #90CAF9;
  border-radius: 10px;
}
.lc-pb-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lc-pb-title {
  font-size: 11px; font-weight: 900; letter-spacing: 0.5px;
  color: #0D47A1; text-transform: uppercase;
}
.lc-pb-count { font-size: 10.5px; font-weight: 700; color: #1565C0; }
.lc-pb-digital {
  margin-left: auto;
  background: #6A1B9A; color: #fff; border: none;
  border-radius: 999px; padding: 3px 10px;
  font-size: 10.5px; font-weight: 900; cursor: pointer;
  letter-spacing: 0.3px;
}
.lc-pb-digital.on { background: #2c5e77; }
.lc-pb-ways { display: flex; gap: 6px; margin-top: 7px; flex-wrap: wrap; }
.lc-pb-way {
  flex: 1 1 140px;
  display: inline-flex; align-items: center; justify-content: center; min-height: 40px;   /* v1.9.76: finger-sized */
  text-align: center;
  background: #1565C0; color: #fff;
  border: none; border-radius: 9px;
  padding: 7px 10px;
  font-size: 11.5px; font-weight: 900;
  cursor: pointer; letter-spacing: 0.2px;
}
.lc-pb-way--snap { background: #00695C; }
.lc-pb-way--video { background: #6A1B9A; }   /* v1.9.76: one lap of video from the camera roll */
.lc-pb-slots { display: flex; gap: 5px; margin-top: 7px; flex-wrap: wrap; }
/* One chip per expected shot, left to right in the order they get taken —
   the same order the job packet prints them in. */
.lc-pb-slot {
  display: inline-flex; align-items: center; gap: 4px;
  background: #fff; border: 1.5px solid #BBDEFB;
  border-radius: 999px; padding: 3px 9px;
  font-size: 10.5px; font-weight: 800; color: #0D47A1;
  cursor: pointer; white-space: nowrap;
}
.lc-pb-slot--drawing { border-color: #9575CD; color: #4A148C; }
.lc-pb-slot--trim  { border-color: #4DD0E1; color: #006064; }
.lc-pb-slot--extra   { border-color: #CFD8DC; color: #546E7A; }
.lc-pb-slot--digital { border-color: #669fbb; color: #1a4459; background: #e4f2f9; cursor: default; }
.lc-pb-slot.done { background: #bedff0; border-color: #2c5e77; color: #1a4459; }
.lc-pb-slot-mark { font-size: 10px; font-weight: 900; }
.lc-pb-msg { margin-top: 6px; font-size: 10.5px; font-weight: 700; color: #1565C0; min-height: 0; }
.lc-pb-msg--ok   { color: #1a4459; }
.lc-pb-msg--warn { color: #C62828; }
/* Phone: the two ways in go full width so neither is a thumb-width target. */
@media (max-width: 520px) {
  .lc-pb-way { flex: 1 1 100%; }
}
[data-dark="1"] .lc-photobar { background: rgba(21, 101, 192, 0.16); border-color: #1565C0; }
[data-dark="1"] .lc-pb-title,
[data-dark="1"] .lc-pb-count { color: #90CAF9; }
[data-dark="1"] .lc-pb-slot  { background: rgba(255, 255, 255, 0.06); color: #BBDEFB; border-color: #1565C0; }
[data-dark="1"] .lc-pb-slot.done { background: rgba(44,94,119, 0.28); color: #bedff0; border-color: #2c5e77; }
[data-dark="1"] .lc-pb-msg { color: #90CAF9; }

/* ── PHOTO SNAPSHOT STRIP ────────────────────────────────────────────────
   v1.9.18 — Rep: "Photo section and lead card body needs to show snapshots
   of each photo in order in row".

   Horizontally scrollable rather than wrapped: a packet is 7+ shots and
   wrapping them turns the card into a contact sheet that pushes the action
   buttons off screen. One row, swipeable, so the card keeps its height no
   matter how many photos a job has.
   ──────────────────────────────────────────────────────────────────────── */
.lc-pb-strip {
  display: flex; gap: 6px; margin-top: 8px;
  overflow-x: auto; overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.lc-pb-strip:empty { display: none; margin-top: 0; }
.lc-pb-thumb {
  position: relative; flex: 0 0 auto;
  width: 58px; height: 58px; border-radius: 8px; overflow: hidden;
  border: 1.5px solid #bedff0; background: #F5F5F5;
}
.lc-pb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* The slot name sits ON the thumbnail: a caption underneath would double
   the strip's height for a word the rep can already infer from the image. */
.lc-pb-thumb-lab {
  position: absolute; left: 0; right: 0; bottom: 0;
  font-size: 7.5px; font-weight: 800; line-height: 1.35;
  text-align: center; color: #fff;
  background: rgba(0,0,0,0.58);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding: 1px 2px;
}
[data-dark="1"] .lc-pb-thumb { border-color: rgba(255,255,255,0.18); background: #263238; }

/* -- v1.9.34 - INSTALL DATE CHIPS ON THE CARD ---------------------------
   Rep: "we need the install dates listed on the lead card" + "golden slots
   ideal and recommended". Gold = our recommendation (standard install
   capacity, weekday, soonest three) - not a CRM grade; FSL's real
   grading is behind an Apex class this org will not grant access to. */
.lc-ib-dates { display: flex; flex-wrap: wrap; gap: 5px; width: 100%; }

.lc-ib-chip {
  background: none; border: 1px solid var(--border, #bedff0);
  color: #1a4459; border-radius: 13px;
  padding: 6px 11px; min-height: 32px;
  font-size: 11px; font-weight: 800; cursor: pointer; white-space: nowrap;
}
.lc-ib-chip:hover { background: rgba(26,68,89, 0.08); }

/* The recommended ones, loud enough to be read first across a kitchen
   table but still obviously the same control. */
.lc-ib-chip--gold {
  background: linear-gradient(135deg, #FFB300, #FF8F00);
  border: none; color: #3E2723; font-weight: 900;
  box-shadow: 0 1px 3px rgba(255, 143, 0, 0.45);
}
.lc-ib-chip--gold:hover { filter: brightness(1.06); background: linear-gradient(135deg, #FFB300, #FF8F00); }

/* Offered only by a non-standard policy - visible, but visibly different,
   because promising one of these as routine capacity is the failure this
   whole area is built to avoid. */
.lc-ib-chip--alt {
  border-style: dashed; color: #E65100;
  border-color: rgba(230, 81, 0, 0.55);
}
.lc-ib-chip--alt:hover { background: rgba(230, 81, 0, 0.08); }
[data-dark="1"] .lc-ib-chip { color: #bedff0; }
[data-dark="1"] .lc-ib-chip--gold { color: #3E2723; }

/* -- v1.9.38 - CHATTER: CHANNEL TABS, COLLAPSE, PHOTOS -------------------
   Rep: "keep chatter open like work order and take photos, also allow it to
   be collapsible, and also allow us to switch the chatter channel."
   Tabs only render when a job HAS more than one thread, so a demo card never
   grows a strip it cannot use. */
.lc-ch-tabs {
  display: flex; flex-wrap: wrap; gap: 4px;
  padding: 6px 8px 0;
}
.lc-ch-tab {
  background: rgba(0,0,0,0.04); border: 1px solid var(--border, #bedff0);
  color: #1d4c64; border-radius: 12px 12px 0 0;
  padding: 5px 11px; min-height: 30px;
  font-size: 10.5px; font-weight: 800; cursor: pointer; white-space: nowrap;
}
.lc-ch-tab:hover { background: rgba(26,68,89,0.10); }
.lc-ch-tab.on {
  background: #1a4459; color: #fff; border-color: #1a4459;
}
[data-dark="1"] .lc-ch-tab { color: #bedff0; background: rgba(255,255,255,0.06); }
[data-dark="1"] .lc-ch-tab.on { background: #2c5e77; color: #fff; }

/* Head controls sit right, away from the unread/ack cluster on the left. */
.lc-chatter-photos, .lc-chatter-collapse {
  margin-left: 6px;
  background: none; border: 1px solid var(--border, #bedff0);
  color: #1d4c64; border-radius: 12px;
  padding: 4px 9px; min-height: 28px;
  font-size: 10.5px; font-weight: 800; cursor: pointer;
}
.lc-chatter-collapse { margin-left: auto; padding: 4px 10px; }
.lc-chatter-photos:hover, .lc-chatter-collapse:hover { background: rgba(26,68,89,0.10); }

/* The photo bar flashes when chatter sends the rep to it, so it is obvious
   WHICH element just answered the tap - there is only ever one per card. */
@keyframes lcPbFlash {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,143,0,0); }
  30%      { box-shadow: 0 0 0 4px rgba(255,143,0,0.55); }
}
.lc-pb-flash { animation: lcPbFlash 1.1s ease; border-radius: 10px; }

/* v1.9.19 — the DocuSign contract tile: first in the strip, opens the signed PDF. */
a.lc-pb-thumb--open { text-decoration: none; border-color: #0176D3; box-shadow: 0 0 0 1.5px #0176D3; cursor: pointer; }
a.lc-pb-thumb--open .lc-pb-thumb-lab { background: #0176D3; color: #fff; }

/* v1.9.19 — unscheduled sale notice + the small "Email dates" button */
.lc-ib-unsched { display:inline-block; background:#C62828; color:#fff; font-weight:900; font-size:11px;
  letter-spacing:.06em; padding:3px 8px; border-radius:6px; margin-right:6px; }
.lc-ib-btn--mini { font-size:11px !important; padding:3px 8px !important; margin-left:6px; }

/* v1.9.44 — quote opens the estimator; tier pill; canceled contract. */
button.lc-ql-open { background:none; border:0; padding:0; margin:0; font:inherit; color:inherit; cursor:pointer; text-decoration:underline dotted; text-underline-offset:3px; }
span.lc-ql-open { cursor:pointer; text-decoration:underline dotted; text-underline-offset:3px; }
.lc-tier, .lc-qlm--tier { display:inline-block; background:#1a4459; color:#fff !important; border-radius:8px; padding:1px 7px; font-size:10px; font-weight:900; letter-spacing:.4px; }
.lc-cxl-flag { display:inline-block; background:#B71C1C; color:#fff !important; border-radius:8px; padding:2px 9px; font-weight:900; font-size:11px; letter-spacing:.4px; }
.lc-cxl-btn { margin-left:8px; border:1.5px solid #C62828; background:#fff; color:#C62828 !important; border-radius:8px; padding:1px 8px; font-size:10px; font-weight:900; cursor:pointer; }
.lc-cxl-sheet { position:fixed; inset:0; background:rgba(0,0,0,.45); z-index:100000; display:flex; align-items:flex-end; justify-content:center; }
.lc-cxl-box { background:#fff; color:#1a1a1a; width:min(440px,100%); border-radius:16px 16px 0 0; padding:16px 16px 22px; box-shadow:0 -6px 24px rgba(0,0,0,.25); }
@media (min-width:700px){ .lc-cxl-sheet{align-items:center} .lc-cxl-box{border-radius:16px} }
.lc-cxl-h { font-size:17px; font-weight:900; color:#B71C1C; }
.lc-cxl-sub { font-size:13px; color:#444; margin:6px 0 12px; }
.lc-cxl-l { display:flex; flex-direction:column; gap:4px; font-size:12px; font-weight:800; color:#555; margin-bottom:10px; }
.lc-cxl-l select, .lc-cxl-l input { font-size:15px; padding:9px; border:1.5px solid #ccc; border-radius:8px; color:#1a1a1a; background:#fff; }
.lc-cxl-msg { min-height:18px; font-size:13px; font-weight:700; color:#B71C1C; margin-bottom:8px; }
.lc-cxl-act { display:flex; gap:10px; }
.lc-cxl-act button { flex:1; padding:12px; border-radius:10px; font-size:15px; font-weight:900; cursor:pointer; }
.lc-cxl-keep { background:#fff; border:1.5px solid #2c5e77; color:#2c5e77 !important; }
.lc-cxl-go { background:#B71C1C; border:0; color:#fff !important; }
.lc-pb-thumb { -webkit-touch-callout:none; user-select:none; -webkit-user-select:none; transition:transform .7s ease, box-shadow .2s; }
.lc-pb-thumb.lc-pb-holding { transform:scale(.9); box-shadow:0 0 0 3px #C62828; }
/* v1.9.47 — sale canceled in your CRM after contract / install date. */
.lc-header.lc-cxl-sale { box-shadow: inset 0 0 0 3px #FF1744, 0 0 0 2px #FF1744; border-radius: inherit; }
.lead-card:has(.lc-cxl-sale) { outline: 2px solid #FF1744; outline-offset: 0; }
.lc-cxl-pill { background:#D50000 !important; color:#fff !important; border-color:#7F0000 !important; font-weight:900 !important; letter-spacing:.3px; }
.lc-save-btn { margin-left:6px; background:#fff; color:#1a4459 !important; border:2px solid #FFEB3B; border-radius:14px; padding:3px 10px; font-size:12px; font-weight:900; cursor:pointer; animation: lcSavePulse 2.4s ease-in-out infinite; }
@keyframes lcSavePulse { 0%,100% { box-shadow:0 0 0 0 rgba(255,235,59,0); } 50% { box-shadow:0 0 0 4px rgba(255,235,59,.55); } }
@media (prefers-reduced-motion: reduce) { .lc-save-btn { animation:none; } }

/* v1.9.50 - quote grouped by CRM bundle: grey bundle header, items indented under it. */
.lc-ql-bundle { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:4px 10px; margin-top:2px; background:#ECEFF1; border-top:1px solid #CFD8DC; color:#78909C; font-size:11px; font-weight:800; letter-spacing:.3px; text-transform:uppercase; }
.lc-ql-bundle-sum { font-weight:800; color:#90A4AE; font-size:11px; }
.lc-ql-row--inb { padding-left:22px; border-left:3px solid #CFD8DC; }
@media (max-width: 480px) { .lc-ql-row--inb { padding-left:14px; } }


/* ── 2026-10-07 — drive time / leave by / gas: the break between header and body ──
   Rep: "move the drive time estimates and leave by and gas per lead bar pill to
   the break in between the header and the body, so it fits no matter what size
   the wrap adjusts" -- dashboard and /leads both. Beside the address it was
   nowrap and got cut off on narrow screens; here it has the card's full width
   and wraps onto a second line instead of overflowing. Same pale pill on both
   pages, sitting on the seam. */
.lc-travel-break {
  display: flex;
  justify-content: center;
  padding: 6px 10px;
  background: #f0f8fc;
  border-top: 1px solid rgba(26,68,89, .15);
  border-bottom: 1px solid rgba(26,68,89, .15);
}
.lc-travel-break:empty { display: none; }

/* ── v1.9.71 — CRM sales-completion bar: ONE bar, a segment per step ──
   Sits between the customer info and the drive-time strip. Blue while it
   fills, all green at 100%. Same height and symmetry on phone and tablet:
   label | equal segments | %, labels shorten then hide as the card narrows. */
.lc-hbar { display: flex; align-items: center; gap: 8px; margin: 6px 12px 2px; padding: 4px 8px;
           border-radius: 999px; background: rgba(21,101,192,.06); border: 1px solid rgba(21,101,192,.20); container-type: inline-size; }
.lc-hbar--full { background: rgba(44,94,119,.07); border-color: rgba(44,94,119,.28); }
.lc-hbar-lbl { flex: 0 0 auto; font-size: 10.5px; font-weight: 800; color: #0D47A1; white-space: nowrap; }
.lc-hbar--full .lc-hbar-lbl { color: #1a4459; }
.lc-hbar-pct { flex: 0 0 auto; min-width: 34px; text-align: right; font-size: 12px; font-weight: 900; color: #0D47A1;
               font-variant-numeric: tabular-nums; }
.lc-hbar--full .lc-hbar-pct { color: #1a4459; }
.lc-hbar-segs { flex: 1 1 auto; min-width: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; }
.lc-hseg { display: flex; align-items: center; justify-content: center; gap: 3px; height: 18px; min-width: 0;
           border-radius: 5px; background: rgba(21,101,192,.12); color: #546E7A; font-size: 9.5px; font-weight: 800;
           overflow: hidden; white-space: nowrap; transition: background .4s ease, color .4s ease; }
.lc-hseg i { font-style: normal; font-size: 10px; line-height: 1; }
.lc-hseg em { font-style: normal; overflow: hidden; text-overflow: ellipsis; }
.lc-hseg--done { background: linear-gradient(180deg,#1E88E5,#1565C0); color: #fff; }
.lc-hbar--full .lc-hseg--done { background: linear-gradient(180deg,#4381a0,#2c5e77); }
.lc-hseg--na, .lc-hseg--unknown { background: transparent; box-shadow: inset 0 0 0 1px rgba(84,110,122,.35); color: #90A4AE; }
@container (max-width: 430px) { .lc-hseg em { display: none; } .lc-hbar-lbl { font-size: 10px; } }
@container (max-width: 300px) { .lc-hbar-lbl { display: none; } }
@media (max-width: 480px) { .lc-hbar { margin: 6px 8px 2px; } }
/* v1.9.82 — Install dates button (sale + signed) and its picker */
.lc-hbar-inst { flex: 0 0 auto; border: none; border-radius: 999px; padding: 4px 10px; font-size: 11px; font-weight: 900;
                background: #2c5e77; color: #fff; cursor: pointer; white-space: nowrap; box-shadow: 0 2px 6px rgba(44,94,119,.3); }
.lc-inst-back { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 640px) { .lc-inst-back { align-items: center; } }
.lc-inst-box { width: min(560px, 100%); max-height: 85vh; overflow: auto; background: #fff; border-radius: 16px 16px 0 0; box-shadow: 0 -8px 30px rgba(0,0,0,.25); }
@media (min-width: 640px) { .lc-inst-box { border-radius: 16px; } }
.lc-inst-head { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: #1a4459; color: #fff; font-weight: 900; }
.lc-inst-x { background: transparent; border: none; color: #fff; font-size: 18px; cursor: pointer; }
.lc-inst-body { padding: 12px 14px 16px; font-size: 13px; color: #1d262b; }
.lc-inst-sub { color: #607D8B; font-size: 12px; margin: 8px 0; }
.lc-inst-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.lc-inst-slot { border: 1.5px solid #9ecfe8; background: #f5fafd; border-radius: 10px; padding: 9px 8px; font-weight: 800; font-size: 12px; cursor: pointer; text-align: left; }
.lc-inst-slot.is-gold { border-color: #F9A825; background: #FFFDE7; }
.lc-inst-slot.is-picked { border-color: #1565C0; box-shadow: 0 0 0 2px rgba(21,101,192,.2); }
.lc-inst-msg { margin-top: 10px; font-weight: 700; }
.lc-inst-go { margin-left: 6px; border: none; border-radius: 8px; background: #1565C0; color: #fff; font-weight: 900; padding: 6px 10px; cursor: pointer; }
.lc-travel-break .travel-row,
.lc-travel-break .travel-leg-row {
  margin: 0;
  padding: 0;
  border: 0;
  width: auto;
  max-width: 100%;
  white-space: normal;
  text-align: center;
}
.lc-travel-break .travel-row {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 8px;
  background: #fff;
  border: 1px solid rgba(26,68,89, .25);
  border-radius: 16px;
  padding: 4px 12px;
  font-size: 12px;
  color: #1a4459;
}
.lc-travel-break .travel-leg-row .tleg-inner {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  white-space: normal;
  max-width: 100%;
  color: #1a4459 !important;
}
.lc-travel-break .travel-leave { color: #1565C0; font-weight: 700; }
.lc-travel-break .travel-gas { color: #E65100; }

/* v1.9.82 — header stays clean at every width: values never wrap into the next row; the small
   "booked by" note trails the date and is the first thing to truncate. */
.lc-hd-v { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-hd-by { font-size: 10px; font-weight: 600; opacity: .7; margin-left: 4px; }

/* v1.9.84 -- J: the completion bar sits INSIDE the result-coloured header (green sale, yellow demo,
   blood-orange no demo) and its writing takes the header's own colour so it reads on every one. */
.lc-header .lc-hbar { margin: 8px 0 2px; background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.38); }
.lc-header .lc-hbar-lbl, .lc-header .lc-hbar-pct { color: var(--lc-hdr-fg, #0D47A1); }
.lc-header .lc-hseg { background: rgba(255,255,255,.20); color: rgba(255,255,255,.88); }
.lc-header .lc-hseg--done { background: linear-gradient(180deg,#1E88E5,#1565C0); color: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.35); }
.lc-header .lc-hseg--na, .lc-header .lc-hseg--unknown { background: transparent; box-shadow: inset 0 0 0 1px rgba(255,255,255,.45); color: rgba(255,255,255,.7); }
.lc-header.sale .lc-hbar--full .lc-hseg--done { background: #fff; color: #1a4459; }
.lc-header.sale .lc-hbar--full .lc-hbar-lbl, .lc-header.sale .lc-hbar--full .lc-hbar-pct { color: #b9e2f6; }
/* yellow demo header: dark writing, dark track */
.lc-header.demo .lc-hbar { background: rgba(62,39,35,.08); border-color: rgba(62,39,35,.30); }
.lc-header.demo .lc-hseg { background: rgba(62,39,35,.12); color: #4E342E; }
.lc-header.demo .lc-hseg--done { color: #fff; box-shadow: none; }
.lc-header.demo .lc-hseg--na, .lc-header.demo .lc-hseg--unknown { box-shadow: inset 0 0 0 1px rgba(62,39,35,.35); color: #6D4C41; }
/* light pink unresulted header: keep the original blue-on-light look */
.lc-header.nosale .lc-hbar { background: rgba(255,255,255,.55); border-color: rgba(183,28,28,.25); }
.lc-header.nosale .lc-hseg { background: rgba(21,101,192,.12); color: #546E7A; }
.lc-header.nosale .lc-hseg--na, .lc-header.nosale .lc-hseg--unknown { box-shadow: inset 0 0 0 1px rgba(84,110,122,.35); color: #90A4AE; }
.lc-header.nosale .lc-hbar-lbl, .lc-header.nosale .lc-hbar-pct { color: #0D47A1; }
.lc-header .lc-hbar-inst { background: #fff; color: #1a4459; }

/* 2026-10-09 -- J: "on cancel leads, did you drive here? Should show up a question on the header ...
   right at the bottom." The bottom line of a canceled card's (black) header; answerable collapsed. */
.lc-header .lc-cxl-ask { justify-content: space-between; gap: 8px; margin: 8px 0 2px; padding: 5px 8px 5px 12px;
              background: #FFF8E1; border: 1.5px solid #FFD54F; }
.lc-cxl-ask-q { font-size: 12px; font-weight: 900; color: #E65100; white-space: nowrap; }
.lc-cxl-ask-btns { display: flex; gap: 6px; flex: 0 0 auto; }
.lc-cxl-ask-btn { border: none; border-radius: 999px; padding: 5px 13px; font-size: 11.5px; font-weight: 900; cursor: pointer;
                  color: #fff; white-space: nowrap; min-height: 28px; }
.lc-cxl-ask-yes { background: linear-gradient(135deg,#1a4459,#2c5e77); box-shadow: 0 2px 6px rgba(44,94,119,.3); }
.lc-cxl-ask-no  { background: linear-gradient(135deg,#616161,#757575); }
.lc-cxl-ask--busy { opacity: .55; pointer-events: none; }
@media (max-width: 480px) { .lc-cxl-ask-q { font-size: 11.5px; } .lc-cxl-ask-btn { padding: 5px 11px; } }
.lc-inst-dark { margin: 6px 0; padding: 6px 9px; border-radius: 8px; background: #263238; color: #FFE082; font-size: 12px; font-weight: 700; }

/* v1.9.85 -- blurred money in the quote's money row: cost stays white, commission green */
.lc-qlm.lc-qlm--blur { background: #fff; color: var(--text, #37474F); font-weight: 700; }
.lc-qlm .hcp-val { filter: blur(7px); transition: filter .22s ease; }
.lc-qlm.revealed .hcp-val { filter: none; }

/* v1.9.88 -- J 2026-10-08: label above the bar, segments spaced out and always named. */
.lc-hbar.lc-hbar--stack { display: block; border-radius: 12px; padding: 6px 8px 7px; }
.lc-hbar--stack .lc-hbar-top { display: flex; align-items: baseline; gap: 8px; margin-bottom: 5px; min-width: 0; }
.lc-hbar--stack .lc-hbar-lbl { display: inline !important; font-size: 11px; }
.lc-hbar--stack .lc-hbar-need { flex: 1 1 auto; min-width: 0; font-size: 10px; font-weight: 700; color: #B71C1C;
                                 overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-hbar--stack .lc-hbar-pct { margin-left: auto; }
.lc-hbar--stack .lc-hbar-segs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.lc-hbar--stack .lc-hseg { height: 24px; padding: 0 4px; font-size: 10px; }
.lc-hbar--stack .lc-hseg em { display: inline !important; }
.lc-hbar--stack .lc-hseg--todo { background: #FFF3E0; color: #BF360C; box-shadow: inset 0 0 0 1px rgba(230,81,0,.45); }
.lc-hbar--stack .lc-hbar-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
@container (max-width: 430px) { .lc-hbar--stack .lc-hseg { font-size: 8.5px; padding: 0 2px; } .lc-hbar--stack .lc-hseg i { display: none; } }
@container (max-width: 300px) { .lc-hbar--stack .lc-hbar-segs { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); } }
.lc-header .lc-hbar--stack .lc-hbar-need { color: var(--lc-hdr-fg, #B71C1C); opacity: .9; }

/* v1.9.89 -- J 2026-10-09: "clicking that button would allow us to send the finance application to the
   customer ... both their email and phone at the same time. Or we can pick which one." */
.lc-hbar-fa { white-space: nowrap; }
.lc-fa .lc-inst-body { display: flex; flex-direction: column; gap: 6px; }
.lc-fa-who { font-weight: 900; font-size: 14px; }
.lc-fa-lbl { font-weight: 900; font-size: 11.5px; letter-spacing: .4px; text-transform: uppercase; color: #1a4459; margin-top: 6px; }
.lc-fa-types { display: flex; flex-wrap: wrap; gap: 6px; }
.lc-fa-type { flex: 1 1 140px; min-height: 44px; border-radius: 10px; border: 2px solid #cfd8d3; background: #fff; font-weight: 800; cursor: pointer; color: #1d262b; }
.lc-fa-type.is-on { border-color: #1a4459; background: #e4f2f9; }
.lc-fa-type small { display: block; font-weight: 600; color: #B26A00; font-size: 11px; }
.lc-fa-ch { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 1.5px solid #dfe7e2; border-radius: 10px; cursor: pointer; min-height: 44px; box-sizing: border-box; }
.lc-fa-ch input { width: 20px; height: 20px; margin-top: 1px; flex: none; accent-color: #1a4459; }
.lc-fa-ch > span { min-width: 0; overflow-wrap: anywhere; }
.lc-fa-ch.is-off { opacity: .65; cursor: default; }
.lc-fa-ch small { display: block; color: #B71C1C; font-size: 11.5px; margin-top: 2px; }
.lc-fa-to { color: #37474F; font-weight: 600; }
.lc-fa-pv { border: 1px solid #e3e9e5; border-radius: 10px; background: #f4fafd; }
.lc-fa-pvh { font-size: 11.5px; font-weight: 800; color: #546E7A; padding: 6px 10px 0; overflow-wrap: anywhere; }
.lc-fa-pv pre { margin: 0; padding: 6px 10px 8px; white-space: pre-wrap; overflow-wrap: anywhere; font: 12.5px/1.45 system-ui, sans-serif; color: #1d262b; }
.lc-fa-warn { padding: 8px 10px; border-radius: 10px; background: #FFF8E1; border: 1px solid #FFE082; color: #6D4C00; font-weight: 700; font-size: 12.5px; }
.lc-fa-msg { min-height: 4px; font-size: 12.5px; }
.lc-fa-err { color: #C62828; font-weight: 700; }
.lc-fa-done { font-weight: 800; font-size: 14px; line-height: 1.6; color: #1a4459; }
.lc-fa-done small { display: block; color: #B26A00; font-weight: 600; }
.lc-fa-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.lc-fa-send { flex: 2 1 200px; min-height: 46px; border: 0; border-radius: 10px; background: #1a4459; color: #fff; font-weight: 900; cursor: pointer; }
.lc-fa-send:disabled { background: #9EB5A6; cursor: default; }
.lc-fa-sf { flex: 1 1 160px; min-height: 46px; border: 1.5px solid #1a4459; border-radius: 10px; background: #fff; color: #1a4459; font-weight: 800; cursor: pointer; font-size: 12px; }

/* ── 2026-10-09 — HEADER ROW 1 ON ANY PHONE: time · date · name, THEN the result ──
   J: "not resulted needs to fall after the time, date, and customer's name,
   even on a Z-fold small screen. If we need to make the pill for the result
   not resulted a little bit smaller to fit, that would be best. Lead cards
   need to be organized, ergonomic, and clean for any phone size screen."

   The time / date / name span is now a FULL-WIDTH flex item, so the dot and
   the result pill always start the next line under it instead of landing
   beside whatever the name left over — or off the right edge of a 280px
   Z Fold cover screen. The pill drops to 11px with a 28px tap height: it was
   20px on "Not Resulted" (the merged-row size rule above caught the button)
   and 14–15.5px inline on the result types, so the two never matched either.
   Below 560px the name takes its own line and ellipsizes when it is longer
   than the card; above that it sits inline after the date.             */
.lc-hdr-row1--merged { gap: 6px; row-gap: 4px; align-items: center; min-width: 0; }
.lc-hdr-row1--merged .appt-time {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  white-space: normal;
  overflow-wrap: anywhere;
}
.lc-hdr-row1--merged .hdr-when { white-space: nowrap; }
.lc-hdr-row1--merged .hdr-name {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}
/* One size for every result pill — Sale, Demo, No Demo, Not Hit, Not Resulted ▾,
   the canceled pills — sizing used to be inline on the result types and 20px
   on the button; now it is only here. */
.lc-hdr-row1--merged .hdr-resulted,
.lc-hdr-row1--merged .hdr-rtype,
.lc-hdr-row1--merged .hdr-rtype-primary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-sizing: border-box;
  min-height: 28px;
  max-width: 100%;
  padding: 3px 10px;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0.3px;
  border-radius: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lc-hdr-row1--merged .hdr-rtype-primary .hdr-rdot { width: 7px; height: 7px; }
.lc-hdr-row1--merged .lc-save-btn { margin-left: 0; font-size: 11px; padding: 3px 9px; min-height: 28px; }
.lc-hdr-row1--merged .hdr-r1-right { margin-left: auto; }
@media (max-width: 560px) {
  .lc-hdr-row1--merged .hdr-name { display: block; }
  .lc-hdr-row1--merged .hdr-sep  { display: none; }
}
@media (max-width: 360px) {
  .lc-hdr-row1--merged .appt-time { font-size: 16px !important; }
  .lc-header { padding-left: 8px; padding-right: 8px; }
}
@media (max-width: 320px) {
  /* Z Fold cover screen: the header's two columns (contact | job facts) no
     longer fit side by side -- the phone number was breaking mid-number.
     Contact takes the full width and the job facts drop under it, still
     right-aligned, so the status keeps the right edge the rep asked for. */
  .lc-hdr-cols { flex-wrap: wrap; gap: 4px 8px; }
  .lc-hdr-col-left, .lc-hdr-col-right { flex: 1 1 100%; }
  .lc-hdr-col-right { margin-left: 0; }
}

/* 2026-10-09 — the AR / filming way in on the Take Photos bar is a link on
   Android (the live AR tape page) and a camera label on iPhone; same purple. */
a.lc-pb-way, a.lc-pb-way:visited { color: #fff; text-decoration: none; }
.lc-pb-way--ar { background: #6A1B9A; }

/* v1.9.92 (2026-10-09) -- the customer-request block the "📩 Customer request" pill opens under the card
   (static/js/customer_requests.js draws what is inside). J: "On the lead card, we would need some sort of
   notification saying customer request." */
.lc-custreq { margin: 8px 0; padding: 8px 10px; border-radius: 12px; border: 1.5px solid #FFB74D;
  background: #FFFBF5; min-width: 0; max-width: 100%; box-sizing: border-box; overflow-wrap: anywhere; }
.lc-custreq-h { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 900;
  letter-spacing: .3px; color: #E65100; text-transform: uppercase; }
.lc-custreq-x { margin-left: auto; border: 0; background: none; font-size: 16px; line-height: 1; cursor: pointer;
  color: #E65100; min-width: 32px; min-height: 32px; }
.lc-custreq-load { font-size: 12.5px; opacity: .75; padding: 4px 0; }
.lc-custreq .lhcr-btn { max-width: 100%; white-space: normal; }
[data-dark="1"] .lc-custreq { background: rgba(255, 183, 77, 0.06); border-color: #8a6d00; }
[data-dark="1"] .lc-custreq-h, [data-dark="1"] .lc-custreq-x { color: #FFCC80; }

/* 2026-10-10 d356 - J: "on small screens like the Z Fold front screen, we still need date, time, or time, date,
   and customer's name all on the top line. Preferably with the not resulted either underneath it or to the far
   right on the same row." Line 1 is now ONE non-wrapping row at every width: time · date · name, the name
   ellipsizing instead of dropping to its own line (supersedes the <=560px display:block / hidden separator
   above). The dot + result / "Not Resulted" pill keep the line directly underneath. */
.lc-header .lc-hdr-row1--merged .appt-time {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  white-space: nowrap;
  overflow: hidden;
  overflow-wrap: normal;
}
.lc-header .lc-hdr-row1--merged .hdr-when { flex: 0 0 auto; white-space: nowrap; }
.lc-header .lc-hdr-row1--merged .hdr-sep  { display: inline; flex: 0 0 auto; white-space: pre; }
.lc-header .lc-hdr-row1--merged .hdr-name {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 400px) {
  .lc-header .lc-hdr-row1--merged .appt-time { font-size: 15px !important; letter-spacing: 0; }
}
@media (max-width: 330px) {
  .lc-header .lc-hdr-row1--merged .appt-time { font-size: 14px !important; }
}

/* ── 2026-10-15 (d1360) TAKE PHOTOS: THREE ICON BUTTONS + SENSOR CHIP ────
   J: "change the upload buttons so they look more attractive -- a camera
   button, a file button, and an icon for the AR measurements." Three equal
   tiles (icon over label, >= 72px tall), one per way in. Inline SVG icons in
   a tinted circle; colours follow the bar's blue in light and dark. */
.lc-pb-ways.lc-pb-ways--icons {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px; margin-top: 8px;
}
.lc-pb-ways--icons .lc-pb-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; min-height: 76px; min-width: 0; padding: 9px 4px 8px;
  background: #FFFFFF; color: #0D47A1;
  border: 1.5px solid #90CAF9; border-radius: 14px;
  box-shadow: 0 1px 2px rgba(13, 71, 161, 0.10);
  font: inherit; text-align: center; text-decoration: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.lc-pb-ways--icons .lc-pb-btn:hover { border-color: #1565C0; box-shadow: 0 2px 8px rgba(13, 71, 161, 0.18); }
.lc-pb-ways--icons .lc-pb-btn:active { transform: scale(0.97); }
.lc-pb-ways--icons .lc-pb-btn:focus-visible { outline: 2.5px solid #1565C0; outline-offset: 2px; }
.lc-pb-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  color: #fff; background: #1565C0;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}
.lc-pb-ic svg { display: block; }
.lc-pb-btn--file .lc-pb-ic { background: #00796B; }
.lc-pb-btn--ar .lc-pb-ic   { background: #6A1B9A; }
.lc-pb-btn-lab { font-size: 12.5px; font-weight: 900; letter-spacing: 0.2px; line-height: 1.15; }
.lc-pb-btn-sub {
  font-size: 10px; font-weight: 700; color: #546E7A; line-height: 1.15;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
a.lc-pb-btn.lc-pb-way--ar, a.lc-pb-btn.lc-pb-way--ar:visited { color: #0D47A1; background: #FFFFFF; }
.lc-pb-ways--icons .lc-pb-way--video { background: #FFFFFF; }
/* "Snap as we go" stays, as a slim secondary row under the tiles */
.lc-pb-snap.lc-pb-way {
  display: flex; width: 100%; min-height: 40px; margin-top: 8px;
  background: transparent; color: #00695C; border: 1.5px dashed #80CBC4;
  font-size: 11.5px;
}
@media (max-width: 520px) { .lc-pb-ways--icons .lc-pb-btn { flex: initial; } }
/* sensor chip: GPS ✓ · Compass ✓ · Motion ✓ · South side · facing N 352° */
.lc-pb-sensors { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
.lc-pb-sensors[hidden] { display: none; }
.lc-pb-sn {
  font-size: 10.5px; font-weight: 800; line-height: 1; padding: 4px 8px; border-radius: 999px;
  background: #ECEFF1; color: #455A64; border: 1px solid #CFD8DC; white-space: nowrap;
}
.lc-pb-sn--ok     { background: #e4f2f9; color: #1a4459; border-color: #95cbe6; }
.lc-pb-sn--denied { background: #FFEBEE; color: #B71C1C; border-color: #EF9A9A; }
.lc-pb-sn--side   { background: #0D47A1; color: #fff; border-color: #0D47A1; }
.lc-pb-sn--hd     { background: #fff; color: #0D47A1; border-color: #90CAF9; }
/* thumbnails that know where they were shot from get a little wider + a top badge */
.lc-pb-thumb.lc-pb-thumb--cap { width: 96px; }
.lc-pb-thumb-shot {
  position: absolute; left: 0; right: 0; top: 0;
  font-size: 8px; font-weight: 900; line-height: 1.35; text-align: center;
  color: #fff; background: rgba(13, 71, 161, 0.82);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 1px 3px;
}
[data-dark="1"] .lc-pb-ways--icons .lc-pb-btn,
[data-dark="1"] a.lc-pb-btn.lc-pb-way--ar,
[data-dark="1"] .lc-pb-ways--icons .lc-pb-way--video {
  background: rgba(255, 255, 255, 0.06); color: #E3F2FD; border-color: #1E5AA8; box-shadow: none;
}
[data-dark="1"] .lc-pb-ways--icons .lc-pb-btn:hover { border-color: #90CAF9; }
[data-dark="1"] .lc-pb-btn-sub { color: #B0BEC5; }
[data-dark="1"] .lc-pb-ic { background: #1E88E5; }
[data-dark="1"] .lc-pb-btn--file .lc-pb-ic { background: #26A69A; }
[data-dark="1"] .lc-pb-btn--ar .lc-pb-ic   { background: #8E24AA; }
[data-dark="1"] .lc-pb-snap.lc-pb-way { color: #80CBC4; border-color: #26A69A; }
[data-dark="1"] .lc-pb-sn        { background: rgba(255,255,255,0.06); color: #CFD8DC; border-color: rgba(255,255,255,0.18); }
[data-dark="1"] .lc-pb-sn--ok    { background: rgba(44,94,119,0.28); color: #bedff0; border-color: #2c5e77; }
[data-dark="1"] .lc-pb-sn--denied{ background: rgba(198,40,40,0.25); color: #FFCDD2; border-color: #C62828; }
[data-dark="1"] .lc-pb-sn--side  { background: #1E88E5; color: #fff; border-color: #1E88E5; }
[data-dark="1"] .lc-pb-sn--hd    { background: transparent; color: #90CAF9; border-color: #1E5AA8; }

/* In-page walk-around recorder (capture_meta.js): full-screen camera, sensor chip, one big button */
.lc-rec { position: fixed; inset: 0; z-index: 10050; background: #000; color: #fff;
  display: flex; flex-direction: column; justify-content: space-between; }
.lc-rec-v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lc-rec-top, .lc-rec-bot { position: relative; z-index: 1; padding: 12px 16px;
  padding-top: max(12px, env(safe-area-inset-top)); }
.lc-rec-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px;
  background: linear-gradient(rgba(0,0,0,.55), transparent); }
.lc-rec-chip { display: flex; flex-wrap: wrap; gap: 4px; }
.lc-rec-chip .lc-pb-sn { background: rgba(0,0,0,.5); color: #fff; border-color: rgba(255,255,255,.35); }
.lc-rec-chip .lc-pb-sn--ok { color: #95cbe6; border-color: #669fbb; }
.lc-rec-chip .lc-pb-sn--denied { color: #EF9A9A; border-color: #E57373; }
.lc-rec-chip .lc-pb-sn--side { background: #1E88E5; border-color: #1E88E5; }
.lc-rec-x { width: 48px; height: 48px; border-radius: 50%; border: 0; flex: 0 0 auto;
  background: rgba(0,0,0,.55); color: #fff; font-size: 20px; cursor: pointer; }
.lc-rec-bot { display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding-bottom: max(20px, env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.lc-rec-time { font-size: 14px; font-weight: 800; text-align: center; text-shadow: 0 1px 2px #000; }
.lc-rec-go { width: 76px; height: 76px; border-radius: 50%; border: 4px solid #fff; background: transparent;
  display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.lc-rec-go span { width: 58px; height: 58px; border-radius: 50%; background: #E53935; transition: all .15s ease; }
.lc-rec-go.on span { width: 30px; height: 30px; border-radius: 6px; }
.lc-rec-go:disabled { opacity: .4; }
.lc-rec-fb { min-height: 52px; padding: 0 22px; border-radius: 26px; border: 0;
  background: #fff; color: #0D47A1; font-size: 15px; font-weight: 900; cursor: pointer; }
/* d1420 -- J 2026-10-15: "Lead cards need to update for Pending Customer Decision -- can still show the
   unresulted color, but with a yellow outline/border indicating it's partially resulted." The card keeps its
   unresulted (pink) header and body; only the outline changes. Doubled class + html body: beats the page and
   theme border rules (themes.css body[data-theme] .lead-card). Set by leads.html / dashboard.html (_isPcd). */
html body .lead-card.lc-pcd.lc-pcd {
  border: 3px solid #F5B800 !important;
  box-shadow: 0 0 0 1px rgba(245,184,0,.35), 0 0 12px rgba(245,184,0,.45) !important;
}
html[data-dark="1"] body .lead-card.lc-pcd.lc-pcd, html body[data-dark="1"] .lead-card.lc-pcd.lc-pcd,
html body [data-dark="1"] .lead-card.lc-pcd.lc-pcd {
  border-color: #FFC928 !important;
  box-shadow: 0 0 0 1px rgba(255,201,40,.40), 0 0 14px rgba(255,201,40,.38) !important;
}

/* ── 2026-10-16 (d1780) J: "Let's make the take photos, upload files, or the AR live tape buttons about half as
   tall." Same three tiles, now one compact row each: the icon beside the words, ~38px tall instead of 76. ── */
.lc-pb-ways--icons .lc-pb-btn {
  flex-direction: row; gap: 6px; min-height: 38px; padding: 4px 6px; border-radius: 10px;
}
.lc-pb-ways--icons .lc-pb-ic { width: 26px; height: 26px; flex: 0 0 26px; }
.lc-pb-ways--icons .lc-pb-ic svg { width: 16px; height: 16px; }
.lc-pb-ways--icons .lc-pb-btn-lab { font-size: 11.5px; }
.lc-pb-ways--icons .lc-pb-btn-sub { font-size: 9.5px; }
.lc-pb-snap.lc-pb-way { min-height: 30px; margin-top: 6px; }
@media (max-width: 560px) { .lc-pb-ways--icons .lc-pb-btn-sub { display: none; } }

.lc-pb-ways--icons .lc-pb-btn .lc-pb-ic { width: 24px !important; height: 24px !important; flex: 0 0 24px !important; }
.lc-pb-ways--icons .lc-pb-btn { padding: 3px 6px !important; min-height: 36px !important; }

/* d1796 -- money pills in the quote header (second line), commission in its own large blurred pill below. */
.lc-ql-hpills { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 4px; }
.lc-ql-hpills .lc-qlm { font-size: 10px; padding: 1px 7px; border-radius: 10px; line-height: 1.5; }
.lc-ql-comm { display: block; margin: 6px 10px; padding: 8px 12px; font-size: 13px; border-radius: 14px;
  text-align: left; cursor: pointer; background: #fff; }
.lc-ql-comm .hcp-val { filter: blur(8px); }
.lc-ql-comm.revealed .hcp-val { filter: none; }
.lc-ql-hpills .lc-qlm--inc { background: #E3F2FD; color: #0D47A1; border-color: #90CAF9; }

/* d1798 -- J: "the lead card can be shrunk down ... the list of actions on the right can fit the lead card better
   ... and then the customer's information fits nicely." Tighter contact pills; on wider screens the status list
   runs two label/value pairs per line, so the header is about half as tall. */
.lead-card .lc-header .lead-contact-row > div > span,
.lead-card .lc-header .lead-address span { padding: 4px 9px !important; }
.lead-card .lc-header .lead-contact-row { gap: 3px !important; }
.lead-card .lc-header .lc-hdr-addr-row { margin-top: 3px; }
/* (d1822: the 4-pairs-per-line grid that was here is removed -- it overlapped the contact pills on the unfolded Fold.) */

/* d1822 -- J: "Lead header layout should be exactly how it was before we changed it. Just moved closer to the top,
   clean column of info." d1821's stacked layout is reverted (contact left, facts right, as before). The facts stay ONE
   clean label/value column (the d1798 4-across grid is gone) and now start at the top of the header, beside the
   time / name line instead of under it. Small phones (<=430px) keep the original two-row flow. */
@media (min-width: 641px) {
  .lead-card .lc-header:has(> .lc-hdr-row1 + .lc-hdr-cols) { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr auto;
    column-gap: 14px; align-items: start; }
  .lead-card .lc-header:has(> .lc-hdr-row1 + .lc-hdr-cols) > .lc-hdr-row1 { grid-column: 1; grid-row: 1; min-width: 0; }
  .lead-card .lc-header:has(> .lc-hdr-row1 + .lc-hdr-cols) > .lc-hdr-cols { display: contents; }
  .lead-card .lc-header:has(> .lc-hdr-row1 + .lc-hdr-cols) > .lc-hdr-cols > .lc-hdr-col-left { grid-column: 1; grid-row: 2; margin-top: 7px; }
  .lead-card .lc-header:has(> .lc-hdr-row1 + .lc-hdr-cols) > .lc-hdr-cols > .lc-hdr-col-right { grid-column: 2; grid-row: 1 / span 2; margin-top: 2px; }
}
/* d1822 -- J: "Clicking the opportunity name should have a small link to SF opportunity. Blue diagonal arrow." */
.hdr-sf-open { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px;
  margin-left: 5px; border-radius: 50%; background: #1E88E5; color: #fff !important; font-size: 12px; font-weight: 900;
  line-height: 1; text-decoration: none !important; vertical-align: middle; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.hdr-sf-open:hover { background: #1565C0; }
.appt-time .hdr-name:has(+ .hdr-sf-open) { flex: 0 1 auto !important; min-width: 0; }
.appt-time .hdr-sf-open { flex: none; }

/* d1823 -- J: "The sales completion bar needs to remain along the entire bottom of the lead card. That way we can make
   them a little bit less tall." / "We don't want to cut off customers' names, we can lower the list to better
   accommodate." The completion bar spans the whole header width as its last row, with shorter segments. When the
   customer's name would be cut off beside the facts column, lead_card.js adds .lc-hdr--low and the facts column
   drops to start under the name line instead (row 2). */
@media (min-width: 641px) {
  .lead-card .lc-header:has(> .lc-hdr-row1 + .lc-hdr-cols) > .lc-hbar { grid-column: 1 / -1; grid-row: 3; }
  .lead-card .lc-header.lc-hdr--low:has(> .lc-hdr-row1 + .lc-hdr-cols) > .lc-hdr-cols > .lc-hdr-col-right { grid-row: 2; margin-top: 7px; }
}
.lc-header .lc-hbar.lc-hbar--stack { margin-top: 6px; padding: 4px 8px 5px; }
.lc-header .lc-hbar--stack .lc-hbar-top { margin-bottom: 3px; }
.lc-header .lc-hbar--stack .lc-hbar-segs { gap: 4px; }
.lc-header .lc-hbar--stack .lc-hseg { height: 19px; font-size: 10px; }
/* d1823 -- names are never cut off: on phones (and in .lc-hdr--low) the name wraps instead of ellipsizing; the
   completion bar stays ONE row of 7 short segments across the bottom on the folded Fold too. */
.lead-card .lc-header.lc-hdr--low .hdr-name { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; }
@media (max-width: 430px) {
  .lead-card .lc-header .hdr-name { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; }
  .lc-header .lc-hbar--stack .lc-hbar-segs { grid-auto-flow: column !important; grid-template-columns: none !important;
    grid-auto-columns: minmax(0, 1fr) !important; gap: 3px !important; }
  .lc-header .lc-hbar--stack .lc-hseg { height: 18px; padding: 0 2px; font-size: 8.5px; gap: 1px; }
  .lc-header .lc-hbar--stack .lc-hseg i { font-size: 8.5px; }
}
/* d1823 -- when lowered, the name line takes the full width. On phones (<=430px) the contact pills and the facts
   column no longer squeeze side by side (they overlapped on the folded Fold): contact pills first, then the facts
   column under them, still label / value, right-aligned like before. */
@media (min-width: 641px) {
  .lead-card .lc-header.lc-hdr--low:has(> .lc-hdr-row1 + .lc-hdr-cols) > .lc-hdr-row1 { grid-column: 1 / -1; }
}
/* d2072 -- the side-by-side header grid (contact left, facts right) now starts at 641px. Between 431-640px the facts
   column took ~310px and squeezed the contact pills to ~70px, so the email / address ran under STATUS / JOB #.
   Up to 640px the header stacks: contact pills first, then the facts column (same as small phones). Desktop unchanged. */
@media (max-width: 640px) {
  .lead-card .lc-header .lc-hdr-cols { flex-wrap: wrap !important; gap: 6px 8px !important; }
  .lead-card .lc-header .lc-hdr-col-left, .lead-card .lc-header .lc-hdr-col-right { flex: 1 1 100% !important; margin-left: 0 !important; }
  .lead-card .lc-header .lc-hd-wrap { justify-content: flex-end; }
  .lead-card .lc-header .lc-hd { grid-template-columns: auto auto !important; }
  .lead-card .lc-header .lc-hd-k { display: block !important; }
}
/* d1823 -- a name that does not fit drops whole to its own line (left-aligned) rather than splitting word by word. */
.lead-card .lc-header.lc-hdr--low .appt-time { flex-wrap: wrap !important; }
.lead-card .lc-header.lc-hdr--low .hdr-name { text-align: left !important; }
@media (max-width: 430px) {
  .lead-card .lc-header .appt-time { flex-wrap: wrap !important; }
  .lead-card .lc-header .hdr-name { text-align: left !important; }
}
/* d1826 -- J (again): "We don't want to cut off customers' names." A name is NEVER ellipsized now, at any width or
   moment (before the d1823 check runs it could flash cut). Worst case it wraps; lead_card.js still lowers the facts
   column when the name would not fit on one line beside it. */
.lead-card .lc-header .hdr-name { white-space: normal !important; overflow: visible !important; text-overflow: clip !important;
  overflow-wrap: anywhere; min-width: 0; }
.lead-card .lc-header .appt-time { flex-wrap: wrap !important; }
/* d1827 -- J: "Names always need be on same row." Time · date · name stay on ONE line. lead_card.js: if they don't
   fit beside the facts column, the facts drop below (.lc-hdr--low) so the line gets the full width; if they still
   don't fit (very long name on a small phone) the line's text shrinks a little (to ~72%); only past that does the name
   wrap (.lc-hdr--wrapname). Never ellipsized. */
.lead-card .lc-header .lc-hdr-row1--merged .appt-time { flex-wrap: nowrap !important; overflow: visible !important; }
.lead-card .lc-header .lc-hdr-row1--merged .hdr-name { white-space: nowrap !important; overflow: visible !important;
  text-overflow: clip !important; flex: 0 0 auto !important; display: inline-block !important; }
.lead-card .lc-header .lc-hdr-row1--merged .hdr-sep { display: inline !important; }
.lead-card .lc-header.lc-hdr--wrapname .lc-hdr-row1--merged .appt-time { flex-wrap: wrap !important; }
.lead-card .lc-header.lc-hdr--wrapname .lc-hdr-row1--merged .hdr-name { white-space: normal !important; flex: 1 1 auto !important; }
