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.

add xspace-agent/packages/server/public/css/components.css

overstepping7a42bd354bc7
diff --git a/xspace-agent/packages/server/public/css/components.css b/xspace-agent/packages/server/public/css/components.css
new file mode 100644
index 000000000..ab08c1c01
--- /dev/null
+++ b/xspace-agent/packages/server/public/css/components.css
@@ -0,0 +1,616 @@
+/* === Card === */
+.card {
+ background: var(--bg-card);
+ backdrop-filter: var(--card-blur);
+ -webkit-backdrop-filter: var(--card-blur);
+ border: 1px solid var(--border);
+ border-radius: var(--radius-lg);
+ padding: var(--space-lg);
+ box-shadow: var(--card-shadow);
+ transition: box-shadow var(--transition-normal), border-color var(--transition-normal);
+}
+
+.card:hover {
+ box-shadow: var(--card-shadow-hover);
+ border-color: var(--border-light);
+}
+
+.card-header {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ margin-bottom: var(--space-md);
+}
+
+.card-title {
+ font-size: var(--text-sm);
+ font-weight: 600;
+ color: var(--text-secondary);
+ text-transform: uppercase;
+ letter-spacing: 0.06em;
+}
+
+.card-value {
+ font-size: var(--text-2xl);
+ font-weight: 700;
+ font-family: var(--font-mono);
+ color: var(--text-primary);
+}
+
+.card-meta {
+ font-size: var(--text-xs);
+ color: var(--text-muted);
+ font-family: var(--font-mono);
+}
+
+/* Card grid layouts */
+.card-grid {
+ display: grid;
+ gap: var(--space-md);
+}
+
+.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
+.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
+.card-grid-4 { grid-template-columns: repeat(4, 1fr); }
+
+/* === Status Badge === */
+.badge {
+ display: inline-flex;
+ align-items: center;
+ gap: var(--space-xs);
+ padding: 3px 10px;
+ border-radius: 20px;
+ font-size: var(--text-xs);
+ font-weight: 500;
+ font-family: var(--font-mono);
+}
+
+.badge-success {
+ background: var(--success-glow);
+ color: var(--success);
+ border: 1px solid rgba(16, 185, 129, 0.2);
+}
+
+.badge-warning {
+ background: var(--warning-glow);
+ color: var(--warning);
+ border: 1px solid rgba(245, 158, 11, 0.2);
+}
+
+.badge-error {
+ background: var(--error-glow);
+ color: var(--error);
+ border: 1px solid rgba(239, 68, 68, 0.2);
+}
+
+.badge-info {
+ background: var(--accent-glow);
+ color: var(--accent);
+ border: 1px solid rgba(59, 130, 246, 0.2);
+}
+
+.badge-neutral {
+ background: rgba(90, 94, 114, 0.15);
+ color: var(--text-muted);
+ border: 1px solid rgba(90, 94, 114, 0.2);
+}
+
+/* === Buttons === */
+.btn {
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ gap: var(--space-sm);
+ padding: var(--space-sm) var(--space-md);
+ border-radius: var(--radius-sm);
+ font-family: var(--font-sans);
+ font-size: var(--text-sm);
+ font-weight: 500;
+ border: 1px solid var(--border);
+ background: var(--bg-card);
+ color: var(--text-primary);
+ cursor: pointer;
+ transition: all var(--transition-fast);
+ white-space: nowrap;
+ user-select: none;
+}
+
+.btn:hover:not(:disabled) {
+ background: var(--bg-card-hover);
+ border-color: var(--border-light);
+}
+
+.btn:active:not(:disabled) { transform: scale(0.98); }
+
+.btn:disabled {
+ opacity: 0.4;
+ cursor: not-allowed;
+}
+
+.btn svg { width: 16px; height: 16px; }
+
+.btn-primary {
+ background: var(--accent);
+ border-color: var(--accent);
+ color: #fff;
+}
+
+.btn-primary:hover:not(:disabled) {
+ background: var(--accent-hover);
+ border-color: var(--accent-hover);
+}
+
+.btn-success {
+ border-color: var(--success);
+ color: var(--success);
+ background: var(--success-glow);
+}
+
+.btn-success:hover:not(:disabled) {
+ background: rgba(16, 185, 129, 0.25);
+}
+
+.btn-danger {
+ border-color: var(--error);
+ color: var(--error);
+ background: var(--error-glow);
+}
+
+.btn-danger:hover:not(:disabled) {
+ background: rgba(239, 68, 68, 0.25);
+}
+
+.btn-warning {
+ border-color: var(--warning);
+ color: var(--warning);
+ background: var(--warning-glow);
+}
+
+.btn-warning:hover:not(:disabled) {
+ background: rgba(245, 158, 11, 0.25);
+}
+
+.btn-sm {
+ padding: var(--space-xs) var(--space-sm);
+ font-size: var(--text-xs);
+}
+
+.btn-row {
+ display: flex;
+ gap: var(--space-sm);
+ flex-wrap: wrap;
+}
+
+/* === Inputs === */
+.input, .textarea, .select {
+ width: 100%;
+ background: var(--bg-input);
+ border: 1px solid var(--border);
+ border-radius: var(--radius-sm);
+ color: var(--text-primary);
+ font-family: var(--font-sans);
+ font-size: var(--text-sm);
+ padding: var(--space-sm) var(--space-md);
+ outline: none;
+ transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
+}
+
+.input:focus, .textarea:focus, .select:focus {
+ border-color: var(--accent);
+ box-shadow: 0 0 0 3px var(--accent-glow);
+}
+
+.input::placeholder { color: var(--text-muted); }
+
+.textarea {
+ font-family: var(--font-mono);
+ font-size: var(--text-sm);
+ resize: vertical;
+ min-height: 100px;
+ line-height: 1.6;
+}
+
+.select {
+ appearance: none;
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235a5e72' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
+ background-repeat: no-repeat;
+ background-position: right 12px center;
+ padding-right: 36px;
+ cursor: pointer;
+}
+
+.form-group {
+ margin-bottom: var(--space-md);
+}
+
+.form-label {
+ display: block;
+ font-size: var(--text-xs);
+ font-weight: 600;
+ color: var(--text-muted);
+ text-transform: uppercase;
+ letter-spacing: 0.06em;
+ margin-bottom: var(--space-xs);
+}
+
+.form-hint {
+ font-size: var(--text-xs);
+ color: var(--text-muted);
+ margin-top: var(--space-xs);
+}
+
+/* === Audio Meter === */
+.audio-meter {
+ height: 4px;
+ background: var(--bg-secondary);
+ border-radius: 2px;
+ overflow: hidden;
+}
+
+.audio-meter-fill {
+ height: 100%;
+ background: linear-gradient(90deg, var(--success), var(--warning) 70%, var(--error));
+ border-radius: 2px;
+ transition: width 100ms linear;
+ width: 0%;
+}
+
+.audio-meter-lg {
+ height: 6px;
+ border-radius: 3px;
+}
+
+.audio-meter-lg .audio-meter-fill { border-radius: 3px; }
+
+/* === Status Indicator === */
+.status-indicator {
+ width: 8px;
+ height: 8px;
+ border-radius: 50%;
+ display: inline-block;
+ flex-shrink: 0;
+}
+
+.status-indicator.active {
+ background: var(--success);
+ animation: status-pulse 2s ease-in-out infinite;
+}
+
+.status-indicator.working {
+ background: var(--warning);
+ animation: status-pulse 1s ease-in-out infinite;
+}
+
+.status-indicator.error {
+ background: var(--error);
+ box-shadow: 0 0 6px var(--error);
+}
+
+.status-indicator.idle {
+ background: var(--text-muted);
+}
+
+@keyframes status-pulse {
+ 0%, 100% { box-shadow: 0 0 0 0 currentColor; opacity: 1; }
+ 50% { box-shadow: 0 0 0 6px transparent; opacity: 0.7; }
+}
+
+/* === Transcript === */
+.transcript {
+ display: flex;
+ flex-direction: column;
+ gap: var(--space-sm);
+ max-height: 400px;
+ overflow-y: auto;
+ padding: var(--space-sm);
+}
+
+.transcript-entry {
+ display: flex;
+ gap: var(--space-sm);
+ padding: var(--space-sm) var(--space-md);
+ border-radius: var(--radius-sm);
+ background: var(--bg-secondary);
+ animation: slideIn 200ms ease;
+}
+
+@keyframes slideIn {
+ from { opacity: 0; transform: translateY(8px); }
+ to { opacity: 1; transform: translateY(0); }
+}
+
+.transcript-speaker {
+ font-weight: 600;
+ font-size: var(--text-sm);
+ white-space: nowrap;
+ flex-shrink: 0;
+}
+
+.transcript-text {
+ font-size: var(--text-sm);
+ color: var(--text-secondary);
+ line-height: 1.5;
+}
+
+.transcript-time {
+ font-size: var(--text-xs);
+ color: var(--text-muted);
+ font-family: var(--font-mono);
+ flex-shrink: 0;
+ margin-left: auto;
+}
+
+.transcript-empty {
+ text-align: center;
+ color: var(--text-muted);
+ font-size: var(--text-sm);
+ padding: var(--space-xl);
+}
+
+/* === Log Panel === */
+.log-panel {
+ font-family: var(--font-mono);
+ font-size: var(--text-xs);
+ max-height: 250px;
+ overflow-y: auto;
+ padding: var(--space-sm);
+ background: var(--bg-primary);
+ border-radius: var(--radius-sm);
+ border: 1px solid var(--border);
+}
+
+.log-entry {
+ padding: 2px 0;
+ color: var(--text-muted);
+ line-height: 1.6;
+}
+
+.log-entry.ok { color: var(--success); }
+.log-entry.err { color: var(--error); }
+.log-entry.info { color: var(--accent); }
+.log-entry.warn { color: var(--warning); }
+
+/* === Agent Card === */
+.agent-card {
+ display: flex;
+ flex-direction: column;
+ gap: var(--space-md);
+}
+
+.agent-card-header {
+ display: flex;
+ align-items: center;
+ gap: var(--space-md);
+}
+
+.agent-avatar {
+ width: 48px;
+ height: 48px;
+ border-radius: 50%;
+ background: var(--bg-secondary);
+ border: 2px solid var(--border);
+ overflow: hidden;
+ flex-shrink: 0;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ font-size: var(--text-xl);
+}
+
+.agent-info { flex: 1; }
+
+.agent-name {
+ font-weight: 600;
+ font-size: var(--text-lg);
+}
+
+.agent-provider {
+ font-size: var(--text-xs);
+ color: var(--text-muted);
+ font-family: var(--font-mono);
+}
+
+.agent-stats {
+ display: grid;
+ grid-template-columns: repeat(3, 1fr);
+ gap: var(--space-sm);
+}
+
+.agent-stat {
+ text-align: center;
+ padding: var(--space-sm);
+ background: var(--bg-secondary);
+ border-radius: var(--radius-sm);
+}
+
+.agent-stat-value {
+ font-family: var(--font-mono);
+ font-weight: 600;
+ font-size: var(--text-lg);
+ color: var(--text-primary);
+}
+
+.agent-stat-label {
+ font-size: var(--text-xs);
+ color: var(--text-muted);
+}
+
+/* === Divider === */
+.divider {
+ height: 1px;
+ background: var(--border);
+ margin: var(--space-md) 0;
+}
+
+/* === Empty State === */
+.empty-state {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ padding: var(--space-2xl);
+ color: var(--text-muted);
+ text-align: center;
+}
+
+.empty-state svg {
+ width: 48px;
+ height: 48px;
+ margin-bottom: var(--space-md);
+ opacity: 0.3;
+}
+
+.empty-state p {
+ font-size: var(--text-sm);
+ max-width: 300px;
+}
+
+/* === Tooltip === */
+[data-tooltip] {
+ position: relative;
+}
+
+[data-tooltip]::after {
+ content: attr(data-tooltip);
+ position: absolute;
+ bottom: 100%;
+ left: 50%;
+ transform: translateX(-50%);
+ padding: 4px 8px;
+ background: var(--bg-card-hover);
+ border: 1px solid var(--border);
+ border-radius: var(--radius-sm);
+ font-size: var(--text-xs);
+ color: var(--text-primary);
+ white-space: nowrap;
+ opacity: 0;
+ pointer-events: none;
+ transition: opacity var(--transition-fast);
+ z-index: 1000;
+}
+
+[data-tooltip]:hover::after { opacity: 1; }
+
+/* === Stat Row === */
+.stat-row {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ padding: var(--space-sm) 0;
+}
+
+.stat-row + .stat-row {
+ border-top: 1px solid var(--border);
+}
+
+.stat-label {
+ font-size: var(--text-sm);
+ color: var(--text-secondary);
+}
+
+.stat-value {
+ font-family: var(--font-mono);
+ font-size: var(--text-sm);
+ color: var(--text-primary);
+}
+
+/* === Skeleton loading === */
+.skeleton {
+ background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-card) 50%, var(--bg-secondary) 75%);
+ background-size: 200% 100%;
+ animation: skeleton-shimmer 1.5s infinite;
+ border-radius: var(--radius-sm);
+}
+
+@keyframes skeleton-shimmer {
+ 0% { background-position: 200% 0; }
+ 100% { background-position: -200% 0; }
+}
+
+/* === Tab Group === */
+.tabs {
+ display: flex;
+ gap: var(--space-xs);
+ border-bottom: 1px solid var(--border);
+ margin-bottom: var(--space-lg);
+}
+
+.tab {
+ padding: var(--space-sm) var(--space-md);
+ font-size: var(--text-sm);
+ color: var(--text-muted);
+ cursor: pointer;
+ border-bottom: 2px solid transparent;
+ transition: all var(--transition-fast);
+ user-select: none;
+}
+
+.tab:hover { color: var(--text-secondary); }
+
+.tab.active {
+ color: var(--accent);
+ border-bottom-color: var(--accent);
+}
+
+/* === Key-Value List === */
+.kv-list { list-style: none; }
+
+.kv-item {
+ display: flex;
+ justify-content: space-between;
+ padding: var(--space-sm) 0;
+ font-size: var(--text-sm);
+}
+
+.kv-item + .kv-item { border-top: 1px solid var(--border); }
+
+.kv-key { color: var(--text-secondary); }
+.kv-value { font-family: var(--font-mono); color: var(--text-primary); }
+
+/* === Toggle Switch === */
+.toggle {
+ position: relative;
+ width: 36px;
+ height: 20px;
+ display: inline-block;
+}
+
+.toggle input {
+ opacity: 0;
+ width: 0;
+ height: 0;
+}
+
+.toggle-slider {
+ position: absolute;
+ cursor: pointer;
+ inset: 0;
+ background: var(--bg-secondary);
+ border: 1px solid var(--border);
+ border-radius: 20px;
+ transition: background var(--transition-fast);
+}
+
+.toggle-slider::before {
+ content: '';
+ position: absolute;
+ width: 14px;
+ height: 14px;
+ left: 2px;
+ bottom: 2px;
+ background: var(--text-muted);
+ border-radius: 50%;
+ transition: all var(--transition-fast);
+}
+
+.toggle input:checked + .toggle-slider {
+ background: var(--accent);
+ border-color: var(--accent);
+}
+
+.toggle input:checked + .toggle-slider::before {
+ transform: translateX(16px);
+ background: #fff;
+}
+
+