/* public/app-lead-recovery.css -- the Leads to recover screen (see app-lead-recovery.js).
 *
 * Uses the app's own tokens (--card, --line, --ink, --mut, --canvas, ... defined for light and dark in index.html) and the
 * page type scale from hl-ui.css (--hl-fs-*). Body copy is --ink at full contrast. Colour and weight carry state only, never prose.
 * Buttons are the shared .hl-btn family: Call now is the one primary button on a row, Copy message is plain, Mark handled is quiet.
 *
 * Contrast (same pairs as the Callbacks screen, measured there, light / dark): --ink on --card 14.6:1 / 11.7:1,
 * --mut on --card 8.2:1 / 6.3:1, rule chip --warn-ink on --amber-bg 5.2:1 / 7.6:1, value chip --green-ink on --green-bg 5.1:1 / 6.2:1.
 */
#view-lead-recovery { padding: 4px 0 40px; }
#hl-lead-recovery { max-width: 1120px; margin: 0 auto; font-family: var(--sans); color: var(--ink); }
#hl-lead-recovery * { box-sizing: border-box; }

#hl-lead-recovery .lr-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 16px; margin: 0 0 20px; }
#hl-lead-recovery .lr-head-text { flex: 1 1 320px; min-width: 0; }
#hl-lead-recovery .lr-title { margin: 0; font-size: var(--hl-fs-page, 26px); font-weight: 800; line-height: 1.15; letter-spacing: -.01em; color: var(--ink); }
#hl-lead-recovery .lr-lede { margin: 6px 0 0; max-width: 62ch; font-size: var(--hl-fs-lede, 14px); line-height: 1.5; font-weight: 500; color: var(--mut); }
#hl-lead-recovery .lr-head-acts { display: flex; flex-wrap: wrap; gap: 8px; }
#hl-lead-recovery .lr-live { min-height: 0; margin: 0; font-size: var(--hl-fs-label, 12px); font-weight: 700; color: var(--green-ink); }
#hl-lead-recovery .lr-live:not(:empty) { margin: -8px 0 12px; }
#hl-lead-recovery .lr-nudge { margin: 0 0 16px; }
#hl-lead-recovery .lr-nudge:empty { display: none; }

/* The numbers */
#hl-lead-recovery .lr-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
#hl-lead-recovery .lr-stat { min-width: 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--hl-r-lg, 14px); background: var(--card); }
#hl-lead-recovery .lr-stat-n { font-size: 26px; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; color: var(--ink); overflow-wrap: anywhere; }
#hl-lead-recovery .lr-stat-l { margin-top: 4px; font-size: var(--hl-fs-body, 13px); font-weight: 700; color: var(--ink); }
#hl-lead-recovery .lr-stat-h { margin-top: 2px; font-size: var(--hl-fs-micro, 11px); font-weight: 600; line-height: 1.4; color: var(--mut); }
#hl-lead-recovery .lr-stat-thin { margin-top: 6px; font-size: var(--hl-fs-micro, 11px); font-weight: 800; color: var(--warn-ink); }
#hl-lead-recovery .lr-foot { margin: 12px 0 0; font-size: var(--hl-fs-micro, 11px); line-height: 1.5; font-weight: 600; color: var(--mut); }
#hl-lead-recovery .lr-card-empty { margin: 0; font-size: var(--hl-fs-body, 13px); line-height: 1.5; font-weight: 500; color: var(--mut); }

/* The heads-up choice */
#hl-lead-recovery .lr-notify { margin: 0 0 12px; padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--hl-r-lg, 14px); background: var(--card); }
#hl-lead-recovery .lr-notify-l { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
#hl-lead-recovery .lr-notify-l input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--hl-primary, #2f5d8a); cursor: pointer; }
#hl-lead-recovery .lr-notify-l input:focus-visible { outline: 2px solid var(--hl-primary, #2f5d8a); outline-offset: 2px; }
#hl-lead-recovery .lr-notify-t b { display: block; font-size: var(--hl-fs-body, 13px); font-weight: 800; color: var(--ink); }
#hl-lead-recovery .lr-notify-t span { display: block; margin-top: 2px; font-size: var(--hl-fs-label, 12px); line-height: 1.5; font-weight: 500; color: var(--mut); max-width: 70ch; }

/* Tabs and chips */
#hl-lead-recovery .lr-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 24px 0 0; }
#hl-lead-recovery .lr-chips { display: flex; flex-wrap: wrap; gap: 6px; }
#hl-lead-recovery .lr-chip { display: inline-flex; align-items: center; flex: none; max-width: 100%; padding: 2px 9px; border-radius: 99px; font-size: var(--hl-fs-micro, 11px); font-weight: 800; line-height: 1.5; white-space: nowrap; }
#hl-lead-recovery .lr-chip-rule { background: var(--amber-bg); color: var(--warn-ink); }
#hl-lead-recovery .lr-chip-value, #hl-lead-recovery .lr-chip-ok { background: var(--green-bg); color: var(--green-ink); }
#hl-lead-recovery .lr-chip-off { background: var(--canvas); color: var(--mut); border: 1px solid var(--line); }
#hl-lead-recovery .lr-chip-plain { background: var(--canvas); color: var(--ink); border: 1px solid var(--line); }

/* The list */
#hl-lead-recovery .lr-list { margin-top: 16px; }
#hl-lead-recovery .lr-list-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 12px; }
#hl-lead-recovery .lr-card-t { margin: 0; font-size: var(--hl-fs-label, 12px); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--mut); }
#hl-lead-recovery .lr-list > .lr-card-t { margin-bottom: 12px; }
#hl-lead-recovery .lr-list-bar .lr-card-t { margin: 0; }
#hl-lead-recovery .lr-row { margin: 0 0 10px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--hl-r-lg, 14px); background: var(--card); }
#hl-lead-recovery .lr-row-off .lr-name, #hl-lead-recovery .lr-row-off .lr-ask { color: var(--mut); }
#hl-lead-recovery .lr-row-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
#hl-lead-recovery .lr-who { min-width: 0; flex: 1 1 auto; }
#hl-lead-recovery .lr-name { margin: 0; font-size: 15px; font-weight: 800; line-height: 1.35; color: var(--ink); overflow-wrap: anywhere; }
#hl-lead-recovery .lr-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin: 4px 0 0; font-size: var(--hl-fs-label, 12px); font-weight: 600; line-height: 1.5; color: var(--mut); }
#hl-lead-recovery .lr-meta-i { overflow-wrap: anywhere; }
#hl-lead-recovery .lr-dot { color: var(--faint); }
#hl-lead-recovery .lr-side { flex: none; text-align: right; }
#hl-lead-recovery .lr-wait { font-size: 18px; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
#hl-lead-recovery .lr-wait-l { font-size: var(--hl-fs-micro, 11px); font-weight: 700; color: var(--mut); }
#hl-lead-recovery .lr-why { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
#hl-lead-recovery .lr-ask { margin: 10px 0 0; font-size: var(--hl-fs-body, 13px); line-height: 1.55; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
#hl-lead-recovery .lr-seen { margin: 8px 0 0; font-size: var(--hl-fs-micro, 11px); line-height: 1.5; font-weight: 600; color: var(--mut); }
#hl-lead-recovery .lr-toggle { margin-top: 10px; }
#hl-lead-recovery .lr-draft { margin: 10px 0 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--hl-r, 9px); background: var(--canvas); }
#hl-lead-recovery .lr-draft-head { margin: 0 0 6px; }
#hl-lead-recovery .lr-draft-l { font-size: var(--hl-fs-label, 12px); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--mut); }
#hl-lead-recovery .lr-draft-subject { margin: 0 0 6px; font-size: var(--hl-fs-body, 13px); font-weight: 800; color: var(--ink); overflow-wrap: anywhere; }
#hl-lead-recovery .lr-draft-body, #hl-lead-recovery .lr-draft-note { margin: 0; font-size: var(--hl-fs-body, 13px); line-height: 1.6; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; white-space: pre-line; }
#hl-lead-recovery .lr-row-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
#hl-lead-recovery .lr-more { display: flex; margin: 14px auto 0; }
#hl-lead-recovery .lr-btn:focus-visible { outline: 2px solid var(--hl-primary, #2f5d8a); outline-offset: 2px; }
#hl-lead-recovery .lr-btn:disabled { opacity: .55; cursor: not-allowed; }

#hl-lead-recovery .lr-err { margin: 0 0 12px; font-size: var(--hl-fs-label, 12px); font-weight: 700; line-height: 1.45; color: var(--red); }
#hl-lead-recovery .lr-row .lr-err { margin: 10px 0 0; }
#hl-lead-recovery .lr-banner { margin: 16px 0 0; padding: 10px 12px; border-radius: var(--hl-r, 9px); background: var(--red-bg); }

/* States */
#hl-lead-recovery .lr-state { padding: 22px 4px 6px; }
#hl-lead-recovery .lr-state b { display: block; font-size: 14px; font-weight: 800; color: var(--ink); }
#hl-lead-recovery .lr-state span { display: block; margin-top: 4px; font-size: var(--hl-fs-body, 13px); line-height: 1.5; font-weight: 500; color: var(--mut); }
#hl-lead-recovery .lr-state .lr-btn { margin-top: 12px; }
#hl-lead-recovery .lr-state-big { padding: 28px 22px; border: 1px solid var(--line); border-radius: var(--hl-r-lg, 14px); background: var(--card); max-width: 560px; }
#hl-lead-recovery .lr-state-warn { margin: 16px 0; padding: 14px 16px; border: 1px solid var(--red); border-radius: var(--hl-r-lg, 14px); background: var(--red-bg); max-width: 640px; }
#hl-lead-recovery .lr-state-warn b { color: var(--red); }
#hl-lead-recovery .lr-state-warn span { color: var(--ink); }
#hl-lead-recovery .lr-state-details { margin-top: 10px; }
#hl-lead-recovery .lr-state-details summary { display: inline-flex; align-items: center; min-height: 32px; cursor: pointer; font-size: var(--hl-fs-label, 12px); font-weight: 800; color: var(--ink); text-decoration: underline; }
#hl-lead-recovery .lr-state-warn .lr-state-said { display: block; margin-top: 6px; padding: 8px 10px; border-radius: var(--hl-r, 9px); background: var(--card); border: 1px solid var(--line); font-family: var(--mono, ui-monospace, monospace); font-size: var(--hl-fs-label, 12px); font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
#hl-lead-recovery .lr-empty { padding: 32px 24px; border: 1px dashed var(--line); border-radius: var(--hl-r-lg, 14px); background: var(--card); max-width: 640px; }
#hl-lead-recovery .lr-empty-t { margin: 0; font-size: 17px; font-weight: 800; color: var(--ink); }
#hl-lead-recovery .lr-empty-p { margin: 8px 0 0; font-size: var(--hl-fs-body, 13px); line-height: 1.6; font-weight: 500; color: var(--mut); max-width: 52ch; }
#hl-lead-recovery .lr-progress { margin: 0 0 14px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--hl-r-lg, 14px); background: var(--card); }
#hl-lead-recovery .lr-progress b { display: block; font-size: var(--hl-fs-body, 13px); font-weight: 800; color: var(--ink); }
#hl-lead-recovery .lr-progress span { display: block; margin-top: 2px; font-size: var(--hl-fs-label, 12px); line-height: 1.5; font-weight: 500; color: var(--mut); }
#hl-lead-recovery .lr-skel-wrap { display: grid; gap: 12px; }
#hl-lead-recovery .lr-skel { height: 96px; border-radius: var(--hl-r-lg, 14px); background: var(--card); border: 1px solid var(--line); }

@media (max-width: 960px) {
  #hl-lead-recovery .lr-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  #hl-lead-recovery .lr-title { font-size: 22px; }
  #hl-lead-recovery .lr-head-acts { width: 100%; }
  #hl-lead-recovery .lr-head-acts .lr-btn { flex: 1 1 0; }
  #hl-lead-recovery .lr-stat { padding: 14px; }
  #hl-lead-recovery .lr-stat-n { font-size: 22px; }
  #hl-lead-recovery .lr-row { padding: 14px; }
  #hl-lead-recovery .lr-row-acts .lr-btn { flex: 1 1 calc(50% - 8px); }
  #hl-lead-recovery .lr-row-acts .hl-btn-primary { flex-basis: 100%; }
  /* UA-046: finger-sized targets. Mark handled reads as a button, not a link. */
  #hl-lead-recovery .lr-btn { min-height: 44px; padding-left: 14px; padding-right: 14px; }
  #hl-lead-recovery .lr-row-acts .hl-btn-quiet { background: var(--card); border: 1px solid var(--line); color: var(--ink); }
  #hl-lead-recovery .lr-toggle { min-height: 44px; }
  #hl-lead-recovery .lr-tabs { gap: 8px; }
  #hl-lead-recovery .lr-tabs .lr-btn, #hl-lead-recovery .lr-chips .lr-btn { flex: 1 1 auto; justify-content: center; }
  #hl-lead-recovery .lr-notify-l input { width: 24px; height: 24px; }
  #hl-lead-recovery .lr-notify-l { min-height: 44px; }
  #hl-lead-recovery .lr-state-details summary { min-height: 44px; }
}
