Mission Control demo v2
Polished command-center for FlowMaster with two data modes:
- SNAPSHOT: bundled src/scenarios.json from demo.flow-master.ai
- LIVE: in-browser fetch via src/lib/api.ts (dev-login + bearer)
Scenarios:
- procurement, extra-1, extra-2 (live from EA2)
- ar, hcm, gl, service (industry blueprints, same typed shell)
Honesty pass after Oracle review:
- No invented numbers (Telemetry derives SLA + agent acceptance from real data)
- Preview-only actions fire toasts naming the endpoint to wire them
- Blueprint tours framed as 'industry blueprint', not 'we don't have this yet'
- Mode pill + last-fetch age + refresh in topbar
- Dev CORS dodged via vite proxy; production deploys same-origin
18 vitest tests + 26 playwright smoke assertions + DOM layout audit.
Constraint: cross-origin live mode rejected by browser → fall back to snapshot
Rejected: hardcoded SLA % | dishonest demo metrics
Directive: wire preview-only action handlers to /api/runtime/transactions/{id}/actions to ship them for real
Confidence: high
Scope-risk: narrow
Not-tested: production deployment via flowmaster-ops overlay
This commit is contained in:
+682
@@ -0,0 +1,682 @@
|
||||
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;600&family=Fira+Sans:wght@300;400;500;600;700;800&display=swap');
|
||||
@import 'reactflow/dist/style.css';
|
||||
|
||||
/* =====================================================================
|
||||
FlowMaster Mission Control — design system
|
||||
===================================================================== */
|
||||
:root {
|
||||
/* Surfaces */
|
||||
--bg: #06080f;
|
||||
--bg-deep: #03050b;
|
||||
--surface: #0f1626;
|
||||
--surface-2: #151e33;
|
||||
--surface-3: #1c2742;
|
||||
--border: #243049;
|
||||
--border-strong: #324166;
|
||||
--border-glow: #3b82f644;
|
||||
|
||||
/* Text */
|
||||
--text: #e6edf7;
|
||||
--text-2: #95a3bf;
|
||||
--text-3: #5e6c8a;
|
||||
--text-soft: #c6d2e7;
|
||||
|
||||
/* Brand + state */
|
||||
--primary: #3b82f6;
|
||||
--primary-deep: #1e40af;
|
||||
--primary-soft: rgba(59,130,246,0.18);
|
||||
--accent: #d97706;
|
||||
--ok: #34d399;
|
||||
--run: #3b82f6;
|
||||
--queue: #d97706;
|
||||
--block: #f05252;
|
||||
--idle: #5e6c8a;
|
||||
--syn: #a855f7;
|
||||
|
||||
--ring: #3b82f6;
|
||||
--radius-sm: 6px;
|
||||
--radius: 10px;
|
||||
--radius-lg: 14px;
|
||||
--radius-xl: 22px;
|
||||
|
||||
--mono: 'Fira Code', ui-monospace, monospace;
|
||||
--sans: 'Fira Sans', system-ui, sans-serif;
|
||||
|
||||
--shadow-soft: 0 8px 28px rgba(0,0,0,0.45);
|
||||
--shadow-lift: 0 16px 60px rgba(0,0,0,0.55);
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; }
|
||||
html, body, #root { height: 100%; margin: 0; }
|
||||
body {
|
||||
background: var(--bg);
|
||||
color: var(--text);
|
||||
font-family: var(--sans);
|
||||
font-size: 13.5px;
|
||||
line-height: 1.55;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
overflow: hidden;
|
||||
}
|
||||
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
|
||||
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
|
||||
button:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: 6px; }
|
||||
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: 4px; }
|
||||
kbd { font-family: var(--mono); font-size: 11px; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; border: 1px solid var(--border); color: var(--text-2); }
|
||||
|
||||
/* =====================================================================
|
||||
Shell
|
||||
===================================================================== */
|
||||
.shell { display: grid; grid-template-rows: auto 1fr; height: 100%; min-height: 0; }
|
||||
.shell-landing { grid-template-rows: 1fr; }
|
||||
.scene { min-height: 0; overflow: hidden; }
|
||||
|
||||
/* =====================================================================
|
||||
Topbar
|
||||
===================================================================== */
|
||||
.topbar {
|
||||
display: grid;
|
||||
grid-template-columns: auto auto 1fr auto;
|
||||
align-items: center;
|
||||
gap: 18px;
|
||||
padding: 0 18px;
|
||||
height: 56px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
|
||||
}
|
||||
.brand-lock {
|
||||
display: inline-flex; align-items: center; gap: 9px;
|
||||
font-weight: 700; letter-spacing: 0.2px;
|
||||
}
|
||||
.brand-btn { padding: 4px 6px; border-radius: 8px; }
|
||||
.brand-btn:hover { background: var(--surface-2); }
|
||||
.brand-mark {
|
||||
width: 18px; height: 18px; border-radius: 6px;
|
||||
background:
|
||||
radial-gradient(circle at 30% 30%, rgba(255,255,255,0.4), transparent 60%),
|
||||
linear-gradient(135deg, #3b82f6 0%, #a855f7 100%);
|
||||
box-shadow: 0 0 12px rgba(59,130,246,0.5);
|
||||
}
|
||||
.brand-mark.sm { width: 14px; height: 14px; border-radius: 5px; }
|
||||
.brand-name { font-weight: 800; letter-spacing: -0.2px; }
|
||||
.brand-divider { width: 1px; height: 14px; background: var(--border); }
|
||||
.brand-sub { color: var(--text-2); font-weight: 500; }
|
||||
|
||||
.tabs { display: inline-flex; gap: 4px; background: var(--surface-2); border: 1px solid var(--border); padding: 3px; border-radius: 10px; }
|
||||
.tab {
|
||||
display: inline-flex; align-items: center; gap: 6px;
|
||||
padding: 5px 11px; border-radius: 7px; font-size: 12px;
|
||||
color: var(--text-2); transition: background .18s, color .18s;
|
||||
}
|
||||
.tab:hover { color: var(--text); }
|
||||
.tab-sel { background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--border-strong) inset; }
|
||||
|
||||
.topbar-mid { display: flex; justify-content: flex-start; min-width: 0; }
|
||||
.topbar-context { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; min-width: 0; }
|
||||
.topbar-chip {
|
||||
display: inline-flex; align-items: center; gap: 6px;
|
||||
padding: 3px 9px; border-radius: 999px; font-size: 12px;
|
||||
background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2);
|
||||
max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
|
||||
}
|
||||
|
||||
.topbar-actions { display: inline-flex; gap: 8px; align-items: center; }
|
||||
.link-btn {
|
||||
display: inline-flex; align-items: center; gap: 7px;
|
||||
padding: 5px 10px; border-radius: 8px;
|
||||
border: 1px solid var(--border-strong); background: var(--surface-2);
|
||||
color: var(--text-2); font-size: 12px; transition: border-color .18s, color .18s, background .18s;
|
||||
}
|
||||
.link-btn:hover:not(:disabled) { color: var(--text); border-color: var(--primary); background: var(--surface-3); }
|
||||
.link-btn:disabled { opacity: 0.5; cursor: not-allowed; }
|
||||
|
||||
/* =====================================================================
|
||||
Mission Control scene
|
||||
===================================================================== */
|
||||
.mc { display: grid; grid-template-rows: auto auto 1fr auto; height: 100%; min-height: 0; }
|
||||
.mc-strip {
|
||||
display: flex; gap: 2px; padding: 8px 14px 0;
|
||||
background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
|
||||
border-bottom: 1px solid var(--border);
|
||||
overflow-x: auto;
|
||||
}
|
||||
.mc-tab {
|
||||
display: inline-flex; align-items: center; gap: 8px;
|
||||
padding: 9px 14px; border-radius: 10px 10px 0 0;
|
||||
border: 1px solid transparent; border-bottom: 0;
|
||||
color: var(--text-2); font-weight: 500; white-space: nowrap;
|
||||
transition: background .15s, color .15s;
|
||||
}
|
||||
.mc-tab:hover { background: var(--surface-2); color: var(--text); }
|
||||
.mc-tab-sel {
|
||||
background: var(--bg); color: var(--text);
|
||||
border-color: var(--border);
|
||||
box-shadow: 0 -2px 0 var(--accent, --primary) inset;
|
||||
border-bottom: 1px solid var(--bg);
|
||||
margin-bottom: -1px;
|
||||
}
|
||||
.mc-tab-sel { box-shadow: inset 0 -2px 0 var(--accent); }
|
||||
.mc-tab-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
|
||||
.mc-tab-label { font-size: 13px; }
|
||||
.mc-tab-mark { font-size: 10px; padding: 1px 6px; border-radius: 4px; letter-spacing: 0.4px; text-transform: uppercase; font-weight: 600; }
|
||||
.mc-tab-mark.is-live { background: rgba(52,211,153,0.18); color: var(--ok); border: 1px solid rgba(52,211,153,0.4); }
|
||||
.mc-tab-mark.is-syn { background: rgba(168,85,247,0.16); color: var(--syn); border: 1px solid rgba(168,85,247,0.4); }
|
||||
|
||||
.mc-hero {
|
||||
display: grid; grid-template-columns: 1fr auto;
|
||||
align-items: center; gap: 16px;
|
||||
padding: 16px 22px 12px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
background: var(--bg);
|
||||
}
|
||||
.mc-hero-eyebrow { color: var(--text-3); font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; }
|
||||
.mc-hero-title { margin: 4px 0 2px; font-size: 22px; font-weight: 700; letter-spacing: -0.3px; }
|
||||
.mc-hero-sub { color: var(--text-2); font-size: 13px; }
|
||||
.mc-hero-kpis { display: inline-flex; gap: 8px; }
|
||||
.mc-kpi {
|
||||
background: var(--surface); border: 1px solid var(--border);
|
||||
border-radius: 10px; padding: 8px 14px; min-width: 92px; text-align: right;
|
||||
}
|
||||
.mc-kpi-v { font-size: 18px; font-weight: 700; font-family: var(--mono); }
|
||||
.mc-kpi-l { font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.8px; margin-top: 2px; }
|
||||
|
||||
.mc-body {
|
||||
display: grid;
|
||||
grid-template-columns: 320px 1fr 380px;
|
||||
min-height: 0;
|
||||
}
|
||||
.mc-main { position: relative; min-width: 0; background:
|
||||
radial-gradient(circle at 1px 1px, var(--border) 1px, transparent 0) 0 0 / 28px 28px,
|
||||
var(--bg); }
|
||||
|
||||
/* =====================================================================
|
||||
LeftRail
|
||||
===================================================================== */
|
||||
.left-rail {
|
||||
border-right: 1px solid var(--border);
|
||||
background: var(--bg-deep);
|
||||
overflow-y: auto;
|
||||
min-height: 0;
|
||||
}
|
||||
.panel { padding: 14px; border-bottom: 1px solid var(--border); }
|
||||
.panel-h {
|
||||
margin: 0 0 12px; font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
|
||||
color: var(--text-3); font-weight: 700; display: flex; align-items: center; gap: 7px;
|
||||
}
|
||||
.panel-count { margin-left: auto; color: var(--text-2); background: var(--surface-2); border-radius: 999px; padding: 1px 8px; font-size: 11px; letter-spacing: 0; font-weight: 500; }
|
||||
|
||||
.kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
|
||||
.kpi {
|
||||
background: var(--surface); border: 1px solid var(--border);
|
||||
border-radius: 10px; padding: 10px 12px;
|
||||
}
|
||||
.kpi-v { font-size: 18px; font-weight: 700; font-family: var(--mono); display: inline-flex; align-items: center; gap: 4px; }
|
||||
.kpi-l { font-size: 10.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.7px; margin-top: 2px; }
|
||||
.kpi-t { font-size: 10px; color: var(--text-2); margin-top: 1px; }
|
||||
|
||||
.cards { display: flex; flex-direction: column; gap: 8px; }
|
||||
.qcard {
|
||||
display: block; width: 100%; text-align: left;
|
||||
background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
|
||||
padding: 10px 12px; color: var(--text);
|
||||
transition: border-color .18s, background .18s, transform .18s;
|
||||
}
|
||||
.qcard:hover { border-color: var(--border-strong); background: var(--surface-2); transform: translateY(-1px); }
|
||||
.qcard-sel { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary) inset; }
|
||||
.qcard-title { font-weight: 500; font-size: 13px; }
|
||||
.qcard-meta { display: flex; gap: 10px; align-items: center; margin-top: 6px; color: var(--text-2); font-size: 12px; }
|
||||
.qcard-status.is-err { color: var(--block); }
|
||||
.qcard-age { display: inline-flex; align-items: center; gap: 4px; }
|
||||
|
||||
.agent { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 11px 12px; margin-bottom: 9px; }
|
||||
.agent-row { display: flex; align-items: center; gap: 8px; }
|
||||
.agent-step { color: var(--text-2); font-size: 12px; }
|
||||
.agent-intent { color: var(--text); font-size: 12.5px; margin: 7px 0 10px; }
|
||||
.agent-acts { display: flex; gap: 8px; }
|
||||
|
||||
/* =====================================================================
|
||||
Tag / pill / dot
|
||||
===================================================================== */
|
||||
.tag {
|
||||
display: inline-flex; align-items: center; gap: 5px;
|
||||
font-size: 10.5px; font-weight: 600; padding: 2px 8px;
|
||||
border-radius: 5px; letter-spacing: 0.4px; text-transform: uppercase;
|
||||
}
|
||||
.tag-approval { background: rgba(217,119,6,0.14); color: #f5b755; border: 1px solid rgba(217,119,6,0.3); }
|
||||
.tag-agent { background: rgba(59,130,246,0.14); color: #7eb0ff; border: 1px solid rgba(59,130,246,0.3); }
|
||||
.tag-input { background: rgba(94,108,138,0.16); color: var(--text-2); border: 1px solid var(--border-strong); }
|
||||
.tag-live { background: rgba(52,211,153,0.16); color: var(--ok); border: 1px solid rgba(52,211,153,0.4); }
|
||||
.tag-syn { background: rgba(168,85,247,0.16); color: var(--syn); border: 1px solid rgba(168,85,247,0.4); }
|
||||
|
||||
.pill {
|
||||
display: inline-flex; align-items: center;
|
||||
font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 5px;
|
||||
border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text-2);
|
||||
}
|
||||
.pill-done { background: rgba(52,211,153,0.16); color: var(--ok); border-color: rgba(52,211,153,0.36); }
|
||||
.pill-running { background: rgba(59,130,246,0.16); color: #7eb0ff; border-color: rgba(59,130,246,0.36); }
|
||||
.pill-errored { background: rgba(240,82,82,0.16); color: var(--block); border-color: rgba(240,82,82,0.4); }
|
||||
.pill-queued { background: rgba(217,119,6,0.14); color: #f5b755; border-color: rgba(217,119,6,0.36); }
|
||||
.pill-blocked { background: rgba(240,82,82,0.14); color: var(--block); border-color: rgba(240,82,82,0.4); }
|
||||
.pill-idle { background: var(--surface-2); color: var(--text-2); }
|
||||
|
||||
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; }
|
||||
.dot-done { background: var(--ok); }
|
||||
.dot-running { background: var(--run); box-shadow: 0 0 8px var(--run); animation: pulse 1.6s ease-in-out infinite; }
|
||||
.dot-queued { background: var(--queue); }
|
||||
.dot-errored, .dot-blocked { background: var(--block); }
|
||||
.dot-idle { background: var(--idle); }
|
||||
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
|
||||
@media (prefers-reduced-motion: reduce) { .dot-running { animation: none; } * { transition: none !important; animation: none !important; } }
|
||||
|
||||
/* =====================================================================
|
||||
Buttons
|
||||
===================================================================== */
|
||||
.btn {
|
||||
display: inline-flex; align-items: center; justify-content: center; gap: 7px;
|
||||
padding: 7px 11px; border-radius: 8px; font-size: 12px; font-weight: 600;
|
||||
border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text);
|
||||
transition: background .15s, border-color .15s, transform .15s;
|
||||
}
|
||||
.btn:hover:not(:disabled) { border-color: var(--primary); background: var(--surface-3); }
|
||||
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
|
||||
.btn-primary { background: linear-gradient(180deg, #3b82f6, #2563eb); border-color: var(--primary); color: #fff; }
|
||||
.btn-primary:hover:not(:disabled) { background: linear-gradient(180deg, #4d8df8, #2f6cee); }
|
||||
.btn-ghost { background: transparent; }
|
||||
.btn-lg { padding: 11px 18px; font-size: 14px; }
|
||||
|
||||
/* =====================================================================
|
||||
Process graph
|
||||
===================================================================== */
|
||||
.graph-canvas { position: relative; width: 100%; height: 100%; min-height: 0; }
|
||||
.graph-overlay {
|
||||
position: absolute; top: 14px; left: 14px; z-index: 4;
|
||||
background: rgba(15,22,38,0.78); backdrop-filter: blur(8px);
|
||||
border: 1px solid var(--border); border-radius: 10px; padding: 6px 10px;
|
||||
font-size: 12px; color: var(--text-2);
|
||||
}
|
||||
.graph-overlay-row { display: inline-flex; align-items: center; gap: 8px; }
|
||||
.graph-overlay-name { color: var(--text); font-weight: 600; }
|
||||
.graph-overlay-sub { color: var(--text-2); }
|
||||
.graph-overlay-dim { color: var(--text-3); font-family: var(--mono); font-size: 11px; }
|
||||
|
||||
.node {
|
||||
width: 256px; min-width: 256px; max-width: 256px;
|
||||
background: linear-gradient(180deg, rgba(21,30,51,0.92), rgba(15,22,38,0.92));
|
||||
backdrop-filter: blur(6px);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 12px;
|
||||
padding: 10px 12px;
|
||||
color: var(--text);
|
||||
transition: border-color .18s, box-shadow .18s, transform .18s;
|
||||
}
|
||||
.node:hover { border-color: var(--border-strong); }
|
||||
.node-sel { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary) inset, 0 12px 28px rgba(59,130,246,0.22); }
|
||||
.node-row { display: flex; align-items: center; gap: 8px; }
|
||||
.node-name { font-weight: 600; font-size: 13px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.node-meta { display: flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--text-2); font-size: 11px; }
|
||||
.node-kind {
|
||||
font-size: 9.5px; letter-spacing: 0.6px; text-transform: uppercase;
|
||||
border: 1px solid var(--border); border-radius: 4px; padding: 1px 6px; color: var(--text-3);
|
||||
}
|
||||
.node-kind-human { color: #c8b6ff; border-color: rgba(168,85,247,0.4); }
|
||||
.node-kind-agent { color: #7eb0ff; border-color: rgba(59,130,246,0.4); }
|
||||
.node-kind-service { color: #5eead4; border-color: rgba(20,184,166,0.4); }
|
||||
.node-kind-start, .node-kind-end { color: #fef3c7; border-color: rgba(217,119,6,0.4); }
|
||||
.node-owner { color: var(--text-2); }
|
||||
.node-gov { display: inline-flex; align-items: center; gap: 3px; color: #f5b755; }
|
||||
.node-handle { background: var(--border-strong); width: 8px; height: 8px; border: 0; }
|
||||
|
||||
.node-dot { width: 8px; height: 8px; border-radius: 50%; }
|
||||
.node-dot-done { background: var(--ok); }
|
||||
.node-dot-running { background: var(--run); box-shadow: 0 0 8px var(--run); animation: pulse 1.6s ease-in-out infinite; }
|
||||
.node-dot-queued { background: var(--queue); }
|
||||
.node-dot-errored, .node-dot-blocked { background: var(--block); }
|
||||
.node-dot-idle { background: var(--idle); }
|
||||
|
||||
.node-running {
|
||||
box-shadow: 0 0 0 1px var(--run) inset, 0 8px 36px rgba(59,130,246,0.22);
|
||||
border-color: var(--run);
|
||||
}
|
||||
.node-errored {
|
||||
box-shadow: 0 0 0 1px var(--block) inset;
|
||||
border-color: var(--block);
|
||||
}
|
||||
.node-done { opacity: 0.85; }
|
||||
|
||||
/* ReactFlow style overrides */
|
||||
.react-flow__controls { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
|
||||
.react-flow__controls-button { background: var(--surface); border-bottom: 1px solid var(--border); color: var(--text-2); }
|
||||
.react-flow__controls-button:hover { background: var(--surface-2); color: var(--text); }
|
||||
.react-flow__attribution { display: none; }
|
||||
|
||||
/* =====================================================================
|
||||
Inspector
|
||||
===================================================================== */
|
||||
.inspector {
|
||||
border-left: 1px solid var(--border);
|
||||
background: var(--bg-deep);
|
||||
display: flex; flex-direction: column;
|
||||
min-height: 0;
|
||||
}
|
||||
.inspector-head { padding: 14px 14px 10px; border-bottom: 1px solid var(--border); }
|
||||
.inspector-eyebrow { color: var(--text-3); font-size: 10px; text-transform: uppercase; letter-spacing: 1.1px; font-weight: 600; }
|
||||
.inspector-title h3 { margin: 4px 0 6px; font-size: 16px; font-weight: 700; }
|
||||
.inspector-sub { color: var(--text-2); font-size: 12px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
|
||||
.inspector-tabs { display: flex; gap: 3px; margin-top: 12px; background: var(--surface-2); padding: 3px; border-radius: 8px; border: 1px solid var(--border); }
|
||||
.itab {
|
||||
flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 4px;
|
||||
padding: 5px 6px; border-radius: 6px; font-size: 11px;
|
||||
color: var(--text-2); transition: color .15s, background .15s;
|
||||
}
|
||||
.itab:hover { color: var(--text); }
|
||||
.itab-sel { background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--border-strong) inset; }
|
||||
.inspector-body { padding: 12px 14px 18px; overflow-y: auto; flex: 1; min-height: 0; }
|
||||
|
||||
.i-section { display: flex; flex-direction: column; gap: 6px; }
|
||||
.i-field { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
|
||||
.i-field span:first-child { color: var(--text-2); }
|
||||
.i-field span:last-child { text-align: right; }
|
||||
.i-h { margin: 14px 0 6px; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-3); font-weight: 700; }
|
||||
.i-actions { display: flex; gap: 8px; flex-wrap: wrap; }
|
||||
|
||||
.rule { background: var(--surface); border: 1px solid var(--border); border-left: 2px solid var(--accent); border-radius: 8px; padding: 9px 11px; }
|
||||
.rule-head { display: flex; align-items: center; gap: 7px; color: var(--text); font-weight: 600; font-size: 12.5px; }
|
||||
.rule-expr { color: var(--text-2); font-size: 12px; margin-top: 5px; }
|
||||
|
||||
.evt { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); }
|
||||
.evt-ts { color: var(--text-3); font-size: 11px; min-width: 48px; }
|
||||
.evt-who { color: #7eb0ff; font-size: 11px; }
|
||||
.evt-sum { font-size: 12.5px; margin-top: 2px; color: var(--text-soft); }
|
||||
|
||||
.run { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 9px 11px; }
|
||||
.run-head { display: flex; align-items: center; gap: 8px; }
|
||||
.run-step { color: var(--text-2); font-size: 12px; margin-left: auto; }
|
||||
.run-sub { color: var(--text-3); font-size: 11px; margin-top: 4px; }
|
||||
|
||||
.raw-json {
|
||||
margin: 0; padding: 12px; border-radius: 8px;
|
||||
background: var(--surface); border: 1px solid var(--border);
|
||||
color: var(--text-2); font-family: var(--mono); font-size: 11.5px;
|
||||
line-height: 1.5; overflow-x: auto; max-height: 60vh;
|
||||
}
|
||||
.empty { color: var(--text-3); font-size: 12.5px; padding: 18px 2px; text-align: center; }
|
||||
|
||||
/* =====================================================================
|
||||
Telemetry strip
|
||||
===================================================================== */
|
||||
.telemetry {
|
||||
display: flex; align-items: center; gap: 18px;
|
||||
padding: 8px 18px; border-top: 1px solid var(--border);
|
||||
background: linear-gradient(0deg, var(--surface) 0%, var(--bg) 100%);
|
||||
min-height: 44px; font-size: 12px; color: var(--text-2);
|
||||
}
|
||||
.t-block { display: inline-flex; align-items: center; gap: 7px; }
|
||||
.t-eyebrow { color: var(--text-3); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.8px; display: inline-flex; align-items: center; gap: 4px; }
|
||||
.t-v { color: var(--text); font-weight: 600; font-size: 13px; }
|
||||
.t-divider { width: 1px; height: 22px; background: var(--border); }
|
||||
.t-spacer { flex: 1; }
|
||||
.spark { display: block; }
|
||||
.gauge { background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
|
||||
.gauge-fill { height: 100%; transition: width .35s ease; }
|
||||
.t-tick { width: 8px; height: 8px; border-radius: 50%; background: var(--run); box-shadow: 0 0 10px var(--run); animation: pulse 1.6s ease-in-out infinite; }
|
||||
|
||||
/* =====================================================================
|
||||
Command palette
|
||||
===================================================================== */
|
||||
.cmd-overlay {
|
||||
position: fixed; inset: 0; background: rgba(3,5,11,0.6);
|
||||
display: flex; align-items: flex-start; justify-content: center;
|
||||
padding-top: 12vh; z-index: 200;
|
||||
}
|
||||
.cmd {
|
||||
width: min(620px, 92vw);
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border-strong);
|
||||
border-radius: 14px;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 30px 80px rgba(0,0,0,0.7);
|
||||
}
|
||||
.cmd-input-row { display: flex; align-items: center; gap: 9px; padding: 13px 16px; border-bottom: 1px solid var(--border); color: var(--text-2); }
|
||||
.cmd-input-row [cmdk-input] { flex: 1; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 14.5px; font-family: var(--sans); }
|
||||
.kbd-hint { font-size: 10.5px; }
|
||||
.cmd [cmdk-list] { max-height: 380px; overflow: auto; padding: 8px; }
|
||||
.cmd [cmdk-group-heading] { color: var(--text-3); font-size: 10.5px; text-transform: uppercase; letter-spacing: 1px; padding: 8px 10px 4px; font-weight: 700; }
|
||||
.cmd [cmdk-item] { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: var(--text); cursor: pointer; font-size: 13px; }
|
||||
.cmd [cmdk-item][data-selected='true'] { background: var(--surface-2); box-shadow: 0 0 0 1px var(--primary) inset; }
|
||||
.cmd-hint { margin-left: auto; color: var(--text-3); font-size: 11px; }
|
||||
.cmd [cmdk-empty] { padding: 24px; text-align: center; color: var(--text-3); font-size: 13px; }
|
||||
|
||||
/* =====================================================================
|
||||
Tour
|
||||
===================================================================== */
|
||||
.tour-card {
|
||||
position: fixed; z-index: 250;
|
||||
width: min(340px, 92vw);
|
||||
background: linear-gradient(180deg, var(--surface) 0%, var(--bg-deep) 100%);
|
||||
border: 1px solid var(--border-strong);
|
||||
border-radius: 14px;
|
||||
padding: 14px 16px 13px;
|
||||
box-shadow: 0 26px 80px rgba(0,0,0,0.6), 0 0 0 1px var(--border-glow);
|
||||
}
|
||||
.tour-anchor-graph { left: calc(320px + 32px); bottom: 86px; }
|
||||
.tour-anchor-queue { left: 24px; bottom: 86px; }
|
||||
.tour-anchor-inspector { right: 24px; bottom: 86px; }
|
||||
.tour-anchor-topbar { right: 24px; top: 76px; }
|
||||
.tour-anchor-command { right: 24px; top: 76px; }
|
||||
.tour-anchor-telemetry { left: 50%; transform: translateX(-50%); bottom: 64px; }
|
||||
|
||||
.tour-head { display: flex; align-items: center; gap: 7px; color: var(--text-2); }
|
||||
.tour-eyebrow { color: var(--text-3); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
|
||||
.tour-close { margin-left: auto; padding: 4px; border-radius: 6px; color: var(--text-3); transition: color .15s, background .15s; }
|
||||
.tour-close:hover { color: var(--text); background: var(--surface-2); }
|
||||
.tour-title { margin: 8px 0 6px; font-size: 16px; font-weight: 700; letter-spacing: -0.2px; }
|
||||
.tour-body { color: var(--text-2); font-size: 13px; margin: 0 0 12px; }
|
||||
.tour-actions { display: flex; gap: 8px; }
|
||||
.tour-actions .btn { flex: 1; }
|
||||
|
||||
/* =====================================================================
|
||||
Landing
|
||||
===================================================================== */
|
||||
.landing { position: relative; height: 100%; min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; overflow-y: auto; }
|
||||
.landing-bg {
|
||||
position: absolute; inset: 0;
|
||||
background:
|
||||
radial-gradient(circle at 12% 18%, rgba(59,130,246,0.22) 0%, transparent 40%),
|
||||
radial-gradient(circle at 86% 76%, rgba(168,85,247,0.18) 0%, transparent 45%),
|
||||
radial-gradient(circle at 60% 5%, rgba(20,184,166,0.10) 0%, transparent 35%),
|
||||
var(--bg);
|
||||
z-index: 0;
|
||||
}
|
||||
.landing-grid {
|
||||
position: absolute; inset: 0; z-index: 0;
|
||||
background:
|
||||
linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px) 0 0/72px 72px,
|
||||
linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px) 0 0/72px 72px;
|
||||
mask-image: radial-gradient(circle at 50% 40%, black 0%, transparent 70%);
|
||||
}
|
||||
.landing-top {
|
||||
position: relative; z-index: 2;
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
padding: 22px 32px;
|
||||
}
|
||||
.landing-main {
|
||||
position: relative; z-index: 1;
|
||||
padding: 30px 32px 60px;
|
||||
max-width: 1200px; margin: 0 auto; width: 100%;
|
||||
display: grid; gap: 36px;
|
||||
}
|
||||
.landing-hero { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
|
||||
.hero-eyebrow {
|
||||
display: inline-flex; align-items: center; gap: 7px;
|
||||
font-size: 11.5px; color: var(--text-2); padding: 5px 10px; border-radius: 999px;
|
||||
border: 1px solid var(--border-strong); background: rgba(15,22,38,0.6); backdrop-filter: blur(6px);
|
||||
width: max-content;
|
||||
}
|
||||
.hero-title {
|
||||
font-size: clamp(38px, 5vw, 60px);
|
||||
line-height: 1.05;
|
||||
margin: 4px 0 2px;
|
||||
font-weight: 800;
|
||||
letter-spacing: -1.4px;
|
||||
}
|
||||
.hl {
|
||||
background: linear-gradient(90deg, #7eb0ff 0%, #c8b6ff 60%, #5eead4 100%);
|
||||
-webkit-background-clip: text;
|
||||
background-clip: text;
|
||||
color: transparent;
|
||||
}
|
||||
.hero-sub { color: var(--text-2); font-size: 16.5px; max-width: 640px; }
|
||||
.hero-actions { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
|
||||
.hero-stats {
|
||||
display: flex; gap: 22px; margin-top: 18px; padding-top: 18px;
|
||||
border-top: 1px solid var(--border);
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.stat { display: inline-flex; align-items: baseline; gap: 7px; }
|
||||
.stat-v { font-size: 22px; font-weight: 700; }
|
||||
.stat-l { color: var(--text-3); font-size: 12px; text-transform: uppercase; letter-spacing: 0.8px; }
|
||||
|
||||
.landing-cards {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
|
||||
gap: 14px;
|
||||
}
|
||||
.sc-card {
|
||||
display: flex; flex-direction: column; gap: 6px; text-align: left;
|
||||
background: linear-gradient(180deg, rgba(21,30,51,0.86), rgba(15,22,38,0.86));
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 14px;
|
||||
padding: 16px 16px 14px;
|
||||
color: var(--text);
|
||||
position: relative;
|
||||
transition: transform .18s, border-color .18s, box-shadow .18s;
|
||||
overflow: hidden;
|
||||
}
|
||||
.sc-card::before {
|
||||
content: ""; position: absolute; inset: 0;
|
||||
background: radial-gradient(circle at 0 0, var(--sc-accent, var(--primary)) 0%, transparent 60%);
|
||||
opacity: 0.08; pointer-events: none;
|
||||
}
|
||||
.sc-card:hover { transform: translateY(-3px); border-color: var(--sc-accent, var(--primary)); box-shadow: 0 18px 50px rgba(0,0,0,0.45); }
|
||||
.sc-card-top { display: flex; align-items: center; gap: 8px; }
|
||||
.sc-card-mark { width: 16px; height: 16px; border-radius: 5px; background: var(--sc-accent, var(--primary)); box-shadow: 0 0 14px var(--sc-accent, var(--primary)); }
|
||||
.sc-card-title { margin: 4px 0 2px; font-size: 17px; font-weight: 700; letter-spacing: -0.2px; }
|
||||
.sc-card-sub { color: var(--text-2); font-size: 12.5px; margin: 0 0 10px; }
|
||||
.sc-card-meta { color: var(--text-3); font-size: 11.5px; display: inline-flex; gap: 6px; }
|
||||
.sc-card-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--sc-accent, var(--primary)); font-weight: 600; font-size: 12px; }
|
||||
|
||||
.landing-foot { position: relative; z-index: 1; padding: 14px 32px; border-top: 1px solid var(--border); color: var(--text-3); font-size: 11.5px; text-align: center; }
|
||||
.foot-eyebrow { letter-spacing: 0.6px; }
|
||||
|
||||
/* =====================================================================
|
||||
RunHistory
|
||||
===================================================================== */
|
||||
.rh { height: 100%; display: flex; flex-direction: column; min-height: 0; }
|
||||
.rh-head { display: flex; align-items: end; justify-content: space-between; padding: 18px 24px; gap: 12px; border-bottom: 1px solid var(--border); background: var(--bg); }
|
||||
.rh-filters { display: inline-flex; gap: 6px; }
|
||||
.rh-chip {
|
||||
padding: 5px 11px; border-radius: 999px; font-size: 12px;
|
||||
border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text-2);
|
||||
text-transform: capitalize;
|
||||
}
|
||||
.rh-chip:hover { color: var(--text); border-color: var(--primary); }
|
||||
.rh-chip-sel { background: var(--primary-deep); border-color: var(--primary); color: #fff; }
|
||||
|
||||
.rh-list { overflow-y: auto; padding: 8px 16px 24px; display: flex; flex-direction: column; gap: 4px; }
|
||||
.rh-row {
|
||||
display: grid; grid-template-columns: 200px 180px minmax(0, 1.3fr) minmax(160px, 1fr) auto;
|
||||
align-items: center; gap: 14px;
|
||||
padding: 10px 14px; border-radius: 10px;
|
||||
border: 1px solid transparent;
|
||||
font-size: 13px; color: var(--text);
|
||||
}
|
||||
.rh-row:hover { background: var(--surface-2); border-color: var(--border); }
|
||||
.rh-row-id { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
|
||||
.rh-row-id .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
|
||||
.rh-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
|
||||
.rh-row-scenario { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
|
||||
.rh-row-step { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
|
||||
.rh-row-bar { background: var(--surface-2); border-radius: 999px; height: 8px; overflow: hidden; border: 1px solid var(--border); }
|
||||
.rh-bar-fill { height: 100%; transition: width .3s ease; }
|
||||
.rh-row-meta { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); }
|
||||
|
||||
/* Scrollbar */
|
||||
.scene ::-webkit-scrollbar, .left-rail::-webkit-scrollbar, .inspector-body::-webkit-scrollbar, .rh-list::-webkit-scrollbar, .cmd [cmdk-list]::-webkit-scrollbar, .landing::-webkit-scrollbar {
|
||||
width: 8px; height: 8px;
|
||||
}
|
||||
.scene ::-webkit-scrollbar-thumb, .left-rail::-webkit-scrollbar-thumb, .inspector-body::-webkit-scrollbar-thumb, .rh-list::-webkit-scrollbar-thumb, .cmd [cmdk-list]::-webkit-scrollbar-thumb, .landing::-webkit-scrollbar-thumb {
|
||||
background: var(--border-strong); border-radius: 4px;
|
||||
}
|
||||
.scene ::-webkit-scrollbar-track, .left-rail::-webkit-scrollbar-track, .inspector-body::-webkit-scrollbar-track, .rh-list::-webkit-scrollbar-track, .cmd [cmdk-list]::-webkit-scrollbar-track, .landing::-webkit-scrollbar-track {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
/* =====================================================================
|
||||
Live-mode pill / toggle / banners (added in v2 honesty pass)
|
||||
===================================================================== */
|
||||
.mode-pill {
|
||||
display: inline-flex; align-items: center;
|
||||
font-size: 10px; font-weight: 700; letter-spacing: 0.8px;
|
||||
padding: 2px 8px; border-radius: 5px; text-transform: uppercase;
|
||||
}
|
||||
.mode-snapshot { background: rgba(168,85,247,0.16); color: var(--syn); border: 1px solid rgba(168,85,247,0.4); }
|
||||
.mode-live { background: rgba(52,211,153,0.18); color: var(--ok); border: 1px solid rgba(52,211,153,0.45); }
|
||||
|
||||
.mode-toggle { gap: 8px; }
|
||||
.mode-toggle.mode-live { border-color: rgba(52,211,153,0.45); }
|
||||
.topbar-age { font-family: var(--mono); font-size: 10.5px; color: var(--text-3); margin-left: 2px; }
|
||||
|
||||
.spin {
|
||||
width: 12px; height: 12px; border-radius: 50%;
|
||||
border: 2px solid var(--border-strong); border-top-color: var(--primary);
|
||||
animation: spin 0.8s linear infinite; display: inline-block;
|
||||
}
|
||||
@keyframes spin { to { transform: rotate(360deg); } }
|
||||
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }
|
||||
|
||||
.mc-banner {
|
||||
display: flex; align-items: center; gap: 9px;
|
||||
padding: 8px 18px; font-size: 12.5px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
.mc-banner-info { background: rgba(59,130,246,0.08); color: #7eb0ff; }
|
||||
.mc-banner-err { background: rgba(240,82,82,0.10); color: #ff8a8a; }
|
||||
.mc-banner .mono { font-size: 12px; color: inherit; }
|
||||
|
||||
.preview-marker {
|
||||
display: inline-block;
|
||||
margin-left: 6px; padding: 0 6px;
|
||||
font-size: 9.5px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase;
|
||||
border: 1px solid rgba(168,85,247,0.45); color: var(--syn);
|
||||
background: rgba(168,85,247,0.12);
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.btn-decline { color: #ff9b9b; }
|
||||
.btn-decline:hover:not(:disabled) { border-color: var(--block); }
|
||||
|
||||
.is-on { border-color: var(--ok); color: var(--ok); }
|
||||
|
||||
/* =====================================================================
|
||||
Toaster
|
||||
===================================================================== */
|
||||
.toaster {
|
||||
position: fixed; right: 18px; bottom: 18px; z-index: 300;
|
||||
display: flex; flex-direction: column; gap: 8px;
|
||||
width: min(380px, 92vw); pointer-events: none;
|
||||
}
|
||||
.toast {
|
||||
pointer-events: auto;
|
||||
display: flex; align-items: center; gap: 9px;
|
||||
padding: 10px 12px; border-radius: 10px;
|
||||
background: var(--surface-2); border: 1px solid var(--border-strong);
|
||||
box-shadow: 0 16px 50px rgba(0,0,0,0.45);
|
||||
font-size: 12.5px; color: var(--text);
|
||||
}
|
||||
.toast-msg { flex: 1; line-height: 1.4; }
|
||||
.toast-x { padding: 2px; color: var(--text-3); border-radius: 5px; }
|
||||
.toast-x:hover { color: var(--text); background: var(--surface-3); }
|
||||
.toast-info { border-left: 3px solid var(--primary); }
|
||||
.toast-ok { border-left: 3px solid var(--ok); }
|
||||
.toast-warn { border-left: 3px solid var(--queue); }
|
||||
.toast-err { border-left: 3px solid var(--block); }
|
||||
Reference in New Issue
Block a user