/* ═══════════════════════════════════════════════════════════════════════
   MERKVEX — PRODUCTION DESIGN SYSTEM (component contracts)
   mx_ds.css · v1 · 2026-08-06

   Load AFTER mx_tokens.css (and before page-inline styles when possible).
   Shell auto-injects this file site-wide. Desktop + mobile polish.

   Contracts:
     1. Street-tech surfaces  — glass, neon accents, hero grid (desktop)
     2. Type hierarchy        — section titles, mono data, line-clamp
     3. Item cards            — desktop vertical grid / mobile 64px|1fr|auto
     4. Controls              — 44px touch floor, hover glow, press scale
     5. Feedback              — skeleton loaders + empty states

   Do not invent accent colors outside the equal-luma family
   (mint / teal / blue / violet / pink / coral / gold).
   ═══════════════════════════════════════════════════════════════════════ */

/* ── 0. SYSTEM TOKENS (glass · ambient · neon · type contracts) ─────────── */
:root {
  /* Ambient street-tech depths (pair with existing --mx-void/bg, never replace) */
  --mx-ambient-0: #0a0a0c;
  --mx-ambient-1: #121216;
  --mx-ambient-2: #16161c;

  /* Glass stack */
  --mx-glass-bg: rgba(18, 18, 22, 0.75);
  --mx-glass-bg-strong: rgba(12, 12, 16, 0.88);
  --mx-glass-bg-soft: rgba(18, 18, 22, 0.55);
  --mx-glass-line: rgba(255, 255, 255, 0.08);
  --mx-glass-line-hi: rgba(255, 255, 255, 0.12);
  --mx-glass-blur: 12px;
  --mx-glass-sat: 140%;

  /* Neon status (status / active / tier only — not full-page washes) */
  --mx-neon-mint: var(--mx-mint, #7cffb2);
  --mx-neon-cyan: var(--mx-teal, #38e5d6);
  --mx-neon-violet: var(--mx-violet, #a98bff);
  --mx-neon-glow-mint: 0 0 16px rgba(124, 255, 178, 0.35);
  --mx-neon-glow-cyan: 0 0 16px rgba(56, 229, 214, 0.32);
  --mx-neon-glow-violet: 0 0 16px rgba(169, 139, 255, 0.35);

  /* Type contracts */
  --mx-sec-track: 0.12em;
  --mx-sec-size: 11px;
  --mx-data-size: 13px;
  --mx-clamp-lines: 2;

  /* Item card geometry */
  --mx-item-thumb: 64px;
  --mx-item-gap: 12px;
  --mx-item-radius: 14px;
  --mx-press-scale: 0.97;

  /* Skeleton */
  --mx-skel-base: rgba(255, 255, 255, 0.04);
  --mx-skel-shine: rgba(255, 255, 255, 0.09);
}

/* Skin inherits ambient aliases for short-name consumers */
.mx-skin {
  --ambient-0: var(--mx-ambient-0);
  --ambient-1: var(--mx-ambient-1);
  --glass-bg: var(--mx-glass-bg);
  --glass-line: var(--mx-glass-line);
}

/* ═══════════════════════════════════════════════════════════════════════
   1. GLASSMORPHISM & PANEL SURFACES
   ═══════════════════════════════════════════════════════════════════════ */

.mx-glass,
[data-mx-glass] {
  background: var(--mx-glass-bg);
  border: 1px solid var(--mx-glass-line);
  backdrop-filter: blur(var(--mx-glass-blur)) saturate(var(--mx-glass-sat));
  -webkit-backdrop-filter: blur(var(--mx-glass-blur)) saturate(var(--mx-glass-sat));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 12px 36px rgba(0, 0, 0, 0.35);
}

.mx-glass--strong {
  background: var(--mx-glass-bg-strong);
  border-color: var(--mx-glass-line-hi);
}

.mx-glass--soft {
  background: var(--mx-glass-bg-soft);
}

/* Chrome: nav, dock, sheets, floating cards → glass contract */
.mx-skin nav.mx-nav,
.mx-skin #mx-nav:not(:empty) nav.mx-nav {
  background: var(--mx-glass-bg-strong) !important;
  border-bottom: 1px solid var(--mx-glass-line) !important;
  backdrop-filter: blur(var(--mx-glass-blur)) saturate(150%) !important;
  -webkit-backdrop-filter: blur(var(--mx-glass-blur)) saturate(150%) !important;
}

.mx-skin .mx-sheet__panel,
.mx-skin .mx-account-sheet__panel,
.mx-skin .shop-drawer__panel {
  background: var(--mx-glass-bg-strong) !important;
  border-color: var(--mx-glass-line-hi) !important;
  backdrop-filter: blur(16px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(150%) !important;
}

/* Floating / sticky cards */
.mx-skin .mx-panel,
.mx-skin .mb-panel,
.mx-skin .mb-drop,
.mx-skin .mb-health,
.mx-skin .mb-offer,
.mx-skin .shop-feat,
.mx-skin .shop-row,
.mx-skin .pcard,
.mx-skin .mx-tile,
.mx-skin .bz-lcard {
  border: 1px solid var(--mx-glass-line) !important;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.04) 0%, transparent 42%),
    var(--mx-glass-bg-soft) !important;
  backdrop-filter: blur(10px) saturate(130%);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 28px rgba(0, 0, 0, 0.32) !important;
  border-radius: var(--mx-item-radius) !important;
}

/* ── Hero grid / scanline texture (desktop heroes only — never crush mobile type) */
.mx-hero-grid,
[data-mx-hero-grid],
.mx-skin .mx-hero,
.mx-skin .bz-masthead,
.mx-skin .shop-counter,
.mx-skin .mb-stall-band {
  position: relative;
  isolation: isolate;
}
.mx-hero-grid::after,
[data-mx-hero-grid]::after,
.mx-skin .mx-hero::after,
.mx-skin .bz-masthead::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(124, 255, 178, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 255, 178, 0.045) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
}
/* Text/content above the grid */
.mx-hero-grid > *,
[data-mx-hero-grid] > *,
.mx-skin .mx-hero > *,
.mx-skin .bz-masthead > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 767.98px) {
  /* Kill dense grids on phone — legibility first */
  .mx-hero-grid::after,
  [data-mx-hero-grid]::after,
  .mx-skin .mx-hero::after,
  .mx-skin .bz-masthead::after {
    opacity: 0.08;
    background-size: 40px 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mx-hero-grid::after,
  [data-mx-hero-grid]::after {
    opacity: 0.06;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   2. TYPOGRAPHY & DATA DENSITY
   ═══════════════════════════════════════════════════════════════════════ */

/* Section titles: ON THE COUNTER · YOUR WANTS · THE VAULT */
.mx-sec-h,
.mx-skin .mx-sec-h,
.mx-skin .shop-panel__head h2,
.mx-skin .mb-h2,
.mx-skin .mb-health__k,
.mx-skin .mb-drop__k,
.mx-skin [data-mx-sec] {
  font-family: 'JetBrains Mono', ui-monospace, monospace !important;
  font-weight: 700 !important;
  font-size: var(--mx-sec-size) !important;
  letter-spacing: var(--mx-sec-track) !important;
  text-transform: uppercase !important;
  color: var(--mx-ink3, #8b94b8) !important;
  margin: 0 !important;
  line-height: 1.3 !important;
  font-stretch: normal !important;
  font-variation-settings: normal !important;
}

/* Accent section kickers (mint lane) */
.mx-sec-h--mint,
.mx-skin .mb-drop__k {
  color: var(--mx-neon-mint) !important;
}

/* Display section headers that stay Archivo (page H1 territory) */
.mx-skin .mb-h1,
.mx-skin .shop-brand b {
  font-family: 'Archivo', system-ui, sans-serif !important;
  font-weight: 900 !important;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-stretch: 120%;
  font-variation-settings: 'wdth' 118;
}

/* Monospace data: prices, BC, XP, serials */
.mx-mono,
.mx-data,
.mx-skin .mx-mono,
.mx-skin .mx-data,
.mx-skin [data-mx-mono],
.mx-skin .shop-feat__price,
.mx-skin .shop-row__price,
.mx-skin .shop-wallet,
.mx-skin .mb-health__v,
.mx-skin .mb-chip,
.mx-skin .bz-lcard-price,
.mx-skin .mx-coin-amt,
.mx-skin .mx-coin-chip,
.mx-skin [translate='no'].mx-coin-amt {
  font-family: 'JetBrains Mono', ui-monospace, monospace !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.mx-skin .shop-feat__price,
.mx-skin .shop-row__price,
.mx-skin .shop-wallet {
  color: var(--mx-gold, #ffd87c) !important;
  font-weight: 700 !important;
  font-size: var(--mx-data-size) !important;
}

/* Dynamic truncation — uniform card height */
.mx-clamp-2,
.mx-skin .mx-clamp-2,
.mx-skin .shop-feat__name,
.mx-skin .shop-row__name,
.mx-skin .shop-feat .n,
.mx-skin .bz-lcard-name,
.mx-skin .mb-lrow .name,
.mx-skin [data-mx-clamp='2'] {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: var(--mx-clamp-lines, 2) !important;
  overflow: hidden !important;
  text-overflow: ellipsis;
  white-space: normal !important;
  min-width: 0;
  line-height: 1.25;
  max-height: calc(1.25em * var(--mx-clamp-lines, 2));
}

.mx-clamp-1,
.mx-skin [data-mx-clamp='1'] {
  display: block !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  min-width: 0;
}

/* ═══════════════════════════════════════════════════════════════════════
   3. STANDARD ITEM CARD CONTRACT
   Desktop: vertical / auto-fit grid cell
   Mobile:  grid-template-columns: 64px 1fr auto
   ═══════════════════════════════════════════════════════════════════════ */

.mx-item-card,
.mx-skin .mx-item-card,
.mx-skin [data-mx-item] {
  display: grid;
  grid-template-columns: var(--mx-item-thumb) minmax(0, 1fr) auto;
  gap: var(--mx-item-gap);
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 76px;
  padding: 12px;
  border-radius: var(--mx-item-radius);
  border: 1px solid var(--mx-glass-line);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.04) 0%, transparent 40%),
    var(--mx-glass-bg-soft);
  color: inherit;
  text-align: start;
  cursor: pointer;
  transition:
    border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.25s ease;
}

.mx-item-card:hover,
.mx-item-card:focus-visible,
.mx-skin .mx-item-card:hover,
.mx-skin .mx-item-card:focus-visible {
  border-color: rgba(56, 229, 214, 0.5);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 16px 36px rgba(0, 0, 0, 0.4),
    0 0 24px rgba(56, 229, 214, 0.08);
  outline: none;
}

.mx-item-card:active,
.mx-skin .mx-item-card:active {
  transform: scale(var(--mx-press-scale));
}

.mx-item-card__thumb,
.mx-skin .mx-item-card__thumb {
  width: var(--mx-item-thumb);
  height: var(--mx-item-thumb);
  border-radius: 12px;
  overflow: hidden;
  flex: none;
  border: 1px solid var(--mx-line, #222a45);
  background: var(--mx-panel2, #141a30);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mx-item-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mx-item-card__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.mx-item-card__name {
  font: 700 14px/1.25 'Archivo', system-ui, sans-serif;
  color: var(--mx-ink, #f4f6ff);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mx-item-card__meta {
  font: 500 11px/1.3 'JetBrains Mono', monospace;
  color: var(--mx-ink3, #8b94b8);
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mx-item-card__price {
  font: 700 13px 'JetBrains Mono', monospace;
  color: var(--mx-gold, #ffd87c);
  white-space: nowrap;
  justify-self: end;
}

/* Alias existing product rows onto the mobile card contract */
@media (max-width: 767.98px) {
  .mx-skin .shop-feat,
  .mx-skin .shop-row,
  .mx-skin .mx-list-card,
  .mx-skin [data-mx-list-row] {
    display: grid !important;
    grid-template-columns: var(--mx-item-thumb) minmax(0, 1fr) auto !important;
    gap: 10px 12px !important;
    align-items: center !important;
    min-width: 0 !important;
    padding: 12px !important;
    min-height: 76px !important;
  }
  .mx-skin .shop-feat > *:nth-child(1),
  .mx-skin .shop-feat__thumb,
  .mx-skin .shop-row__thumb {
    width: var(--mx-item-thumb) !important;
    height: var(--mx-item-thumb) !important;
    min-width: var(--mx-item-thumb) !important;
    border-radius: 10px !important;
    overflow: hidden;
  }
}

/* Desktop: vertical product tiles in auto-fit grids stay uniform */
@media (min-width: 768px) {
  .mx-item-grid,
  .mx-skin .shop-featured,
  .mx-skin [data-mx-item-grid] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 12px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   4. BUTTONS · CHIPS · TABS · TIER BADGES
   ═══════════════════════════════════════════════════════════════════════ */

.mx-chip,
.mx-skin .mx-chip,
.mx-skin .mb-chip,
.mx-skin .ho-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--mx-glass-line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--mx-ink2, #aeb6d6);
  font: 600 11px/1 'JetBrains Mono', monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.2s ease,
    background 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.mx-chip:hover,
.mx-skin .mx-chip:hover,
.mx-skin .ho-chip:hover {
  border-color: rgba(124, 255, 178, 0.4);
  color: var(--mx-ink, #f4f6ff);
  box-shadow: var(--mx-neon-glow-mint);
}

.mx-chip.is-on,
.mx-chip[aria-pressed='true'],
.mx-skin .mx-chip.is-on,
.mx-skin .ho-chip.is-on,
.mx-skin .seg button[aria-pressed='true'] {
  border-color: rgba(124, 255, 178, 0.55);
  background: rgba(124, 255, 178, 0.12);
  color: var(--mx-neon-mint);
  box-shadow: inset 0 0 0 1px rgba(124, 255, 178, 0.15), var(--mx-neon-glow-mint);
}

/* Interactive press feel */
.mx-skin button:active,
.mx-skin .btn:active,
.mx-skin .btn-primary:active,
.mx-skin .mx-job-cta:active,
.mx-skin .mb-cta:active,
.mx-skin .mx-chip:active,
.mx-skin .ho-chip:active,
.mx-skin .seg button:active,
.mx-skin .shop-feat:active,
.mx-skin .shop-row:active,
.mx-skin a.mx-job-cta:active {
  transform: scale(var(--mx-press-scale));
}

/* Desktop hover lift (not on touch-only) */
@media (hover: hover) and (pointer: fine) {
  .mx-skin .btn-primary:hover,
  .mx-skin .mx-job-cta:not(.ghost):hover,
  .mx-skin .mb-cta:hover {
    box-shadow: 0 0 22px rgba(124, 255, 178, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
}

/* Touch floor */
@media (max-width: 767.98px) {
  .mx-skin button,
  .mx-skin [role='button'],
  .mx-skin .btn,
  .mx-skin .btn-primary,
  .mx-skin .btn-ghost,
  .mx-skin .mx-chip,
  .mx-skin .ho-chip,
  .mx-skin .seg button,
  .mx-skin input[type='submit'],
  .mx-skin input[type='button'] {
    min-height: 44px;
  }
  .mx-skin .mx-chip,
  .mx-skin .ho-chip {
    min-width: 44px;
    padding-inline: 14px;
  }
}

/* Tier badges — neon status only */
.mx-tier,
.mx-skin .mx-tier,
.mx-skin [data-tier] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  font: 700 10px/1 'JetBrains Mono', monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid transparent;
}
.mx-tier--c,
.mx-skin [data-tier='C'],
.mx-skin .shop-feat__thumb[data-tier='C'] {
  color: var(--mx-ink2);
  border-color: rgba(174, 182, 214, 0.35);
  background: rgba(174, 182, 214, 0.08);
}
.mx-tier--u,
.mx-skin [data-tier='U'],
.mx-skin .shop-feat__thumb[data-tier='U'] {
  color: var(--mx-neon-violet);
  border-color: rgba(169, 139, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(169, 139, 255, 0.12) inset, var(--mx-neon-glow-violet);
}
.mx-tier--r,
.mx-skin [data-tier='R'],
.mx-skin .shop-feat__thumb[data-tier='R'] {
  color: var(--mx-pink, #ff4fa0);
  border-color: rgba(255, 79, 160, 0.45);
  box-shadow: 0 0 0 1px rgba(255, 79, 160, 0.12) inset;
}
.mx-tier--l,
.mx-skin [data-tier='L'],
.mx-skin .shop-feat__thumb[data-tier='L'] {
  color: var(--mx-gold, #ffd87c);
  border-color: rgba(255, 216, 124, 0.5);
  box-shadow: 0 0 0 1px rgba(255, 216, 124, 0.14) inset, 0 0 14px rgba(255, 216, 124, 0.2);
}

/* Active tabs — cyan/mint neon rail */
.mx-skin .tabs a.on,
.mx-skin .tabs button.on,
.mx-skin .sec-tab.on,
.mx-skin .mx-nav-link.active,
.mx-skin .mx-nav-portal.on,
.mx-skin [aria-selected='true'] {
  color: var(--mx-neon-mint) !important;
}

/* Status pills */
.mx-status,
.mx-skin .mx-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font: 700 10px/1 'JetBrains Mono', monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--mx-glass-line);
}
.mx-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}
.mx-status--live {
  color: var(--mx-neon-mint);
  border-color: rgba(124, 255, 178, 0.4);
  background: rgba(124, 255, 178, 0.08);
}
.mx-status--warn {
  color: var(--mx-coral, #ff7a59);
  border-color: rgba(255, 122, 89, 0.4);
  background: rgba(255, 122, 89, 0.08);
}
.mx-status--info {
  color: var(--mx-neon-cyan);
  border-color: rgba(56, 229, 214, 0.4);
  background: rgba(56, 229, 214, 0.08);
}

/* ═══════════════════════════════════════════════════════════════════════
   5. SKELETON LOADERS & EMPTY STATES
   ═══════════════════════════════════════════════════════════════════════ */

@keyframes mx-skel-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.mx-skel,
.mx-skin .mx-skel,
.mx-skin [data-mx-skel] {
  display: block;
  border-radius: 10px;
  background: linear-gradient(
    90deg,
    var(--mx-skel-base) 0%,
    var(--mx-skel-shine) 45%,
    var(--mx-skel-base) 90%
  );
  background-size: 200% 100%;
  animation: mx-skel-shimmer 1.35s ease-in-out infinite;
  border: 1px solid var(--mx-glass-line);
  min-height: 12px;
  pointer-events: none;
  user-select: none;
}

.mx-skel--thumb {
  width: var(--mx-item-thumb);
  height: var(--mx-item-thumb);
  border-radius: 12px;
  flex: none;
}

.mx-skel--line {
  height: 12px;
  width: 100%;
  max-width: 180px;
}

.mx-skel--line-sm {
  height: 10px;
  width: 60%;
  max-width: 120px;
}

.mx-skel--card {
  min-height: 88px;
  padding: 12px;
  display: grid;
  grid-template-columns: var(--mx-item-thumb) 1fr;
  gap: 12px;
  align-items: center;
  background: var(--mx-glass-bg-soft);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: none;
}
.mx-skel--card::before {
  content: '';
  width: var(--mx-item-thumb);
  height: var(--mx-item-thumb);
  border-radius: 12px;
  background: linear-gradient(
    90deg,
    var(--mx-skel-base) 0%,
    var(--mx-skel-shine) 45%,
    var(--mx-skel-base) 90%
  );
  background-size: 200% 100%;
  animation: mx-skel-shimmer 1.35s ease-in-out infinite;
}
.mx-skel--card::after {
  content: '';
  height: 14px;
  width: 70%;
  border-radius: 6px;
  background: linear-gradient(
    90deg,
    var(--mx-skel-base) 0%,
    var(--mx-skel-shine) 45%,
    var(--mx-skel-base) 90%
  );
  background-size: 200% 100%;
  animation: mx-skel-shimmer 1.35s ease-in-out infinite;
}

.mx-skel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 768px) {
  .mx-skel-grid {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .mx-skel,
  .mx-skel--card::before,
  .mx-skel--card::after {
    animation: none !important;
    background: var(--mx-skel-base);
  }
}

/* Empty states — glass + dashed mint rail */
.mx-empty,
.mx-skin .mx-empty,
.mx-skin .mb-empty-list,
.mx-skin [data-mx-empty] {
  padding: 28px 20px !important;
  text-align: center;
  border-radius: 16px !important;
  border: 1px dashed rgba(124, 255, 178, 0.28) !important;
  background:
    radial-gradient(ellipse 80% 70% at 50% 0%, rgba(124, 255, 178, 0.07), transparent 60%),
    var(--mx-glass-bg-soft) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
  color: var(--mx-ink2, #aeb6d6);
}
.mx-empty__title {
  font: 800 15px/1.2 'Archivo', system-ui, sans-serif;
  color: var(--mx-ink, #f4f6ff);
  margin: 0 0 6px;
}
.mx-empty__sub {
  font: 500 13px/1.45 'Archivo', system-ui, sans-serif;
  color: var(--mx-ink3, #8b94b8);
  margin: 0;
  max-width: 36ch;
  margin-inline: auto;
}

/* ═══════════════════════════════════════════════════════════════════════
   6. PAGE SURFACE ALIASES (shop · stall · floor · profile · hideout)
   Maps legacy ad-hoc classes onto the contracts above without HTML rewrites.
   ═══════════════════════════════════════════════════════════════════════ */

/* Shop: panel heads = section titles; rows = item cards */
.mx-skin .shop-panel__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
.mx-skin .shop-panel__head p {
  font: 500 12px/1.4 'Archivo', system-ui, sans-serif;
  color: var(--mx-ink3, #8b94b8);
  margin: 0;
}
.mx-skin .shop-top,
.mx-skin .shop-tabbar {
  background: var(--mx-glass-bg-strong) !important;
  border-color: var(--mx-glass-line) !important;
  backdrop-filter: blur(var(--mx-glass-blur)) saturate(150%) !important;
  -webkit-backdrop-filter: blur(var(--mx-glass-blur)) saturate(150%) !important;
}

/* My Stall section heads */
.mx-skin .mb-h2 {
  /* keep visual weight for desk H2 while using mono contract above */
  font-size: 12px !important;
  letter-spacing: 0.14em !important;
  color: var(--mx-ink2, #aeb6d6) !important;
}

/* Floor listing names */
.mx-skin .bz-lcard-name {
  font: 700 14px/1.25 'Archivo', system-ui, sans-serif !important;
}

/* Price Guide tool chips — File / Floor / Board micro-tooltips */
.mx-skin .mk-tool,
.mx-skin .mk-actions .mk-tool {
  position: relative;
}
.mx-skin .mk-tool-tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  z-index: 6;
  min-width: 11ch;
  max-width: min(220px, 72vw);
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(6, 8, 16, 0.96);
  border: 1px solid rgba(56, 229, 214, 0.4);
  color: var(--mx-ink, #f4f6ff);
  font: 600 11px/1.35 'Archivo', system-ui, sans-serif;
  letter-spacing: 0;
  text-transform: none;
  white-space: normal;
  text-align: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s;
}
.mx-skin .mk-tool-tip.is-on {
  opacity: 1;
  visibility: visible;
}
@media (hover: hover) and (pointer: fine) {
  .mx-skin .mk-tool:hover .mk-tool-tip,
  .mx-skin .mk-tool:focus-visible .mk-tool-tip {
    opacity: 1;
    visibility: visible;
  }
}
/* Stall banner mobile contract (also applied from app_mobile) */
.mx-skin .stall-skin-bg,
.mx-skin .mb-stall-band .mx-stall__art {
  background-size: cover;
  background-position: center;
  object-fit: cover;
  object-position: center;
}
@media (max-width: 767.98px) {
  .mx-skin .stall-banner,
  .mx-skin .mb-stall-band.stall-banner {
    border-radius: 12px;
  }
  .mx-skin .stall-skin-bg {
    width: 100%;
    height: 180px;
    border-radius: 12px;
  }
}

/* Profile picker / modals glass */
.mx-skin .pf-picker-box,
.mx-skin .pf-train-box,
.mx-skin .pf-coin-box,
.mx-skin .modal,
.mx-skin .overlay .modal {
  background: var(--mx-glass-bg-strong) !important;
  border: 1px solid var(--mx-glass-line-hi) !important;
  backdrop-filter: blur(16px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(150%) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55) !important;
}

/* Hideout sticky rail already glassed in craft — reinforce neon active */
.mx-skin .ho-chip[aria-pressed='true'],
.mx-skin .ho-fam.is-on {
  color: var(--mx-neon-violet) !important;
  border-color: rgba(169, 139, 255, 0.5) !important;
  box-shadow: var(--mx-neon-glow-violet);
}

/* Binder / collection list rows on phone → item card geometry where unmarked */
@media (max-width: 767.98px) {
  .mx-skin .mb-lrow {
    border-radius: var(--mx-item-radius) !important;
    border: 1px solid var(--mx-glass-line) !important;
    background: var(--mx-glass-bg-soft) !important;
  }

  /* ── P1: Universal 44px touch floor (secondary controls) ─────────── */
  .mb-btn,
  #mbBackList,
  .mb-back-list,
  .ho-tray-fams button,
  .ho-fam,
  .ho-q-claim,
  .pf-coin-zoom,
  .btn-sm,
  .mx-skin .btn-sm,
  body.bz-page .btn-sm,
  .mb-claim-close,
  [data-mx-close] {
    min-height: 44px !important;
    min-width: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box;
  }
  .pf-coin-zoom {
    width: 44px !important;
    height: 44px !important;
    font-size: 16px !important;
  }
  .ho-tray-fams button,
  .ho-fam {
    padding-inline: 12px !important;
  }
}

/* ── P2/P3: RTL logical anchors + toast action + jargon ─────────────── */
.pk .q,
.bv-mobile .pk .q {
  inset-inline-end: 5px !important;
  inset-block-start: 5px !important;
  right: auto;
}
.pk .pv,
.bv-mobile .pk .pv {
  inset-inline-start: 5px !important;
  inset-block-end: 5px !important;
  left: auto;
}
.mx-dock-pip {
  inset-inline-end: calc(50% - 14px) !important;
  inset-block-start: 4px !important;
}
.pfi-close {
  inset-block-start: max(10px, env(safe-area-inset-top, 0px));
  inset-inline-end: max(10px, env(safe-area-inset-right, 0px));
}
html[dir='rtl'] .pfi-close,
html.mx-rtl .pfi-close {
  right: auto;
  left: max(10px, env(safe-area-inset-left, 0px));
}
.mx-toast-act {
  flex: none;
  min-height: 36px;
  min-width: 64px;
  margin-inline-start: 8px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(124, 255, 178, 0.45);
  background: rgba(124, 255, 178, 0.14);
  color: var(--mx-mint, #7cffb2);
  font: 700 12px Archivo, system-ui, sans-serif;
  cursor: pointer;
}
.mx-toast--offline {
  border-color: rgba(255, 122, 89, 0.4);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}
.bz-jargon {
  position: relative;
}
button.bz-jargon {
  appearance: none;
  -webkit-appearance: none;
}

/* ═══════════════════════════════════════════════════════════════════════
   6b. FILE SHEET — Collectr-class visual filing terminal (#avFileSheet)
   ═══════════════════════════════════════════════════════════════════════ */
#avFileSheet {
  position: fixed;
  inset: 0;
  z-index: 520;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
#avFileSheet[hidden] {
  display: none !important;
}
#avFileSheet [hidden] {
  display: none !important;
}
#avFileSheet .mx-file-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 5, 11, 0.72);
  border: 0 !important;
  border-radius: 0 !important;
  max-height: none !important;
  overflow: hidden !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
#avFileSheet .mx-file-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  max-height: min(92dvh, 920px);
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 14px 14px 0;
  margin: 0 auto;
  border-radius: 20px 20px 0 0;
  border: 1px solid rgba(56, 229, 214, 0.18);
  border-bottom: 0;
  background: rgba(12, 16, 28, 0.92);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(124, 255, 178, 0.06) inset;
  color: var(--mx-ink, #f2f4ff);
  overflow: hidden;
  box-sizing: border-box;
}
#avFileSheet .mx-file-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex: none;
  margin-bottom: 10px;
}
#avFileSheet .mx-file-title {
  margin: 0;
  font: 800 18px/1.15 Archivo, system-ui, sans-serif;
  letter-spacing: -0.02em;
  color: var(--mx-ink, #f2f4ff);
}
#avFileSheet .mx-file-x {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--mx-ink2, #c8cce0);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
#avFileSheet .mx-file-x:hover {
  border-color: var(--mx-ink3);
  color: var(--mx-ink);
}

/* Zero-label search + inline camera */
#avFileSheet .mx-file-field {
  margin: 0 0 10px;
  flex: none;
}
#avFileSheet .mx-file-search {
  position: relative;
  display: flex;
  align-items: center;
}
#avFileSheet .mx-search-cam-btn {
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(56, 229, 214, 0.55);
  background: linear-gradient(145deg, rgba(56, 229, 214, 0.28), rgba(56, 229, 214, 0.08));
  color: var(--mx-teal, #38e5d6);
  box-shadow: 0 0 14px rgba(56, 229, 214, 0.35);
  cursor: pointer;
  padding: 0;
  transition: all .15s;
}
#avFileSheet .mx-search-cam-btn:hover,
#avFileSheet .mx-search-cam-btn:focus-visible {
  border-color: var(--mx-teal, #38e5d6);
  box-shadow: 0 0 20px rgba(56, 229, 214, 0.55);
  outline: none;
}
#avFileSheet .mx-search-cam-btn:active {
  transform: translateY(-50%) scale(0.96);
}
#avFileSheet .mx-file-input {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(6, 8, 16, 0.72);
  color: var(--mx-ink, #f2f4ff);
  font: 500 16px Archivo, system-ui, sans-serif;
  box-sizing: border-box;
}
#avFileSheet .mx-file-input--search {
  padding-inline-start: 48px !important;
  padding-inline-end: 12px;
}

/* ── Inline camera on ALL search bars (floor / stall / market / nav) ── */
.mx-search-with-cam {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
}
.mx-search-with-cam .mx-search-cam-btn,
.mx-nav-search .mx-search-cam-btn,
.bz-floor-tools .mx-search-cam-btn,
.mb-add-search .mx-search-cam-btn,
.mk-bar .mx-search-cam-btn {
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(56, 229, 214, 0.55);
  background: linear-gradient(145deg, rgba(56, 229, 214, 0.28), rgba(56, 229, 214, 0.08));
  color: var(--mx-teal, #38e5d6);
  box-shadow: 0 0 14px rgba(56, 229, 214, 0.35);
  cursor: pointer;
  padding: 0;
  transition: all .15s;
}
.mx-search-with-cam .mx-search-with-cam__input,
.mx-search-with-cam input,
.mx-nav-search input.mx-search-with-cam__input,
#searchInput.mx-search-with-cam__input,
#mbAddCard.mx-search-with-cam__input,
#mkSearch.mx-search-with-cam__input {
  padding-inline-start: 48px !important;
  width: 100%;
  box-sizing: border-box;
}
/* Nav search already has a left icon — shift cam + pad further when both present */
.mx-nav-search.mx-search-with-cam,
.mx-nav-search:has(.mx-search-cam-btn) {
  position: relative;
}
.mx-nav-search .mx-search-cam-btn {
  left: 8px;
}
.mx-nav-search:has(.mx-search-cam-btn) .mx-nav-search-ico {
  display: none;
}

/* ── POP / Gem Rate module ─────────────────────────────────────────── */
.mx-pop-mount,
.mx-pop-host {
  margin: 12px 0 8px;
  min-width: 0;
}
.mx-pop-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(6, 8, 16, 0.55);
}
.mx-pop-tabs button {
  flex: 1;
  min-height: 44px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--mx-ink3, #8b90a8);
  font: 700 12px Archivo, system-ui, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .15s, background .15s;
}
.mx-pop-tabs button:hover {
  color: var(--mx-ink, #fff);
  background: rgba(255,255,255,.04);
}
.mx-pop-tabs button.on {
  background: rgba(56, 229, 214, 0.16);
  color: var(--mx-teal, #38e5d6);
  box-shadow: 0 0 0 1px rgba(56, 229, 214, 0.35) inset;
}
.mx-pop-gem {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(124, 255, 178, 0.28);
  background: linear-gradient(135deg, rgba(124, 255, 178, 0.1), rgba(12, 16, 28, 0.4));
  font: 600 13px Archivo, system-ui, sans-serif;
  color: var(--mx-ink, #f2f4ff);
}
.mx-pop-gem__pct {
  color: var(--mx-mint, #7cffb2);
  font: 800 14px JetBrains Mono, ui-monospace, monospace;
}
.mx-pop-gem__n {
  font: 500 11px JetBrains Mono, ui-monospace, monospace;
  color: var(--mx-ink3, #8b90a8);
}
.mx-pop-gem--empty {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--mx-ink3, #8b90a8);
}
.mx-pop-grid,
.mx-pop-ladder {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.mx-pop-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(6, 8, 16, 0.5);
}
.mx-pop-cell__g {
  font: 700 11px JetBrains Mono, ui-monospace, monospace;
  color: var(--mx-ink2, #c8cce0);
}
.mx-pop-cell__n {
  font: 800 16px Archivo, system-ui, sans-serif;
  color: var(--mx-ink, #fff);
}
.mx-pop-cell__m {
  font: 600 11px JetBrains Mono, ui-monospace, monospace;
  color: var(--mx-mint, #7cffb2);
}
/* W2.1 — grader legend chips (mx-pop-gch-) and sale receipts (mx-pop-rcpt-)
   on the GRADED tab. A chip carries the grader's latest 10 price; tapping it
   hides that grader's rungs and strikes the chip through. */
.mx-pop-gchips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.mx-pop-gch {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(6, 8, 16, 0.5);
  color: var(--mx-ink2, #c8cce0); font: 700 10.5px JetBrains Mono, ui-monospace, monospace; letter-spacing: 0.06em;
  cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.mx-pop-gch b { color: var(--mx-mint, #7cffb2); font-weight: 700; }
.mx-pop-gch.off { text-decoration: line-through; opacity: 0.5; }
.mx-pop-gch.off b { color: var(--mx-ink3, #8b90a8); }
.mx-pop-gch:active { transform: scale(0.97); }
.mx-pop-rcpt { margin-top: 12px; }
/* W5.2 — perfect rung + ladder guard (flag ladderGuard) */
.mx-pop-cell--perfect .mx-pop-cell__g { color: #ffd166; }
.mx-pop-guard { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border: 1px dashed var(--mx-line2, rgba(255,255,255,.14)); border-radius: 10px; font: 500 11.5px/1.4 Archivo, system-ui, sans-serif; color: var(--mx-ink3, #8b90a8); }
.mx-pop-guard button { min-height: 36px; padding: 0 12px; border: 1px solid var(--mx-line2, rgba(255,255,255,.14)); border-radius: 9px; background: transparent; color: var(--mx-mint, #7CFFB2); font: 700 11px 'JetBrains Mono', monospace; cursor: pointer; }
/* W6.1 — Performance view inside the stall health card (pfm- pre-flighted free 2026-09-06) */
.pfm { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--mx-line, rgba(255,255,255,.08)); }
.pfm-k { font: 700 9.5px 'JetBrains Mono', monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--mx-ink3, #8b90a8); }
.pfm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-top: 8px; }
.pfm-cell { border: 1px solid var(--mx-line, rgba(255,255,255,.08)); border-radius: 10px; background: var(--mx-panel, #0f1320); padding: 10px 12px; min-width: 0; }
.pfm-cell b { display: block; font: 800 18px Archivo, system-ui, sans-serif; color: var(--mx-ink, #e8ecf6); letter-spacing: -.01em; }
.pfm-cell b.up { color: var(--mx-mint, #7CFFB2); }
.pfm-cell b.down { color: #ff8a8a; }
.pfm-cell i { display: block; font: 500 10.5px/1.4 'JetBrains Mono', monospace; color: var(--mx-ink3, #8b90a8); margin-top: 3px; font-style: normal; }
.rqa-btn.rqa-sold { color: var(--mx-mint, #7CFFB2); font-size: 10px; letter-spacing: .06em; }
.mx-pop-rcpt__k { font: 700 10px JetBrains Mono, ui-monospace, monospace; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mx-ink3, #8b90a8); margin-bottom: 6px; }
.mx-pop-rcpt__row {
  display: grid; grid-template-columns: 78px 1fr auto; gap: 8px; align-items: center; min-height: 40px;
  padding: 4px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); font: 500 11.5px JetBrains Mono, ui-monospace, monospace; color: var(--mx-ink2, #c8cce0);
}
.mx-pop-rcpt__row:last-child { border-bottom: 0; }
.mx-pop-rcpt__d { color: var(--mx-ink3, #8b90a8); }
.mx-pop-rcpt__p { font-weight: 700; color: var(--mx-ink, #fff); }
.mx-pop-rcpt__a { color: var(--mx-mint, #7cffb2); text-decoration: none; font-weight: 700; min-height: 40px; display: inline-flex; align-items: center; padding: 0 8px; }
.mx-pop-rcpt__note { font: 400 11px Archivo, system-ui, sans-serif; color: var(--mx-ink3, #8b90a8); line-height: 1.45; margin-top: 6px; }
.mx-pop-wins {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}
.mx-pop-wins button {
  min-height: 44px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: var(--mx-ink3, #8b90a8);
  font: 700 11px JetBrains Mono, ui-monospace, monospace;
  cursor: pointer;
  transition: color .15s, border-color .15s;
}
.mx-pop-wins button:hover {
  color: var(--mx-ink2);
  border-color: var(--mx-ink3);
}
.mx-pop-wins button.on {
  border-color: rgba(56, 229, 214, 0.45);
  color: var(--mx-teal, #38e5d6);
  background: rgba(56, 229, 214, 0.12);
}
.mx-pop-chart {
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 6, 14, 0.55);
}
.mx-pop-spark {
  display: block;
  margin: 4px 0;
}
.mx-pop-note {
  margin: 6px 0 0;
  font: 500 11px/1.4 Archivo, system-ui, sans-serif;
  color: var(--mx-ink3, #8b90a8);
}
.mx-pop-empty {
  padding: 12px;
  font: 500 12px Archivo, system-ui, sans-serif;
  color: var(--mx-ink3, #8b90a8);
}
.mx-pop-rg__k {
  font: 700 10px JetBrains Mono, ui-monospace, monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mx-ink3, #8b90a8);
  margin-bottom: 6px;
}
.mx-pop-rg__v {
  font: 800 22px Archivo, system-ui, sans-serif;
  color: var(--mx-mint, #7cffb2);
  margin-bottom: 6px;
}

/* Market detail drawer (Price Guide POP host) */
.mk-detail {
  position: fixed;
  inset: 0;
  z-index: 480;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(4, 5, 11, 0.72);
  padding: 0;
  animation: mk-detail-bg-in .25s cubic-bezier(.16,1,.3,1);
}
.mk-detail[hidden] {
  display: none !important;
}
.mk-detail__panel {
  width: min(520px, 100%);
  max-height: min(93dvh, 820px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 18px 18px 0 0;
  border: 1px solid rgba(56, 229, 214, 0.2);
  background: rgba(12, 16, 28, 0.96);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.5);
  animation: mk-detail-panel-in .32s cubic-bezier(.16,1,.3,1);
}
@keyframes mk-detail-bg-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes mk-detail-panel-in { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
.mk-detail__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.mk-detail__title {
  margin: 0;
  font: 800 18px/1.2 Archivo, system-ui, sans-serif;
  color: var(--mx-ink, #fff);
}
.mk-detail__sub {
  margin: 4px 0 0;
  font: 500 12px Archivo, system-ui, sans-serif;
  color: var(--mx-ink3, #8b90a8);
}
.mk-detail__x {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: var(--mx-ink2, #c8cce0);
  font-size: 22px;
  cursor: pointer;
}
.mk-detail__price {
  font: 800 20px Archivo, system-ui, sans-serif;
  color: var(--mx-mint, #7cffb2);
  margin-bottom: 8px;
}
.mk-detail__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.mk-detail__acts .mk-file,
.mk-detail__acts .mk-tool {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--mx-ink, #fff);
  font: 700 13px Archivo, system-ui, sans-serif;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  transition: border-color .15s, transform .15s;
}
.mk-detail__acts .mk-file:hover,
.mk-detail__acts .mk-tool:hover {
  border-color: var(--mx-mint, #7cffb2);
  transform: translateY(-1px);
}
.mk-detail__acts .mk-file {
  background: linear-gradient(90deg, #7cffb2, #38e5d6);
  color: #061018;
  border: 0;
}
@media (min-width: 768px) {
  .mk-detail {
    align-items: center;
    padding: 24px;
  }
  .mk-detail__panel {
    width: min(760px, 92vw);
    max-height: min(90vh, 920px);
    border-radius: 16px;
    padding: 22px 26px calc(22px + env(safe-area-inset-bottom, 0px));
  }
}
@media (min-width: 1100px) {
  .mk-detail__panel {
    width: min(880px, 80vw);
  }
}
#avFileSheet .mx-file-input:focus-visible {
  outline: 2px solid var(--mx-teal, #38e5d6);
  outline-offset: 1px;
  border-color: rgba(56, 229, 214, 0.55);
}
#avFileSheet .mx-file-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 8px;
}
#avFileSheet .mx-file-tool-link {
  font: 600 11px JetBrains Mono, ui-monospace, monospace;
  letter-spacing: 0.04em;
  color: var(--mx-teal, #38e5d6);
  text-decoration: none;
  opacity: 0.85;
}
#avFileSheet .mx-file-tool-link:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Live preview card */
#avFileSheet .mx-file-preview {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  gap: 8px 12px;
  align-items: center;
  margin: 0 0 12px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(56, 229, 214, 0.2);
  background: linear-gradient(135deg, rgba(56, 229, 214, 0.08), rgba(12, 16, 28, 0.5));
  box-shadow: 0 0 24px rgba(56, 229, 214, 0.08);
}
#avFileSheet .mx-file-preview__art {
  grid-row: 1 / span 2;
  width: 60px;
  height: 84px;
  border-radius: 8px;
  overflow: hidden;
  flex: none;
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 0 16px rgba(56, 229, 214, 0.35), 0 4px 12px rgba(0, 0, 0, 0.4);
}
#avFileSheet .mx-file-preview__art img {
  width: 60px;
  height: 84px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}
#avFileSheet .mx-file-preview__ph {
  width: 60px;
  height: 84px;
  border-radius: 8px;
  background: linear-gradient(160deg, rgba(56, 229, 214, 0.15), rgba(18, 20, 32, 0.9));
}
#avFileSheet .mx-file-preview__meta {
  min-width: 0;
  grid-column: 2;
}
#avFileSheet .mx-file-preview__name {
  font: 700 14px/1.25 Archivo, system-ui, sans-serif;
  color: var(--mx-ink, #fff);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#avFileSheet .mx-file-preview__set {
  margin-top: 2px;
  font: 500 11px/1.3 Archivo, system-ui, sans-serif;
  color: var(--mx-ink3, #8b90a8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#avFileSheet .mx-file-preview__price {
  margin-top: 4px;
  font: 700 13px/1.2 JetBrains Mono, ui-monospace, monospace;
  color: var(--mx-mint, #7cffb2);
}
#avFileSheet .mx-file-preview__price.is-empty {
  color: var(--mx-ink3, #8b90a8);
  font-weight: 500;
}
#avFileSheet .mx-file-preview__qty {
  grid-column: 3;
  grid-row: 1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
#avFileSheet .mx-file-qty button {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: var(--mx-ink, #fff);
  font: 700 18px/1 Archivo, system-ui, sans-serif;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .1s, background .15s;
}
#avFileSheet .mx-file-qty button:active {
  background: rgba(56, 229, 214, 0.18);
}
#avFileSheet .mx-file-qty input,
#avFileSheet #avFileQty {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  text-align: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(6, 8, 16, 0.75);
  color: var(--mx-ink, #fff);
  font: 700 15px JetBrains Mono, ui-monospace, monospace;
  -moz-appearance: textfield;
}
#avFileSheet .mx-file-qty input::-webkit-outer-spin-button,
#avFileSheet .mx-file-qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
#avFileSheet .mx-file-swap {
  grid-column: 3;
  grid-row: 2;
  justify-self: end;
  min-height: 28px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: var(--mx-teal, #38e5d6);
  font: 700 10px JetBrains Mono, ui-monospace, monospace;
  letter-spacing: 0.08em;
  cursor: pointer;
}

/* Segmented controls */
#avFileSheet .mx-file-seg {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(6, 8, 16, 0.55);
}
#avFileSheet .mx-file-seg button {
  flex: 1;
  min-height: 44px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--mx-ink3, #8b90a8);
  font: 700 12px Archivo, system-ui, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0 6px;
  transition: color .15s, background .15s;
}
#avFileSheet .mx-file-seg button:hover {
  color: var(--mx-ink);
  background: rgba(255,255,255,.04);
}
#avFileSheet .mx-file-seg button.on {
  background: rgba(56, 229, 214, 0.16);
  color: var(--mx-teal, #38e5d6);
  box-shadow: 0 0 0 1px rgba(56, 229, 214, 0.35) inset;
}
#avFileSheet .mx-file-seg--mode button {
  min-height: 42px;
  font-size: 12.5px;
}
#avFileSheet .mx-file-seg--tight {
  gap: 3px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
#avFileSheet .mx-file-seg--tight::-webkit-scrollbar {
  display: none;
}
#avFileSheet .mx-file-seg--tight button {
  flex: 1 0 auto;
  min-width: 44px;
  min-height: 44px;
  font: 700 12px JetBrains Mono, ui-monospace, monospace;
  letter-spacing: 0;
  text-transform: none;
  padding: 0 8px;
}
#avFileSheet .mx-file-seg--co button {
  min-height: 40px;
  font-size: 12px;
}
#avFileSheet .mx-file-graded-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}
#avFileSheet .mx-file-pop-note {
  font: 500 12px/1.4 Archivo, system-ui, sans-serif;
  color: var(--mx-ink3, #8b90a8);
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px dashed rgba(255, 216, 124, 0.35);
  background: rgba(255, 216, 124, 0.06);
}

/* Binder inline row */
#avFileSheet .mx-file-binder-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 6px 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(6, 8, 16, 0.45);
}
#avFileSheet .mx-file-binder-k {
  flex: none;
  font: 700 10px JetBrains Mono, ui-monospace, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mx-ink3, #8b90a8);
}
/* W2.4 (fsb-, pre-flight clean): the destination row sticks to the top of
   the sheet's scroll while the form scrolls under it; opaque so it never
   overlaps art or copy as it pins. */
#avFileSheet .mx-file-binder-row.fsb-sticky {
  position: sticky;
  top: 0;
  z-index: 4;
  background: var(--mx-panel, #0f1324);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}
#avFileSheet .fsb-new {
  flex: none;
  min-height: 40px;
  padding: 0 10px;
  font: 700 11px JetBrains Mono, ui-monospace, monospace;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
#avFileSheet .mx-file-input--inline {
  flex: 1;
  min-height: 40px;
  min-width: 0;
  border: 0;
  background: transparent;
  padding-inline: 6px;
}
#avFileSheet .mx-file-link {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(56, 229, 214, 0.35);
  background: rgba(56, 229, 214, 0.1);
  color: var(--mx-teal, #38e5d6);
  font: 700 18px/1 Archivo, system-ui, sans-serif;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Market compact + chips */
#avFileSheet .mx-file-market-row {
  margin: 0 0 8px;
}
#avFileSheet .mx-file-market-live {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
#avFileSheet .mx-file-market-k {
  font: 700 10px JetBrains Mono, ui-monospace, monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mx-ink3, #8b90a8);
}
#avFileSheet .mx-file-mkt {
  font: 700 14px JetBrains Mono, ui-monospace, monospace;
  color: var(--mx-mint, #7cffb2);
}
#avFileSheet .mx-file-cur {
  margin-inline-start: auto;
  min-height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(6, 8, 16, 0.65);
  color: var(--mx-ink2, #c8cce0);
  font: 600 12px JetBrains Mono, ui-monospace, monospace;
  padding: 0 8px;
}
#avFileSheet .mx-file-hint {
  margin-top: 4px;
  font: 500 11px Archivo, system-ui, sans-serif;
  color: var(--mx-ink3, #8b90a8);
}
#avFileSheet .mx-file-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
#avFileSheet .mx-file-chips button {
  min-height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--mx-ink2, #c8cce0);
  font: 600 12px Archivo, system-ui, sans-serif;
  cursor: pointer;
}
#avFileSheet .mx-file-chips button.on {
  border-color: rgba(56, 229, 214, 0.5);
  background: rgba(56, 229, 214, 0.14);
  color: var(--mx-teal, #38e5d6);
}
#avFileSheet .mx-file-chips button .v {
  margin-inline-start: 6px;
  opacity: 0.75;
  font: 600 11px JetBrains Mono, ui-monospace, monospace;
}
#avFileSheet .mx-file-meter {
  margin: 0 0 6px;
  min-height: 0;
}
#avFileSheet .mx-file-msg {
  min-height: 16px;
  margin: 0 0 6px;
  font: 500 12px Archivo, system-ui, sans-serif;
  color: var(--mx-ink3, #8b90a8);
}

/* Thumb-zone sticky CTA deck */
#avFileSheet .mx-file-actions {
  position: sticky;
  bottom: 0;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 4px -14px 0;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, transparent, rgba(12, 16, 28, 0.96) 28%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
#avFileSheet .mx-file-keep {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-inline-end: auto;
  font: 500 12px Archivo, system-ui, sans-serif;
  color: var(--mx-ink3, #8b90a8);
  cursor: pointer;
  user-select: none;
}
#avFileSheet .mx-file-keep input {
  width: 16px;
  height: 16px;
  accent-color: var(--mx-mint, #7cffb2);
}
#avFileSheet .mx-file-ghost {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: var(--mx-ink2, #c8cce0);
  font: 600 13px Archivo, system-ui, sans-serif;
  cursor: pointer;
}
#avFileSheet .mx-file-go {
  flex: 1 1 160px;
  min-height: 48px;
  height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(90deg, #7cffb2 0%, #38e5d6 100%);
  color: #061018;
  font: 800 14.5px Archivo, system-ui, sans-serif;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(124, 255, 178, 0.35), 0 4px 14px rgba(0, 0, 0, 0.35);
}
#avFileSheet .mx-file-go:hover:not(.is-disabled):not(:disabled) {
  filter: brightness(1.05);
}
#avFileSheet .mx-file-go.is-disabled,
#avFileSheet .mx-file-go:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

@media (min-width: 640px) {
  #avFileSheet {
    align-items: center;
    padding: 24px;
  }
  #avFileSheet .mx-file-panel {
    border-radius: 18px;
    border-bottom: 1px solid rgba(56, 229, 214, 0.18);
    max-height: min(88vh, 860px);
    overflow: auto;
  }
}
/* W4.4 (2026-09-06): on a desktop the file / add-graded sheet is a DRAWER on
   the right, full height, so the binder or stall stays visible beside it —
   a centred modal hid the very list the card was going into. Phones keep
   the bottom sheet; 640-1023 keeps the centred panel. */
@media (min-width: 1024px) {
  /* html-prefixed + !important: at 1280 the sheet still computed
     justify-content:center / align-items:flex-end from the base + 640px
     rules and the mobile catch-all family (measured 2026-09-06); an
     id-only rule at this point in the cascade did not win, this one does. */
  html #avFileSheet {
    align-items: stretch !important;
    justify-content: flex-end !important;
    padding: 0 !important;
  }
  #avFileSheet .mx-file-panel {
    width: min(560px, 100%);
    max-width: none;
    margin: 0;
    max-height: none;
    height: 100%;
    border-radius: 18px 0 0 18px;
    border-left: 1px solid rgba(56, 229, 214, 0.18);
    box-shadow: -24px 0 60px rgba(0, 0, 0, 0.55);
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   7. UTILITY HELPERS
   ═══════════════════════════════════════════════════════════════════════ */

.mx-neon-text {
  color: var(--mx-neon-mint);
  text-shadow: 0 0 12px rgba(124, 255, 178, 0.35);
}
.mx-neon-text--cyan {
  color: var(--mx-neon-cyan);
  text-shadow: 0 0 12px rgba(56, 229, 214, 0.35);
}
.mx-neon-text--violet {
  color: var(--mx-neon-violet);
  text-shadow: 0 0 12px rgba(169, 139, 255, 0.35);
}

.mx-divider {
  height: 1px;
  border: 0;
  background: linear-gradient(
    90deg,
    transparent,
    var(--mx-glass-line-hi) 20%,
    var(--mx-glass-line-hi) 80%,
    transparent
  );
  margin: 16px 0;
}

/* Focus ring — mint, never browser blue */
.mx-skin :focus-visible {
  outline: 2px solid var(--mx-neon-mint);
  outline-offset: 2px;
}

/* ── Profile avatar / dock stacking (mobile bleed fix) ─────────────────
   Avatar card chrome (frame z, glow filters) must stay under the fixed dock. */
@media (max-width: 767.98px) {
  .mx-dock,
  nav.mx-dock,
  #avDock {
    z-index: 100 !important;
    pointer-events: auto !important;
  }
  .pf-wrap,
  .pf-hero,
  .pf-card-col,
  .mx-acard {
    position: relative;
    z-index: 10;
    isolation: isolate;
  }
}

/* ── Shared secondary pill (2026-08-07) ──────────────────────────────────
   Standardizes raw "Home"/back-style nav text links (previously bare <a>
   tags with no border, no touch target) into one small ghost pill. */
.mx-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid var(--mx-line2, rgba(255, 255, 255, 0.14));
  background: transparent;
  color: var(--mx-ink2, #aeb6d6);
  font: 700 12.5px 'Archivo', system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s;
}
.mx-btn-secondary:hover {
  border-color: var(--mx-mint, #7cffb2);
  color: var(--mx-mint, #7cffb2);
  background: rgba(124, 255, 178, 0.06);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(124, 255, 178, 0.1);
}
.mx-btn-secondary:active {
  transform: translateY(0) scale(0.97);
  box-shadow: none;
}
.mx-btn-secondary:focus-visible {
  outline: 2px solid var(--mx-mint, #7cffb2);
  outline-offset: 2px;
}

/* ── Shared primary pill (2026-08-08) ────────────────────────────────────
   Aurora-gradient CTA — same gradient token index.html's .hm-cta already
   uses, generalized into a reusable class. */
.mx-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: var(--mx-aurora, linear-gradient(115deg, #7cffb2 0%, #38e5d6 26%, #6b8cff 52%, #a98bff 74%, #ff4fa0 100%));
  color: var(--mx-void, #04050b);
  font: 800 13px 'Archivo', system-ui, sans-serif;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 28px rgba(124, 255, 178, 0.28), 0 0 22px rgba(56, 229, 214, 0.18);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}
.mx-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 14px 36px rgba(124, 255, 178, 0.38), 0 0 32px rgba(56, 229, 214, 0.28);
}
.mx-btn-primary:active {
  transform: translateY(0) scale(0.97);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 4px 12px rgba(124, 255, 178, 0.18);
}
.mx-btn-primary:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .mx-btn-primary,
  .mx-btn-secondary {
    transition: none !important;
  }
  .mx-btn-primary:hover,
  .mx-btn-secondary:hover {
    transform: none !important;
  }
}

/* ── .mx-cta — canonical text-arrow CTA chip (2026-08-19 Sam button pass) ──
   One shared treatment for links that used to render as bare text + arrow.
   Sets chrome only; each link keeps its own accent color. 44px touch floor. */
.mx-cta{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 14px;border-radius:10px;border:1px solid var(--mx-line2);background:var(--mx-panel);text-decoration:none;transition:border-color .15s,transform .15s}
.mx-cta:hover{border-color:var(--mx-ink3);transform:translateY(-1px)}
.mx-cta:active{transform:translateY(0) scale(.98)}
.mx-cta:focus-visible{outline:2px solid rgba(255,255,255,.6);outline-offset:2px}
@media(prefers-reduced-motion:reduce){.mx-cta{transition:none}.mx-cta:hover,.mx-cta:active{transform:none}}

/* ══ AUTOFILL PROVENANCE (mx_cardfill.js) ═══════════════════════════════
   An autofilled value has to look different from one the user typed, or
   the pane is just quietly asserting things on their behalf. Tint + a
   left rule + an "auto" chip on the label. All three go the instant the
   field is touched, so the control tells you who owns it at a glance.
   Deliberately NOT a disabled/readonly look — every one of these is a
   normal editable input and must read as one. */
.mx-af {
  background: color-mix(in srgb, var(--mx-mint, #7CFFB2) 9%, var(--mx-panel, #120b1e)) !important;
  border-color: color-mix(in srgb, var(--mx-mint, #7CFFB2) 42%, transparent) !important;
  box-shadow: inset 3px 0 0 0 var(--mx-mint, #7CFFB2);
}
.mx-af:focus { box-shadow: inset 3px 0 0 0 var(--mx-mint, #7CFFB2), 0 0 0 2px rgba(124, 255, 178, .25); }
.mx-af-chip {
  display: inline-block; margin-inline-start: 7px; padding: 1px 6px; border-radius: 999px;
  font: 700 9px/1.6 var(--mx-mono, 'JetBrains Mono', monospace); letter-spacing: .06em;
  text-transform: uppercase; vertical-align: 1px;
  color: var(--mx-mint, #7CFFB2);
  background: color-mix(in srgb, var(--mx-mint, #7CFFB2) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--mx-mint, #7CFFB2) 38%, transparent);
  cursor: help;
}
.mx-af-note {
  margin: 2px 0 10px; font: 500 11.5px/1.5 Archivo, system-ui, sans-serif;
  color: var(--mx-ink3, #9b93ad);
}
.mx-af-note[data-tone="warn"] {
  color: var(--mx-gold, #FFD87C);
  border-inline-start: 2px solid color-mix(in srgb, var(--mx-gold, #FFD87C) 45%, transparent);
  padding-inline-start: 9px;
}

/* ══ OUTBOUND CARD LINK (mx_cardlink.js) ════════════════════════════════
   An exact product link and a name search are not the same promise, and
   the UI has to stop pretending they are. Exact reads as a destination;
   a search reads as a search, and says so on hover. */
.mx-xlink {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 8px;
  padding: 8px 12px; border-radius: 10px; text-decoration: none;
  font: 700 11.5px/1 Archivo, system-ui, sans-serif; letter-spacing: .02em;
  border: 1px solid var(--mx-line2, rgba(255, 255, 255, .14));
  background: var(--mx-panel, #120b1e); color: var(--mx-ink, #fff);
}
.mx-xlink:hover { border-color: var(--mx-mint, #7CFFB2); }
.mx-xlink[data-kind="product"] {
  border-color: color-mix(in srgb, var(--mx-mint, #7CFFB2) 45%, transparent);
  color: var(--mx-mint, #7CFFB2);
}
.mx-xlink[data-kind="search"] { color: var(--mx-ink2, #ccc); }
.mx-xlink[data-kind="search"]::after {
  content: 'search'; font: 700 8.5px/1 var(--mx-mono, 'JetBrains Mono', monospace);
  letter-spacing: .08em; text-transform: uppercase; opacity: .7;
  padding: 2px 5px; border-radius: 999px; border: 1px solid currentColor;
}

/* ══ VARIANT DISCLOSURE ═════════════════════════════════════════════════
   The $9,314 Dark Tyranitar row published a HOLOFOIL price under a label
   that said only "Dark Tyranitar - 20/109". The price was right; the
   label made it look invented. Wherever a printing-specific price is
   shown, the printing ships with it. */
.mx-variant {
  display: inline-block; margin-inline-start: 6px; padding: 1px 6px; border-radius: 6px;
  font: 700 9.5px/1.6 var(--mx-mono, 'JetBrains Mono', monospace); letter-spacing: .04em;
  color: var(--mx-gold, #FFD87C); vertical-align: 1px; white-space: nowrap;
  background: color-mix(in srgb, var(--mx-gold, #FFD87C) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--mx-gold, #FFD87C) 34%, transparent);
}
