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.

29.9 KB
Raw Blame
/* Trader profile — provable track record + Proof tab.
   Reuses leaderboard.css atoms (lb-pos/lb-neg/lb-muted/lb-btn/lb-verified) and the
   canonical design tokens. */

.tp-shell {
	max-width: 1080px;
	margin: 0 auto;
	padding: var(--space-lg) var(--space-md) var(--space-2xl);
}
.tp-back {
	display: inline-block;
	font-size: var(--text-xs);
	color: var(--ink-faint);
	text-decoration: none;
	margin-bottom: var(--space-md);
	transition: color var(--duration-fast) var(--ease-standard);
}
.tp-back:hover { color: var(--ink-bright); }

/* ---- Hero ---- */
.tp-hero {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: var(--space-lg);
	align-items: center;
	border: 1px solid var(--stroke);
	border-radius: var(--radius-card);
	background: var(--surface-1);
	padding: var(--space-lg);
	margin-bottom: var(--space-md);
}
.tp-avatar-wrap { position: relative; }
.tp-avatar {
	width: 96px;
	height: 96px;
	border-radius: var(--radius-lg);
	object-fit: cover;
	border: 1px solid var(--stroke);
	background: var(--surface-3);
	display: block;
}
.tp-id { min-width: 0; }
.tp-name {
	display: flex;
	align-items: center;
	gap: var(--space-2xs);
	font-family: var(--font-display);
	font-size: var(--text-2xl);
	font-weight: var(--weight-bold);
	letter-spacing: -0.01em;
	line-height: 1.1;
}
.tp-name .lb-verified svg { width: 20px; height: 20px; }
.tp-sub {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-2xs) var(--space-sm);
	margin-top: var(--space-2xs);
	font-family: var(--font-mono);
	font-size: var(--text-2xs);
	color: var(--ink-faint);
}
.tp-sub a { color: var(--ink-dim); text-decoration: none; border-bottom: 1px dotted var(--stroke-strong); }
.tp-sub a:hover { color: var(--ink-bright); }
.tp-copiers { color: var(--success); font-weight: var(--weight-semibold); }
.tp-desc { margin-top: var(--space-sm); color: var(--ink-dim); font-size: var(--text-sm); line-height: var(--leading-normal); max-width: 60ch; }

/* Score gauge — the numeric score is absolutely centered inside the ring so it
   stays put at any ring size, instead of being pulled over it with brittle
   negative margins that broke as soon as the font or ring size changed. */
.tp-gauge { display: grid; place-items: center; text-align: center; gap: var(--space-3xs); }
.tp-gauge-ring { position: relative; display: grid; place-items: center; }
.tp-gauge-ring svg { display: block; }
.tp-gauge-val {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	font-family: var(--font-display);
	font-size: var(--text-2xl);
	font-weight: var(--weight-bold);
	font-variant-numeric: tabular-nums;
	line-height: 1;
}
.tp-gauge-label { font-size: var(--text-2xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); }

/* ---- Window selector + actions ---- */
.tp-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-sm); margin-bottom: var(--space-md); }

/* ---- Embed panel: the card this trader can paste anywhere ---- */
.tp-embed {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
	gap: var(--space-lg);
	align-items: start;
	border: 1px solid var(--stroke);
	background: var(--surface-1);
	border-radius: var(--radius-card);
	padding: var(--space-lg);
	margin-bottom: var(--space-md);
}
.tp-embed h3 { margin: 0 0 var(--space-2xs); font-size: var(--text-md); }
.tp-embed p { margin: 0 0 var(--space-sm); color: var(--ink-dim); font-size: var(--text-sm); line-height: var(--leading-normal); max-width: 56ch; }
.tp-embed-label { display: block; font-size: var(--text-2xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); margin-bottom: var(--space-3xs); }
.tp-embed-code {
	width: 100%;
	resize: vertical;
	font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
	font-size: var(--text-xs);
	line-height: 1.6;
	color: var(--ink);
	background: var(--surface-3);
	border: 1px solid var(--stroke);
	border-radius: var(--radius-lg);
	padding: var(--space-sm);
}
.tp-embed-code:focus-visible { outline: 2px solid var(--accent, currentColor); outline-offset: 2px; }
.tp-embed-actions { display: flex; flex-wrap: wrap; gap: var(--space-2xs); margin-top: var(--space-sm); }
.tp-embed-actions .lb-btn { text-decoration: none; }
.tp-embed-preview { display: grid; gap: var(--space-3xs); justify-items: stretch; }
.tp-embed-preview-label { font-size: var(--text-2xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); }
.tp-embed-fallback { color: var(--ink-dim); font-size: var(--text-sm); }
@media (max-width: 760px) {
	.tp-embed { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Metric grid ---- */
.tp-metrics {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: var(--space-sm);
	margin-bottom: var(--space-md);
}
.tp-metric {
	border: 1px solid var(--stroke);
	background: var(--surface-1);
	border-radius: var(--radius-md);
	padding: var(--space-md);
}
.tp-metric-label { font-size: var(--text-2xs); text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-faint); margin-bottom: var(--space-3xs); }
.tp-metric-val { font-family: var(--font-display); font-size: var(--text-lg); font-weight: var(--weight-semibold); font-variant-numeric: tabular-nums; }
.tp-metric-sub { font-size: var(--text-2xs); color: var(--ink-faint); margin-top: 2px; }

/* ---- Equity curve ---- */
.tp-curve-wrap {
	border: 1px solid var(--stroke);
	background: var(--surface-1);
	border-radius: var(--radius-card);
	padding: var(--space-md);
	margin-bottom: var(--space-md);
}
.tp-curve-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-sm); margin-bottom: var(--space-sm); }
.tp-curve-title { font-size: var(--text-2xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); }
.tp-curve { width: 100%; height: 180px; display: block; }
.tp-curve-empty { color: var(--ink-faint); font-size: var(--text-sm); text-align: center; padding: var(--space-lg); }

/* ---- Tabs ---- */
.tp-tabs { display: flex; gap: var(--space-3xs); border-bottom: 1px solid var(--stroke); margin-bottom: var(--space-md); }
.tp-tab {
	appearance: none;
	background: transparent;
	border: 0;
	border-bottom: 2px solid transparent;
	color: var(--ink-dim);
	font-family: var(--font-body);
	font-size: var(--text-sm);
	font-weight: var(--weight-medium);
	padding: var(--space-sm) var(--space-md);
	cursor: pointer;
	transition: color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard);
}
.tp-tab:hover { color: var(--ink-bright); }
.tp-tab.is-active { color: var(--ink-bright); border-bottom-color: var(--accent); }
.tp-tab-count { font-size: var(--text-2xs); color: var(--ink-faint); margin-left: var(--space-3xs); }
.tp-panel { display: none; }
.tp-panel.is-active { display: block; animation: tp-fade var(--duration-base) var(--ease-out); }
@keyframes tp-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---- Trade table ---- */
.tp-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.tp-table th {
	text-align: right;
	font-size: var(--text-2xs);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--ink-faint);
	font-weight: var(--weight-medium);
	padding: var(--space-2xs) var(--space-sm);
	border-bottom: 1px solid var(--stroke);
}
.tp-table th:first-child, .tp-table td:first-child { text-align: left; }
.tp-table td { padding: var(--space-sm); border-bottom: 1px solid var(--hairline); font-variant-numeric: tabular-nums; text-align: right; }
.tp-table tr:last-child td { border-bottom: 0; }
.tp-table tr:hover td { background: var(--surface-2); }
.tp-coin { display: flex; flex-direction: column; gap: 1px; }
.tp-coin-sym { font-weight: var(--weight-semibold); }
.tp-coin-mint { font-family: var(--font-mono); font-size: var(--text-2xs); color: var(--ink-faint); }
.tp-reason { display: inline-block; font-size: var(--text-2xs); padding: 1px var(--space-2xs); border-radius: var(--radius-pill); border: 1px solid var(--stroke); color: var(--ink-dim); }
/* Provenance tags — snipe (chain-proven early entry) and self-deal (excluded). */
.tp-tag { display: inline-block; margin-left: var(--space-2xs); font-size: var(--text-2xs); padding: 1px var(--space-2xs); border-radius: var(--radius-pill); border: 1px solid var(--stroke); white-space: nowrap; vertical-align: middle; }
.tp-tag-snipe { color: var(--wallet-accent-strong, #a78bfa); border-color: color-mix(in srgb, var(--wallet-accent-strong, #a78bfa) 45%, transparent); background: color-mix(in srgb, var(--wallet-accent-strong, #a78bfa) 12%, transparent); }
.tp-tag-self { color: var(--warn, #fbbf24); border-color: color-mix(in srgb, var(--warn, #fbbf24) 45%, transparent); background: color-mix(in srgb, var(--warn, #fbbf24) 12%, transparent); }
.tp-tag-moonbag { color: var(--pos, #4ade80); border-color: color-mix(in srgb, var(--pos, #4ade80) 45%, transparent); background: color-mix(in srgb, var(--pos, #4ade80) 12%, transparent); }
.tp-row-muted td { opacity: 0.62; }
.tp-row-muted:hover td { opacity: 0.85; }
.tp-proof-link { color: var(--ink-dim); text-decoration: none; font-size: var(--text-2xs); border-bottom: 1px dotted var(--stroke-strong); white-space: nowrap; }
.tp-proof-link:hover { color: var(--ink-bright); }
.tp-proof-link:focus-visible { color: var(--ink-bright); outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
/* Share is an action, not a proof link: solid underline, accent on hover. */
.tp-proof-share { border-bottom-style: solid; border-bottom-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.tp-proof-share:hover, .tp-proof-share:focus-visible { color: var(--accent); border-bottom-color: var(--accent); }
/* "why" opens the trade receipt: a button styled as a proof link. */
button.tp-proof-link { background: none; border-top: 0; border-left: 0; border-right: 0; padding: 0; font: inherit; font-size: var(--text-2xs); cursor: pointer; }
button.tp-proof-link:hover { color: var(--ink-bright); border-bottom-color: var(--ink-dim); }
.tp-why-btn { color: var(--accent); border-bottom-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.tp-why-btn:hover { color: var(--ink-bright); }
.tp-why-btn:active { transform: translateY(1px); }
.tp-why-btn[aria-expanded="true"] { color: var(--ink-bright); border-bottom-style: solid; }
.tp-table .tp-why-row td,
.tp-table .tp-why-row:hover td { background: var(--surface-1); text-align: left; padding: var(--space-sm) var(--space-md) var(--space-md); }

/* ---- Proof callout ---- */
.tp-proof-note {
	display: flex;
	gap: var(--space-sm);
	align-items: flex-start;
	border: 1px solid color-mix(in srgb, var(--success) 30%, var(--stroke));
	background: color-mix(in srgb, var(--success) 7%, var(--surface-1));
	border-radius: var(--radius-md);
	padding: var(--space-md);
	margin-bottom: var(--space-md);
}
.tp-proof-note svg { width: 20px; height: 20px; color: var(--success); flex-shrink: 0; margin-top: 2px; }
.tp-proof-text { display: flex; flex-direction: column; gap: var(--space-sm); min-width: 0; }
.tp-proof-note p { margin: 0; font-size: var(--text-sm); color: var(--ink-dim); line-height: var(--leading-normal); }
.tp-proof-note strong { color: var(--ink-bright); }

/* ---- Copy panel ---- */
.tp-copy {
	border: 1px solid var(--stroke);
	border-radius: var(--radius-card);
	background: linear-gradient(180deg, var(--surface-2), var(--surface-1));
	padding: var(--space-lg);
	margin-top: var(--space-lg);
}
.tp-copy h2 { font-family: var(--font-display); font-size: var(--text-lg); margin: 0 0 var(--space-2xs); display: flex; align-items: center; gap: var(--space-2xs); flex-wrap: wrap; }
.tp-soon { font-size: var(--text-2xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent); border-radius: var(--radius-pill); padding: 1px var(--space-2xs); }
.tp-copy p { margin: 0 0 var(--space-sm); color: var(--ink-dim); font-size: var(--text-sm); max-width: 56ch; }

/* copy-panel component (cp-*) */
.cp-loading { padding: var(--space-sm) 0; }
.cp-on { font-size: var(--text-2xs); color: var(--success); font-weight: var(--weight-semibold); }
.cp-actions { display: flex; gap: var(--space-2xs); flex-wrap: wrap; margin-top: var(--space-2xs); }
.cp-form { display: flex; flex-direction: column; gap: var(--space-sm); }
.cp-field { display: flex; flex-direction: column; gap: var(--space-3xs); flex: 1; min-width: 0; }
.cp-row { display: flex; gap: var(--space-sm); flex-wrap: wrap; }
.cp-label { font-size: var(--text-2xs); text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-faint); }
.cp-input {
	appearance: none;
	width: 100%;
	border: 1px solid var(--stroke);
	background: var(--bg-0);
	color: var(--ink-bright);
	font-family: var(--font-mono);
	font-size: var(--text-sm);
	padding: var(--space-2xs) var(--space-sm);
	border-radius: var(--radius-control);
	transition: border-color var(--duration-fast) var(--ease-standard);
}
.cp-input:focus-visible { outline: none; border-color: var(--accent); }
.cp-seg { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--stroke); border-radius: var(--radius-pill); background: var(--surface-1); width: fit-content; }
.cp-seg-btn {
	appearance: none; border: 0; background: transparent; color: var(--ink-dim);
	font-family: var(--font-body); font-size: var(--text-xs); font-weight: var(--weight-medium);
	padding: var(--space-2xs) var(--space-md); border-radius: var(--radius-pill); cursor: pointer;
	transition: color var(--duration-fast) var(--ease-standard), background var(--duration-fast) var(--ease-standard);
}
.cp-seg-btn:hover { color: var(--ink-bright); }
.cp-seg-btn.is-active { background: var(--accent); color: var(--btn-primary-fg); }
.cp-advanced { border-top: 1px solid var(--hairline); padding-top: var(--space-sm); }
.cp-advanced summary { font-size: var(--text-xs); color: var(--ink-dim); cursor: pointer; user-select: none; }
.cp-advanced summary:hover { color: var(--ink-bright); }
.cp-advanced .cp-row { margin-top: var(--space-sm); }
.cp-check { display: flex; align-items: center; gap: var(--space-2xs); font-size: var(--text-xs); color: var(--ink-dim); margin-top: var(--space-2xs); cursor: pointer; }
.cp-err { color: var(--danger); font-size: var(--text-xs); margin: 0; }
.cp-fine { color: var(--ink-faint); font-size: var(--text-2xs); margin: 0; }
.cp-hint { display: block; font-size: var(--text-2xs); color: var(--ink-faint); margin-top: 4px; line-height: 1.4; }

/* Drawdown circuit breaker: the auto-pause notice, and the copyable-bar checklist.
   Both carry a left rule so they read as a status the system is reporting rather
   than as another paragraph of body copy. */
.cp-tripped {
	font-size: var(--text-xs);
	color: var(--ink-dim);
	line-height: 1.5;
	margin: 0 0 var(--space-sm);
	padding: var(--space-sm) var(--space-md);
	border-left: 2px solid var(--warn);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	background: var(--surface-2);
}
.cp-tripped strong { display: block; color: var(--ink-bright); margin-bottom: 2px; }

/* Alpha-drip: the seat this copier's $THREE tier gets on the leader's signal.
   Same left-rule treatment as the breaker notice, in the accent rather than the
   warn colour, because it is an offer and not a problem. */
.cp-drip {
	font-size: var(--text-xs);
	color: var(--ink-dim);
	line-height: 1.5;
	margin: 0 0 var(--space-sm);
	padding: var(--space-sm) var(--space-md);
	border-left: 2px solid var(--accent);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	background: var(--surface-2);
}
.cp-drip strong { color: var(--ink-bright); }
.cp-drip a { color: var(--accent); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color var(--duration-fast) var(--ease-standard); }
.cp-drip a:hover { border-bottom-color: currentColor; }
.cp-drip a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.cp-drip-sub { display: inline-block; margin-top: 2px; color: var(--ink-faint); }
.cp-err .cp-unmet {
	list-style: none;
	margin: var(--space-2xs) 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.cp-err .cp-unmet li { color: var(--ink-dim); }
.cp-err .cp-unmet li::before { content: "○ "; color: var(--ink-faint); }

/* ---- States / skeleton ---- */
.tp-skel { border: 1px solid var(--stroke); border-radius: var(--radius-card); background: var(--surface-1); padding: var(--space-lg); }
.tp-sk { height: 14px; border-radius: var(--radius-sm); background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 37%, var(--surface-2) 63%); background-size: 400% 100%; animation: lb-shimmer 1.4s ease infinite; margin-bottom: var(--space-sm); }
.tp-error, .tp-empty { text-align: center; padding: var(--space-2xl) var(--space-md); }
.tp-error h1, .tp-empty h1 { font-family: var(--font-display); font-size: var(--text-xl); margin-bottom: var(--space-2xs); }
.tp-error p, .tp-empty p { color: var(--ink-dim); max-width: 44ch; margin: 0 auto var(--space-md); }

/* ---- Oracle conviction + Projected-vs-realized cards ----
   Both read as titled analytic cards that share the vocabulary of .tp-curve-wrap
   and .tp-metric — surface-1 fill, hairline-divided header, faint uppercase
   eyebrow, tabular mono figures. Authored earlier against a stray token set
   (--mono / --sans / --pos) that only exists on IBM surfaces, so on the default
   dark theme they fell back to serif at the browser's default size. Everything
   here now references the canonical primitives, so they match the rest of the
   page in both themes. */
/* ---- "Made it on" — signature coin breakdown ---- */
.tp-madeon {
	margin: 0 0 var(--space-md);
	border: 1px solid var(--stroke);
	border-radius: var(--radius-lg);
	background: var(--surface-1);
	padding: var(--space-sm) var(--space-md) var(--space-md);
}
.tp-madeon-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--space-sm);
	margin-bottom: var(--space-2xs);
}
.tp-madeon-label {
	font-family: var(--font-body);
	font-size: var(--text-2xs);
	font-weight: var(--weight-semibold);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--ink-faint);
}
.tp-madeon-count { font-family: var(--font-mono); font-size: var(--text-2xs); color: var(--ink-faint); }
.tp-madeon-top {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: var(--space-xs);
	text-decoration: none;
	color: inherit;
}
.tp-madeon-sym {
	font-family: var(--font-display);
	font-weight: var(--weight-bold);
	font-size: var(--text-xl);
	color: var(--ink-bright);
}
.tp-madeon-pnl {
	font-family: var(--font-display);
	font-weight: var(--weight-bold);
	font-size: var(--text-xl);
	font-variant-numeric: tabular-nums;
}
.tp-madeon-meta { font-family: var(--font-mono); font-size: var(--text-2xs); color: var(--ink-faint); }
.tp-madeon-top:hover .tp-madeon-meta { color: var(--ink-dim); }
.tp-madeon-rest {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2xs);
	margin-top: var(--space-sm);
}
.tp-madeon-chip {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	font-family: var(--font-mono);
	font-size: var(--text-2xs);
	font-variant-numeric: tabular-nums;
	text-decoration: none;
	color: var(--ink-dim);
	border: 1px solid var(--stroke);
	border-radius: var(--radius-pill);
	padding: var(--space-3xs) var(--space-sm);
	transition: border-color var(--duration-fast) var(--ease-standard);
}
.tp-madeon-chip:hover { border-color: var(--stroke-strong); }
.tp-madeon-chip-sym { font-weight: var(--weight-semibold); color: var(--ink-bright); }

.tp-oracle-block {
	margin: 0 0 var(--space-md);
	border: 1px solid var(--stroke);
	border-radius: var(--radius-lg);
	overflow: hidden;
	background: var(--surface-1);
}
.tp-oracle-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-sm);
	padding: var(--space-sm) var(--space-md);
	border-bottom: 1px solid var(--stroke);
}
.tp-oracle-label {
	font-family: var(--font-body);
	font-size: var(--text-2xs);
	font-weight: var(--weight-semibold);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--ink-faint);
}
.tp-oracle-actions { display: flex; align-items: center; gap: var(--space-sm); }
.tp-oracle-link {
	font-size: var(--text-xs);
	color: var(--ink-dim);
	text-decoration: none;
	white-space: nowrap;
	transition: color var(--duration-fast) var(--ease-standard);
}
.tp-oracle-link:hover { color: var(--ink-bright); }
/* Small primary CTA sized for the card header (e.g. "Copy trades →"). */
.tp-oracle-cta { padding: var(--space-3xs) var(--space-sm); font-size: var(--text-xs); border-radius: var(--radius-sm); }

/* Stat strip — soft filled chips in an auto-fit grid. Chips (not a seamless
   divided strip) so an odd KPI count that wraps never leaves a differently-tinted
   empty cell in the last row; trailing space is just the card fill. Echoes the
   surface scale of the .tp-metric grid above it. */
.tp-oracle-kpis {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
	gap: var(--space-3xs);
	padding: var(--space-sm) var(--space-md) var(--space-md);
}
.tp-oracle-kpi {
	padding: var(--space-sm);
	border-radius: var(--radius-md);
	background: var(--surface-2);
}
.tp-oracle-kpi span {
	display: block;
	font-family: var(--font-body);
	font-size: var(--text-2xs);
	font-weight: var(--weight-medium);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--ink-faint);
	margin-bottom: var(--space-3xs);
}
.tp-oracle-kpi b {
	font-family: var(--font-mono);
	font-size: var(--text-md);
	font-weight: var(--weight-semibold);
	font-variant-numeric: tabular-nums;
}
.tp-oracle-note {
	font-size: var(--text-2xs);
	line-height: var(--leading-normal);
	color: var(--ink-faint);
	margin: 0;
	padding: var(--space-sm) var(--space-md);
	border-top: 1px solid var(--stroke);
}

/* Projected-vs-realized */
.tp-proj-conf {
	font-family: var(--font-body);
	font-size: var(--text-2xs);
	font-weight: var(--weight-semibold);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 3px var(--space-2xs);
	border-radius: var(--radius-pill);
	border: 1px solid currentColor;
	white-space: nowrap;
}
.tp-proj-high { color: var(--success); }
.tp-proj-medium { color: var(--warn); }
.tp-proj-low { color: var(--ink-dim); }
.tp-proj-grid { display: flex; flex-direction: column; }
.tp-proj-row {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) 1fr 1fr;
	align-items: center;
	gap: var(--space-sm);
	padding: var(--space-sm) var(--space-md);
	border-bottom: 1px solid var(--hairline);
}
.tp-proj-row:last-child { border-bottom: none; }
.tp-proj-head b {
	font-family: var(--font-body);
	font-size: var(--text-2xs);
	font-weight: var(--weight-medium);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--ink-faint);
}
.tp-proj-k { font-family: var(--font-body); font-size: var(--text-sm); color: var(--ink-dim); }
.tp-proj-proj, .tp-proj-real {
	font-family: var(--font-mono);
	font-size: var(--text-sm);
	font-weight: var(--weight-semibold);
	font-variant-numeric: tabular-nums;
	text-align: right;
}
.tp-proj-proj { color: var(--ink-dim); }
.tp-proj-real { color: var(--ink-bright); }
@media (max-width: 520px) {
	.tp-proj-row { gap: var(--space-2xs); padding: var(--space-sm); }
	.tp-proj-k { font-size: var(--text-xs); }
	.tp-proj-proj, .tp-proj-real { font-size: var(--text-xs); }
}

/* Toast for copy-link */
.tp-toast {
	position: fixed;
	left: 50%;
	bottom: var(--space-lg);
	transform: translateX(-50%) translateY(20px);
	background: var(--bg-1);
	color: var(--ink-bright);
	border: 1px solid var(--stroke-strong);
	border-radius: var(--radius-pill);
	padding: var(--space-2xs) var(--space-md);
	font-size: var(--text-xs);
	opacity: 0;
	pointer-events: none;
	transition: opacity var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-emphasized);
	z-index: 50;
}
.tp-toast.is-shown { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 760px) {
	.tp-hero { grid-template-columns: auto 1fr; gap: var(--space-md); }
	.tp-name { font-size: var(--text-xl); overflow-wrap: anywhere; }
	.tp-gauge { grid-column: 1 / -1; justify-self: start; }
	/* Trade tables scroll horizontally instead of dropping columns. The old rule
	   hid columns 4 & 5 for every .tp-table, which on the open-positions table
	   (Coin · Entry · Now · Unrealized · Proof) erased Unrealized and Proof — the
	   two fields that matter most. Scrolling keeps every column on every table. */
	.tp-panel, .tp-curve-wrap { overflow-x: auto; }
	.tp-table { min-width: 560px; }
	/* The receipt lives in a row of that scrolling table: pin it to the visible
	   width so it reads without sideways scrolling. */
	.tp-why-row .rc { position: sticky; left: 0; max-width: calc(100vw - 4 * var(--space-md)); }
}
@media (prefers-reduced-motion: reduce) {
	.tp-panel.is-active, .tp-sk { animation: none; }
}

/* ---- Trader Passport (Proof tab) ----
   The on-chain credential card. Reads as a sibling of .tp-proof-note, same
   hairline-card vocabulary: but neutral rather than success-tinted, because it
   states a fact that can come back either way, and an unverifiable credential
   must not inherit a reassuring green. */
.tp-pp {
	border: 1px solid var(--stroke);
	border-radius: var(--radius-md);
	background: var(--surface-1);
	padding: var(--space-md);
	margin-bottom: var(--space-md);
}
.tp-pp-head {
	display: flex;
	align-items: center;
	gap: var(--space-2xs);
	flex-wrap: wrap;
	margin-bottom: var(--space-sm);
}
.tp-pp-title {
	font-family: var(--font-display);
	font-size: var(--text-md);
	color: var(--ink-bright);
}
.tp-pp-badge {
	font-size: var(--text-2xs);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	border-radius: var(--radius-pill);
	padding: 1px var(--space-2xs);
}
.tp-pp-badge-ok {
	color: var(--success);
	border: 1px solid color-mix(in srgb, var(--success) 40%, transparent);
	background: color-mix(in srgb, var(--success) 10%, transparent);
}
.tp-pp-badge-pending {
	color: var(--ink-faint);
	border: 1px solid var(--stroke-strong);
}
.tp-pp-kind {
	font-family: var(--font-mono);
	font-size: var(--text-2xs);
	color: var(--ink-faint);
	margin-left: auto;
}
.tp-pp-note {
	margin: 0 0 var(--space-sm);
	font-size: var(--text-sm);
	color: var(--ink-dim);
	line-height: var(--leading-normal);
	max-width: 72ch;
}
.tp-pp-note:last-child { margin-bottom: 0; }
.tp-pp-note strong { color: var(--ink-bright); }
.tp-pp-dim { color: var(--ink-faint); font-size: var(--text-xs); }
.tp-pp-sk { max-width: 40ch; }

/* Committed-vs-live table. Both columns always render: the credential is a
   snapshot, and hiding the drift would make the anchor look like a live feed. */
.tp-pp-table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--text-sm);
	margin-bottom: var(--space-sm);
}
.tp-pp-caption {
	caption-side: top;
	text-align: left;
	font-size: var(--text-xs);
	color: var(--ink-faint);
	padding-bottom: var(--space-2xs);
	max-width: 72ch;
}
.tp-pp-table th,
.tp-pp-table td {
	text-align: right;
	padding: var(--space-3xs) var(--space-2xs);
	border-bottom: 1px solid var(--stroke);
	font-variant-numeric: tabular-nums;
}
.tp-pp-table thead th {
	font-size: var(--text-2xs);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--ink-faint);
	font-weight: var(--weight-medium);
}
.tp-pp-table tbody th[scope='row'] {
	text-align: left;
	color: var(--ink-dim);
	font-weight: var(--weight-regular);
}
.tp-pp-attested { color: var(--ink-dim); }
.tp-pp-live { color: var(--ink-bright); font-weight: var(--weight-semibold); }
.tp-pp-delta { font-size: var(--text-xs); }

.tp-pp-facts {
	display: flex;
	gap: var(--space-2xs);
	flex-wrap: wrap;
	margin-bottom: var(--space-sm);
}
.tp-pp-fact {
	display: flex;
	flex-direction: column;
	gap: 2px;
	border: 1px solid var(--stroke);
	border-radius: var(--radius-sm);
	padding: var(--space-2xs) var(--space-sm);
	text-decoration: none;
	transition: border-color var(--duration-fast) var(--ease-out), background var(--duration-fast) var(--ease-out);
}
a.tp-pp-fact:hover,
a.tp-pp-fact:focus-visible { border-color: var(--stroke-strong); background: var(--surface-2); }
.tp-pp-fact-k {
	font-size: var(--text-2xs);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--ink-faint);
}
.tp-pp-fact-v {
	font-family: var(--font-mono);
	font-size: var(--text-xs);
	color: var(--ink-bright);
}

.tp-pp-hist { margin-bottom: var(--space-sm); }
.tp-pp-hist summary {
	cursor: pointer;
	font-size: var(--text-xs);
	color: var(--ink-dim);
}
.tp-pp-hist summary:hover { color: var(--ink-bright); }
.tp-pp-hist-list {
	list-style: none;
	margin: var(--space-2xs) 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--space-3xs);
}
.tp-pp-hist-list li {
	display: flex;
	gap: var(--space-sm);
	align-items: baseline;
	font-size: var(--text-xs);
	font-variant-numeric: tabular-nums;
}
.tp-pp-hist-day { color: var(--ink-dim); min-width: 9ch; }
.tp-pp-hist-score { color: var(--ink-bright); min-width: 4ch; text-align: right; }

.tp-pp-actions { display: flex; gap: var(--space-2xs); flex-wrap: wrap; margin-bottom: var(--space-sm); }
.tp-pp-verdict:empty { display: none; }
.tp-pp-verdict {
	font-size: var(--text-sm);
	line-height: var(--leading-normal);
	border-radius: var(--radius-sm);
	padding: var(--space-sm);
	margin-bottom: var(--space-sm);
	border: 1px solid var(--stroke);
	color: var(--ink-dim);
}
.tp-pp-verdict ul { margin: var(--space-2xs) 0 0; padding-left: var(--space-md); }
.tp-pp-verdict code { font-family: var(--font-mono); font-size: var(--text-xs); }
.tp-pp-verdict.is-ok {
	border-color: color-mix(in srgb, var(--success) 40%, var(--stroke));
	background: color-mix(in srgb, var(--success) 8%, transparent);
}
.tp-pp-verdict.is-bad {
	border-color: color-mix(in srgb, var(--danger) 40%, var(--stroke));
	background: color-mix(in srgb, var(--danger) 8%, transparent);
}
.tp-pp-verdict.is-busy { border-style: dashed; }

@media (max-width: 520px) {
	.tp-pp-kind { margin-left: 0; width: 100%; }
	.tp-pp-facts { flex-direction: column; }
	.tp-pp-table { font-size: var(--text-xs); }
}

/* ── Interactive states (QB-07) ────────────────────────────────────────────
   A checkbox row label that was clickable and silent. */

.cp-check {
	transition: color var(--duration-fast) var(--ease-standard);
}

.cp-check:hover {
	color: var(--ink);
}