/* EVO TrustGuard — page-marketplace.css
 *
 * Owned by:    marketplace.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), 125 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 BAR */
  .filter-bar { background: var(--white); border-bottom: 1px solid var(--border); padding: var(--space-3) var(--space-5); display: flex; align-items: center; gap: var(--space-2-5); overflow-x: auto; -webkit-overflow-scrolling: touch; position: sticky; top: calc(77px + env(safe-area-inset-top)); z-index: 90; }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-select { padding: var(--space-2) var(--space-3); border: 1.5px solid var(--border); border-radius: var(--radius-md); font-family: var(--font-sans); font-size: var(--text-md); color: var(--dark); background: var(--white); outline: none; cursor: pointer; white-space: nowrap; min-width: 0; flex-shrink: 0; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: var(--space-7); }
  .filter-select:focus { border-color: var(--red); }
  .filter-clear { padding: var(--space-2) var(--space-3); border: none; border-radius: var(--radius-md); background: none; font-family: var(--font-sans); font-size: var(--text-md); color: var(--red); font-weight: var(--weight-medium); cursor: pointer; white-space: nowrap; flex-shrink: 0; }
  .filter-clear:hover { background: var(--red-light); }

  .feed-count { font-size: var(--text-md); color: var(--light); font-weight: var(--weight-regular); white-space: nowrap; }

  /* LEAD CARDS */
  .feed { padding: var(--space-3) var(--space-4) var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
  .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; position: relative; box-shadow: 0 2px 8px rgba(0,0,0,0.10); overflow: hidden; }
  .lead-card:hover { border-color: var(--border-strong); box-shadow: 0 4px 12px rgba(0,0,0,0.12); }
  .lead-card:active { background: #fafaf8; }

  /* 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-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-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 */
  .card-footer { display: flex; flex-direction: column; gap: var(--space-1-5); padding-top: var(--space-2-5); border-top: 1px solid var(--border); }
  .card-footer-row { display: flex; justify-content: space-between; align-items: center; }
  .card-cost-standard { font-size: var(--text-md); font-weight: var(--weight-semibold); color: var(--status-active); }
  .card-buyers { display: flex; align-items: center; gap: var(--space-1-5); }
  .buyer-dots { display: flex; gap: 3px; }
  .buyer-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
  .buyer-dot.filled { background: var(--status-active); }
  .buyer-label { font-size: var(--text-sm); color: var(--light); font-weight: var(--weight-regular); }

  /* Pass Button */
  .card-pass { border-radius: 6px; border: 1.5px solid var(--border); background: var(--white); cursor: pointer; display: flex; align-items: center; gap: var(--space-1); padding: var(--space-1) var(--space-2-5); transition: border-color 0.15s, background 0.15s; flex-shrink: 0; margin-left: var(--space-2); }
  .card-pass:hover { border-color: var(--red); background: var(--red-light); }
  .card-pass svg { width: 10px; height: 10px; stroke: var(--light); stroke-width: 2; flex-shrink: 0; }
  .card-pass:hover svg { stroke: var(--red); }
  .card-pass-label { font-size: var(--text-xs); font-weight: var(--weight-medium); color: var(--light); font-family: var(--font-sans); }
  .card-pass:hover .card-pass-label { color: var(--red); }

  /* EMPTY STATE */
  .feed-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 20px; text-align: center; }
  .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); } }

  /* LOAD MORE */
  .load-more-wrap { padding: 0 var(--space-4) var(--space-8); display: flex; justify-content: center; }
  .load-more-btn { padding: var(--space-3) var(--space-7); border: 1px solid var(--border); border-radius: 10px; background: var(--white); font-family: var(--font-sans); font-size: var(--text-base); font-weight: var(--weight-medium); color: var(--dark); cursor: pointer; transition: border-color 0.15s, background 0.15s; }
  .load-more-btn:hover:not(:disabled) { border-color: var(--border-strong); background: #fafaf8; }
  .load-more-btn:disabled { cursor: default; opacity: 0.6; }

  /* RESPONSIVE — MOBILE */
  @media (max-width: 599px) {
    .filter-bar { padding: var(--space-2-5) var(--space-3); gap: var(--space-1-5); overflow-x: hidden; }
    .filter-select { font-size: var(--text-sm); padding: 7px 22px 7px 8px; flex-shrink: 1; min-width: 0; background-position: right 6px center; }
    .filter-clear { font-size: var(--text-sm); padding: 7px 8px; }
  }

  /* RESPONSIVE — DESKTOP */
  @media (min-width: 600px) {
    .feed { max-width: 640px; margin: 0 auto; width: 100%; }
    .filter-bar { justify-content: center; }
  }

  /* SKELETON LOADING */
  .skeleton-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-4); }
  .skeleton-line { background: linear-gradient(90deg, var(--border) 25%, #f0f0ee 50%, var(--border) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius-sm); }
  @keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
  .sk-w60 { width: 60%; height: 14px; margin-bottom: var(--space-2-5); }
  .sk-w80 { width: 80%; height: 18px; margin-bottom: var(--space-2-5); }
  .sk-w40 { width: 40%; height: 12px; margin-bottom: var(--space-2); }
  .sk-badges { display: flex; gap: var(--space-1-5); margin-bottom: var(--space-3); }
  .sk-badge { width: 80px; height: 22px; border-radius: var(--radius-sm); }
  .sk-footer { display: flex; justify-content: space-between; padding-top: var(--space-2-5); border-top: 1px solid var(--border); }
  .sk-cost { width: 100px; height: 18px; border-radius: var(--radius-sm); }
  .sk-dots { width: 60px; height: 18px; border-radius: var(--radius-sm); }

  /* 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; }

/* ── 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; }
