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.

20.0 KB
Raw Blame
/*
 * Hood Desk (/markets/robinhood/desk) - the live onchain trading desk for
 * Robinhood Chain (4663).
 *
 * Built on the shared coin-pages.css token system, plus one desk-local accent
 * (Robinhood green) and a terminal type scale: uppercase micro-labels, mono
 * numerals, hairline rules. Every panel here is a real data surface, so the
 * chrome stays quiet and the numbers carry the weight.
 */

:root {
	--hd-accent: #00a63e;
	/* Fills and strokes use --hd-accent; anything that renders TEXT uses
	   --hd-accent-text, which clears 4.5:1 on white (the brand green does not,
	   at 3.2:1). The hover fill stays light enough to keep the near-black
	   button label above 4.5:1 against it. */
	--hd-accent-hover: #00932f;
	--hd-accent-text: #007a2e;
	--hd-accent-soft: rgba(0, 200, 5, 0.1);
	/* The 10px kind chips sit on a tinted ground, where the shared red text
	   token lands at 4.22:1. These two are the same hues, one step darker. */
	--hd-chip-red: #b3161b;
	--hd-chip-green: #12652f;
	--hd-grid: rgba(15, 23, 42, 0.06);
	--hd-ridge-line: rgba(15, 23, 42, 0.5);
	--hd-ridge-fill: rgba(255, 255, 255, 0.92);
}

[data-theme='dark'] {
	--hd-accent: #22e06a;
	--hd-accent-hover: #4bf58b;
	--hd-accent-text: #4bf58b;
	--hd-chip-red: var(--cv-red-text);
	--hd-chip-green: var(--cv-green-text);
	--hd-accent-soft: rgba(34, 224, 106, 0.12);
	--hd-grid: rgba(255, 255, 255, 0.07);
	--hd-ridge-line: rgba(226, 232, 240, 0.55);
	--hd-ridge-fill: rgba(9, 9, 11, 0.9);
}

.hd-main {
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 var(--cv-content-padding) 4rem;
}

.hd-mono {
	font-family: var(--cv-font-mono);
	font-variant-numeric: tabular-nums;
}

.hd-label {
	font-family: var(--cv-font-mono);
	font-size: 0.6875rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--cv-text-3);
}

.hd-up { color: var(--cv-green-text); }
.hd-down { color: var(--cv-red-text); }
.hd-dim { color: var(--cv-text-3); }

/* ── Desk bar ───────────────────────────────────────────────────────────── */
.hd-bar {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
	padding: 0.875rem 1.125rem;
	border: 1px solid var(--cv-border);
	border-radius: var(--cv-radius-xl);
	background: var(--cv-surface);
	box-shadow: var(--cv-shadow-card);
	margin-bottom: 0.875rem;
}

.hd-brand {
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
	font-family: var(--cv-font-mono);
	font-weight: 700;
	font-size: 1.0625rem;
	letter-spacing: 0.02em;
	color: var(--cv-text);
	margin: 0;
}

.hd-brand .hd-brand-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 8px;
	background: var(--hd-accent);
	color: #04140a;
	font-size: 0.875rem;
	transform: translateY(3px);
}

.hd-brand .hd-brand-sub {
	color: var(--hd-accent-text);
	font-weight: 500;
	font-size: 0.9375rem;
}

.hd-bar-spacer { flex: 1 1 auto; }

.hd-live {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.375rem 0.75rem;
	border-radius: 999px;
	border: 1px solid var(--hd-accent);
	background: var(--hd-accent-soft);
	color: var(--hd-accent-text);
	font-family: var(--cv-font-mono);
	font-size: 0.6875rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	font-weight: 600;
}

.hd-live-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--hd-accent);
	box-shadow: 0 0 0 0 var(--hd-accent-soft);
	animation: hd-pulse 2.4s ease-out infinite;
}

.hd-live[data-state='stale'] {
	border-color: var(--cv-border-hover);
	background: var(--cv-surface-3);
	color: var(--cv-text-3);
}

.hd-live[data-state='stale'] .hd-live-dot { background: var(--cv-text-3); animation: none; }

@keyframes hd-pulse {
	0% { box-shadow: 0 0 0 0 var(--hd-accent-soft); }
	70% { box-shadow: 0 0 0 7px transparent; }
	100% { box-shadow: 0 0 0 0 transparent; }
}

@media (prefers-reduced-motion: reduce) {
	.hd-live-dot { animation: none; }
}

.hd-clock {
	font-family: var(--cv-font-mono);
	font-size: 0.8125rem;
	color: var(--cv-text-2);
	letter-spacing: 0.04em;
}

.hd-wallet-form {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.hd-input {
	background: var(--cv-surface-2);
	border: 1px solid var(--cv-border);
	border-radius: var(--cv-radius-md);
	color: var(--cv-text);
	font-family: var(--cv-font-mono);
	font-size: 0.8125rem;
	padding: 0.5rem 0.625rem;
	width: min(360px, 46vw);
	transition: border-color var(--duration-fast) var(--ease-standard);
}

.hd-input::placeholder { color: var(--cv-text-3); }
.hd-input:hover { border-color: var(--cv-border-hover); }
.hd-input:focus-visible { outline: 2px solid var(--hd-accent); outline-offset: 1px; border-color: transparent; }

.hd-btn {
	appearance: none;
	border: 1px solid var(--cv-border);
	background: var(--cv-surface-2);
	color: var(--cv-text);
	border-radius: var(--cv-radius-md);
	font: inherit;
	font-size: 0.8125rem;
	font-weight: 600;
	padding: 0.5rem 0.875rem;
	cursor: pointer;
	transition: background var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard), transform var(--duration-instant) var(--ease-standard), color var(--duration-fast) var(--ease-standard);
	white-space: nowrap;
}

.hd-btn:hover { border-color: var(--cv-border-hover); background: var(--cv-surface-3); }
.hd-btn:active { transform: translateY(1px); }
.hd-btn:focus-visible { outline: 2px solid var(--hd-accent); outline-offset: 2px; }
.hd-btn[disabled] { opacity: 0.55; cursor: not-allowed; }

.hd-btn-accent {
	background: var(--hd-accent);
	border-color: var(--hd-accent);
	color: #04140a;
}

.hd-btn-accent:hover { background: var(--hd-accent-hover); border-color: var(--hd-accent-hover); color: #04140a; }

.hd-btn-ghost { background: transparent; }

.hd-btn-sm { padding: 0.3125rem 0.625rem; font-size: 0.75rem; }

.hd-addr-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.375rem 0.625rem;
	border-radius: 999px;
	border: 1px solid var(--cv-border);
	background: var(--cv-surface-2);
	font-family: var(--cv-font-mono);
	font-size: 0.75rem;
	color: var(--cv-text);
}

/* ── Stat strip ─────────────────────────────────────────────────────────── */
.hd-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 1px;
	background: var(--cv-border);
	border: 1px solid var(--cv-border);
	border-radius: var(--cv-radius-xl);
	overflow: hidden;
	margin-bottom: 0.875rem;
	box-shadow: var(--cv-shadow-card);
}

.hd-stat {
	background: var(--cv-surface);
	padding: 1rem 1.125rem 1.125rem;
	min-height: 116px;
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
}

.hd-stat-value {
	font-family: var(--cv-font-mono);
	font-size: clamp(1.375rem, 2.4vw, 1.875rem);
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.1;
	color: var(--cv-text);
	font-variant-numeric: tabular-nums;
}

.hd-stat-value.hd-accent { color: var(--hd-accent-text); }
.hd-stat-foot { font-size: 0.75rem; color: var(--cv-text-3); font-family: var(--cv-font-mono); }

.hd-gas-ladder { display: flex; gap: 3px; margin-top: 0.125rem; }

.hd-gas-seg {
	height: 8px;
	flex: 1 1 0;
	border-radius: 2px;
	background: var(--cv-surface-3);
}

.hd-gas-seg.on { background: var(--hd-accent); }

/* ── Cards + grid ───────────────────────────────────────────────────────── */
.hd-grid {
	display: grid;
	gap: 0.875rem;
	margin-bottom: 0.875rem;
}

.hd-grid-2 { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); }
.hd-grid-2-even { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 1040px) {
	.hd-grid-2,
	.hd-grid-2-even { grid-template-columns: minmax(0, 1fr); }
}

.hd-card {
	border: 1px solid var(--cv-border);
	border-radius: var(--cv-radius-xl);
	background: var(--cv-surface);
	box-shadow: var(--cv-shadow-card);
	padding: 1rem 1.125rem 1.125rem;
	min-width: 0;
}

.hd-card-head {
	display: flex;
	align-items: baseline;
	gap: 0.625rem;
	flex-wrap: wrap;
	margin-bottom: 0.875rem;
}

.hd-card-title {
	margin: 0;
	font-size: 1rem;
	font-weight: 650;
	letter-spacing: -0.01em;
	color: var(--cv-text);
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.hd-card-title::before {
	content: '';
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--hd-accent);
	flex: none;
}

.hd-card-head .hd-card-meta { margin-left: auto; }

.hd-seg {
	display: inline-flex;
	border: 1px solid var(--cv-border);
	border-radius: 999px;
	overflow: hidden;
	background: var(--cv-surface-2);
}

.hd-seg button {
	appearance: none;
	border: 0;
	background: transparent;
	color: var(--cv-text-3);
	font-family: var(--cv-font-mono);
	font-size: 0.6875rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 0.3125rem 0.625rem;
	cursor: pointer;
	transition: background var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard);
}

.hd-seg button:hover { color: var(--cv-text); }
.hd-seg button[aria-pressed='true'] { background: var(--hd-accent); color: #04140a; font-weight: 600; }
.hd-seg button:focus-visible { outline: 2px solid var(--hd-accent); outline-offset: -2px; }

/* ── Charts ─────────────────────────────────────────────────────────────── */
.hd-chart-wrap { position: relative; }
.hd-chart { display: block; width: 100%; height: auto; touch-action: pan-y; }
.hd-chart-grid line { stroke: var(--hd-grid); stroke-width: 1; }
.hd-chart-axis { fill: var(--cv-text-3); font-family: var(--cv-font-mono); font-size: 10px; }

.hd-tip {
	position: absolute;
	pointer-events: none;
	z-index: 5;
	background: var(--cv-surface);
	border: 1px solid var(--cv-border-hover);
	border-radius: var(--cv-radius-md);
	box-shadow: var(--cv-shadow-dropdown);
	padding: 0.5rem 0.625rem;
	font-family: var(--cv-font-mono);
	font-size: 0.75rem;
	color: var(--cv-text);
	white-space: nowrap;
	transform: translate(-50%, -115%);
	transition: opacity var(--duration-instant) var(--ease-standard);
}

.hd-tip[hidden] { display: none; }
.hd-tip b { color: var(--hd-accent-text); font-weight: 600; }
.hd-tip .hd-tip-sub { color: var(--cv-text-3); display: block; margin-top: 2px; }

/* ── Activity tape ──────────────────────────────────────────────────────── */
.hd-tape { max-height: 320px; overflow-y: auto; margin: -0.25rem -0.25rem 0; padding: 0 0.25rem; list-style: none; }
.hd-tape-row {
	display: grid;
	grid-template-columns: 58px 74px minmax(0, 1fr) auto;
	align-items: center;
	gap: 0.625rem;
	padding: 0.4375rem 0.25rem;
	border-bottom: 1px solid var(--cv-border);
	font-family: var(--cv-font-mono);
	font-size: 0.75rem;
	color: var(--cv-text-2);
	text-decoration: none;
	transition: background var(--duration-fast) var(--ease-standard);
}

.hd-tape li:last-child .hd-tape-row { border-bottom: 0; }
.hd-tape-row:hover { background: var(--cv-surface-2); }
.hd-tape-row:focus-visible { outline: 2px solid var(--hd-accent); outline-offset: -2px; border-radius: var(--cv-radius-sm); }
.hd-tape-row.is-new { animation: hd-flash 1.4s ease-out; }

@keyframes hd-flash {
	from { background: var(--hd-accent-soft); }
	to { background: transparent; }
}

@media (prefers-reduced-motion: reduce) {
	.hd-tape-row.is-new { animation: none; }
}

.hd-kind {
	text-transform: uppercase;
	font-size: 0.625rem;
	letter-spacing: 0.06em;
	font-weight: 600;
	padding: 0.125rem 0.375rem;
	border-radius: var(--cv-radius-sm);
	text-align: center;
	background: var(--cv-surface-3);
	color: var(--cv-text-2);
}

.hd-kind.swap { background: var(--hd-accent-soft); color: var(--hd-accent-text); }
.hd-kind.receive, .hd-kind.mint { background: var(--cv-green-soft); color: var(--hd-chip-green); }
.hd-kind.send, .hd-kind.burn { background: var(--cv-red-soft); color: var(--hd-chip-red); }

.hd-tape-detail { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--cv-text); }
.hd-tape-right { text-align: right; white-space: nowrap; }

/* ── Ridge ──────────────────────────────────────────────────────────────── */
.hd-ridge-layout { display: grid; grid-template-columns: 212px minmax(0, 1fr); gap: 1.25rem; }

@media (max-width: 860px) {
	.hd-ridge-layout { grid-template-columns: minmax(0, 1fr); }
}

.hd-metric-rail { display: flex; flex-direction: column; gap: 0.75rem; border-right: 1px solid var(--cv-border); padding-right: 1.25rem; }

@media (max-width: 860px) {
	.hd-metric-rail { border-right: 0; padding-right: 0; border-bottom: 1px solid var(--cv-border); padding-bottom: 1rem; }
}

.hd-metric { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; }
.hd-metric .hd-label { min-width: 0; }
.hd-metric-value { font-family: var(--cv-font-mono); font-size: 0.875rem; font-weight: 600; color: var(--cv-text); font-variant-numeric: tabular-nums; white-space: nowrap; }

.hd-ridge-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.hd-ridge-svg { display: block; width: 100%; height: auto; }

/* Below ~700px the ridge's own aspect ratio would squash it to a 140px strip
   where no layer is readable. Give it a floor width and let the container
   scroll instead, the same treatment every wide table on the site gets. */
@media (max-width: 700px) {
	.hd-ridge-svg { min-width: 620px; }
}
.hd-ridge-layer { fill: var(--hd-ridge-fill); stroke: var(--hd-ridge-line); stroke-width: 1; stroke-linejoin: round; }
.hd-ridge-layer.hot { stroke: var(--hd-accent); }
.hd-ridge-zero { stroke: var(--cv-text-3); stroke-dasharray: 3 3; stroke-width: 1; }
.hd-ridge-band { fill: var(--hd-accent-soft); opacity: 0.55; }
.hd-ridge-hit { fill: transparent; cursor: crosshair; }
.hd-ridge-hit:hover { fill: rgba(127, 127, 127, 0.08); }

/* ── Book table ─────────────────────────────────────────────────────────── */
.hd-table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
.hd-table th {
	text-align: right;
	font-family: var(--cv-font-mono);
	font-size: 0.6875rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--cv-text-3);
	font-weight: 500;
	padding: 0 0.5rem 0.5rem;
	border-bottom: 1px solid var(--cv-border);
	white-space: nowrap;
}

.hd-table th.left, .hd-table td.left { text-align: left; }
.hd-table td {
	text-align: right;
	padding: 0.5rem;
	border-bottom: 1px solid var(--cv-border);
	color: var(--cv-text);
	font-family: var(--cv-font-mono);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.hd-table tbody tr:last-child td { border-bottom: 0; }
.hd-table tbody tr { transition: background var(--duration-fast) var(--ease-standard); }
.hd-table tbody tr:hover { background: var(--cv-surface-2); }

.hd-sym { display: flex; align-items: center; gap: 0.5rem; }
.hd-sym .sym { font-weight: 650; color: var(--cv-text); }
.hd-sym .tag {
	font-size: 0.5625rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 0.0625rem 0.3125rem;
	border-radius: 3px;
	border: 1px solid var(--cv-border-hover);
	color: var(--cv-text-3);
}

.hd-share { position: relative; height: 4px; border-radius: 2px; background: var(--cv-surface-3); margin-top: 5px; overflow: hidden; }
.hd-share span { position: absolute; inset: 0 auto 0 0; background: var(--hd-accent); border-radius: 2px; }

/* ── Flow ───────────────────────────────────────────────────────────────── */
.hd-flow-svg { display: block; width: 100%; height: auto; }
.hd-flow-arc { fill: none; stroke-width: 1.5; opacity: 0.75; transition: opacity var(--duration-fast) var(--ease-standard), stroke-width var(--duration-fast) var(--ease-standard); }
.hd-flow-arc.out { stroke: var(--cv-chart-red); }
.hd-flow-arc.in { stroke: var(--cv-chart-green); }
.hd-flow-node { fill: var(--cv-surface); stroke: var(--cv-border-hover); }
.hd-flow-node.self { fill: var(--hd-accent); stroke: var(--hd-accent); }
.hd-flow-text { fill: var(--cv-text-2); font-family: var(--cv-font-mono); font-size: 10px; }
.hd-flow-text.strong { fill: var(--cv-text); }
.hd-flow-row:hover .hd-flow-arc { opacity: 1; stroke-width: 2.5; }

/* ── Movers rail ────────────────────────────────────────────────────────── */
.hd-rail {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(178px, 1fr);
	gap: 0.625rem;
	overflow-x: auto;
	padding-bottom: 0.375rem;
	scrollbar-width: thin;
}

.hd-mover {
	border: 1px solid var(--cv-border);
	border-radius: var(--cv-radius-lg);
	background: var(--cv-surface-2);
	padding: 0.75rem;
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
	text-decoration: none;
	color: inherit;
	transition: border-color var(--duration-fast) var(--ease-standard), transform var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard);
}

.hd-mover:hover { border-color: var(--hd-accent); transform: translateY(-2px); box-shadow: var(--cv-shadow-card-hover); }
.hd-mover:focus-visible { outline: 2px solid var(--hd-accent); outline-offset: 2px; }
.hd-mover-top { display: flex; align-items: center; gap: 0.5rem; }
.hd-mover-top img { width: 20px; height: 20px; border-radius: 50%; flex: none; background: var(--cv-surface-3); }
.hd-mover-sym { font-family: var(--cv-font-mono); font-weight: 650; font-size: 0.8125rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hd-mover-price { font-family: var(--cv-font-mono); font-size: 0.8125rem; color: var(--cv-text-2); }
.hd-chg { font-family: var(--cv-font-mono); font-size: 0.75rem; font-weight: 600; margin-left: auto; }

/* ── States ─────────────────────────────────────────────────────────────── */
.hd-empty {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.625rem;
	padding: 1.5rem 0.25rem;
	color: var(--cv-text-2);
	font-size: 0.875rem;
	line-height: 1.55;
}

.hd-empty strong { color: var(--cv-text); font-weight: 600; display: block; }
.hd-empty.center { align-items: center; text-align: center; }

.hd-skel {
	background: linear-gradient(90deg, var(--cv-surface-3) 25%, var(--cv-surface-2) 50%, var(--cv-surface-3) 75%);
	background-size: 200% 100%;
	animation: hd-shimmer 1.4s linear infinite;
	border-radius: var(--cv-radius-sm);
}

@keyframes hd-shimmer {
	from { background-position: 200% 0; }
	to { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
	.hd-skel { animation: none; }
}

.hd-error {
	border: 1px solid var(--cv-red);
	background: var(--cv-red-soft);
	color: var(--cv-red-text);
	border-radius: var(--cv-radius-md);
	padding: 0.75rem 0.875rem;
	font-size: 0.8125rem;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.hd-note { font-size: 0.75rem; color: var(--cv-text-3); line-height: 1.6; margin: 1rem 0 0; }

/* ── Trade drawer ───────────────────────────────────────────────────────── */
.hd-drawer {
	border: 1px solid var(--cv-border);
	border-radius: var(--cv-radius-xl);
	background: var(--cv-surface);
	color: var(--cv-text);
	padding: 0;
	width: min(420px, calc(100vw - 2rem));
	box-shadow: var(--cv-shadow-dropdown);
}

.hd-drawer::backdrop { background: rgba(2, 6, 23, 0.55); backdrop-filter: blur(2px); }
.hd-drawer-head { display: flex; align-items: center; gap: 0.75rem; padding: 0.875rem 1rem; border-bottom: 1px solid var(--cv-border); }
.hd-drawer-head h2 { margin: 0; font-size: 0.9375rem; }
.hd-drawer-body { padding: 1rem; }