Spaces:
Sleeping
Sleeping
Mentor AMP Frontend commited on
Commit ·
115273e
1
Parent(s): 5865633
Build Volt shell dashboard and model library
Browse files- progress.json +52 -0
- src/App.tsx +174 -32
- 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 {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
|
| 4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
{ label: 'Dashboard', icon: LayoutDashboard },
|
| 6 |
-
{ label: 'Models', icon: Box },
|
| 7 |
-
{ label: '
|
| 8 |
-
{ label: '
|
| 9 |
-
{ label: '
|
| 10 |
-
{ label: '
|
| 11 |
-
{ label: '
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
]
|
|
|
|
| 13 |
const runs = [
|
| 14 |
-
['MYGA Base', 'Base scenario', '2026-12-31', 'Today, 9:42 AM'
|
| 15 |
-
['FIA VM-21', 'VM-21 Deterministic', '2026-12-31', 'Yesterday, 4:18 PM'
|
| 16 |
-
['RILA Stress', 'Low Interest Rate', '2026-12-31', 'Yesterday, 3:55 PM'
|
| 17 |
-
['MYGA Base', 'High interest', '2026-12-31', 'Jan 12, 2025'
|
| 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() {
|
| 27 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
-
|
| 34 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
<Logo />
|
| 36 |
-
<
|
| 37 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
</aside>
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
<
|
| 42 |
-
<
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 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
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
.
|
| 11 |
-
.
|
| 12 |
-
.
|
| 13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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); } }
|