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.

Redesign /oracle/coin pages in the markets-hub style and link them from Coin Radar

nirholas6fcfc30c4d86
diff --git a/CHANGELOG.md b/CHANGELOG.md
index dc74ed80a..3351adcaa 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -8,10 +8,11 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr
- **Docs · Assistant widget** (`/docs/assistant-widget`) — Add a 3D avatar assistant to any website: the one-tag script, the @three-ws/assistant npm package, and the assistant-widget MCP server for AI agents.
- **Tutorial · Add a 3D Avatar Assistant** (`/tutorials/add-a-3d-assistant`) — Step-by-step: add a floating 3D avatar assistant to any website with one script tag, configure the avatar, background, and brand, drive it from your own code, or have an AI agent generate the embed via MCP.
+- **Coin pages for new launches, redesigned in the markets-hub style** — Every pump.fun launch on Coin Radar now links straight through to a full coin page at /oracle/coin/<mint>, rebuilt in the same clean editorial design as the /coin/bitcoin markets pages. The page keeps everything it had (Oracle conviction, live market intel from six sources, agent transactions, a live trade tape) and adds the complete Launch Intelligence read from the radar engine: quality score, organic vs bundle, risk flags, the full signal breakdown, smart-money buyers, and the top-trader ledger. The live candles chart stays, joined by a native line view and an agent-trades overlay, and the whole page works in light and dark themes. (`/radar`) `[feature, improvement]`
- **Concierge ships to npm and the MCP registry, with a full examples set** — The Concierge chat widget is now installable as the @three-ws/concierge npm package, and there is a companion Model Context Protocol server, @three-ws/concierge-mcp, on the official MCP registry. That server lets any AI assistant ask a website's concierge a question (it fetches the page and answers grounded in the real content), generate the copy-paste embed code for a site, and list the available 3D avatars. Six runnable examples now ship with the SDK, covering the one-tag install, the web component, the imperative API, a custom GLB avatar, a React wrapper, and pointing the widget at your own answer backend. (`/docs/concierge`) `[sdk, docs]`
- **Language links now always win, and the switcher stays out of the way** — Two fixes for the new 41-language experience. Opening a link with a language in the URL (like ?lang=te for Telugu) now always shows that language, even if you had previously browsed in another one; before, your first visit's language silently overrode every shared link. The floating language switcher also joins the site's shared bottom-corner layout, so it no longer overlaps the Getting Started guide. (`/what-is?lang=te`) `[fix, improvement]`
- **The assistant widget ships as an npm package and an MCP server** — The 3D avatar assistant widget is now installable three ways. Beyond the one-tag script, there is an npm package, @three-ws/assistant, for bundler projects (the one-tag build is generated from it, so they never drift), and a free MCP server, @three-ws/assistant-mcp, published to the official Model Context Protocol registry as io.github.nirholas/assistant-widget. Any AI agent (Claude Code, Cursor, Claude Desktop) can now ask for a widget in plain language and get back a paste-ready embed: build_assistant_widget turns a config into a script tag, a frame URL, and a ThreeAssistant.init() call, and list_assistant_options returns every avatar, background, and mode. Full developer docs at /docs/assistant-widget and a step-by-step tutorial walk through every option, the JavaScript API, and the agent workflow. (`/docs/assistant-widget`) `[sdk, feature, docs]`
-- **TradingView charts on every coin page** — Every /coin page (like /coin/bitcoin) now has a chart-source toggle: keep the fast native line chart or switch to a full TradingView advanced chart with candlesticks, indicators, and drawing tools. Your choice is remembered across coins and visits, and the widget follows the site theme. (`/coin/bitcoin`) `[feature]`
+- **TradingView charts on every coin page** — Every /coin page (like /coin/bitcoin) now has a chart-source toggle. Keep the fast native line chart, or switch to a full advanced candlestick chart with indicators and drawing tools. Listed coins open on TradingView; Solana DEX tokens that TradingView doesn't carry open on DexScreener instead, so the advanced view works on every coin. Your choice is remembered across coins and visits, and the chart follows the site theme. (`/coin/bitcoin`) `[feature]`
## 2026-07-18
diff --git a/api/oracle-share.js b/api/oracle-share.js
index ff6613d65..f4bc51e16 100644
--- a/api/oracle-share.js
+++ b/api/oracle-share.js
@@ -177,13 +177,15 @@ function pillarBar(kind, label, val) {
<div class="track"><div class="fill" style="width:${v || 0}%"></div></div></div>`;
}
-// Server-rendered hero — the conviction verdict, above the fold, from the DB for
+// Server-rendered header in the markets-hub (cv) design: icon, name, ticker,
+// conviction card, meta chips, contract row, and action pills, from the DB for
// scored coins, or the coin's real pump.fun identity for a launch Oracle hasn't
// observed yet (the client patches in the score once it lazy-scores). Either way
-// the hero shows the real coin, never a bare placeholder.
+// the header shows the real coin, never a bare placeholder. The price row is a
+// hydration target the client fills from /api/oracle/market.
function heroHtml({ mint, row, pump, origin }) {
const symRaw = row?.symbol || pump?.symbol || null;
- const sym = symRaw ? esc(symRaw) : shortMint(mint);
+ const sym = symRaw ? `$${esc(symRaw)}` : shortMint(mint);
const name = esc(row?.name || pump?.name || '');
const score = row ? Number(row.score ?? 0) : null;
const tier = row?.tier || 'watch';
@@ -191,8 +193,8 @@ function heroHtml({ mint, row, pump, origin }) {
const sw = Number(row?.smart_wallet_count || 0);
const imgUri = row?.image_uri || pump?.image || '';
const img = imgUri
- ? `<img class="oc-img" src="${esc(imgUri)}" alt="${sym}" width="84" height="84" loading="eager">`
- : `<div class="oc-img">${esc((symRaw || mint)[0] || '?').toUpperCase()}</div>`;
+ ? `<img class="coin-icon" src="${esc(imgUri)}" alt="" width="64" height="64" loading="eager" data-no-dark-filter>`
+ : `<div class="coin-icon oc-icon-letter" aria-hidden="true">${esc(((symRaw || mint)[0] || '?').toUpperCase())}</div>`;
// Dial: the score for scored coins; a "reading" state for fresh launches that
// the client fills in (id ocDial) once /api/oracle/coin returns a verdict.
@@ -215,7 +217,7 @@ function heroHtml({ mint, row, pump, origin }) {
? '<span class="chip sm">graduated ✓</span>'
: (curvePct != null ? `<span class="chip">curve <b>${Math.round(curvePct)}%</b></span>` : ''))
: '';
- const metaChips = `<div class="coin-meta" style="margin-top:14px">
+ const metaChips = `<div class="coin-meta oc-head-chips">
${cat ? `<span class="chip cat">${esc(cat)}</span>` : ''}
${sw > 0 ? `<span class="chip sm">${sw} proven wallet${sw === 1 ? '' : 's'}</span>` : ''}
${row?.scored_at ? `<span class="chip">scored <b>${esc(agoServer(row.scored_at))}</b></span>` : ''}
@@ -224,16 +226,16 @@ function heroHtml({ mint, row, pump, origin }) {
${pump?.is_live ? '<span class="chip sm">live now</span>' : ''}
</div>`;
- const actions = `<div class="dr-actions">
- <a class="dr-act" href="${esc(pumpUrl(mint))}" target="_blank" rel="noopener">pump.fun ↗</a>
- <a class="dr-act" href="https://solscan.io/token/${esc(mint)}" target="_blank" rel="noopener">solscan ↗</a>
- <a class="dr-act" href="/coin3d?mint=${encodeURIComponent(mint)}" title="Open the full 3D coin profile">View in 3D ↗</a>
- <a class="dr-act" href="/launches/${esc(mint)}">Launch details ↗</a>
- <a class="dr-act" href="/trades">Trade feed ↗</a>
- <button class="dr-act dr-watch" id="ocWatch" type="button" aria-pressed="false">☆ Watch</button>
- <button class="dr-act" id="ocCopyMint" type="button" title="Copy mint address">Copy mint</button>
- <button class="dr-act" id="ocCopyLink" type="button" title="Copy shareable link">Copy link</button>
- <a class="dr-act dr-share" href="${esc(shareTweet(mint, row, pump, origin))}" target="_blank" rel="noopener">Share ↗</a>
+ const actions = `<div class="cv-pills oc-actions">
+ <a class="cv-pill" href="${esc(pumpUrl(mint))}" target="_blank" rel="noopener">pump.fun ↗</a>
+ <a class="cv-pill" href="https://solscan.io/token/${esc(mint)}" target="_blank" rel="noopener">Solscan ↗</a>
+ <a class="cv-pill" href="/coin3d?mint=${encodeURIComponent(mint)}" title="Open the full 3D coin profile">View in 3D</a>
+ <a class="cv-pill" href="/launches/${esc(mint)}">Launch details</a>
+ <a class="cv-pill" href="/trades">Trade feed</a>
+ <a class="cv-pill" href="/oracle">Oracle feed</a>
+ <button class="cv-pill" id="ocWatch" type="button" aria-pressed="false">☆ Watch</button>
+ <button class="cv-pill" id="ocCopyLink" type="button" title="Copy shareable link">Copy link</button>
+ <a class="cv-pill" href="${esc(shareTweet(mint, row, pump, origin))}" target="_blank" rel="noopener">Share ↗</a>
</div>`;
// The coin's own words. Server-known only for pump-identified launches; for
@@ -241,17 +243,31 @@ function heroHtml({ mint, row, pump, origin }) {
const desc = (pump?.description || '').trim().slice(0, 400);
const descHtml = `<p class="oc-desc" id="ocDesc"${desc ? '' : ' hidden'}>${esc(desc)}</p>`;
- return `<div class="oc-hero" id="ocHeroDynamic">
- ${img}
- <div class="oc-id">
- <div class="oc-sym">${sym}${name ? `<span class="oc-name">${name}</span>` : ''}</div>
- <div class="oc-mint">${esc(shortMint(mint))}</div>
- ${descHtml}
- <div class="oc-topgrid">${dial}${pillars}</div>
- ${metaChips}
- ${actions}
+ return `<section aria-label="Coin overview">
+ <div class="cv-coin-head oc-head" id="ocHeroDynamic">
+ ${img}
+ <div class="oc-head-main">
+ <div class="title-row">
+ <h1>${name || sym}</h1>
+ ${symRaw && name ? `<span class="ticker">${sym}</span>` : ''}
+ </div>
+ <div class="cv-price-row oc-price-row" id="ocPriceRow" hidden>
+ <span class="cv-price cv-mono" id="ocPrice"></span>
+ <div class="oc-price-chips" id="ocPriceChips"></div>
+ </div>
+ ${descHtml}
+ ${metaChips}
+ <div class="oc-contract-row">
+ <span class="cv-contract"><span class="oc-mint-addr" title="${esc(mint)}">${esc(mint)}</span><button type="button" id="ocCopyMint" title="Copy mint address">Copy</button></span>
+ </div>
+ ${actions}
+ </div>
+ <div class="oc-conv-card" aria-label="Oracle conviction">
+ ${dial}
+ ${pillars}
+ </div>
</div>
- </div>`;
+ </section>`;
}
function pumpUrl(mint) { return `https://pump.fun/coin/${mint}`; }
@@ -279,8 +295,10 @@ function jsonForScript(obj) {
export function renderHtml({ mint, row, pump, meta, pageUrl, ogImage, origin }) {
const t = esc(meta.title);
const d = esc(meta.desc);
+ const symRaw = row?.symbol || pump?.symbol || null;
+ const crumb = symRaw ? `$${esc(symRaw)}` : esc(shortMint(mint));
return `<!doctype html>
-<html lang="en">
+<html lang="en" class="cv-page">
<head>
<script>/* three.ws theme boot — no-flash */(function(){try{var m=localStorage.getItem('twx_theme');var l=m==='auto'?(window.matchMedia&&window.matchMedia('(prefers-color-scheme: light)').matches):m==='light';document.documentElement.setAttribute('data-theme',l?'light':'dark');}catch(e){document.documentElement.setAttribute('data-theme','dark');}})();</script>
<meta charset="utf-8">
@@ -320,15 +338,22 @@ export function renderHtml({ mint, row, pump, meta, pageUrl, ogImage, origin })
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
<link rel="stylesheet" href="/fonts/fonts.css">
<link rel="stylesheet" href="/nav.css">
+ <link rel="stylesheet" href="/src/coin-pages.css">
<link rel="stylesheet" href="/oracle-coin.css">
<link rel="stylesheet" href="/footer.css">
</head>
<body>
- <div id="nav-container"></div>
+ <header><div id="nav-container"></div></header>
<script defer src="/nav.js"></script>
- <main class="wrap">
- <a class="oc-back" href="/oracle">← Oracle feed</a>
+ <main class="cv-container">
+ <nav class="cv-crumbs" aria-label="Breadcrumb">
+ <a href="/">Home</a>
+ <span class="sep" aria-hidden="true">›</span>
+ <a href="/radar">Coin Radar</a>
+ <span class="sep" aria-hidden="true">›</span>
+ <span class="here">${crumb}</span>
+ </nav>
${heroHtml({ mint, row, pump, origin })}
<div class="oc-body" id="ocDeep">
<div class="oc-spinner" aria-label="Loading conviction"></div>
diff --git a/data/changelog.json b/data/changelog.json
index bcbb18302..d0dcc32f9 100644
--- a/data/changelog.json
+++ b/data/changelog.json
@@ -4,7 +4,7 @@
{
"date": "2026-07-19",
"title": "TradingView charts on every coin page",
- "summary": "Every /coin page (like /coin/bitcoin) now has a chart-source toggle: keep the fast native line chart or switch to a full TradingView advanced chart with candlesticks, indicators, and drawing tools. Your choice is remembered across coins and visits, and the widget follows the site theme.",
+ "summary": "Every /coin page (like /coin/bitcoin) now has a chart-source toggle. Keep the fast native line chart, or switch to a full advanced candlestick chart with indicators and drawing tools. Listed coins open on TradingView; Solana DEX tokens that TradingView doesn't carry open on DexScreener instead, so the advanced view works on every coin. Your choice is remembered across coins and visits, and the chart follows the site theme.",
"tags": [
"feature"
],
@@ -14796,6 +14796,16 @@
"improvement"
],
"link": "/what-is?lang=te"
+ },
+ {
+ "date": "2026-07-19",
+ "title": "Coin pages for new launches, redesigned in the markets-hub style",
+ "summary": "Every pump.fun launch on Coin Radar now links straight through to a full coin page at /oracle/coin/<mint>, rebuilt in the same clean editorial design as the /coin/bitcoin markets pages. The page keeps everything it had (Oracle conviction, live market intel from six sources, agent transactions, a live trade tape) and adds the complete Launch Intelligence read from the radar engine: quality score, organic vs bundle, risk flags, the full signal breakdown, smart-money buyers, and the top-trader ledger. The live candles chart stays, joined by a native line view and an agent-trades overlay, and the whole page works in light and dark themes.",
+ "tags": [
+ "feature",
+ "improvement"
+ ],
+ "link": "/radar"
}
]
}
diff --git a/docs/oracle.md b/docs/oracle.md
index 28e877063..f5eac1fe1 100644
--- a/docs/oracle.md
+++ b/docs/oracle.md
@@ -219,7 +219,7 @@ This is where the engine earns its keep. One score, many consumers.
**Alerts and the social layer.** Armed agents alert their owners on Telegram on entries and on conviction drops for held coins. And any user can follow any agent at `/api/oracle/follow`, the watch tier of social copy-trading: pick an agent, set your own minimum score, and get pinged when it acts. The test-alert endpoint lets you verify your wiring before anything real fires.
-**The coin pages.** Every Oracle coin page fuses conviction with a live market intel aggregator that fans out to six real sources in parallel: DexScreener, the pump.fun API, GeckoTerminal, GoPlus, Birdeye, and CoinGecko. Price, liquidity, FDV, bonding curve progress, holder count, top ten concentration, mint and freeze authority, all in one view, every number traced to a live upstream. Each source is isolated, so one being down degrades that slice to null instead of failing the page. It also shows the who-is-in breakdown: every early wallet labeled by archetype and track record. That trader-classification surface is what the product is built around.
+**The coin pages.** Every Oracle coin page (`/oracle/coin/<mint>`) renders in the markets-hub design, the same editorial system as `/coin/bitcoin`: breadcrumbs, a coin header with the live price and 24h/7d change chips, a conviction card with the score dial and four pillar bars, and stacked full-width sections. It fuses conviction with a live market intel aggregator that fans out to six real sources in parallel: DexScreener, the pump.fun API, GeckoTerminal, GoPlus, Birdeye, and CoinGecko. Price, liquidity, FDV, bonding curve progress, holder count, top ten concentration, mint and freeze authority, all in one view, every number traced to a live upstream. Each source is isolated, so one being down degrades that slice to null instead of failing the page. A Launch Intelligence section brings the Coin Radar engine's first-90-seconds read onto the same page: quality score, organic versus bundle, risk flags, the full signal breakdown, smart-money buyers, and the top-trader ledger. It also shows the who-is-in breakdown: every early wallet labeled by archetype and track record. That trader-classification surface is what the product is built around. The price chart keeps the TradingView-grade DexScreener candles embed alongside a native line view and an agent-trades view that plots every three.ws agent buy and sell on the series.
## The x402 layer: intel with a price tag
diff --git a/docs/radar.md b/docs/radar.md
index 172d7753d..97977f0e9 100644
--- a/docs/radar.md
+++ b/docs/radar.md
@@ -39,7 +39,8 @@ The UI colors quality as Healthy at 70 and up, Mixed from 40 to 69, and High ris
2. Use the toolbar to filter by narrative category, drag the minimum-quality slider, toggle smart-money-only or news, and hide flagged coins (a client-side drop of danger-flagged launches). Sort by newest, quality, smart money, buyers, or volume. All filters serialize to the URL for shareable views.
3. Press `/` to focus search and type a name, ticker, or mint. Press `g` or `l` to switch grid and list, `r` to refresh.
4. Click any coin for the drawer: the full signal grid, the top-50 wallet ledger, the smart-money notable roster, the outcome (if labeled), and an asynchronously injected Oracle conviction section.
-5. On a coin worth tracking, use Watch to add it to your [Watchlist](https://three.ws/watchlist), then open it in [Mission Control](./terminal.md) to trade.
+5. Every mainnet coin links to its full page at `/oracle/coin/<mint>`: the card's "Full intel →" button goes there directly, and the drawer carries an "Open full page →" link in its header. The full page renders in the markets-hub design (the same system as `/coin/:id`) with the live price chart, the complete Launch Intelligence read (this engine's signal grid, risk flags, and trader ledger), Oracle conviction, live market intel, agent transactions, and a live trade tape.
+6. On a coin worth tracking, use Watch to add it to your [Watchlist](https://three.ws/watchlist), then open it in [Mission Control](./terminal.md) to trade.
## Examples
diff --git a/public/changelog.json b/public/changelog.json
index e2b7bfd63..9ae0919bb 100644
--- a/public/changelog.json
+++ b/public/changelog.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-07-19T03:48:34.503Z",
+ "generated_at": "2026-07-19T04:07:01.022Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json",
"site": {
"name": "three.ws",
@@ -26,6 +26,17 @@
"launch"
]
},
+ {
+ "date": "2026-07-19",
+ "type": "update",
+ "title": "Coin pages for new launches, redesigned in the markets-hub style",
+ "summary": "Every pump.fun launch on Coin Radar now links straight through to a full coin page at /oracle/coin/<mint>, rebuilt in the same clean editorial design as the /coin/bitcoin markets pages. The page keeps everything it had (Oracle conviction, live market intel from six sources, agent transactions, a live trade tape) and adds the complete Launch Intelligence read from the radar engine: quality score, organic vs bundle, risk flags, the full signal breakdown, smart-money buyers, and the top-trader ledger. The live candles chart stays, joined by a native line view and an agent-trades overlay, and the whole page works in light and dark themes.",
+ "link": "/radar",
+ "tags": [
+ "feature",
+ "improvement"
+ ]
+ },
{
"date": "2026-07-19",
"type": "update",
@@ -64,7 +75,7 @@
"date": "2026-07-19",
"type": "update",
"title": "TradingView charts on every coin page",
- "summary": "Every /coin page (like /coin/bitcoin) now has a chart-source toggle: keep the fast native line chart or switch to a full TradingView advanced chart with candlesticks, indicators, and drawing tools. Your choice is remembered across coins and visits, and the widget follows the site theme.",
+ "summary": "Every /coin page (like /coin/bitcoin) now has a chart-source toggle. Keep the fast native line chart, or switch to a full advanced candlestick chart with indicators and drawing tools. Listed coins open on TradingView; Solana DEX tokens that TradingView doesn't carry open on DexScreener instead, so the advanced view works on every coin. Your choice is remembered across coins and visits, and the chart follows the site theme.",
"link": "/coin/bitcoin",
"tags": [
"feature"
diff --git a/public/changelog.xml b/public/changelog.xml
index 3f267bc50..05afd35e1 100644
--- a/public/changelog.xml
+++ b/public/changelog.xml
@@ -22,6 +22,14 @@
<category>launch</category>
<description>Step-by-step: add a floating 3D avatar assistant to any website with one script tag, configure the avatar, background, and brand, drive it from your own code, or have an AI agent generate the embed via MCP.</description>
</item>
+ <item>
+ <title>Coin pages for new launches, redesigned in the markets-hub style</title>
+ <link>https://three.ws/radar</link>
+ <guid isPermaLink="false">2026-07-19:Coin pages for new launches, redesigned in the markets-hub style</guid>
+ <pubDate>Sun, 19 Jul 2026 12:00:00 GMT</pubDate>
+ <category>feature</category>
+ <description>Every pump.fun launch on Coin Radar now links straight through to a full coin page at /oracle/coin/&lt;mint&gt;, rebuilt in the same clean editorial design as the /coin/bitcoin markets pages. The page keeps everything it had (Oracle conviction, live market intel from six sources, agent transactions, a live trade tape) and adds the complete Launch Intelligence read from the radar engine: quality score, organic vs bundle, risk flags, the full signal breakdown, smart-money buyers, and the top-trader ledger. The live candles chart stays, joined by a native line view and an agent-trades overlay, and the whole page works in light and dark themes.</description>
+ </item>
<item>
<title>Concierge ships to npm and the MCP registry, with a full examples set</title>
<link>https://three.ws/docs/concierge</link>
@@ -52,7 +60,7 @@
<guid isPermaLink="false">2026-07-19:TradingView charts on every coin page</guid>
<pubDate>Sun, 19 Jul 2026 12:00:00 GMT</pubDate>
<category>feature</category>
- <description>Every /coin page (like /coin/bitcoin) now has a chart-source toggle: keep the fast native line chart or switch to a full TradingView advanced chart with candlesticks, indicators, and drawing tools. Your choice is remembered across coins and visits, and the widget follows the site theme.</description>
+ <description>Every /coin page (like /coin/bitcoin) now has a chart-source toggle. Keep the fast native line chart, or switch to a full advanced candlestick chart with indicators and drawing tools. Listed coins open on TradingView; Solana DEX tokens that TradingView doesn't carry open on DexScreener instead, so the advanced view works on every coin. Your choice is remembered across coins and visits, and the chart follows the site theme.</description>
</item>
<item>
<title>Assistant widget</title>
diff --git a/public/features.json b/public/features.json
index 3a993036c..016a90815 100644
--- a/public/features.json
+++ b/public/features.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-07-19T03:48:34.491Z",
+ "generated_at": "2026-07-19T04:07:01.009Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json",
"site": {
"name": "three.ws",
diff --git a/public/oracle-coin.css b/public/oracle-coin.css
index 1ac9ff3e3..8224c556a 100644
--- a/public/oracle-coin.css
+++ b/public/oracle-coin.css
@@ -1,261 +1,490 @@
-/* Oracle — full standalone coin conviction page.
- * Styling for /oracle/coin/<mint>. Mirrors the in-feed drawer on /oracle so the
- * full page and the quick-view modal read as one system, laid out as a real
- * two-column page instead of a slide-over. Server-rendered above-the-fold
- * (hero) + client-hydrated deep/live sections (see public/oracle-coin.js). */
+/* Oracle — full standalone coin page (/oracle/coin/<mint>).
+ * Restyled 2026-07 onto the markets-hub (cv) design system: this sheet loads
+ * AFTER /src/coin-pages.css and only adds what that system doesn't have. The
+ * page reads like /coin/bitcoin — hairline borders, editorial cards, JetBrains
+ * Mono numerals, restrained color (green/red for direction, blue accent for
+ * links, everything else monochrome). Legacy Oracle class names are kept so the
+ * buildless hydrator (public/oracle-coin.js) and the SSR shell
+ * (api/oracle-share.js) stay in lock-step; they are simply re-tokenised here. */
+/* ── Legacy token bridge → cv tokens ─────────────────────────────────────── */
+/* The hydrator emits inline styles against the original Oracle variables
+ * (--ink, --muted, --up, ...). Alias them to the cv palette so every existing
+ * render path lands on the new look in both themes without JS churn. */
:root {
- --bg: #05060c; --panel: rgba(13,15,23,0.72); --panel-solid: #0c0e16; --line: rgba(255,255,255,0.09);
- --ink: #eaeefa; --muted: #8a92a8; --faint: rgba(255,255,255,0.45);
- --cyan: #cdd2e0; --violet: #a6acbc; --gold: #c4c9d6; --up: #e4e8f2; --down: #6c7280; --amber: #b6bcca;
- --accent: #cdd2e0; --stroke-strong: rgba(255,255,255,0.22);
- --r: 16px; --r-sm: 11px;
- --mono: ui-monospace, "JetBrains Mono", SFMono-Regular, Menlo, monospace;
- --shadow: 0 18px 52px -22px rgba(0,0,0,0.86), 0 1px 0 rgba(255,255,255,0.05) inset;
- --blur: saturate(160%) blur(16px);
- --p-ped: #d8dce8; --p-str: #b0b6c4; --p-nar: #888ea0; --p-mom: #c2c7d4;
-}
-[data-theme="light"] {
- --bg: #f4f5f9; --panel: rgba(255,255,255,0.82); --panel-solid: #ffffff; --line: rgba(10,12,20,0.1);
- --ink: #10131c; --muted: #545c70; --faint: rgba(10,12,20,0.45);
- --up: #1c2230; --down: #98a0b2; --shadow: 0 18px 52px -26px rgba(20,24,40,0.22), 0 1px 0 rgba(255,255,255,0.6) inset;
-}
-* { box-sizing: border-box; }
-html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink);
- font: 15px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
-body { background:
- radial-gradient(58% 48% at 82% -6%, color-mix(in srgb, var(--violet) 17%, transparent), transparent 70%),
- radial-gradient(48% 42% at 3% -2%, color-mix(in srgb, var(--cyan) 13%, transparent), transparent 66%), var(--bg); }
-a { color: inherit; text-decoration: none; }
-button { font: inherit; color: inherit; cursor: pointer; }
-.wrap { max-width: 1080px; margin: 0 auto; padding: 0 18px 100px; }
+ --bg: var(--cv-surface);
+ --panel: var(--cv-surface-2);
+ --panel-solid: var(--cv-surface);
+ --line: var(--cv-border);
+ --ink: var(--cv-text);
+ --muted: var(--cv-text-2);
+ --faint: var(--cv-text-3);
+ --up: var(--cv-green);
+ --down: var(--cv-red);
+ --accent: var(--cv-accent);
+ --cyan: var(--cv-accent);
+ --violet: var(--cv-accent);
+ --amber: #b45309;
+ --gold: #b45309;
+ --stroke-strong: var(--cv-border-hover);
+ --r: var(--cv-radius-lg);
+ --r-sm: var(--cv-radius-md);
+ --mono: var(--cv-font-mono);
+ /* Pillar ramp — monochrome by design, accent reserved for Move. */
+ --p-ped: var(--cv-text);
+ --p-str: var(--cv-text-2);
+ --p-nar: var(--cv-text-3);
+ --p-mom: var(--cv-accent);
+}
+html[data-theme='dark'],
+html:not([data-theme='light']) {
+ --amber: #d9a13c;
+ --gold: #d9a13c;
+}
-/* breadcrumb / back */
-.oc-back { display: inline-flex; align-items: center; gap: 7px; margin: 26px 0 14px; padding: 7px 13px;
- font: 600 12px/1 var(--mono); color: var(--muted); border: 1px solid var(--line); border-radius: 999px;
- background: var(--panel); transition: color .15s, border-color .15s, transform .12s; }
-.oc-back:hover { color: var(--ink); border-color: var(--stroke-strong); transform: translateX(-2px); }
-.oc-back:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
+/* ── Header ──────────────────────────────────────────────────────────────── */
+.oc-head { flex-wrap: wrap; }
+.oc-head-main { flex: 1; min-width: min(100%, 22rem); }
+.oc-icon-letter {
+ display: grid; place-items: center; flex-shrink: 0;
+ width: 64px; height: 64px; border-radius: 50%;
+ background: var(--cv-surface-3); border: 1px solid var(--cv-border);
+ font: 700 1.5rem/1 var(--cv-font-mono); color: var(--cv-text-3);
+}
+.oc-price-row { margin-top: 0.5rem; }
+.oc-price-chips { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
+.oc-desc {
+ margin: 0.625rem 0 0; max-width: 42rem;
+ font-size: 0.875rem; line-height: 1.55; color: var(--cv-text-2);
+ display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
+}
+.oc-head-chips { margin-top: 0.875rem; }
+.oc-contract-row { margin-top: 0.875rem; }
+.oc-mint-addr {
+ max-width: 15rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
+ direction: rtl; /* keep the distinctive base58 tail (…pump) visible when clipped */
+}
+@media (min-width: 900px) { .oc-mint-addr { max-width: 28rem; direction: ltr; } }
+.oc-actions { margin-top: 1rem; }
+.cv-pills button.cv-pill { appearance: none; background: transparent; cursor: pointer; font: inherit; }
+.cv-pills button.cv-pill[aria-pressed='true'] { color: var(--cv-accent); border-color: var(--cv-accent); }
-/* hero */
-.oc-hero { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start;
- background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 22px;
- box-shadow: var(--shadow); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
-.oc-img { width: 84px; height: 84px; border-radius: 18px; object-fit: cover; flex: none;
- background: radial-gradient(120% 100% at 50% 0%, #1a1c24, #0d0e14); border: 1px solid var(--line);
- display: grid; place-items: center; font: 800 30px/1 var(--mono); color: var(--faint); }
-.oc-id { min-width: 0; }
-.oc-sym { font: 800 26px/1.05 Inter, sans-serif; letter-spacing: -0.02em; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
-.oc-sym .oc-name { font: 600 14px/1 var(--mono); color: var(--muted); }
-.oc-mint { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font: 600 12px/1 var(--mono); color: var(--faint); }
-.oc-desc { margin: 10px 0 0; max-width: 640px; font-size: 13.5px; line-height: 1.55; color: var(--muted);
- display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
-.oc-topgrid { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; margin: 16px 0 2px; }
+/* Conviction card — the verdict, pinned to the right of the header. */
+.oc-conv-card {
+ background: var(--cv-surface); border: 1px solid var(--cv-border);
+ border-radius: var(--cv-radius-lg); box-shadow: var(--cv-shadow-card);
+ padding: 1.25rem; width: 15.5rem; max-width: 100%; flex-shrink: 0;
+}
+@media (max-width: 899px) { .oc-conv-card { width: 100%; } }
-/* conviction dial */
+/* Score dial + tier pill (patched live by the hydrator). */
.dial { text-align: center; }
-.dial b { font: 800 44px/1 var(--mono); display: block; }
-.dial span { font: 600 9px/1 var(--mono); text-transform: uppercase; letter-spacing: .09em; color: var(--faint); }
-.t-prime b, .t-strong b { color: var(--up); }
-.t-lean b { color: var(--gold); }
-.t-watch b { color: var(--muted); }
-.t-avoid b { color: var(--down); }
-.tierpill { display: inline-block; font: 700 9.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; padding: 4px 7px; border-radius: 6px; margin-top: 6px; }
-.tp-prime, .tp-strong { background: color-mix(in srgb, var(--up) 18%, transparent); color: var(--up); }
-.tp-lean { background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold); }
-.tp-watch { background: rgba(255,255,255,0.06); color: var(--faint); }
-.tp-avoid { background: color-mix(in srgb, var(--down) 16%, transparent); color: var(--down); }
+.dial b {
+ display: block; font: 700 2.75rem/1 var(--cv-font-mono);
+ font-variant-numeric: tabular-nums; color: var(--cv-text);
+}
+.t-prime b, .t-strong b { color: var(--cv-green); }
+.t-lean b { color: var(--amber); }
+.t-watch b { color: var(--cv-text-3); }
+.t-avoid b { color: var(--cv-red); }
+.tierpill {
+ display: inline-block; margin-top: 0.375rem; padding: 0.25rem 0.5rem;
+ border-radius: 999px; font-size: 0.625rem; font-weight: 600;
+ letter-spacing: 0.08em; text-transform: uppercase;
+}
+.tp-prime, .tp-strong { background: var(--cv-green-soft); color: var(--cv-green); }
+.tp-lean { background: color-mix(in srgb, var(--amber) 14%, transparent); color: var(--amber); }
+.tp-watch { background: var(--cv-surface-3); color: var(--cv-text-3); }
+.tp-avoid { background: var(--cv-red-soft); color: var(--cv-red); }
-/* pillar bars */
-.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
-.pil .lab { display: flex; justify-content: space-between; font: 600 9.5px/1 var(--mono); color: var(--faint); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 5px; }
-.pil .lab b { color: var(--ink); }
-.pil .track { height: 5px; border-radius: 3px; background: rgba(255,255,255,0.07); overflow: hidden; }
-.pil .fill { height: 100%; border-radius: 3px; transition: width .5s cubic-bezier(.22,1,.36,1); }
-.pil.ped .fill { background: var(--p-ped); } .pil.str .fill { background: var(--p-str); }
-.pil.nar .fill { background: var(--p-nar); } .pil.mom .fill { background: var(--p-mom); }
+/* Pillar bars — Who / How / What / Move. */
+.pillars { display: grid; grid-template-columns: 1fr; gap: 0.625rem; margin-top: 1rem; }
+.pil .lab {
+ display: flex; justify-content: space-between; margin-bottom: 0.3125rem;
+ font-size: 0.625rem; font-weight: 600; letter-spacing: 0.06em;
+ text-transform: uppercase; color: var(--cv-text-3);
+}
+.pil .lab b { color: var(--cv-text); font-family: var(--cv-font-mono); }
+.pil .track { height: 5px; border-radius: 999px; background: var(--cv-surface-3); overflow: hidden; }
+.pil .fill { height: 100%; border-radius: 999px; transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
+.pil.ped .fill { background: var(--p-ped); }
+.pil.str .fill { background: var(--p-str); }
+.pil.nar .fill { background: var(--p-nar); }
+.pil.mom .fill { background: var(--p-mom); }
-.coin-take { display: flex; align-items: flex-start; gap: 7px; font-size: 13.5px; line-height: 1.45; color: var(--ink); margin: 14px 0 2px; padding: 11px 13px; border-radius: 10px; background: rgba(255,255,255,0.035); border: 1px solid var(--line); }
-.coin-take .ct-q { font: 800 14px/1 var(--mono); color: var(--faint); flex-shrink: 0; margin-top: 1px; }
-.coin-take b { color: var(--ink); font-weight: 700; }
+/* ── Section scaffolding ─────────────────────────────────────────────────── */
+.oc-body { margin-top: 2.5rem; }
+.oc-h2-note {
+ font-family: var(--cv-font-sans); font-size: 0.75rem; font-weight: 500;
+ letter-spacing: 0; text-transform: none; color: var(--cv-text-3); margin-left: 0.5rem;
+}
+.dr-sec {
+ font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em;
+ text-transform: uppercase; color: var(--cv-text-3); margin: 1.75rem 0 0.75rem;
+}
+.dr-sec:first-child { margin-top: 0; }
+.oc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 2.5rem; align-items: start; }
+@media (max-width: 899px) { .oc-two { grid-template-columns: 1fr; gap: 0; } }
+.oc-col { min-width: 0; }
-/* meta chips */
-.coin-meta { display: flex; gap: 7px; flex-wrap: wrap; }
-.chip { font: 600 11px/1 var(--mono); padding: 5px 9px; border-radius: 8px; background: rgba(255,255,255,0.05); border: 1px solid var(--line); color: var(--muted); }
-.chip b { color: var(--ink); }
-.chip.cat { color: var(--violet); border-color: color-mix(in srgb, var(--violet) 30%, var(--line)); }
-.chip.sm { color: var(--up); border-color: color-mix(in srgb, var(--up) 30%, var(--line)); }
-.chip.flag { color: var(--down); border-color: color-mix(in srgb, var(--down) 30%, var(--line)); }
+/* The Oracle's one-line take — an editorial pull quote. */
+.coin-take {
+ display: flex; align-items: flex-start; gap: 0.625rem;
+ margin: 0 0 2rem; padding: 1rem 1.25rem;
+ background: var(--cv-surface-2); border: 1px solid var(--cv-border);
+ border-left: 3px solid var(--cv-accent); border-radius: var(--cv-radius-md);
+ font-size: 0.9375rem; line-height: 1.5; color: var(--cv-text-2);
+}
+.coin-take .ct-q { font: 700 1rem/1 var(--cv-font-mono); color: var(--cv-text-3); flex-shrink: 0; margin-top: 1px; }
+.coin-take b { color: var(--cv-text); font-weight: 600; }
-/* actions */
-.dr-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 16px 0 2px; }
-.dr-act { font: 600 12px/1 var(--mono); color: var(--cyan); text-decoration: none; background: none; border: none; cursor: pointer; padding: 0; transition: opacity .15s; }
-.dr-act:hover { opacity: .7; }
-.dr-act:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
-.dr-watch { color: var(--faint); }
-.dr-watch[aria-pressed="true"] { color: var(--accent); }
-.dr-share { color: var(--amber); }
+/* ── Chips (meta + market) ───────────────────────────────────────────────── */
+.coin-meta { display: flex; gap: 0.375rem; flex-wrap: wrap; }
+.chip {
+ display: inline-flex; align-items: baseline; gap: 0.25rem;
+ padding: 0.25rem 0.625rem; border-radius: 999px;
+ border: 1px solid var(--cv-border); background: var(--cv-surface-2);
+ font-size: 0.75rem; font-weight: 500; color: var(--cv-text-2);
+}
+.chip b { color: var(--cv-text); font-family: var(--cv-font-mono); font-variant-numeric: tabular-nums; }
+.chip.cat { color: var(--cv-accent); border-color: color-mix(in srgb, var(--cv-accent) 30%, var(--cv-border)); }
+.chip.sm { color: var(--cv-green); border-color: color-mix(in srgb, var(--cv-green) 30%, var(--cv-border)); background: var(--cv-green-soft); }
+.chip.flag { color: var(--cv-red); border-color: color-mix(in srgb, var(--cv-red) 30%, var(--cv-border)); background: var(--cv-red-soft); }
-/* section layout */
-.oc-body { margin-top: 8px; }
-.oc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; margin-top: 8px; }
-@media (max-width: 780px) { .oc-cols { grid-template-columns: 1fr; gap: 4px; } .oc-hero { grid-template-columns: 1fr; } .oc-topgrid { grid-template-columns: auto 1fr; } }
-.dr-sec { font: 600 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .09em; color: var(--faint); margin: 26px 0 12px; }
+/* Inline text actions inside hydrated sections (DexScreener ↗, Retry, ...). */
+.dr-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin: 1rem 0 0; }
+.dr-act {
+ appearance: none; background: none; border: none; padding: 0; cursor: pointer;
+ font-size: 0.8125rem; font-weight: 600; color: var(--cv-accent);
+ text-decoration: none; transition: color 0.15s;
+}
+.dr-act:hover { color: var(--cv-accent-hover); text-decoration: underline; }
+.dr-act:focus-visible { outline: 2px solid var(--cv-accent); outline-offset: 2px; border-radius: var(--cv-radius-sm); }
+.dr-watch { color: var(--cv-text-2); }
+.dr-watch[aria-pressed='true'] { color: var(--cv-accent); }
+.dr-share { color: var(--cv-text-2); }
-/* reasons */
-.reason { display: flex; gap: 9px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
+/* ── Why-this-score reasons ──────────────────────────────────────────────── */
+.reason {
+ display: flex; gap: 0.625rem; align-items: flex-start;
+ padding: 0.5rem 0; border-bottom: 1px solid var(--cv-border);
+ font-size: 0.875rem; color: var(--cv-text-2);
+}
.reason:last-child { border: none; }
-.rdot { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; flex: none; }
-.rdot.pedigree { background: var(--p-ped); } .rdot.structure { background: var(--p-str); }
-.rdot.narrative { background: var(--p-nar); } .rdot.momentum { background: var(--p-mom); }
+.rdot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex: none; }
+.rdot.pedigree { background: var(--p-ped); }
+.rdot.structure { background: var(--p-str); }
+.rdot.narrative { background: var(--p-nar); }
+.rdot.momentum { background: var(--p-mom); }
-/* structure / sentiment bars */
-.str-grid { display: flex; flex-direction: column; gap: 7px; }
-.str-row { display: grid; grid-template-columns: 100px 1fr 48px; gap: 8px; align-items: center; }
-.str-lbl { font: 600 10.5px/1 var(--mono); color: var(--faint); text-transform: uppercase; letter-spacing: .04em; }
-.str-track { height: 5px; border-radius: 3px; background: rgba(255,255,255,0.07); overflow: hidden; }
-.str-fill { height: 100%; border-radius: 3px; transition: width .5s cubic-bezier(.22,1,.36,1); }
-.str-val { font: 700 11px/1 var(--mono); text-align: right; }
+/* ── Structure / sentiment bars ──────────────────────────────────────────── */
+.str-grid { display: flex; flex-direction: column; gap: 0.5rem; }
+.str-row { display: grid; grid-template-columns: 6.5rem 1fr 3rem; gap: 0.5rem; align-items: center; }
+.str-lbl { font-size: 0.6875rem; font-weight: 500; color: var(--cv-text-3); text-transform: uppercase; letter-spacing: 0.04em; }
+.str-track { height: 5px; border-radius: 999px; background: var(--cv-surface-3); overflow: hidden; }
+.str-fill { height: 100%; border-radius: 999px; transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
+.str-val { font: 600 0.75rem/1 var(--cv-font-mono); font-variant-numeric: tabular-nums; text-align: right; }
-/* who's in */
-.nwallet { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
+/* ── Who's in ────────────────────────────────────────────────────────────── */
+.nwallet {
+ display: grid; grid-template-columns: 1fr auto; gap: 0.625rem; align-items: center;
+ padding: 0.625rem 0; border-bottom: 1px solid var(--cv-border);
+}
.nwallet:last-child { border: none; }
-.nw-left { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
-.nw-addr { font: 600 12.5px/1 var(--mono); display: flex; align-items: center; gap: 8px; }
-.nw-sub { font: 600 10.5px/1 var(--mono); color: var(--faint); }
-.nw-buy { font: 700 13px/1 var(--mono); text-align: right; }
-.solscan { font: 600 12px/1 var(--mono); color: var(--cyan); }
-.nlabel { font: 600 10px/1 var(--mono); padding: 4px 7px; border-radius: 6px; white-space: nowrap; }
-.lb-smart_money { background: color-mix(in srgb, var(--up) 18%, transparent); color: var(--up); }
-.lb-kol { background: color-mix(in srgb, var(--cyan) 18%, transparent); color: var(--cyan); }
-.lb-top_dev { background: color-mix(in srgb, var(--amber) 16%, transparent); color: var(--amber); }
-.lb-sniper { background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold); }
-.lb-dumper, .lb-rugger { background: color-mix(in srgb, var(--down) 18%, transparent); color: var(--down); }
-.lb-neutral, .lb-fresh, .lb-unproven { background: rgba(255,255,255,0.06); color: var(--faint); }
+.nw-left { min-width: 0; display: flex; flex-direction: column; gap: 0.25rem; }
+.nw-addr { display: flex; align-items: center; gap: 0.5rem; font: 500 0.8125rem/1 var(--cv-font-mono); }
+.nw-sub { font-size: 0.6875rem; color: var(--cv-text-3); }
+.nw-buy { font: 600 0.8125rem/1 var(--cv-font-mono); text-align: right; color: var(--cv-text); }
+.solscan { font: 500 0.8125rem/1 var(--cv-font-mono); color: var(--cv-accent); text-decoration: none; }
+.solscan:hover { color: var(--cv-accent-hover); text-decoration: underline; }
+.nlabel {
+ font-size: 0.625rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
+ padding: 0.1875rem 0.4375rem; border-radius: 999px; white-space: nowrap;
+ background: var(--cv-surface-3); color: var(--cv-text-2); border: 1px solid var(--cv-border);
+}
+.lb-smart_money { background: var(--cv-green-soft); color: var(--cv-green); border-color: transparent; }
+.lb-kol { background: color-mix(in srgb, var(--cv-accent) 12%, transparent); color: var(--cv-accent); border-color: transparent; }
+.lb-top_dev { background: color-mix(in srgb, var(--amber) 14%, transparent); color: var(--amber); border-color: transparent; }
+.lb-sniper { background: color-mix(in srgb, var(--amber) 14%, transparent); color: var(--amber); border-color: transparent; }
+.lb-dumper, .lb-rugger { background: var(--cv-red-soft); color: var(--cv-red); border-color: transparent; }
+.lb-neutral, .lb-fresh, .lb-unproven { background: var(--cv-surface-3); color: var(--cv-text-3); border-color: transparent; }
-/* related coins */
-.dr-related { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; cursor: pointer; text-align: left; width: 100%; transition: background .12s, border-color .12s; }
-.dr-related:hover { background: rgba(255,255,255,0.05); border-color: var(--stroke-strong); }
+/* ── Related coins ───────────────────────────────────────────────────────── */
+.dr-related {
+ display: flex; align-items: center; gap: 0.625rem; width: 100%;
+ background: var(--cv-surface); border: 1px solid var(--cv-border);
+ border-radius: var(--cv-radius-md); box-shadow: var(--cv-shadow-card);
+ padding: 0.625rem 0.75rem; text-align: left; text-decoration: none; color: inherit;
+ transition: border-color 0.15s, box-shadow 0.2s;
+}
+.dr-related:hover { border-color: var(--cv-border-hover); box-shadow: var(--cv-shadow-card-hover); }
-/* live market intel */
-.mkt-up { color: var(--up); } .mkt-down { color: var(--down); } .mkt-flat { color: var(--muted); } .mkt-faint { color: var(--faint); }
-.mkt-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 4px 0 2px; }
-.mkt-tile { display: flex; flex-direction: column; gap: 4px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,0.025); min-width: 0; }
-.mkt-tile-lbl { font: 600 9.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--faint); }
-.mkt-tile-val { font: 700 16px/1.1 var(--mono); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
-.mkt-tile-sub { font: 600 10.5px/1 var(--mono); color: var(--muted); }
-.mkt-chg-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 2px; }
-.mkt-chg { display: inline-flex; align-items: baseline; gap: 5px; padding: 5px 8px; border-radius: 8px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); }
-.mkt-chg-lbl { font: 600 9.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--faint); }
-.mkt-chg b { font: 700 12px/1 var(--mono); }
-.mkt-chg.mkt-up b { color: var(--up); } .mkt-chg.mkt-down b { color: var(--down); } .mkt-chg.mkt-flat b { color: var(--muted); }
-.mkt-row { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0 2px; }
-.mkt-curve { margin: 14px 0 4px; }
-.mkt-curve-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; font: 600 11px/1 var(--mono); color: var(--muted); }
-.mkt-curve-top b { color: var(--ink); }
-.mkt-curve-track { height: 7px; border-radius: 4px; background: rgba(255,255,255,0.07); overflow: hidden; }
-.mkt-curve-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--muted), var(--up)); transition: width .6s cubic-bezier(.22,1,.36,1); }
-.mkt-curve-sub { margin-top: 6px; font: 600 10.5px/1 var(--mono); color: var(--faint); }
-.mkt-act { margin: 14px 0 4px; }
-.mkt-act-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; font: 600 11px/1 var(--mono); color: var(--muted); }
-.mkt-act-track { height: 7px; border-radius: 4px; overflow: hidden; background: var(--down); display: flex; }
-.mkt-act-buy { height: 100%; background: var(--up); transition: width .6s cubic-bezier(.22,1,.36,1); }
-.mkt-act-legend { display: flex; justify-content: space-between; margin-top: 6px; font: 600 10.5px/1 var(--mono); }
-.mkt-pairs { display: flex; flex-direction: column; gap: 6px; }
-.mkt-pair { display: flex; align-items: center; gap: 10px; padding: 8px 11px; border-radius: 9px; background: rgba(255,255,255,0.03); border: 1px solid var(--line); text-decoration: none; transition: background .12s; }
-.mkt-pair:hover { background: rgba(255,255,255,0.06); }
-.mkt-pair-dex { flex: 1; min-width: 0; font: 700 12px/1 var(--mono); color: var(--ink); text-transform: capitalize; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
-.mkt-pair-liq { font: 600 11px/1 var(--mono); color: var(--muted); flex: none; }
-.mkt-pair-arrow { color: var(--cyan); font-size: 12px; flex: none; }
-.mkt-src { margin-top: 12px; font: 600 9.5px/1 var(--mono); color: var(--faint); text-transform: capitalize; letter-spacing: .03em; }
-.mkt-skel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
-.mkt-skel span { height: 58px; border-radius: 10px; border: 1px solid var(--line); background: linear-gradient(100deg, rgba(255,255,255,0.03) 30%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 70%); background-size: 200% 100%; animation: mktShimmer 1.2s linear infinite; }
+/* ── Live market intel ───────────────────────────────────────────────────── */
+.mkt-up { color: var(--cv-green); }
+.mkt-down { color: var(--cv-red); }
+.mkt-flat { color: var(--cv-text-2); }
+.mkt-faint { color: var(--cv-text-3); }
+.mkt-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 0.75rem; margin: 0.25rem 0 0; }
+.mkt-tile {
+ display: flex; flex-direction: column; gap: 0.25rem; min-width: 0;
+ background: var(--cv-surface-2); border: 1px solid var(--cv-border);
+ border-radius: var(--cv-radius-md); padding: 1rem;
+}
+.mkt-tile-lbl { font-size: 0.75rem; color: var(--cv-text-3); }
+.mkt-tile-val {
+ font: 600 1.125rem/1.2 var(--cv-font-mono); font-variant-numeric: tabular-nums;
+ color: var(--cv-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
+}
+.mkt-tile-sub { font-size: 0.75rem; color: var(--cv-text-3); }
+.mkt-chg-row { display: flex; flex-wrap: wrap; gap: 0.375rem; margin: 0.75rem 0 0; }
+.mkt-chg {
+ display: inline-flex; align-items: baseline; gap: 0.3125rem; padding: 0.25rem 0.5rem;
+ border-radius: var(--cv-radius); border: 1px solid var(--cv-border); background: var(--cv-surface-2);
+}
+.mkt-chg-lbl { font-size: 0.625rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; color: var(--cv-text-3); }
+.mkt-chg b { font: 600 0.75rem/1 var(--cv-font-mono); font-variant-numeric: tabular-nums; }
+.mkt-chg.mkt-up { background: var(--cv-green-soft); border-color: transparent; }
+.mkt-chg.mkt-down { background: var(--cv-red-soft); border-color: transparent; }
+.mkt-chg.mkt-up b { color: var(--cv-green); }
+.mkt-chg.mkt-down b { color: var(--cv-red); }
+.mkt-chg.mkt-flat b { color: var(--cv-text-2); }
+.mkt-row { display: flex; flex-wrap: wrap; gap: 0.375rem; margin: 0.875rem 0 0; }
+.mkt-curve { margin: 1rem 0 0; }
+.mkt-curve-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.375rem; font-size: 0.8125rem; color: var(--cv-text-2); }
+.mkt-curve-top b { color: var(--cv-text); font-weight: 600; }
+.mkt-curve-track { height: 8px; border-radius: 999px; background: var(--cv-surface-3); overflow: hidden; }
+.mkt-curve-fill { height: 100%; border-radius: 999px; background: var(--cv-accent); transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
+.mkt-curve-sub { margin-top: 0.375rem; font-size: 0.75rem; color: var(--cv-text-3); }
+.mkt-act { margin: 1rem 0 0; }
+.mkt-act-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.375rem; font-size: 0.8125rem; color: var(--cv-text-2); }
+.mkt-act-track { height: 8px; border-radius: 999px; overflow: hidden; background: var(--cv-red); display: flex; }
+.mkt-act-buy { height: 100%; background: var(--cv-green); transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
+.mkt-act-legend { display: flex; justify-content: space-between; margin-top: 0.375rem; font: 500 0.75rem/1 var(--cv-font-mono); }
+.mkt-pairs { display: flex; flex-direction: column; gap: 0.375rem; }
+.mkt-pair {
+ display: flex; align-items: center; gap: 0.625rem; padding: 0.5rem 0.75rem;
+ border-radius: var(--cv-radius-md); background: var(--cv-surface-2);
+ border: 1px solid var(--cv-border); text-decoration: none;
+ transition: border-color 0.15s, background 0.15s;
+}
+.mkt-pair:hover { border-color: var(--cv-border-hover); background: var(--cv-surface-3); }
+.mkt-pair-dex {
+ flex: 1; min-width: 0; font-size: 0.8125rem; font-weight: 600; color: var(--cv-text);
+ text-transform: capitalize; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
+}
+.mkt-pair-liq { font: 500 0.75rem/1 var(--cv-font-mono); color: var(--cv-text-2); flex: none; }
+.mkt-pair-arrow { color: var(--cv-accent); font-size: 0.75rem; flex: none; }
+.mkt-src { margin-top: 0.875rem; font-size: 0.6875rem; color: var(--cv-text-3); text-transform: capitalize; letter-spacing: 0.03em; }
+.mkt-skel { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 0.75rem; }
+.mkt-skel span {
+ height: 4.5rem; border-radius: var(--cv-radius-md); border: 1px solid var(--cv-border);
+ background: linear-gradient(100deg, var(--cv-surface-2) 30%, var(--cv-surface-3) 50%, var(--cv-surface-2) 70%);
+ background-size: 200% 100%; animation: mktShimmer 1.2s linear infinite;
+}
@keyframes mktShimmer { to { background-position: -200% 0; } }
-@media (max-width: 420px) { .mkt-stats, .mkt-skel { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .mkt-skel span { animation: none; } }
+.mkt-loading { opacity: 1; }
-/* proof trades */
-.dr-ptrade { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; background: rgba(255,255,255,.04); font-size: 13px; }
-.dr-ptrade-mult { font: 700 13px/1 var(--mono); min-width: 52px; flex-shrink: 0; }
-.dr-ptrade-mid { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; }
-.dr-ptrade-agent { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
+/* ── Proof trades (agent exits) ──────────────────────────────────────────── */
+.dr-ptrade {
+ display: flex; align-items: center; gap: 0.625rem; padding: 0.5rem 0.75rem;
+ border-radius: var(--cv-radius-md); background: var(--cv-surface-2);
+ border: 1px solid var(--cv-border); font-size: 0.8125rem;
+}
+.dr-ptrade-mult { font: 600 0.8125rem/1 var(--cv-font-mono); min-width: 3.25rem; flex-shrink: 0; }
+.dr-ptrade-mid { flex: 1; min-width: 0; display: flex; align-items: center; gap: 0.375rem; }
+.dr-ptrade-agent { color: var(--cv-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
-/* live trade tape */
-.trade-tape { border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: rgba(0,0,0,0.2); }
-.tape-header { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--line); font: 600 11px/1 var(--mono); color: var(--muted); background: rgba(255,255,255,0.02); }
-.tape-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); flex: none; transition: background .3s; }
-.tape-dot.live { background: var(--up); box-shadow: 0 0 0 0 rgba(228,232,242,.5); animation: pulse 1.9s infinite; }
+/* ── Live trade tape ─────────────────────────────────────────────────────── */
+.trade-tape {
+ border: 1px solid var(--cv-border); border-radius: var(--cv-radius-lg);
+ overflow: hidden; background: var(--cv-surface); box-shadow: var(--cv-shadow-card);
+}
+.tape-header {
+ display: flex; align-items: center; gap: 0.5rem; padding: 0.625rem 0.875rem;
+ border-bottom: 1px solid var(--cv-border); font-size: 0.75rem; font-weight: 500;
+ color: var(--cv-text-2); background: var(--cv-surface-2);
+}
+.tape-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cv-text-3); flex: none; transition: background 0.3s; }
+.tape-dot.live { background: var(--cv-green); animation: tapePulse 1.9s infinite; }
.tape-status { flex: 1; }
-.tape-ct { color: var(--faint); }
+.tape-ct { color: var(--cv-text-3); font-family: var(--cv-font-mono); }
.tape-list { max-height: 320px; overflow-y: auto; }
.tape-list::-webkit-scrollbar { width: 4px; }
-.tape-list::-webkit-scrollbar-thumb { background: var(--line); border-radius: 2px; }
-.tape-row { display: grid; grid-template-columns: 60px auto 1fr auto auto; gap: 7px; align-items: center; padding: 7px 12px; border-bottom: 1px solid rgba(255,255,255,0.04); font: 600 11.5px/1 var(--mono); transition: background .12s; }
+.tape-list::-webkit-scrollbar-thumb { background: var(--cv-border); border-radius: 2px; }
+.tape-row {
+ display: grid; grid-template-columns: 3.75rem auto 1fr auto auto; gap: 0.4375rem;
+ align-items: center; padding: 0.4375rem 0.875rem; border-bottom: 1px solid var(--cv-border);
+ font: 500 0.75rem/1 var(--cv-font-mono); transition: background 0.12s;
+}
.tape-row:last-child { border-bottom: none; }
-.tape-row.flash { background: rgba(255,255,255,0.06); }
-.tape-row.buy .tape-type { color: var(--up); }
-.tape-row.sell .tape-type { color: var(--down); }
-.tape-type { font-size: 10.5px; letter-spacing: .04em; }
-.tape-tag { font-size: 10px; color: var(--faint); }
-.tape-addr { color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
-.tape-sol { text-align: right; }
-.tape-sol.buy { color: var(--up); } .tape-sol.sell { color: var(--down); }
-.tape-mc { color: var(--faint); font-size: 10px; white-space: nowrap; }
+.tape-row.flash { background: var(--cv-surface-3); }
+.tape-row.buy .tape-type { color: var(--cv-green); }
+.tape-row.sell .tape-type { color: var(--cv-red); }
+.tape-type { font-size: 0.6875rem; letter-spacing: 0.04em; }
+.tape-tag { font-size: 0.625rem; color: var(--cv-text-3); }
+.tape-addr { color: var(--cv-text-2); font-size: 0.6875rem; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
+.tape-sol { text-align: right; font-variant-numeric: tabular-nums; }
+.tape-sol.buy { color: var(--cv-green); }
+.tape-sol.sell { color: var(--cv-red); }
+.tape-mc { color: var(--cv-text-3); font-size: 0.625rem; white-space: nowrap; }
-/* price chart */
-.oc-chart { margin-top: 20px; }
-.oc-chart-controls { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
-.oc-seg { display: inline-flex; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; }
-.oc-seg-btn { padding: 6px 14px; border-radius: 999px; border: none; background: none; color: var(--muted); font: 600 12px/1 var(--mono); transition: background .16s, color .16s; }
-.oc-seg-btn.on { background: color-mix(in srgb, var(--cyan) 20%, transparent); color: var(--ink); }
-.oc-seg-btn:hover:not(.on) { color: var(--ink); }
-.oc-seg-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
-.oc-chart-canvas { border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: rgba(0,0,0,0.18); min-height: 300px; position: relative; }
-.oc-chart-frame { width: 100%; height: 440px; border: 0; display: block; opacity: 0; transition: opacity .3s; }
+/* ── Price chart panel ───────────────────────────────────────────────────── */
+.oc-chart {
+ background: var(--cv-surface); border: 1px solid var(--cv-border);
+ border-radius: var(--cv-radius-xl); box-shadow: var(--cv-shadow-card); padding: 1rem;
+}
+@media (min-width: 768px) { .oc-chart { padding: 1.5rem; } }
+.oc-chart-controls { display: flex; align-items: center; justify-content: space-between; gap: 0.625rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
+.oc-chart-title { font-size: 0.875rem; font-weight: 600; color: var(--cv-text); margin-right: auto; }
+.oc-seg {
+ display: inline-flex; gap: 2px; padding: 2px;
+ background: var(--cv-surface-2); border: 1px solid var(--cv-border); border-radius: var(--cv-radius);
+}
+.oc-seg-btn {
+ appearance: none; border: none; background: none; cursor: pointer;
+ padding: 0.375rem 0.875rem; border-radius: var(--cv-radius-sm);
+ font-size: 0.8125rem; font-weight: 500; color: var(--cv-text-2);
+ transition: background 0.16s, color 0.16s;
+}
+.oc-seg-btn.on { background: var(--cv-surface); color: var(--cv-text); box-shadow: var(--cv-shadow-card); }
+.oc-seg-btn:hover:not(.on) { color: var(--cv-text); }
+.oc-seg-btn:focus-visible { outline: 2px solid var(--cv-accent); outline-offset: 2px; }
+.oc-chart-canvas {
+ border: 1px solid var(--cv-border); border-radius: var(--cv-radius-md);
+ overflow: hidden; background: var(--cv-surface-2); min-height: 300px; position: relative;
+}
+.oc-chart-frame { width: 100%; height: 440px; border: 0; display: block; opacity: 0; transition: opacity 0.3s; }
+@media (min-width: 768px) { .oc-chart-frame { height: 520px; } }
.oc-chart-canvas.ready .oc-chart-frame { opacity: 1; }
-.oc-chart-skel { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(255,255,255,0.02) 30%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0.02) 70%); background-size: 200% 100%; animation: mktShimmer 1.2s linear infinite; }
+.oc-chart-skel {
+ position: absolute; inset: 0;
+ background: linear-gradient(100deg, var(--cv-surface-2) 30%, var(--cv-surface-3) 50%, var(--cv-surface-2) 70%);
+ background-size: 200% 100%; animation: mktShimmer 1.2s linear infinite;
+}
.oc-chart-svg { display: block; width: 100%; height: 260px; padding: 10px 6px 4px; }
-.oc-chart-readout { display: flex; align-items: baseline; gap: 10px; padding: 12px 14px 0; font: 700 15px/1 var(--mono); }
-.oc-chart-readout .mkt-up, .oc-chart-readout .mkt-down, .oc-chart-readout .mkt-flat { font-size: 12px; }
-.oc-chart-price { color: var(--ink); }
-/* agent-trade markers on the native chart */
+.oc-chart-readout {
+ display: flex; align-items: baseline; gap: 0.625rem; padding: 0.75rem 0.875rem 0;
+ font: 600 1rem/1 var(--cv-font-mono); font-variant-numeric: tabular-nums;
+}
+.oc-chart-readout .mkt-up, .oc-chart-readout .mkt-down, .oc-chart-readout .mkt-flat { font-size: 0.75rem; }
+.oc-chart-price { color: var(--cv-text); }
.oc-chart-svg .oc-mk { cursor: default; }
-.oc-chart-svg .oc-mk circle { transition: r .12s ease; }
+.oc-chart-svg .oc-mk circle { transition: r 0.12s ease; }
.oc-chart-svg .oc-mk:hover circle { r: 6.4; }
-.oc-chart-legend { display: flex; align-items: center; gap: 7px; padding: 6px 14px 12px; font: 600 10.5px/1 var(--mono); color: var(--faint); text-transform: uppercase; letter-spacing: .04em; }
-.oc-chart-legend .oc-lg { width: 9px; height: 9px; border-radius: 50%; border: 1.4px solid var(--bg); display: inline-block; }
-.oc-chart-legend .oc-lg.buy { background: var(--up); margin-left: 4px; }
-.oc-chart-legend .oc-lg.sell { background: var(--down); margin-left: 12px; }
-.oc-chart-legend .oc-lg-ct { margin-left: auto; color: var(--muted); text-transform: none; letter-spacing: 0; }
+.oc-chart-legend {
+ display: flex; align-items: center; gap: 0.4375rem; padding: 0.375rem 0.875rem 0.75rem;
+ font-size: 0.6875rem; font-weight: 500; color: var(--cv-text-3);
+ text-transform: uppercase; letter-spacing: 0.04em;
+}
+.oc-chart-legend .oc-lg { width: 9px; height: 9px; border-radius: 50%; border: 1.4px solid var(--cv-surface); display: inline-block; }
+.oc-chart-legend .oc-lg.buy { background: var(--cv-green); margin-left: 4px; }
+.oc-chart-legend .oc-lg.sell { background: var(--cv-red); margin-left: 12px; }
+.oc-chart-legend .oc-lg-ct { margin-left: auto; color: var(--cv-text-2); text-transform: none; letter-spacing: 0; }
+.oc-chart-credit { margin: 0.625rem 0 0; font-size: 0.6875rem; }
+.oc-chart-credit a { color: var(--cv-text-3); text-decoration: none; }
+.oc-chart-credit a:hover, .oc-chart-credit a:focus-visible { color: var(--cv-text-2); text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .oc-chart-skel { animation: none; } .oc-chart-svg .oc-mk circle { transition: none; } }
-/* agent transactions list */
-.oc-agent-tx { margin-top: 22px; }
+/* ── Agent transactions ──────────────────────────────────────────────────── */
.oc-agent-tx:empty { display: none; }
-.oc-atx-list { display: flex; flex-direction: column; gap: 3px; }
-.oc-atx-row { display: flex; align-items: center; gap: 10px; padding: 8px 11px; border-radius: 9px; background: rgba(255,255,255,0.035); border: 1px solid var(--line); font-size: 12.5px; }
-.oc-atx-side { font: 700 10.5px/1 var(--mono); letter-spacing: .04em; min-width: 52px; flex-shrink: 0; }
-.oc-atx-side.buy { color: var(--up); }
-.oc-atx-side.sell { color: var(--down); }
-.oc-atx-agent { flex: 1; min-width: 0; color: var(--ink); font-weight: 600; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
-a.oc-atx-agent:hover { text-decoration: underline; }
-.oc-atx-amt { font: 600 12px/1 var(--mono); color: var(--ink); white-space: nowrap; flex-shrink: 0; }
-.oc-atx-amt .oc-atx-usd { color: var(--muted); }
-.oc-atx-time { color: var(--faint); font-size: 11px; white-space: nowrap; flex-shrink: 0; min-width: 40px; text-align: right; }
-.oc-atx-tx { color: var(--faint); font-size: 11px; text-decoration: none; flex-shrink: 0; }
-.oc-atx-tx:hover { color: var(--ink); }
-.oc-atx-more { display: inline-block; margin-top: 10px; }
+.oc-atx-list { display: flex; flex-direction: column; gap: 0.25rem; }
+.oc-atx-row {
+ display: flex; align-items: center; gap: 0.625rem; padding: 0.5rem 0.75rem;
+ border-radius: var(--cv-radius-md); background: var(--cv-surface-2);
+ border: 1px solid var(--cv-border); font-size: 0.8125rem;
+}
+.oc-atx-side { font: 600 0.6875rem/1 var(--cv-font-mono); letter-spacing: 0.04em; min-width: 3.25rem; flex-shrink: 0; }
+.oc-atx-side.buy { color: var(--cv-green); }
+.oc-atx-side.sell { color: var(--cv-red); }
+.oc-atx-agent { flex: 1; min-width: 0; color: var(--cv-text); font-weight: 600; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
+a.oc-atx-agent:hover { color: var(--cv-accent); }
+.oc-atx-amt { font: 500 0.75rem/1 var(--cv-font-mono); font-variant-numeric: tabular-nums; color: var(--cv-text); white-space: nowrap; flex-shrink: 0; }
+.oc-atx-amt .oc-atx-usd { color: var(--cv-text-2); }
+.oc-atx-time { color: var(--cv-text-3); font-size: 0.6875rem; white-space: nowrap; flex-shrink: 0; min-width: 2.5rem; text-align: right; }
+.oc-atx-tx { color: var(--cv-text-3); font-size: 0.6875rem; text-decoration: none; flex-shrink: 0; }
+.oc-atx-tx:hover { color: var(--cv-accent); }
+.oc-atx-more { display: inline-block; margin-top: 0.625rem; }
@media (max-width: 560px) { .oc-atx-time { display: none; } }
-/* states */
-.state { padding: 40px 22px; text-align: center; color: var(--muted); }
-.state b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 8px; }
-.note { font: 600 11px/1 var(--mono); color: var(--faint); padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line); }
-.note.warn { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 30%, var(--line)); }
-.note.ok { color: var(--up); border-color: color-mix(in srgb, var(--up) 30%, var(--line)); }
-.mkt-loading { opacity: 1; }
+/* ── Launch intelligence (Coin Radar read) ───────────────────────────────── */
+.oc-intel-head {
+ display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem;
+ background: var(--cv-surface); border: 1px solid var(--cv-border);
+ border-radius: var(--cv-radius-lg); box-shadow: var(--cv-shadow-card);
+ padding: 1.25rem; margin-bottom: 1rem;
+}
+.oc-iq { text-align: center; flex-shrink: 0; }
+.oc-iq b {
+ display: block; font: 700 2rem/1 var(--cv-font-mono); font-variant-numeric: tabular-nums;
+}
+.oc-iq.q-good b { color: var(--cv-green); }
+.oc-iq.q-mixed b { color: var(--amber); }
+.oc-iq.q-risk b { color: var(--cv-red); }
+.oc-iq.q-none b { color: var(--cv-text-3); }
+.oc-iq-lbl { font-size: 0.625rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cv-text-3); margin-top: 0.25rem; }
+.oc-iq.q-risk .oc-iq-lbl { color: var(--cv-red); }
+.oc-iq.q-good .oc-iq-lbl { color: var(--cv-green); }
+.oc-iq.q-mixed .oc-iq-lbl { color: var(--amber); }
+.oc-ob { flex: 1; min-width: 14rem; }
+.oc-ob-row { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--cv-text-3); margin-bottom: 0.375rem; }
+.oc-ob-row b { font-family: var(--cv-font-mono); }
+.oc-ob-row .og { color: var(--cv-green); }
+.oc-ob-row .bd { color: var(--cv-red); }
+.oc-ob-track { position: relative; height: 8px; border-radius: 999px; background: var(--cv-surface-3); overflow: hidden; }
+.oc-ob-organic { position: absolute; inset: 0 auto 0 0; background: var(--cv-green); border-radius: 999px; }
+.oc-ob-bundle { position: absolute; inset: 0 0 0 auto; background: var(--cv-red); border-radius: 999px; }
+.oc-intel-meta { flex-basis: 100%; }
+.oc-flags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1rem; }
+.oc-flag {
+ display: inline-flex; flex-direction: column; gap: 0.125rem;
+ border-radius: var(--cv-radius-md); border: 1px solid var(--cv-border);
+ padding: 0.5rem 0.75rem; max-width: 18rem;
+}
+.oc-flag-name { font-size: 0.8125rem; font-weight: 600; }
+.oc-flag-tip { font-size: 0.75rem; color: var(--cv-text-2); }
+.oc-flag--danger { background: var(--cv-red-soft); border-color: color-mix(in srgb, var(--cv-red) 25%, var(--cv-border)); }
+.oc-flag--danger .oc-flag-name { color: var(--cv-red); }
+.oc-flag--warn { background: color-mix(in srgb, var(--amber) 10%, transparent); border-color: color-mix(in srgb, var(--amber) 25%, var(--cv-border)); }
+.oc-flag--warn .oc-flag-name { color: var(--amber); }
+.oc-flag--clean { background: var(--cv-green-soft); border-color: color-mix(in srgb, var(--cv-green) 25%, var(--cv-border)); }
+.oc-flag--clean .oc-flag-name { color: var(--cv-green); }
+.oc-sig-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 0.75rem; }
+.oc-ledger .cv-table th:first-child, .oc-ledger .cv-table td:first-child { text-align: left; }
+.oc-ledger .cv-table th { cursor: default; }
+.oc-wtag {
+ margin-left: 0.375rem; padding: 0.125rem 0.375rem; border-radius: 999px;
+ background: var(--cv-surface-3); border: 1px solid var(--cv-border);
+ font-size: 0.625rem; font-weight: 600; letter-spacing: 0.04em;
+ text-transform: uppercase; color: var(--cv-text-2);
+}
+.oc-news {
+ display: flex; gap: 0.625rem; align-items: flex-start;
+ background: var(--cv-surface-2); border: 1px solid var(--cv-border);
+ border-radius: var(--cv-radius-md); padding: 0.75rem 1rem; margin-bottom: 1rem;
+}
+.oc-news-glyph { flex-shrink: 0; color: var(--amber); }
+.oc-news-headline { margin: 0; font-size: 0.875rem; font-weight: 600; color: var(--cv-text); }
+.oc-news a { display: inline-block; margin-top: 0.25rem; font-size: 0.8125rem; color: var(--cv-accent); text-decoration: none; }
+.oc-news a:hover { text-decoration: underline; }
+.oc-intel-note { font-size: 0.8125rem; color: var(--cv-text-3); margin: 0.75rem 0 0; }
+
+/* ── States ──────────────────────────────────────────────────────────────── */
+.state { padding: 2rem 1.25rem; text-align: center; color: var(--cv-text-2); font-size: 0.875rem; }
+.state b { display: block; color: var(--cv-text); font-size: 1rem; margin-bottom: 0.5rem; }
+.note { font-size: 0.75rem; font-weight: 500; color: var(--cv-text-3); padding: 0.25rem 0.5rem; border-radius: var(--cv-radius); border: 1px solid var(--cv-border); }
+.note.warn { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 30%, var(--cv-border)); }
+.note.ok { color: var(--cv-green); border-color: color-mix(in srgb, var(--cv-green) 30%, var(--cv-border)); }
-@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(228,232,242,.5)} 70%{box-shadow:0 0 0 7px rgba(228,232,242,0)} 100%{box-shadow:0 0 0 0 rgba(228,232,242,0)} }
+@keyframes tapePulse {
+ 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--cv-green) 45%, transparent); }
+ 70% { box-shadow: 0 0 0 7px transparent; }
+ 100% { box-shadow: 0 0 0 0 transparent; }
+}
@keyframes spin { to { transform: rotate(360deg); } }
-.oc-spinner { width: 22px; height: 22px; border: 2px solid rgba(255,255,255,.1); border-top-color: rgba(255,255,255,.5); border-radius: 50%; animation: spin .9s linear infinite; margin: 30px auto; }
+.oc-spinner {
+ width: 22px; height: 22px; border: 2px solid var(--cv-border);
+ border-top-color: var(--cv-text-3); border-radius: 50%;
+ animation: spin 0.9s linear infinite; margin: 30px auto;
+}
@media (prefers-reduced-motion: reduce) { .oc-spinner, .tape-dot.live { animation: none; } }
diff --git a/public/oracle-coin.js b/public/oracle-coin.js
index 4f82665f5..714b7789b 100644
--- a/public/oracle-coin.js
+++ b/public/oracle-coin.js
@@ -256,8 +256,8 @@
const srcNote = Array.isArray(m.sources) && m.sources.length ? `<div class="mkt-src">Live · ${m.sources.map(esc).join(' · ')}</div>` : '';
- return `<div class="dr-sec">Market <span style="color:var(--faint);font-weight:400;font-size:10px">live${p.native_sol ? ` · ${p.native_sol < 0.0001 ? p.native_sol.toExponential(2) : p.native_sol.toFixed(6)} ◎` : ''}</span></div>
- <div class="mkt-stats">${tiles}</div>
+ const nativeNote = p.native_sol ? `<div class="mkt-src">${p.native_sol < 0.0001 ? p.native_sol.toExponential(2) : p.native_sol.toFixed(6)} ◎ native</div>` : '';
+ return `<div class="mkt-stats">${tiles}</div>${nativeNote}
${changeRow}${curveHtml}${activityHtml}
${supplyChips ? `<div class="coin-meta" style="margin-top:10px">${supplyChips}</div>` : ''}
${secHtml}${listingHtml}${pairsHtml}
@@ -274,7 +274,7 @@
const n = scores.length;
const xs = scores.map((_, i) => PAD + (i / (n - 1)) * (W - PAD * 2));
const ys = scores.map((s) => PAD + (1 - (s - min) / range) * (H - PAD * 2));
- const trendColor = trend === 'rising' ? '#e4e8f2' : trend === 'falling' ? '#6c7280' : '#8a92a8';
+ const trendColor = trend === 'rising' ? 'var(--cv-green)' : trend === 'falling' ? 'var(--cv-red)' : 'var(--cv-text-3)';
const trendArrow = trend === 'rising' ? '↑' : trend === 'falling' ? '↓' : '→';
const delta = scores[n - 1] - scores[0];
const deltaStr = delta > 0 ? `+${delta}` : `${delta}`;
@@ -314,16 +314,38 @@
return;
}
wrap.innerHTML = status === 404
- ? `<div class="dr-sec">Market</div><div class="state" style="padding:20px 0">No live market yet — this mint hasn't started trading. Price, liquidity and holders appear the moment it does.</div>`
- : `<div class="dr-sec">Market</div><div class="state" style="padding:20px 0">Live market data is momentarily unavailable. <button type="button" class="dr-act" id="ocMktRetry">Retry</button></div>`;
+ ? `<div class="state" style="padding:20px 0">No live market yet — this mint hasn't started trading. Price, liquidity and holders appear the moment it does.</div>`
+ : `<div class="state" style="padding:20px 0">Live market data is momentarily unavailable. <button type="button" class="dr-act" id="ocMktRetry">Retry</button></div>`;
const retry = $('#ocMktRetry');
if (retry) retry.addEventListener('click', () => { wrap.classList.add('mkt-loading'); wrap.setAttribute('aria-busy', 'true'); loadMarket(mint); });
return;
}
wrap.innerHTML = renderMarket(data);
+ fillPriceRow(data);
fillDescription(data.identity?.description);
}
+ // Fill the header's price row (SSR renders it hidden) the moment a live price
+ // exists — the same header treatment /coin/:id gives listed coins.
+ function fillPriceRow(m) {
+ const rowEl = $('#ocPriceRow');
+ const priceEl = $('#ocPrice');
+ const chipsEl = $('#ocPriceChips');
+ const p = m.price || {};
+ if (!rowEl || !priceEl || p.usd == null) return;
+ priceEl.textContent = fmtPrice(p.usd);
+ const ch = p.change || {};
+ if (chipsEl) {
+ chipsEl.innerHTML = [['24h', ch.h24], ['7d', ch.d7]]
+ .filter(([, v]) => v != null && Number.isFinite(Number(v)))
+ .map(([l, v]) => {
+ const c = changeStr(v);
+ return `<span class="cv-chip ${c.cls === 'up' ? 'up' : c.cls === 'down' ? 'down' : ''}"><span class="win">${l}</span>${c.txt}</span>`;
+ }).join('');
+ }
+ rowEl.hidden = false;
+ }
+
// Fill the hero's description slot from the market identity — the SSR only
// knows it for pump-identified launches, so scored coins get it here.
function fillDescription(text) {
@@ -354,13 +376,168 @@
pf.reply_count != null ? `<span class="chip">replies <b>${fmtInt(pf.reply_count)}</b></span>` : '',
pf.creator ? `<span class="chip">creator <b>${esc(shortAddr(pf.creator))}</b></span>` : '',
].filter(Boolean).join('');
- return `<div class="dr-sec">Market <span style="color:var(--faint);font-weight:400;font-size:10px">pump.fun · pre-DEX</span></div>
- ${tiles ? `<div class="mkt-stats">${tiles}</div>` : ''}
+ return `${tiles ? `<div class="mkt-stats">${tiles}</div>` : ''}
${curve}
${chips ? `<div class="coin-meta" style="margin-top:10px">${chips}</div>` : ''}
<div class="mkt-src">Live · pumpfun — full metrics populate once it lists on a DEX</div>`;
}
+ // ── launch intelligence (Coin Radar engine) ────────────────────────────────
+ // The same first-~90s on-chain read the /radar drawer shows, on the full page:
+ // quality score, organic vs bundle, risk flags, the complete signal breakdown,
+ // smart-money buyers, news provenance, tags, and the top-trader ledger. Source
+ // is /api/pump/coin-intel — every number traces to an observed on-chain trade;
+ // a signal the engine did not measure renders as "not measured", never as 0.
+ const RADAR_FLAGS = {
+ bundle_launch: { label: 'Bundle launch', tone: 'danger', tip: 'Many wallets bought in the same block — likely coordinated.' },
+ dev_dumped: { label: 'Dev dumped', tone: 'danger', tip: 'The creator sold their position.' },
+ single_whale: { label: 'Single whale', tone: 'danger', tip: 'One wallet holds an outsized share of supply.' },
+ low_diversity: { label: 'Low diversity', tone: 'danger', tip: 'Few unique buyers — thin, concentrated participation.' },
+ fresh_wallet_swarm: { label: 'Fresh-wallet swarm', tone: 'danger', tip: 'A cluster of brand-new wallets bought together.' },
+ sell_pressure: { label: 'Sell pressure', tone: 'warn', tip: 'Sells are outpacing buys early.' },
+ sniped: { label: 'Sniped', tone: 'warn', tip: 'Snipers grabbed supply in the first moments.' },
+ };
+
+ const fmtSolPlain = (v) => {
+ if (v == null || Number.isNaN(Number(v))) return null;
+ const n = Number(v), abs = Math.abs(n);
+ if (abs === 0) return '0';
+ if (abs < 0.001) return n.toFixed(5);
+ if (abs < 1) return n.toFixed(3);
+ if (abs < 1000) return n.toFixed(2);
+ return n.toLocaleString(undefined, { maximumFractionDigits: 0 });
+ };
+ const ratioPct = (v) => (v == null ? 'not measured' : `${Math.round(Number(v) * 100)}%`);
+
+ function qualityMeta(score) {
+ if (score == null) return { cls: 'q-none', label: 'Unscored' };
+ if (score >= 70) return { cls: 'q-good', label: 'Healthy' };
+ if (score >= 40) return { cls: 'q-mixed', label: 'Mixed' };
+ return { cls: 'q-risk', label: 'High risk' };
+ }
+
+ function intelTile(label, value, tip, cls = '') {
+ const measured = value !== 'not measured';
+ return `<div class="cv-mini-stat"${tip ? ` title="${esc(tip)}"` : ''}>
+ <p class="label">${esc(label)}</p>
+ <p class="value cv-mono ${cls}" style="${measured ? '' : 'color:var(--cv-text-3);font-size:0.8125rem'}">${value}</p>
+ </div>`;
+ }
+
+ async function loadRadarIntel(mint) {
+ const sec = $('#ocIntelSec');
+ const wrap = $('#ocIntel');
+ if (!sec || !wrap) return;
+ const { ok, data } = await api(`/api/pump/coin-intel?mint=${encodeURIComponent(mint)}&wallets=1&network=${NETWORK}`, { timeout: 12000 });
+ // Coins the radar never observed (pre-engine launches, non-pump mints) simply
+ // don't get this section — absence of data is not an error state here.
+ if (!ok || !data || !data.mint) return;
+ wrap.innerHTML = renderIntel(data);
+ sec.hidden = false;
+ }
+
+ function renderIntel(c) {
+ const q = qualityMeta(c.quality_score);
+ const organic = c.organic_score != null ? Math.round(c.organic_score * 100) : null;
+ const bundle = c.bundle_score != null ? Math.round(c.bundle_score * 100) : null;
+
+ const head = `<div class="oc-intel-head">
+ <div class="oc-iq ${q.cls}"><b>${c.quality_score ?? '—'}</b><div class="oc-iq-lbl">${esc(q.label)}</div></div>
+ <div class="oc-ob">
+ <div class="oc-ob-row"><span>Organic <b class="og">${organic != null ? `${organic}%` : 'n/m'}</b></span><span>Bundle <b class="bd">${bundle != null ? `${bundle}%` : 'n/m'}</b></span></div>
+ <div class="oc-ob-track">
+ <span class="oc-ob-organic" style="width:${Math.max(0, Math.min(100, organic || 0))}%"></span>
+ <span class="oc-ob-bundle" style="width:${Math.max(0, Math.min(100, bundle || 0))}%"></span>
+ </div>
+ </div>
+ <div class="coin-meta oc-intel-meta">
+ ${c.observation_seconds != null ? `<span class="chip">observed <b>${fmtInt(c.observation_seconds)}s</b></span>` : ''}
+ ${c.first_seen_at ? `<span class="chip">first seen <b>${esc(ago(c.first_seen_at))} ago</b></span>` : ''}
+ ${c.category ? `<span class="chip cat">${esc(c.category)}</span>` : ''}
+ ${c.classify_source ? `<span class="chip">classified by <b>${esc(c.classify_source)}</b>${c.classify_confidence != null ? ` · ${Math.round(c.classify_confidence * 100)}%` : ''}</span>` : ''}
+ ${c.outcome?.outcome ? `<span class="chip ${c.outcome.rugged ? 'flag' : c.outcome.graduated ? 'sm' : ''}">${c.outcome.rugged ? 'rugged ✕' : c.outcome.graduated ? 'graduated ✓' : esc(c.outcome.outcome)}</span>` : ''}
+ ${c.outcome?.ath_multiple != null ? `<span class="chip">ATH <b>${Number(c.outcome.ath_multiple).toFixed(1)}×</b></span>` : ''}
+ ${Array.isArray(c.tags) ? c.tags.slice(0, 6).map((t) => `<span class="chip">${esc(t)}</span>`).join('') : ''}
+ </div>
+ </div>`;
+
+ const news = c.is_news_meme && c.news_headline
+ ? `<div class="oc-news"><span class="oc-news-glyph" aria-hidden="true">⚡</span><div>
+ <p class="oc-news-headline">${esc(c.news_headline)}</p>
+ ${c.news_url && /^https?:\/\//i.test(c.news_url) ? `<a href="${esc(c.news_url)}" target="_blank" rel="noopener noreferrer">Read source →</a>` : ''}
+ </div></div>`
+ : '';
+
+ const flags = Array.isArray(c.risk_flags) ? c.risk_flags : [];
+ const flagsHtml = `<div class="dr-sec">Risk flags</div>
+ <div class="oc-flags">${flags.length
+ ? flags.map((f) => {
+ const meta = RADAR_FLAGS[f] || { label: f.replace(/_/g, ' '), tone: 'warn', tip: '' };
+ return `<div class="oc-flag oc-flag--${meta.tone}"><span class="oc-flag-name">${esc(meta.label)}</span>${meta.tip ? `<span class="oc-flag-tip">${esc(meta.tip)}</span>` : ''}</div>`;
+ }).join('')
+ : '<div class="oc-flag oc-flag--clean"><span class="oc-flag-name">No risk flags</span><span class="oc-flag-tip">Nothing raised during the observation window.</span></div>'}</div>`;
+
+ const notable = Array.isArray(c.smart_money_notable) ? c.smart_money_notable : [];
+ const smHtml = (c.smart_money_count > 0 || notable.length)
+ ? `<div class="dr-sec">Smart money</div>
+ <div class="coin-meta" style="margin-bottom:0.625rem">
+ <span class="chip sm">${fmtInt(c.smart_money_count)} wallet${c.smart_money_count === 1 ? '' : 's'}</span>
+ ${c.smart_money_score != null ? `<span class="chip">pedigree <b>${Math.round(c.smart_money_score)}/100</b></span>` : ''}
+ </div>
+ ${notable.slice(0, 5).map((w) => `<div class="nwallet">
+ <div class="nw-left">
+ <span class="nw-addr"><a class="solscan" href="${solscan(w.wallet)}" target="_blank" rel="noopener">${esc(w.label || shortAddr(w.wallet))}</a></span>
+ <span class="nw-sub">${w.win_rate != null ? `${Math.round(w.win_rate * 100)}% win${w.wins != null && w.duds != null ? ` · ${w.wins}W/${w.duds}L` : ''}` : '—'}</span>
+ </div>
+ ${w.smart_money_score != null ? `<span class="nw-buy">${Math.round(w.smart_money_score)}</span>` : ''}
+ </div>`).join('')}`
+ : '';
+
+ const sig = [
+ ['Organic score', ratioPct(c.organic_score), null],
+ ['Bundle score', ratioPct(c.bundle_score), null],
+ ['Coordination', ratioPct(c.coordination_score), 'Blended bundle + funding-graph coordination signal'],
+ ['Snipe ratio', ratioPct(c.snipe_ratio), 'Share of early supply taken by snipers'],
+ ['Top-10 concentration', ratioPct(c.concentration_top10), 'Share of supply held by the top 10 wallets'],
+ ['Top-5 concentration', ratioPct(c.concentration_top5), 'Share of supply held by the top 5 wallets'],
+ ['Fresh-wallet ratio', ratioPct(c.fresh_wallet_ratio), 'Share of buyers using brand-new wallets'],
+ ['Bubblemap connectivity', ratioPct(c.bubblemap_connectivity), 'How interlinked the buyer wallets are by funding'],
+ ['Funding clusters', c.cluster_count != null ? fmtInt(c.cluster_count) : '—', 'Distinct funding clusters among buyers'],
+ ['Mkt cap (first seen)', c.market_cap_sol != null ? `${fmtSolPlain(c.market_cap_sol)} ◎` : 'not measured', 'Market cap in SOL when the engine began observing'],
+ ['Unique buyers', fmtInt(c.unique_buyers), null],
+ ['Unique sellers', fmtInt(c.unique_sellers), null],
+ ['Buys / sells', `${fmtInt(c.buy_count)} / ${fmtInt(c.sell_count)}`, null],
+ ['Buy/sell ratio', c.buy_sell_ratio != null ? `${Number(c.buy_sell_ratio).toFixed(2)}×` : '—', 'Buy volume divided by sell volume'],
+ ['Buy volume', c.buy_volume_sol != null ? `${fmtSolPlain(c.buy_volume_sol)} ◎` : '—', null],
+ ['Sell volume', c.sell_volume_sol != null ? `${fmtSolPlain(c.sell_volume_sol)} ◎` : '—', null],
+ ['Net flow', c.net_volume_sol != null ? `${c.net_volume_sol > 0 ? '+' : ''}${fmtSolPlain(c.net_volume_sol)} ◎` : '—', 'Buy volume minus sell volume', c.net_volume_sol > 0 ? 'green' : c.net_volume_sol < 0 ? 'red' : ''],
+ ['Dev buy', c.dev_buy_sol != null ? `${fmtSolPlain(c.dev_buy_sol)} ◎` : '—', null],
+ ['Dev sold', c.dev_sold ? 'Yes' : 'No', null, c.dev_sold ? 'red' : ''],
+ ['Largest buy', c.largest_buy_sol != null ? `${fmtSolPlain(c.largest_buy_sol)} ◎` : '—', null],
+ ];
+ const sigHtml = `<div class="dr-sec">Signal breakdown</div>
+ <div class="oc-sig-grid">${sig.map(([l, v, tip, cls]) => intelTile(l, v, tip, cls || '')).join('')}</div>`;
+
+ const wallets = Array.isArray(c.wallets) ? c.wallets : [];
+ const ledgerHtml = wallets.length
+ ? `<div class="dr-sec">Top trader ledger</div>
+ <div class="oc-ledger"><div class="cv-table-wrap"><table class="cv-table">
+ <thead><tr><th scope="col">Wallet</th><th scope="col">Buy ◎</th><th scope="col">Sell ◎</th><th scope="col">Net ◎</th></tr></thead>
+ <tbody>${wallets.map((w) => `<tr>
+ <td><a class="solscan" href="${solscan(w.wallet)}" target="_blank" rel="noopener" title="${esc(w.wallet)}">${esc(shortAddr(w.wallet))}</a>${w.is_creator ? '<span class="oc-wtag">creator</span>' : ''}</td>
+ <td class="cv-mono" style="text-align:right">${w.buy_sol != null ? fmtSolPlain(w.buy_sol) : '—'}</td>
+ <td class="cv-mono" style="text-align:right">${w.sell_sol != null ? fmtSolPlain(w.sell_sol) : '—'}</td>
+ <td class="cv-mono ${w.net_sol > 0 ? 'mkt-up' : w.net_sol < 0 ? 'mkt-down' : ''}" style="text-align:right">${w.net_sol != null ? `${w.net_sol > 0 ? '+' : ''}${fmtSolPlain(w.net_sol)}` : '—'}</td>
+ </tr>`).join('')}</tbody>
+ </table></div></div>`
+ : '';
+
+ const narrative = c.narrative ? `<p class="oc-intel-note" style="margin:0 0 1rem;font-size:0.9375rem;color:var(--cv-text-2)">${esc(c.narrative)}</p>` : '';
+
+ return `${head}${narrative}${news}${flagsHtml}${smHtml}${sigHtml}${ledgerHtml}
+ <p class="oc-intel-note">Every number traces to an observed on-chain trade in the coin's first moments — nothing is synthesized. <a class="dr-act" href="/radar">Open Coin Radar →</a></p>`;
+ }
+
// ── price chart ────────────────────────────────────────────────────────────
// A TradingView-grade candlestick view via the DexScreener embed (keyed by the
// mint, resolves the most-liquid pair itself), a native SVG line chart from
@@ -521,16 +698,17 @@
let view = stored || (hasTrades ? 'trades' : preCurve ? 'line' : 'candles');
if (view === 'trades' && !hasTrades) view = preCurve ? 'line' : 'candles';
const tradesBtn = hasTrades ? `<button type="button" class="oc-seg-btn${view === 'trades' ? ' on' : ''}" data-view="trades">Agent trades</button>` : '';
- container.innerHTML = `<div class="dr-sec" style="margin-top:0">Price <span style="color:var(--faint);font-weight:400;font-size:10px">live</span></div>
- <div class="oc-chart-controls">
- <div class="oc-seg">
+ container.innerHTML = `<div class="oc-chart-controls">
+ <span class="oc-chart-title">Price chart <span class="oc-h2-note">live</span></span>
+ <div class="oc-seg" role="group" aria-label="Chart view">
<button type="button" class="oc-seg-btn${view === 'candles' ? ' on' : ''}" data-view="candles">Candles</button>
<button type="button" class="oc-seg-btn${view === 'line' ? ' on' : ''}" data-view="line">Line</button>
${tradesBtn}
</div>
<a class="dr-act" href="https://dexscreener.com/solana/${encodeURIComponent(mint)}" target="_blank" rel="noopener">DexScreener ↗</a>
</div>
- <div class="oc-chart-canvas" id="ocChartCanvas"></div>`;
+ <div class="oc-chart-canvas" id="ocChartCanvas"></div>
+ <p class="oc-chart-credit"><a href="https://dexscreener.com/solana/${encodeURIComponent(mint)}" target="_blank" rel="noopener nofollow noreferrer">Candles chart by DexScreener · TradingView ↗</a></p>`;
const canvas = container.querySelector('#ocChartCanvas');
let watchdog = 0;
function renderCandles() {
@@ -585,7 +763,7 @@
${tx}
</div>`;
}).join('');
- wrap.innerHTML = `<div class="dr-sec">Agent transactions <span style="color:var(--faint);font-weight:400;font-size:10px">${trades.length} on three.ws · ${buys} buys / ${trades.length - buys} sells</span></div>
+ wrap.innerHTML = `<h2 class="cv-h2">Agent transactions <span class="oc-h2-note">${trades.length} on three.ws · ${buys} buys / ${trades.length - buys} sells</span></h2>
<div class="oc-atx-list">${rows}</div>
${trades.length > 12 ? `<a class="dr-act oc-atx-more" href="/pulse?mint=${encodeURIComponent(mint)}">Every agent transaction in this coin →</a>` : ''}`;
}
@@ -650,7 +828,7 @@
if (!ok || !data?.items?.length) return;
const related = data.items.filter((it) => it.mint !== mint).slice(0, 3);
if (!related.length) return;
- wrap.innerHTML = `<div class="dr-sec">Related · ${esc(category)}</div>
+ wrap.innerHTML = `<h2 class="cv-h2">Related <span class="oc-h2-note">${esc(category)} · Oracle score ≥ 60</span></h2>
<div style="display:flex;flex-direction:column;gap:6px">
${related.map((r) => {
const imgEl = r.image_uri
@@ -763,32 +941,42 @@
set('ped', p.pedigree); set('str', p.structure); set('nar', p.narrative); set('mom', p.momentum);
}
- // The conviction-independent scaffold: identity is already in the SSR hero, so
- // market + live trades render immediately for ANY mint. The conviction column
- // fills in (or shows an "observing" state) once /api/oracle/coin resolves.
+ // The conviction-independent scaffold: identity is already in the SSR header,
+ // so chart + market + launch intel + live trades render immediately for ANY
+ // mint. The conviction section fills in (or shows an "observing" state) once
+ // /api/oracle/coin resolves. Sections follow the markets-hub (/coin/:id)
+ // stacked layout: full-width cv-sections with editorial headings.
async function buildScaffold(mint) {
const deep = $('#ocDeep');
if (!deep) return;
deep.innerHTML = `
<div id="ocTake"></div>
- <div id="ocChart" class="oc-chart"></div>
- <div id="ocAgentTx" class="oc-agent-tx"></div>
- <div id="ocHistory"></div>
- <div class="oc-cols">
- <div id="ocConviction">
- <div class="dr-sec">Conviction</div>
- <div class="oc-spinner" aria-label="Reading conviction"></div>
+ <section class="cv-section" aria-label="Price chart">
+ <div id="ocChart" class="oc-chart"></div>
+ </section>
+ <section class="cv-section" aria-label="Market">
+ <h2 class="cv-h2">Market <span class="oc-h2-note">live</span></h2>
+ <div id="ocMarket" class="mkt-loading" aria-busy="true">
+ <div class="mkt-skel"><span></span><span></span><span></span><span></span><span></span><span></span></div>
</div>
- <div>
- <div id="ocMarket" class="mkt-loading" aria-busy="true">
- <div class="dr-sec">Market <span style="color:var(--faint);font-weight:400;font-size:10px">live</span></div>
- <div class="mkt-skel"><span></span><span></span><span></span><span></span><span></span><span></span></div>
- </div>
- <div class="dr-sec">Live trades</div>
- <div id="ocTape" class="trade-tape"></div>
- <div id="ocRelated"></div>
+ </section>
+ <section class="cv-section" id="ocIntelSec" aria-label="Launch intelligence" hidden>
+ <h2 class="cv-h2">Launch intelligence <span class="oc-h2-note">Coin Radar · first ~90s of trading</span></h2>
+ <div id="ocIntel"></div>
+ </section>
+ <section class="cv-section" aria-label="Conviction">
+ <h2 class="cv-h2">Conviction <span class="oc-h2-note">who's buying · how · what · move</span></h2>
+ <div id="ocHistory"></div>
+ <div id="ocConviction" class="oc-two">
+ <div class="oc-spinner" aria-label="Reading conviction"></div>
</div>
- </div>`;
+ </section>
+ <section class="cv-section oc-agent-tx" id="ocAgentTx" aria-label="Agent transactions"></section>
+ <section class="cv-section" aria-label="Live trades">
+ <h2 class="cv-h2">Live trades <span class="oc-h2-note">PumpPortal stream</span></h2>
+ <div id="ocTape" class="trade-tape"></div>
+ </section>
+ <div id="ocRelated" class="cv-section"></div>`;
// Load this coin's agent transactions before the chart mounts so the annotated
// "Agent trades" view can lead by default and the list renders together. The
// fetch is fast and never throws; on failure both simply stay empty.
@@ -797,6 +985,7 @@
const chartEl = $('#ocChart');
if (chartEl) mountChart(chartEl, mint);
loadMarket(mint);
+ loadRadarIntel(mint);
loadHistory(mint);
loadProofTrades(mint); // renders into #ocProof once the conviction column exists
if (window.__ocTape) { try { window.__ocTape.destroy(); } catch {} }
@@ -816,16 +1005,20 @@
const out = data.outcome;
const comp = data.components || {};
col.innerHTML = `
- <div class="dr-sec">Why this score</div>${reasons}
- ${narr ? `<div class="dr-sec">Narrative</div><div style="font-size:13.5px;color:var(--ink)">${esc(narr.narrative || '')}</div>
- <div class="coin-meta" style="margin-top:8px"><span class="chip cat">${esc(narr.category)}</span><span class="chip">virality <b>${narr.virality ?? '—'}</b></span><span class="chip">${esc(narr.source || '')}</span></div>` : ''}
- <div id="ocPulse"></div>
- ${structurePanel(comp.structure)}
- ${out ? `<div class="dr-sec">Outcome</div><div class="coin-meta">
- <span class="chip ${out.graduated ? 'sm' : out.rugged ? 'flag' : ''}">${out.graduated ? 'graduated ✓' : out.rugged ? 'rugged ✕' : 'live'}</span>
- ${out.ath_multiple ? `<span class="chip">ATH <b>${Number(out.ath_multiple).toFixed(1)}×</b></span>` : ''}</div>` : ''}
- <div class="dr-sec">Who's in <span style="color:var(--faint)">(${(data.whos_in || []).length})</span></div>${whos}
- <div id="ocProof"></div>`;
+ <div class="oc-col">
+ <div class="dr-sec">Why this score</div>${reasons}
+ ${narr ? `<div class="dr-sec">Narrative</div><div style="font-size:13.5px;color:var(--ink)">${esc(narr.narrative || '')}</div>
+ <div class="coin-meta" style="margin-top:8px"><span class="chip cat">${esc(narr.category)}</span><span class="chip">virality <b>${narr.virality ?? '—'}</b></span><span class="chip">${esc(narr.source || '')}</span></div>` : ''}
+ <div id="ocPulse"></div>
+ </div>
+ <div class="oc-col">
+ ${structurePanel(comp.structure)}
+ ${out ? `<div class="dr-sec">Outcome</div><div class="coin-meta">
+ <span class="chip ${out.graduated ? 'sm' : out.rugged ? 'flag' : ''}">${out.graduated ? 'graduated ✓' : out.rugged ? 'rugged ✕' : 'live'}</span>
+ ${out.ath_multiple ? `<span class="chip">ATH <b>${Number(out.ath_multiple).toFixed(1)}×</b></span>` : ''}</div>` : ''}
+ <div class="dr-sec">Who's in <span style="color:var(--faint)">(${(data.whos_in || []).length})</span></div>${whos}
+ <div id="ocProof"></div>
+ </div>`;
const take = $('#ocTake');
if (take) take.innerHTML = drawerTake(data);
loadHistory(mint);
@@ -837,8 +1030,7 @@
function renderObserving(mint, retry) {
const col = $('#ocConviction');
if (!col) return;
- col.innerHTML = `<div class="dr-sec">Conviction</div>
- <div class="state" style="padding:28px 20px">
+ col.innerHTML = `<div class="state" style="padding:28px 20px;grid-column:1/-1">
<b>Oracle is reading this launch</b>
A conviction score fuses who's buying, how, what it is, and how it's moving — it appears here within moments of a coin surfacing on pump.fun. The live market and trade tape are already streaming.
<div style="margin-top:14px"><button type="button" class="dr-act" id="ocRetry">${retry >= 4 ? 'Check again' : 'Checking…'}</button></div>
diff --git a/src/radar.css b/src/radar.css
index 9cf969907..3fe82782f 100644
--- a/src/radar.css
+++ b/src/radar.css
@@ -368,6 +368,7 @@
font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--ink);
background: var(--surface-2); border: 1px solid var(--stroke);
border-radius: var(--radius-md); padding: var(--space-2xs) var(--space-sm); cursor: pointer;
+ text-decoration: none; display: inline-block;
transition: background var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard);
}
.rc-detail:hover { background: var(--surface-3); border-color: var(--stroke-strong); }
@@ -455,6 +456,13 @@
.rd-img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--surface-2); border: 1px solid var(--stroke); flex-shrink: 0; }
.rd-title { font-size: var(--text-lg); font-weight: var(--weight-bold); color: var(--ink-bright); margin: 0; line-height: 1.2; }
.rd-sub { font-size: var(--text-sm); color: var(--ink-dim); margin-top: 2px; }
+.rd-page-link {
+ display: inline-block; margin-top: 6px; font-size: var(--text-sm); font-weight: var(--weight-semibold);
+ color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--stroke-strong);
+ transition: color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard);
+}
+.rd-page-link:hover { color: var(--ink-bright); border-bottom-color: var(--ink-dim); }
+.rd-page-link:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: 2px; border-radius: var(--radius-sm); }
.rd-close {
background: var(--surface-2); border: 1px solid var(--stroke); border-radius: var(--radius-md);
color: var(--ink-dim); width: 34px; height: 34px; display: grid; place-items: center;
diff --git a/src/radar.js b/src/radar.js
index 76f376b33..3c962169d 100644
--- a/src/radar.js
+++ b/src/radar.js
@@ -848,9 +848,19 @@ function renderCard(coin) {
scan.href = solscanToken(coin.mint, coin.network);
scan.target = '_blank'; scan.rel = 'noopener noreferrer';
scan.addEventListener('click', (e) => e.stopPropagation());
- const detail = el('button', 'rc-detail', 'Full intel →');
- detail.type = 'button';
- detail.addEventListener('click', (e) => { e.stopPropagation(); open(); });
+ // Mainnet coins link straight to their full intelligence page (the card body
+ // still opens the quick-view drawer); devnet coins have no page, so the
+ // button keeps opening the drawer.
+ let detail;
+ if (coin.network === 'devnet') {
+ detail = el('button', 'rc-detail', 'Full intel →');
+ detail.type = 'button';
+ detail.addEventListener('click', (e) => { e.stopPropagation(); open(); });
+ } else {
+ detail = el('a', 'rc-detail', 'Full intel →');
+ detail.href = `/oracle/coin/${coin.mint}`;
+ detail.addEventListener('click', (e) => e.stopPropagation());
+ }
const watched = isWatched(coin.mint);
const watchBtn = el('button', `rc-watch${watched ? ' rc-watched' : ''}`, watched ? '★' : '☆');
@@ -1200,6 +1210,13 @@ function drawerHeader(title, sub, coin) {
const txt = el('div');
txt.append(el('h2', 'rd-title', title));
if (sub) txt.append(el('div', 'rd-sub', sub));
+ // The drawer is the quick view; surface the full-page link right at the top
+ // so the deep coin page is one click away, not buried below the ledger.
+ if (coin && coin.network !== 'devnet') {
+ const page = el('a', 'rd-page-link', 'Open full page →');
+ page.href = `/oracle/coin/${coin.mint}`;
+ txt.append(page);
+ }
titleWrap.append(txt);
const close = el('button', 'rd-close');
diff --git a/tests/server-rewrite-query.test.js b/tests/server-rewrite-query.test.js
index c5c5385c5..a12e22bf7 100644
--- a/tests/server-rewrite-query.test.js
+++ b/tests/server-rewrite-query.test.js
@@ -52,7 +52,7 @@ describe('rewrite-dest query params reach handlers on req.url', () => {
const res = await fetch(`${BASE}/oracle/coin/${MINT}`, { redirect: 'manual' });
expect(res.status).toBe(200);
const html = await res.text();
- expect(html).toContain('oc-hero'); // SSR conviction hero
+ expect(html).toContain('ocHeroDynamic'); // SSR conviction header
expect(html).toContain('/oracle-coin.js'); // hydration script
expect(html).toContain(MINT); // boot payload carries the mint
}, 30000);