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.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
/* Back-an-Agent Vaults — finance surface. Violet wallet-accent on glass.
Tokens only (public/tokens.css); responsive at 320 / 768 / 1440. */
/* An explicit page background: contrast is measured against the paint behind
the text, and the UA canvas alone (color-scheme) is invisible to checkers
and to forced-colors tooling. The fallback is the dark brand base. */
body { background: var(--bg, #121212); }
.vx-shell {
max-width: 1180px;
margin: 0 auto;
padding: var(--space-xl) var(--space-md) var(--space-2xl);
color: var(--ink);
}
.vx-view { animation: vx-fade var(--duration-base) var(--ease-out); }
@keyframes vx-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
/* ── hero ─────────────────────────────────────────────────────────────────── */
.vx-hero {
position: relative;
max-width: 820px;
margin-bottom: var(--space-xl);
padding: var(--space-xl) var(--space-lg);
border: 1px solid var(--stroke);
border-radius: var(--radius-card);
background:
radial-gradient(120% 140% at 0% 0%, var(--wallet-accent-soft), transparent 55%),
radial-gradient(120% 160% at 100% 0%, color-mix(in srgb, var(--success) 12%, transparent), transparent 50%),
var(--surface-1);
overflow: hidden;
}
.vx-hero::after {
content: ""; position: absolute; inset: 0; pointer-events: none;
background: radial-gradient(60% 60% at 85% 110%, var(--wallet-glow, rgba(139,92,246,0.16)), transparent 70%);
}
.vx-hero > * { position: relative; }
.vx-kicker {
display: inline-flex; align-items: center; gap: var(--space-xs);
font: var(--weight-medium) var(--text-sm) / 1 var(--font-mono);
color: var(--wallet-accent); text-transform: uppercase; letter-spacing: 0.08em;
margin: 0 0 var(--space-sm);
padding: 5px 10px; border-radius: var(--radius-pill);
background: color-mix(in srgb, var(--wallet-accent) 12%, transparent);
border: 1px solid color-mix(in srgb, var(--wallet-accent) 22%, transparent);
}
.vx-live-dot { width: 7px; height: 7px; border-radius: var(--radius-pill); background: var(--success); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); animation: vx-pulse 2s infinite; }
@keyframes vx-pulse { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); } 70% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }
.vx-title { font: var(--weight-bold) var(--text-3xl) / 1.03 var(--font-display); color: var(--ink-bright); margin: 0 0 var(--space-sm); letter-spacing: -0.025em; }
.vx-sub { font-size: var(--text-base); line-height: var(--leading-normal); color: var(--ink-dim); margin: 0 0 var(--space-lg); max-width: 60ch; }
.vx-sub strong { color: var(--ink); font-weight: var(--weight-semibold); }
.vx-hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
/* ── buttons ──────────────────────────────────────────────────────────────── */
.vx-btn {
display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs);
padding: var(--space-sm) var(--space-md);
border: 1px solid var(--stroke-strong); border-radius: var(--radius-md);
background: var(--surface-2); color: var(--ink); cursor: pointer;
font: var(--weight-medium) var(--text-ui) / 1 var(--font-body);
text-decoration: none; transition: background var(--duration-fast) var(--ease-standard), border-color var(--duration-fast), transform var(--duration-instant);
}
.vx-btn:hover { background: var(--surface-3); border-color: var(--wallet-accent-strong); }
.vx-btn:active { transform: translateY(1px); }
.vx-btn:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: var(--focus-ring-offset); }
.vx-btn--primary { background: var(--wallet-accent-strong); border-color: var(--wallet-accent-strong); color: #15032e; font-weight: var(--weight-semibold); box-shadow: 0 6px 20px -8px var(--wallet-glow, rgba(139,92,246,0.6)); }
.vx-btn--primary:hover { background: var(--wallet-accent); border-color: var(--wallet-accent); }
.vx-btn--ghost { background: transparent; }
.vx-btn--block { width: 100%; }
.vx-btn:disabled { opacity: 0.5; cursor: not-allowed; }
/* ── aggregate stats strip ─────────────────────────────────────────────────── */
.vx-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-sm); margin-bottom: var(--space-lg); }
.vx-stats[hidden] { display: none; }
.vx-stat-tile {
position: relative; overflow: hidden;
display: flex; flex-direction: column; gap: var(--space-2xs);
padding: var(--space-md);
background: var(--surface-1); border: 1px solid var(--stroke); border-radius: var(--radius-lg);
}
.vx-stat-tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--wallet-accent-strong); opacity: 0.7; }
.vx-stat-tile.is-pos::before { background: var(--success); }
.vx-stat-tile-l { font: var(--weight-medium) var(--text-2xs) var(--font-body); color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.05em; }
.vx-stat-tile-v { font: var(--weight-bold) var(--text-xl) var(--font-mono); color: var(--ink-bright); letter-spacing: -0.01em; }
.vx-stat-tile-s { font: var(--text-2xs) var(--font-mono); color: var(--ink-dim); }
/* ── feed head ────────────────────────────────────────────────────────────── */
.vx-feed-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); margin-bottom: var(--space-md); flex-wrap: wrap; }
.vx-feed-head-l { display: flex; align-items: baseline; gap: var(--space-sm); }
.vx-feed-head-r { display: flex; align-items: center; gap: var(--space-sm); flex-wrap: wrap; }
.vx-h2 { font: var(--weight-semibold) var(--text-lg) / 1 var(--font-display); color: var(--ink-bright); margin: 0; }
.vx-feed-count { font: var(--weight-medium) var(--text-sm) var(--font-mono); color: var(--ink-faint); }
.vx-sort { display: inline-flex; align-items: center; gap: var(--space-xs); }
.vx-sort-l { font: var(--weight-medium) var(--text-2xs) var(--font-body); color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.05em; }
.vx-sort-sel {
appearance: none; -webkit-appearance: none;
padding: var(--space-xs) calc(var(--space-md) + 10px) var(--space-xs) var(--space-sm);
background: var(--surface-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23999' fill='none' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right var(--space-sm) center;
border: 1px solid var(--stroke); border-radius: var(--radius-pill);
color: var(--ink); font: var(--weight-medium) var(--text-sm) var(--font-body); cursor: pointer;
transition: border-color var(--duration-fast);
}
.vx-sort-sel:hover { border-color: var(--wallet-accent-strong); }
.vx-sort-sel:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: var(--focus-ring-offset); }
.vx-tabs { display: inline-flex; gap: var(--space-3xs); padding: var(--space-3xs); background: var(--surface-1); border: 1px solid var(--stroke); border-radius: var(--radius-pill); }
.vx-tab { border: none; background: transparent; color: var(--ink-dim); padding: var(--space-xs) var(--space-md); border-radius: var(--radius-pill); cursor: pointer; font: var(--weight-medium) var(--text-sm) var(--font-body); transition: background var(--duration-fast), color var(--duration-fast); }
.vx-tab.is-active { background: var(--surface-3); color: var(--ink-bright); }
.vx-tab:hover { color: var(--ink); }
.vx-tab:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: var(--focus-ring-offset); }
/* ── feed grid + cards ────────────────────────────────────────────────────── */
.vx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--space-md); }
.vx-card {
position: relative; isolation: isolate;
display: flex; flex-direction: column; gap: var(--space-sm);
padding: var(--space-md); padding-left: calc(var(--space-md) + 3px);
text-align: left; cursor: pointer;
background: var(--surface-1); border: 1px solid var(--stroke); border-radius: var(--radius-lg);
color: inherit; font: inherit; overflow: hidden;
transition: border-color var(--duration-fast) var(--ease-standard), transform var(--duration-fast), box-shadow var(--duration-fast), background var(--duration-fast);
}
.vx-card:hover { border-color: var(--wallet-accent-strong); transform: translateY(-3px); background: var(--surface-2); box-shadow: 0 14px 30px -18px var(--wallet-glow, rgba(139,92,246,0.5)); }
.vx-card:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: var(--focus-ring-offset); }
.vx-card-accent { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--ink-faint); opacity: 0.6; }
.vx-card-accent.is-pos { background: var(--success); opacity: 0.9; }
.vx-card-accent.is-neg { background: var(--danger); opacity: 0.85; }
.vx-card-head { display: flex; align-items: center; gap: var(--space-sm); }
.vx-card-avwrap { position: relative; flex: 0 0 auto; width: 48px; height: 48px; border-radius: var(--radius-md); padding: 2px; background: var(--stroke); }
.vx-card-avwrap.is-open { background: linear-gradient(135deg, var(--success), color-mix(in srgb, var(--success) 30%, transparent)); }
.vx-card-avwrap.is-paused { background: linear-gradient(135deg, var(--warn), color-mix(in srgb, var(--warn) 30%, transparent)); }
.vx-card-av { width: 100%; height: 100%; border-radius: calc(var(--radius-md) - 2px); object-fit: cover; display: block; background: var(--surface-3); }
.vx-card-av--ph { background: linear-gradient(135deg, var(--surface-3), var(--wallet-accent-soft)); }
.vx-card-rank {
position: absolute; top: -7px; left: -7px; z-index: 2;
width: 22px; height: 22px; border-radius: var(--radius-pill);
display: flex; align-items: center; justify-content: center;
font: var(--weight-bold) var(--text-2xs) var(--font-mono); color: #1a1300;
background: linear-gradient(135deg, #ffe28a, #f5b13a); box-shadow: 0 2px 6px rgba(0,0,0,0.35); border: 1.5px solid var(--bg-1);
}
.vx-card-rank.rank-1 { background: linear-gradient(135deg, #d6dce6, #9aa6b8); }
.vx-card-rank.rank-2 { background: linear-gradient(135deg, #e6b489, #c47f44); }
.vx-card-id { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.vx-card-name { font: var(--weight-semibold) var(--text-md) var(--font-display); color: var(--ink-bright); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vx-rep { display: inline-flex; align-items: center; gap: 4px; font: var(--weight-medium) var(--text-2xs) / 1.3 var(--font-mono); padding: 2px 7px; border-radius: var(--radius-sm); align-self: flex-start; }
.vx-rep--ok { color: var(--success); background: rgba(74, 222, 128, 0.12); }
.vx-rep--warn { color: var(--warn); background: rgba(251, 191, 36, 0.12); }
.vx-rep--none, .vx-rep--muted { color: var(--ink-faint); background: var(--surface-2); }
.vx-chip { font: var(--weight-medium) var(--text-2xs) var(--font-mono); padding: 2px 8px; border-radius: var(--radius-pill); align-self: flex-start; white-space: nowrap; }
.vx-chip--warn { color: var(--warn); background: rgba(251, 191, 36, 0.14); }
/* prominent return block */
.vx-card-return { display: flex; align-items: baseline; gap: var(--space-xs); padding: var(--space-xs) 0; }
.vx-card-return-arrow { font-size: var(--text-md); line-height: 1; }
.vx-card-return-v { font: var(--weight-bold) var(--text-2xl) / 1 var(--font-mono); letter-spacing: -0.02em; }
.vx-card-return-l { font: var(--weight-medium) var(--text-2xs) var(--font-body); color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.05em; margin-left: auto; align-self: center; }
.vx-card-stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xs); padding: var(--space-sm) 0; border-top: 1px solid var(--stroke); }
.vx-stat { display: flex; flex-direction: column; gap: 3px; }
.vx-stat-l { font: var(--text-2xs) var(--font-body); color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.04em; }
.vx-stat-v { font: var(--weight-semibold) var(--text-md) var(--font-mono); color: var(--ink-bright); }
/* capital-backed comparison bar */
.vx-card-cap { display: flex; flex-direction: column; gap: 5px; }
.vx-card-cap-bar { height: 5px; border-radius: var(--radius-pill); background: var(--surface-3); overflow: hidden; }
.vx-card-cap-bar > i { display: block; height: 100%; border-radius: var(--radius-pill); background: linear-gradient(90deg, var(--wallet-accent), var(--wallet-accent-strong)); transition: width var(--duration-slow) var(--ease-out); }
.vx-card-cap-meta { display: flex; justify-content: space-between; gap: var(--space-xs); font: var(--text-2xs) var(--font-mono); color: var(--ink-dim); }
.vx-card-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-xs); font: var(--text-xs) var(--font-mono); color: var(--ink-dim); flex-wrap: wrap; }
.vx-card-cta { color: var(--wallet-accent); font-family: var(--font-body); font-weight: var(--weight-medium); opacity: 0; transform: translateX(-4px); transition: opacity var(--duration-fast), transform var(--duration-fast); margin-left: auto; }
.vx-card:hover .vx-card-cta { opacity: 1; transform: none; }
.is-pos { color: var(--success) !important; }
.is-neg { color: var(--danger) !important; }
.is-flat { color: var(--ink-dim) !important; }
/* skeleton + empty */
.vx-card--skel { gap: var(--space-sm); pointer-events: none; }
.vx-skel-line { height: 14px; border-radius: var(--radius-sm); background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: vx-shimmer 1.4s infinite; }
.vx-skel-line.short { width: 55%; }
.vx-skel-stats { height: 52px; border-radius: var(--radius-md); background: var(--surface-2); }
@keyframes vx-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.vx-empty { grid-column: 1 / -1; text-align: center; padding: var(--space-2xl) var(--space-md); border: 1px dashed var(--stroke); border-radius: var(--radius-lg); background: var(--surface-1); }
.vx-empty-t { font: var(--weight-semibold) var(--text-lg) var(--font-display); color: var(--ink-bright); margin: 0 0 var(--space-xs); }
.vx-empty-d { color: var(--ink); margin: 0 auto var(--space-md); max-width: 460px; line-height: var(--leading-normal); }
.vx-empty-actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); justify-content: center; }
/* ── detail ───────────────────────────────────────────────────────────────── */
.vx-back { background: none; border: none; color: var(--wallet-accent); cursor: pointer; font: var(--weight-medium) var(--text-ui) var(--font-body); padding: var(--space-xs) 0; margin-bottom: var(--space-md); border-radius: var(--radius-sm); }
.vx-back:hover { color: var(--ink-bright); }
.vx-back:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: var(--focus-ring-offset); }
.vx-detail-skel { padding: var(--space-2xl); text-align: center; color: var(--ink-dim); }
.vx-banner { padding: var(--space-sm) var(--space-md); border-radius: var(--radius-md); background: var(--surface-2); border: 1px solid var(--stroke); margin-bottom: var(--space-md); font-size: var(--text-sm); color: var(--ink); }
.vx-banner--warn { background: rgba(251, 191, 36, 0.10); border-color: rgba(251, 191, 36, 0.3); color: var(--warn); }
.vx-d-head { display: flex; align-items: flex-start; gap: var(--space-md); margin-bottom: var(--space-lg); flex-wrap: wrap; }
.vx-d-av { width: 72px; height: 72px; border-radius: var(--radius-lg); object-fit: cover; background: var(--surface-3); flex: 0 0 auto; }
.vx-d-av--ph { background: linear-gradient(135deg, var(--surface-3), var(--wallet-accent-soft)); }
.vx-d-id { flex: 1; min-width: 200px; }
.vx-d-name { font: var(--weight-bold) var(--text-xl) var(--font-display); color: var(--ink-bright); margin: 0 0 var(--space-2xs); letter-spacing: -0.01em; }
.vx-d-rep { display: flex; align-items: center; gap: var(--space-sm); flex-wrap: wrap; margin-bottom: var(--space-xs); }
.vx-d-rep-detail { font: var(--text-xs) var(--font-mono); color: var(--ink-dim); }
.vx-d-links { display: flex; gap: var(--space-md); }
.vx-link { color: var(--wallet-accent); text-decoration: none; font: var(--weight-medium) var(--text-sm) var(--font-body); }
.vx-link:hover { color: var(--ink-bright); text-decoration: underline; }
.vx-link:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: var(--focus-ring-offset); border-radius: var(--radius-sm); }
.vx-d-cta { margin-left: auto; }
/* hero NAV + sparkline panel */
.vx-navhero {
display: grid; grid-template-columns: 1fr 1.3fr; gap: var(--space-md); align-items: stretch;
margin-bottom: var(--space-md);
}
.vx-navhero-main {
display: flex; flex-direction: column; justify-content: center; gap: var(--space-2xs);
padding: var(--space-lg);
background: radial-gradient(120% 140% at 0% 0%, var(--wallet-accent-soft), transparent 60%), var(--surface-1);
border: 1px solid var(--stroke); border-radius: var(--radius-lg);
}
.vx-navhero-l { font: var(--weight-medium) var(--text-2xs) var(--font-body); color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.06em; }
.vx-navhero-v {
/* The NAV figure is the loudest number on the page, but a fixed display size
made a seven-figure NAV wider than a phone and the excess was clipped, not
scrolled. Scale it with the viewport and floor it at a readable size. */
font: var(--weight-bold) clamp(var(--text-xl), 11vw, var(--text-3xl)) / 1 var(--font-mono);
color: var(--ink-bright); letter-spacing: -0.025em;
}
.vx-navhero-roi { display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; margin-top: var(--space-2xs); padding: 3px 10px; border-radius: var(--radius-pill); font: var(--weight-semibold) var(--text-sm) var(--font-mono); }
.vx-navhero-roi.is-pos { color: var(--success); background: rgba(74, 222, 128, 0.12); }
.vx-navhero-roi.is-neg { color: var(--danger); background: rgba(248, 113, 113, 0.12); }
.vx-navhero-roi.is-flat { color: var(--ink-dim); background: var(--surface-2); }
.vx-navhero-chart {
display: flex; flex-direction: column;
padding: var(--space-md);
background: var(--surface-1); border: 1px solid var(--stroke); border-radius: var(--radius-lg);
}
.vx-chart-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-sm); margin-bottom: var(--space-xs); }
.vx-chart-t { font: var(--weight-medium) var(--text-2xs) var(--font-body); color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.05em; }
.vx-chart-now { font: var(--weight-semibold) var(--text-sm) var(--font-mono); color: var(--ink-bright); }
.vx-spark { width: 100%; max-width: 100%; flex: 1; min-height: 64px; display: block; }
/* Grid and flex items default to min-width:auto, so the sparkline's intrinsic
width and the large NAV figure held the hero open wider than a 320px screen.
The overflow was clipped rather than scrolled, hiding the right edge of the
share-price panel. */
.vx-navhero-main, .vx-navhero-chart { min-width: 0; }
.vx-spark-empty { display: flex; align-items: center; justify-content: center; flex: 1; min-height: 64px; color: var(--ink-faint); font: var(--text-xs) var(--font-mono); text-align: center; }
.vx-d-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-sm); margin-bottom: var(--space-lg); }
.vx-metric { min-width: 0; background: var(--surface-1); border: 1px solid var(--stroke); border-radius: var(--radius-md); padding: var(--space-sm) var(--space-md); display: flex; flex-direction: column; gap: var(--space-2xs); }
.vx-metric-l { font: var(--text-2xs) var(--font-body); color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.04em; }
.vx-metric-v {
/* A long figure must reflow inside its tile rather than be sliced off at the
tile edge, so the value never lies about how much capital is in the vault. */
font: var(--weight-semibold) var(--text-lg) var(--font-mono); color: var(--ink-bright);
overflow-wrap: anywhere;
}
.vx-d-cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--space-md); align-items: start; }
.vx-d-main, .vx-d-side { display: flex; flex-direction: column; gap: var(--space-md); }
.vx-panel { background: var(--surface-1); border: 1px solid var(--stroke); border-radius: var(--radius-lg); padding: var(--space-md); }
.vx-panel--mine { border-color: var(--wallet-accent-strong); background: var(--wallet-accent-soft); }
.vx-panel--owner { border-color: var(--stroke-strong); }
.vx-panel-h { font: var(--weight-semibold) var(--text-md) var(--font-display); color: var(--ink-bright); margin: 0 0 var(--space-sm); display: flex; align-items: baseline; gap: var(--space-xs); }
.vx-panel-sub { font: var(--text-2xs) var(--font-mono); color: var(--ink-faint); font-weight: var(--weight-regular); }
/* drawdown gauge */
.vx-gauge { margin-top: var(--space-sm); }
.vx-gauge-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-sm); margin-bottom: 6px; }
.vx-gauge-l { font: var(--weight-medium) var(--text-2xs) var(--font-body); color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.05em; }
.vx-gauge-v { font: var(--weight-semibold) var(--text-sm) var(--font-mono); }
.vx-gauge-track { position: relative; height: 8px; border-radius: var(--radius-pill); background: var(--surface-3); overflow: hidden; }
.vx-gauge-fill { height: 100%; border-radius: var(--radius-pill); transition: width var(--duration-slow) var(--ease-out); }
.vx-gauge-fill.is-ok { background: linear-gradient(90deg, var(--success), color-mix(in srgb, var(--success) 60%, var(--warn))); }
.vx-gauge-fill.is-warn { background: linear-gradient(90deg, var(--warn), color-mix(in srgb, var(--warn) 50%, var(--danger))); }
.vx-gauge-fill.is-crit { background: linear-gradient(90deg, var(--danger), color-mix(in srgb, var(--danger) 70%, #fff)); }
.vx-gauge-cap { font: var(--text-2xs) var(--font-mono); color: var(--ink-faint); margin-top: 6px; }
.vx-kv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm); }
.vx-kv-grid > div { display: flex; flex-direction: column; gap: 2px; }
.vx-kv-grid span { font: var(--text-2xs) var(--font-body); color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.04em; }
.vx-kv-grid b { font: var(--weight-semibold) var(--text-md) var(--font-mono); color: var(--ink-bright); }
.vx-fineprint { font-size: var(--text-xs); color: var(--ink-faint); line-height: var(--leading-normal); margin: var(--space-sm) 0 0; }
.vx-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.vx-table th { text-align: left; font: var(--weight-medium) var(--text-2xs) var(--font-body); color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.04em; padding: 0 var(--space-sm) var(--space-xs); }
.vx-table td { padding: var(--space-xs) var(--space-sm); border-top: 1px solid var(--stroke); color: var(--ink); }
.vx-mono { font-family: var(--font-mono); }
.vx-muted { color: var(--ink-faint); }
/* backer distribution */
.vx-distbar { display: flex; height: 10px; border-radius: var(--radius-pill); overflow: hidden; background: var(--surface-3); margin-bottom: var(--space-sm); }
.vx-distbar > i { height: 100%; min-width: 2px; transition: width var(--duration-slow) var(--ease-out); }
.vx-distbar > i.is-me { background: var(--wallet-accent-strong); }
.vx-dist-legend { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-md); font: var(--text-2xs) var(--font-mono); color: var(--ink-dim); }
.vx-dist-legend span { display: inline-flex; align-items: center; gap: 5px; }
.vx-dist-dot { width: 8px; height: 8px; border-radius: var(--radius-pill); flex: 0 0 auto; }
.vx-terms { display: flex; flex-direction: column; gap: var(--space-xs); }
.vx-terms > div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-sm); font-size: var(--text-sm); }
.vx-terms span { color: var(--ink-dim); }
.vx-terms b { font-family: var(--font-mono); color: var(--ink-bright); }
.vx-ledger { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; max-height: 420px; overflow-y: auto; }
.vx-ledger-row { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-xs) 0; border-top: 1px solid var(--stroke); }
.vx-ledger-row:first-child { border-top: none; }
.vx-ledger-i { width: 26px; height: 26px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-pill); background: var(--surface-2); color: var(--ink-dim); font-size: var(--text-xs); }
.vx-ledger--drawdown_halt .vx-ledger-i { color: var(--danger); background: rgba(248, 113, 113, 0.12); }
.vx-ledger--deposit .vx-ledger-i { color: var(--success); background: rgba(74, 222, 128, 0.12); }
.vx-ledger--trade .vx-ledger-i { color: var(--wallet-accent); background: var(--wallet-accent-soft); }
.vx-ledger-b { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.vx-ledger-b b { font: var(--weight-medium) var(--text-sm) var(--font-body); color: var(--ink); }
.vx-ledger-d { font: var(--text-xs) var(--font-mono); color: var(--ink-dim); }
.vx-ledger-t { font: var(--text-2xs) var(--font-mono); color: var(--ink-faint); white-space: nowrap; display: flex; align-items: center; gap: var(--space-xs); }
.vx-ledger-x { color: var(--wallet-accent); text-decoration: none; }
/* owner controls */
.vx-owner-row { display: flex; align-items: center; gap: var(--space-md); flex-wrap: wrap; margin-bottom: var(--space-md); }
.vx-owner-fee { font-size: var(--text-sm); color: var(--ink-dim); margin-left: auto; }
.vx-owner-fee b { font-family: var(--font-mono); color: var(--ink-bright); }
.vx-trade-form { border-top: 1px solid var(--stroke); padding-top: var(--space-md); }
.vx-trade-h { font: var(--weight-semibold) var(--text-sm) var(--font-display); color: var(--ink-bright); margin: 0 0 var(--space-sm); }
.vx-trade-grid { display: grid; grid-template-columns: 1fr 1.4fr 1fr auto; gap: var(--space-sm); }
/* ── modals ───────────────────────────────────────────────────────────────── */
.vx-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: var(--space-md); }
.vx-modal[hidden] { display: none; }
.vx-modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px); animation: vx-fade var(--duration-fast) var(--ease-out); }
.vx-modal-card { position: relative; width: 100%; max-width: 460px; max-height: 90vh; overflow-y: auto; background: var(--bg-1); border: 1px solid var(--stroke-strong); border-radius: var(--radius-lg); padding: var(--space-lg); box-shadow: var(--shadow-3, 0 24px 64px rgba(0,0,0,0.5)); animation: vx-pop var(--duration-base) var(--ease-emphasized); }
@keyframes vx-pop { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
.vx-modal-x { position: absolute; top: var(--space-sm); right: var(--space-sm); width: 32px; height: 32px; border: none; background: var(--surface-2); border-radius: var(--radius-sm); color: var(--ink-dim); font-size: 20px; line-height: 1; cursor: pointer; }
.vx-modal-x:hover { background: var(--surface-3); color: var(--ink-bright); }
.vx-modal-x:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: var(--focus-ring-offset); }
.vx-modal-title { font: var(--weight-bold) var(--text-lg) var(--font-display); color: var(--ink-bright); margin: 0 0 var(--space-xs); padding-right: var(--space-xl); }
.vx-modal-sub { font-size: var(--text-sm); color: var(--ink-dim); line-height: var(--leading-normal); margin: 0 0 var(--space-md); }
body.vx-modal-open { overflow: hidden; }
.vx-form { display: flex; flex-direction: column; gap: var(--space-md); }
.vx-field { display: flex; flex-direction: column; gap: var(--space-2xs); }
.vx-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm); }
.vx-label { font: var(--weight-medium) var(--text-sm) var(--font-body); color: var(--ink); }
.vx-opt { color: var(--ink-faint); font-weight: var(--weight-regular); }
.vx-input { width: 100%; padding: var(--space-sm) var(--space-md); background: var(--surface-1); border: 1px solid var(--stroke-strong); border-radius: var(--radius-md); color: var(--ink-bright); font: var(--text-ui) var(--font-body); }
.vx-input:focus { outline: none; border-color: var(--wallet-accent-strong); }
.vx-input-suffix { display: flex; align-items: center; gap: var(--space-xs); background: var(--surface-1); border: 1px solid var(--stroke-strong); border-radius: var(--radius-md); padding: 0 var(--space-md); }
.vx-input-suffix .vx-input { border: none; padding-left: 0; padding-right: 0; background: transparent; }
.vx-input-suffix > span { color: var(--ink-dim); font-family: var(--font-mono); font-size: var(--text-sm); }
.vx-hint { font-size: var(--text-xs); color: var(--ink-faint); line-height: var(--leading-normal); }
.vx-risk { font-size: var(--text-xs); color: var(--ink-dim); line-height: var(--leading-normal); padding: var(--space-sm); background: var(--surface-1); border-left: 2px solid var(--warn); border-radius: var(--radius-sm); }
.vx-form-err { font-size: var(--text-sm); color: var(--danger); padding: var(--space-xs) var(--space-sm); background: rgba(248, 113, 113, 0.1); border-radius: var(--radius-sm); }
/* ── toasts ───────────────────────────────────────────────────────────────── */
#vx-toast { position: fixed; bottom: var(--space-lg); right: var(--space-lg); z-index: 300; display: flex; flex-direction: column; gap: var(--space-xs); max-width: 360px; }
.vx-toast-item { padding: var(--space-sm) var(--space-md); border-radius: var(--radius-md); background: var(--bg-1); border: 1px solid var(--stroke-strong); color: var(--ink); font-size: var(--text-sm); box-shadow: var(--shadow-2, 0 8px 24px rgba(0,0,0,0.4)); opacity: 0; transform: translateX(12px); transition: opacity var(--duration-base), transform var(--duration-base); }
.vx-toast-item.is-in { opacity: 1; transform: none; }
.vx-toast--ok { border-color: rgba(74, 222, 128, 0.4); }
.vx-toast--err { border-color: rgba(248, 113, 113, 0.4); }
.vx-toast--warn { border-color: rgba(251, 191, 36, 0.4); }
/* ── responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
.vx-stats { grid-template-columns: repeat(2, 1fr); }
.vx-navhero { grid-template-columns: 1fr; }
.vx-d-cols { grid-template-columns: 1fr; }
.vx-d-metrics { grid-template-columns: repeat(2, 1fr); }
.vx-trade-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
.vx-shell { padding: var(--space-lg) var(--space-sm) var(--space-2xl); }
.vx-hero { padding: var(--space-lg) var(--space-md); }
.vx-title { font-size: var(--text-2xl); }
.vx-stats { grid-template-columns: repeat(2, 1fr); }
.vx-feed-head-r { width: 100%; justify-content: space-between; }
.vx-grid { grid-template-columns: 1fr; }
.vx-field-row { grid-template-columns: 1fr; }
.vx-d-metrics { grid-template-columns: 1fr 1fr; }
.vx-trade-grid { grid-template-columns: 1fr; }
.vx-d-cta { margin-left: 0; width: 100%; }
.vx-d-cta .vx-btn { width: 100%; }
#vx-toast { left: var(--space-sm); right: var(--space-sm); max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
.vx-view, .vx-modal-card, .vx-modal-backdrop, .vx-toast-item, .vx-live-dot, .vx-skel-line, .vx-card-cap-bar > i, .vx-gauge-fill, .vx-distbar > i { animation: none !important; transition: none !important; }
}