Mentor AMP Frontend commited on
Commit
115273e
·
1 Parent(s): 5865633

Build Volt shell dashboard and model library

Browse files
Files changed (3) hide show
  1. progress.json +52 -0
  2. src/App.tsx +174 -32
  3. src/index.css +34 -11
progress.json ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "project": "Mentor AMP Volt frontend",
3
+ "space": "Samfredoly/jor",
4
+ "lastUpdated": "2026-09-28T17:19:00Z",
5
+ "currentMilestone": "foundation",
6
+ "milestones": [
7
+ {
8
+ "id": "foundation",
9
+ "status": "complete",
10
+ "screens": ["Dashboard", "Models / Model Library", "Models / Model Workspace preview"],
11
+ "implemented": [
12
+ "Shared Volt shell and grouped lifecycle navigation",
13
+ "Persistent model/version/scenario/date context",
14
+ "Responsive desktop workspace layout",
15
+ "Dashboard metrics, investigation, runs, quick actions",
16
+ "Model library filters, summary tiles, model table, hierarchy preview, Mentor hint"
17
+ ],
18
+ "verification": ["TypeScript build", "Vite production build", "Oxlint"],
19
+ "commit": null
20
+ },
21
+ {
22
+ "id": "core-authoring",
23
+ "status": "in_progress",
24
+ "screens": ["Inputs", "Scenarios", "Formulas", "Projections"],
25
+ "planned": [
26
+ "Input Library and Validation Center",
27
+ "Scenario Library and generator architecture",
28
+ "Formula Groups, detail, inheritance, and override compare",
29
+ "Projection Set Library, create/edit, and validation"
30
+ ],
31
+ "commit": null
32
+ },
33
+ {
34
+ "id": "execution-analysis",
35
+ "status": "planned",
36
+ "screens": ["Runs", "Results", "Reports", "Investigate", "Mentor"],
37
+ "planned": [
38
+ "Run Set and Execution Center",
39
+ "Run monitor and recovery",
40
+ "Run history, results explorer, comparison, variance",
41
+ "Report library and attachment flow",
42
+ "Trace Explorer, Scratchpad, Contextual Mentor, Mentor History"
43
+ ],
44
+ "commit": null
45
+ }
46
+ ],
47
+ "architectureNotes": [
48
+ "Projection Set and Run Set remain distinct frontend objects and routes.",
49
+ "Canonical navigation follows the specification: Inputs, Scenarios, Projections, Runs, Results, Reports, Investigate, Mentor.",
50
+ "All data is currently fixture-backed; no backend or compute integration is being added in this frontend-only pass."
51
+ ]
52
+ }
src/App.tsx CHANGED
@@ -1,55 +1,197 @@
1
- import { useState } from 'react'
2
- import { ArrowRight, Bell, CalendarDays, ChevronDown, Code2, Box, FileText, Flag, LayoutDashboard, LineChart, Play, Search, Sparkles, Table2, TrendingUp, Workflow, X, Zap } from 'lucide-react'
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
 
4
- const navItems = [
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  { label: 'Dashboard', icon: LayoutDashboard },
6
- { label: 'Models', icon: Box },
7
- { label: 'Formulas', icon: Workflow },
8
- { label: 'Data & Assumptions', icon: Table2 },
9
- { label: 'Projection Runs', icon: Play },
10
- { label: 'Results', icon: LineChart },
11
- { label: 'Investigate', icon: Search },
 
 
 
 
 
 
 
 
 
 
 
 
12
  ]
 
13
  const runs = [
14
- ['MYGA Base', 'Base scenario', '2026-12-31', 'Today, 9:42 AM', 'pin'],
15
- ['FIA VM-21', 'VM-21 Deterministic', '2026-12-31', 'Yesterday, 4:18 PM', 'file'],
16
- ['RILA Stress', 'Low Interest Rate', '2026-12-31', 'Yesterday, 3:55 PM', 'file'],
17
- ['MYGA Base', 'High interest', '2026-12-31', 'Jan 12, 2025', 'file'],
18
- ['FIA VM-21', 'High Volatility', '2025-09-30', 'Jan 6, 2025', 'file'],
19
  ]
 
20
  const investigations = [
21
  ['Why did net reserve change?', 'MYGA Base', 'Base scenario', '2026-12-31 vs 2025-12-31', '2h ago'],
22
  ['What drives DAC unlock in year 7?', 'FIA VM-21', 'VM-21 Deterministic', '2026-12-31', '1d ago'],
23
  ['Impact of rate shock on surrender?', 'MYGA Base', 'Low Interest Rate', '2026-12-31', '3d ago'],
24
  ]
25
 
26
- function Logo() { return <div className="flex items-center gap-3 px-7 pt-8 text-[20px] font-semibold tracking-[-0.03em] text-white"><span className="brand-mark" aria-hidden="true"><i /><i /><i /></span><span>Mentor AMP</span></div> }
27
- function IconBubble({ children, dark = false, lime = false }: { children: React.ReactNode; dark?: boolean; lime?: boolean }) { return <span className={`icon-bubble ${dark ? 'icon-bubble-dark' : ''} ${lime ? 'icon-bubble-lime' : ''}`}>{children}</span> }
 
 
 
 
 
 
 
 
 
 
28
 
29
  function App() {
30
  const [active, setActive] = useState('Dashboard')
31
  const [toast, setToast] = useState('')
32
  const notify = (message: string) => { setToast(message); window.setTimeout(() => setToast(''), 2600) }
33
- return <div className="min-h-screen bg-[#fafbfc] text-[#0d1831]">
34
- <aside className="sidebar fixed inset-y-0 left-0 z-20 flex w-[246px] flex-col bg-[#080b0c] text-white">
 
 
 
 
 
 
35
  <Logo />
36
- <nav className="mt-9 space-y-2 px-5" aria-label="Primary navigation">{navItems.map(({ label, icon: Icon }) => { const selected = active === label; return <button key={label} onClick={() => { setActive(label); if (label !== 'Dashboard') notify(`${label} is ready for review`) }} className={`nav-item ${selected ? 'nav-item-active' : ''}`}><Icon size={27} strokeWidth={1.7} /><span>{label}</span></button> })}</nav>
37
- <div className="mt-auto px-5 pb-6"><button onClick={() => notify('All systems are operational')} className="status-card group text-left"><span className="flex items-center gap-3"><span className="status-check"><span /></span><span className="text-[14px] font-semibold">System status</span><ArrowRight size={18} className="ml-auto transition-transform group-hover:translate-x-1" /></span><span className="mt-3 block text-[12px] text-white/90">All systems operational</span><span className="mt-1 block text-[12px] text-white/90">Updated just now</span></button></div>
 
 
 
 
 
 
 
 
 
 
 
 
38
  </aside>
39
- <main className="ml-[246px] min-h-screen px-6 pb-6 pt-8">
40
- <header className="flex items-center justify-between"><div className="context-pill flex min-w-0 items-center gap-4 px-4 py-3 text-[13px] font-medium text-[#14223b]"><span>MYGA</span><b>•</b><span>Model v3.2</span><b>•</b><span>Q4-2024 GAAP Reserve — MYGA Base</span><b>•</b><span>Base scenario</span><b>•</b><span className="flex items-center gap-2"><CalendarDays size={19} />2026-12-31</span></div><div className="ml-4 flex shrink-0 items-center gap-5"><button className="icon-button relative" aria-label="Notifications" onClick={() => notify('No new notifications')}><Bell size={23} strokeWidth={1.8} /><span className="notification-dot" /></button><button className="avatar" aria-label="Open profile" onClick={() => notify('Profile menu opened')}>AJ</button><div className="hidden text-left xl:block"><div className="text-[13px] font-semibold">Andrew Johnson</div><div className="text-[12px] text-[#7c8290]">Actuary</div></div><button onClick={() => notify('Profile menu opened')} aria-label="Profile menu"><ChevronDown size={18} /></button></div></header>
41
- <section className="mt-7 -mx-6 px-3 grid grid-cols-12 gap-3" aria-label="Dashboard metrics"><MetricCard icon={<Box size={25} />} label="Active models" value="12" sub="As of 2026-12-31" /><MetricCard icon={<Play size={25} />} label="Runs this week" value="28" sub="vs last week 23 (+21.7%)" /><MetricCard icon={<Search size={25} />} label="Investigations" value="6" sub="3 pinned" /><MetricCard light icon={<span className="stack-icon"><span /><span /><span /></span>} label="Net reserve" value="$2.0B" sub="As of 2026-12-31" secondary="Base scenario" /><div className="investigation-hero col-span-4 flex min-h-[204px] flex-col justify-between rounded-[10px] p-5"><div className="flex items-start gap-4"><IconBubble dark><Flag size={22} fill="white" /></IconBubble><div><div className="text-[14px] font-medium">Continue investigation</div><h2 className="mt-1 max-w-[200px] text-[25px] font-bold leading-[1.17] tracking-[-0.04em]">Why did net reserve change?</h2></div></div><div className="flex items-center justify-between"><span className="text-[12px] text-[#4e6d11]">Last viewed 2h ago</span><button className="dark-cta" onClick={() => notify('Investigation resumed')}>Resume <ArrowRight size={18} /></button></div></div></section>
42
- <section className="mt-6 grid grid-cols-12 gap-3"><div className="panel col-span-6 p-4"><div className="flex items-center gap-4 border-b border-[#eef0f3] pb-4"><IconBubble dark><Flag size={22} fill="white" /></IconBubble><div><div className="text-[14px]">Why did net reserve change?</div><h2 className="text-[22px] font-bold tracking-[-0.04em]">Continue investigation</h2></div></div><div className="mt-4 grid grid-cols-[1fr_1fr] gap-6"><div className="border-r border-[#e5e8ec] pr-5"><div className="text-[14px]">Net reserve</div><div className="mt-1 text-[43px] font-bold leading-none tracking-[-0.06em]">+6.99%</div><div className="mt-1 text-[14px]">vs prior period</div></div><div className="space-y-3 text-[13px]"><Driver icon={<TrendingUp size={18} />} label="Primary driver" value="lapse_rate • Year 5 × MYGA-5" /><Driver icon={<FileText size={18} />} label="Source" value="mat-001" /></div></div><div className="mt-5 rounded-[9px] border border-[#e7eaee] px-4 py-3"><div className="text-[12px]">Top driver impact (vs prior period)</div><div className="impact-line mt-3"><span /><span /><span /><span /><span /></div><div className="mt-2 grid grid-cols-5 text-center text-[11px]"><span><b>−120 bps</b><small>Interest rate</small></span><span><b>−45 bps</b><small>Expense load</small></span><span><b>+210 bps</b><small>Lapse rate</small></span><span><b>+35 bps</b><small>Mortality</small></span><span><b>−10 bps</b><small>Other</small></span></div></div><div className="mt-4 flex gap-4"><button className="dark-cta flex-1 justify-center" onClick={() => notify('Investigation resumed')}>Resume investigation <ArrowRight size={18} /></button><button className="outline-cta flex-1 justify-center" onClick={() => notify('Trace opened')}>Trace this result <ArrowRight size={18} /></button></div></div>
43
- <div className="panel col-span-6 p-5"><div className="mb-4 flex items-center justify-between"><h2 className="section-title">Recent projection runs</h2><button className="view-all" onClick={() => notify('Showing all projection runs')}>View all</button></div><div className="run-head grid grid-cols-[1.3fr_1.5fr_1fr_1fr_1fr] px-1"><span>Run name</span><span>Scenario</span><span>As of date</span><span>Status</span><span>Modified</span></div><div>{runs.map(([name, scenario, date, modified, type]) => <button key={`${name}-${scenario}`} onClick={() => notify(`${name} opened`)} className="run-row grid w-full grid-cols-[1.3fr_1.5fr_1fr_1fr_1fr] items-center px-1 text-left"><span className="flex items-center gap-3 font-medium">{type === 'pin' ? <PinIcon /> : <FileText size={17} strokeWidth={1.7} />} {name}</span><span>{scenario}</span><span>{date}</span><span className="flex items-center gap-2"><i className="status-dot" />Completed</span><span>{modified}</span></button>)}</div></div></section>
44
- <section className="mt-4 grid grid-cols-12 gap-3"><div className="panel col-span-6 p-4"><div className="mb-2 flex items-center justify-between"><h2 className="section-title">Recent investigations</h2><button className="view-all" onClick={() => notify('Showing all investigations')}>View all</button></div>{investigations.map(([title, model, scenario, period, time]) => <button onClick={() => notify(`${title} opened`)} key={title} className="investigation-row flex w-full items-center gap-4 border-t border-[#eef0f3] py-3 text-left"><PinIcon /><span className="min-w-0 flex-1"><b className="block truncate text-[13px] font-medium">{title}</b><small className="mt-1 block truncate text-[11px] text-[#747d8f]">{model} <b>•</b> {scenario} <b>•</b> {period}</small></span><span className="text-[12px] text-[#6e7481]">{time}</span><ArrowRight size={20} strokeWidth={1.6} /></button>)}</div><div className="panel col-span-6 p-4"><h2 className="section-title mb-3">Quick actions</h2><div className="grid grid-cols-4 gap-3"><QuickAction icon={<Box size={24} />} label="Open model" text="Open an existing model to review structure and assumptions." lime onClick={() => notify('Model library opened')} /><QuickAction icon={<Play size={24} />} label="Start projection run" text="Run a model to produce reserves and other actuarial results." onClick={() => notify('Projection run setup opened')} /><QuickAction icon={<LineChart size={24} />} label="Trace a result" text="Trace any result and value back to its drivers and assumptions." lime onClick={() => notify('Result trace opened')} /><QuickAction icon={<Code2 size={24} />} label="Try in scratchpad" text="Test ideas and assumptions in a scratch workspace." onClick={() => notify('Scratchpad opened')} /></div></div></section>
45
- <footer className="mt-5 flex items-center justify-between text-[11px] text-[#788193]"><span>All times shown in America / New_York</span><span className="flex items-center gap-2 text-[#6c8d1a]"><span className="shield"><Zap size={11} fill="currentColor" /></span>System status</span></footer>
46
  </main>
47
- {toast && <div className="toast"><Sparkles size={16} />{toast}<button onClick={() => setToast('')}><X size={14} /></button></div>}
48
  </div>
49
  }
50
 
51
- function MetricCard({ icon, label, value, sub, secondary, light = false }: { icon: React.ReactNode; label: string; value: string; sub: string; secondary?: string; light?: boolean }) { return <div className={`metric-card col-span-2 ${light ? 'metric-card-light' : ''}`}><div className="flex items-start justify-between"><IconBubble lime={light}>{icon}</IconBubble><ArrowRight size={25} className="metric-arrow" /></div><div className="mt-3 text-[16px]">{label}</div><div className="mt-1 text-[40px] font-bold leading-none tracking-[-0.06em]">{value}</div><div className="mt-3 text-[13px] opacity-85">{sub}</div>{secondary && <div className="text-[13px] opacity-70">{secondary}</div>}</div> }
52
- function Driver({ icon, label, value }: { icon: React.ReactNode; label: string; value: string }) { return <div className="flex items-center gap-3"><IconBubble dark>{icon}</IconBubble><span><small className="block text-[12px] text-[#667082]">{label}</small><b className="block text-[14px] font-medium">{value}</b></span></div> }
53
- function QuickAction({ icon, label, text, lime, onClick }: { icon: React.ReactNode; label: string; text: string; lime?: boolean; onClick: () => void }) { return <button onClick={onClick} className={`quick-action ${lime ? 'quick-action-lime' : ''}`}><div className="flex items-start justify-between"><IconBubble lime={lime}>{icon}</IconBubble><ArrowRight size={22} /></div><b className="mt-4 block text-left text-[15px]">{label}</b><span className="mt-1 block text-left text-[11px] leading-[1.35]">{text}</span></button> }
54
- function PinIcon() { return <span className="pin-icon"><Flag size={16} fill="currentColor" /></span> }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
55
  export default App
 
1
+ import { useState, type ReactNode } from 'react'
2
+ import {
3
+ Activity,
4
+ ArrowRight,
5
+ Bell,
6
+ Box,
7
+ CalendarDays,
8
+ Check,
9
+ ChevronDown,
10
+ CircleHelp,
11
+ Code2,
12
+ Database,
13
+ FileBarChart,
14
+ FileText,
15
+ Flag,
16
+ Folder,
17
+ GitBranch,
18
+ History,
19
+ LayoutDashboard,
20
+ LineChart,
21
+ LockKeyhole,
22
+ Menu,
23
+ Network,
24
+ Play,
25
+ Plus,
26
+ Search,
27
+ Settings,
28
+ ShieldCheck,
29
+ Sparkles,
30
+ Table2,
31
+ Tags,
32
+ Workflow,
33
+ X,
34
+ } from 'lucide-react'
35
 
36
+ type NavItem = { label: string; icon: typeof LayoutDashboard; group?: string }
37
+
38
+ type Model = {
39
+ name: string
40
+ version: string
41
+ basis: string
42
+ product: string
43
+ status: 'Validated' | 'Needs review' | 'Draft'
44
+ updated: string
45
+ owner: string
46
+ runs: number
47
+ }
48
+
49
+ const navItems: NavItem[] = [
50
  { label: 'Dashboard', icon: LayoutDashboard },
51
+ { label: 'Models', icon: Box, group: 'Authoring' },
52
+ { label: 'Inputs', icon: Database, group: 'Authoring' },
53
+ { label: 'Scenarios', icon: Activity, group: 'Authoring' },
54
+ { label: 'Formulas', icon: Workflow, group: 'Authoring' },
55
+ { label: 'Projections', icon: LineChart, group: 'Execution' },
56
+ { label: 'Runs', icon: Play, group: 'Execution' },
57
+ { label: 'Results', icon: Table2, group: 'Analysis' },
58
+ { label: 'Reports', icon: FileBarChart, group: 'Analysis' },
59
+ { label: 'Investigate', icon: Search, group: 'Analysis' },
60
+ { label: 'Mentor', icon: Sparkles, group: 'Analysis' },
61
+ { label: 'Admin / Settings', icon: Settings, group: 'System' },
62
+ ]
63
+
64
+ const models: Model[] = [
65
+ { name: 'MYGA Reserve Model', version: 'v3.2', basis: 'GAAP', product: 'MYGA', status: 'Validated', updated: 'Today, 9:42 AM', owner: 'A. Johnson', runs: 18 },
66
+ { name: 'FIA VM-21 Cohort', version: 'v2.8', basis: 'VM-21', product: 'FIA', status: 'Validated', updated: 'Yesterday, 4:18 PM', owner: 'M. Chen', runs: 12 },
67
+ { name: 'RILA Stress Model', version: 'v1.6', basis: 'GAAP', product: 'RILA', status: 'Needs review', updated: 'Yesterday, 3:55 PM', owner: 'A. Johnson', runs: 8 },
68
+ { name: 'MYGA Pricing Sandbox', version: 'v0.9', basis: 'Pricing', product: 'MYGA', status: 'Draft', updated: 'Jan 12, 2025', owner: 'S. Young', runs: 3 },
69
  ]
70
+
71
  const runs = [
72
+ ['MYGA Base', 'Base scenario', '2026-12-31', 'Today, 9:42 AM'],
73
+ ['FIA VM-21', 'VM-21 Deterministic', '2026-12-31', 'Yesterday, 4:18 PM'],
74
+ ['RILA Stress', 'Low Interest Rate', '2026-12-31', 'Yesterday, 3:55 PM'],
75
+ ['MYGA Base', 'High interest', '2026-12-31', 'Jan 12, 2025'],
 
76
  ]
77
+
78
  const investigations = [
79
  ['Why did net reserve change?', 'MYGA Base', 'Base scenario', '2026-12-31 vs 2025-12-31', '2h ago'],
80
  ['What drives DAC unlock in year 7?', 'FIA VM-21', 'VM-21 Deterministic', '2026-12-31', '1d ago'],
81
  ['Impact of rate shock on surrender?', 'MYGA Base', 'Low Interest Rate', '2026-12-31', '3d ago'],
82
  ]
83
 
84
+ function Logo() {
85
+ return <div className="brand"><span className="brand-mark" aria-hidden="true"><i /><i /><i /></span><span>Mentor AMP</span><em>VOLT</em></div>
86
+ }
87
+
88
+ function IconBubble({ children, dark = false, lime = false }: { children: ReactNode; dark?: boolean; lime?: boolean }) {
89
+ return <span className={`icon-bubble ${dark ? 'icon-bubble-dark' : ''} ${lime ? 'icon-bubble-lime' : ''}`}>{children}</span>
90
+ }
91
+
92
+ function StatusBadge({ status }: { status: Model['status'] | 'Completed' | 'Running' | 'Stale' | 'Locked' | 'Inherited' | 'Overridden' }) {
93
+ const tone = status.toLowerCase().replace(' ', '-')
94
+ return <span className={`status-badge status-${tone}`}><span className="status-dot" />{status}</span>
95
+ }
96
 
97
  function App() {
98
  const [active, setActive] = useState('Dashboard')
99
  const [toast, setToast] = useState('')
100
  const notify = (message: string) => { setToast(message); window.setTimeout(() => setToast(''), 2600) }
101
+
102
+ const selectNav = (label: string) => {
103
+ setActive(label)
104
+ if (label !== 'Dashboard' && label !== 'Models') notify(`${label} workspace opened`)
105
+ }
106
+
107
+ return <div className="app-shell">
108
+ <aside className="sidebar">
109
  <Logo />
110
+ <button className="mobile-menu" aria-label="Open navigation"><Menu size={20} /></button>
111
+ <nav className="primary-nav" aria-label="Primary navigation">
112
+ {navItems.map(({ label, icon: Icon, group }, index) => {
113
+ const previous = navItems[index - 1]?.group
114
+ return <div key={label}>
115
+ {group !== previous && <div className="nav-group-label">{group === 'Authoring' ? 'Build' : group === 'Execution' ? 'Run' : group === 'Analysis' ? 'Understand' : 'Workspace'}</div>}
116
+ <button onClick={() => selectNav(label)} className={`nav-item ${active === label ? 'nav-item-active' : ''}`}><Icon size={18} strokeWidth={1.8} /><span>{label}</span>{label === 'Mentor' && <span className="nav-new">NEW</span>}</button>
117
+ </div>
118
+ })}
119
+ </nav>
120
+ <div className="sidebar-footer">
121
+ <button onClick={() => notify('All systems are operational')} className="status-card"><span className="status-card-head"><span className="status-check"><Check size={13} /></span><span>System status</span><ArrowRight size={16} /></span><span>All systems operational</span><small>Updated just now</small></button>
122
+ <div className="sidebar-meta"><span>Mentor AMP</span><span>Volt 1.0</span></div>
123
+ </div>
124
  </aside>
125
+
126
+ <main className="main-content">
127
+ <header className="topbar"><div className="context-pill"><span>MYGA</span><b>•</b><span>Model v3.2</span><b>•</b><span>Q4-2024 GAAP Reserve — MYGA Base</span><b>•</b><span>Base scenario</span><b>•</b><span className="context-date"><CalendarDays size={15} />2026-12-31</span></div><div className="topbar-actions"><button className="icon-button has-dot" aria-label="Notifications" onClick={() => notify('No new notifications')}><Bell size={19} /></button><button className="avatar" aria-label="Open profile" onClick={() => notify('Profile menu opened')}>AJ</button><div className="profile-name"><strong>Andrew Johnson</strong><small>Actuary</small></div><button className="icon-button" aria-label="Profile menu" onClick={() => notify('Profile menu opened')}><ChevronDown size={16} /></button></div></header>
128
+ <div className="workspace-head"><div><div className="eyebrow">{active === 'Dashboard' ? 'Home' : active}</div><h1>{screenTitle(active)}</h1><p>{screenDescription(active)}</p></div><div className="workspace-actions"><button className="button button-secondary" onClick={() => notify('Search opened')}><Search size={16} />Search</button>{active === 'Models' && <button className="button button-primary" onClick={() => notify('New model flow opened')}><Plus size={16} />New model</button>}</div></div>
129
+ {active === 'Dashboard' && <Dashboard notify={notify} />}
130
+ {active === 'Models' && <ModelsWorkspace notify={notify} />}
131
+ {active !== 'Dashboard' && active !== 'Models' && <ComingSoonWorkspace active={active} notify={notify} />}
132
  </main>
133
+ {toast && <div className="toast"><Sparkles size={16} />{toast}<button aria-label="Dismiss" onClick={() => setToast('')}><X size={14} /></button></div>}
134
  </div>
135
  }
136
 
137
+ function screenTitle(active: string) {
138
+ if (active === 'Dashboard') return 'Dashboard'
139
+ if (active === 'Models') return 'Model Library'
140
+ return active
141
+ }
142
+
143
+ function screenDescription(active: string) {
144
+ if (active === 'Dashboard') return 'A decision-ready view of models, runs, investigations, and system health.'
145
+ if (active === 'Models') return 'Browse model versions, inspect hierarchy, and open the workspace for a model.'
146
+ return `The ${active.toLowerCase()} workspace is connected to the active model context.`
147
+ }
148
+
149
+ function Dashboard({ notify }: { notify: (message: string) => void }) {
150
+ return <>
151
+ <section className="metric-grid" aria-label="Dashboard metrics"><MetricCard icon={<Box size={22} />} label="Active models" value="12" sub="As of 2026-12-31" /><MetricCard icon={<Play size={22} />} label="Runs this week" value="28" sub="vs last week 23 · +21.7%" /><MetricCard icon={<Search size={22} />} label="Investigations" value="6" sub="3 pinned" /><MetricCard light icon={<span className="stack-icon"><span /><span /><span /></span>} label="Net reserve" value="$2.0B" sub="As of 2026-12-31" secondary="Base scenario" /><div className="investigation-hero"><div className="hero-head"><IconBubble dark><Flag size={20} fill="white" /></IconBubble><div><span>Continue investigation</span><h2>Why did net reserve change?</h2></div></div><div className="hero-foot"><small>Last viewed 2h ago</small><button className="dark-cta" onClick={() => notify('Investigation resumed')}>Resume <ArrowRight size={16} /></button></div></div></section>
152
+ <section className="dashboard-grid"><div className="panel investigation-panel"><div className="panel-title-row"><div className="panel-title-with-icon"><IconBubble dark><Flag size={19} fill="white" /></IconBubble><div><span>Why did net reserve change?</span><h2>Continue investigation</h2></div></div><button className="view-all" onClick={() => notify('Investigation opened')}>Open <ArrowRight size={15} /></button></div><div className="investigation-summary"><div className="big-stat"><span>Net reserve</span><strong>+6.99%</strong><small>vs prior period</small></div><div className="drivers"><Driver icon={<LineChart size={16} />} label="Primary driver" value="lapse_rate · Year 5 × MYGA-5" /><Driver icon={<FileText size={16} />} label="Source" value="mat-001" /></div></div><div className="impact-card"><span>Top driver impact <small>(vs prior period)</small></span><div className="impact-line"><i /><i /><i className="impact-positive" /><i /><i /></div><div className="impact-labels"><span><b>−120 bps</b><small>Interest rate</small></span><span><b>−45 bps</b><small>Expense load</small></span><span><b>+210 bps</b><small>Lapse rate</small></span><span><b>+35 bps</b><small>Mortality</small></span><span><b>−10 bps</b><small>Other</small></span></div></div><div className="button-row"><button className="button button-primary dark-button" onClick={() => notify('Investigation resumed')}>Resume investigation <ArrowRight size={15} /></button><button className="button button-secondary" onClick={() => notify('Trace opened')}>Trace this result <ArrowRight size={15} /></button></div></div><RunsPanel notify={notify} /></section>
153
+ <section className="dashboard-grid bottom-grid"><InvestigationsPanel notify={notify} /><QuickActions notify={notify} /></section>
154
+ </>
155
+ }
156
+
157
+ function MetricCard({ icon, label, value, sub, secondary, light = false }: { icon: ReactNode; label: string; value: string; sub: string; secondary?: string; light?: boolean }) {
158
+ return <div className={`metric-card ${light ? 'metric-card-light' : ''}`}><div className="metric-head"><IconBubble lime={light}>{icon}</IconBubble><ArrowRight size={19} className="metric-arrow" /></div><span className="metric-label">{label}</span><strong>{value}</strong><small>{sub}</small>{secondary && <small>{secondary}</small>}</div>
159
+ }
160
+
161
+ function Driver({ icon, label, value }: { icon: ReactNode; label: string; value: string }) { return <div className="driver"><IconBubble dark>{icon}</IconBubble><span><small>{label}</small><b>{value}</b></span></div> }
162
+
163
+ function RunsPanel({ notify }: { notify: (message: string) => void }) {
164
+ return <div className="panel runs-panel"><div className="panel-title-row"><h2 className="section-title">Recent projection runs</h2><button className="view-all" onClick={() => notify('Run history opened')}>View all</button></div><div className="run-head"><span>Run name</span><span>Scenario</span><span>As of date</span><span>Status</span><span>Modified</span></div>{runs.map(([name, scenario, date, modified]) => <button className="run-row" key={`${name}-${scenario}`} onClick={() => notify(`${name} opened`)}><span className="run-name"><Flag size={14} fill="currentColor" />{name}</span><span>{scenario}</span><span>{date}</span><span><StatusBadge status="Completed" /></span><span>{modified}</span></button>)}</div>
165
+ }
166
+
167
+ function InvestigationsPanel({ notify }: { notify: (message: string) => void }) {
168
+ return <div className="panel"><div className="panel-title-row"><h2 className="section-title">Recent investigations</h2><button className="view-all" onClick={() => notify('Investigation history opened')}>View all</button></div>{investigations.map(([title, model, scenario, period, time]) => <button onClick={() => notify(`${title} opened`)} key={title} className="investigation-row"><Flag size={15} fill="currentColor" /><span><b>{title}</b><small>{model} <b>•</b> {scenario} <b>•</b> {period}</small></span><small>{time}</small><ArrowRight size={17} /></button>)}</div>
169
+ }
170
+
171
+ function QuickActions({ notify }: { notify: (message: string) => void }) {
172
+ const actions = [{ icon: <Box size={21} />, label: 'Open model', text: 'Review structure and assumptions.', lime: true, message: 'Model library opened' }, { icon: <Play size={21} />, label: 'Start projection run', text: 'Produce reserves and actuarial results.', message: 'Projection Set flow opened' }, { icon: <LineChart size={21} />, label: 'Trace a result', text: 'Follow a value back to its drivers.', lime: true, message: 'Trace Explorer opened' }, { icon: <Code2 size={21} />, label: 'Try in scratchpad', text: 'Test ideas in a safe workspace.', message: 'Scratchpad opened' }]
173
+ return <div className="panel"><h2 className="section-title">Quick actions</h2><div className="quick-grid">{actions.map(action => <button key={action.label} className={`quick-action ${action.lime ? 'quick-action-lime' : ''}`} onClick={() => notify(action.message)}><span className="quick-action-top"><IconBubble lime={action.lime}>{action.icon}</IconBubble><ArrowRight size={18} /></span><b>{action.label}</b><small>{action.text}</small></button>)}</div></div>
174
+ }
175
+
176
+ function ModelsWorkspace({ notify }: { notify: (message: string) => void }) {
177
+ return <div className="workspace-stack"><div className="filter-bar panel"><div className="search-field"><Search size={16} /><input placeholder="Search models, products, owners..." aria-label="Search models" /></div><button className="filter-chip"><Tags size={14} />All products <ChevronDown size={14} /></button><button className="filter-chip">All statuses <ChevronDown size={14} /></button><span className="filter-count">12 models</span></div><div className="model-summary-grid"><SummaryTile icon={<Box size={18} />} label="Active models" value="12" tone="dark" /><SummaryTile icon={<GitBranch size={18} />} label="Versions needing review" value="4" /><SummaryTile icon={<History size={18} />} label="Recent updates" value="8" /><SummaryTile icon={<ShieldCheck size={18} />} label="Validated" value="9" /></div><div className="panel table-panel"><div className="panel-title-row"><div><h2 className="section-title">Model library</h2><p className="muted">Models are the primary containers for logic, interfaces, inputs, and published outputs.</p></div><button className="view-all" onClick={() => notify('Model filters opened')}>Manage views <ChevronDown size={14} /></button></div><div className="model-table"><div className="model-table-head"><span>Model</span><span>Product</span><span>Basis</span><span>Version</span><span>Owner</span><span>Updated</span><span>Status</span><span /></div>{models.map(model => <button className="model-row" key={model.name} onClick={() => notify(`${model.name} workspace opened`)}><span className="model-name"><span className="model-icon"><Box size={17} /></span><span><b>{model.name}</b><small>{model.runs} recent runs · 3 connected outputs</small></span></span><span>{model.product}</span><span>{model.basis}</span><span><strong>{model.version}</strong></span><span>{model.owner}</span><span>{model.updated}</span><span><StatusBadge status={model.status} /></span><ArrowRight size={17} /></button>)}</div></div><div className="model-detail-grid"><ModelWorkspaceCard notify={notify} /><MentorHint notify={notify} /></div></div>
178
+ }
179
+
180
+ function SummaryTile({ icon, label, value, tone }: { icon: ReactNode; label: string; value: string; tone?: string }) { return <div className={`summary-tile ${tone ? `summary-${tone}` : ''}`}><IconBubble lime={tone !== 'dark'}>{icon}</IconBubble><span>{label}</span><strong>{value}</strong></div> }
181
+
182
+ function ModelWorkspaceCard({ notify }: { notify: (message: string) => void }) {
183
+ return <div className="panel model-workspace-card"><div className="panel-title-row"><div><span className="eyebrow">Selected model</span><h2 className="section-title">MYGA Reserve Model</h2></div><StatusBadge status="Validated" /></div><div className="model-context-grid"><span><small>Version</small><b>v3.2</b></span><span><small>Product</small><b>MYGA</b></span><span><small>Basis</small><b>GAAP</b></span><span><small>Owner</small><b>Andrew Johnson</b></span></div><div className="tree-heading"><span>Model hierarchy</span><button onClick={() => notify('Model structure opened')}>Open workspace <ArrowRight size={15} /></button></div><div className="model-tree"><TreeItem icon={<Folder size={16} />} label="MYGA Reserve Model" active /><TreeItem icon={<Folder size={16} />} label="Base" indent /><TreeItem icon={<Network size={16} />} label="FIA Stat" indent status="Inherited" /><TreeItem icon={<Workflow size={16} />} label="Universal reserve logic" indent status="Shared" /><TreeItem icon={<Code2 size={16} />} label="lapse_rate" indent status="Overridden" /><TreeItem icon={<Database size={16} />} label="Published outputs" indent /></div></div>
184
+ }
185
+
186
+ function TreeItem({ icon, label, indent = false, active = false, status }: { icon: ReactNode; label: string; indent?: boolean; active?: boolean; status?: string }) { return <div className={`tree-item ${indent ? 'tree-indent' : ''} ${active ? 'tree-active' : ''}`}><span>{icon}<b>{label}</b></span>{status && <StatusBadge status={status as 'Inherited' | 'Overridden'} />}</div> }
187
+
188
+ function MentorHint({ notify }: { notify: (message: string) => void }) {
189
+ return <aside className="mentor-hint"><div className="mentor-hint-head"><IconBubble lime><Sparkles size={19} /></IconBubble><div><b>Contextual Mentor</b><small>Available in this workspace</small></div></div><p>“MYGA Reserve Model” has 3 connected published outputs and one formula override that needs review before the next projection.</p><div className="mentor-fact"><Check size={15} /><span><b>Verified model fact</b><small>Source: model v3.2 · Updated 2h ago</small></span></div><button onClick={() => notify('Mentor explanation opened')} className="button button-primary">Explain this model <ArrowRight size={15} /></button></aside>
190
+ }
191
+
192
+ function ComingSoonWorkspace({ active, notify }: { active: string; notify: (message: string) => void }) {
193
+ const iconMap: Record<string, ReactNode> = { Inputs: <Database size={28} />, Scenarios: <Activity size={28} />, Formulas: <Workflow size={28} />, Projections: <LineChart size={28} />, Runs: <Play size={28} />, Results: <Table2 size={28} />, Reports: <FileBarChart size={28} />, Investigate: <Search size={28} />, Mentor: <Sparkles size={28} />, 'Admin / Settings': <Settings size={28} /> }
194
+ return <div className="empty-workspace panel"><div className="empty-icon"><IconBubble lime>{iconMap[active]}</IconBubble></div><span className="eyebrow">Frontend workspace</span><h2>{active}</h2><p>This route is now connected to the Volt shell. The screen is being built from the approved architecture one workflow at a time.</p><div className="empty-actions"><button className="button button-primary" onClick={() => notify(`${active} design work queued`)}><Plus size={16} />Start this workspace</button><button className="button button-secondary" onClick={() => notify('Design reference opened')}><CircleHelp size={16} />View design notes</button></div><div className="empty-progress"><span><Check size={14} />Context persistence</span><span><Check size={14} />Shared shell</span><span><LockKeyhole size={14} />Data wiring later</span></div></div>
195
+ }
196
+
197
  export default App
src/index.css CHANGED
@@ -1,13 +1,36 @@
1
  @import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');
2
  @import 'tailwindcss';
3
- :root { font-family: 'DM Sans', ui-sans-serif, system-ui, sans-serif; color: #0d1831; background: #fafbfc; font-synthesis: none; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
4
- * { box-sizing: border-box; } body { margin: 0; min-width: 1180px; } button { font: inherit; cursor: pointer; }
5
- .brand-mark { display: flex; height: 38px; align-items: center; gap: 4px; }.brand-mark i { display: block; width: 8px; border-radius: 99px; background: #b7fb18; transform: skewY(-8deg); }.brand-mark i:nth-child(1) { height: 26px; }.brand-mark i:nth-child(2) { height: 38px; }.brand-mark i:nth-child(3) { height: 32px; }
6
- .sidebar { background: linear-gradient(180deg, #070a0b 0%, #0b0d0e 77%, #4c8d17 100%); }.nav-item { display: flex; height: 48px; width: 100%; align-items: center; gap: 20px; border-radius: 12px; padding: 0 14px; color: rgba(255,255,255,.86); font-size: 16px; transition: background .18s ease, color .18s ease, transform .18s ease; }.nav-item:hover { background: rgba(255,255,255,.08); transform: translateX(2px); }.nav-item-active { background: #b4fa18; color: #101a08; font-weight: 600; box-shadow: 0 8px 18px rgba(181,250,24,.14); }
7
- .status-card { width: 100%; border: 1px solid rgba(255,255,255,.13); border-radius: 12px; padding: 15px 14px; background: rgba(8,13,13,.5); color: white; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }.status-check { display: grid; height: 23px; width: 23px; place-items: center; border-radius: 50%; background: #b7fa20; }.status-check span { height: 7px; width: 11px; border-bottom: 2px solid #183100; border-left: 2px solid #183100; transform: rotate(-45deg) translate(1px,-1px); }
8
- .context-pill { max-width: calc(100% - 230px); white-space: nowrap; overflow: hidden; border: 1px solid #e4e8ed; border-radius: 25px; background: rgba(255,255,255,.72); box-shadow: 0 1px 2px rgba(20,30,45,.02); }.context-pill span { overflow: hidden; text-overflow: ellipsis; }.context-pill b { color: #172238; }.icon-button { position: relative; color: #101a2f; }.notification-dot { position: absolute; top: 0; right: 0; height: 7px; width: 7px; border-radius: 50%; background: #b7fa20; }.avatar { height: 38px; width: 38px; border-radius: 50%; border: 2px solid #edf0f3; background: linear-gradient(135deg,#ead2b9,#62442e 78%); color: white; font-size: 12px; font-weight: 700; }
9
- .metric-card { min-height: 204px; border-radius: 10px; padding: 16px; color: white; background: radial-gradient(circle at 95% -15%, rgba(173,247,29,.95), transparent 43%), linear-gradient(135deg, #071011 0%, #111a18 100%); box-shadow: 0 2px 4px rgba(10,20,25,.06); }.metric-card-light { color: #0d1831; border: 1px solid #e1e6eb; background: #fff; }.metric-arrow { color: #b4fa18; }.metric-card-light .metric-arrow { color: #0d1831; }.icon-bubble { display: inline-grid; height: 48px; width: 48px; place-items: center; border: 1px solid rgba(19,35,51,.17); border-radius: 50%; color: #0d1831; }.icon-bubble-dark { color: white; border-color: rgba(255,255,255,.38); background: #0a0d0e; }.icon-bubble-lime { border: none; background: #b4fa18; color: #0a1807; }.stack-icon { position: relative; height: 27px; width: 29px; }.stack-icon span { position: absolute; left: 3px; height: 11px; width: 22px; transform: skewY(-28deg); border: 2px solid #6f8e22; border-radius: 2px; }.stack-icon span:nth-child(1) { top: 2px; }.stack-icon span:nth-child(2) { top: 8px; left: 5px; }.stack-icon span:nth-child(3) { top: 14px; left: 7px; }
10
- .investigation-hero { background: #b4fa18; color: #111d0a; }.dark-cta { display: inline-flex; align-items: center; gap: 12px; border-radius: 22px; background: #05090b; color: white; padding: 10px 17px; font-size: 13px; font-weight: 600; transition: transform .16s ease, box-shadow .16s ease; }.dark-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 12px rgba(0,0,0,.15); }.dark-cta:active,.outline-cta:active,.quick-action:active { transform: scale(.98); }.outline-cta { display: inline-flex; align-items: center; gap: 12px; border: 1px solid #e0e5ea; border-radius: 22px; background: white; color: #15213a; padding: 10px 17px; font-size: 13px; font-weight: 600; }
11
- .panel { min-width: 0; border: 1px solid #e5e9ed; border-radius: 10px; background: white; box-shadow: 0 2px 4px rgba(16,31,47,.025); }.section-title { font-size: 20px; font-weight: 600; letter-spacing: -.04em; }.view-all { border: 1px solid #e5e9ee; border-radius: 20px; padding: 8px 15px; color: #12203a; font-size: 12px; font-weight: 600; }.run-head { color: #727c8e; font-size: 11px; }.run-row { min-height: 48px; border-top: 1px solid #eef0f3; color: #3e485c; font-size: 11px; transition: background .16s ease; }.run-row:hover,.investigation-row:hover { background: #f8fbf1; }.status-dot { height: 9px; width: 9px; border-radius: 50%; background: #b4f41d; }.pin-icon { display: inline-grid; height: 19px; width: 19px; place-items: center; color: #0c1830; }
12
- .impact-line { position: relative; display: flex; align-items: center; justify-content: space-between; }.impact-line::before { position: absolute; left: 4px; right: 4px; content: ''; height: 1px; background: #adb6c1; }.impact-line span { z-index: 1; height: 9px; width: 9px; border: 2px solid white; border-radius: 50%; background: #0c1932; box-shadow: 0 0 0 1px #0c1932; }.impact-line span:nth-child(3) { background: #b4fa18; }.investigation-row { transition: background .16s ease; }.quick-action { min-height: 168px; border: 1px solid #e0e6eb; border-radius: 10px; padding: 12px; background: #fff; color: #14203a; transition: transform .18s ease, box-shadow .18s ease; }.quick-action:hover { transform: translateY(-2px); box-shadow: 0 8px 16px rgba(20,34,55,.08); }.quick-action-lime { border-color: #b4fa18; background: #b4fa18; }.toast { position: fixed; right: 24px; bottom: 24px; z-index: 50; display: flex; align-items: center; gap: 10px; border: 1px solid #dce4c5; border-radius: 10px; background: #f4ffd7; color: #26320d; padding: 12px 14px; box-shadow: 0 12px 26px rgba(16,25,28,.14); font-size: 13px; }.toast button { display: grid; place-items: center; margin-left: 6px; }.shield { display: inline-grid; height: 17px; width: 17px; place-items: center; border-radius: 5px 5px 8px 8px; background: #b4fa18; color: #466700; }
13
- @media (max-width: 1350px) { .sidebar { width: 220px; }.nav-item { font-size: 14px; gap: 15px; } main { margin-left: 220px; }.quick-action { min-height: 176px; }.context-pill { font-size: 11px; gap: 10px; } }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  @import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');
2
  @import 'tailwindcss';
3
+
4
+ :root { font-family: 'DM Sans', ui-sans-serif, system-ui, sans-serif; color: #0d1831; background: #f6f8f8; font-synthesis: none; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
5
+ * { box-sizing: border-box; }
6
+ body { margin: 0; min-width: 1120px; }
7
+ button, input { font: inherit; }
8
+ button { cursor: pointer; }
9
+
10
+ .app-shell { min-height: 100vh; background: #f6f8f8; }
11
+ .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; display: flex; width: 248px; flex-direction: column; background: linear-gradient(180deg, #070a0b 0%, #0b0e0f 78%, #345f18 100%); color: white; }
12
+ .brand { display: flex; align-items: center; gap: 10px; padding: 26px 25px 9px; color: #fff; font-size: 19px; font-weight: 700; letter-spacing: -.04em; }
13
+ .brand em { margin-left: auto; border: 1px solid rgba(183,250,24,.35); border-radius: 5px; padding: 3px 5px; color: #b7fa20; font-size: 9px; font-style: normal; letter-spacing: .08em; }
14
+ .brand-mark { display: flex; height: 29px; align-items: center; gap: 3px; }
15
+ .brand-mark i { display: block; width: 7px; border-radius: 99px; background: #b7fb18; transform: skewY(-8deg); }
16
+ .brand-mark i:nth-child(1) { height: 20px; }.brand-mark i:nth-child(2) { height: 29px; }.brand-mark i:nth-child(3) { height: 24px; }
17
+ .mobile-menu { display: none; }
18
+ .primary-nav { margin-top: 19px; padding: 0 15px; overflow: auto; }
19
+ .nav-group-label { margin: 15px 12px 6px; color: rgba(255,255,255,.37); font-size: 9px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
20
+ .nav-item { display: flex; width: 100%; height: 39px; align-items: center; gap: 13px; border: 0; border-radius: 9px; padding: 0 12px; background: transparent; color: rgba(255,255,255,.78); font-size: 13px; text-align: left; transition: background .18s ease, color .18s ease, transform .18s ease; }
21
+ .nav-item:hover { background: rgba(255,255,255,.09); color: white; transform: translateX(2px); }.nav-item-active { background: #b4fa18; color: #101a08; font-weight: 700; box-shadow: 0 8px 18px rgba(181,250,24,.14); }.nav-new { margin-left: auto; color: #437000; font-size: 8px; font-weight: 800; }
22
+ .sidebar-footer { margin-top: auto; padding: 15px; }.status-card { width: 100%; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; padding: 12px; background: rgba(8,13,13,.52); color: white; text-align: left; }.status-card-head { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; }.status-card-head svg:last-child { margin-left: auto; }.status-card > span:not(.status-card-head) { display: block; margin-top: 9px; color: rgba(255,255,255,.75); font-size: 10px; }.status-card small { display: block; margin-top: 3px; color: rgba(255,255,255,.55); font-size: 9px; }.status-check { display: grid; height: 21px; width: 21px; place-items: center; border-radius: 50%; background: #b7fa20; color: #183100; }.sidebar-meta { display: flex; justify-content: space-between; padding: 17px 4px 0; color: rgba(255,255,255,.38); font-size: 9px; }
23
+
24
+ .main-content { min-height: 100vh; margin-left: 248px; padding: 22px 30px 40px; }
25
+ .topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; }.context-pill { display: flex; max-width: calc(100% - 245px); align-items: center; gap: 10px; overflow: hidden; border: 1px solid #e1e7e8; border-radius: 23px; padding: 10px 14px; background: rgba(255,255,255,.78); box-shadow: 0 1px 2px rgba(20,30,45,.02); color: #253249; font-size: 11px; white-space: nowrap; }.context-pill span { overflow: hidden; text-overflow: ellipsis; }.context-pill b { color: #a0aab5; }.context-date { display: flex; flex-shrink: 0; align-items: center; gap: 5px; }.topbar-actions { display: flex; flex-shrink: 0; align-items: center; gap: 11px; }.icon-button { position: relative; display: grid; place-items: center; border: 0; background: transparent; color: #233149; }.has-dot::after { position: absolute; top: 1px; right: 0; height: 6px; width: 6px; border-radius: 50%; background: #b7fa20; content: ''; }.avatar { height: 33px; width: 33px; border: 2px solid #fff; border-radius: 50%; background: linear-gradient(135deg,#ead2b9,#62442e 78%); color: white; font-size: 10px; font-weight: 800; }.profile-name { display: flex; flex-direction: column; }.profile-name strong { font-size: 11px; }.profile-name small { margin-top: 2px; color: #788393; font-size: 10px; }
26
+ .workspace-head { display: flex; align-items: end; justify-content: space-between; gap: 22px; padding: 28px 0 21px; }.eyebrow { color: #7b8792; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }.workspace-head h1 { margin: 5px 0 0; color: #0d1831; font-size: 29px; letter-spacing: -.055em; }.workspace-head p { margin: 5px 0 0; color: #788393; font-size: 12px; }.workspace-actions { display: flex; gap: 9px; }.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 7px; padding: 9px 13px; font-size: 11px; font-weight: 700; }.button-primary { background: #b4fa18; color: #142000; }.button-primary:hover { background: #c3ff43; }.button-secondary { border-color: #dce3e5; background: white; color: #213149; }.button-secondary:hover { background: #f8fbf1; }.dark-button { background: #080c0d; color: white; }.button-row { display: flex; gap: 9px; }
27
+
28
+ .metric-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 11px; }.metric-card, .investigation-hero { min-height: 177px; grid-column: span 2; border-radius: 10px; padding: 15px; box-shadow: 0 2px 4px rgba(10,20,25,.05); }.metric-card { display: flex; flex-direction: column; color: white; background: radial-gradient(circle at 95% -15%, rgba(173,247,29,.95), transparent 43%), linear-gradient(135deg, #071011 0%, #111a18 100%); }.metric-card-light { border: 1px solid #e0e6e7; color: #0d1831; background: white; }.metric-head { display: flex; align-items: start; justify-content: space-between; }.metric-arrow { color: #b4fa18; }.metric-card-light .metric-arrow { color: #0d1831; }.metric-label { margin-top: 15px; font-size: 12px; }.metric-card strong { margin-top: 4px; font-size: 32px; line-height: 1; letter-spacing: -.07em; }.metric-card small { margin-top: 9px; color: rgba(255,255,255,.72); font-size: 10px; }.metric-card-light small { color: #6f7b8b; }.metric-card-light small + small { margin-top: 2px; color: #97a1ab; }.icon-bubble { display: inline-grid; height: 40px; width: 40px; flex-shrink: 0; place-items: center; border: 1px solid rgba(19,35,51,.17); border-radius: 50%; color: #0d1831; }.icon-bubble-dark { border-color: rgba(255,255,255,.38); background: #0a0d0e; color: white; }.icon-bubble-lime { border: 0; background: #b4fa18; color: #0a1807; }.stack-icon { position: relative; display: block; height: 24px; width: 27px; }.stack-icon span { position: absolute; left: 3px; height: 10px; width: 21px; transform: skewY(-28deg); border: 2px solid #6f8e22; border-radius: 2px; }.stack-icon span:nth-child(1) { top: 1px; }.stack-icon span:nth-child(2) { top: 7px; left: 5px; }.stack-icon span:nth-child(3) { top: 13px; left: 7px; }
29
+ .investigation-hero { display: flex; grid-column: span 4; flex-direction: column; justify-content: space-between; background: #b4fa18; color: #111d0a; }.hero-head { display: flex; align-items: start; gap: 11px; }.hero-head span { font-size: 11px; }.hero-head h2 { max-width: 200px; margin: 4px 0 0; font-size: 22px; line-height: 1.1; letter-spacing: -.05em; }.hero-foot { display: flex; align-items: center; justify-content: space-between; }.hero-foot small { color: #4e6d11; font-size: 10px; }.dark-cta { display: inline-flex; align-items: center; gap: 9px; border: 0; border-radius: 20px; padding: 9px 13px; background: #05090b; color: white; font-size: 10px; font-weight: 700; }
30
+ .dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-top: 12px; }.panel { min-width: 0; border: 1px solid #e1e7e9; border-radius: 10px; padding: 16px; background: white; box-shadow: 0 2px 4px rgba(16,31,47,.025); }.panel-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }.panel-title-with-icon { display: flex; align-items: center; gap: 11px; }.panel-title-with-icon > div { display: flex; flex-direction: column; }.panel-title-with-icon span { color: #687486; font-size: 11px; }.panel-title-with-icon h2 { margin: 2px 0 0; font-size: 18px; letter-spacing: -.05em; }.section-title { margin: 0; font-size: 17px; letter-spacing: -.05em; }.view-all, .filter-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #dfe5e7; border-radius: 18px; padding: 7px 11px; background: white; color: #26344a; font-size: 10px; font-weight: 700; }.view-all:hover, .filter-chip:hover { background: #f8fbf1; }.investigation-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 20px; }.big-stat { border-right: 1px solid #e4e8eb; }.big-stat span, .big-stat small { display: block; color: #687486; font-size: 11px; }.big-stat strong { display: block; margin: 3px 0; font-size: 37px; letter-spacing: -.07em; }.drivers { display: flex; flex-direction: column; gap: 11px; justify-content: center; }.driver { display: flex; align-items: center; gap: 9px; }.driver .icon-bubble { height: 33px; width: 33px; }.driver span { display: flex; flex-direction: column; }.driver small { color: #7e8995; font-size: 9px; }.driver b { margin-top: 2px; font-size: 10px; font-weight: 600; }.impact-card { margin-top: 18px; border: 1px solid #e6eaed; border-radius: 8px; padding: 11px; }.impact-card > span { font-size: 10px; }.impact-card > span small { color: #8b949f; }.impact-line { position: relative; display: flex; justify-content: space-between; margin: 13px 3px 7px; }.impact-line::before { position: absolute; top: 4px; right: 3px; left: 3px; height: 1px; background: #aeb8c3; content: ''; }.impact-line i { z-index: 1; height: 9px; width: 9px; border: 2px solid white; border-radius: 50%; background: #0c1932; box-shadow: 0 0 0 1px #0c1932; }.impact-line .impact-positive { background: #b4fa18; }.impact-labels { display: grid; grid-template-columns: repeat(5,1fr); gap: 4px; text-align: center; }.impact-labels span { display: flex; flex-direction: column; }.impact-labels b { font-size: 9px; }.impact-labels small { margin-top: 3px; color: #8a949f; font-size: 8px; }.investigation-panel .button-row { margin-top: 15px; }.run-head, .run-row { display: grid; grid-template-columns: 1.3fr 1.45fr .95fr 1fr 1fr; gap: 7px; align-items: center; }.run-head { margin-top: 16px; padding: 0 4px 7px; color: #7b8794; font-size: 9px; }.run-row { width: 100%; min-height: 46px; border: 0; border-top: 1px solid #eef1f2; padding: 0 4px; background: transparent; color: #4a5668; font-size: 9px; text-align: left; }.run-row:hover { background: #f8fbf1; }.run-name { display: flex; align-items: center; gap: 7px; color: #1d2b42; font-weight: 700; }.status-badge { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; font-size: 9px; font-weight: 600; }.status-dot { display: inline-block; height: 7px; width: 7px; border-radius: 50%; background: #9ba4ad; }.status-validated, .status-completed { color: #4e751a; }.status-validated .status-dot, .status-completed .status-dot { background: #72b820; }.status-needs-review, .status-stale, .status-inherited { color: #9c7411; }.status-needs-review .status-dot, .status-stale .status-dot, .status-inherited .status-dot { background: #e5ae32; }.status-draft, .status-overridden { color: #536de0; }.status-draft .status-dot, .status-overridden .status-dot { background: #536de0; }.status-running .status-dot { background: #4aa2cb; }
31
+ .investigation-row { display: flex; width: 100%; align-items: center; gap: 10px; border: 0; border-top: 1px solid #edf0f2; padding: 11px 1px; background: transparent; color: #27344a; text-align: left; }.investigation-row:hover { background: #f8fbf1; }.investigation-row > span { min-width: 0; flex: 1; }.investigation-row b { display: block; overflow: hidden; font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }.investigation-row span small { display: block; overflow: hidden; margin-top: 3px; color: #7c8796; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }.investigation-row > small { color: #7c8796; font-size: 9px; }.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }.quick-action { min-height: 147px; border: 1px solid #dfe6e9; border-radius: 8px; padding: 10px; background: white; color: #1a2942; text-align: left; transition: transform .18s ease, box-shadow .18s ease; }.quick-action:hover { transform: translateY(-2px); box-shadow: 0 8px 16px rgba(20,34,55,.08); }.quick-action-lime { border-color: #b4fa18; background: #b4fa18; }.quick-action-top { display: flex; align-items: start; justify-content: space-between; }.quick-action b { display: block; margin-top: 14px; font-size: 11px; }.quick-action > small { display: block; margin-top: 4px; color: #6f7a87; font-size: 9px; line-height: 1.35; }.quick-action-lime > small { color: #38500b; }
32
+
33
+ .workspace-stack { display: flex; flex-direction: column; gap: 12px; }.filter-bar { display: flex; align-items: center; gap: 8px; padding: 10px; }.search-field { display: flex; flex: 1; align-items: center; gap: 8px; border: 1px solid #dfe6e8; border-radius: 7px; padding: 8px 10px; color: #778392; }.search-field input { width: 100%; border: 0; outline: 0; color: #24334a; font-size: 11px; }.filter-count { margin-left: auto; color: #7b8793; font-size: 10px; }.model-summary-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 11px; }.summary-tile { display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: 0 11px; border: 1px solid #e1e7e9; border-radius: 10px; padding: 12px; background: white; }.summary-tile > span:not(.icon-bubble) { color: #778392; font-size: 10px; }.summary-tile strong { grid-column: 2; margin-top: -4px; font-size: 23px; letter-spacing: -.06em; }.summary-dark { color: white; border-color: #13201d; background: linear-gradient(135deg,#071011,#111a18); }.summary-dark > span:not(.icon-bubble) { color: rgba(255,255,255,.7); }.table-panel { padding-bottom: 6px; }.muted { margin: 4px 0 0; color: #7b8793; font-size: 10px; }.model-table { margin-top: 16px; overflow: hidden; }.model-table-head, .model-row { display: grid; grid-template-columns: 2.2fr .65fr .65fr .7fr .85fr 1.1fr 1fr 18px; gap: 10px; align-items: center; }.model-table-head { padding: 0 10px 8px; color: #7e8996; font-size: 9px; }.model-row { width: 100%; min-height: 60px; border: 0; border-top: 1px solid #edf0f2; padding: 0 10px; background: transparent; color: #4d596b; font-size: 10px; text-align: left; }.model-row:hover { background: #f8fbf1; }.model-name { display: flex; align-items: center; gap: 9px; }.model-name > span:last-child { display: flex; flex-direction: column; }.model-name b { color: #17263e; font-size: 11px; }.model-name small { margin-top: 3px; color: #89939f; font-size: 9px; }.model-icon { display: grid; height: 31px; width: 31px; place-items: center; border-radius: 7px; background: #eaf6cf; color: #5f861c; }.model-detail-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 12px; }.model-context-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin: 18px 0; border-top: 1px solid #edf0f2; border-bottom: 1px solid #edf0f2; padding: 12px 0; }.model-context-grid span { display: flex; flex-direction: column; gap: 4px; }.model-context-grid small { color: #89939f; font-size: 9px; }.model-context-grid b { font-size: 11px; }.tree-heading { display: flex; align-items: center; justify-content: space-between; color: #738090; font-size: 10px; }.tree-heading button { display: inline-flex; align-items: center; gap: 5px; border: 0; background: transparent; color: #58761b; font-size: 10px; font-weight: 700; }.model-tree { margin-top: 9px; border: 1px solid #edf0f2; border-radius: 7px; padding: 5px; }.tree-item { display: flex; min-height: 33px; align-items: center; justify-content: space-between; border-radius: 5px; padding: 0 7px; color: #566274; font-size: 10px; }.tree-item > span { display: flex; align-items: center; gap: 8px; }.tree-item b { font-weight: 600; }.tree-indent { padding-left: 26px; }.tree-active { background: #f1fbdc; color: #24370d; }.mentor-hint { display: flex; flex-direction: column; border: 1px solid #dbe8b8; border-radius: 10px; padding: 17px; background: linear-gradient(155deg,#f5ffdc,#fff); }.mentor-hint-head { display: flex; align-items: center; gap: 10px; }.mentor-hint-head div { display: flex; flex-direction: column; }.mentor-hint-head b { font-size: 12px; }.mentor-hint-head small { margin-top: 3px; color: #7b8793; font-size: 9px; }.mentor-hint p { margin: 20px 0; color: #44514a; font-size: 12px; line-height: 1.5; }.mentor-fact { display: flex; gap: 8px; border: 1px solid #e2ecc9; border-radius: 7px; padding: 10px; color: #5d801a; }.mentor-fact span { display: flex; flex-direction: column; }.mentor-fact b { font-size: 10px; }.mentor-fact small { margin-top: 3px; color: #7b8793; font-size: 9px; }.mentor-hint .button { align-self: flex-start; margin-top: 17px; }.empty-workspace { display: flex; min-height: 440px; align-items: center; justify-content: center; text-align: center; flex-direction: column; }.empty-icon { margin-bottom: 12px; }.empty-workspace h2 { margin: 7px 0 0; font-size: 25px; letter-spacing: -.05em; }.empty-workspace p { max-width: 430px; margin: 8px 0 18px; color: #7a8794; font-size: 12px; line-height: 1.5; }.empty-actions { display: flex; gap: 8px; }.empty-progress { display: flex; gap: 14px; margin-top: 34px; color: #6b7785; font-size: 10px; }.empty-progress span { display: inline-flex; align-items: center; gap: 5px; }.empty-progress svg { color: #6f9d21; }.toast { position: fixed; right: 24px; bottom: 24px; z-index: 50; display: flex; align-items: center; gap: 9px; border: 1px solid #dce4c5; border-radius: 9px; padding: 11px 13px; background: #f4ffd7; box-shadow: 0 12px 26px rgba(16,25,28,.14); color: #26320d; font-size: 11px; }.toast button { display: grid; place-items: center; margin-left: 5px; border: 0; background: transparent; color: inherit; }
34
+
35
+ @media (max-width: 1380px) { .sidebar { width: 220px; }.main-content { margin-left: 220px; padding-inline: 22px; }.nav-item { font-size: 12px; }.metric-card, .investigation-hero { min-height: 164px; padding: 12px; }.metric-card strong { font-size: 27px; }.model-table-head, .model-row { grid-template-columns: 2fr .55fr .55fr .6fr .75fr 1fr .9fr 18px; } }
36
+ @media (max-width: 1160px) { .profile-name { display: none; }.quick-grid { grid-template-columns: repeat(2,1fr); }.quick-action { min-height: 122px; }.dashboard-grid, .model-detail-grid { grid-template-columns: 1fr; }.metric-grid { grid-template-columns: repeat(6,1fr); }.metric-card { grid-column: span 2; }.investigation-hero { grid-column: span 6; }.model-summary-grid { grid-template-columns: repeat(2,1fr); } }