/* =============================================================================
   matching-section.css — Wave-4 Discovery & Matching shared component layer
   (DEV-1). See DOCS/INDIANMARRIAGE/2026-06-29-WAVE4-DISCOVERY-MATCHING-DESIGN.md
   §3 (layout system) / §9 (component library) / §11 (DEV-1).

   ADDITIVE + TOKEN-ONLY. Every colour resolves through tokens.css custom
   properties — NEVER a local :root, NEVER `var(--color-accent)` (that token
   does NOT exist in tokens.css and would yield a broken unresolved colour).
   Brand accent pink = var(--love-pink) #ec4899; brand primary gold =
   var(--color-primary)/var(--marriage-gold) #d4af37; text/icon/1px gold on
   light surfaces uses var(--marriage-gold-700) via the a11y.css .gold-* tokens.

   Load order: tokens.css -> main.css -> a11y.css -> pagination.css ->
   matching-section.css. This file styles the canonical profile card, the
   compatibility ring, the filter command-bar + slide-over, the Saved /
   "why this match" drawers, the premium-gate lock affordance, and the shared
   skeleton loading state. It is section-cached (?v=) so the discovery /
   matches / recs / saved surfaces share one payload after first load.

   DUAL-MODE: in-page rails/drawers are position:static under
   html.page-mode-embedded so nothing floats over content inside the dashboard
   iframe; sticky bands pin to top:var(--app-header-offset) via .page-sticky-top
   (main.css) — this file never hardcodes top-20 / padding-top:3.75rem.
   ============================================================================= */

/* -----------------------------------------------------------------------------
   1. Canonical profile card (donor: browse-profiles.buildProfileCardElement).
   ----------------------------------------------------------------------------- */
.mx-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--color-bg-primary, #fff);
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: var(--radius-xl, 0.75rem);
  overflow: hidden;
  transition: box-shadow var(--motion-base, 250ms) var(--ease-standard, ease),
              transform var(--motion-fast, 150ms) var(--ease-standard, ease);
}
.mx-card:hover {
  box-shadow: var(--shadow-4, 0 10px 15px -3px rgba(0, 0, 0, 0.1));
  transform: translateY(-0.125rem);
}

.mx-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;       /* square photo per §3 */
  background: var(--color-bg-secondary, #f8fafc);
  overflow: hidden;
}
.mx-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Verified / premium trust badge (top-left over the photo). */
.mx-card__badge {
  position: absolute;
  top: var(--space-sm, 0.5rem);
  left: var(--space-sm, 0.5rem);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.1875rem 0.5rem;
  border-radius: var(--radius-full, 9999px);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  background: var(--love-pink, #ec4899);
  box-shadow: var(--shadow-1, 0 1px 2px 0 rgba(0, 0, 0, 0.05));
}
.mx-card__badge--verified { background: var(--color-success, #16a34a); }
.mx-card__badge--premium {
  background: linear-gradient(135deg, var(--love-pink, #ec4899), var(--marriage-gold, #d4af37));
}

/* Online / recently-joined chip (top-right over the photo). */
.mx-card__chip {
  position: absolute;
  top: var(--space-sm, 0.5rem);
  right: var(--space-sm, 0.5rem);
  display: inline-flex;
  align-items: center;
  gap: 0.3125rem;
  padding: 0.1875rem 0.5rem;
  border-radius: var(--radius-full, 9999px);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1;
  color: var(--text-primary, #1f2937);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-1, 0 1px 2px 0 rgba(0, 0, 0, 0.05));
}
.mx-card__chip-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: var(--radius-full, 9999px);
  background: var(--color-success, #16a34a);
}

/* -----------------------------------------------------------------------------
   2. Compatibility ring (donor: my-matches-hub conic-gradient). The fill sweep
      is set inline (per-profile score) via a CSS custom property --mx-ring-deg;
      colours come from tokens only: love-pink -> marriage-gold.
   ----------------------------------------------------------------------------- */
.mx-card__ring {
  position: absolute;
  bottom: var(--space-sm, 0.5rem);
  right: var(--space-sm, 0.5rem);
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-full, 9999px);
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    conic-gradient(from 0deg,
      var(--love-pink, #ec4899) 0deg,
      var(--marriage-gold, #d4af37) var(--mx-ring-deg, 252deg),
      rgba(148, 163, 184, 0.35) var(--mx-ring-deg, 252deg),
      rgba(148, 163, 184, 0.35) 360deg);
  box-shadow: var(--shadow-2, 0 1px 3px 0 rgba(0, 0, 0, 0.1));
}
.mx-card__ring-inner {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-full, 9999px);
  background: var(--color-bg-primary, #fff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary, #1f2937);
}

/* -----------------------------------------------------------------------------
   3. Card body — name / age-location / caste-community-mother-tongue line.
   ----------------------------------------------------------------------------- */
.mx-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm, 0.5rem);
  padding: var(--space-md, 1rem);
  flex: 1 1 auto;
}
.mx-card__name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary, #1f2937);
  line-height: 1.3;
}
.mx-card__sub {
  font-size: 0.8125rem;
  color: var(--text-secondary, #6b7280);
}
.mx-card__facts {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8125rem;
  color: var(--text-secondary, #6b7280);
}
.mx-card__fact {
  display: flex;
  align-items: center;
  gap: 0.4375rem;
}
.mx-card__fact i { width: 1rem; text-align: center; }

/* Action slot — conditional Send Interest | Remove | Withdraw | Skip etc. */
.mx-card__actions {
  display: flex;
  gap: var(--space-sm, 0.5rem);
  margin-top: auto;
}
.mx-btn {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-lg, 0.5rem);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background var(--motion-fast, 150ms) var(--ease-standard, ease),
              color var(--motion-fast, 150ms) var(--ease-standard, ease);
}
.mx-btn--primary { background: var(--love-pink, #ec4899); color: #fff; }
.mx-btn--primary:hover { background: var(--love-pink-700, #be185d); }
.mx-btn--ghost {
  background: var(--color-bg-secondary, #f3f4f6);
  color: var(--text-primary, #1f2937);
  border-color: var(--border-color, #e5e7eb);
}
.mx-btn--ghost:hover { background: var(--border-color, #e5e7eb); }
.mx-btn--danger { background: transparent; color: var(--color-error, #dc2626); border-color: currentColor; }
.mx-btn--danger:hover { background: rgba(220, 38, 38, 0.08); }
.mx-btn--icon { flex: 0 0 auto; padding: 0.5rem; }

/* -----------------------------------------------------------------------------
   4. Card grid + skeleton loading state (§3a — replaces the deleted fake
      "AI analyzing" overlay; NO synthetic delay).
   ----------------------------------------------------------------------------- */
.mx-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md, 1rem);
}
@media (min-width: 768px)  { .mx-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .mx-grid { grid-template-columns: repeat(3, 1fr); } }

.mx-skeleton { pointer-events: none; }
.mx-skeleton .mx-card__media,
.mx-skel-line {
  background: linear-gradient(90deg,
    var(--color-bg-secondary, #f1f5f9) 25%,
    var(--border-color, #e5e7eb) 37%,
    var(--color-bg-secondary, #f1f5f9) 63%);
  background-size: 400% 100%;
  animation: mx-shimmer 1.4s var(--ease-standard, ease) infinite;
}
.mx-skel-line { height: 0.75rem; border-radius: var(--radius-sm, 0.125rem); }
.mx-skel-line--lg { height: 1rem; width: 60%; }
.mx-skel-line--md { width: 80%; }
.mx-skel-line--sm { width: 45%; }
@keyframes mx-shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) {
  .mx-skeleton .mx-card__media,
  .mx-skel-line { animation-duration: 0.001ms !important; }
}

/* -----------------------------------------------------------------------------
   5. Empty / error inline rows (§3a). Honest, not a blank fold.
   ----------------------------------------------------------------------------- */
.mx-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm, 0.5rem);
  text-align: center;
  padding: var(--space-2xl, 3rem) var(--space-md, 1rem);
  color: var(--text-secondary, #6b7280);
}
.mx-state__icon { font-size: 2rem; color: var(--marriage-gold-700, #b8860b); }
.mx-state__title { font-size: 1rem; font-weight: 600; color: var(--text-primary, #1f2937); }
.mx-state__actions { display: flex; gap: var(--space-sm, 0.5rem); flex-wrap: wrap; justify-content: center; margin-top: var(--space-sm, 0.5rem); }
.mx-state--error .mx-state__icon { color: var(--color-error, #dc2626); }

/* -----------------------------------------------------------------------------
   6. Command-filter bar + quick-template chips (§3 / §5). Pins via the shared
      .page-sticky-top helper (main.css) — set on the element in markup.
   ----------------------------------------------------------------------------- */
.mx-filterbar {
  display: flex;
  align-items: center;
  gap: var(--space-sm, 0.5rem);
  flex-wrap: wrap;
  padding: var(--space-sm, 0.5rem) var(--space-md, 1rem);
  background: var(--color-bg-primary, #fff);
  border-bottom: 1px solid var(--border-color, #e5e7eb);
}
.mx-chiprow {
  display: flex;
  gap: 0.375rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
}
.mx-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  white-space: nowrap;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-full, 9999px);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-primary, #1f2937);
  background: var(--color-bg-secondary, #f3f4f6);
  border: 1px solid var(--border-color, #e5e7eb);
  transition: background var(--motion-fast, 150ms) var(--ease-standard, ease);
}
.mx-chip:hover { background: var(--border-color, #e5e7eb); }
.mx-chip[aria-pressed="true"],
.mx-chip--active {
  background: var(--love-pink, #ec4899);
  border-color: var(--love-pink, #ec4899);
  color: #fff;
}
/* Active-filter token chip (derived from state) with a remove affordance. */
.mx-token {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.5rem 0.25rem 0.625rem;
  border-radius: var(--radius-full, 9999px);
  font-size: 0.75rem;
  background: var(--love-pink-100, #fce7f3);
  color: var(--love-pink-700, #be185d);
  border: 1px solid var(--love-pink-300, #f9a8d4);
}
.mx-token__x { cursor: pointer; line-height: 1; opacity: 0.8; }
.mx-token__x:hover { opacity: 1; }
.mx-tokens { display: flex; flex-wrap: wrap; gap: 0.375rem; }

.mx-filterbtn {
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  padding: 0.4375rem 0.875rem;
  border-radius: var(--radius-lg, 0.5rem);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--marriage-gold-700, #b8860b);
  background: var(--color-bg-primary, #fff);
  border: 1px solid var(--marriage-gold-700, #b8860b);
}
.mx-filterbtn:hover { background: var(--marriage-gold-100, #fef3c7); }

/* -----------------------------------------------------------------------------
   7. Slide-over / drawer shared dialog shell (filters, Saved, why-this-match).
      role=dialog aria-modal — a11y wiring lives in the JS scaffold.
   ----------------------------------------------------------------------------- */
.mx-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: var(--z-modal-backdrop, 1040);
  opacity: 0;
  transition: opacity var(--motion-base, 250ms) var(--ease-standard, ease);
}
.mx-drawer-backdrop.is-open { opacity: 1; }

.mx-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(28rem, 92vw);
  max-width: 100%;
  display: flex;
  flex-direction: column;
  background: var(--color-bg-primary, #fff);
  box-shadow: var(--shadow-5, 0 25px 50px -12px rgba(0, 0, 0, 0.25));
  z-index: var(--z-modal, 1050);
  transform: translateX(100%);
  transition: transform var(--motion-base, 250ms) var(--ease-decelerate, ease);
}
.mx-drawer.is-open { transform: translateX(0); }
.mx-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm, 0.5rem);
  padding: var(--space-md, 1rem);
  border-bottom: 1px solid var(--border-color, #e5e7eb);
}
.mx-drawer__title { font-size: 1.0625rem; font-weight: 600; color: var(--text-primary, #1f2937); }
.mx-drawer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-md, 0.375rem);
  cursor: pointer;
  background: transparent;
  border: none;
  color: var(--text-secondary, #6b7280);
}
.mx-drawer__close:hover { background: var(--color-bg-secondary, #f3f4f6); }
.mx-drawer__body { flex: 1 1 auto; overflow-y: auto; padding: var(--space-md, 1rem); }
.mx-drawer__foot {
  display: flex;
  gap: var(--space-sm, 0.5rem);
  padding: var(--space-md, 1rem);
  border-top: 1px solid var(--border-color, #e5e7eb);
}

/* Progressive-disclosure group inside the filter slide-over. */
.mx-group { border-bottom: 1px solid var(--border-color, #e5e7eb); margin: 0; padding: 0; border-left: 0; border-right: 0; border-top: 0; }
.mx-group__legend {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm, 0.5rem) 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary, #1f2937);
  cursor: pointer;
  background: transparent;
  border: none;
}
.mx-group__legend i { transition: transform var(--motion-fast, 150ms) var(--ease-standard, ease); }
.mx-group[aria-expanded="false"] .mx-group__content { display: none; }
.mx-group[aria-expanded="true"] .mx-group__legend i { transform: rotate(180deg); }
.mx-group__content { display: flex; flex-direction: column; gap: var(--space-sm, 0.5rem); padding-bottom: var(--space-md, 1rem); }

/* "Why this match" factor bars (degrades gracefully per §3a). */
.mx-factor { display: flex; flex-direction: column; gap: 0.25rem; }
.mx-factor__label { display: flex; justify-content: space-between; font-size: 0.8125rem; color: var(--text-secondary, #6b7280); }
.mx-factor__track { height: 0.5rem; border-radius: var(--radius-full, 9999px); background: var(--color-bg-secondary, #f1f5f9); overflow: hidden; }
.mx-factor__fill { height: 100%; border-radius: var(--radius-full, 9999px); background: linear-gradient(90deg, var(--love-pink, #ec4899), var(--marriage-gold, #d4af37)); }

/* DUAL-MODE: under the dashboard iframe, do NOT float drawers over content. */
html.page-mode-embedded .mx-drawer-backdrop { position: static; background: transparent; }
html.page-mode-embedded .mx-drawer {
  position: static;
  width: 100%;
  height: auto;
  transform: none;
  box-shadow: none;
  border-top: 1px solid var(--border-color, #e5e7eb);
}

/* -----------------------------------------------------------------------------
   7b. Segmented control (Matches | Mutual | New | Interests). DEV-3 wires the
       role=tablist / role=tab a11y + arrow-key nav (§9a); this is the shared
       visual hook so the control looks the same across surfaces.
   ----------------------------------------------------------------------------- */
.mx-segmented {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: var(--radius-lg, 0.5rem);
  background: var(--color-bg-secondary, #f3f4f6);
  border: 1px solid var(--border-color, #e5e7eb);
}
.mx-segmented__tab {
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-md, 0.375rem);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-secondary, #6b7280);
  background: transparent;
  border: none;
  transition: background var(--motion-fast, 150ms) var(--ease-standard, ease),
              color var(--motion-fast, 150ms) var(--ease-standard, ease);
}
.mx-segmented__tab[aria-selected="true"] {
  background: var(--color-bg-primary, #fff);
  color: var(--love-pink-700, #be185d);
  box-shadow: var(--shadow-1, 0 1px 2px 0 rgba(0, 0, 0, 0.05));
}

/* -----------------------------------------------------------------------------
   8. Premium-gate — NET-NEW presentational lock chip + upsell overlay (§10).
      NO enforcement (Wave 7). Purely cosmetic; backend grants are the gate.
   ----------------------------------------------------------------------------- */
.premium-gate { position: relative; }
.premium-gate__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-full, 9999px);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--marriage-gold-900, #5c4004);
  background: var(--marriage-gold-100, #fef3c7);
  border: 1px solid var(--marriage-gold-700, #b8860b);
}
.premium-gate__chip i { color: var(--marriage-gold-700, #b8860b); }
/* Upsell overlay over a gated block (visually honest upsell, not a hard block). */
.premium-gate--locked > .premium-gate__overlay { display: flex; }
.premium-gate__overlay {
  display: none;
  position: absolute;
  inset: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm, 0.5rem);
  text-align: center;
  padding: var(--space-md, 1rem);
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(2px);
  z-index: 2;
}
.premium-gate__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.4375rem 0.875rem;
  border-radius: var(--radius-lg, 0.5rem);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
  border: none;
  background: linear-gradient(135deg, var(--love-pink, #ec4899), var(--marriage-gold, #d4af37));
}

/* -----------------------------------------------------------------------------
   9. Rails (Matches Home, md+). Mobile collapses to a vertical stack (§6a).
   ----------------------------------------------------------------------------- */
.mx-rail { display: flex; flex-direction: column; gap: var(--space-sm, 0.5rem); }
.mx-rail__head { display: flex; align-items: center; justify-content: space-between; }
.mx-rail__title { font-size: 1rem; font-weight: 600; color: var(--text-primary, #1f2937); }
.mx-rail__track { display: grid; grid-template-columns: 1fr; gap: var(--space-md, 1rem); }
@media (min-width: 768px) {
  .mx-rail__track {
    grid-auto-flow: column;
    grid-auto-columns: minmax(13rem, 1fr);
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  .mx-rail__track > * { scroll-snap-align: start; }
}

html.page-mode-embedded .mx-rail__track { overflow-x: auto; }

/* -----------------------------------------------------------------------------
   10. Saved surface (DEV-4). One dense real-data stat strip (getMatchStats),
   a notes editor inside the Saved drawer, and an optional "pipeline" view.
   Token-only; never a local :root, never var(--color-accent).
   ----------------------------------------------------------------------------- */
.mx-statstrip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md, 1rem);
  padding: var(--space-md, 1rem);
  margin-bottom: var(--space-md, 1rem);
  background: var(--color-bg-primary, #fff);
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: var(--radius-xl, 0.75rem);
}
.mx-statstrip__item { display: flex; flex-direction: column; gap: 0.125rem; min-width: 6rem; }
.mx-statstrip__num { font-size: 1.25rem; font-weight: 700; color: var(--marriage-gold-700, #b8860b); line-height: 1.1; }
.mx-statstrip__label { font-size: 0.75rem; color: var(--text-secondary, #6b7280); }

/* Saved toolbar (count + sort + view toggle). */
.mx-savedbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm, 0.5rem);
  flex-wrap: wrap;
  margin-bottom: var(--space-md, 1rem);
}
.mx-savedbar__count { font-size: 0.875rem; color: var(--text-secondary, #6b7280); }
.mx-savedbar__count strong { color: var(--text-primary, #1f2937); }
.mx-savedbar__controls { display: flex; gap: var(--space-sm, 0.5rem); align-items: center; flex-wrap: wrap; }
.mx-savedbar select {
  padding: 0.4375rem 0.625rem;
  border-radius: var(--radius-md, 0.375rem);
  border: 1px solid var(--border-color, #e5e7eb);
  background: var(--color-bg-primary, #fff);
  color: var(--text-primary, #1f2937);
  font-size: 0.8125rem;
}

/* Notes editor (Saved drawer — rebinds to ProfileAPI.updateShortlistNotes). */
.mx-notes { display: flex; flex-direction: column; gap: var(--space-sm, 0.5rem); }
.mx-notes__field {
  width: 100%;
  min-height: 6rem;
  resize: vertical;
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius-md, 0.375rem);
  border: 1px solid var(--border-color, #e5e7eb);
  background: var(--color-bg-primary, #fff);
  color: var(--text-primary, #1f2937);
  font: inherit;
  font-size: 0.875rem;
}
.mx-notes__row { display: flex; justify-content: flex-end; gap: var(--space-sm, 0.5rem); }
.mx-drawer__profile { display: flex; align-items: center; gap: 0.75rem; margin-bottom: var(--space-md, 1rem); }
.mx-drawer__profile img { width: 3rem; height: 3rem; border-radius: 9999px; object-fit: cover; }
.mx-drawer__sectiontitle { font-size: 0.8125rem; font-weight: 600; color: var(--text-primary, #1f2937); margin: var(--space-md, 1rem) 0 0.375rem; }

/* Optional pipeline view (?view=pipeline) — saved-profiles-workflow ideas folded
   in as status lanes. The notes editor rebinds to updateShortlistNotes. */
.mx-pipeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md, 1rem);
}
@media (min-width: 768px) {
  .mx-pipeline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
  .mx-pipeline { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.mx-lane {
  background: var(--color-bg-secondary, #f3f4f6);
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: var(--radius-lg, 0.5rem);
  padding: var(--space-sm, 0.5rem);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm, 0.5rem);
}
.mx-lane__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary, #1f2937);
  padding: 0.25rem 0.375rem;
}
.mx-lane__count {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--marriage-gold-700, #b8860b);
  background: var(--color-bg-primary, #fff);
  border-radius: 9999px;
  padding: 0.0625rem 0.5rem;
}
.mx-lane__body { display: flex; flex-direction: column; gap: var(--space-sm, 0.5rem); }

/* Page-local toast for the Saved surface (token-only, mirrors discovery-stream). */
.mx-toast {
  position: fixed;
  bottom: 1.25rem; left: 50%;
  transform: translateX(-50%) translateY(1rem);
  opacity: 0;
  padding: 0.625rem 1rem;
  border-radius: var(--radius-lg, 0.5rem);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-4, 0 10px 15px -3px rgba(0,0,0,0.1));
  z-index: var(--z-toast, 1080);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  background: var(--text-primary, #1f2937);
}
.mx-toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }
.mx-toast--success { background: var(--color-success, #16a34a); }
.mx-toast--error { background: var(--color-error, #dc2626); }
.mx-toast--info { background: var(--marriage-gold-700, #b8860b); }
@media (prefers-reduced-motion: reduce) { .mx-toast { transition: none; } }

/* A saved card's per-card Notes affordance lives in its action slot; the
   compatibility-ring + Verified badge already come from the shared card. */
