/* leads: rules only leads's pages use, linked-set safe (no rule here can tie with a rule that loads before it); original order. */
.draft-notice-ok { background: var(--hm-success-tint); }
.draft-notice-error { background: var(--hm-danger-soft); color: var(--hm-ink); }
.fc-card h3 { margin: 0 0 var(--hm-space-3); font-size: var(--hm-fs-section); }
.fc-pick > .svc-note { margin-bottom: var(--hm-space-2); }
.fc-cost-info { display: inline-flex; align-items: center; }
.fc-side.fc-side-one { grid-template-columns: minmax(0, 1fr); } /* no right column to hold anything yet: the form has the whole width */
.fc-two p { margin: 0; }
.fc-money { font-size: var(--hm-fs-kpi); font-weight: 600; color: var(--hm-ink); }
.fc-money.small { font-size: var(--hm-fs-section); }
.fc-choices { flex-wrap: wrap; margin-top: 0; }
.fc-field input, .fc-auto-form input { width: 100%; max-width: 220px; }
.fc-auto-form { line-height: 2.4; }
.fc-auto-form input { width: 96px; }
.fc-check { display: flex; gap: 8px; align-items: center; margin: var(--hm-space-3) 0; }
.fc-check input { accent-color: var(--hm-primary); }
.fc-value { margin: 0 0 var(--hm-space-2); font-weight: 600; }
.fc-ledger { width: 100%; border-collapse: collapse; font-size: var(--hm-fs-meta); }
.fc-ledger th, .fc-ledger td { padding: 8px 6px; border-bottom: 1px solid var(--hm-line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.fc-ledger th { color: var(--hm-muted); font-weight: 600; font-size: var(--hm-fs-label); }
.ux-shell .fc-ledger th { font-size: var(--hm-fs-label); } /* over the shell's th rule (type-10) */
.fc-ledger td:first-child, .fc-ledger th:first-child { white-space: nowrap; }
.fc-amt, .fc-ledger td.fc-amt { text-align: right; white-space: nowrap; } /* td.fc-amt: over the ledger's td rule (ui-consistency P2) */
.fc-amt.plus { color: var(--hm-primary); }
.fc-amt.minus { color: var(--hm-ink); }
.fc-block { display: block; margin: 0 0 var(--hm-space-3); }
.fc-block b { display: block; margin-bottom: 4px; font-size: var(--hm-fs-meta); }
.fc-block input, .fc-block select { width: 100%; max-width: none; }
.fc-why .fc-row .svc-badge { justify-self: start; }
.fc-kv { margin: 0 0 var(--hm-space-2); overflow-wrap: anywhere; }
.fc-kv b { display: block; font-size: var(--hm-fs-meta); color: var(--hm-muted); }
.fc-terms { display: grid; gap: 4px; }
.fc-term-row { display: flex; gap: 8px; align-items: flex-start; border-bottom: 1px solid var(--hm-line); }
.fc-term { display: flex; flex: 1; min-width: 0; gap: 10px; align-items: flex-start; padding: 8px 0; min-height: 44px; }
.fc-term-del { flex: none; min-height: 44px; }
.fc-term input { margin-top: 3px; accent-color: var(--hm-primary); }
.fc-term b { display: block; overflow-wrap: anywhere; }
.fc-src { display: block; color: var(--hm-muted); font-size: var(--hm-fs-label); }
.fc-src.bad { color: var(--hm-danger); }
.fc-dialog-back { position: fixed; inset: 0; background: var(--hm-overlay); display: flex; align-items: safe center; justify-content: center; padding: 16px; z-index: 50; overflow-y: auto; } /* a dialog taller than the screen scrolls (ui-consistency P3) */
.fc-dialog { max-width: 480px; width: 100%; }
.fc-dialog h3 { margin: 0 0 var(--hm-space-3); }
.fc-rounds { display: grid; gap: var(--hm-space-2); margin-bottom: var(--hm-space-3); }
.fc-round { display: flex; gap: var(--hm-space-3); align-items: flex-start; }
.fc-round p { margin: 2px 0 0; overflow-wrap: anywhere; }
.fc-no { flex: 0 0 24px; height: 24px; border-radius: var(--hm-radius-pill); background: var(--hm-mint); display: inline-flex; align-items: center; justify-content: center; font-size: var(--hm-fs-label); font-weight: 600; }
.fc-today .fc-low { margin: 4px 0 0; font-size: var(--hm-fs-meta); color: var(--hm-attention); }
.fc-ref-label { margin: 0; font-size: var(--hm-fs-label); font-weight: 600; letter-spacing: 1px; color: var(--hm-muted); }
.fc-ref-link { margin: 0 0 var(--hm-space-2); padding: 10px; border: 1px solid var(--hm-line); border-radius: var(--hm-radius-control); background: var(--hm-surface); font-size: var(--hm-fs-meta); overflow-wrap: anywhere; }
.fc-ref-people, .fc-card h3.fc-ref-people { margin-top: var(--hm-space-3); } /* h3.: over .fc-card h3's margin (ui-consistency P3) */
.fc-referral .fc-money, .fc-referral > p { margin: 4px 0; } /* as Today beside it (ui-consistency P3) */
.fc-saved p { margin: 2px 0 0; }
.fc-add, .fc-save { border-top: 1px solid var(--hm-line); margin-top: var(--hm-space-3); padding-top: var(--hm-space-3); }
.fc-block textarea { width: 100%; }
.fc-field b .svc-note { font-weight: 400; }
.fc-today .fc-money, .fc-today p { margin: 4px 0; }
.fc-who { margin: 0 0 6px; overflow-wrap: anywhere; }
.fc-quote { margin: 0 0 6px; padding: 8px 12px; border-left: 3px solid var(--hm-primary); background: var(--hm-neutral); overflow-wrap: anywhere; }
.fc-post { margin: 0 0 4px; color: var(--hm-muted); font-size: var(--hm-fs-meta); overflow-wrap: anywhere; }
.fc-lead-actions .svc-badge { align-self: flex-start; }
.fc-lead-actions .svc-note { overflow-wrap: anywhere; }
.fc-saved { flex-wrap: wrap; padding: var(--hm-space-2) 0; border-bottom: 1px solid var(--hm-line); }
.ux-shell .fc-lead-card .fc-lead:last-of-type { border-bottom: 0; }
.fc-avatar { display: grid; place-items: center; width: var(--hm-control-height); height: var(--hm-control-height); border-radius: var(--hm-radius-pill); background: var(--hm-hover); color: var(--hm-muted); font-size: var(--hm-fs-meta); font-weight: 600; }
.ux-shell .fc-lead-card .fc-lead[data-fc-kind="fix"] .svc-badge:not(.fc-off):not(.fc-warn) { background: var(--hm-fc-tint); color: var(--hm-fc); }
.ux-shell .fc-lead-card .fc-lead[data-fc-kind="bothered"] .svc-badge:not(.fc-off):not(.fc-warn) { background: var(--hm-attention-tint); color: var(--hm-attention); }
.ux-shell .fc-lead-card .fc-quote { margin: 2px 0 6px; padding: 0; border: 0; background: transparent; font-size: var(--hm-fs-body); }
.ux-shell .fc-page .fc-row { min-height: 64px; padding-top: 10px; padding-bottom: 10px; }
.ux-shell .fc-row > button.btn:hover, .ux-shell .fc-row > a.btn:hover, .ux-shell .fc-lead-actions > button.btn:hover { background: transparent; color: var(--hm-primary-hover); text-decoration: underline; text-underline-offset: 2px; }
.ux-shell .fc-saved .fc-grow > b { display: block; }
.ux-shell .fc-saved .fc-grow > p.svc-note, .ux-shell .fc-saved .fc-grow > a { display: inline; } /* "Open the last run" ends the note's line instead of taking one of its own */
.ux-shell .fc-saved .fc-grow > a { margin-left: var(--hm-space-2); }
.ux-shell .fc-lead-card .fc-lead .fc-grow > :is(.fc-who, .fc-quote, .hm-text-link, .sc-error) { grid-column: 1 / -1; }
.ux-shell .fc-lead-card .fc-lead .fc-grow > .hm-text-link { justify-self: start; margin: 0 0 4px; font-size: var(--hm-fs-meta); }
.ux-shell .fc-lead-card .fc-lead[data-fc-focus] { background: var(--hm-primary-tint); box-shadow: inset 3px 0 0 var(--hm-primary); } /* the lead an agent's Verify link names */
.ux-shell .fc-lead-card .fc-lead .fc-who { margin-bottom: 2px; }
.ux-shell .fc-lead-card .fc-lead .fc-quote { margin: 0 0 2px; }
.ux-shell .fc-quote[data-fc-quote]:not(.is-open) { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.ux-shell .fc-lead-card .fc-lead .fc-post { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-why > details[open] > summary { margin-bottom: var(--hm-space-3); }

/* Walk fixes (P53 round): a phone's number cards keep their label's words whole (no "confirmatio / n"), the CRM lead row is two lines of facts instead of five stacked blocks, and a link's words stay together. */
.fc-open-comment { white-space: nowrap; }
.fc-two-cards > .fc-card { margin-bottom: 0; }

/* 2.8.1 Find customers: a search is one round; Search more is the merchant's press (Harvey 11-12). */
.fc-more { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--hm-space-2) var(--hm-space-4); margin: var(--hm-space-3) 0; padding: var(--hm-space-3); border: 1px solid var(--hm-line); border-radius: var(--hm-radius-control); }
.fc-more > div { min-width: 0; flex: 1 1 18em; }
.fc-more p { margin: 2px 0 0; }
.fc-more-done { display: block; background: var(--hm-bg); }
.fc-latest { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--hm-space-2) var(--hm-space-4); margin: 0 0 var(--hm-space-3); padding: var(--hm-space-2) var(--hm-space-3); border: 1px solid var(--hm-line); border-radius: var(--hm-radius-control); background: var(--hm-primary-tint); }
.fc-latest p { flex-basis: 100%; margin: 0; }
.fc-latest-slot:empty { display: none; }

/* P-FC1 (walk, 375 px): a round's "Found 3 · 0 bothered by it, 3 want to fix it" badge goes under its text on a phone instead of squeezing it */
.fc-round > :nth-child(2) { flex: 1 1 0; min-width: 0; }
@media (max-width: 600px) { .fc-round { flex-wrap: wrap; } .fc-round > .svc-badge { flex: 1 1 100%; white-space: normal; margin-left: 44px; } }
