voyageai-cli
Version:
CLI for Voyage AI embeddings, reranking, and MongoDB Atlas Vector Search
2,095 lines (2,010 loc) • 968 kB
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>VAI Playground</title>
<link rel="icon" type="image/png" sizes="32x32" href="/icons/dark/32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/icons/dark/16.png">
<style>
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
/* Vai Dark Mode Palette (default) — Teal/Cyan brand */
--bg: #001E2B; /* MDB Black */
--bg-surface: #112733; /* Gray Dark 4 */
--bg-card: #1C2D38; /* Gray Dark 3 */
--bg-input: #112733; /* Gray Dark 4 */
--accent: #00D4AA; /* Teal — interactive elements */
--accent-text: #FFFFFF; /* Bright white — headings/labels in dark mode */
--accent-dim: #009E80; /* Teal Dark */
--accent-glow: rgba(0, 212, 170, 0.10);
--text: #E8EDEB; /* Gray Light 2 */
--text-dim: #C1C7C6; /* Gray Light 1 */
--text-muted: #889397; /* Gray Base */
--border: #3D4F58; /* Gray Dark 2 */
--error: #FF6960; /* Red Light 1 */
--warning: #FFC010; /* Yellow Base */
--success: #00D4AA; /* Teal */
--red: #FF6960; /* Red Light 1 */
--yellow: #FFC010; /* Yellow Base */
--green: #00D4AA; /* Teal */
--blue: #40E0FF; /* Cyan (links) */
--purple: #B45AF2; /* Purple Base */
--green-dark: #00241E; /* Teal Dark 3 */
--radius: 8px;
--font: 'Euclid Circular A', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
--mono: 'Source Code Pro', 'SF Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
}
/* Vai Light Mode Palette — Teal/Cyan brand */
[data-theme="light"] {
--bg: #FFFFFF; /* White */
--bg-surface: #F9FBFA; /* Gray Light 3 */
--bg-card: #FFFFFF; /* White */
--bg-input: #F9FBFA; /* Gray Light 3 */
--accent: #009E80; /* Teal Dark — interactive elements */
--accent-text: #001E2B; /* MDB Black — headings/labels in light mode */
--accent-dim: #007A63; /* Teal Darker */
--accent-glow: rgba(0, 158, 128, 0.08);
--text: #001E2B; /* MDB Black */
--text-dim: #5C6C75; /* Gray Dark 1 */
--text-muted: #889397; /* Gray Base */
--border: #E8EDEB; /* Gray Light 2 */
--error: #DB3030; /* Red Base */
--warning: #944F01; /* Yellow Dark 2 */
--success: #009E80; /* Teal Dark */
--red: #DB3030; /* Red Base */
--yellow: #944F01; /* Yellow Dark 2 */
--green: #009E80; /* Teal Dark */
--blue: #0088CC; /* Cyan Dark (links) */
--purple: #5E0C9E; /* Purple Dark 2 */
--green-dark: #00241E; /* Teal Dark 3 */
}
/* Light mode shadow + card adjustments */
[data-theme="light"] .explore-card,
[data-theme="light"] .card,
[data-theme="light"] .cost-strategy,
[data-theme="light"] .cost-summary-card {
box-shadow: 0 1px 4px rgba(0, 30, 43, 0.08);
}
[data-theme="light"] .explore-card {
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.86)),
radial-gradient(circle at top right, rgba(0, 136, 204, 0.10), transparent 42%),
var(--bg-card);
}
[data-theme="light"] .explore-card::before {
opacity: 0.7;
}
[data-theme="light"] .explore-card::after {
opacity: 0.45;
}
[data-theme="light"] .explore-card:hover {
box-shadow: 0 10px 24px rgba(0, 158, 128, 0.14);
}
[data-theme="light"] .cost-modal,
[data-theme="light"] .explore-modal {
box-shadow: 0 20px 60px rgba(0, 30, 43, 0.2);
}
[data-theme="light"] .cost-modal-overlay,
[data-theme="light"] .explore-modal-overlay {
background: rgba(0, 30, 43, 0.4);
}
[data-theme="light"] .sidebar {
box-shadow: 1px 0 3px rgba(0, 30, 43, 0.06);
}
/* Light mode gradient overrides */
[data-theme="light"] .quant-bar-fill.storage { background: linear-gradient(90deg, #009E80, #00D4AA); }
[data-theme="light"] .quant-bar-fill.latency { background: linear-gradient(90deg, #0088CC, #40E0FF); }
[data-theme="light"] .quant-meter-fill.perfect { background: linear-gradient(90deg, #009E80, #00D4AA); }
[data-theme="light"] .quant-meter-fill.good { background: linear-gradient(90deg, #944F01, #FFC010); }
[data-theme="light"] .quant-meter-fill.degraded { background: linear-gradient(90deg, #DB3030, #FF6960); }
/* Light mode button text */
[data-theme="light"] .btn { color: #FFFFFF; }
[data-theme="light"] .btn:hover { background: #007A63; }
html, body { height: 100%; }
body {
font-family: var(--font);
background: var(--bg);
color: var(--text);
line-height: 1.6;
overflow-x: hidden;
}
/* ── Update banner ── */
.update-banner {
display: none;
align-items: center;
gap: 10px;
padding: 8px 16px;
background: linear-gradient(135deg, rgba(0,158,128,0.12), rgba(4,152,236,0.12));
border-bottom: 1px solid rgba(0,212,170,0.2);
font-size: 13px;
color: var(--text);
flex-shrink: 0;
}
.update-banner.show { display: flex; }
.update-banner-icon { font-size: 16px; }
.update-banner-text { flex: 1; }
.update-banner-text strong { color: var(--accent); }
.update-banner-btn {
background: var(--accent);
color: var(--bg);
border: none;
border-radius: 4px;
padding: 5px 14px;
font-size: 12px;
font-weight: 600;
cursor: pointer;
font-family: var(--font);
transition: opacity 0.15s;
}
.update-banner-btn:hover { opacity: 0.85; }
.update-banner-dismiss {
background: none;
border: none;
color: var(--text-muted);
cursor: pointer;
font-size: 18px;
line-height: 1;
padding: 0 4px;
}
.update-banner-dismiss:hover { color: var(--text); }
.update-progress { display: flex; align-items: center; gap: 8px; flex: 1; }
.update-progress-bar { flex: 1; height: 6px; background: rgba(255,255,255,0.15); border-radius: 3px; overflow: hidden; }
[data-theme="light"] .update-progress-bar { background: rgba(0,0,0,0.1); }
.update-progress-fill { height: 100%; background: var(--accent); border-radius: 3px; transition: width 0.3s ease; width: 0%; }
.update-progress-label { font-size: 12px; font-family: var(--mono); color: var(--accent); min-width: 40px; text-align: right; }
/* ── App Shell: sidebar + content layout ── */
.app-shell {
display: flex;
height: 100vh;
overflow: hidden;
}
/* ── Sidebar ── */
.sidebar {
width: 316px;
min-width: 316px;
background: var(--bg-surface);
border-right: 1px solid var(--border);
display: flex;
flex-direction: column;
overflow: hidden;
z-index: 100;
transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1), min-width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar.collapsed {
width: 72px;
min-width: 72px;
}
.sidebar.collapsed .sidebar-brand-copy,
.sidebar.collapsed .sidebar-panel,
.sidebar.collapsed .status-label,
.sidebar.collapsed .sidebar-bug-label,
.sidebar.collapsed .sidebar-docs-link span,
.sidebar.collapsed #appVersionLabel,
.sidebar.collapsed .theme-toggle,
.sidebar.collapsed .sidebar-search-btn,
.sidebar.collapsed .sidebar-footer > div:last-child { display: none; }
.sidebar.collapsed .sidebar-footer { overflow: hidden; padding: 12px 0 56px; align-items: center; border-top: none; }
.sidebar.collapsed .sidebar-footer > div:first-child { justify-content: center; width: 100%; }
.sidebar.collapsed .sidebar-drag-region { justify-content: center; padding: 0; padding-top: 52px; }
body:not(.is-electron) .sidebar.collapsed .sidebar-drag-region { padding-top: 16px; padding-bottom: 12px; }
/* Sidebar collapse toggle */
.sidebar-collapse-btn,
.sidebar-search-btn {
-webkit-app-region: no-drag;
background: none;
border: none;
cursor: pointer;
color: var(--text-muted);
padding: 4px;
border-radius: 4px;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.15s;
flex-shrink: 0;
font-size: 14px;
line-height: 1;
}
.sidebar-collapse-btn:hover,
.sidebar-search-btn:hover,
.sidebar-brand:hover { color: var(--text); background: rgba(255,255,255,0.06); }
[data-theme="light"] .sidebar-collapse-btn:hover,
[data-theme="light"] .sidebar-search-btn:hover,
[data-theme="light"] .sidebar-brand:hover { background: rgba(0,0,0,0.04); }
.sidebar.collapsed .sidebar-collapse-btn { transform: rotate(180deg); }
/* Sidebar tooltip for collapsed mode */
.sidebar.collapsed .sidebar-rail-btn {
position: relative;
}
.sidebar.collapsed .sidebar-rail-btn::after {
content: attr(data-tooltip);
position: absolute;
left: calc(100% + 8px);
top: 50%;
transform: translateY(-50%);
background: #2d333b;
color: #e6edf3;
font-size: 12px;
padding: 4px 8px;
border-radius: 4px;
white-space: nowrap;
pointer-events: none;
opacity: 0;
transition: opacity 0.15s 0.15s;
z-index: 1000;
}
.sidebar.collapsed .sidebar-rail-btn:hover::after {
opacity: 1;
}
.sidebar-drag-region {
-webkit-app-region: drag;
min-height: 82px;
padding: 0 12px;
padding-top: 52px; /* Clear macOS traffic lights fully */
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
body:not(.is-electron) .sidebar-drag-region {
height: auto;
min-height: auto;
padding-top: 16px;
padding-bottom: 12px;
}
.sidebar-logo {
width: 28px;
height: 28px;
border-radius: 6px;
flex-shrink: 0;
object-fit: contain;
}
.sidebar-brand {
-webkit-app-region: no-drag;
background: none;
border: none;
cursor: pointer;
color: inherit;
padding: 8px 10px;
border-radius: 12px;
display: flex;
align-items: center;
gap: 10px;
flex: 1;
min-width: 0;
transition: background 0.15s ease, color 0.15s ease;
}
.sidebar-brand-copy {
display: flex;
flex-direction: column;
gap: 2px;
min-width: 0;
align-items: flex-start;
}
.sidebar-title {
font-size: 14px;
font-weight: 700;
color: var(--accent-text);
white-space: nowrap;
letter-spacing: -0.2px;
}
.sidebar-subtitle {
font-size: 11px;
color: var(--text-muted);
letter-spacing: 0.02em;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.sidebar-header-actions {
display: flex;
align-items: center;
gap: 6px;
-webkit-app-region: no-drag;
}
.sidebar-nav-shell {
flex: 1;
min-height: 0;
display: flex;
overflow: hidden;
}
.sidebar-rail {
width: 84px;
min-width: 84px;
border-right: 1px solid var(--border);
padding: 10px 8px 12px;
display: flex;
flex-direction: column;
gap: 6px;
overflow-y: auto;
}
.sidebar.collapsed .sidebar-rail {
width: 100%;
min-width: 0;
border-right: none;
padding-inline: 6px;
}
.sidebar-rail-btn {
background: none;
border: 1px solid transparent;
border-radius: 12px;
color: var(--text-muted);
padding: 10px 6px 8px;
min-height: 60px;
display: flex;
flex-direction: column;
align-items: center;
gap: 6px;
cursor: pointer;
transition: all 0.15s ease;
font-family: var(--font);
font-size: 9px;
font-weight: 600;
letter-spacing: 0.02em;
text-transform: uppercase;
}
.sidebar-rail-btn:hover {
color: var(--text);
background: rgba(255,255,255,0.04);
}
.sidebar-rail-btn.active {
color: var(--accent-text);
background: var(--accent-glow);
border-color: rgba(0,212,170,0.14);
}
[data-theme="light"] .sidebar-rail-btn:hover { background: rgba(0,30,43,0.04); }
[data-theme="light"] .sidebar-rail-btn.active { background: rgba(0,158,128,0.08); }
.sidebar-rail-btn-icon {
width: 18px;
height: 18px;
display: flex;
align-items: center;
justify-content: center;
}
.sidebar-rail-btn-icon svg {
width: 16px;
height: 16px;
}
.sidebar-rail-btn-label {
display: block;
width: 100%;
text-align: center;
line-height: 1.1;
white-space: nowrap;
}
.sidebar.collapsed .sidebar-rail-btn {
padding: 10px 0;
min-height: 44px;
}
.sidebar.collapsed .sidebar-rail-btn-label {
display: none;
}
.sidebar-panel {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
}
.sidebar-panel-header {
padding: 14px 16px 12px;
border-bottom: 1px solid var(--border);
}
.sidebar-panel-eyebrow {
font-size: 10px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--text-muted);
margin-bottom: 4px;
}
.sidebar-panel-title {
font-size: 13px;
font-weight: 600;
color: var(--text);
letter-spacing: -0.02em;
}
.sidebar-nav {
flex: 1;
overflow-y: auto;
padding: 10px 8px 12px;
display: flex;
flex-direction: column;
gap: 12px;
}
.sidebar-nav-group {
display: none;
flex-direction: column;
gap: 2px;
}
.sidebar-nav-group.active {
display: flex;
}
.sidebar-nav-section {
font-size: 10px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--text-muted);
padding: 0 8px 8px;
}
.tab-btn {
display: flex;
align-items: center;
gap: 10px;
width: 100%;
background: none;
border: 1px solid transparent;
border-radius: 10px;
color: var(--text-dim);
padding: 10px 12px;
font-size: 13px;
font-weight: 500;
font-family: var(--font);
cursor: pointer;
transition: all 0.15s;
white-space: nowrap;
text-align: left;
position: relative;
}
.tab-btn:hover {
color: var(--text);
background: rgba(255,255,255,0.05);
border-color: rgba(255,255,255,0.05);
}
.tab-btn:hover .tab-btn-icon {
transform: scale(1.1);
}
.tab-btn.active {
color: var(--accent);
background: var(--accent-glow);
border-color: rgba(0,212,170,0.18);
font-weight: 600;
}
.tab-btn-icon {
width: 18px;
height: 18px;
flex-shrink: 0;
transition: transform 0.15s;
display: flex;
align-items: center;
justify-content: center;
}
.tab-btn-icon svg {
width: 16px;
height: 16px;
}
[data-theme="light"] .tab-btn:hover { background: rgba(0,30,43,0.04); border-color: rgba(0,30,43,0.06); }
[data-theme="light"] .tab-btn.active { background: rgba(0,158,128,0.08); }
.sidebar-footer {
padding: 12px 16px;
padding-bottom: 56px; /* Clear the fixed cost status bar */
border-top: 1px solid var(--border);
display: flex;
flex-direction: column;
gap: 8px;
}
.sidebar-controls {
display: flex;
align-items: center;
justify-content: space-between;
}
.theme-toggle {
background: none;
border: 1px solid var(--border);
border-radius: 16px;
padding: 4px 8px;
cursor: pointer;
font-size: 14px;
line-height: 1;
transition: all 0.2s;
display: flex;
align-items: center;
gap: 4px;
}
.theme-toggle:hover {
border-color: var(--accent);
background: var(--accent-glow);
}
.status-dot {
width: 8px; height: 8px;
border-radius: 50%;
background: var(--text-muted);
transition: background 0.3s;
}
.status-dot.connected { background: var(--success); box-shadow: 0 0 8px var(--accent-glow); }
.status-dot.error { background: var(--error); }
.status-label {
font-size: 11px;
color: var(--text-dim);
}
/* ── Content area ── */
.content-area {
flex: 1;
overflow-y: auto;
display: flex;
flex-direction: column;
position: relative;
}
.content-area::after {
content: '';
position: fixed;
bottom: 2rem;
right: 2rem;
width: 200px;
height: 200px;
background-image: url('/icons/watermark.png');
background-size: contain;
background-repeat: no-repeat;
opacity: 0.05;
pointer-events: none;
z-index: -1;
filter: invert(1);
}
[data-theme="light"] .content-area::after {
filter: none;
}
.content-drag-region {
-webkit-app-region: drag;
height: 38px;
min-height: 38px;
flex-shrink: 0;
}
/* Web mode: hide Electron-only elements */
body:not(.is-electron) .content-drag-region { display: none; }
body:not(.is-electron) .update-banner { display: none !important; }
/* Main */
.main { padding: 24px; max-width: 1200px; margin: 0 auto; width: 100%; flex: 1; overflow-y: auto; min-height: 0; }
/* Legacy compat — hide old horizontal bar (replaced by sidebar) */
.nav { display: none; }
.tab-bar-horizontal { display: none; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
/* Shared Components */
.card {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 20px;
margin-bottom: 16px;
}
.card-title {
font-size: 14px;
font-weight: 600;
color: var(--accent-text);
margin-bottom: 12px;
text-transform: uppercase;
letter-spacing: 0.5px;
}
textarea, input[type="text"], input[type="number"] {
width: 100%;
background: var(--bg-input);
border: 1px solid var(--border);
color: var(--text);
padding: 10px 14px;
border-radius: var(--radius);
font-family: var(--mono);
font-size: 13px;
resize: vertical;
transition: border-color 0.2s;
}
textarea:focus, input:focus {
outline: none;
border-color: var(--accent);
box-shadow: 0 0 0 2px var(--accent-glow);
}
select {
background: var(--bg-input);
border: 1px solid var(--border);
color: var(--text);
padding: 8px 12px;
border-radius: var(--radius);
font-size: 13px;
font-family: var(--font);
cursor: pointer;
}
select:focus { outline: none; border-color: var(--accent); }
.btn {
background: var(--accent);
color: var(--green-dark);
border: none;
padding: 10px 24px;
border-radius: var(--radius);
font-size: 14px;
font-weight: 600;
font-family: var(--font);
cursor: pointer;
transition: all 0.2s;
display: inline-flex;
align-items: center;
gap: 8px;
}
.btn:hover { background: #5CE8CC; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-secondary {
background: transparent;
color: var(--accent);
border: 1px solid var(--accent-dim);
}
.btn-secondary:hover { background: var(--accent-glow); }
.btn-small {
padding: 6px 14px;
font-size: 12px;
}
/* Subtabs - segmented control style */
.subtabs {
display: flex;
background: var(--card);
border-radius: var(--radius);
padding: 4px;
gap: 4px;
margin-bottom: 20px;
border: 1px solid var(--accent-dim);
}
.subtab {
flex: 1;
background: transparent;
color: var(--text-secondary);
border: none;
padding: 10px 20px;
border-radius: calc(var(--radius) - 2px);
font-size: 14px;
font-weight: 500;
font-family: var(--font);
cursor: pointer;
transition: all 0.2s;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
}
.subtab:hover {
color: var(--text);
background: rgba(0, 212, 170, 0.05);
}
.subtab.active {
background: var(--accent);
color: var(--green-dark);
font-weight: 600;
}
.subtab svg {
width: 16px;
height: 16px;
}
[data-theme="light"] .subtab.active { color: #FFFFFF; }
.options-row {
display: flex;
gap: 12px;
align-items: center;
flex-wrap: wrap;
margin: 12px 0;
}
.option-group {
display: flex;
flex-direction: column;
gap: 4px;
}
.option-label {
font-size: 11px;
color: var(--text-dim);
text-transform: uppercase;
letter-spacing: 0.5px;
}
.error-msg {
background: rgba(255, 107, 107, 0.1);
border: 1px solid rgba(255, 107, 107, 0.3);
color: var(--error);
padding: 10px 14px;
border-radius: var(--radius);
font-size: 13px;
margin-top: 12px;
display: none;
}
.error-msg.visible { display: block; }
.spinner {
display: inline-block;
width: 16px; height: 16px;
border: 2px solid transparent;
border-top-color: currentColor;
border-radius: 50%;
animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.result-section {
margin-top: 16px;
display: none;
}
.result-section.visible { display: block; }
.stat {
display: inline-flex;
align-items: center;
gap: 6px;
background: var(--bg-input);
padding: 6px 12px;
border-radius: var(--radius);
font-size: 13px;
margin-right: 8px;
margin-bottom: 8px;
}
.stat-label { color: var(--text-dim); }
.stat-value { color: var(--accent-text); font-weight: 600; font-family: var(--mono); }
.vector-preview {
font-family: var(--mono);
font-size: 12px;
color: var(--text-dim);
background: var(--bg-input);
padding: 12px;
border-radius: var(--radius);
overflow-x: auto;
white-space: nowrap;
margin-top: 8px;
}
.heatmap {
height: 24px;
border-radius: 4px;
margin-top: 8px;
overflow: hidden;
display: flex;
}
.heatmap-bar {
flex: 1;
min-width: 1px;
}
/* Compare tab */
.compare-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 16px;
}
.similarity-display {
text-align: center;
padding: 32px 0;
}
.similarity-score {
font-size: 72px;
font-weight: 800;
font-family: var(--mono);
line-height: 1;
}
.similarity-label {
font-size: 14px;
color: var(--text-dim);
margin-top: 8px;
}
.similarity-bar-outer {
width: 100%;
max-width: 400px;
height: 8px;
background: var(--bg-input);
border-radius: 4px;
margin: 16px auto 0;
overflow: hidden;
}
.similarity-bar-inner {
height: 100%;
border-radius: 4px;
transition: width 0.6s ease, background 0.6s ease;
}
.metrics-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 16px;
margin-top: 24px;
}
.metric-card {
background: var(--bg-input);
border: 1px solid var(--border);
border-radius: 10px;
padding: 20px 16px;
text-align: center;
transition: border-color 0.2s;
}
.metric-card.primary {
border-color: var(--accent);
background: var(--accent-glow);
}
.metric-card-value {
font-family: var(--mono);
font-size: 28px;
font-weight: 700;
line-height: 1;
}
.metric-card-name {
font-size: 13px;
font-weight: 600;
color: var(--text);
margin-top: 10px;
}
.metric-card-desc {
font-size: 11px;
color: var(--text-muted);
margin-top: 4px;
line-height: 1.4;
}
.metric-bar {
width: 100%;
height: 6px;
background: var(--bg);
border-radius: 3px;
margin-top: 12px;
overflow: hidden;
}
.metric-bar-fill {
height: 100%;
border-radius: 3px;
transition: width 0.6s ease, background 0.6s ease;
}
.metric-note {
text-align: center;
font-size: 12px;
color: var(--text-muted);
margin-top: 16px;
padding: 10px 16px;
background: var(--bg-input);
border-radius: 8px;
line-height: 1.6;
}
/* Search tab */
.search-results {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 16px;
}
.search-results.single-col {
grid-template-columns: 1fr;
}
.result-item {
display: flex;
gap: 12px;
padding: 12px;
background: var(--bg-input);
border-radius: var(--radius);
margin-bottom: 8px;
border-left: 3px solid var(--border);
transition: border-color 0.3s;
}
.result-item.moved-up { border-left-color: var(--green); }
.result-item.moved-down { border-left-color: var(--red); }
.result-rank {
font-size: 20px;
font-weight: 700;
color: var(--accent-text);
font-family: var(--mono);
min-width: 30px;
}
.result-body { flex: 1; min-width: 0; }
.result-text {
font-size: 13px;
color: var(--text);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.result-score-bar {
height: 4px;
background: var(--bg-surface);
border-radius: 2px;
margin-top: 6px;
overflow: hidden;
}
.result-score-fill {
height: 100%;
border-radius: 2px;
background: var(--accent);
}
.result-score-text {
font-size: 11px;
font-family: var(--mono);
color: var(--text-dim);
margin-top: 4px;
}
.result-movement {
font-size: 11px;
font-family: var(--mono);
margin-top: 2px;
}
/* Explore tab */
.explore-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
gap: 16px;
}
.explore-card {
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
radial-gradient(circle at top right, rgba(64, 224, 255, 0.09), transparent 42%),
var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 20px;
cursor: pointer;
transition: all 0.2s;
position: relative;
overflow: hidden;
isolation: isolate;
}
.explore-card::before {
content: '';
position: absolute;
top: -36px;
right: -28px;
width: 140px;
height: 140px;
border-radius: 50%;
background: radial-gradient(circle, rgba(0, 212, 170, 0.16) 0%, rgba(64, 224, 255, 0.10) 38%, rgba(64, 224, 255, 0) 72%);
opacity: 0.9;
pointer-events: none;
transform: translate3d(0, 0, 0);
transition: transform 0.2s ease, opacity 0.2s ease;
z-index: 0;
}
.explore-card::after {
content: '';
position: absolute;
inset: 0;
border-radius: inherit;
border: 1px solid rgba(64, 224, 255, 0.08);
opacity: 0.8;
pointer-events: none;
z-index: 0;
}
.explore-card > * {
position: relative;
z-index: 1;
}
.explore-card:hover {
border-color: var(--accent);
transform: translateY(-2px);
box-shadow: 0 10px 26px rgba(0, 212, 170, 0.12);
}
.explore-card:hover::before {
transform: translate3d(-6px, 4px, 0) scale(1.05);
opacity: 1;
}
.explore-card:hover::after {
border-color: rgba(64, 224, 255, 0.16);
}
.explore-card.expanded {
border-color: var(--accent);
}
.explore-card-icon {
margin-bottom: 8px;
color: var(--accent, #00D4AA);
opacity: 0.85;
}
.explore-card-title {
font-size: 16px;
font-weight: 600;
color: var(--text);
margin-bottom: 4px;
}
.explore-card-summary {
font-size: 13px;
color: var(--text-dim);
}
.explore-card-content {
display: none;
}
.explore-card-actions {
display: none;
}
/* ── Models Tab ── */
.models-toolbar {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 20px;
flex-wrap: wrap;
}
.models-filter-pills {
display: flex;
gap: 6px;
}
.models-filter-pill {
background: var(--bg-card);
border: 1px solid var(--border);
color: var(--text-dim);
padding: 4px 12px;
border-radius: 20px;
font-size: 12px;
font-family: var(--font);
cursor: pointer;
transition: all 0.15s;
}
.models-filter-pill:hover {
border-color: var(--accent);
color: var(--text);
}
.models-filter-pill.active {
background: rgba(0, 212, 170, 0.12);
border-color: var(--accent);
color: var(--accent);
}
.models-hero {
position: relative;
overflow: hidden;
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
radial-gradient(circle at top right, rgba(64, 224, 255, 0.10), transparent 34%),
linear-gradient(135deg, rgba(0, 212, 170, 0.06), rgba(64, 224, 255, 0.05)),
var(--bg-card);
border: 1px solid rgba(0, 212, 170, 0.2);
margin-bottom: 24px;
isolation: isolate;
}
.models-hero::before {
content: '';
position: absolute;
top: -30px;
right: -30px;
width: 200px;
height: 200px;
border-radius: 50%;
background: radial-gradient(circle, rgba(0, 212, 170, 0.18) 0%, rgba(64, 224, 255, 0.10) 38%, rgba(64, 224, 255, 0) 72%);
pointer-events: none;
z-index: 0;
}
.models-hero::after {
content: '';
position: absolute;
inset: 0;
border-radius: inherit;
border: 1px solid rgba(64, 224, 255, 0.08);
pointer-events: none;
z-index: 0;
}
.models-hero-content {
position: relative;
z-index: 1;
}
.models-hero-badge {
display: inline-block;
background: linear-gradient(135deg, #00D4AA, #40E0FF);
color: #001E2B;
font-size: 11px;
font-weight: 700;
padding: 3px 10px;
border-radius: 12px;
text-transform: uppercase;
letter-spacing: 0.5px;
margin-bottom: 10px;
}
.models-hero-title {
font-size: 18px;
font-weight: 700;
color: var(--text);
margin-bottom: 8px;
}
.models-hero-desc {
font-size: 13px;
color: var(--text-dim);
line-height: 1.6;
max-width: 700px;
margin-bottom: 14px;
}
.models-hero-models {
display: flex;
gap: 8px;
flex-wrap: wrap;
}
.models-hero-spotlight {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
gap: 16px;
align-items: center;
margin-bottom: 16px;
padding: 16px 18px;
border-radius: 14px;
border: 1px solid rgba(64, 224, 255, 0.16);
background:
linear-gradient(135deg, rgba(64, 224, 255, 0.10), rgba(0, 212, 170, 0.06)),
rgba(0, 30, 43, 0.24);
}
.models-hero-spotlight-badge {
display: inline-flex;
align-items: center;
gap: 6px;
margin-bottom: 8px;
font-size: 11px;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--accent-text);
}
.models-hero-spotlight-title {
font-size: 16px;
font-weight: 700;
color: var(--text);
margin-bottom: 6px;
}
.models-hero-spotlight-copy {
font-size: 13px;
line-height: 1.6;
color: var(--text-dim);
max-width: 720px;
}
.models-hero-spotlight-note {
font-size: 12px;
color: var(--text-muted);
margin-top: 8px;
}
.models-hero-spotlight-actions {
display: flex;
gap: 8px;
flex-wrap: wrap;
justify-content: flex-end;
}
.models-hero-spotlight-link {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 8px 12px;
border-radius: 8px;
border: 1px solid var(--border);
background: rgba(255, 255, 255, 0.02);
color: var(--text);
text-decoration: none;
font-size: 12px;
font-weight: 600;
cursor: pointer;
transition: all 0.15s;
}
.models-hero-spotlight-link:hover {
border-color: var(--accent);
color: var(--accent-text);
background: rgba(0, 212, 170, 0.08);
}
.models-hero-spotlight-link.primary {
background: linear-gradient(135deg, rgba(0, 212, 170, 0.20), rgba(64, 224, 255, 0.12));
border-color: rgba(0, 212, 170, 0.28);
}
[data-theme="light"] .models-hero-spotlight {
background:
linear-gradient(135deg, rgba(0, 136, 204, 0.08), rgba(0, 158, 128, 0.05)),
rgba(255, 255, 255, 0.85);
border-color: rgba(0, 136, 204, 0.16);
}
[data-theme="light"] .models-hero-spotlight-link {
background: rgba(255, 255, 255, 0.7);
}
@media (max-width: 860px) {
.models-hero-spotlight {
grid-template-columns: 1fr;
}
.models-hero-spotlight-actions {
justify-content: flex-start;
}
}
.model-chip {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 6px 12px;
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: 8px;
font-size: 12px;
font-family: var(--mono);
color: var(--text);
cursor: pointer;
transition: all 0.15s;
}
.model-chip:hover {
border-color: var(--accent);
background: rgba(0, 212, 170, 0.06);
}
.model-chip-price {
color: var(--text-muted);
font-size: 11px;
}
.models-group {
margin-bottom: 24px;
}
.models-group-header {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 12px;
}
.models-group-icon {
color: var(--accent);
opacity: 0.8;
}
.models-group-title {
font-size: 15px;
font-weight: 600;
color: var(--text);
}
.models-group-count {
font-size: 11px;
color: var(--text-muted);
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: 10px;
padding: 1px 8px;
}
.models-group-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 14px;
}
.model-card {
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
radial-gradient(circle at top right, rgba(64, 224, 255, 0.08), transparent 38%),
var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 18px;
cursor: default;
transition: all 0.2s;
position: relative;
overflow: hidden;
isolation: isolate;
}
.model-card::before {
content: '';
position: absolute;
top: -34px;
right: -24px;
width: 132px;
height: 132px;
border-radius: 50%;
background: radial-gradient(circle, rgba(0, 212, 170, 0.14) 0%, rgba(64, 224, 255, 0.08) 40%, rgba(64, 224, 255, 0) 72%);
opacity: 0.9;
pointer-events: none;
transition: transform 0.2s ease, opacity 0.2s ease;
z-index: 0;
}
.model-card::after {
content: '';
position: absolute;
inset: 0;
border-radius: inherit;
border: 1px solid rgba(64, 224, 255, 0.06);
pointer-events: none;
z-index: 0;
}
.model-card > * {
position: relative;
z-index: 1;
}
.model-card:hover {
border-color: var(--accent);
transform: translateY(-2px);
box-shadow: 0 10px 26px rgba(0, 212, 170, 0.12);
}
.model-card:hover::before {
transform: translate3d(-6px, 4px, 0) scale(1.04);
opacity: 1;
}
.model-card:hover::after {
border-color: rgba(64, 224, 255, 0.14);
}
.model-card.legacy {
opacity: 0.5;
}
.model-card.legacy:hover {
opacity: 0.7;
}
.model-card-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 6px;
position: relative;
z-index: 1;
}
.model-card-name {
font-size: 15px;
font-weight: 600;
color: var(--text);
font-family: var(--mono);
}
.model-card-type-badge {
font-size: 10px;
padding: 2px 8px;
border-radius: 10px;
text-transform: uppercase;
letter-spacing: 0.3px;
font-weight: 600;
}
.model-card-type-badge.embedding {
background: rgba(0, 212, 170, 0.15);
color: #00D4AA;
}
.model-card-type-badge.reranking {
background: rgba(64, 224, 255, 0.15);
color: #40E0FF;
}
.model-card-type-badge.multimodal {
background: rgba(255, 170, 64, 0.15);
color: #FFAA40;
}
.model-card-shared-badge {
display: inline-flex;
align-items: center;
gap: 4px;
font-size: 10px;
color: var(--blue, #40E0FF);
margin-bottom: 6px;
position: relative;
z-index: 1;
}
.model-card-rteb {
position: absolute;
top: 14px;
right: 14px;
font-size: 11px;
font-weight: 700;
color: var(--accent);
font-family: var(--mono);
z-index: 1;
}
.model-card-desc {
font-size: 13px;
color: var(--text-dim);
margin-bottom: 12px;
position: relative;
z-index: 1;
}
.model-card-specs {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 6px 16px;
font-size: 12px;
position: relative;
z-index: 1;
}
.model-card-spec {
display: flex;
justify-content: space-between;
}
.model-card-spec-label {
color: var(--text-muted);
}
.model-card-spec-value {
color: var(--text);
font-family: var(--mono);
font-weight: 500;
}
.model-card-actions {
display: flex;
gap: 6px;
margin-top: 12px;
position: relative;
z-index: 1;
}
.model-card-action {
font-size: 11px;
padding: 4px 10px;
border-radius: 6px;
border: 1px solid var(--border);
background: transparent;
color: var(--accent);
cursor: pointer;
font-family: var(--font);
transition: all 0.15s;
}
.model-card-action:hover {
background: rgba(0, 212, 170, 0.1);
border-color: var(--accent);
}
.models-rteb-bar {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 8px;
}
.models-rteb-label {
min-width: 160px;
font-size: 13px;
white-space: nowrap;
}
.models-rteb-track {
flex: 1;
height: 24px;
background: var(--bg-surface);
border-radius: 4px;
overflow: hidden;
}
.models-rteb-fill {
height: 100%;
border-radius: 4px;
transition: width 0.6s ease-out;
}
.models-rteb-score {
min-width: 50px;
text-align: right;
font-family: var(--mono);
font-weight: 600;
font-size: 13px;
}
/* ── Model Picker Overlay ── */
.model-picker-overlay {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.6);
backdrop-filter: blur(4px);
z-index: 1001;
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
pointer-events: none;
transition: opacity 0.2s ease;
}
.model-picker-overlay.open {
opacity: 1;
pointer-events: auto;
}
.model-picker {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: 12px;
width: 480px;
max-width: 90vw;
max-height: 70vh;
display: flex;
flex-direction: column;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.model-picker-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 16px 20px 12px;
border-bottom: 1px solid var(--border);
}
.model-picker-title {
font-size: 16px;
font-weight: 600;
color: var(--text);
}
.model-picker-context {
font-size: 12px;
color: var(--text-muted);
margin-top: 2px;
}
.model-picker-close {
background: none;
border: none;
color: var(--text-dim);
font-size: 22px;
cursor: pointer;
padding: 0 4px;
line-height: 1;
}
.model-picker-close:hover {
color: var(--text);
}
.model-picker-search {
padding: 12px 20px;
}
.model-picker-search input {
width: 100%;
background: var(--bg-input, var(--bg-surface));
border: 1px solid var(--border);
color: var(--text);
padding: 8px 12px;
border-radius: var(--radius);
font-size: 13px;
font-family: var(--font);
}
.model-picker-recommendation {
padding: 0 20px 8px;
font-size: 12px;
color: var(--blue, #40E0FF);
display: none;
}
.model-picker-recommendation.visible {
display: block;
}
.model-picker-list {
flex: 1;
overflow-y: auto;
padding: 0 12px 12px;
}
.model-picker-item {
display: flex;
align-items: flex-start;
gap: 12px;
padding: 10px 12px;
border-radius: 8px;
cursor: pointer;
transition: background 0.1s;
border: 1px solid transparent;
}
.model-picker-item:hover,
.model-picker-item:focus {
background: rgba(0, 212, 170, 0.06);
border-color: var(--border);
outline: none;
}
.model-picker-item.selected {
background: rgba(0, 212, 170, 0.1);
border-color: var(--accent);
}
.model-picker-item-radio {
width: 16px;
height: 16px;
border: 2px solid var(--border);
border-radius: 50%;
flex-shrink: 0;
margin-top: 2px;
transition: all 0.15s;
}
.model-picker-item.selected .model-picker-item-radio {
border-color: var(--accent);
background: var(--accent);
box-shadow: inset 0 0 0 3px var(--bg-card);
}
.model-picker-item-info {
flex: 1;
min-width: 0;
}
.model-picker-item-name {
font-size: 13px;
font-weight: 600;
color: var(--text);
font-family: var(--mono);
}
.model-picker-item-meta {
font-size: 11px;
color: var(--text-dim);
margin-top: 2px;
}
.model-picker-item-tags {
display: flex;
gap: 4px;
margin-top: 4px;
flex-wrap: wrap;
}
.model-picker-item-tag {
font-size: 10px;
padding: 1px 6px;
border-radius: 8px;
background: rgba(0, 212, 170, 0.08);
color: var(--accent);
}
.model-picker-item-shared {
font-size: 10px;
padding: 1px 6px;
border-radius: 8px;
background: rgba(64, 224, 255, 0.1);
color: var(--blue, #40E0FF);
}
.model-picker-footer {
padding: 10px 20px;
border-top: 1px solid var(--border);
text-align: center;
font-size: 12px;
}
.model-picker-footer a {
color: var(--accent);
text-decoration: none;
}
.model-picker-footer a:hover {
text-decoration: underline;
}
.model-picker-trigger {
background: transparent;
border: 1px solid var(--border);
color: var(--text-muted);
cursor: pointer;
padding: 4px 6px;
border-radius: 4px;
transition: color 0.15s, background 0.15s, border-color 0.15s;
display: inline-flex;
align-items: center;
vertical-align: middle;
margin-left: 4px;
}
.model-picker-trigger:hover {
color: var(--accent);
background: rgba(0, 212, 170, 0.08);
border-color: var(--accent);
}
[data-theme="light"] .model-card:hover {
box-shadow: 0 10px 22px rgba(0, 0, 0, 0.09);
}
[data-theme="light"] .models-hero {
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.86)),
radial-gradient(circle at top right, rgba(0, 136, 204, 0.10), transparent 34%),
linear-gradient(135deg, rgba(0, 212, 170, 0.06), rgba(64, 224, 255, 0.04)),
var(--bg-card);
}
[data-theme="light"] .models-hero::before,
[data-theme="light"] .model-card::before {
opacity: 0.7;
}
[data-theme="light"] .models-hero::after,
[data-theme="light"] .model-card::after {
border-color: rgba(0, 136, 204, 0.08);
}
[data-theme="light"] .model-card {
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.86)),
radial-gradient(circle at top right, rgba(0, 136, 204, 0.08), transparent 38%),
var(--bg-card);
}
/* Explore modal */
.explore-modal-overlay {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.7);
backdrop-filter: blur(4px);
z-index: 1000;
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
pointer-events: none;
transition: opacity 0.25s ease;
}
.explore-modal-overlay.open {
opacity: 1;
pointer-events: auto;
}
.explore-modal {
background: var(--bg-surface);
border: 1px solid var(--border);
border-radius: 14px;
max-width: 720px;
width: 92%;
max-height: 85vh;
overflow-y: auto;
padding: 0;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
position: relative;
animation: exploreModalIn 0.2s ease-out;
}
@keyframes exploreModalIn {
from { opacity: 0; transform: scale(0.95) translateY(10px); }
to { opacity: 1; transform: scale(1) translateY(0); }
}
.explore-modal::-webkit-scrollbar { width: 6px; }
.explore-modal::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.explore-modal-header {
display: flex;
align-items: center;
gap: 14px;
padding: 24px 28px 16px;
border-bottom: 1px solid var(--border);
}
.explore-modal-heading {
flex: 1;
min-width: 0;
}
.explore-modal-icon { color: var(--accent, #00D4AA); }
.explore-modal-title {
font-size: 18px;
font-weight: 600;
color: var(--text);
}
.explore-modal-summary {
font-size: 13px;
color: var(--text-dim);
margin-top: 2px;
}
.explore-modal-guide {
display: flex;
align-items: center;
gap: 10px;
padding: 10px 12px;
border-radius: 12px;
border: 1px solid rgba(64, 224, 255, 0.14);
background: linear-gradient(135deg, rgba(64, 224, 255, 0.08), rgba(0, 212, 170, 0.05));
min-width: 170px;
}
.explore-modal-guide.is-hidden {
display: none;
}
.explore-modal-robot-sprite {
width: 42px;
height: 42px;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
border-radius: 10px;
background: rgba(0, 30, 43, 0.22);
box-shadow: inset 0 0 0 1px rgba(64, 224, 255, 0.08);
}
.explore-modal-robot-sprite svg {
width: 32px;
height: 32px;
}
.explore-modal-guide-label {
font-size: 11px;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--accent-text);
}
.explore-modal-guide-copy {
font-size: 12px;
line-height: 1.4;
color: var(--text-dim);
margin-top: 2px;
}
.explore-modal-close {
position: absolute;
top: 16px; right: 18px;
background: none;
border: none;
color: var(--text-dim);
font-size: 22px;
cursor: pointer;
padding: 4px 8px;
border-radius: 6px;
transition: all 0.15s;
z-index: 1;
}
.explore-modal-close:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.explore-modal-body {
padding: 20px 28px 24px;
font-size: 14px;
line-height: 1.75;
color: var(--text);
white-space: pre-wrap;
}
.explore-modal-links {
margin-top: 16px;
padding-top: 14px;
border-top: 1px solid var(--border);
}
.explore-modal-links-title {
font-size: 11px;
font-weight: 600;
color: var(--accent-text);
text-transform: uppercase;
letter-spacing: 0.5px;
margin-bottom: 6px;
}
.explore-modal-links a {
display: block;
color: var(--blue);
font-size: 12px;
word-break: break-all;
margin-bottom: 4px;
text-decoration: none;
}
.explore-modal-links a:hover { text-decoration: underline; }
.explore-modal-tryit {
margin-top: 14px;
padding-top: 14px;
border-top: 1px solid var(--border);
}
.explore-modal-tryit-title {
font-size: 11px;
font-weight: 600;
color: var(--accent-text);
text-transform: uppercase;
letter-spacing: 0.5px;
margin-bottom: 8px;
}
.explore-modal-tryit-cmd {
font-family: var(--mono);
font-size: 12px;
color: var(--text-dim);
background: var(--bg);
padding: 6px 10px;
border-radius: 5px;
margin-bottom: 4px;
}
.explore-modal-actions {
display: flex;
gap: 8px;
padding: 0 28px 24px;
}
/* Agent mode info modal */
.agent-info-overlay {
position: fixed; inset: 0;
background: rgba(0, 0, 0, 0.7);
backdrop-filter: blur(4px);
z-index: 1000;
display: flex; align-items: center; justify-content: center;
opacity: 0; pointer-events: none;
transition: opacity 0.25s ease;
}
.agent-info-overlay.open { opacity: 1; pointer-events: auto; }
.agent-info-modal {
background: var(--bg-surface);
border: 1px solid var(--border);
border-radius: 14px;
max-width: 520px; width: 92%;
padding: 28px;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
animation: exploreModalIn 0.2s ease-out;
}
.agent-info-modal h3 {
margin: 0 0 16px; font-size: 16px; color: var(--text);
display: flex; align-items: center; gap: 8px;
}
.agent-info-modal h3 .mode-icon { color: var(--accent); }
.agent-info-modal .mode-compare {
display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px;
}
.agent-info-modal .mode-card {
background: var(--bg-input); border: 1px solid var(--border);
border-radius: 8px; padding: 14px; font-size: 12px;
}
.agent-info-modal .mode-card.active { border-color: var(--accent); }
.agent-info-modal .mode-card h4 {
margin: 0 0 8px; font-size: 13px; color: var(--text);
}
.agent-info-modal .mode-card ul {
margin: 0; padding-left: 16px; color: var(--text-dim); line-height: 1.6;
}
.agent-info-modal .mode-note {
font-size: 12px; color: var(--text-dim); margin-bottom: 18px; line-height: 1.5;
}
.agent-info-modal .mode-actions {
display: flex; align-items: center; justify-content: space-between;
}
.agent-info-modal .mode-dismiss-label {
font-size: 11px; color: var(--text-dim); display: flex; align-items: center; gap: 6px; cursor: pointer;
}
.agent-info-modal .mode-dismiss-label input { accent-color: var(--accent); }
.agent-info-modal .mode-ok-btn {
background: var(--accent); color: #000; border: none;
padding: 8px 24px; border-radius: 6px; font-size: 13px;
font-weight: 600; cursor: pointer; font-family: var(--font);
}
.agent-info-modal .mode-ok-btn:hover { opacity: 0.9; }
/* Benchmark tab */
.bench-panels { display: flex; gap: 8px; margin-bottom: 16px; }
.bench-panel-btn {
background: var(--bg-input);
border: 1px solid var(--border);
color: var(--text-dim);
padding: 8px 18px;
border-radius: var(--radius);
font-size: 13px;
font-family: var(--font);
cursor: pointer;
transition: all 0.2s;
}
.bench-panel-btn:hover { color: var(--text); border-color: var(--text-dim); }
.bench-panel-btn.active { color: var(--accent); border-color: var(--accent); background: var(--accent-glow); }
.bench-view { display: none; }
.bench-view.active { display: block; }
.latency-chart { margin-top: 16px; }
.latency-row {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 12px;
}
.latency-model {
font-family: var(--mono);
font-size: 13px;
min-width: 170px;
color: var(--text);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.latency-bar-outer {
flex: 1;
height: 28px;
background: var(--bg-input);
border-radius: 4px;
overflow: hidden;
position: relative;
}
.latency-bar-inner {
height: 100%;
border-radius: 4px;
transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
display: flex;
align-items: center;
padding: 0 10px;
font-family: var(--mono);
font-size: 12px;
color: var(--green-dark);
font-weight: 600;
white-space: nowrap;
}
.latency-bar-inner.running {
background: var(--border) !important;
width: 100% !important;
animation: pulse-bar 1.2s ease-in-out infinite;
}
@keyframes pulse-bar {
0%, 100% { opacity: 0.3; }
50% { opacity: 0.6; }
}
.latency-stats {
min-width: 90px;
font-family: var(--mono);
font-size: 12px;
color: var(--text-dim);
text-align: right;
}
.latency-badge {
font-size: 14px;
min-width: 20px;
text-align: center;
}
/* Ranking diff */
.rank-comparison { margin-top: 16px; }
.rank-row {
display: grid;
grid-template-columns: 30px 1fr 40px 1fr;
gap: 8px;
align-items: start;
margin-bottom: 8px;
padding: 8px;
background: var(--bg-input);
border-radius: var(--radius);
}
.rank-num {
font-size: 16px;
font-weight: 700;
color: var(--accent-text);
font-family: var(--mono);
text-align: center;
}
.rank-item {
font-size: 13px;
padding: 6px 10px;
border-radius: 4px;
border-left: 3px solid var(--border);
}
.rank-item .rank-score {
font-family: var(--mono);
font-size: 11px;
color: var(--text-dim);
margin-top: 2px;
}
.rank-match { border-left-color: var(--green); }
.rank-differ { border-left-color: var(--yellow); }
.rank-arrow { text-align: center; color: var(--text-muted); font-size: 18px; padding-top: 4px; }
/* Quantization charts */
.quant-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 768px) { .quant-charts { grid-template-columns: 1fr; } }
.quant-bar-group { margin-bottom: 14px; }
.quant-bar-label {
display: flex; justify-content: space-between; align-items: baseline;
margin-bottom: 4px; font-size: 13px;
}
.quant-bar-label .dtype-name { color: var(--accent-text); font-weight: 600; font-family: var(--mono); }
.quant-bar-label .dtype-value { color: var(--text-dim); font-family: var(--mono); font-size: 12px; }
.quant-bar-track {
height: 32px; background: var(--bg-input); border-radius: 6px;
overflow: hidden; position: relative;
}
.quant-bar-fill {
height: 100%; border-radius: 6px;
transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
display: flex; align-items: center; padding: 0 10px;
font-family: var(--mono); font-size: 12px; font-weight: 600;
color: var(--green-dark); white-space: nowrap; min-width: fit-content;
}
.quant-bar-fill.storage { background: linear-gradient(90deg, #00D4AA, #5CE8CC); }
.quant-bar-fill.latency { background: linear-gradient(90deg, #40E0FF, #0088CC); }
.quant-bar-badge {
position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
font-size: 12px; color: var(--text-dim); font-family: var(--mono);
}
.quant-quality-meter { margin-bottom: 14px; }
.quant-meter-header {
display: flex; justify-content: space-between; align-items: center;
margin-bottom: 6px;
}
.quant-meter-header .dtype-name { color: var(--accent-text); font-weight: 600; font-family: var(--mono); font-size: 13px; }
.quant-meter-header .verdict-badge {
font-size: 12px; padding: 2px 8px; border-radius: 10px; font-weight: 600;
}
.quant-meter-header .verdict-badge.perfect { background: rgba(0,212,170,0.15); color: var(--green); }
.quant-meter-header .verdict-badge.good { background: rgba(255,217,61,0.15); color: var(--yellow); }
.quant-meter-header .verdict-badge.degraded { background: rgba(255,107,107,0.15); color: var(--red); }
.quant-meter-track {
height: 10px; background: var(--bg-input); border-radius: 5px; overflow: hidden;
}
.quant-meter-fill {
height: 10