Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

27.4 KB
Raw Blame
/* /pulse — the Money Pulse page. Feed styling lives in the shared component
   (src/shared/money-pulse.js); this sheet is the page chrome + stats panel.

   This page is intentionally MONOCHROME — it overrides the wallet violet accent
   (and the feed's green/amber semantics) to the site's ink ramp so the pulse
   reads as one calm, high-contrast surface. The scoped overrides at the bottom
   re-skin the shared feed component for this page only. */

/* Pure-black page surface — the pulse reads as one calm, high-contrast field
   regardless of the active theme. We force #000 and pin the dark ink/surface
   ramp on the body so light mode can't paint dark text on a black background. */
html[data-theme="dark"],
html[data-theme="light"] {
	background: #000;
}
body {
	margin: 0;
	background: #000;
	color-scheme: dark;
	/* Base type: without this the browser default (serif) leaks into every
	   element that doesn't set its own font-family — kicker, sub, toggles,
	   feed rows. Pin the brand body font so the page reads as one surface. */
	font-family: var(--font-body, 'Inter', system-ui, sans-serif);
	--bg-0: #0a0a0a;
	--bg-1: #1a1a1a;
	--ink: #e8e8e8;
	--ink-bright: #ffffff;
	--ink-dim: #888888;
	--ink-faint: rgba(255, 255, 255, 0.45);
	--surface-1: rgba(255, 255, 255, 0.03);
	--surface-2: rgba(255, 255, 255, 0.05);
	--surface-3: rgba(255, 255, 255, 0.08);
	--stroke: rgba(255, 255, 255, 0.08);
	--stroke-strong: rgba(255, 255, 255, 0.14);
}

.px-shell {
	max-width: 1080px;
	margin: 0 auto;
	padding: var(--space-xl, 40px) var(--space-md, 16px) var(--space-2xl, 64px);
	/* Monochrome accent for everything inside the page, including the shared feed. */
	--px-accent: var(--ink-bright, #fff);
	--px-accent-soft: rgba(255, 255, 255, 0.08);
	/* Re-point the wallet-identity violet to the ink ramp so embedded wallet chips
	   read monochrome on this page (the global wallet accent is untouched). */
	--wallet-accent:        var(--ink, #e8e8e8);
	--wallet-accent-strong: var(--ink-bright, #fff);
	--wallet-accent-soft:   rgba(255, 255, 255, 0.06);
	--wallet-accent-fill:   rgba(255, 255, 255, 0.10);
	--wallet-stroke:        rgba(255, 255, 255, 0.18);
	--wallet-stroke-strong: rgba(255, 255, 255, 0.30);
	--wallet-glow:          rgba(255, 255, 255, 0.30);
	--wallet-focus:         rgba(255, 255, 255, 0.60);
}

/* Hero */
.px-hero { text-align: center; margin-bottom: var(--space-xl, 40px); }
.px-kicker {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: var(--text-2xs, .68rem); letter-spacing: .14em; text-transform: uppercase;
	color: var(--ink-dim, #888); margin: 0 0 var(--space-sm, 12px);
}
.px-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-bright, #fff);
	box-shadow: 0 0 0 0 rgba(255,255,255,.6); animation: px-ping 2.4s ease infinite; }
@keyframes px-ping { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.45);} 70% { box-shadow: 0 0 0 8px rgba(255,255,255,0);} 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0);} }
.px-title {
	font-family: var(--font-display, 'Space Grotesk', sans-serif);
	font-size: clamp(2.2rem, 6vw, 3.4rem); font-weight: 700; line-height: 1.02;
	margin: 0 0 var(--space-sm, 12px); color: var(--ink-bright, #fff); letter-spacing: -.02em;
}
.px-title em { font-style: normal; color: var(--ink-bright, #fff); }
.px-sub { max-width: 620px; margin: 0 auto; color: var(--ink-dim, #999); font-size: var(--text-lg, 1.02rem); line-height: 1.5; }
.px-fineprint { font-size: var(--text-2xs, .68rem); text-align: left; margin: 0; color: var(--ink-faint, #666); }

/* Hero layout — network toggle + updated indicator in one row */
.px-hero-row { display: inline-flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center; margin-top: var(--space-md, 16px); }
.px-hero-row .px-net { margin-top: 0; }
.px-updated { font-size: var(--text-2xs, .64rem); color: var(--ink-faint, #555); letter-spacing: .04em; transition: color var(--duration-base) var(--ease-standard); }

/* Network toggle */
.px-net { display: inline-flex; gap: 2px; margin-top: var(--space-md, 16px); padding: 3px;
	background: var(--surface-1, rgba(255,255,255,.03)); border: 1px solid var(--stroke, rgba(255,255,255,.08));
	border-radius: var(--radius-pill, 999px); }
.px-net-btn { appearance: none; font: inherit; font-size: var(--text-sm, .8rem); font-weight: 500; cursor: pointer;
	color: var(--ink-dim, #888); background: transparent; border: none; border-radius: var(--radius-pill, 999px); padding: 6px 16px;
	transition: color var(--duration-fast) var(--ease-standard), background var(--duration-fast) var(--ease-standard); }
.px-net-btn:hover { color: var(--ink, #e8e8e8); }
.px-net-btn.active { color: var(--ink-bright, #fff); background: var(--surface-3, rgba(255,255,255,.08)); }
.px-net-btn:focus-visible { outline: 2px solid var(--ink-bright, #fff); outline-offset: 2px; }

/* Headline counters — a 4-col grid where the volume lead spans two cells, so the
   seven counters tile evenly (4 + 3 with the lead double-wide) with no orphan. */
.px-counters { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-sm, 10px); margin: var(--space-xl, 40px) 0 var(--space-md, 16px); }
.px-counter--lead { grid-column: span 2; }
.px-counter { background: var(--surface-1, rgba(255,255,255,.03)); border: 1px solid var(--stroke, rgba(255,255,255,.07));
	border-radius: var(--radius-lg, 14px); padding: var(--space-md, 16px) var(--space-sm, 14px); text-align: center;
	transition: border-color var(--duration-fast) var(--ease-standard), background var(--duration-fast) var(--ease-standard); }
.px-counter:hover { border-color: var(--stroke-strong, rgba(255,255,255,.14)); background: var(--surface-2, rgba(255,255,255,.05)); }
/* Clickable counters */
.px-counter[data-filter] { cursor: pointer; }
.px-counter[data-filter]:focus-visible { outline: 2px solid var(--ink-bright, #fff); outline-offset: 2px; }
.px-counter--active { border-color: var(--ink-bright, #fff) !important; background: var(--surface-3, rgba(255,255,255,.09)) !important; }
.px-counter--active dt { color: var(--ink, #e8e8e8); }
.px-counter--active dd { color: var(--ink-bright, #fff); }
.px-counter--lead { background: var(--surface-2, rgba(255,255,255,.05)); border-color: var(--stroke-strong, rgba(255,255,255,.14)); }
.px-counter dt { font-size: var(--text-2xs, .66rem); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-dim, #888); margin-bottom: 6px; }
.px-counter dd { margin: 0; font-family: var(--font-mono, monospace); font-size: clamp(1.4rem, 3.6vw, 2rem); font-weight: 700; color: var(--ink-bright, #fff); line-height: 1.05; }
.px-counter--lead dd { color: var(--ink-bright, #fff); }
.px-counter-sub { display: block; margin-top: 4px; font-family: var(--font-body, sans-serif); font-size: var(--text-2xs, .66rem); font-weight: 500; color: var(--ink-dim, #888); }

/* 7-day sparkline */
.px-spark { background: var(--surface-1, rgba(255,255,255,.03)); border: 1px solid var(--stroke, rgba(255,255,255,.07));
	border-radius: var(--radius-lg, 14px); padding: var(--space-md, 16px); margin-bottom: var(--space-xl, 32px); }
.px-spark-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: var(--space-sm, 12px); }
.px-spark-title { font-size: var(--text-2xs, .66rem); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-dim, #888); }
.px-spark-total { font-family: var(--font-mono, monospace); font-size: var(--text-sm, .8rem); font-weight: 700; color: var(--ink-bright, #fff); }
.px-spark-bars { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; align-items: end; height: 84px; }
.px-spark-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
.px-spark-bar { width: 100%; max-width: 40px; border-radius: 4px 4px 2px 2px; background: rgba(255,255,255,.18);
	min-height: 4px; transition: background var(--duration-fast) var(--ease-standard), transform var(--duration-fast) var(--ease-standard); transform-origin: bottom; }
.px-spark-col:hover .px-spark-bar { background: var(--ink-dim, #aaa); }
.px-spark-col--now .px-spark-bar { background: var(--ink-bright, #fff); }
.px-spark-lbl { font-size: var(--text-2xs, .62rem); color: var(--ink-faint, #666); letter-spacing: .03em; }
.px-spark-col--now .px-spark-lbl { color: var(--ink, #e8e8e8); }

/* ── Marketplace viability panel ───────────────────────────────────────────
   The honest demand dashboard: real $THREE skill purchases, GMV, repeat-buyer
   rate, trading pairs and take-rate. Featured surface above the feed grid. */
.px-market { background: var(--surface-1, rgba(255,255,255,.03)); border: 1px solid var(--stroke-strong, rgba(255,255,255,.14));
	border-radius: var(--radius-lg, 14px); padding: var(--space-md, 16px); margin-bottom: var(--space-xl, 32px); }
.px-market-h { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: var(--space-md, 14px); }
/* Wraps rather than overflowing: at 320px the title, the tag and the in-panel
   action do not fit on one line, and a nowrap action would push past the frame. */
.px-market-htxt { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; min-width: 0; max-width: 100%; }
.px-market-title { margin: 0; font-family: var(--font-display, sans-serif); font-size: var(--text-lg, 1.05rem); font-weight: 600; color: var(--ink-bright, #fff); }
.px-market-tag { font-family: var(--font-mono, monospace); font-size: var(--text-2xs, .64rem); font-weight: 600; letter-spacing: .03em;
	color: var(--ink-bright, #fff); background: var(--surface-3, rgba(255,255,255,.08)); border: 1px solid var(--stroke-strong, rgba(255,255,255,.14));
	border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.px-market-tag--off { color: var(--ink-faint, #666); border-color: var(--stroke, rgba(255,255,255,.07)); }
.px-market-sub { flex: 1 1 100%; font-size: var(--text-2xs, .66rem); color: var(--ink-dim, #888); line-height: 1.4; }
.px-market-kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-sm, 10px); margin-bottom: var(--space-md, 16px); }
.px-kpi { background: var(--surface-2, rgba(255,255,255,.05)); border: 1px solid var(--stroke, rgba(255,255,255,.07));
	border-radius: var(--radius-md, 10px); padding: 10px 12px; transition: border-color var(--duration-fast) var(--ease-standard), background var(--duration-fast) var(--ease-standard), transform var(--duration-fast) var(--ease-standard); }
.px-kpi:hover { border-color: var(--stroke-strong, rgba(255,255,255,.14)); background: var(--surface-3, rgba(255,255,255,.07)); transform: translateY(-1px); }
.px-kpi dt { font-size: var(--text-2xs, .62rem); text-transform: uppercase; letter-spacing: .07em; color: var(--ink-dim, #888); margin-bottom: 5px; }
.px-kpi dd { margin: 0; font-family: var(--font-mono, monospace); font-size: clamp(1.05rem, 2.4vw, 1.4rem); font-weight: 700; color: var(--ink-bright, #fff); line-height: 1.05; }
.px-kpi-sub { display: block; margin-top: 3px; font-size: var(--text-2xs, .6rem); color: var(--ink-faint, #666); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Take-rate is the revenue KPI — give it a hairline accent so the eye lands on it. */
.px-kpi--take { border-color: var(--stroke-strong, rgba(255,255,255,.16)); background: var(--surface-3, rgba(255,255,255,.07)); }
.px-market-body { display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--space-sm, 12px); align-items: stretch; }
.px-market-spark, .px-market-skills { background: var(--surface-2, rgba(255,255,255,.05)); border: 1px solid var(--stroke, rgba(255,255,255,.07));
	border-radius: var(--radius-md, 10px); padding: var(--space-sm, 12px) var(--space-md, 14px); }
.px-market-spark .px-spark-bar--mkt { background: rgba(255,255,255,.30); }
.px-market-spark .px-spark-col:hover .px-spark-bar--mkt { background: var(--ink-bright, #fff); }
.px-skill-row + .px-skill-row { border-top: 1px solid var(--stroke, rgba(255,255,255,.06)); }
/* Trading panel: a touch dimmer than the marketplace bars so the two read distinct
   in the same monochrome ramp; today's bar still resolves to full ink. */
.px-trading .px-spark-bar--trade { background: rgba(255,255,255,.22); }
.px-trading .px-spark-col:hover .px-spark-bar--trade { background: var(--ink, #e8e8e8); }
.px-trading .px-spark-col--now .px-spark-bar--trade { background: var(--ink-bright, #fff); }
/* Realized P&L sign — monochrome: the glyph and weight carry direction, never colour.
   A gain reads bright + tight; a loss reads dim. No green/red anywhere. */
.px-pnl--up { color: var(--ink-bright, #fff); letter-spacing: -.01em; }
.px-pnl--down { color: var(--ink-dim, #9a9a9a); }
/* P&L KPI gets a hairline-stronger frame so the bottom-line number reads as the
   panel's anchor without introducing any colour. */
.px-kpi--pnl { border-color: var(--stroke-strong, rgba(255,255,255,.14)); background: var(--surface-2, rgba(255,255,255,.05)); }
/* In-panel "show trades in feed" action — a quiet ghost button in the header row. */
.px-market-action { appearance: none; font: inherit; font-size: var(--text-2xs, .66rem); font-weight: 600; cursor: pointer;
	color: var(--ink-dim, #aaa); background: transparent; border: 1px solid var(--stroke, rgba(255,255,255,.10));
	border-radius: var(--radius-pill, 999px); padding: 4px 11px; white-space: nowrap; margin-left: auto; max-width: 100%;
	transition: color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard), background var(--duration-fast) var(--ease-standard); }
.px-market-action:hover { color: var(--ink-bright, #fff); border-color: var(--stroke-strong, rgba(255,255,255,.22)); background: var(--surface-2, rgba(255,255,255,.05)); }
.px-market-action:active { background: var(--surface-3, rgba(255,255,255,.10)); transform: translateY(0.5px); }
.px-market-action:focus-visible { outline: 2px solid var(--ink-bright, #fff); outline-offset: 2px; }

/* Viability CTA — the quiet bridge from the live feed to the /viability page where
   the marketplace + trading "honest signal" panels now live in full. */
.px-viability-cta { display: flex; align-items: center; gap: var(--space-md, 14px); margin-bottom: var(--space-xl, 32px);
	padding: var(--space-md, 14px) var(--space-md, 16px); border-radius: var(--radius-lg, 14px);
	background: var(--surface-1, rgba(255,255,255,.03)); border: 1px solid var(--stroke-strong, rgba(255,255,255,.14));
	color: inherit; text-decoration: none; transition: border-color var(--duration-fast) var(--ease-standard), background var(--duration-fast) var(--ease-standard), transform var(--duration-fast) var(--ease-standard); }
.px-viability-cta:hover { border-color: var(--ink-bright, #fff); background: var(--surface-2, rgba(255,255,255,.05)); transform: translateY(-1px); }
.px-viability-cta:focus-visible { outline: 2px solid var(--ink-bright, #fff); outline-offset: 2px; }
.px-viability-cta-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.px-viability-cta-txt strong { font-family: var(--font-display, sans-serif); font-size: var(--text-lg, 1.05rem); font-weight: 600; color: var(--ink-bright, #fff); }
.px-viability-cta-txt small { font-size: var(--text-2xs, .66rem); color: var(--ink-dim, #888); line-height: 1.4; }
.px-viability-cta-go { margin-left: auto; font-family: var(--font-mono, monospace); font-size: 1.15rem; color: var(--ink-dim, #aaa); transition: transform var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard); }
.px-viability-cta:hover .px-viability-cta-go { transform: translateX(3px); color: var(--ink-bright, #fff); }
/* One-line plain-language readout under the KPIs — the human summary of the week. */
.px-trade-insight { margin: 0 0 var(--space-md, 16px); font-size: var(--text-sm, .8rem); line-height: 1.45; color: var(--ink-dim, #aaa); }
.px-skill-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 8px; border-radius: var(--radius-md, 9px); }
.px-skill-row:hover { background: var(--surface-2, rgba(255,255,255,.05)); }
.px-skill-name { font-size: var(--text-sm, .8rem); font-weight: 600; color: var(--ink, #e8e8e8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.px-skill-meta { flex: 0 0 auto; font-family: var(--font-mono, monospace); font-size: var(--text-sm, .78rem); font-weight: 700; color: var(--ink-bright, #fff); text-align: right; }
.px-skill-meta small { display: block; font-weight: 400; color: var(--ink-faint, #666); font-size: var(--text-2xs, .6rem); }

/* Feed header — title + active filter bar on the same row */
.px-feed-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: var(--space-md, 16px); }
.px-feed-header .px-section-h { margin-bottom: 0; }
.px-filter-bar { display: flex; align-items: center; gap: 8px; }
.px-filter-label { font-size: var(--text-2xs, .66rem); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-dim, #888); }
.px-filter-clear { appearance: none; background: none; border: 1px solid var(--stroke, rgba(255,255,255,.08)); border-radius: var(--radius-pill, 999px);
	padding: 3px 10px; font: inherit; font-size: var(--text-2xs, .66rem); font-weight: 500; color: var(--ink-dim, #888); cursor: pointer;
	transition: border-color var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard); }
.px-filter-clear:hover { border-color: var(--stroke-strong, rgba(255,255,255,.18)); color: var(--ink-bright, #fff); }
.px-filter-clear:focus-visible { outline: 2px solid var(--ink-bright, #fff); outline-offset: 2px; }

/* Layout: feed + stats rail */
.px-grid { display: grid; grid-template-columns: 1fr 320px; gap: var(--space-lg, 24px); align-items: start; }
.px-main { min-width: 0; }
.px-section-h { font-family: var(--font-display, sans-serif); font-size: var(--text-lg, 1.05rem); font-weight: 600; color: var(--ink-bright, #fff); margin: 0 0 var(--space-md, 16px); }

/* Stats rail */
.px-rail { position: sticky; top: 80px; display: flex; flex-direction: column; gap: var(--space-lg, 20px); }
.px-card { background: var(--surface-1, rgba(255,255,255,.03)); border: 1px solid var(--stroke, rgba(255,255,255,.07)); border-radius: var(--radius-lg, 14px); padding: var(--space-md, 16px); }
.px-card--hl { background: var(--surface-2, rgba(255,255,255,.05)); border-color: var(--stroke-strong, rgba(255,255,255,.14)); }
.px-card-h { display: flex; align-items: center; justify-content: space-between; font-size: var(--text-sm, .8rem); font-weight: 600; color: var(--ink-bright, #fff); margin: 0 0 var(--space-sm, 12px); }
.px-card-h small { font-weight: 400; color: var(--ink-faint, #666); font-size: var(--text-2xs, .66rem); }

.px-lb-row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--radius-md, 9px); text-decoration: none; color: inherit; transition: background var(--duration-fast) var(--ease-standard); }
.px-lb-row:hover { background: var(--surface-2, rgba(255,255,255,.05)); }
.px-lb-row:focus-visible { outline: 2px solid var(--ink-bright, #fff); outline-offset: 1px; }
.px-lb-av { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; background: var(--surface-3, rgba(255,255,255,.08)); border: 1px solid var(--stroke, rgba(255,255,255,.08)); }
.px-lb-av--mono { display: grid; place-items: center; font-weight: 600; color: var(--ink-dim, #888); font-size: .78rem; }
.px-lb-name { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: var(--text-sm, .8rem); font-weight: 600; color: var(--ink, #e8e8e8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.px-lb-name small { font-weight: 400; color: var(--ink-faint, #666); font-size: var(--text-2xs, .64rem); }
.px-lb-chip { font-weight: 400; }
.px-lb-metric { flex: 0 0 auto; font-family: var(--font-mono, monospace); font-size: var(--text-sm, .8rem); font-weight: 700; color: var(--ink-bright, #fff); text-align: right; }
.px-lb-metric small { display: block; font-weight: 400; color: var(--ink-faint, #666); font-size: var(--text-2xs, .64rem); }
.px-lb-empty, .px-stats-err { color: var(--ink-dim, #888); font-size: var(--text-sm, .8rem); padding: 8px; }
.px-lb-empty a { color: var(--ink-bright, #fff); }

/* Rail + stats error: say what broke, say when it retries, offer the retry now. */
#px-stats:empty { display: none; }
#px-stats { margin: var(--space-md, 16px) 0 0; }
.px-stats-err { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px;
	background: var(--surface-1, rgba(255,255,255,.03)); border: 1px solid var(--stroke, rgba(255,255,255,.07));
	border-radius: var(--radius-lg, 14px); line-height: 1.45; }
.px-stats-err p { margin: 0; flex: 1 1 190px; min-width: 0; }
.px-lb-err { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px;
	color: var(--ink-dim, #888); font-size: var(--text-sm, .8rem); line-height: 1.45; }
.px-lb-err p { margin: 0; flex: 1 1 140px; min-width: 0; }
.px-retry { appearance: none; font: inherit; font-size: var(--text-2xs, .7rem); font-weight: 600; cursor: pointer;
	color: var(--ink-bright, #fff); background: var(--surface-2, rgba(255,255,255,.05));
	border: 1px solid var(--stroke-strong, rgba(255,255,255,.16)); border-radius: var(--radius-pill, 999px);
	min-height: 30px; padding: 6px 14px; flex: 0 0 auto;
	transition: background var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard); }
.px-retry:hover { background: var(--surface-3, rgba(255,255,255,.09)); border-color: var(--ink-bright, #fff); }
.px-retry:focus-visible { outline: 2px solid var(--ink-bright, #fff); outline-offset: 2px; }
.px-retry[disabled] { opacity: .55; cursor: progress; }

/* Rail loading: three ghost rows sized like the real ones, so the card never
   jumps when the data lands and never sits on a bare "Loading" string. */
.px-lb-skels { display: flex; flex-direction: column; gap: 4px; }
.px-lb-skel { height: 46px; border-radius: var(--radius-md, 9px);
	background: linear-gradient(90deg, var(--surface-2, rgba(255,255,255,.05)) 25%, var(--surface-3, rgba(255,255,255,.11)) 50%, var(--surface-2, rgba(255,255,255,.05)) 75%);
	background-size: 200% 100%; animation: px-skel 1.4s linear infinite; }

/* ── Monochrome re-skin of the shared Money Pulse feed (this page only) ──
   The component defaults to the wallet violet; on /pulse we drive it to the
   ink ramp so tips/trades/launches read as one calm monochrome stream. */
.px-shell .mp { --mp-accent: var(--ink-bright, #fff); --mp-accent-soft: rgba(255,255,255,.08); }
.px-shell .mp-k-tip .mp-glyph,
.px-shell .mp-k-launch .mp-glyph,
.px-shell .mp-k-purchase .mp-glyph { color: var(--ink-bright, #fff); }
.px-shell .mp-k-snipe .mp-glyph { color: var(--ink, #e8e8e8); }
.px-shell .mp-k-trade .mp-glyph,
.px-shell .mp-k-pay .mp-glyph { color: var(--ink-dim, #888); }
.px-shell .mp-livedot::before { background: var(--ink-bright, #fff); animation-name: px-ping; }
.px-shell .mp-livedot[data-state="paused"]::before { background: var(--ink-faint, #555); }
.px-shell .mp-empty-sub a { color: var(--ink-bright, #fff); }

/* ── Panel lifecycle: loading / ready / error ──────────────────────────────
   A viability panel is never a blank frame. While its live read is in flight the
   figures are masked by skeletons that hold the exact final layout, so nothing
   reflows when the numbers land. If the read fails the body is replaced by an
   actionable notice rather than a stale or invented number. */
.px-panel-err { display: none; }
[data-state="error"] .px-panel-err { display: block; }
[data-state="error"] .px-panel-live { display: none; }
[data-state="error"] .px-market-tag { display: none; }
.px-panel-err-t { margin: 0 0 6px; font-family: var(--font-display, sans-serif); font-size: var(--text-sm, .85rem); font-weight: 600; color: var(--ink-bright, #fff); }
.px-panel-err-d { margin: 0 0 5px; max-width: 62ch; font-size: var(--text-2xs, .7rem); line-height: 1.5; color: var(--ink-dim, #888); }
.px-panel-err-d code { font-family: var(--font-mono, monospace); font-size: .95em; color: var(--ink, #e8e8e8); background: var(--surface-2, rgba(255,255,255,.05)); border-radius: 4px; padding: 1px 5px; }
.px-panel-err-why { margin: 0 0 var(--space-md, 14px); max-width: 62ch; font-size: var(--text-2xs, .7rem); line-height: 1.5; color: var(--ink, #d0d0d0); }
.px-panel-err-act { display: flex; flex-wrap: wrap; gap: 8px; }
.px-panel-err-act .px-market-action { margin-left: 0; text-decoration: none; }
.px-panel-err-act .px-market-action[disabled] { opacity: .5; cursor: progress; }

/* Skeletons: same box, same rhythm, no text. Masking the value elements (rather
   than swapping in placeholder markup) keeps the ready state a single repaint. */
@keyframes px-skel { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
[data-state="loading"] .px-kpi dd::after,
[data-state="loading"] .px-market-tag::after,
[data-state="loading"] .px-spark-total::after,
[data-state="loading"] .px-spark-bars::after,
[data-state="loading"] .px-market-skills > div::after {
	content: ""; display: block; border-radius: 6px;
	background: linear-gradient(90deg, var(--surface-2, rgba(255,255,255,.05)) 25%, var(--surface-3, rgba(255,255,255,.11)) 50%, var(--surface-2, rgba(255,255,255,.05)) 75%);
	background-size: 200% 100%; animation: px-skel 1.4s linear infinite;
}
[data-state="loading"] .px-kpi dd::after { width: 70%; height: 1.15em; }
[data-state="loading"] .px-market-tag { border-color: transparent; background: transparent; padding: 0; }
[data-state="loading"] .px-market-tag::after { width: 86px; height: 1.1em; }
[data-state="loading"] .px-spark-total::after { width: 74px; height: .95em; }
[data-state="loading"] .px-spark-bars { display: block; }
[data-state="loading"] .px-spark-bars::after { width: 100%; height: 100%; }
[data-state="loading"] .px-market-skills > div::after { width: 100%; height: 92px; }
[data-state="loading"] .px-counter dd,
[data-state="loading"] .px-counter-sub,
[data-state="loading"] .px-spark-total { position: relative; color: transparent; }
[data-state="loading"] .px-counter dd::after,
[data-state="loading"] .px-counter-sub::after {
	content: ""; position: absolute; inset: 0; right: auto; border-radius: 6px;
	background: linear-gradient(90deg, var(--surface-2, rgba(255,255,255,.05)) 25%, var(--surface-3, rgba(255,255,255,.11)) 50%, var(--surface-2, rgba(255,255,255,.05)) 75%);
	background-size: 200% 100%; animation: px-skel 1.4s linear infinite;
}
[data-state="loading"] .px-counter dd::after { width: 62%; }
[data-state="loading"] .px-counter-sub::after { width: 78%; }
[data-state="loading"] .px-spark-total::after { position: absolute; inset: 0; right: auto; height: auto; }
[data-state="loading"] .px-trade-insight { display: none; }
@media (prefers-reduced-motion: reduce) {
	.px-lb-skel,
	[data-state="loading"] .px-counter dd::after,
	[data-state="loading"] .px-counter-sub::after,
	[data-state="loading"] .px-kpi dd::after,
	[data-state="loading"] .px-market-tag::after,
	[data-state="loading"] .px-spark-total::after,
	[data-state="loading"] .px-spark-bars::after,
	[data-state="loading"] .px-market-skills > div::after { animation: none; }
}

@media (max-width: 880px) {
	.px-grid { grid-template-columns: 1fr; }
	.px-rail { position: static; flex-direction: column; }
	.px-counters { grid-template-columns: repeat(3, 1fr); }
	.px-counter--lead { grid-column: span 3; }
	.px-market-kpis { grid-template-columns: repeat(3, 1fr); }
	.px-market-body { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
	.px-counters { grid-template-columns: repeat(2, 1fr); }
	.px-counter--lead { grid-column: span 2; }
	.px-market-kpis { grid-template-columns: repeat(2, 1fr); }
	.px-spark-lbl { font-size: 0.55rem; }
}