/* EVO TrustGuard — page-my-leads.css
 *
 * Owned by:    my-leads.html
 * Category:    portal feature page
 * Cascade:     tokens → base → utilities → components → portal-chrome → shared → shared-themes → page
 * Edit policy: rules unique to this page only. Anything used by 5+
 *              pages should be promoted to /css/components.css or
 *              /css/portal-chrome.css with a /css/AGENTS.md update.
 *
 * Extracted:   2 <style> block(s), 139 lines.
 * Method:      verbatim move — no token substitution applied yet.
 *              See C56 audit Section 10.A for the deferred token
 *              normalization sprint plan.
 */

/* ── extracted <style> block 1 of 2 ── */

  body { font-family: var(--font-sans); background: var(--bg); color: var(--dark); line-height: var(--leading-loose); min-height: 100vh; display: flex; flex-direction: column; padding-bottom: var(--space-20); }

  /* NAV */
  .dash-nav { background: var(--white); border-bottom: 1px solid var(--border); padding: calc(14px + env(safe-area-inset-top)) 20px 14px; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: var(--z-nav); }
  .dash-nav-brand { text-decoration: none; display: flex; align-items: center; }
  .dash-nav-brand img { display: block; height: 48px; }
  .dash-nav-right { display: flex; align-items: center; gap: var(--space-4); }
  .dash-nav-link { font-size: var(--text-md); color: var(--light); text-decoration: none; font-weight: var(--weight-medium); cursor: pointer; background: none; border: none; font-family: var(--font-sans); transition: color 0.15s; }
  .dash-nav-link:hover { color: var(--dark); }

  /* FILTER ROW — sticky row with filter dropdown chip (left) + Create Lead pill (right) */
  .filter-row { background: var(--white); border-bottom: 1px solid var(--border); padding: var(--space-3) var(--space-5); display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); position: sticky; top: calc(77px + env(safe-area-inset-top)); z-index: 90; }

  .filter-dropdown { position: relative; }
  .filter-chip { display: inline-flex; align-items: center; gap: var(--space-1-5); padding: var(--space-2) var(--space-3-5); border: 1.5px solid var(--border); border-radius: 6px; background: transparent; font-family: var(--font-sans); font-size: var(--text-md); font-weight: var(--weight-medium); color: var(--mid); cursor: pointer; white-space: nowrap; transition: border-color 0.15s, color 0.15s, background 0.15s; }
  .filter-chip:hover { border-color: var(--mid); color: var(--dark); }
  .filter-chip.open { border-color: var(--red); color: var(--red); background: rgba(229, 52, 46, 0.15); }
  .filter-chip-icon { width: 14px; height: 14px; flex-shrink: 0; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
  .filter-chip-label { line-height: 1; }
  .filter-chip-arrow { width: 12px; height: 12px; flex-shrink: 0; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.15s; }
  .filter-chip.open .filter-chip-arrow { transform: rotate(180deg); }

  .filter-menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 200px; background: var(--white); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 6px 20px rgba(0,0,0,0.12); padding: var(--space-1-5); display: none; z-index: 95; }
  .filter-menu.open { display: block; }
  .filter-menu-item { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); width: 100%; padding: var(--space-2-5) var(--space-3); background: none; border: none; font-family: var(--font-sans); font-size: var(--text-md); font-weight: var(--weight-medium); color: var(--dark); cursor: pointer; border-radius: 6px; text-align: left; box-sizing: border-box; }
  .filter-menu-item:hover { background: var(--surface-light); }
  .filter-menu-item.active { color: var(--red); }
  .filter-menu-check { width: 14px; height: 14px; stroke: var(--red); stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; display: none; flex-shrink: 0; }
  .filter-menu-item.active .filter-menu-check { display: block; }
  .filter-menu-divider { height: 1px; background: var(--border); margin: var(--space-1-5) var(--space-2); }

  .create-lead-pill { display: inline-flex; align-items: center; padding: var(--space-2) var(--space-3-5); border-radius: var(--radius-md); background: var(--red); color: var(--white); font-family: var(--font-sans); font-size: var(--text-md); font-weight: var(--weight-semibold); cursor: pointer; text-decoration: none; white-space: nowrap; transition: background 0.15s; border: 1.5px solid var(--red); box-sizing: border-box; }
  .create-lead-pill:hover { background: var(--red-hover); border-color: var(--red-hover); }

  /* Pencil edit icon on direct-lead cards — sits inline with the service label */
  .card-edit-btn { background: none; border: none; padding: var(--space-1); margin: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--text-faint); transition: color 0.15s; flex-shrink: 0; }
  .card-edit-btn:hover { color: var(--red); }
  .card-edit-btn svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2; fill: none; display: block; }

  /* Long-press delete confirm modal */
  .lp-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 300; display: none; align-items: center; justify-content: center; padding: var(--space-5); }
  .lp-overlay.open { display: flex; }
  .lp-modal { background: var(--white); border-radius: var(--radius-lg); padding: var(--space-5); max-width: 320px; width: 100%; text-align: center; }
  .lp-modal h3 { font-family: var(--font-serif); font-size: var(--text-xl); color: var(--dark); margin-bottom: var(--space-1-5); }
  .lp-modal p { font-size: var(--text-md); color: var(--light); margin-bottom: var(--space-4); }
  .lp-modal-btns { display: flex; flex-direction: column; gap: var(--space-2); }
  .lp-btn-delete { padding: var(--space-3); border-radius: 100px; background: var(--red); color: var(--white); border: none; font-family: var(--font-sans); font-size: var(--text-base); font-weight: var(--weight-semibold); cursor: pointer; }
  .lp-btn-delete:hover { background: var(--red-hover); }
  .lp-btn-delete:disabled { opacity: 0.6; cursor: not-allowed; }
  .lp-btn-cancel { padding: var(--space-3); border-radius: 10px; background: var(--white); color: var(--dark); border: 1.5px solid var(--border); font-family: var(--font-sans); font-size: var(--text-base); font-weight: var(--weight-medium); cursor: pointer; }
  .lp-btn-cancel:hover { border-color: var(--dark); }

  /* PAGE HEADER */
  .page-header { padding: var(--space-4) var(--space-5) 0; }
  .page-count { font-size: var(--text-md); color: var(--light); font-weight: var(--weight-regular); }

  /* FEED */
  .feed { padding: var(--space-3) var(--space-4) var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }

  /* LEAD CARD */
  .lead-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 0; cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s; text-decoration: none; display: block; box-shadow: 0 2px 8px rgba(0,0,0,0.10); overflow: hidden; -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; }
  /* Suppress the click/tap focus ring only (:focus fires on mouse/touch).
   * Leave :focus-visible alone so keyboard Tab navigation still shows a
   * visible ring — WCAG 2.4.7 (Focus Visible) parity. */
  .lead-card:focus:not(:focus-visible) { outline: none; }
  /* Scope :hover to true-hover devices so the highlight does not stick on
   * touch screens after a tap (prior bug: lifting finger after scroll left
   * a white/gray border highlight until the next tap). */
  @media (hover: hover) {
    .lead-card:hover { border-color: var(--border-strong); box-shadow: 0 4px 12px rgba(0,0,0,0.12); }
  }

  /* Card Top Bar — Service Type + Situation */
  .card-topbar { display: flex; justify-content: space-between; align-items: center; padding: var(--space-2-5) var(--space-4); background: var(--surface-light); border-bottom: 1px solid var(--status-inactive-wash); }
  .card-topbar-left { display: flex; align-items: center; gap: var(--space-2); min-width: 0; }
  .card-favorite-btn { background: none; border: none; padding: 0; margin: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; flex-shrink: 0; }
  .card-favorite-btn svg { width: 18px; height: 18px; display: block; transition: transform 0.15s; }
  .card-favorite-btn:hover svg { transform: scale(1.1); }
  .card-service-label { font-size: var(--text-md); font-weight: var(--weight-bold); color: var(--dark); text-transform: uppercase; }
  .card-situation-pill { font-size: var(--text-xs); text-transform: uppercase; color: var(--text-muted); background: var(--surface-light); border: 1px solid var(--border-strong); border-radius: 6px; padding: var(--space-0-5) var(--space-2-5); font-weight: var(--weight-medium); }

  /* Card Body */
  .card-body { padding: var(--space-4); }

  /* Card Header — Avatar + Name + Location + Time */
  .card-header { display: flex; align-items: flex-start; gap: var(--space-3); margin-bottom: var(--space-2-5); }
  .card-avatar { width: 40px; height: 40px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: var(--text-input); font-weight: var(--weight-bold); color: var(--white); }
  .card-header-info { flex: 1; min-width: 0; }
  .card-name { font-size: var(--text-lg); font-weight: var(--weight-bold); color: var(--dark); line-height: var(--leading-snug); }
  .card-business { font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--text-muted); margin-top: 1px; line-height: var(--leading-snug); }
  .card-location { font-size: var(--text-sm); color: var(--text-faint); margin-top: 1px; }
  .card-time { font-size: var(--text-xs); color: var(--text-disabled); white-space: nowrap; flex-shrink: 0; margin-top: var(--space-0-5); }

  /* Card Badges */
  .card-badges { display: flex; flex-wrap: wrap; gap: var(--space-1-5); margin-bottom: var(--space-2-5); }
  .badge { display: inline-flex; align-items: center; gap: var(--space-1); font-size: var(--text-xs); font-weight: var(--weight-semibold); padding: 3px 8px 3px 6px; border-radius: 5px; letter-spacing: 0.1px; background: #5a5a5a; color: var(--white); border-left: 6px solid transparent; }
  .badge-armed { border-left-color: var(--amber); }
  .badge-multi { border-left-color: var(--status-pending-hover); }
  .badge-immediate { border-left-color: var(--status-active); }
  .badge-scope { border-left-color: var(--red); }
  .badge-intent { border-left-color: var(--purple); }

  /* Card Details */
  .card-details { display: flex; flex-wrap: wrap; gap: var(--space-1-5) var(--space-3); font-size: var(--text-sm); color: #777; margin-bottom: var(--space-3); }
  .card-detail { display: flex; align-items: center; gap: var(--space-1); }

  .card-footer { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); padding-top: var(--space-2-5); border-top: 1px solid var(--border); }
  .card-footer-activity { font-size: var(--text-sm); color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; min-width: 0; }
  .card-footer-pills { display: flex; align-items: center; gap: var(--space-1-5); flex-shrink: 0; }

  /* STATUS PILL */
  .status-pill { display: inline-block; font-size: var(--text-sm); font-weight: var(--weight-semibold); padding: var(--space-1) var(--space-3); border-radius: 6px; background: var(--border-light); color: var(--text-muted); border: none; }
  .status-new, .status-contacted, .status-proposal, .status-hired, .status-archived { background: var(--border-light); color: var(--text-muted); border: none; }

  /* EMPTY STATE */
  .feed-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 20px; text-align: center; display: none; }
  .feed-empty h2 { font-family: var(--font-serif); font-size: var(--text-3xl); color: var(--dark); margin-bottom: var(--space-2); }
  .feed-empty p { font-size: var(--text-base); color: var(--light); max-width: 320px; font-weight: var(--weight-light); }

  /* LOADING */
  .feed-loading { flex: 1; display: flex; align-items: center; justify-content: center; padding: 60px 20px; }
  .spinner { width: 32px; height: 32px; border: 3px solid var(--border); border-top-color: var(--red); border-radius: 50%; animation: spin 0.6s linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }

  /* BOTTOM NAV */
  .bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; height: calc(56px + env(safe-area-inset-bottom) / 2); padding-bottom: calc(env(safe-area-inset-bottom) / 2); background: var(--white); border-top: 1px solid var(--border); display: flex; z-index: var(--z-nav); }
  .bottom-nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-0-5); text-decoration: none; color: var(--light); min-height: 44px; transition: color 0.15s; }
  .bottom-nav-item:hover { color: var(--mid); }
  .bottom-nav-item.active { color: var(--red); }
  .bottom-nav-item svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.8; fill: none; }
  .bottom-nav-label { font-size: var(--text-xs); font-weight: var(--weight-semibold); font-family: var(--font-sans); }
  .clients-toast { position: fixed; bottom: calc(72px + env(safe-area-inset-bottom) / 2); left: 50%; transform: translateX(-50%); background: var(--dark); color: var(--white); padding: var(--space-2-5) var(--space-5); border-radius: var(--radius-md); font-size: var(--text-base); font-weight: var(--weight-semibold); font-family: var(--font-sans); opacity: 0; transition: opacity 0.2s; pointer-events: none; z-index: 200; }
  .clients-toast.show { opacity: 1; }

  @media (min-width: 600px) {
    .feed { max-width: 640px; margin: 0 auto; width: 100%; }
    .page-header { max-width: 640px; margin: 0 auto; width: 100%; }
  }

/* ── extracted <style> block 2 of 2 ── */

.nav-brand img, .dash-nav-brand img { height: 48px !important; width: auto !important; min-height: 48px !important; max-height: none !important; }
