/* ============================================================ agentmon — Refined Dark UI ============================================================ */ :root { --bg: #07090f; --surface: #0d1117; --surface-2: #111820; --card: rgba(13, 20, 32, 0.85); --border: rgba(28, 38, 55, 0.7); --border-soft: rgba(28, 38, 55, 0.4); --text: #b8c5d4; --text-dim: #465a6e; --text-mute: #6b7f94; --text-bright: #e4edf5; --accent: #22d3ee; --accent-dim: rgba(34, 211, 238, 0.07); --accent-glow: rgba(34, 211, 238, 0.18); --success: #34d399; --error: #f87171; --warning: #fbbf24; --purple: #a78bfa; --font-display: 'Syne', sans-serif; --font-body: 'Outfit', sans-serif; --font-mono: 'Fira Code', monospace; --radius: 6px; --radius-lg: 10px; --radius-xl: 14px; --header-bg: rgba(7, 9, 15, 0.82); --code-text: #7a9ab5; } /* ── Reset ─────────────────────────────────────────────────── */ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } /* ── Base ──────────────────────────────────────────────────── */ html { scroll-behavior: smooth; } body { font-family: var(--font-body); font-size: 15px; background-color: var(--bg); background-image: radial-gradient(ellipse 80% 40% at 50% -20%, rgba(34, 211, 238, 0.04) 0%, transparent 70%), radial-gradient(circle at 1px 1px, rgba(34, 211, 238, 0.045) 1px, transparent 0); background-size: 100% 100%, 28px 28px; color: var(--text); line-height: 1.6; min-height: 100vh; -webkit-font-smoothing: antialiased; } /* ── Header ────────────────────────────────────────────────── */ header { position: sticky; top: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 0 2rem; height: 54px; background: var(--header-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); } header::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent 0%, var(--accent) 40%, var(--accent) 60%, transparent 100%); opacity: 0.15; pointer-events: none; } .header-logo { display: flex; align-items: center; gap: 0.5rem; } header h1 a { font-family: var(--font-display); font-size: 1rem; font-weight: 800; color: var(--text-bright); text-decoration: none; letter-spacing: 0.08em; text-transform: uppercase; } .logo-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); margin-left: 2px; vertical-align: middle; position: relative; top: -1px; } header nav { display: flex; align-items: center; gap: 0.25rem; } header nav a { font-size: 0.8rem; font-weight: 500; color: var(--text-dim); text-decoration: none; padding: 0.375rem 0.875rem; border-radius: var(--radius); letter-spacing: 0.03em; transition: color 0.15s, background 0.15s; position: relative; } header nav a:hover { color: var(--text-bright); background: var(--surface-2); } header nav a.active { color: var(--text-bright); } header nav a.active::after { content: ''; position: absolute; bottom: -2px; left: 0.875rem; right: 0.875rem; height: 2px; background: var(--accent); border-radius: 1px; } /* ── Error Notification Badge ─────────────────────────────── */ nav a { position: relative; } .nav-badge { display: none; position: absolute; top: -2px; right: -8px; min-width: 16px; height: 16px; padding: 0 4px; background: var(--error); color: #fff; font-size: 0.6rem; font-weight: 600; border-radius: 8px; text-align: center; line-height: 16px; animation: badgePop 300ms ease; } .nav-badge.visible { display: block; } @keyframes badgePop { 0% { transform: scale(0); } 60% { transform: scale(1.3); } 100% { transform: scale(1); } } /* ── Header Search ────────────────────────────────────────── */ .header-search { position: relative; display: flex; align-items: center; gap: 0.5rem; margin-right: 0.5rem; } .header-search input { background: var(--surface); border: 1px solid var(--border); color: var(--text); padding: 0.35rem 0.75rem; padding-right: 2.2rem; border-radius: var(--radius); font-family: var(--font-body); font-size: 0.78rem; width: 140px; transition: width 0.2s ease, border-color 0.15s, box-shadow 0.15s; outline: none; } .header-search input:focus { width: 220px; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); } .header-search kbd { position: absolute; right: 0.6rem; top: 50%; transform: translateY(-50%); background: var(--surface-2); border: 1px solid var(--border); color: var(--text-dim); font-family: var(--font-mono); font-size: 0.65rem; padding: 0.1rem 0.35rem; border-radius: 3px; pointer-events: none; opacity: 0.7; } .header-search input:focus + kbd { display: none; } /* ── Breadcrumbs ─────────────────────────────────────────── */ .breadcrumbs { max-width: 1240px; margin: 0 auto; padding: 1rem 2rem 0; display: flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; color: var(--text-dim); } .breadcrumbs a { color: var(--text-dim); text-decoration: none; transition: color 0.15s; } .breadcrumbs a:hover { color: var(--text-bright); } .breadcrumbs .sep { opacity: 0.3; } .breadcrumbs .current { color: var(--text-bright); font-weight: 500; } /* ── Main ──────────────────────────────────────────────────── */ main { max-width: 1240px; margin: 0 auto; padding: 2rem; } /* Page entry animation */ @keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } main > * { animation: fadeUp 0.28s ease both; } /* ── Back link ─────────────────────────────────────────────── */ .back-link { display: inline-flex; align-items: center; gap: 0.4rem; margin-bottom: 1.75rem; color: var(--text-dim); text-decoration: none; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.02em; padding: 0.35rem 0.75rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); transition: color 0.15s, border-color 0.15s, background 0.15s; } .back-link:hover { color: var(--text-bright); border-color: rgba(34, 211, 238, 0.25); background: var(--surface-2); } /* ── Page header ───────────────────────────────────────────── */ .page-header { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border-soft); } .page-header h2 { font-family: var(--font-display); font-size: 1.55rem; font-weight: 700; color: var(--text-bright); margin-bottom: 0.6rem; letter-spacing: -0.02em; } .meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; color: var(--text-dim); font-size: 0.8rem; } .meta-item { display: flex; align-items: center; gap: 0.3rem; } .meta-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; } /* ── Section title ─────────────────────────────────────────── */ .section-title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--text-bright); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.6rem; } .section-title .count { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; color: var(--text-dim); background: var(--surface-2); border: 1px solid var(--border); padding: 0.1rem 0.45rem; border-radius: 999px; letter-spacing: 0.04em; } /* ── Filters ───────────────────────────────────────────────── */ .filters { display: flex; gap: 0.75rem; margin-bottom: 1.5rem; flex-wrap: wrap; align-items: flex-end; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1rem 1.25rem; } .filters label { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.7rem; font-weight: 600; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; } .filters input, .filters select { background: var(--surface); border: 1px solid var(--border); color: var(--text); padding: 0.45rem 0.75rem; border-radius: var(--radius); font-family: var(--font-body); font-size: 0.85rem; transition: border-color 0.15s, box-shadow 0.15s; outline: none; min-width: 140px; } .filters input:focus, .filters select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); } .filters select option { background: var(--surface-2); } /* ── Table container ───────────────────────────────────────── */ .table-container { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow-x: auto; } table { width: 100%; border-collapse: collapse; } th, td { text-align: left; padding: 0.7rem 1.25rem; } th { background: var(--surface-2); font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); border-bottom: 1px solid var(--border); white-space: nowrap; } td { font-size: 0.875rem; border-bottom: 1px solid var(--border-soft); color: var(--text); } tr:last-child td { border-bottom: none; } tr.clickable { cursor: pointer; } th.sortable { cursor: pointer; user-select: none; } th.sortable:hover { color: var(--text-bright); } th.sortable.sort-asc .sort-icon::after { content: ' ↑'; } th.sortable.sort-desc .sort-icon::after { content: ' ↓'; } .sort-icon { color: var(--accent); font-size: 0.7rem; } .pagination-info { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-dim); margin-bottom: 0.75rem; letter-spacing: 0.02em; } tr.clickable:hover td { background: var(--surface-2); color: var(--text-bright); } tr.clickable:hover td:first-child { border-left: 2px solid var(--accent); padding-left: calc(1.25rem - 2px); } tr.tr-error td { color: var(--error); } tr.tr-error .id-cell { color: var(--error); opacity: 0.8; } .skeleton-line { height: 0.8rem; background: var(--surface-2); border-radius: 4px; position: relative; overflow: hidden; } .skeleton-line::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent); animation: skeletonPulse 1.5s infinite; } @keyframes skeletonPulse { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } } /* ── Content-Aware Skeletons ──────────────────────────────── */ .skeleton-card { background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 1.25rem; min-height: 120px; } .skeleton-card .skeleton-line { margin-bottom: 0.5rem; } .skeleton-summary-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem; } .skeleton-timeline-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem; border-radius: var(--radius); background: var(--card); margin-bottom: 0.5rem; } .skeleton-circle { width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); animation: skeletonPulse 1.5s ease-in-out infinite; flex-shrink: 0; } /* ── Status badges ─────────────────────────────────────────── */ .status-badge { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; white-space: nowrap; } .status-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; } .status-success { color: var(--success); background: rgba(52, 211, 153, 0.1); border: 1px solid rgba(52, 211, 153, 0.2); } .status-success .status-dot { background: var(--success); } .status-error { color: var(--error); background: rgba(248, 113, 113, 0.1); border: 1px solid rgba(248, 113, 113, 0.2); } .status-error .status-dot { background: var(--error); } .status-unknown { color: var(--warning); background: rgba(251, 191, 36, 0.1); border: 1px solid rgba(251, 191, 36, 0.2); } .status-unknown .status-dot { background: var(--warning); } /* ── Monospace cells ───────────────────────────────────────── */ .id-cell { font-family: var(--font-mono); font-size: 0.78rem; color: var(--accent); letter-spacing: 0.02em; } .model-badge { font-family: var(--font-mono); font-size: 0.72rem; background: var(--surface-2); color: var(--text-dim); padding: 2px 6px; border-radius: 3px; } .copy-btn { background: transparent; border: none; color: var(--text-dim); cursor: pointer; padding: 0.1rem; border-radius: 4px; transition: color 0.15s, background 0.15s; display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; margin-left: 0.25rem; opacity: 0; } tr:hover .copy-btn, .meta-tile:hover .copy-btn { opacity: 1; } .copy-btn:hover { color: var(--accent); background: var(--accent-dim); } /* ── Toast notifications ───────────────────────────────────── */ .toast { position: fixed; bottom: 2rem; right: 2rem; z-index: 1000; padding: 0.75rem 1.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); color: var(--text-bright); font-size: 0.85rem; box-shadow: 0 4px 12px rgba(0,0,0,0.5); transform: translateY(1rem); opacity: 0; transition: transform 0.2s cubic-bezier(0.17, 0.67, 0.83, 0.67), opacity 0.2s, bottom 0.2s ease; pointer-events: none; max-width: min(420px, calc(100vw - 2rem)); } .toast.visible { transform: translateY(0); opacity: 1; } .toast-success { border-left: 3px solid var(--success); } .toast-error { border-left: 3px solid var(--error); } .toast-info { border-left: 3px solid var(--accent); } /* ── Command Palette ──────────────────────────────────────── */ .cmd-palette-backdrop { position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px); display: flex; justify-content: center; padding-top: 20vh; animation: fadeIn 150ms ease; } .cmd-palette { width: min(520px, 90vw); max-height: 400px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); overflow: hidden; display: flex; flex-direction: column; animation: slideDown 150ms ease; } .cmd-palette-input-wrap { display: flex; align-items: center; padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); gap: 0.5rem; } .cmd-palette-input-wrap svg { color: var(--text-dim); flex-shrink: 0; } .cmd-palette-input { flex: 1; background: none; border: none; color: var(--text-bright); font-family: var(--font-body); font-size: 0.95rem; outline: none; } .cmd-palette-input::placeholder { color: var(--text-dim); } .cmd-palette-results { overflow-y: auto; padding: 0.5rem; flex: 1; } .cmd-palette-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0.75rem; border-radius: var(--radius); cursor: pointer; transition: background 100ms; } .cmd-palette-item:hover, .cmd-palette-item.selected { background: var(--accent-dim); } .cmd-palette-item.selected { outline: 1px solid var(--accent-glow); } .cmd-palette-icon { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius); background: var(--surface-2); color: var(--text-dim); font-size: 0.8rem; flex-shrink: 0; } .cmd-palette-item.selected .cmd-palette-icon, .cmd-palette-item:hover .cmd-palette-icon { color: var(--accent); background: var(--accent-dim); } .cmd-palette-label { flex: 1; font-size: 0.85rem; color: var(--text); } .cmd-palette-label strong { color: var(--text-bright); font-weight: 500; } .cmd-palette-kbd { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-dim); background: var(--surface-2); padding: 0.15rem 0.4rem; border-radius: 3px; border: 1px solid var(--border-soft); } .cmd-palette-footer { display: flex; align-items: center; gap: 1rem; padding: 0.5rem 1rem; border-top: 1px solid var(--border-soft); font-size: 0.7rem; color: var(--text-dim); } .cmd-palette-footer kbd { font-family: var(--font-mono); font-size: 0.65rem; background: var(--surface-2); padding: 0.1rem 0.3rem; border-radius: 2px; border: 1px solid var(--border-soft); } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } @keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } } /* ── Load more ─────────────────────────────────────────────── */ .load-more { display: block; width: 100%; margin-top: 0.875rem; padding: 0.7rem; background: transparent; border: 1px dashed var(--border); color: var(--text-dim); cursor: pointer; border-radius: var(--radius); font-family: var(--font-body); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; transition: border-color 0.15s, color 0.15s, background 0.15s; } .load-more:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); } .refresh-btn { display: inline-flex; align-items: center; gap: 0.35rem; background: transparent; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-dim); font-family: var(--font-body); font-size: 0.78rem; font-weight: 500; padding: 0.35rem 0.75rem; cursor: pointer; transition: border-color 0.15s, color 0.15s, background 0.15s; } .refresh-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); } .refresh-btn:disabled { opacity: 0.4; cursor: default; } .page-header-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.6rem; } .page-header-row h2 { margin-bottom: 0; } /* ── Span expand ───────────────────────────────────────────── */ .expandable { cursor: pointer; } .expand-icon { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; margin-right: 0.5rem; color: var(--text-dim); font-size: 0; transition: transform 0.18s ease; flex-shrink: 0; vertical-align: middle; } .expand-icon::before { content: ''; display: block; width: 5px; height: 5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); margin-top: -2px; } tr.expandable:hover .expand-icon::before { color: var(--accent); } .span-details { background: var(--bg); padding: 1.25rem; font-family: var(--font-mono); font-size: 0.78rem; white-space: pre-wrap; word-break: break-all; color: var(--code-text); line-height: 1.75; border-top: 1px solid var(--border); } .session-run-detail { background: var(--bg); padding: 1rem 1.1rem; border-top: 1px solid var(--border); } .session-run-spans { display: flex; flex-wrap: wrap; gap: 0.6rem; } .session-span-pill { min-width: 180px; max-width: 100%; display: flex; flex-direction: column; gap: 0.18rem; padding: 0.55rem 0.7rem; border-radius: var(--radius); border: 1px solid var(--border-soft); background: var(--surface); } .session-span-pill.tool { border-color: rgba(34, 211, 238, 0.2); } .session-span-pill.agent { border-color: rgba(167, 139, 250, 0.2); } .session-span-name { font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-bright); } .session-span-meta { font-size: 0.72rem; color: var(--text-dim); line-height: 1.4; word-break: break-word; } /* ── Empty state ───────────────────────────────────────────── */ .empty-state { text-align: center; padding: 4rem 2rem; color: var(--text-dim); font-size: 0.875rem; letter-spacing: 0.02em; } /* ── Live indicator ────────────────────────────────────────── */ .live-indicator { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--success); } .live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 6px rgba(52, 211, 153, 0.5); animation: livePulse 2s ease-in-out infinite; } @keyframes livePulse { 0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(52, 211, 153, 0.5); } 50% { opacity: 0.6; box-shadow: 0 0 2px rgba(52, 211, 153, 0.2); } } /* ── VM Grid ───────────────────────────────────────────────── */ .vm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 1.25rem; } /* ── VM Card ───────────────────────────────────────────────── */ .vm-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 1.25rem; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: border-color 0.2s, transform 0.2s; position: relative; overflow: hidden; } .vm-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--accent-glow), transparent); opacity: 0; transition: opacity 0.2s; } .vm-card:hover { border-color: rgba(34, 211, 238, 0.18); transform: translateY(-2px); transition: transform 200ms ease, box-shadow 200ms ease; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); } .vm-card:hover::before { opacity: 1; } .vm-card-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 0.875rem; } .vm-card h3 { font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; color: var(--text-bright); letter-spacing: 0.03em; } .vm-status { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.2rem 0.65rem; border-radius: 999px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; } .vm-status.running { background: rgba(52, 211, 153, 0.1); color: var(--success); border: 1px solid rgba(52, 211, 153, 0.2); gap: 0.4rem; } .vm-status.running::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 6px rgba(52, 211, 153, 0.5); animation: livePulse 2s ease-in-out infinite; flex-shrink: 0; } .vm-status.stopped { background: rgba(248, 113, 113, 0.1); color: var(--error); border: 1px solid rgba(248, 113, 113, 0.2); } .vm-updated { font-size: 0.7rem; color: var(--text-dim); margin-bottom: 0.75rem; font-family: var(--font-mono); letter-spacing: 0.02em; } .vm-divider { height: 1px; background: var(--border-soft); margin: 0.875rem 0; } .vm-stats { width: 100%; } .vm-stats td { padding: 0.28rem 0; border-bottom: none; font-size: 0.82rem; } .vm-stats td:first-child { color: var(--text-dim); font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; width: 42%; } .vm-stats td:last-child { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text); } .vm-issues { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0; } .issue { font-size: 0.7rem; padding: 0.28rem 0.7rem; border-radius: 4px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; } .issue.gateway_down { background: rgba(248, 113, 113, 0.12); color: var(--error); border: 1px solid rgba(248, 113, 113, 0.2); } .issue.http_unhealthy { background: rgba(251, 191, 36, 0.1); color: var(--warning); border: 1px solid rgba(251, 191, 36, 0.2); } .issue.backup_stale { background: rgba(251, 191, 36, 0.08); color: var(--warning); border: 1px solid rgba(251, 191, 36, 0.15); } .issue.version_mismatch { background: rgba(167, 139, 250, 0.1); color: var(--purple); border: 1px solid rgba(167, 139, 250, 0.2); } /* ── Agents Page ───────────────────────────────────────────── */ .agents-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 1.5rem; margin-top: 1.25rem; } @media (max-width: 900px) { .agents-layout { grid-template-columns: 1fr; } } .vm-strip { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem; } .vm-pill { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; transition: border-color 0.2s, opacity 0.2s; } .vm-pill.active { border-color: rgba(52, 211, 153, 0.3); } .vm-pill.inactive { border-color: rgba(248, 113, 113, 0.2); opacity: 0.6; } .vm-pill-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; } .vm-pill.active .vm-pill-dot { background: var(--success); box-shadow: 0 0 6px rgba(52, 211, 153, 0.5); animation: livePulse 2s ease-in-out infinite; } .vm-pill.inactive .vm-pill-dot { background: var(--error); } .vm-pill-name { font-family: var(--font-mono); color: var(--text-bright); } .vm-pill-label { color: var(--text-dim); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; } /* ── Swarm strip ──────────────────────────────────────────── */ .swarm-strip { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem; } .vm-pill.degraded { border-color: rgba(251, 191, 36, 0.3); } .vm-pill.degraded .vm-pill-dot { background: var(--warning); } .timeline { display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; } .timeline-event { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 0.875rem 1.125rem; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fadeUp 0.25s ease both; transition: border-color 0.15s; } .timeline-event:hover { border-color: rgba(34, 211, 238, 0.15); } .timeline-event-link { cursor: pointer; } .timeline-event-link:hover { border-color: rgba(34, 211, 238, 0.3); } .timeline-event-link:focus-visible { outline: 2px solid rgba(34, 211, 238, 0.45); outline-offset: 2px; } .timeline-event-header { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.35rem; } .timeline-vm-tag { font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 4px; letter-spacing: 0.05em; text-transform: uppercase; } .timeline-vm-tag.zap { background: rgba(34, 211, 238, 0.12); color: var(--accent); border: 1px solid rgba(34, 211, 238, 0.2); } .timeline-vm-tag.orb { background: rgba(167, 139, 250, 0.12); color: var(--purple); border: 1px solid rgba(167, 139, 250, 0.2); } .timeline-vm-tag.sun { background: rgba(251, 191, 36, 0.12); color: var(--warning); border: 1px solid rgba(251, 191, 36, 0.2); } .timeline-vm-tag.unknown { background: var(--surface-2); color: var(--text-dim); border: 1px solid var(--border); } .timeline-event-type { font-size: 0.75rem; font-weight: 600; color: var(--text-bright); } .timeline-event-time { font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-dim); opacity: 0.6; margin-left: auto; } .timeline-event-body { font-size: 0.82rem; color: var(--text); line-height: 1.5; padding-left: 0.15rem; } .timeline-event-body.tool-name { font-family: var(--font-mono); color: var(--accent); font-size: 0.78rem; } .timeline-event-body.subagent-name { font-family: var(--font-mono); color: var(--purple); font-size: 0.78rem; } .timeline-event-body.message-preview { color: var(--text-dim); font-style: italic; } .timeline-event-body.error-message { color: var(--error); } .timeline-duration { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-dim); margin-left: 0.5rem; } .timeline-detail { margin-top: 0.5rem; padding: 0.75rem; background: var(--bg); border-radius: var(--radius); font-family: var(--font-mono); font-size: 0.75rem; color: var(--code-text); white-space: pre-wrap; word-break: break-all; line-height: 1.65; display: none; } .timeline-event.expanded .timeline-detail { display: block; } .timeline-expand-hint { display: inline-flex; align-items: center; margin-top: 0.3rem; padding: 0; background: transparent; border: none; color: var(--text-dim); cursor: pointer; font-family: var(--font-body); font-size: 0.68rem; letter-spacing: 0.03em; } .timeline-expand-hint:hover { color: var(--accent); } .stats-panel { display: flex; flex-direction: column; gap: 1rem; } .stat-card { background: var(--surface); border: 1px solid var(--border); border-top: 2px solid var(--card-accent, var(--border)); border-radius: var(--radius-lg); padding: 1rem; } .stat-card-title { font-size: 0.68rem; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.6rem; } .stat-card-value { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; color: var(--text-bright); letter-spacing: -0.02em; } .stat-card-sub { font-size: 0.72rem; color: var(--text-dim); margin-top: 0.1rem; } /* ============================================================ Shared primitives (am-*): bars, pills, chart headers. See modules/components.js for the renderers. ============================================================ */ /* ── Bars ─────────────────────────────────────────────── */ .am-bar-list { list-style: none; display: flex; flex-direction: column; } .am-bar-list li { padding: 0.35rem 0; border-bottom: 1px solid var(--border-soft); font-size: 0.8rem; } .am-bar-list li:last-child { border-bottom: none; } .am-bar-row { display: flex; flex-direction: column; gap: 0.3rem; } .am-bar-row-head { display: flex; justify-content: space-between; align-items: center; } .am-bar-row-name { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text); } .am-bar-row-count { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-dim); } .am-bar-track { background: var(--surface-2); border-radius: 3px; overflow: hidden; height: 6px; } .am-bar-track--xs { height: 3px; border-radius: 2px; } .am-bar-track--sm { height: 4px; border-radius: 2px; } .am-bar-track--md { height: 6px; border-radius: 3px; } .am-bar-track--lg { height: 8px; border-radius: 4px; } .am-bar-fill { height: 100%; background: var(--accent); transition: width 0.4s ease; } /* Framework / category color modifiers (applied to .am-bar-fill) */ .am-bar-fill.fw-openclaw { background: var(--accent); } .am-bar-fill.fw-claude-code { background: var(--success); } .am-bar-fill.fw-opencode { background: var(--purple); } .am-bar-fill.fw-hermes { background: var(--warning); } .am-bar-fill.fw-codex { background: #60a5fa; } .am-bar-fill.fw-gemini { background: #f97316; } .am-bar-fill.fw-copilot { background: #2dd4bf; } .am-bar-fill.fw-unknown { background: var(--text-dim); } .am-bar-fill.model { background: var(--success); } .am-bar-fill.input { background: var(--accent); } .am-bar-fill.output { background: var(--purple); } /* ── Pills ────────────────────────────────────────────── */ .am-pill-strip { display: flex; flex-wrap: wrap; gap: 0.5rem; } .am-pill-strip--insights { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; } @media (max-width: 900px) { .am-pill-strip--insights { grid-template-columns: repeat(2, minmax(0, 1fr)); } } @media (max-width: 560px) { .am-pill-strip--insights { grid-template-columns: 1fr; } } .am-pill { display: flex; flex-direction: column; gap: 0.15rem; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 0.5rem 0.85rem; min-width: 130px; flex: 1; } .am-pill-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-dim); font-family: var(--font-mono); } .am-pill-value { font-size: 1.05rem; font-weight: 600; font-family: var(--font-mono); color: var(--text-bright); } .am-pill-meta { font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-dim); letter-spacing: 0.03em; text-transform: uppercase; } .am-pill.alert .am-pill-value { color: var(--error); } /* Variant: chart insight (taller, gradient background) */ .am-pill--insight { min-height: 62px; border-color: var(--border-soft); background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)); padding: 0.75rem 0.85rem; gap: 0.25rem; } .am-pill--insight .am-pill-value { font-size: 0.95rem; } /* Variant: tight inline total (e.g. usage chart totals) */ .am-pill--total { flex-direction: row; align-items: baseline; gap: 0.3rem; background: var(--surface-2); border-color: var(--border-soft); border-radius: var(--radius); padding: 0.22rem 0.55rem; min-width: auto; flex: 0 0 auto; } .am-pill--total .am-pill-label { font-size: 0.6rem; } .am-pill--total .am-pill-value { font-size: 0.8rem; font-weight: normal; } /* Variant: latency-range item (centered, borderless) */ .am-pill--range { flex: 0 0 auto; min-width: auto; align-items: center; gap: 0.1rem; background: transparent; border: none; padding: 0; } .am-pill--range .am-pill-label { font-size: 0.68rem; } .am-pill--range .am-pill-value { font-size: 1rem; font-weight: 600; color: var(--text); } /* ── Chart headers ────────────────────────────────────── */ .am-chart-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; gap: 1rem; flex-wrap: wrap; } .am-chart-title-group { display: flex; flex-direction: column; gap: 0.2rem; } .am-chart-title { font-family: var(--font-display); font-size: 0.88rem; font-weight: 700; color: var(--text-bright); letter-spacing: 0.01em; } .am-chart-subtitle { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-dim); letter-spacing: 0.02em; } .am-chart-controls { display: flex; align-items: center; gap: 0.85rem; flex-wrap: wrap; justify-content: flex-end; } .event-icon { width: 18px; height: 18px; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 0.6rem; flex-shrink: 0; } .event-icon.message-in { background: rgba(52, 211, 153, 0.12); color: var(--success); border: 1px solid rgba(52, 211, 153, 0.25); } .event-icon.message-out { background: rgba(34, 211, 238, 0.12); color: var(--accent); border: 1px solid rgba(34, 211, 238, 0.25); } .event-icon.tool { background: rgba(167, 139, 250, 0.12); color: var(--purple); border: 1px solid rgba(167, 139, 250, 0.25); } .event-icon.error { background: rgba(248, 113, 113, 0.12); color: var(--error); border: 1px solid rgba(248, 113, 113, 0.25); } .event-icon.session { background: rgba(251, 191, 36, 0.12); color: var(--warning); border: 1px solid rgba(251, 191, 36, 0.25); } .event-icon.internal { background: var(--surface-2); color: var(--text-dim); border: 1px solid var(--border); } /* ── Dashboard ────────────────────────────────────────────── */ .dashboard-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem; } @media (max-width: 900px) { .dashboard-summary { grid-template-columns: repeat(2, 1fr); } } @media (max-width: 500px) { .dashboard-summary { grid-template-columns: 1fr; } } .summary-card { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--card-accent, var(--border)); border-radius: var(--radius-lg); padding: 1.125rem 1.25rem; transition: border-color 0.2s, border-left-color 0.2s; position: relative; overflow: hidden; } .summary-card:hover { border-color: var(--card-accent, var(--border)); border-left-color: var(--card-accent, var(--border)); } .summary-card-label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.7rem; font-weight: 600; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.5rem; } .summary-card-icon { font-size: 0.85rem; opacity: 0.7; } .summary-card-value { font-family: var(--font-body); font-size: 2rem; font-weight: 600; color: var(--text-bright); letter-spacing: -0.02em; line-height: 1; } .summary-card-value.has-errors { color: var(--error); } /* ── Counter Animations ───────────────────────────────────── */ .summary-card-value.bumped { animation: counterBump 400ms ease; } @keyframes counterBump { 0% { transform: scale(1); } 30% { transform: scale(1.15); color: var(--card-accent, var(--accent)); } 100% { transform: scale(1); } } .am-pill-value.bumped { animation: counterBump 400ms ease; } .summary-card-sub { font-size: 0.72rem; color: var(--text-dim); margin-top: 0.35rem; font-family: var(--font-mono); } /* ── Dashboard Sparklines ─────────────────────────────────── */ .summary-card-sparkline { position: absolute; bottom: 0; right: 0; width: 60%; height: 40px; opacity: 0.3; pointer-events: none; } .charts-row { display: grid; grid-template-columns: 1fr 320px; gap: 1.25rem; margin-bottom: 1.5rem; } @media (max-width: 900px) { .charts-row { grid-template-columns: 1fr; } } .chart-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; min-height: 280px; } .window-selector { display: flex; gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; } .window-btn { background: transparent; border: none; color: var(--text-dim); font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600; padding: 0.3rem 0.65rem; cursor: pointer; letter-spacing: 0.04em; transition: background 0.15s, color 0.15s; border-right: 1px solid var(--border); } .window-btn:last-child { border-right: none; } .window-btn:hover { color: var(--text-bright); background: var(--surface-2); } .window-btn.active { color: var(--accent); background: var(--accent-dim); } .mode-selector { display: flex; gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; } .mode-btn { background: transparent; border: none; color: var(--text-dim); font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700; padding: 0.3rem 0.7rem; cursor: pointer; letter-spacing: 0.05em; text-transform: uppercase; border-right: 1px solid var(--border); transition: background 0.15s, color 0.15s; } .mode-btn:last-child { border-right: none; } .mode-btn:hover { color: var(--text-bright); background: var(--surface-2); } .mode-btn.active { color: var(--success); background: rgba(52, 211, 153, 0.12); } .chart-container { width: 100%; min-height: 200px; } .chart-hover-panel { margin-top: 0.9rem; border: 1px solid var(--border-soft); border-radius: var(--radius); background: var(--surface-2); padding: 0.9rem 1rem; } .chart-hover-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 0.8rem; } .chart-hover-label, .chart-hover-total span, .chart-hover-metric span { font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-dim); letter-spacing: 0.04em; text-transform: uppercase; } .chart-hover-time { color: var(--text-bright); font-size: 0.85rem; margin-top: 0.25rem; } .chart-hover-total { text-align: right; } .chart-hover-total strong { display: block; color: var(--text-bright); font-size: 1.15rem; margin-top: 0.15rem; } .chart-hover-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; } @media (max-width: 720px) { .chart-hover-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } } .chart-hover-metric { border-radius: var(--radius); padding: 0.7rem 0.8rem; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.04); } .chart-hover-metric strong { display: block; margin-top: 0.2rem; color: var(--text-bright); font-size: 1rem; } .chart-hover-metric.runs strong { color: #34d399; } .chart-hover-metric.tools strong { color: #22d3ee; } .chart-hover-metric.errors strong { color: #f87171; } .chart-hover-metric.delta strong { color: var(--accent); } .bottom-panels { display: grid; grid-template-columns: 1fr 320px; gap: 1.25rem; } @media (max-width: 900px) { .bottom-panels { grid-template-columns: 1fr; } } .feed-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; max-height: 480px; overflow-y: auto; position: relative; } .feed-panel::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 48px; background: linear-gradient(to bottom, transparent, var(--surface)); border-radius: 0 0 var(--radius-lg) var(--radius-lg); pointer-events: none; } .feed-panel .timeline-event { padding: 0.625rem 0.875rem; border-radius: var(--radius); margin-bottom: 0.375rem; border: 1px solid var(--border-soft); background: transparent; } .tools-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; } .usage-rank-group + .usage-rank-group { margin-top: 1.15rem; padding-top: 1rem; border-top: 1px solid var(--border-soft); } .usage-rank-header { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700; color: var(--text-dim); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.45rem; } .uplot .u-legend { display: none; } /* ── Chart legend ─────────────────────────────────────────── */ .chart-legend { display: flex; gap: 1rem; align-items: center; } .chart-legend-item { display: flex; align-items: center; gap: 0.35rem; font-size: 0.7rem; color: var(--text-dim); font-family: var(--font-mono); } .chart-legend-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; } .chart-legend-dot.total { background: #f8fafc; box-shadow: 0 0 0 1px rgba(248, 250, 252, 0.2); } /* ── Framework dots ───────────────────────────────────────── */ .fw-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 0.4rem; flex-shrink: 0; vertical-align: middle; position: relative; top: -1px; } .fw-dot.openclaw { background: var(--accent); --fw-glow: var(--accent); } .fw-dot.claude-code { background: var(--success); --fw-glow: var(--success); } .fw-dot.opencode { background: var(--purple); --fw-glow: var(--purple); } .fw-dot.hermes { background: var(--warning); --fw-glow: var(--warning); } .fw-dot.codex { background: #60a5fa; --fw-glow: #60a5fa; } .fw-dot.gemini { background: #f97316; --fw-glow: #f97316; } .fw-dot.copilot { background: #2dd4bf; --fw-glow: #2dd4bf; } .fw-dot.unknown { background: var(--text-dim); --fw-glow: var(--text-dim); } .fw-dot.ended { opacity: 0.3; } .fw-dot.active { box-shadow: 0 0 6px var(--fw-glow); animation: fwPulse 2s ease-in-out infinite; } @keyframes fwPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } } .session-status-line { display: inline-flex; align-items: center; gap: 0.45rem; margin-top: 0.6rem; font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-dim); } .session-status-text { color: var(--text-bright); } /* ── Meta tiles ───────────────────────────────────────────── */ .meta-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.75rem; margin-top: 1rem; } .meta-tile { background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 0.625rem 0.875rem; } .meta-tile-label { font-size: 0.65rem; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.25rem; } .meta-tile-value { font-size: 0.85rem; color: var(--text-bright); font-family: var(--font-mono); } .meta-tile-sub { font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-dim); margin-top: 0.2rem; } /* ── VM card divider ──────────────────────────────────────── */ .vm-card-divider { height: 1px; background: var(--border-soft); margin: 0.75rem 0; } .vm-issues-label { font-size: 0.65rem; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.5rem; } /* ── Light theme variables ────────────────────────────────── */ [data-theme="light"] { --bg: #f5f7fa; --surface: #ffffff; --surface-2: #edf0f5; --card: rgba(255, 255, 255, 0.9); --border: rgba(200, 210, 225, 0.8); --border-soft: rgba(200, 210, 225, 0.5); --text: #3d4a5c; --text-dim: #8b9ab0; --text-mute: #5c6b80; --text-bright: #1a2332; --accent: #0891b2; --accent-dim: rgba(8, 145, 178, 0.08); --accent-glow: rgba(8, 145, 178, 0.15); --success: #059669; --error: #dc2626; --warning: #d97706; --purple: #7c3aed; --header-bg: rgba(245, 247, 250, 0.92); --code-text: #4a6580; } [data-theme="light"] body { background-image: radial-gradient(ellipse 80% 40% at 50% -20%, rgba(8, 145, 178, 0.04) 0%, transparent 70%), radial-gradient(circle at 1px 1px, rgba(8, 145, 178, 0.025) 1px, transparent 0); } @media (prefers-color-scheme: light) { html:not([data-theme]) { --bg: #f5f7fa; --surface: #ffffff; --surface-2: #edf0f5; --card: rgba(255, 255, 255, 0.9); --border: rgba(200, 210, 225, 0.8); --border-soft: rgba(200, 210, 225, 0.5); --text: #3d4a5c; --text-dim: #8b9ab0; --text-bright: #1a2332; --accent: #0891b2; --accent-dim: rgba(8, 145, 178, 0.08); --accent-glow: rgba(8, 145, 178, 0.15); --success: #059669; --error: #dc2626; --warning: #d97706; --purple: #7c3aed; --header-bg: rgba(245, 247, 250, 0.92); --code-text: #4a6580; } html:not([data-theme]) body { background-image: radial-gradient(ellipse 80% 40% at 50% -20%, rgba(8, 145, 178, 0.04) 0%, transparent 70%), radial-gradient(circle at 1px 1px, rgba(8, 145, 178, 0.025) 1px, transparent 0); } } /* ── Theme toggle button ──────────────────────────────────── */ .theme-toggle { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 1px solid var(--border); border-radius: var(--radius); background: transparent; color: var(--text-dim); cursor: pointer; transition: color 0.15s, border-color 0.15s, background 0.15s; margin-left: 0.75rem; flex-shrink: 0; } .theme-toggle:hover { color: var(--text-bright); border-color: var(--accent); background: var(--accent-dim); } /* ── Agent lanes ──────────────────────────────────────────── */ .agents-summary-row { display: flex; gap: 1.25rem; margin-bottom: 1.25rem; flex-wrap: wrap; } .agents-toolbar { display: flex; justify-content: flex-end; margin-bottom: 1rem; } .view-toggle { display: inline-flex; gap: 0.35rem; padding: 0.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; } .view-toggle-btn { border: none; background: transparent; color: var(--text-dim); font-family: var(--font-mono); font-size: 0.72rem; padding: 0.45rem 0.8rem; border-radius: 999px; cursor: pointer; } .view-toggle-btn.active { background: var(--accent-dim); color: var(--text-bright); } .agents-summary-stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.6rem 1rem; font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-mute); letter-spacing: 0.02em; display: flex; align-items: center; gap: 0.5rem; } .agents-summary-stat .value { color: var(--text-bright); font-weight: 600; } .agent-lanes { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.25rem; } @media (max-width: 900px) { .agent-lanes { grid-template-columns: 1fr; } } .agent-lane { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); display: flex; flex-direction: column; overflow: hidden; cursor: pointer; } .agent-lane:hover { transform: translateY(-2px); transition: transform 200ms ease, box-shadow 200ms ease; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); } .agent-lane-header { display: flex; align-items: center; justify-content: space-between; padding: 0.875rem 1.125rem; border-bottom: 1px solid var(--border-soft); } .agent-lane-name { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-display); font-size: 0.9rem; font-weight: 700; color: var(--text-bright); text-transform: uppercase; letter-spacing: 0.06em; } .agent-lane-meta { margin-top: 0.2rem; font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-mute); } /* ── Agent Lane Sparklines ────────────────────────────────── */ .agent-lane-sparkline { display: flex; align-items: flex-end; gap: 1px; height: 20px; margin-top: 0.25rem; } .agent-lane-sparkline-bar { flex: 1; background: linear-gradient(to top, var(--accent), var(--accent-glow)); border-radius: 1px 1px 0 0; opacity: 0.8; min-height: 2px; } .agent-lane-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; } .agent-lane-dot.online { background: var(--success); box-shadow: 0 0 6px rgba(52, 211, 153, 0.5); animation: livePulse 2s ease-in-out infinite; } .agent-lane-dot.offline { background: var(--text-dim); opacity: 0.5; } .agent-lane-status { font-size: 0.7rem; font-weight: 600; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.06em; } .agent-lane-status.has-sessions { color: var(--success); } /* ── Active operations ────────────────────────────────────── */ .active-ops { padding: 0.625rem 1.125rem; display: flex; flex-direction: column; gap: 0.375rem; border-bottom: 1px solid var(--border-soft); } .active-op { display: flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.625rem; background: var(--accent-dim); border: 1px solid rgba(34, 211, 238, 0.15); border-left: 2px solid var(--accent); border-radius: var(--radius); font-size: 0.75rem; animation: fadeUp 0.2s ease both; } [data-theme="light"] .active-op { border-color: rgba(8, 145, 178, 0.2); border-left-color: var(--accent); } .active-op.run { border-left-color: var(--accent); } .active-op.subagent { background: rgba(167, 139, 250, 0.12); border-color: rgba(167, 139, 250, 0.22); border-left-color: var(--purple); } .active-op.stale { opacity: 0.5; } .active-op-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 6px rgba(52, 211, 153, 0.5); animation: livePulse 1.5s ease-in-out infinite; flex-shrink: 0; } .active-op.stale .active-op-dot { background: var(--warning); box-shadow: none; animation: none; } .active-op-name { font-family: var(--font-mono); color: var(--accent); font-weight: 500; } .active-op.subagent .active-op-name { color: var(--purple); } .active-op-time { font-family: var(--font-mono); color: var(--text-dim); font-size: 0.7rem; margin-left: auto; } .active-op-stale { color: var(--warning); font-size: 0.65rem; font-weight: 600; } /* ── Lane event feed ──────────────────────────────────────── */ .agent-lane-events { flex: 1; overflow-y: auto; max-height: 520px; padding: 0.625rem; position: relative; } .agent-lane-events::after { content: ''; position: sticky; bottom: 0; left: 0; right: 0; height: 32px; background: linear-gradient(to bottom, transparent, var(--surface)); pointer-events: none; display: block; } .agent-lane-events .timeline-event { padding: 0.5rem 0.625rem; border-radius: var(--radius); margin-bottom: 0.25rem; border: 1px solid var(--border-soft); border-left: 2px solid var(--border); background: transparent; font-size: 0.82rem; } .agent-lane-events .timeline-event-header { margin-bottom: 0.2rem; } .agent-lane-events .timeline-event-time { font-size: 0.6rem; } /* ── Event-kind accents + hierarchy (scoped to Agents page) ── */ #agents-content .timeline-event.evt-run { border-left-color: var(--accent); } #agents-content .timeline-event.evt-error { border-left-color: var(--error); } #agents-content .timeline-event.evt-session { border-left-color: var(--success); } #agents-content .timeline-event.evt-span { border-left-color: rgba(34, 211, 238, 0.4); } /* Demote the generic type label to a quiet category tag; let the tool name / preview body carry the line. */ #agents-content .timeline-event-type { font-family: var(--font-mono); font-size: 0.62rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-mute); } #agents-content .timeline-event-body.tool-name, #agents-content .timeline-event-body.subagent-name { font-size: 0.82rem; font-weight: 500; } .agent-lane-events .empty-state { padding: 2rem 1rem; font-size: 0.78rem; } .agents-live-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 1.25rem; } .agents-live-sidebar, .agents-live-main, .agents-live-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); } .agents-live-sidebar { padding: 1rem; align-self: start; } .agent-picker { display: flex; flex-direction: column; gap: 0.5rem; } .agent-picker-item { width: 100%; display: flex; align-items: flex-start; gap: 0.65rem; padding: 0.75rem 0.85rem; background: transparent; border: 1px solid var(--border-soft); border-radius: var(--radius); text-align: left; cursor: pointer; color: inherit; } .agent-picker-item.active { border-color: rgba(34, 211, 238, 0.28); background: var(--accent-dim); } .agent-picker-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 0.3rem; flex-shrink: 0; } .agent-picker-dot.online { background: var(--success); } .agent-picker-dot.offline { background: var(--text-dim); opacity: 0.5; } .agent-picker-main { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; } .agent-picker-name { font-family: var(--font-display); font-size: 0.82rem; font-weight: 700; color: var(--text-bright); } .agent-picker-meta { font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-dim); } .agents-live-main { padding: 1rem; } .agents-live-header { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; margin-bottom: 1rem; } .agents-live-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; } .agents-live-badge { padding: 0.38rem 0.7rem; background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: 999px; font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-dim); } .agents-live-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; } .agents-live-card { padding: 1rem; } .agents-live-card-title { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); margin-bottom: 0.75rem; } .live-kv { display: flex; flex-direction: column; gap: 0.18rem; padding: 0.45rem 0; border-bottom: 1px solid var(--border-soft); } .live-kv:last-child { border-bottom: none; } .live-kv span { font-size: 0.68rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; } .live-kv strong { font-size: 0.8rem; color: var(--text-bright); word-break: break-word; } .agents-live-timeline { display: flex; flex-direction: column; gap: 0.65rem; } .live-run-group { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; } .live-run-group-header { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; padding: 0.85rem 1rem; border-bottom: 1px solid var(--border-soft); } .live-run-group-title { font-family: var(--font-display); font-size: 0.9rem; font-weight: 700; color: var(--text-bright); } .live-run-group-meta { display: flex; flex-wrap: wrap; gap: 0.65rem; font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-dim); } .live-run-events { display: flex; flex-direction: column; gap: 0.65rem; padding: 0.8rem; } .live-event { padding: 0.8rem 1rem; } .live-detail-grid { display: flex; flex-direction: column; gap: 0.3rem; margin-top: 0.55rem; } .live-detail-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 0.6rem; font-size: 0.74rem; } .live-detail-row .k { font-family: var(--font-mono); color: var(--text-dim); text-transform: uppercase; } .live-detail-row .v { color: var(--text); word-break: break-word; } .live-detail-row.ids .v { font-family: var(--font-mono); color: var(--text-dim); } /* ── Mobile layout ────────────────────────────────────────── */ @media (max-width: 640px) { main { padding: 1.25rem 1rem; } header { padding: 0 1rem; } header nav a { padding: 0.375rem 0.5rem; font-size: 0.75rem; } .agents-live-layout, .agents-live-cards { grid-template-columns: 1fr; } .agents-live-header { flex-direction: column; } } @media (max-width: 480px) { header { height: auto; flex-wrap: wrap; padding: 0.5rem 1rem; gap: 0; } .header-logo { flex: 1; } header nav { width: 100%; justify-content: flex-start; border-top: 1px solid var(--border-soft); padding: 0.375rem 0; margin-top: 0.25rem; gap: 0; } header nav a { padding: 0.3rem 0.5rem; font-size: 0.73rem; } } /* ── Infrastructure page ──────────────────────────────────── */ .infra-section-title { font-family: var(--font-display); font-size: 0.75rem; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.12em; margin: 0 0 1rem 0; } .infra-section { margin-bottom: 2rem; } /* Service card grid */ .service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; } .service-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.125rem 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; transition: border-color 0.2s; } .service-card:hover { border-color: rgba(34, 211, 238, 0.15); transform: translateY(-2px); transition: transform 200ms ease, box-shadow 200ms ease; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); } .service-card-header { display: flex; align-items: center; justify-content: space-between; } .service-card-name { font-family: var(--font-mono); font-size: 0.88rem; font-weight: 600; color: var(--text-bright); } .service-badge { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.2rem 0.55rem; border-radius: 999px; } .service-badge.healthy { background: rgba(52, 211, 153, 0.12); color: var(--success); border: 1px solid rgba(52, 211, 153, 0.2); } .service-badge.degraded { background: rgba(251, 191, 36, 0.12); color: var(--warning); border: 1px solid rgba(251, 191, 36, 0.2); } .service-badge.down { background: rgba(248, 113, 113, 0.12); color: var(--error); border: 1px solid rgba(248, 113, 113, 0.2); } .service-role-tag { font-size: 0.65rem; font-family: var(--font-mono); color: var(--text-dim); margin-top: -0.25rem; } .service-stats { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.78rem; } .service-stat-row { display: flex; justify-content: space-between; align-items: center; } .service-stat-label { color: var(--text-dim); font-family: var(--font-mono); font-size: 0.72rem; } .service-stat-value { color: var(--text); font-family: var(--font-mono); font-size: 0.75rem; } .service-stat-value.ok { color: var(--success); } .service-stat-value.warn { color: var(--warning); } .service-stat-value.bad { color: var(--error); } /* LiteLLM cooldown warning */ .llm-cooldown-banner { background: rgba(251, 191, 36, 0.08); border: 1px solid rgba(251, 191, 36, 0.2); border-radius: var(--radius); padding: 0.4rem 0.625rem; font-size: 0.72rem; color: var(--warning); font-family: var(--font-mono); } /* LiteLLM model count highlight */ .llm-model-count { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--text-bright); letter-spacing: -0.02em; line-height: 1; } .llm-model-label { font-size: 0.68rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; } /* ── Header right cluster ─────────────────────────────────── */ .header-right { display: flex; align-items: center; gap: 0; flex-shrink: 0; } /* ── WebSocket status dot ─────────────────────────────────── */ .ws-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--text-dim); opacity: 0.3; flex-shrink: 0; margin-right: 0.6rem; cursor: default; transition: background 0.4s, opacity 0.4s, box-shadow 0.4s; } .ws-dot.connected { background: var(--success); opacity: 1; box-shadow: 0 0 5px rgba(52, 211, 153, 0.5); animation: livePulse 2.5s ease-in-out infinite; } .ws-dot.reconnecting { background: var(--warning); opacity: 1; animation: livePulse 0.9s ease-in-out infinite; } /* ── Session date group header row ────────────────────────── */ tr.session-date-group > td { padding: 0.85rem 1.25rem 0.35rem; font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-dim); background: var(--surface-2); border-bottom: 1px solid var(--border-soft); pointer-events: none; user-select: none; } tr.session-date-group:first-child > td { padding-top: 0.5rem; } /* ── Session Filter Pills ─────────────────────────────────── */ .filter-pills { display: flex; gap: 0.5rem; margin-bottom: 1rem; } .filter-pill { padding: 0.35rem 0.85rem; border: 1px solid var(--border); border-radius: 20px; background: transparent; color: var(--text-dim); font-family: var(--font-body); font-size: 0.78rem; cursor: pointer; transition: all 150ms; } .filter-pill:hover { border-color: var(--accent-glow); color: var(--text); } .filter-pill.active { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); } .filter-pill .pill-count { margin-left: 0.35rem; font-family: var(--font-mono); font-size: 0.7rem; opacity: 0.7; } /* ── Session Duration Bars ────────────────────────────────── */ tr.clickable.active-session td { background: var(--accent-dim); } tr.clickable.active-session td:first-child { border-left: 2px solid var(--accent); padding-left: calc(1.25rem - 2px); } .session-duration-bar { display: inline-block; height: 4px; background: var(--accent); border-radius: 2px; min-width: 4px; max-width: 80px; opacity: 0.6; margin-left: 0.5rem; vertical-align: middle; } .error-count-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; background: rgba(248, 113, 113, 0.15); color: var(--error); border: 1px solid rgba(248, 113, 113, 0.25); border-radius: 10px; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; } /* ── Span kind badge ──────────────────────────────────────── */ .span-kind-badge { display: inline-flex; align-items: center; padding: 0.08rem 0.4rem; border-radius: 3px; font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-right: 0.4rem; vertical-align: middle; font-family: var(--font-mono); } .span-kind-badge.tool { background: rgba(34, 211, 238, 0.1); color: var(--accent); border: 1px solid rgba(34, 211, 238, 0.18); } .span-kind-badge.agent { background: rgba(167, 139, 250, 0.1); color: var(--purple); border: 1px solid rgba(167, 139, 250, 0.18); } .span-kind-badge.unknown, .span-kind-badge.other { background: var(--surface-2); color: var(--text-dim); border: 1px solid var(--border); } /* ── Structured span detail panel ─────────────────────────── */ .span-details-structured { padding: 1rem 1.25rem; border-top: 1px solid var(--border); background: var(--bg); display: flex; flex-direction: column; gap: 0.6rem; } .span-kv { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 0.8rem; align-items: start; font-size: 0.8rem; } .span-kv.ids { margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px solid var(--border-soft); } .span-kv-key { font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.07em; padding-top: 0.15rem; } .span-kv-val { color: var(--text); word-break: break-word; line-height: 1.55; margin: 0; } .span-kv-val.span-kv-raw, .span-kv-raw { font-family: var(--font-mono); font-size: 0.73rem; color: var(--code-text); white-space: pre-wrap; word-break: break-all; line-height: 1.65; margin: 0; } /* ── Right panel tabs ─────────────────────────────────────── */ .right-panel-tabs { display: flex; gap: 0.25rem; } .right-panel-tab { background: none; border: 1px solid transparent; border-radius: 6px; color: var(--text-dim); cursor: pointer; font-size: 0.78rem; font-family: inherit; padding: 0.25rem 0.6rem; transition: color 0.15s, border-color 0.15s, background 0.15s; } .right-panel-tab:hover { color: var(--text); border-color: var(--border); } .right-panel-tab.active { color: var(--accent); border-color: var(--accent); background: var(--accent-dim); } .right-panel-body { flex: 1; overflow: auto; } /* ── Token panel ──────────────────────────────────────────── */ .token-panel { display: flex; flex-direction: column; gap: 1rem; padding: 0.75rem 1rem; } .token-stat-big { display: flex; flex-direction: column; gap: 0.15rem; } .token-stat-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-dim); } .token-stat-value { font-size: 2rem; font-weight: 700; font-family: var(--font-mono); color: var(--text); line-height: 1.1; } .token-io-bars { display: flex; flex-direction: column; gap: 0.5rem; } .token-cost-display { display: flex; justify-content: space-between; align-items: baseline; padding: 0.5rem 0; border-top: 1px solid var(--border); font-size: 0.82rem; } .token-cost-display strong { font-family: 'Fira Code', monospace; font-size: 1rem; color: var(--success, #34d399); } /* ── Latency panel ────────────────────────────────────────── */ .latency-panel { display: flex; flex-direction: column; gap: 0.75rem; padding: 0.75rem 1rem; } .latency-range { display: flex; justify-content: space-between; } .latency-mini-bars { display: flex; align-items: flex-end; gap: 2px; height: 80px; padding: 4px 0; } .latency-mini-bar { flex: 1; min-height: 2px; background: var(--accent); border-radius: 2px 2px 0 0; opacity: 0.7; transition: opacity 0.15s; cursor: pointer; } .latency-mini-bar:hover { opacity: 1; } /* ── Thinking stream (agents live view) ───────────────────── */ .thinking-stream-card { min-width: 0; } .thinking-stream { display: flex; flex-direction: column; gap: 0.5rem; padding: 0.25rem 0; min-height: 3rem; } .thinking-stream-empty { color: var(--text-dim); font-size: 0.8rem; padding: 0.5rem 0; } .thinking-op { border-radius: 8px; padding: 0.55rem 0.75rem; border-left: 3px solid var(--border); background: var(--bg); transition: border-color 0.2s, opacity 0.3s; } .thinking-op.active { border-left-color: var(--accent); } .thinking-op.ended { border-left-color: var(--success, #34d399); opacity: 0.6; } .thinking-op-run.active { border-left-color: var(--accent); background: rgba(99, 102, 241, 0.06); } .thinking-op-subagent.active { border-left-color: var(--purple, #a78bfa); background: rgba(167, 139, 250, 0.06); } .thinking-op-tool.active { border-left-color: #22d3ee; background: rgba(34, 211, 238, 0.04); } .thinking-op-link { cursor: pointer; } .thinking-op-link:hover { border-left-width: 3px; filter: brightness(1.1); } .thinking-op-link:hover .thinking-op-arrow { opacity: 1; transform: translateX(2px); } .thinking-op-arrow { margin-left: auto; font-size: 0.8rem; color: var(--text-dim); opacity: 0.4; transition: opacity 0.15s, transform 0.15s; flex-shrink: 0; } .thinking-op-header { display: flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; } .thinking-op-icon { font-size: 0.9rem; line-height: 1; flex-shrink: 0; color: var(--text-dim); width: 1rem; text-align: center; } .thinking-op-icon.spin { animation: thinkSpin 1.4s linear infinite; } @keyframes thinkSpin { 0% { content: '◌'; opacity: 1; } 25% { opacity: 0.4; } 50% { opacity: 1; } 75% { opacity: 0.4; } 100% { opacity: 1; } } /* Pulsing opacity trick since content can't be animated */ .thinking-op-icon.spin { animation: thinkPulse 1s ease-in-out infinite; } @keyframes thinkPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } } .thinking-op-kind { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); min-width: 4.5rem; } .thinking-op-name { font-weight: 600; font-size: 0.82rem; color: var(--text); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .thinking-op-elapsed { font-family: 'Fira Code', monospace; font-size: 0.72rem; color: var(--text-dim); flex-shrink: 0; } .thinking-op-elapsed.live { color: var(--accent); } .thinking-op-preview { margin-top: 0.3rem; font-size: 0.75rem; color: var(--text-muted, var(--text-dim)); line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; padding-left: 1.4rem; } .thinking-op-result { margin-top: 0.25rem; font-size: 0.75rem; color: var(--success, #34d399); font-family: 'Fira Code', monospace; line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; padding-left: 1.4rem; } .thinking-op-tokens { display: flex; gap: 0.4rem; margin-top: 0.3rem; padding-left: 1.4rem; } .thinking-tok-badge { font-size: 0.68rem; background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: 0.1rem 0.35rem; color: var(--text-dim); } .thinking-toks { color: #a78bfa; } .error-kv strong { color: var(--error); } /* ── Context bar ──────────────────────────────────────────── */ .context-bar { margin-top: 0.5rem; height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; } .context-bar-fill { height: 100%; background: var(--accent); border-radius: 2px; transition: width 0.4s ease; } /* ── Run detail live ops banner ────────────────────────────── */ .run-live-ops { margin-bottom: 1rem; } .run-live-ops-inner { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; } .run-live-op-pill { display: inline-flex; align-items: center; gap: 0.35rem; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 0.25rem 0.65rem; font-size: 0.78rem; max-width: 320px; } .run-live-op-pill.thinking { border-color: var(--accent); background: rgba(99, 102, 241, 0.08); } .run-live-op-pill.subagent { border-color: var(--purple, #a78bfa); background: rgba(167, 139, 250, 0.08); } .run-live-op-pill.tool { border-color: #22d3ee; background: rgba(34, 211, 238, 0.06); } .run-live-op-spin { animation: thinkPulse 1s ease-in-out infinite; font-size: 0.75rem; flex-shrink: 0; } .run-live-op-name { font-weight: 600; color: var(--text); } .run-live-op-preview { color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 140px; } .run-live-op-time { font-family: 'Fira Code', monospace; font-size: 0.7rem; color: var(--accent); flex-shrink: 0; } /* ── Mobile: agents live — sidebar after content ──────────── */ @media (max-width: 640px) { .agents-live-sidebar { order: 2; } } /* ── Mobile: compact filters ──────────────────────────────── */ @media (max-width: 480px) { .filters { padding: 0.75rem; gap: 0.5rem; } .filters label { width: 100%; } .filters input, .filters select { width: 100%; min-width: unset; } .chart-legend { display: none; } .am-chart-controls { justify-content: flex-start; gap: 0.5rem; } .window-selector, .mode-selector { flex-shrink: 0; } } /* ── 404 page ─────────────────────────────────────────── */ .not-found { text-align: center; padding: 6rem 2rem; } .not-found h2 { font-family: var(--font-display); font-size: 1.6rem; color: var(--text-bright); margin-bottom: 0.5rem; } .not-found p { color: var(--text-dim); margin-bottom: 1.5rem; } .error-boundary { padding: 3rem 2rem; max-width: 560px; margin: 0 auto; } .error-boundary h2 { font-family: var(--font-display); font-size: 1.4rem; color: var(--error); margin-bottom: 0.5rem; } .error-boundary p { color: var(--text-dim); margin-bottom: 1rem; } .error-boundary-detail { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.75rem 1rem; font-family: var(--font-mono); font-size: 0.78rem; color: var(--code-text); margin-bottom: 1.25rem; white-space: pre-wrap; word-break: break-word; } /* ── Infrastructure Uptime & Freshness ────────────────────────────────── */ .uptime-badge { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 10px; font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500; } .uptime-badge.good { background: rgba(52, 211, 153, 0.15); color: var(--success); } .uptime-badge.warn { background: rgba(251, 191, 36, 0.15); color: var(--warning); } .uptime-badge.bad { background: rgba(248, 113, 113, 0.15); color: var(--error); } .freshness-timer { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-dim); } /* ── Skeleton loading ─────────────────────────────────── */ .skeleton-line { height: 0.85rem; width: 80%; border-radius: 4px; background: linear-gradient( 90deg, var(--border) 25%, rgba(255, 255, 255, 0.04) 50%, var(--border) 75% ); background-size: 200% 100%; animation: skeleton-pulse 1.5s ease-in-out infinite; } @keyframes skeleton-pulse { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } } /* Vary widths in table cells for a natural look */ tbody .skeleton-line { margin: 0.15rem 0; } tbody td:nth-child(1) .skeleton-line { width: 70%; } tbody td:nth-child(2) .skeleton-line { width: 55%; } tbody td:nth-child(3) .skeleton-line { width: 45%; } tbody td:nth-child(4) .skeleton-line { width: 30%; } tbody td:nth-child(5) .skeleton-line { width: 40%; } /* ── Keyboard accessibility ───────────────────────────── */ tr.expandable[tabindex="0"]:focus-visible, tr.expandable-run[tabindex="0"]:focus-visible, tr.run-span-row[tabindex="0"]:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; } /* ── Page Transitions ─────────────────────────────────────── */ #app { transition: opacity 120ms ease, transform 120ms ease; } #app.transitioning { opacity: 0; transform: translateY(4px); } /* ── Polish: Cmd+K Hint ──────────────────────────────────── */ .cmd-k-hint { display: flex; align-items: center; background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 0.2rem 0.5rem; color: var(--text-dim); font-family: var(--font-mono); font-size: 0.7rem; cursor: pointer; transition: all 150ms; } .cmd-k-hint:hover { border-color: var(--accent); color: var(--accent); } /* ── Span Waterfall ──────────────────────────────────────── */ .waterfall { overflow-x: auto; } .waterfall-header, .waterfall-row { display: grid; grid-template-columns: 240px 1fr; gap: 0.75rem; align-items: center; padding: 0.4rem 1.25rem; border-bottom: 1px solid var(--border-soft); } .waterfall-header { background: var(--surface-2); font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); } .waterfall-row:hover { background: var(--surface-2); } .waterfall-name-col { display: flex; align-items: center; gap: 0.4rem; min-width: 0; } .waterfall-name { font-size: 0.8rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .waterfall-bar-col { position: relative; } .waterfall-bar-track { position: relative; height: 20px; background: var(--surface-2); border-radius: 3px; } .waterfall-bar { position: absolute; top: 2px; height: 16px; border-radius: 3px; background: var(--accent); opacity: 0.7; display: flex; align-items: center; overflow: hidden; transition: opacity 0.15s; } .waterfall-bar:hover { opacity: 1; } .waterfall-bar.wf-error { background: var(--error); } .waterfall-bar.wf-success { background: var(--success); } .waterfall-bar-label { font-family: var(--font-mono); font-size: 0.6rem; padding: 0 4px; color: #fff; white-space: nowrap; } .waterfall-timescale { position: relative; height: 16px; } .waterfall-timescale span { position: absolute; transform: translateX(-50%); font-family: var(--font-mono); font-size: 0.62rem; color: var(--text-dim); } /* ── Usage Page ──────────────────────────────────────────── */ .usage-summary-tiles { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem; } .usage-section-row { display: flex; gap: 1.25rem; margin-bottom: 1.5rem; flex-wrap: wrap; } .usage-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; flex: 1 1 300px; min-width: 260px; } .usage-7d-tiles { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 0.75rem; } .usage-7d-tile { display: flex; flex-direction: column; gap: 0.2rem; } .usage-7d-label { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); } .usage-7d-tile strong { font-family: var(--font-mono); font-size: 1.1rem; color: var(--text-bright); } .usage-loading { color: var(--text-dim); padding: 2rem; font-size: 0.9rem; } /* ── Settings Page ───────────────────────────────────────── */ .settings-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1.5rem; max-width: 640px; } .settings-section-title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--text-bright); margin-bottom: 0.5rem; } .settings-section-desc { font-size: 0.82rem; color: var(--text-dim); margin-bottom: 1.25rem; line-height: 1.6; } .settings-row { display: flex; flex-direction: column; gap: 0.5rem; } .settings-label { font-size: 0.78rem; font-weight: 600; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; } .settings-input-group { display: flex; align-items: center; gap: 0.75rem; } .settings-input { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); padding: 0.45rem 0.75rem; font-family: var(--font-mono); font-size: 0.88rem; width: 80px; outline: none; } .settings-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); } .settings-input-suffix { font-size: 0.82rem; color: var(--text-dim); } .settings-btn { background: var(--accent-dim); border: 1px solid var(--accent-glow); border-radius: var(--radius); color: var(--accent); font-family: var(--font-body); font-size: 0.82rem; font-weight: 600; padding: 0.45rem 1rem; cursor: pointer; transition: background 0.15s, border-color 0.15s; } .settings-btn:hover { background: rgba(34, 211, 238, 0.15); border-color: var(--accent); } .settings-btn:disabled { opacity: 0.5; cursor: default; } .settings-result { margin-top: 0.75rem; font-size: 0.82rem; } .settings-result-ok { color: var(--success); } /* ── Polish: Focus Rings ─────────────────────────────────── */ a:focus-visible, button:focus-visible, tr.clickable:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius); } /* ── Usage Page: Chart Panel ─────────────────────────────── */ .usage-chart-panel { flex: 2 1 400px; } .usage-fw-panel { flex: 1 1 240px; } .usage-chart-tabs { display: flex; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; } .usage-chart-tab { background: transparent; border: none; border-right: 1px solid var(--border); color: var(--text-dim); font-family: var(--font-body); font-size: 0.72rem; font-weight: 500; padding: 0.3rem 0.7rem; cursor: pointer; transition: background 0.15s, color 0.15s; } .usage-chart-tab:last-child { border-right: none; } .usage-chart-tab:hover { color: var(--text-bright); background: var(--surface-2); } .usage-chart-tab.active { color: var(--accent); background: var(--accent-dim); } /* ── Usage Page: Framework Breakdown ─────────────────────── */ .usage-fw-row { display: flex; flex-direction: column; gap: 0.28rem; padding: 0.65rem 0; border-bottom: 1px solid var(--border-soft); } .usage-fw-row:last-child { border-bottom: none; } .usage-fw-name { display: flex; align-items: center; gap: 0.45rem; font-family: var(--font-mono); font-size: 0.78rem; color: var(--text); } .usage-fw-active-badge { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--success); background: rgba(52, 211, 153, 0.1); border: 1px solid rgba(52, 211, 153, 0.2); border-radius: 999px; padding: 0.1rem 0.45rem; } .usage-fw-stats { display: flex; gap: 0.75rem; font-family: var(--font-mono); font-size: 0.72rem; } .usage-fw-stat { display: flex; gap: 0.28rem; align-items: baseline; color: var(--text); } .usage-fw-stat.error { color: var(--error); } .usage-fw-stat-label { font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-dim); } /* ── Run Detail: Prompt Preview ──────────────────────────── */ .prompt-preview-section { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--purple); border-radius: var(--radius-lg); padding: 0.875rem 1.125rem; margin-bottom: 1.5rem; } .prompt-preview-label { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); margin-bottom: 0.5rem; } .prompt-preview-text { font-family: var(--font-mono); font-size: 0.78rem; color: var(--code-text); white-space: pre-wrap; word-break: break-word; line-height: 1.65; margin: 0; max-height: 180px; overflow-y: auto; } /* ── meta-tile: sub-line ─────────────────────────────────── */ .meta-tile-value.has-errors { color: var(--error); }