Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.
C aiderastclaude-codecode-analysiscode-intelligencecodexcursorcypherdeveloper-toolsgemini-cligraph-visualizationkilocodeknowledge-graphmcpmcp-servermodel-context-protocolopencodesqlitetree-sitterwindsurf
feat(ui): the Atlas graphite design system + trust repairs (Field Guide D1)
Martin Vogel3bc9d973e6b0
diff --git a/graph-ui/index.html b/graph-ui/index.htmlindex a1cf9a24c..8ce5f20a9 100644--- a/graph-ui/index.html+++ b/graph-ui/index.html@@ -5,7 +5,7 @@<meta name="viewport" content="width=device-width, initial-scale=1.0" /><title>CBM Atlas</title></head>- <body class="bg-[#0a0a10] text-[#e4e4ed] min-h-screen">+ <body class="bg-background text-[#e4e4ed] min-h-screen"><div id="root"></div><script type="module" src="/src/main.tsx"></script></body>diff --git a/graph-ui/src/App.tsx b/graph-ui/src/App.tsxindex ad18efb81..e51dadacf 100644--- a/graph-ui/src/App.tsx+++ b/graph-ui/src/App.tsx@@ -154,7 +154,7 @@ export function App() {<PromptBasketProvider><div className="h-screen flex flex-col bg-background text-foreground">{/* Header */}- <header className="flex items-center justify-between px-5 h-12 border-b border-border bg-[#0b1920]/80 backdrop-blur-md shrink-0">+ <header className="flex items-center justify-between px-5 h-12 border-b border-border bg-card/80 backdrop-blur-md shrink-0"><div className="flex items-center gap-6 min-w-0"><div className="flex items-center gap-2.5 shrink-0"><div className="w-[7px] h-[7px] rounded-full bg-primary" />@@ -179,10 +179,10 @@ export function App() {title={disabled ? "Select a project first" : undefined}className={`px-3 py-1 rounded-md text-[12px] font-medium transition-all whitespace-nowrap ${disabled- ? "text-muted-foreground/30 cursor-not-allowed"+ ? "text-muted-foreground/50 cursor-not-allowed": activeTab === tab.id? "bg-primary/15 text-primary"- : "text-muted-foreground hover:text-foreground hover:bg-white/[0.04]"+ : "text-muted-foreground hover:text-foreground hover:bg-surface-3"}`}>{tab.label}@@ -195,19 +195,19 @@ export function App() {<div className="flex items-center gap-2 shrink-0"><buttononClick={() => setCommandOpen(true)}- className="px-2.5 py-1 rounded-md text-[11px] text-muted-foreground hover:text-foreground bg-white/[0.03] hover:bg-white/[0.06] border border-border/40 transition-all"+ className="px-2.5 py-1 rounded-md text-[13px] text-muted-foreground hover:text-foreground bg-popover hover:bg-surface-3 border border-border/40 transition-all"title="Search symbols and code">⌘K</button>{selectedProject && (- <div className="flex items-center gap-2 px-3 py-1 rounded-lg bg-white/[0.04] border border-border/30">- <span className="text-[11px] text-primary font-mono truncate max-w-[240px]">+ <div className="flex items-center gap-2 px-3 py-1 rounded-md bg-popover border border-border/30">+ <span className="text-[13px] text-primary font-mono truncate max-w-[240px]">{selectedProject}</span><buttononClick={() => navigate({ tab: "stats", project: null })}- className="text-foreground/20 hover:text-foreground/50 text-[12px] transition-colors"+ className="text-foreground/35 hover:text-foreground/50 text-[12px] transition-colors">×</button>diff --git a/graph-ui/src/components/ChangesTab.tsx b/graph-ui/src/components/ChangesTab.tsxindex 18c14ecb5..84e5dd036 100644--- a/graph-ui/src/components/ChangesTab.tsx+++ b/graph-ui/src/components/ChangesTab.tsx@@ -25,7 +25,7 @@ const RISK_TONE: Record<string, string> = {CRITICAL: "text-red-300/90 border-red-300/40 bg-red-400/10",HIGH: "text-amber-300/90 border-amber-300/40 bg-amber-400/10",MEDIUM: "text-sky-300/80 border-sky-300/30 bg-sky-400/5",- LOW: "text-foreground/50 border-border/40 bg-white/[0.02]",+ LOW: "text-foreground/50 border-border/40 bg-card",};export function ChangesTab({ project, onOpenSymbol }: ChangesTabProps) {@@ -104,7 +104,7 @@ export function ChangesTab({ project, onOpenSymbol }: ChangesTabProps) {});}}}- className="px-3 py-1.5 rounded-md bg-white/[0.05] text-foreground/60 text-[12px] font-medium hover:bg-white/[0.09] transition-colors"+ className="px-3 py-1.5 rounded-md bg-surface-3 text-foreground/60 text-[12px] font-medium hover:bg-surface-4 transition-colors">Cite blast radius in prompt</button>@@ -125,7 +125,7 @@ export function ChangesTab({ project, onOpenSymbol }: ChangesTabProps) {<div className="flex flex-wrap gap-4 mb-4">{scalars.map(([key, value]) => (<div key={key}>- <p className="text-[9px] uppercase tracking-widest text-foreground/25">+ <p className="text-[12px] uppercase tracking-widest text-foreground/40">{key.replace(/_/g, " ")}</p><p className="text-[13px] text-foreground/70 tabular-nums">{String(value)}</p>@@ -149,17 +149,17 @@ export function ChangesTab({ project, onOpenSymbol }: ChangesTabProps) {<buttonkey={`${qn}-${index}`}onClick={() => onOpenSymbol({ qn })}- className="flex items-center gap-2.5 w-full text-left px-2 py-[5px] rounded-md hover:bg-white/[0.04] transition-colors group"+ className="flex items-center gap-2.5 w-full text-left px-2 py-[5px] rounded-md hover:bg-surface-3 transition-colors group"><span- className={`text-[9px] px-1.5 py-0.5 rounded border shrink-0 ${RISK_TONE[risk] ?? RISK_TONE.LOW}`}+ className={`text-[12px] px-1.5 py-0.5 rounded border shrink-0 ${RISK_TONE[risk] ?? RISK_TONE.LOW}`}>{risk}</span><span className="text-[12px] font-mono text-foreground/70 group-hover:text-primary truncate transition-colors">{qn}</span>- <span className="text-[10px] text-foreground/25 truncate ml-auto shrink-0 max-w-[35%]">+ <span className="text-[12px] text-foreground/40 truncate ml-auto shrink-0 max-w-[35%]">{(row.file as string) ?? ""}</span></button>diff --git a/graph-ui/src/components/CommandK.tsx b/graph-ui/src/components/CommandK.tsxindex bace9ef09..6ffa9606f 100644--- a/graph-ui/src/components/CommandK.tsx+++ b/graph-ui/src/components/CommandK.tsx@@ -131,7 +131,7 @@ export function CommandK({ project, open, onClose, onOpenSymbol }: CommandKPropsonClick={onClose}><div- className="w-[620px] max-w-[92vw] bg-[#0b1920] border border-border/60 rounded-xl shadow-2xl overflow-hidden"+ className="w-[620px] max-w-[92vw] bg-card border border-border/60 rounded-md shadow-2xl overflow-hidden"onClick={(event) => event.stopPropagation()}><input@@ -145,13 +145,13 @@ export function CommandK({ project, open, onClose, onOpenSymbol }: CommandKProps/><div className="max-h-[50vh] overflow-y-auto py-1">{busy && entries.length === 0 && (- <p className="text-[11px] text-foreground/25 px-4 py-3">Searching…</p>+ <p className="text-[13px] text-foreground/40 px-4 py-3">Searching…</p>)}{!busy && query.trim().length >= 2 && entries.length === 0 && (- <p className="text-[11px] text-foreground/25 px-4 py-3">No matches.</p>+ <p className="text-[13px] text-foreground/40 px-4 py-3">No matches.</p>)}{symbols.length > 0 && (- <p className="px-4 pt-2 pb-1 text-[9px] uppercase tracking-widest text-foreground/25">+ <p className="px-4 pt-2 pb-1 text-[12px] uppercase tracking-widest text-foreground/40">Symbols</p>)}@@ -165,14 +165,14 @@ export function CommandK({ project, open, onClose, onOpenSymbol }: CommandKProps}`}><span className="text-[12px] font-mono text-foreground/75 truncate">{row.name}</span>- <span className="text-[10px] text-foreground/30 shrink-0">{row.label}</span>- <span className="text-[10px] text-foreground/20 truncate ml-auto max-w-[45%]">+ <span className="text-[12px] text-foreground/45 shrink-0">{row.label}</span>+ <span className="text-[12px] text-foreground/35 truncate ml-auto max-w-[45%]">{row.file}</span></button>))}{textHits.length > 0 && (- <p className="px-4 pt-2 pb-1 text-[9px] uppercase tracking-widest text-foreground/25">+ <p className="px-4 pt-2 pb-1 text-[12px] uppercase tracking-widest text-foreground/40">In code</p>)}@@ -181,14 +181,14 @@ export function CommandK({ project, open, onClose, onOpenSymbol }: CommandKPropskey={`${hit.file}:${hit.line}:${index}`}className={`px-4 py-[5px] ${active === symbols.length + index ? "bg-primary/10" : ""}`}>- <p className="text-[10px] font-mono text-foreground/35 truncate">+ <p className="text-[12px] font-mono text-foreground/50 truncate">{hit.file}:{hit.line}</p>- <p className="text-[11px] font-mono text-foreground/60 truncate">{hit.text}</p>+ <p className="text-[13px] font-mono text-foreground/60 truncate">{hit.text}</p></div>))}</div>- <div className="px-4 py-2 border-t border-border/40 text-[10px] text-foreground/25">+ <div className="px-4 py-2 border-t border-border/40 text-[12px] text-foreground/40">↑↓ navigate · Enter opens the symbol · Esc closes</div></div>diff --git a/graph-ui/src/components/ControlTab.tsx b/graph-ui/src/components/ControlTab.tsxindex 6ea05bc29..32156f736 100644--- a/graph-ui/src/components/ControlTab.tsx+++ b/graph-ui/src/components/ControlTab.tsx@@ -10,12 +10,12 @@ function Gauge({ label, value, max, unit, color }: {}) {const pct = Math.min(100, (value / max) * 100);return (- <div className="flex-1 rounded-xl border border-border/30 bg-white/[0.02] p-4">- <p className="text-[10px] text-foreground/25 uppercase tracking-widest mb-2">{label}</p>+ <div className="flex-1 rounded-md border border-border/30 bg-card p-4">+ <p className="text-[12px] text-foreground/40 uppercase tracking-widest mb-2">{label}</p><p className={`text-[20px] font-semibold tabular-nums ${color}`}>- {value.toFixed(1)}<span className="text-[11px] text-foreground/30 ml-1">{unit}</span>+ {value.toFixed(1)}<span className="text-[13px] text-foreground/45 ml-1">{unit}</span></p>- <div className="mt-2 h-1.5 rounded-full bg-white/[0.05] overflow-hidden">+ <div className="mt-2 h-1.5 rounded-full bg-surface-3 overflow-hidden"><divclassName="h-full rounded-full transition-all duration-500"style={{ width: `${pct}%`, backgroundColor: pct > 80 ? "#e05252" : pct > 50 ? "#eab308" : "#1DA27E" }}@@ -35,10 +35,10 @@ function ProcessCard({ proc, selected, onSelect }: {return (<buttononClick={onSelect}- className={`w-full text-left rounded-xl border p-4 transition-all ${+ className={`w-full text-left rounded-md border p-4 transition-all ${selected? "border-primary/40 bg-primary/5"- : "border-border/30 bg-white/[0.02] hover:bg-white/[0.04]"+ : "border-border/30 bg-card hover:bg-surface-3"}`}><div className="flex items-start justify-between mb-2">@@ -48,27 +48,27 @@ function ProcessCard({ proc, selected, onSelect }: {PID {proc.pid}</span>{proc.is_self && (- <span className="text-[9px] px-1.5 py-0.5 rounded bg-primary/15 text-primary font-medium">{t.control.thisProcess}</span>+ <span className="text-[12px] px-1.5 py-0.5 rounded bg-primary/15 text-primary font-medium">{t.control.thisProcess}</span>)}</div></div><div className="grid grid-cols-3 gap-3 mb-2"><div>- <p className="text-[9px] text-foreground/20 uppercase">CPU</p>+ <p className="text-[12px] text-foreground/35 uppercase">CPU</p><p className="text-[13px] font-semibold tabular-nums text-foreground/70">{proc.cpu.toFixed(1)}%</p></div><div>- <p className="text-[9px] text-foreground/20 uppercase">RAM</p>+ <p className="text-[12px] text-foreground/35 uppercase">RAM</p><p className="text-[13px] font-semibold tabular-nums text-foreground/70">{proc.rss_mb.toFixed(0)} MB</p></div><div>- <p className="text-[9px] text-foreground/20 uppercase">{t.control.uptime}</p>+ <p className="text-[12px] text-foreground/35 uppercase">{t.control.uptime}</p><p className="text-[13px] font-semibold tabular-nums text-foreground/70">{proc.elapsed}</p></div></div>- <p className="text-[10px] text-foreground/15 font-mono truncate">{proc.command}</p>+ <p className="text-[12px] text-foreground/30 font-mono truncate">{proc.command}</p></button>);}@@ -93,15 +93,15 @@ function LogViewer() {}, []);return (- <div className="rounded-xl border border-border/30 bg-black/30 overflow-hidden">+ <div className="rounded-md border border-border/30 bg-black/30 overflow-hidden"><div className="px-4 py-2 border-b border-border/20">- <span className="text-[11px] font-medium text-foreground/40">{t.control.processLogs}</span>- <span className="text-[10px] text-foreground/15 ml-2">{lines.length} lines</span>+ <span className="text-[13px] font-medium text-foreground/40">{t.control.processLogs}</span>+ <span className="text-[12px] text-foreground/30 ml-2">{lines.length} lines</span></div><ScrollArea className="h-[400px]">- <div className="p-3 font-mono text-[10px] leading-relaxed">+ <div className="p-3 font-mono text-[12px] leading-relaxed">{lines.length === 0 ? (- <p className="text-foreground/15 text-center py-8">{t.control.noLogs}</p>+ <p className="text-foreground/30 text-center py-8">{t.control.noLogs}</p>) : (lines.map((line, i) => {const isErr = line.includes("level=error");@@ -110,7 +110,7 @@ function LogViewer() {<divkey={i}className={`py-[1px] ${- isErr ? "text-red-400/70" : isWarn ? "text-yellow-400/60" : "text-foreground/30"+ isErr ? "text-red-400/70" : isWarn ? "text-yellow-400/60" : "text-foreground/45"}`}>{line}@@ -176,14 +176,14 @@ export function ControlTab() {</h3><buttononClick={fetchProcesses}- className="text-[11px] text-primary/60 hover:text-primary transition-colors"+ className="text-[13px] text-primary/60 hover:text-primary transition-colors">{t.common.refresh}</button></div>{processes.length === 0 ? (- <p className="text-foreground/20 text-[12px] text-center py-8">{t.control.noProcesses}</p>+ <p className="text-foreground/35 text-[12px] text-center py-8">{t.control.noProcesses}</p>) : (<div className="grid grid-cols-2 gap-3">{processes.map((p) => (diff --git a/graph-ui/src/components/DashboardTab.tsx b/graph-ui/src/components/DashboardTab.tsxindex ce332869b..a87ded4e4 100644--- a/graph-ui/src/components/DashboardTab.tsx+++ b/graph-ui/src/components/DashboardTab.tsx@@ -57,14 +57,14 @@ function Histogram({ values, labels }: { values: number[]; labels: string[] }) {<div className="flex items-end gap-1.5 h-[72px] mt-2">{values.map((value, index) => (<div key={index} className="flex-1 flex flex-col items-center gap-1 min-w-0">- <span className="text-[9px] tabular-nums text-foreground/30">+ <span className="text-[12px] tabular-nums text-foreground/45">{value.toLocaleString("en-US")}</span><divclassName="w-full rounded-sm bg-primary/40"style={{ height: `${Math.max(2, (value / max) * 46)}px` }}/>- <span className="text-[8.5px] text-foreground/25">{labels[index]}</span>+ <span className="text-[12px] text-foreground/40">{labels[index]}</span></div>))}</div>@@ -104,8 +104,8 @@ function StatCard({trend?: number[];}) {return (- <div className="bg-white/[0.02] border border-border/40 rounded-xl p-4 min-w-0">- <p className="text-[9px] uppercase tracking-widest text-foreground/30">{label}</p>+ <div className="bg-card border border-border/40 rounded-md p-4 min-w-0">+ <p className="text-[12px] uppercase tracking-widest text-foreground/45">{label}</p><pclassName={`text-[22px] font-semibold tabular-nums mt-1 ${tone === "crit"@@ -117,7 +117,7 @@ function StatCard({>{value}</p>- {sub && <p className="text-[10px] text-foreground/30 mt-0.5">{sub}</p>}+ {sub && <p className="text-[12px] text-foreground/45 mt-0.5">{sub}</p>}{trend && trend.length > 1 && <Sparkline points={trend} />}</div>);@@ -135,8 +135,8 @@ function TopList({onOpenSymbol?: (ref: { qn: string }) => void;}) {return (- <div className="bg-white/[0.02] border border-border/40 rounded-xl p-4">- <p className="text-[10px] uppercase tracking-widest text-foreground/30 mb-2">{title}</p>+ <div className="bg-card border border-border/40 rounded-md p-4">+ <p className="text-[12px] uppercase tracking-widest text-foreground/45 mb-2">{title}</p><div className="space-y-px">{entries.map((entry, index) => {const label = entry.name ?? entry.file ?? "?";@@ -151,7 +151,7 @@ function TopList({}`}><span- className={`text-[11px] font-mono truncate flex-1 ${+ className={`text-[13px] font-mono truncate flex-1 ${clickable? "text-foreground/60 group-hover:text-primary transition-colors": "text-foreground/55"@@ -160,13 +160,13 @@ function TopList({>{label}</span>- <span className="text-[10px] tabular-nums text-foreground/35 shrink-0">+ <span className="text-[12px] tabular-nums text-foreground/50 shrink-0">{entry.value.toLocaleString("en-US")} {unit}</span></Row>);})}- {entries.length === 0 && <p className="text-[11px] text-foreground/25">None.</p>}+ {entries.length === 0 && <p className="text-[13px] text-foreground/40">None.</p>}</div></div>);@@ -206,7 +206,7 @@ export function DashboardTab({ project, onOpenSymbol }: DashboardTabProps) {if (!metrics) {return (<div className="flex items-center justify-center h-full">- <p className="text-white/30 text-sm">Measuring…</p>+ <p className="text-foreground/45 text-sm">Measuring…</p></div>);}@@ -221,7 +221,7 @@ export function DashboardTab({ project, onOpenSymbol }: DashboardTabProps) {return (<ScrollArea className="h-full"><div className="max-w-[1200px] mx-auto px-6 py-6">- <p className="text-[10px] text-foreground/25 font-mono mb-4">+ <p className="text-[12px] text-foreground/40 font-mono mb-4">computed from index {metrics.generated_from}{history.length > 1 && ` · trends across ${history.length} index runs`}</p>@@ -271,8 +271,8 @@ export function DashboardTab({ project, onOpenSymbol }: DashboardTabProps) {sub="the missed skeleton in the galaxy"tone={totals.missed_files > 0 ? "warn" : undefined}/>- <div className="bg-white/[0.02] border border-border/40 rounded-xl p-4">- <p className="text-[9px] uppercase tracking-widest text-foreground/30">+ <div className="bg-card border border-border/40 rounded-md p-4">+ <p className="text-[12px] uppercase tracking-widest text-foreground/45">Complexity distribution</p><Histogram values={metrics.complexity_hist} labels={CPLX_LABELS} />@@ -280,8 +280,8 @@ export function DashboardTab({ project, onOpenSymbol }: DashboardTabProps) {</div><div className="grid grid-cols-1 md:grid-cols-2 gap-3 mb-3">- <div className="bg-white/[0.02] border border-border/40 rounded-xl p-4">- <p className="text-[9px] uppercase tracking-widest text-foreground/30">+ <div className="bg-card border border-border/40 rounded-md p-4">+ <p className="text-[12px] uppercase tracking-widest text-foreground/45">Function length (lines)</p><Histogram values={metrics.lines_hist} labels={LINE_LABELS} />diff --git a/graph-ui/src/components/DisplaySettingsMenu.tsx b/graph-ui/src/components/DisplaySettingsMenu.tsxindex 3b78f814c..7b817da06 100644--- a/graph-ui/src/components/DisplaySettingsMenu.tsx+++ b/graph-ui/src/components/DisplaySettingsMenu.tsx@@ -24,8 +24,8 @@ function SliderRow({ label, hint, value, min, max, onChange }: SliderRowProps) {return (<label className="block"><div className="flex items-center justify-between mb-1">- <span className="text-[11px] text-foreground/70">{label}</span>- <span className="text-[10px] font-mono text-cyan-300/70 tabular-nums">+ <span className="text-[13px] text-foreground/70">{label}</span>+ <span className="text-[12px] font-mono text-cyan-300/70 tabular-nums">{value.toFixed(2)}×</span></div>@@ -39,7 +39,7 @@ function SliderRow({ label, hint, value, min, max, onChange }: SliderRowProps) {className="w-full accent-cyan-400 cursor-pointer"aria-label={`${label} (${hint})`}/>- <p className="text-[9px] text-foreground/30 mt-0.5">{hint}</p>+ <p className="text-[12px] text-foreground/45 mt-0.5">{hint}</p></label>);}@@ -98,15 +98,15 @@ export function DisplaySettingsMenu({<divrole="dialog"aria-label="Display settings"- className="absolute top-10 right-0 w-64 p-4 rounded-lg border border-border/60 bg-[#0b1920]/95 backdrop-blur-md shadow-xl z-20 space-y-3.5"+ className="absolute top-10 right-0 w-64 p-4 rounded-md border border-border/60 bg-card/95 backdrop-blur-md shadow-xl z-20 space-y-3.5"><div className="flex items-center justify-between">- <span className="text-[11px] font-medium text-foreground/50 uppercase tracking-widest">+ <span className="text-[13px] font-medium text-foreground/50 uppercase tracking-widest">Contrast</span><buttononClick={() => onChange(DEFAULT_DISPLAY_SETTINGS)}- className="text-[10px] text-primary/70 hover:text-primary transition-colors disabled:opacity-30"+ className="text-[12px] text-primary/70 hover:text-primary transition-colors disabled:opacity-30"disabled={isDefault}>Reset@@ -138,7 +138,7 @@ export function DisplaySettingsMenu({onChange={(bloom) => set({ bloom })}/>- <p className="text-[9px] text-foreground/30 pt-1 border-t border-border/30">+ <p className="text-[12px] text-foreground/45 pt-1 border-t border-border/30">1.00× follows the automatic density compensation. Lower theedge/glow/bloom values when a large graph washes out to white.</p>diff --git a/graph-ui/src/components/ErrorBoundary.tsx b/graph-ui/src/components/ErrorBoundary.tsxindex 7a9d76cd2..b22d88b95 100644--- a/graph-ui/src/components/ErrorBoundary.tsx+++ b/graph-ui/src/components/ErrorBoundary.tsx@@ -34,7 +34,7 @@ export class ErrorBoundary extends Component<Props, State> {<p className="text-red-400 text-lg font-medium mb-2">Rendering error</p>- <p className="text-white/50 text-sm font-mono">+ <p className="text-foreground/50 text-sm">{this.state.error?.message ?? "Unknown error"}</p><buttondiff --git a/graph-ui/src/components/FilterPanel.tsx b/graph-ui/src/components/FilterPanel.tsxindex b2e221531..80e081998 100644--- a/graph-ui/src/components/FilterPanel.tsx+++ b/graph-ui/src/components/FilterPanel.tsx@@ -43,7 +43,7 @@ function CheckRow({return (<buttononClick={onToggle}- className={`flex items-center gap-1.5 text-[11px] font-medium transition-all ${+ className={`flex items-center gap-1.5 text-[13px] font-medium transition-all ${checked ? "text-primary" : "text-foreground/40"}`}>@@ -52,11 +52,11 @@ function CheckRow({checked ? "border-primary bg-primary/20" : "border-foreground/15"}`}>- {checked && <span className="text-primary text-[9px]">✓</span>}+ {checked && <span className="text-primary text-[12px]">✓</span>}</span>{label}{count !== undefined && (- <span className="text-foreground/25 tabular-nums">{count.toLocaleString()}</span>+ <span className="text-foreground/40 tabular-nums">{count.toLocaleString()}</span>)}</button>);@@ -105,13 +105,13 @@ export function FilterPanel({<div className="flex flex-col shrink-0 max-h-[45%] border-b border-border/40">{/* Header row — always visible */}<div className="flex items-center justify-between px-4 pt-3 pb-2 shrink-0">- <span className="text-[11px] font-medium text-foreground/50 uppercase tracking-widest">+ <span className="text-[13px] font-medium text-foreground/50 uppercase tracking-widest">Filters</span><div className="flex items-center gap-2">- <button onClick={onEnableAll} className="text-[10px] text-primary/70 hover:text-primary transition-colors">All</button>- <span className="text-foreground/15">|</span>- <button onClick={onDisableAll} className="text-[10px] text-primary/70 hover:text-primary transition-colors">None</button>+ <button onClick={onEnableAll} className="text-[12px] text-primary/70 hover:text-primary transition-colors">All</button>+ <span className="text-foreground/30">|</span>+ <button onClick={onDisableAll} className="text-[12px] text-primary/70 hover:text-primary transition-colors">None</button></div></div>@@ -121,7 +121,7 @@ export function FilterPanel({{/* Node types */}{labelCounts.length > 0 && (<div>- <p className="text-[10px] font-medium text-foreground/40 mb-1.5 uppercase tracking-wider">Node types</p>+ <p className="text-[12px] font-medium text-foreground/40 mb-1.5 uppercase tracking-wider">Node types</p><div className="flex flex-wrap gap-1">{labelCounts.map(([label, count]) => {const on = enabledLabels.has(label);@@ -130,13 +130,13 @@ export function FilterPanel({<buttonkey={label}onClick={() => onToggleLabel(label)}- className={`inline-flex items-center gap-1 px-1.5 py-[3px] rounded-md text-[10px] font-medium transition-all border ${- on ? "border-white/[0.08] bg-white/[0.04]" : "border-transparent opacity-25"+ className={`inline-flex items-center gap-1 px-1.5 py-[3px] rounded-md text-[12px] font-medium transition-all border ${+ on ? "border-white/[0.08] bg-popover" : "border-transparent opacity-25"}`}><span className="w-[5px] h-[5px] rounded-full" style={{ backgroundColor: on ? c : "#444" }} /><span style={{ color: on ? c : "#555" }}>{label}</span>- <span className="text-foreground/20 tabular-nums">{count.toLocaleString()}</span>+ <span className="text-foreground/35 tabular-nums">{count.toLocaleString()}</span></button>);})}@@ -147,7 +147,7 @@ export function FilterPanel({{/* Relationships */}{edgeTypeCounts.length > 0 && (<div>- <p className="text-[10px] font-medium text-foreground/40 mb-1.5 uppercase tracking-wider">Relationships</p>+ <p className="text-[12px] font-medium text-foreground/40 mb-1.5 uppercase tracking-wider">Relationships</p><div className="flex flex-wrap gap-1">{edgeTypeCounts.map(([type, count]) => {const on = enabledEdgeTypes.has(type);@@ -155,12 +155,12 @@ export function FilterPanel({<buttonkey={type}onClick={() => onToggleEdgeType(type)}- className={`inline-flex items-center gap-1 px-1.5 py-[3px] rounded-md text-[10px] font-medium transition-all border ${- on ? "border-white/[0.06] bg-white/[0.03] text-foreground/60" : "border-transparent opacity-20 text-foreground/30"+ className={`inline-flex items-center gap-1 px-1.5 py-[3px] rounded-md text-[12px] font-medium transition-all border ${+ on ? "border-border bg-popover text-foreground/60" : "border-transparent opacity-20 text-foreground/45"}`}>{type.replace(/_/g, " ").toLowerCase()}- <span className="text-foreground/15 tabular-nums">{count.toLocaleString()}</span>+ <span className="text-foreground/30 tabular-nums">{count.toLocaleString()}</span></button>);})}@@ -175,11 +175,11 @@ export function FilterPanel({focus; click the code galaxy to come back. */}<div className="px-4 pt-2 border-t border-border/30 space-y-2 shrink-0"><div className="flex items-center justify-between">- <span className="text-[10px] text-foreground/30 uppercase tracking-widest">+ <span className="text-[12px] text-foreground/45 uppercase tracking-widest">Missed files</span>{missedCount > 0 && (- <span className="text-[10px] text-foreground/50 tabular-nums">+ <span className="text-[12px] text-foreground/50 tabular-nums">{missedCount.toLocaleString()} files</span>)}@@ -189,7 +189,7 @@ export function FilterPanel({onToggle={onToggleMissedView}label="Show missed skeleton"/>- <p className="text-[9px] leading-snug text-foreground/30">+ <p className="text-[12px] leading-snug text-foreground/45">{missedCount > 0? "White satellite = files not fully indexed (best-effort). Click it to focus, click the galaxy to return.": "No known misses (best-effort — not a completeness guarantee)."}@@ -199,10 +199,10 @@ export function FilterPanel({{/* Dead-code view */}<div className="px-4 pt-2 border-t border-border/30 space-y-2 shrink-0"><div className="flex items-center justify-between">- <span className="text-[10px] text-foreground/30 uppercase tracking-widest">+ <span className="text-[12px] text-foreground/45 uppercase tracking-widest">Dead code</span>- <span className="text-[10px] text-red-400/80 tabular-nums">+ <span className="text-[12px] text-red-400/80 tabular-nums">{deadCount.toLocaleString()} dead</span></div>@@ -230,7 +230,7 @@ export function FilterPanel({{STATUS_LEGEND.map((s) => (<spankey={s.status}- className="inline-flex items-center gap-1 text-[9px] text-foreground/40"+ className="inline-flex items-center gap-1 text-[12px] text-foreground/40"><spanclassName="w-[6px] h-[6px] rounded-full"@@ -247,14 +247,14 @@ export function FilterPanel({<div className="px-4 py-2.5 border-t border-border/20 shrink-0"><buttononClick={onToggleShowLabels}- className={`inline-flex items-center gap-1.5 text-[11px] font-medium transition-all ${- showLabels ? "text-primary" : "text-foreground/30"+ className={`inline-flex items-center gap-1.5 text-[13px] font-medium transition-all ${+ showLabels ? "text-primary" : "text-foreground/45"}`}><span className={`w-3.5 h-3.5 rounded border flex items-center justify-center transition-all ${showLabels ? "border-primary bg-primary/20" : "border-foreground/15"}`}>- {showLabels && <span className="text-primary text-[9px]">✓</span>}+ {showLabels && <span className="text-primary text-[12px]">✓</span>}</span>Show labels</button>diff --git a/graph-ui/src/components/FlowsTab.tsx b/graph-ui/src/components/FlowsTab.tsxindex 829c41ac3..4fa36a59f 100644--- a/graph-ui/src/components/FlowsTab.tsx+++ b/graph-ui/src/components/FlowsTab.tsx@@ -90,7 +90,7 @@ export function FlowsTab({ project, flowId, onOpenFlow, onOpenSymbol }: FlowsTabif (!payload) {return (<div className="flex items-center justify-center h-full">- <p className="text-white/30 text-sm">Tracing the journeys…</p>+ <p className="text-foreground/45 text-sm">Tracing the journeys…</p></div>);}@@ -98,12 +98,12 @@ export function FlowsTab({ project, flowId, onOpenFlow, onOpenSymbol }: FlowsTabreturn (<div className="h-full flex">{/* Flow list */}- <div className="w-[380px] shrink-0 border-r border-border/40 flex flex-col bg-[#0b1920]/60">+ <div className="w-[380px] shrink-0 border-r border-border/40 flex flex-col bg-card/60"><div className="px-4 py-3 border-b border-border/30 shrink-0">- <p className="text-[10px] uppercase tracking-widest text-foreground/30">+ <p className="text-[12px] uppercase tracking-widest text-foreground/45">Flows — entry → terminal</p>- <p className="text-[10.5px] text-foreground/30 mt-1">+ <p className="text-[12px] text-foreground/45 mt-1">{payload.flows.length} journeys from{" "}{payload.callable_total.toLocaleString("en-US")} callables{payload.candidates_dropped > 0 &&@@ -117,7 +117,7 @@ export function FlowsTab({ project, flowId, onOpenFlow, onOpenSymbol }: FlowsTabif (flows.length === 0) return null;return (<div key={groupKey}>- <p className="px-4 pt-2 pb-1 text-[9px] uppercase tracking-widest text-foreground/25">+ <p className="px-4 pt-2 pb-1 text-[12px] uppercase tracking-widest text-foreground/40">{groupKey === "cross" ? "across regions" : "within one region"}</p>{flows.map((flow) => (@@ -127,15 +127,15 @@ export function FlowsTab({ project, flowId, onOpenFlow, onOpenSymbol }: FlowsTabclassName={`flex items-center gap-2 w-full text-left px-4 py-[6px] transition-colors ${flowId === flow.id? "bg-primary/10 text-primary"- : "text-foreground/60 hover:text-foreground/85 hover:bg-white/[0.03]"+ : "text-foreground/60 hover:text-foreground/85 hover:bg-surface-3"}`}>- <span className="text-[11.5px] font-mono truncate flex-1">{flow.label}</span>- <span className="text-[10px] tabular-nums text-foreground/25 shrink-0">+ <span className="text-[13px] font-mono truncate flex-1">{flow.label}</span>+ <span className="text-[12px] tabular-nums text-foreground/40 shrink-0">{flow.steps}</span>{!flow.sink_terminated && (- <span className="text-[9px] text-foreground/20 shrink-0" title="walk stopped at the depth cap, not at a sink">+ <span className="text-[12px] text-foreground/35 shrink-0" title="walk stopped at the depth cap, not at a sink">…</span>)}@@ -145,7 +145,7 @@ export function FlowsTab({ project, flowId, onOpenFlow, onOpenSymbol }: FlowsTab);})}{payload.flows.length === 0 && (- <p className="text-[11px] text-foreground/25 px-4 py-4">+ <p className="text-[13px] text-foreground/40 px-4 py-4">No flows detected — the project may have no clear entry points.</p>)}@@ -157,7 +157,7 @@ export function FlowsTab({ project, flowId, onOpenFlow, onOpenSymbol }: FlowsTab<div className="flex-1 min-w-0">{flowId === null || !detail ? (<div className="flex items-center justify-center h-full">- <p className="text-white/30 text-sm">+ <p className="text-foreground/45 text-sm">{flowId === null ? "Pick a journey on the left" : "Loading…"}</p></div>@@ -167,7 +167,7 @@ export function FlowsTab({ project, flowId, onOpenFlow, onOpenSymbol }: FlowsTab<div className="flex items-center gap-3 flex-wrap mb-1"><h3 className="text-[16px] font-semibold font-mono text-foreground/90">{detail.entry.name}- <span className="text-foreground/30"> → </span>+ <span className="text-foreground/45"> → </span>{detail.terminal.name}</h3><AddToPromptButton@@ -182,12 +182,12 @@ export function FlowsTab({ project, flowId, onOpenFlow, onOpenSymbol }: FlowsTabonClick={() => {navigator.clipboard?.writeText(flowToMermaid(detail)).then(() => setCopied(true));}}- className="px-2.5 py-1 rounded-md bg-white/[0.05] text-foreground/60 text-[11px] font-medium hover:bg-white/[0.09] transition-colors"+ className="px-2.5 py-1 rounded-md bg-surface-3 text-foreground/60 text-[13px] font-medium hover:bg-surface-4 transition-colors">{copied ? "Copied ✓" : "Copy as mermaid"}</button></div>- <p className="text-[11px] text-foreground/35 mb-4">+ <p className="text-[13px] text-foreground/50 mb-4">{detail.steps.length} steps{detail.sink_terminated ? " · ends at a sink" : " · stopped at the depth cap"}{detail.cross_region ? " · crosses regions" : ""}@@ -201,16 +201,16 @@ export function FlowsTab({ project, flowId, onOpenFlow, onOpenSymbol }: FlowsTab<buttonkey={index}onClick={() => onOpenSymbol({ id: step.id })}- className="flex items-center gap-2 w-full text-left py-[3.5px] rounded-md hover:bg-white/[0.04] transition-colors group"+ className="flex items-center gap-2 w-full text-left py-[3.5px] rounded-md hover:bg-surface-3 transition-colors group"style={{ paddingLeft: `${step.depth * 22 + 8}px` }}>- <span className="text-foreground/20 text-[10px] shrink-0">+ <span className="text-foreground/35 text-[12px] shrink-0">{step.depth === 0 ? "▶" : "└"}</span><span className="text-[12px] font-mono text-foreground/70 group-hover:text-primary transition-colors truncate">{step.name}</span>- <span className="text-[10px] text-foreground/20 truncate ml-auto shrink-0 max-w-[40%]">+ <span className="text-[12px] text-foreground/35 truncate ml-auto shrink-0 max-w-[40%]">{step.file_path}</span></button>diff --git a/graph-ui/src/components/GraphLoader.tsx b/graph-ui/src/components/GraphLoader.tsxindex 0d9154b17..46e6854ce 100644--- a/graph-ui/src/components/GraphLoader.tsx+++ b/graph-ui/src/components/GraphLoader.tsx@@ -68,7 +68,7 @@ export function GraphLoader({ nodeBudget, progress }: GraphLoaderProps) {/>))}</svg>- <p className="text-white/50 text-sm mt-4">+ <p className="text-foreground/50 text-sm mt-4">{receiving ? "Receiving graph" : "Computing layout"} — up to{" "}{nodeBudget.toLocaleString("en-US")} nodes</p>diff --git a/graph-ui/src/components/GraphScene.tsx b/graph-ui/src/components/GraphScene.tsxindex cad93d926..9a1ce2f6b 100644--- a/graph-ui/src/components/GraphScene.tsx+++ b/graph-ui/src/components/GraphScene.tsx@@ -153,7 +153,7 @@ export function GraphScene({return (<Canvascamera={{ position: [0, 0, 800], fov: 50, near: 0.1, far: 100000 }}- style={{ background: "#06090f" }}+ style={{ background: "#0D0F12" }}dpr={GRAPH_CANVAS_DPR}gl={{antialias: false,@@ -162,7 +162,7 @@ export function GraphScene({}}onPointerMissed={onBackgroundClick}>- <color attach="background" args={["#06090f"]} />+ <color attach="background" args={["#0D0F12"]} /><ambientLight intensity={0.5} /><pointLight position={[500, 500, 500]} intensity={0.6} /><pointLightdiff --git a/graph-ui/src/components/GraphTab.tsx b/graph-ui/src/components/GraphTab.tsxindex ea6e96694..a29f001e0 100644--- a/graph-ui/src/components/GraphTab.tsx+++ b/graph-ui/src/components/GraphTab.tsx@@ -8,7 +8,7 @@ import {GRAPH_NODE_BUDGET_STEP,GRAPH_NODE_BUDGET_MAX,} from "../hooks/useGraphData";-import { regionsToGraphData, regionsViewWorthwhile, disambiguateRegionNames } from "../lib/regions";+import { regionsToGraphData, regionsViewWorthwhile, disambiguateRegionNames, isTestRegion } from "../lib/regions";import { RegionPanel } from "./RegionPanel";import { GraphLoader } from "./GraphLoader";import { DisplaySettingsMenu } from "./DisplaySettingsMenu";@@ -473,7 +473,7 @@ export function GraphTab({if (!project) {return (<div className="flex items-center justify-center h-full">- <p className="text-white/30 text-sm">+ <p className="text-foreground/45 text-sm">Select a project from the Projects tab</p></div>@@ -483,7 +483,7 @@ export function GraphTab({if (view.kind === "deciding") {return (<div className="flex items-center justify-center h-full">- <p className="text-white/30 text-sm">Mapping regions…</p>+ <p className="text-foreground/45 text-sm">Mapping regions…</p></div>);}@@ -494,21 +494,23 @@ export function GraphTab({return (<div className="h-full flex"><div- className="border-r border-border/30 flex flex-col h-full bg-[#0b1920]/90 backdrop-blur-md shrink-0"+ className="border-r border-border/30 flex flex-col h-full bg-card/90 backdrop-blur-md shrink-0"style={{ width: leftWidth }}><div className="px-4 pt-3 pb-2 shrink-0">- <span className="text-[11px] font-medium text-foreground/50 uppercase tracking-widest">+ <span className="text-[13px] font-medium text-foreground/50 uppercase tracking-widest">Regions</span>- <p className="text-[10px] text-foreground/25 mt-1">+ <p className="text-[12px] text-foreground/40 mt-1">{regionsPayload?.method === "leiden+folders"? "call communities + folder groups": "folder groups"}</p></div><div className="flex-1 min-h-0 overflow-y-auto py-1">- {displayRegions.map((region) => (+ {[...displayRegions]+ .sort((a, b) => Number(isTestRegion(a.name)) - Number(isTestRegion(b.name)))+ .map((region) => (<buttonkey={region.id}onClick={() => setSelectedRegion(region)}@@ -516,7 +518,7 @@ export function GraphTab({className={`flex items-center gap-2 w-full text-left px-4 py-[5px] text-[12px] transition-colors ${selected?.id === region.id? "bg-primary/10 text-primary"- : "text-foreground/60 hover:text-foreground/80 hover:bg-white/[0.03]"+ : "text-foreground/60 hover:text-foreground/80 hover:bg-surface-3"}`}><span@@ -524,7 +526,7 @@ export function GraphTab({style={{ backgroundColor: region.color }}/><span className="truncate">{region.name}</span>- <span className="text-foreground/15 ml-auto text-[10px] tabular-nums shrink-0">+ <span className="text-foreground/30 ml-auto text-[12px] tabular-nums shrink-0">{region.members.toLocaleString("en-US")}</span></button>@@ -564,12 +566,12 @@ export function GraphTab({/></ErrorBoundary>- <div className="absolute top-4 left-4 text-[11px] text-white/30 pointer-events-none font-mono">+ <div className="absolute top-4 left-4 text-[13px] text-foreground/55 pointer-events-none tabular-nums"><p>{displayRegions.length} regions /{" "}{regionsPayload?.total_nodes.toLocaleString("en-US")} nodes</p>- <p className="text-white/20 mt-0.5">+ <p className="text-foreground/35 mt-0.5">double-click a region (or use its panel) to open it</p></div>@@ -637,7 +639,7 @@ export function GraphTab({if (!data || !filteredData || data.nodes.length === 0) {return (<div className="flex items-center justify-center h-full">- <p className="text-white/30 text-sm">No nodes in this project</p>+ <p className="text-foreground/45 text-sm">No nodes in this project</p></div>);}@@ -646,7 +648,7 @@ export function GraphTab({<div className="h-full flex">{/* Left sidebar — resizable */}<div- className="border-r border-border/30 flex flex-col h-full bg-[#0b1920]/90 backdrop-blur-md shrink-0"+ className="border-r border-border/30 flex flex-col h-full bg-card/90 backdrop-blur-md shrink-0"style={{ width: leftWidth }}><FilterPanel@@ -694,7 +696,7 @@ export function GraphTab({{filteredData.nodes.length === 0 ? (<div className="flex items-center justify-center h-full"><div className="text-center">- <p className="text-white/30 text-sm mb-3">All nodes filtered out</p>+ <p className="text-foreground/45 text-sm mb-3">All nodes filtered out</p><Button size="sm" onClick={enableAll}>Reset Filters</Button>@@ -716,7 +718,7 @@ export function GraphTab({</ErrorBoundary>{/* HUD */}- <div className="absolute top-4 left-4 text-[11px] text-white/30 pointer-events-none font-mono">+ <div className="absolute top-4 left-4 text-[13px] text-foreground/55 pointer-events-none tabular-nums">{regionsError && (<p className="text-amber-300/60">regions unavailable: {regionsError}</p>)}@@ -728,7 +730,7 @@ export function GraphTab({{filteredData.edges.length.toLocaleString()} edges</p>{data.nodes.length > filteredData.nodes.length && (- <p className="text-white/25 mt-0.5">+ <p className="text-foreground/40 mt-0.5">filtered from {data.nodes.length.toLocaleString()}</p>)}@@ -761,10 +763,10 @@ export function GraphTab({Clear selection</Button>)}- <div className="flex items-center gap-1.5 h-8 px-2 rounded-md border border-border/50 bg-[#0b1920]/80 backdrop-blur-sm">+ <div className="flex items-center gap-1.5 h-8 px-2 rounded-md border border-border/50 bg-card/80 backdrop-blur-sm"><labelhtmlFor="node-budget"- className="text-[10px] uppercase tracking-wider text-white/40"+ className="text-[12px] uppercase tracking-wider text-foreground/40">Nodes</label>diff --git a/graph-ui/src/components/MissedCallout.tsx b/graph-ui/src/components/MissedCallout.tsxindex 1156d19b9..ec15600f5 100644--- a/graph-ui/src/components/MissedCallout.tsx+++ b/graph-ui/src/components/MissedCallout.tsx@@ -96,11 +96,11 @@ export function MissedCallout({ node, project, onClose }: MissedCalloutProps) {<div className="h-full flex flex-col p-4 gap-3 overflow-y-auto"><div className="flex items-start justify-between"><div>- <p className="text-[10px] text-foreground/30 uppercase tracking-widest">+ <p className="text-[12px] text-foreground/45 uppercase tracking-widest">Not fully indexed</p><p className="text-sm font-medium text-foreground/90 break-all mt-1">{path}</p>- <p className="text-[10px] text-foreground/40 mt-0.5">{node.label}</p>+ <p className="text-[12px] text-foreground/40 mt-0.5">{node.label}</p></div><buttononClick={onClose}@@ -127,7 +127,7 @@ export function MissedCallout({ node, project, onClose }: MissedCalloutProps) {className={`text-[12px] font-medium rounded-md border px-3 py-1.5 transition-all text-left ${copied? "border-primary/60 bg-primary/15 text-primary"- : "border-white/10 bg-white/[0.03] text-foreground/80 hover:bg-white/[0.07]"+ : "border-white/10 bg-popover text-foreground/80 hover:bg-white/[0.07]"}`}>{copied ? "✓ Copied — paste it to your agent" : "Copy agent prompt"}@@ -137,14 +137,14 @@ export function MissedCallout({ node, project, onClose }: MissedCalloutProps) {href={buildIssueUrl(issuesUrl, path, project)}target="_blank"rel="noreferrer"- className="text-[12px] font-medium rounded-md border border-white/10 bg-white/[0.03] text-foreground/80 hover:bg-white/[0.07] px-3 py-1.5 transition-all"+ className="text-[12px] font-medium rounded-md border border-white/10 bg-popover text-foreground/80 hover:bg-white/[0.07] px-3 py-1.5 transition-all">File a GitHub issue (prefilled) ↗</a>)}</div>- <p className="text-[10px] leading-snug text-foreground/35 mt-1">+ <p className="text-[12px] leading-snug text-foreground/50 mt-1">The prefilled issue contains only the file path and project name — add codesnippets only if they are shareable.</p>diff --git a/graph-ui/src/components/ModulesTab.tsx b/graph-ui/src/components/ModulesTab.tsxindex dc25c6b07..f7f3421ff 100644--- a/graph-ui/src/components/ModulesTab.tsx+++ b/graph-ui/src/components/ModulesTab.tsx@@ -141,7 +141,7 @@ export function ModulesTab({<div className="flex items-center gap-1 px-5 py-2.5 border-b border-border/30 shrink-0 flex-wrap">{crumbs.map((crumb, index) => (<span key={crumb.path} className="flex items-center gap-1">- {index > 0 && <span className="text-foreground/20 text-[11px]">/</span>}+ {index > 0 && <span className="text-foreground/35 text-[13px]">/</span>}<buttononClick={() => onNavigatePath(crumb.path)}className={`text-[12px] transition-colors ${@@ -155,7 +155,7 @@ export function ModulesTab({</span>))}{tree && (- <span className="ml-auto text-[11px] text-foreground/30 font-mono">+ <span className="ml-auto text-[13px] text-foreground/45 font-mono">{tree.files.toLocaleString("en-US")} files ·{" "}{tree.symbols.toLocaleString("en-US")} symbols{tree.children_dropped ? ` · ${tree.children_dropped} children not shown` : ""}@@ -168,14 +168,14 @@ export function ModulesTab({<div ref={measureRef} className="flex-1 min-w-0 relative m-3">{!tree ? (<div className="flex items-center justify-center h-full">- <p className="text-white/30 text-sm">Measuring the territory…</p>+ <p className="text-foreground/45 text-sm">Measuring the territory…</p></div>) : (<svgwidth="100%"height="100%"viewBox={`0 0 ${size.w} ${size.h}`}- className="rounded-lg"+ className="rounded-md"role="img"aria-label={`Treemap of ${path || "the repository root"}`}>@@ -263,7 +263,7 @@ export function ModulesTab({{/* File panel */}{selectedFile && (- <div className="w-[320px] shrink-0 border-l border-border/40 bg-[#0b1920]/90 flex flex-col">+ <div className="w-[320px] shrink-0 border-l border-border/40 bg-card/90 flex flex-col"><div className="px-4 py-3 border-b border-border/30"><div className="flex items-start justify-between gap-2"><p className="text-[12px] font-mono text-foreground/80 break-all">@@ -271,32 +271,32 @@ export function ModulesTab({</p><buttononClick={() => setSelectedFile(null)}- className="text-foreground/25 hover:text-foreground/60 text-[15px] leading-none"+ className="text-foreground/40 hover:text-foreground/60 text-[15px] leading-none">×</button></div>- <p className="text-[10px] text-foreground/30 mt-1">+ <p className="text-[12px] text-foreground/45 mt-1">{selectedFile.symbols.toLocaleString("en-US")} symbols{selectedFile.missed ? " · not fully indexed" : ""}</p></div><div className="flex-1 min-h-0 overflow-y-auto py-1">{fileSymbols === null ? (- <p className="text-[11px] text-foreground/25 px-4 py-3">Loading…</p>+ <p className="text-[13px] text-foreground/40 px-4 py-3">Loading…</p>) : fileSymbols.length === 0 ? (- <p className="text-[11px] text-foreground/25 px-4 py-3">No symbols found.</p>+ <p className="text-[13px] text-foreground/40 px-4 py-3">No symbols found.</p>) : (fileSymbols.map((symbol) => (<buttonkey={symbol.qualified_name}onClick={() => onOpenSymbol({ qn: symbol.qualified_name })}- className="flex items-center gap-2 w-full text-left px-4 py-[4px] text-[11px] hover:bg-white/[0.04] transition-colors group"+ className="flex items-center gap-2 w-full text-left px-4 py-[4px] text-[13px] hover:bg-surface-3 transition-colors group"><span className="font-mono text-foreground/60 group-hover:text-primary truncate transition-colors">{symbol.name}</span>- <span className="text-foreground/20 text-[10px] ml-auto shrink-0">+ <span className="text-foreground/35 text-[12px] ml-auto shrink-0">{symbol.label}</span></button>@@ -306,7 +306,7 @@ export function ModulesTab({{selectedFile.region !== undefined && regionMeta.get(selectedFile.region) && (<buttononClick={() => onOpenRegion(selectedFile.region!)}- className="px-4 py-2.5 border-t border-border/30 text-left text-[11px] text-primary/70 hover:text-primary transition-colors"+ className="px-4 py-2.5 border-t border-border/30 text-left text-[13px] text-primary/70 hover:text-primary transition-colors">region: {regionMeta.get(selectedFile.region)!.name} — view in galaxy →</button>diff --git a/graph-ui/src/components/NodeDetailPanel.tsx b/graph-ui/src/components/NodeDetailPanel.tsxindex cbad8229b..90351b8f6 100644--- a/graph-ui/src/components/NodeDetailPanel.tsx+++ b/graph-ui/src/components/NodeDetailPanel.tsx@@ -115,7 +115,7 @@ export function NodeDetailPanel({};return (- <div className="w-full bg-[#0b1920]/95 backdrop-blur-xl flex flex-col h-full min-h-0 overflow-hidden">+ <div className="w-full bg-card/95 backdrop-blur-xl flex flex-col h-full min-h-0 overflow-hidden">{/* Header */}<div className="px-4 pt-4 pb-3 border-b border-border/30"><div className="flex items-start justify-between gap-2 mb-2">@@ -125,17 +125,17 @@ export function NodeDetailPanel({<h3 className="text-[13px] font-semibold text-foreground truncate">{node.name}</h3></div><span- className="inline-block px-2 py-0.5 rounded-md text-[10px] font-medium"+ className="inline-block px-2 py-0.5 rounded-md text-[12px] font-medium"style={{ backgroundColor: colorForLabel(node.label) + "18", color: colorForLabel(node.label) }}>{node.label}</span></div>- <button onClick={onClose} className="text-foreground/20 hover:text-foreground/50 transition-colors text-[16px] leading-none p-1">×</button>+ <button onClick={onClose} className="text-foreground/35 hover:text-foreground/50 transition-colors text-[16px] leading-none p-1">×</button></div>{node.file_path && (- <p className="text-[11px] text-foreground/30 font-mono mt-2 break-all leading-relaxed">+ <p className="text-[13px] text-foreground/45 font-mono mt-2 break-all leading-relaxed">{node.file_path}{node.start_line ? (<span className="text-foreground/45">@@ -152,7 +152,7 @@ export function NodeDetailPanel({<buttononClick={code ? () => setCode(null) : loadCode}disabled={codeLoading}- className="px-2.5 py-1 rounded-md bg-primary/15 text-primary text-[11px] font-medium hover:bg-primary/25 transition-colors disabled:opacity-50"+ className="px-2.5 py-1 rounded-md bg-primary/15 text-primary text-[13px] font-medium hover:bg-primary/25 transition-colors disabled:opacity-50">{codeLoading ? "Loading…" : code ? "Hide code" : "Show code"}</button>@@ -162,16 +162,16 @@ export function NodeDetailPanel({href={ghUrl}target="_blank"rel="noopener noreferrer"- className="px-2.5 py-1 rounded-md bg-white/[0.05] text-foreground/60 text-[11px] font-medium hover:bg-white/[0.09] hover:text-foreground/90 transition-colors"+ className="px-2.5 py-1 rounded-md bg-surface-3 text-foreground/60 text-[13px] font-medium hover:bg-surface-4 hover:text-foreground/90 transition-colors">Open on GitHub ↗</a>)}</div>- {codeError && <p className="text-[11px] text-red-400/80 mt-2">{codeError}</p>}+ {codeError && <p className="text-[13px] text-red-400/80 mt-2">{codeError}</p>}{code && (- <pre className="mt-2 max-h-[300px] overflow-auto rounded-md bg-black/40 border border-white/[0.06] p-2.5 text-[10.5px] leading-relaxed font-mono text-foreground/75 whitespace-pre">+ <pre className="mt-2 max-h-[300px] overflow-auto rounded-md bg-black/40 border border-border p-2.5 text-[12px] leading-relaxed font-mono text-foreground/75 whitespace-pre">{code}</pre>)}@@ -184,7 +184,7 @@ export function NodeDetailPanel({{ label: "Total", value: connections.length, color: "text-foreground" },].map((s) => (<div key={s.label}>- <p className="text-[9px] text-foreground/25 uppercase tracking-widest">{s.label}</p>+ <p className="text-[12px] text-foreground/40 uppercase tracking-widest">{s.label}</p><p className={`text-[18px] font-semibold tabular-nums ${s.color}`}>{s.value}</p></div>))}@@ -201,7 +201,7 @@ export function NodeDetailPanel({<ConnectionSection title="Referenced by" count={inbound.length} icon="←" groups={groupByType(inbound)} onNavigate={onNavigate} />)}{connections.length === 0 && (- <p className="text-[12px] text-foreground/20 text-center py-8">No connections</p>+ <p className="text-[12px] text-foreground/35 text-center py-8">No connections</p>)}</div></ScrollArea>@@ -218,7 +218,7 @@ function ConnectionGroup({ type, conns, icon, onNavigate }: {const remaining = conns.length - visible;return (<div className="mb-2">- <p className="text-[9px] text-foreground/20 uppercase tracking-wider mb-1 font-medium">+ <p className="text-[12px] text-foreground/35 uppercase tracking-wider mb-1 font-medium">{type.replace(/_/g, " ").toLowerCase()}</p><div className="space-y-px">@@ -226,18 +226,18 @@ function ConnectionGroup({ type, conns, icon, onNavigate }: {<buttonkey={`${c.node.id}-${i}`}onClick={() => onNavigate(c.node)}- className="flex items-center gap-1.5 w-full text-left px-2 py-[4px] rounded-md hover:bg-white/[0.04] text-[11px] transition-colors group"+ className="flex items-center gap-1.5 w-full text-left px-2 py-[4px] rounded-md hover:bg-surface-3 text-[13px] transition-colors group">- <span className="text-foreground/15 text-[10px] group-hover:text-foreground/30">{icon}</span>+ <span className="text-foreground/30 text-[12px] group-hover:text-foreground/45">{icon}</span><span className="w-[5px] h-[5px] rounded-full shrink-0" style={{ backgroundColor: colorForLabel(c.node.label) }} /><span className="text-foreground/55 group-hover:text-foreground/80 truncate">{c.node.name}</span>- <span className="text-foreground/10 ml-auto text-[10px] shrink-0">{c.node.label}</span>+ <span className="text-foreground/30 ml-auto text-[12px] shrink-0">{c.node.label}</span></button>))}{remaining > 0 && (<buttononClick={() => setVisible((v) => v + 200)}- className="w-full text-left px-2 py-1 text-[10px] text-primary/70 hover:text-primary transition-colors"+ className="w-full text-left px-2 py-1 text-[12px] text-primary/70 hover:text-primary transition-colors">Show {Math.min(remaining, 200)} more ({remaining} hidden)</button>@@ -254,8 +254,8 @@ function ConnectionSection({ title, count, icon, groups, onNavigate }: {}) {return (<div>- <p className="text-[11px] font-medium text-foreground/40 mb-2">- {title} <span className="text-foreground/15">({count})</span>+ <p className="text-[13px] font-medium text-foreground/40 mb-2">+ {title} <span className="text-foreground/30">({count})</span></p>{groups.map(([type, conns]) => (<ConnectionGroup key={type} type={type} conns={conns} icon={icon} onNavigate={onNavigate} />diff --git a/graph-ui/src/components/NodeTooltip.tsx b/graph-ui/src/components/NodeTooltip.tsxindex ea7c16bce..a9bdb45db 100644--- a/graph-ui/src/components/NodeTooltip.tsx+++ b/graph-ui/src/components/NodeTooltip.tsx@@ -20,19 +20,19 @@ export function NodeTooltip({ node }: NodeTooltipProps) {centerstyle={{ pointerEvents: "none" }}>- <div className="bg-[#1a1a2e]/95 backdrop-blur border border-white/10 rounded-lg px-3 py-2 text-xs whitespace-nowrap shadow-xl max-w-[350px]">+ <div className="bg-[#1a1a2e]/95 backdrop-blur border border-white/10 rounded-md px-3 py-2 text-xs whitespace-nowrap shadow-xl max-w-[350px]"><div className="flex items-center gap-1.5 mb-1"><spanclassName="w-2 h-2 rounded-full shrink-0"style={{ backgroundColor: colorForLabel(node.label) }}/><span className="text-white font-medium truncate">{node.name}</span>- <span className="text-white/30 ml-1 shrink-0">{node.label}</span>+ <span className="text-foreground/45 ml-1 shrink-0">{node.label}</span></div>{node.file_path && (- <p className="text-white/30 font-mono truncate">+ <p className="text-foreground/45 font-mono truncate">{node.file_path}- {lineRange(node) && <span className="text-white/40"> · {lineRange(node)}</span>}+ {lineRange(node) && <span className="text-foreground/40"> · {lineRange(node)}</span>}</p>)}{node.status && node.status !== "structural" && (@@ -41,15 +41,15 @@ export function NodeTooltip({ node }: NodeTooltipProps) {className="w-1.5 h-1.5 rounded-full shrink-0"style={{ backgroundColor: colorForStatus(node.status) }}/>- <span className="text-white/45">{node.status}</span>+ <span className="text-foreground/45">{node.status}</span>{node.in_calls !== undefined && (- <span className="text-white/25">+ <span className="text-foreground/40">· {node.in_calls} caller{node.in_calls === 1 ? "" : "s"}</span>)}</div>)}- <p className="text-white/20 mt-1 text-[10px]">click for code →</p>+ <p className="text-foreground/35 mt-1 text-[12px]">click for code →</p></div></Html>);diff --git a/graph-ui/src/components/OverviewTab.tsx b/graph-ui/src/components/OverviewTab.tsxindex ee50ffd13..afe2c9bb5 100644--- a/graph-ui/src/components/OverviewTab.tsx+++ b/graph-ui/src/components/OverviewTab.tsx@@ -6,7 +6,7 @@ import { useEffect, useMemo, useState } from "react";import { ScrollArea } from "@/components/ui/scroll-area";import { fetchArchitecture, archRows, type ArchitectureJson } from "../lib/atlas";import { fetchRegions } from "../hooks/useGraphData";-import { disambiguateRegionNames } from "../lib/regions";+import { disambiguateRegionNames, lensRegionsPayload, isBuiltinQn } from "../lib/regions";import { surprisingCouplings, suggestedQuestions } from "../lib/firstread";import { AddToPromptButton } from "./PromptBasket";import type { RegionsPayload } from "../lib/types";@@ -44,8 +44,8 @@ function shortQn(qn: string): string {function Card({ title, children, wide }: { title: string; children: React.ReactNode; wide?: boolean }) {return (- <div className={`bg-white/[0.02] border border-border/40 rounded-xl p-4 ${wide ? "col-span-full" : ""}`}>- <p className="text-[10px] uppercase tracking-widest text-foreground/30 mb-3">{title}</p>+ <div className={`bg-card border border-border/40 rounded-md p-4 ${wide ? "col-span-full" : ""}`}>+ <p className="text-[12px] uppercase tracking-widest text-foreground/45 mb-3">{title}</p>{children}</div>);@@ -61,6 +61,7 @@ export function OverviewTab({const [arch, setArch] = useState<ArchitectureJson | null>(null);const [regions, setRegions] = useState<RegionsPayload | null>(null);const [error, setError] = useState<string | null>(null);+ const [includeTests, setIncludeTests] = useState(false);useEffect(() => {let cancelled = false;@@ -81,14 +82,22 @@ export function OverviewTab({};}, [project]);+ const lensed = useMemo(+ () => (regions ? lensRegionsPayload(regions, includeTests) : null),+ [regions, includeTests],+ );const displayRegions = useMemo(- () => (regions ? disambiguateRegionNames(regions.regions) : []),- [regions],+ () => (lensed ? disambiguateRegionNames(lensed.regions) : []),+ [lensed],);- const couplings = useMemo(() => (regions ? surprisingCouplings(regions, 4) : []), [regions]);- const questions = useMemo(() => (regions ? suggestedQuestions(regions, {}, 4) : []), [regions]);+ const couplings = useMemo(() => (lensed ? surprisingCouplings(lensed, 4) : []), [lensed]);+ const questions = useMemo(() => (lensed ? suggestedQuestions(lensed, {}, 4) : []), [lensed]);- const hotspots = useMemo(() => archRows<HotspotRow>(arch, "hotspots"), [arch]);+ const hiddenTestRegions = regions && lensed ? regions.regions.length - lensed.regions.length : 0;+ const hotspots = useMemo(+ () => archRows<HotspotRow>(arch, "hotspots").filter((row) => !isBuiltinQn(row.qn)),+ [arch],+ );const entries = useMemo(() => archRows<EntryRow>(arch, "entry_points"), [arch]);const boundaries = useMemo(() => archRows<BoundaryRow>(arch, "boundaries"), [arch]);const languages = useMemo(() => archRows<LanguageRow>(arch, "languages"), [arch]);@@ -105,7 +114,7 @@ export function OverviewTab({if (!arch && !regions) {return (<div className="flex items-center justify-center h-full">- <p className="text-white/30 text-sm">Reading the map…</p>+ <p className="text-foreground/45 text-sm">Reading the map…</p></div>);}@@ -129,7 +138,7 @@ export function OverviewTab({},].map((stat) => (<div key={stat.label}>- <p className="text-[9px] uppercase tracking-widest text-foreground/25">{stat.label}</p>+ <p className="text-[12px] uppercase tracking-widest text-foreground/40">{stat.label}</p><p className="text-[17px] font-semibold text-foreground/90 tabular-nums">{stat.value}</p>@@ -137,7 +146,7 @@ export function OverviewTab({))}{regions && regions.unmapped_nodes > 0 && (<div>- <p className="text-[9px] uppercase tracking-widest text-foreground/25">Unmapped</p>+ <p className="text-[12px] uppercase tracking-widest text-foreground/40">Unmapped</p><p className="text-[17px] font-semibold text-amber-300/70 tabular-nums">{regions.unmapped_nodes.toLocaleString("en-US")}</p>@@ -148,12 +157,22 @@ export function OverviewTab({<div className="grid grid-cols-1 md:grid-cols-2 gap-4">{/* Regions — the map */}<Card title={`Regions — the de-facto modules (${regions?.method ?? "…"})`} wide>+ {hiddenTestRegions > 0 && (+ <button+ onClick={() => setIncludeTests((value) => !value)}+ className="float-right -mt-7 text-[12px] text-foreground/40 hover:text-foreground/70 transition-colors"+ >+ {includeTests+ ? "hide test code"+ : `${hiddenTestRegions} test region${hiddenTestRegions > 1 ? "s" : ""} hidden — show`}+ </button>+ )}<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-2">{displayRegions.slice(0, 12).map((region) => (<buttonkey={region.id}onClick={() => onOpenRegion(region.id)}- className="text-left rounded-lg border border-border/30 bg-white/[0.02] hover:bg-white/[0.05] hover:border-primary/30 p-3 transition-all group"+ className="text-left rounded-md border border-border/30 bg-card hover:bg-surface-3 hover:border-primary/30 p-3 transition-all group"><div className="flex items-center gap-2 mb-1"><span@@ -164,12 +183,12 @@ export function OverviewTab({{region.name}</span></div>- <p className="text-[10px] text-foreground/30 truncate">+ <p className="text-[12px] text-foreground/45 truncate">{region.members.toLocaleString("en-US")} symbols · cohesion{" "}{region.cohesion.toFixed(2)}</p>{region.why && (- <p className="text-[10px] text-foreground/25 mt-1 line-clamp-2">{region.why}</p>+ <p className="text-[12px] text-foreground/40 mt-1 line-clamp-2">{region.why}</p>)}</button>))}@@ -177,7 +196,7 @@ export function OverviewTab({{displayRegions.length > 12 && (<buttononClick={onOpenModules}- className="mt-2 text-[11px] text-primary/70 hover:text-primary transition-colors"+ className="mt-2 text-[13px] text-primary/70 hover:text-primary transition-colors">all {displayRegions.length} regions in Modules →</button>@@ -191,18 +210,18 @@ export function OverviewTab({<div key={hotspot.qn} className="flex items-center gap-2 py-[3px]"><buttononClick={() => onOpenSymbol(hotspot.qn)}- className="text-[11px] font-mono text-foreground/60 hover:text-primary truncate flex-1 text-left transition-colors"+ className="text-[13px] font-mono text-foreground/60 hover:text-primary truncate flex-1 text-left transition-colors"title={hotspot.qn}>{shortQn(hotspot.qn)}</button>- <span className="text-[10px] tabular-nums text-foreground/30 shrink-0">+ <span className="text-[12px] tabular-nums text-foreground/45 shrink-0">{Number(hotspot.fan_in).toLocaleString("en-US")}</span></div>))}{hotspots.length === 0 && (- <p className="text-[11px] text-foreground/25">No hotspot data.</p>+ <p className="text-[13px] text-foreground/40">No hotspot data.</p>)}</div></Card>@@ -217,21 +236,21 @@ export function OverviewTab({className="flex items-center gap-2 w-full text-left py-[3px] group"title={entry.qn}>- <span className="text-[11px] font-mono text-foreground/60 group-hover:text-primary truncate transition-colors">+ <span className="text-[13px] font-mono text-foreground/60 group-hover:text-primary truncate transition-colors">{shortQn(entry.qn)}</span>- <span className="text-[10px] text-foreground/20 truncate ml-auto shrink-0 max-w-[40%]">+ <span className="text-[12px] text-foreground/35 truncate ml-auto shrink-0 max-w-[40%]">{entry.file}</span></button>))}{entries.length === 0 && (- <p className="text-[11px] text-foreground/25">No entry points detected.</p>+ <p className="text-[13px] text-foreground/40">No entry points detected.</p>)}</div><buttononClick={onOpenFlows}- className="mt-2 text-[11px] text-primary/70 hover:text-primary transition-colors"+ className="mt-2 text-[13px] text-primary/70 hover:text-primary transition-colors">follow them in Flows →</button>@@ -242,16 +261,16 @@ export function OverviewTab({<div className="space-y-2">{couplings.map((coupling) => (<div key={`${coupling.source.id}-${coupling.target.id}`}>- <p className="text-[11.5px] text-foreground/70">+ <p className="text-[13px] text-foreground/70"><span className="font-medium">{coupling.source.name}</span>- <span className="text-foreground/30"> ⇄ </span>+ <span className="text-foreground/45"> ⇄ </span><span className="font-medium">{coupling.target.name}</span></p>- <p className="text-[10px] text-foreground/30">{coupling.reasons.join(" · ")}</p>+ <p className="text-[12px] text-foreground/45">{coupling.reasons.join(" · ")}</p></div>))}{couplings.length === 0 && (- <p className="text-[11px] text-foreground/25">+ <p className="text-[13px] text-foreground/40">No cross-region couplings stand out.</p>)}@@ -264,8 +283,8 @@ export function OverviewTab({{questions.map((question) => (<div key={question.question} className="flex items-start gap-2"><div className="flex-1 min-w-0">- <p className="text-[11.5px] text-foreground/70">{question.question}</p>- <p className="text-[10px] text-foreground/30">{question.why}</p>+ <p className="text-[13px] text-foreground/70">{question.question}</p>+ <p className="text-[12px] text-foreground/45">{question.why}</p></div><AddToPromptButtonsmall@@ -274,7 +293,7 @@ export function OverviewTab({</div>))}{questions.length === 0 && (- <p className="text-[11px] text-foreground/25">Nothing stands out structurally.</p>+ <p className="text-[13px] text-foreground/40">Nothing stands out structurally.</p>)}</div></Card>@@ -282,9 +301,9 @@ export function OverviewTab({{/* Boundaries */}<Card title="Boundaries — who calls across packages" wide><div className="overflow-x-auto">- <table className="w-full text-[11px]">+ <table className="w-full text-[13px]"><thead>- <tr className="text-left text-[9px] uppercase tracking-wider text-foreground/25">+ <tr className="text-left text-[12px] uppercase tracking-wider text-foreground/40"><th className="py-1 pr-4 font-medium">from</th><th className="py-1 pr-4 font-medium">to</th><th className="py-1 text-right font-medium">calls</th>@@ -303,7 +322,7 @@ export function OverviewTab({</tbody></table>{boundaries.length === 0 && (- <p className="text-[11px] text-foreground/25">No cross-package calls recorded.</p>+ <p className="text-[13px] text-foreground/40">No cross-package calls recorded.</p>)}</div></Card>diff --git a/graph-ui/src/components/ProjectCard.tsx b/graph-ui/src/components/ProjectCard.tsxindex 930e9e850..c9ccca01d 100644--- a/graph-ui/src/components/ProjectCard.tsx+++ b/graph-ui/src/components/ProjectCard.tsx@@ -16,11 +16,11 @@ export function ProjectCard({ project, schema, onSelect }: ProjectCardProps) {const totalEdges = schema?.edge_types?.reduce((s, t) => s + t.count, 0) ?? 0;return (- <div className="border border-white/10 rounded-lg p-4 hover:border-white/20 transition-colors">+ <div className="border border-white/10 rounded-md p-4 hover:border-white/20 transition-colors"><div className="flex items-start justify-between mb-3"><div><h3 className="text-white font-medium">{project.name}</h3>- <p className="text-white/40 text-xs font-mono mt-0.5 truncate max-w-[300px]">+ <p className="text-foreground/40 text-xs font-mono mt-0.5 truncate max-w-[300px]">{project.root_path}</p></div>@@ -34,7 +34,7 @@ export function ProjectCard({ project, schema, onSelect }: ProjectCardProps) {{schema && (<>- <div className="flex gap-4 text-xs text-white/60 mb-3">+ <div className="flex gap-4 text-xs text-foreground/60 mb-3"><span>{formatNumber(totalNodes)} nodes</span><span>{formatNumber(totalEdges)} edges</span></div>@@ -54,7 +54,7 @@ export function ProjectCard({ project, schema, onSelect }: ProjectCardProps) {<span style={{ color: colorForLabel(l.label) }}>{l.label}</span>- <span className="text-white/40">{formatNumber(l.count)}</span>+ <span className="text-foreground/40">{formatNumber(l.count)}</span></span>))}</div>@@ -63,7 +63,7 @@ export function ProjectCard({ project, schema, onSelect }: ProjectCardProps) {)}{!schema && (- <p className="text-white/30 text-xs italic">Loading schema...</p>+ <p className="text-foreground/45 text-xs italic">Loading schema...</p>)}</div>);diff --git a/graph-ui/src/components/PromptBasket.tsx b/graph-ui/src/components/PromptBasket.tsxindex 1e672fa1d..3dfeb39b9 100644--- a/graph-ui/src/components/PromptBasket.tsx+++ b/graph-ui/src/components/PromptBasket.tsx@@ -78,9 +78,9 @@ export function AddToPromptButton({ item, small }: { item: BasketItem; small?: b<buttononClick={() => basket.add(item)}disabled={inBasket}- className={`${small ? "px-1.5 py-0.5 text-[10px]" : "px-2.5 py-1 text-[11px]"} rounded-md font-medium transition-colors ${+ className={`${small ? "px-1.5 py-0.5 text-[12px]" : "px-2.5 py-1 text-[13px]"} rounded-md font-medium transition-colors ${inBasket- ? "bg-white/[0.04] text-foreground/25 cursor-default"+ ? "bg-popover text-foreground/40 cursor-default": "bg-primary/15 text-primary hover:bg-primary/25"}`}title={inBasket ? "Already in the prompt" : "Cite this in the prompt composer"}@@ -131,23 +131,23 @@ export function PromptBasketDrawer({ project }: { project: string | null }) {}return (- <div className="fixed bottom-0 right-0 z-40 w-full sm:w-[440px] max-h-[70vh] bg-[#0b1920]/98 border-l border-t border-border/60 rounded-tl-xl backdrop-blur-xl flex flex-col shadow-2xl">+ <div className="fixed bottom-0 right-0 z-40 w-full sm:w-[440px] max-h-[70vh] bg-card/95 border-l border-t border-border/60 rounded-tl-xl backdrop-blur-xl flex flex-col shadow-2xl"><div className="flex items-center justify-between px-4 py-2.5 border-b border-border/40"><span className="text-[12px] font-semibold text-foreground/80">- Prompt composer <span className="text-foreground/30">({basket.items.length} cited)</span>+ Prompt composer <span className="text-foreground/45">({basket.items.length} cited)</span></span><div className="flex gap-2 items-center">{basket.items.length > 0 && (<buttononClick={basket.clear}- className="text-[11px] text-foreground/30 hover:text-foreground/60 transition-colors"+ className="text-[13px] text-foreground/45 hover:text-foreground/60 transition-colors">clear</button>)}<buttononClick={() => basket.setOpen(false)}- className="text-foreground/25 hover:text-foreground/60 text-[15px] leading-none transition-colors"+ className="text-foreground/40 hover:text-foreground/60 text-[15px] leading-none transition-colors">×</button>@@ -160,27 +160,27 @@ export function PromptBasketDrawer({ project }: { project: string | null }) {placeholder="What do you want your agent to do?"value={goal}onChange={(event) => setGoal(event.target.value)}- className="w-full bg-white/[0.04] border border-white/[0.06] rounded-lg px-3 py-1.5 text-[12px] text-foreground placeholder-foreground/25 outline-none focus:border-primary/40 transition-all"+ className="w-full bg-popover border border-border rounded-md px-3 py-1.5 text-[12px] text-foreground placeholder-foreground/25 outline-none focus:border-primary/40 transition-all"/></div><div className="px-4 py-2 border-b border-border/30 max-h-[120px] overflow-y-auto">{basket.items.length === 0 ? (- <p className="text-[11px] text-foreground/25 py-1">+ <p className="text-[13px] text-foreground/40 py-1">Cite symbols, regions, flows or questions with “+ prompt” anywhere in Atlas.</p>) : (basket.items.map((item) => (<div key={basketKey(item)} className="flex items-center gap-2 py-[3px]">- <span className="text-[10px] uppercase tracking-wider text-foreground/25 w-14 shrink-0">+ <span className="text-[12px] uppercase tracking-wider text-foreground/40 w-14 shrink-0">{item.kind}</span>- <span className="text-[11px] font-mono text-foreground/60 truncate flex-1">+ <span className="text-[13px] font-mono text-foreground/60 truncate flex-1">{itemLabel(item)}</span><buttononClick={() => basket.remove(basketKey(item))}- className="text-foreground/20 hover:text-foreground/50 text-[12px] transition-colors"+ className="text-foreground/35 hover:text-foreground/50 text-[12px] transition-colors">×</button>@@ -189,7 +189,7 @@ export function PromptBasketDrawer({ project }: { project: string | null }) {)}</div>- <pre className="flex-1 min-h-[120px] overflow-auto px-4 py-3 text-[10.5px] leading-relaxed font-mono text-foreground/70 whitespace-pre-wrap">+ <pre className="flex-1 min-h-[120px] overflow-auto px-4 py-3 text-[12px] leading-relaxed font-mono text-foreground/70 whitespace-pre-wrap">{prompt}</pre>diff --git a/graph-ui/src/components/RegionPanel.tsx b/graph-ui/src/components/RegionPanel.tsxindex 69bb0a886..83c07b494 100644--- a/graph-ui/src/components/RegionPanel.tsx+++ b/graph-ui/src/components/RegionPanel.tsx@@ -11,7 +11,7 @@ interface RegionPanelProps {* its representative symbols, and the door into its full-detail layout. */export function RegionPanel({ region, onOpen, onClose }: RegionPanelProps) {return (- <div className="w-full bg-[#0b1920]/95 backdrop-blur-xl flex flex-col h-full min-h-0 overflow-hidden">+ <div className="w-full bg-card/95 backdrop-blur-xl flex flex-col h-full min-h-0 overflow-hidden"><div className="px-4 pt-4 pb-3 border-b border-border/30"><div className="flex items-start justify-between gap-2 mb-2"><div className="min-w-0 flex-1">@@ -24,27 +24,27 @@ export function RegionPanel({ region, onOpen, onClose }: RegionPanelProps) {{region.name}</h3></div>- <span className="inline-block px-2 py-0.5 rounded-md text-[10px] font-medium bg-white/[0.06] text-foreground/60">+ <span className="inline-block px-2 py-0.5 rounded-md text-[12px] font-medium bg-surface-3 text-foreground/60">Region</span></div><buttononClick={onClose}- className="text-foreground/20 hover:text-foreground/50 transition-colors text-[16px] leading-none p-1"+ className="text-foreground/35 hover:text-foreground/50 transition-colors text-[16px] leading-none p-1">×</button></div>{region.why && (- <p className="text-[11px] text-foreground/40 mt-2 leading-relaxed">+ <p className="text-[13px] text-foreground/40 mt-2 leading-relaxed">{region.why}</p>)}<buttononClick={() => onOpen(region)}- className="mt-3 px-2.5 py-1 rounded-md bg-primary/15 text-primary text-[11px] font-medium hover:bg-primary/25 transition-colors"+ className="mt-3 px-2.5 py-1 rounded-md bg-primary/15 text-primary text-[13px] font-medium hover:bg-primary/25 transition-colors">Open region →</button>@@ -56,7 +56,7 @@ export function RegionPanel({ region, onOpen, onClose }: RegionPanelProps) {{ label: "Cohesion", value: region.cohesion.toFixed(2) },].map((stat) => (<div key={stat.label}>- <p className="text-[9px] text-foreground/25 uppercase tracking-widest">+ <p className="text-[12px] text-foreground/40 uppercase tracking-widest">{stat.label}</p><p className="text-[16px] font-semibold tabular-nums text-foreground">@@ -69,20 +69,20 @@ export function RegionPanel({ region, onOpen, onClose }: RegionPanelProps) {<ScrollArea className="flex-1 min-h-0"><div className="px-4 py-3">- <p className="text-[11px] font-medium text-foreground/40 mb-2">+ <p className="text-[13px] font-medium text-foreground/40 mb-2">Most connected</p><div className="space-y-px">{region.top_nodes.map((name) => (<pkey={name}- className="px-2 py-[4px] text-[11px] font-mono text-foreground/55 truncate"+ className="px-2 py-[4px] text-[13px] font-mono text-foreground/55 truncate">{name}</p>))}{region.top_nodes.length === 0 && (- <p className="text-[12px] text-foreground/20 py-4 text-center">+ <p className="text-[12px] text-foreground/35 py-4 text-center">No callable members</p>)}diff --git a/graph-ui/src/components/Sidebar.tsx b/graph-ui/src/components/Sidebar.tsxindex 52a76a8ae..52a0b1f1d 100644--- a/graph-ui/src/components/Sidebar.tsx+++ b/graph-ui/src/components/Sidebar.tsx@@ -78,15 +78,15 @@ function TreeItem({ dir, depth, onSelect, onSelectNode, selectedPath }: {<buttononClick={() => { setExpanded(!expanded); onSelect(dir.fullPath, dir.nodeIds); }}className={`flex items-center gap-1.5 w-full text-left px-3 py-[5px] text-[12px] transition-colors ${- isSelected ? "bg-primary/10 text-primary" : "text-foreground/60 hover:text-foreground/80 hover:bg-white/[0.03]"+ isSelected ? "bg-primary/10 text-primary" : "text-foreground/60 hover:text-foreground/80 hover:bg-surface-3"}`}style={{ paddingLeft: `${depth * 16 + 12}px` }}>- <span className="text-foreground/20 w-3 text-center text-[10px] shrink-0">+ <span className="text-foreground/35 w-3 text-center text-[12px] shrink-0">{(dir.children.size > 0 || dir.directNodes.length > 0) ? (expanded ? "▾" : "▸") : ""}</span><span className="truncate font-medium">{dir.name}</span>- <span className="text-foreground/15 ml-auto text-[10px] tabular-nums shrink-0">{dir.nodeIds.size}</span>+ <span className="text-foreground/30 ml-auto text-[12px] tabular-nums shrink-0">{dir.nodeIds.size}</span></button>{expanded && (<>@@ -95,12 +95,12 @@ function TreeItem({ dir, depth, onSelect, onSelectNode, selectedPath }: {<buttonkey={gn.id}onClick={() => onSelectNode(gn)}- className="flex items-center gap-1.5 w-full text-left px-3 py-[3px] text-[11px] text-foreground/40 hover:text-foreground/60 hover:bg-white/[0.02] transition-colors"+ className="flex items-center gap-1.5 w-full text-left px-3 py-[3px] text-[13px] text-foreground/40 hover:text-foreground/60 hover:bg-surface-3 transition-colors"style={{ paddingLeft: `${(depth+1) * 16 + 12}px` }}><span className="w-[5px] h-[5px] rounded-full shrink-0" style={{ backgroundColor: gn.color }} /><span className="truncate font-mono">{gn.name}</span>- <span className="text-foreground/10 ml-auto text-[10px] shrink-0">{gn.label}</span>+ <span className="text-foreground/30 ml-auto text-[12px] shrink-0">{gn.label}</span></button>))}</>@@ -125,7 +125,7 @@ export function Sidebar({ nodes, onSelectPath, onSelectNode, selectedPath }: Sidreturn (<div className="flex flex-col flex-1 min-h-0"><div className="px-4 pt-3 pb-2 shrink-0">- <span className="text-[11px] font-medium text-foreground/50 uppercase tracking-widest">+ <span className="text-[13px] font-medium text-foreground/50 uppercase tracking-widest">{t.graph.folders}</span></div>@@ -136,7 +136,7 @@ export function Sidebar({ nodes, onSelectPath, onSelectNode, selectedPath }: Sidplaceholder={t.graph.search}value={search}onChange={(e) => setSearch(e.target.value)}- className="w-full bg-white/[0.04] border border-white/[0.06] rounded-lg px-3 py-1.5 text-[12px] text-foreground placeholder-foreground/25 outline-none focus:border-primary/40 focus:bg-white/[0.06] transition-all"+ className="w-full bg-popover border border-border rounded-md px-3 py-1.5 text-[12px] text-foreground placeholder-foreground/25 outline-none focus:border-primary/40 focus:bg-surface-3 transition-all"/></div></div>@@ -145,7 +145,7 @@ export function Sidebar({ nodes, onSelectPath, onSelectNode, selectedPath }: Sid<div className="py-1">{filtered ? (filtered.length === 0 ? (- <p className="text-foreground/20 text-[12px] px-4 py-6 text-center">+ <p className="text-foreground/35 text-[12px] px-4 py-6 text-center">{t.common.noMatches}</p>) : (@@ -153,11 +153,11 @@ export function Sidebar({ nodes, onSelectPath, onSelectNode, selectedPath }: Sid<buttonkey={n.id}onClick={() => onSelectNode(n)}- className="flex items-center gap-2 w-full text-left px-4 py-1.5 text-[11px] hover:bg-white/[0.03] transition-colors"+ className="flex items-center gap-2 w-full text-left px-4 py-1.5 text-[13px] hover:bg-surface-3 transition-colors"><span className="w-[5px] h-[5px] rounded-full shrink-0" style={{ backgroundColor: n.color }} /><span className="text-foreground/60 truncate">{n.name}</span>- <span className="text-foreground/15 ml-auto text-[10px] font-mono truncate max-w-[100px]">{n.file_path}</span>+ <span className="text-foreground/30 ml-auto text-[12px] font-mono truncate max-w-[100px]">{n.file_path}</span></button>)))@@ -171,7 +171,7 @@ export function Sidebar({ nodes, onSelectPath, onSelectNode, selectedPath }: Sid<div className="px-3 py-2 border-t border-border/30"><buttononClick={() => onSelectPath("", new Set())}- className="w-full px-3 py-1.5 rounded-lg bg-white/[0.04] hover:bg-white/[0.07] text-[11px] text-foreground/40 font-medium transition-all"+ className="w-full px-3 py-1.5 rounded-md bg-popover hover:bg-white/[0.07] text-[13px] text-foreground/40 font-medium transition-all">{t.graph.clearSelection}</button>diff --git a/graph-ui/src/components/StatsTab.tsx b/graph-ui/src/components/StatsTab.tsxindex fd32d39eb..95673c121 100644--- a/graph-ui/src/components/StatsTab.tsx+++ b/graph-ui/src/components/StatsTab.tsx@@ -54,9 +54,9 @@ function HealthDot({ name }: { name: string }) {/>{/* Tooltip */}<div className="absolute bottom-full left-1/2 -translate-x-1/2 mb-3 hidden group-hover:block z-20 pointer-events-none">- <div className="bg-[#0b1920] border border-border/50 rounded-lg px-3 py-2 text-[11px] whitespace-nowrap shadow-xl">+ <div className="bg-card border border-border/50 rounded-md px-3 py-2 text-[13px] whitespace-nowrap shadow-xl"><p className="font-medium" style={{ color: dotColor }}>{label}</p>- {info && <p className="text-foreground/35 text-[10px] mt-0.5">{info}</p>}+ {info && <p className="text-foreground/50 text-[12px] mt-0.5">{info}</p>}</div></div></div>@@ -105,10 +105,10 @@ function AdrButton({ project }: { project: string }) {<><buttononClick={() => { setOpen(true); fetchAdr(); }}- className={`px-2.5 py-1 rounded-lg text-[10px] font-medium transition-all ${+ className={`px-2.5 py-1 rounded-md text-[12px] font-medium transition-all ${hasAdr? "bg-accent/15 text-accent hover:bg-accent/25"- : "bg-white/[0.03] text-foreground/25 hover:text-foreground/40 hover:bg-white/[0.06]"+ : "bg-popover text-foreground/40 hover:text-foreground/40 hover:bg-surface-3"}`}>{hasAdr ? "ADR" : "+ ADR"}@@ -121,18 +121,18 @@ function AdrButton({ project }: { project: string }) {<div className="flex items-center justify-between mb-4"><div><h3 className="text-[15px] font-semibold text-foreground/90">{t.adr.title}</h3>- <p className="text-[11px] text-foreground/30 font-mono mt-0.5">{project}</p>+ <p className="text-[13px] text-foreground/45 font-mono mt-0.5">{project}</p></div>- <button onClick={() => setOpen(false)} className="text-foreground/20 hover:text-foreground/50 text-[16px] p-1">×</button>+ <button onClick={() => setOpen(false)} className="text-foreground/35 hover:text-foreground/50 text-[16px] p-1">×</button></div>{updatedAt && (- <p className="text-[10px] text-foreground/20 mb-3">{t.adr.lastUpdated}: {updatedAt}</p>+ <p className="text-[12px] text-foreground/35 mb-3">{t.adr.lastUpdated}: {updatedAt}</p>)}<textareavalue={content}onChange={(e) => setContent(e.target.value)}placeholder={"# Architecture Decision Record\n\n## Context\n...\n\n## Decision\n...\n\n## Consequences\n..."}- className="flex-1 min-h-[300px] bg-white/[0.03] border border-white/[0.06] rounded-xl px-4 py-3 text-[12px] text-foreground font-mono placeholder-foreground/15 outline-none focus:border-primary/30 resize-none leading-relaxed"+ className="flex-1 min-h-[300px] bg-popover border border-border rounded-md px-4 py-3 text-[12px] text-foreground font-mono placeholder-foreground/15 outline-none focus:border-primary/30 resize-none leading-relaxed"/><div className="flex justify-end gap-2 mt-4">{hasAdr && (@@ -140,13 +140,13 @@ function AdrButton({ project }: { project: string }) {onClick={async () => {setContent(""); await save("");}}- className="px-3 py-2 rounded-lg text-[12px] text-destructive/60 hover:text-destructive hover:bg-destructive/10 font-medium transition-all"+ className="px-3 py-2 rounded-md text-[12px] text-destructive/60 hover:text-destructive hover:bg-destructive/10 font-medium transition-all">{t.common.delete}</button>)}- <button onClick={() => setOpen(false)} className="px-4 py-2 rounded-lg text-[12px] text-foreground/40 hover:bg-white/[0.04] font-medium transition-all">{t.common.cancel}</button>- <button onClick={() => save()} disabled={saving} className="px-4 py-2 rounded-lg bg-primary/20 hover:bg-primary/30 text-primary text-[12px] font-medium transition-all disabled:opacity-30">+ <button onClick={() => setOpen(false)} className="px-4 py-2 rounded-md text-[12px] text-foreground/40 hover:bg-surface-3 font-medium transition-all">{t.common.cancel}</button>+ <button onClick={() => save()} disabled={saving} className="px-4 py-2 rounded-md bg-primary/20 hover:bg-primary/30 text-primary text-[12px] font-medium transition-all disabled:opacity-30">{saving ? t.common.saving : t.common.save}</button></div>@@ -292,30 +292,30 @@ function CreateIndexModal({ onClose, onCreated }: { onClose: () => void; onCreat{/* Header */}<div className="px-5 pt-5 pb-3 shrink-0"><h3 className="text-[15px] font-semibold text-foreground/90 mb-1">{t.index.selectRepositoryFolder}</h3>- <p className="text-[12px] text-foreground/30">{t.index.instructions}</p>+ <p className="text-[12px] text-foreground/45">{t.index.instructions}</p></div><div className="px-5 pb-3 grid grid-cols-[1fr_220px] gap-3 shrink-0"><label className="block">- <span className="block text-[10px] uppercase tracking-widest text-foreground/25 mb-1">{t.index.repositoryPath}</span>+ <span className="block text-[12px] uppercase tracking-widest text-foreground/40 mb-1">{t.index.repositoryPath}</span><inputaria-label={t.index.repositoryPath}value={currentPath}onChange={(e) => setCurrentPath(e.target.value)}onKeyDown={(e) => { if (e.key === "Enter" && /^[A-Za-z]:/.test(currentPath.replace(/\\/g, "/"))) { e.preventDefault(); void browse(currentPath); } }}- className="w-full bg-white/[0.04] border border-white/[0.06] rounded-lg px-3 py-2 text-[12px] text-foreground font-mono outline-none focus:border-primary/40"+ className="w-full bg-popover border border-border rounded-md px-3 py-2 text-[12px] text-foreground font-mono outline-none focus:border-primary/40"/></label><label className="block">- <span className="block text-[10px] uppercase tracking-widest text-foreground/25 mb-1">{t.index.projectName}</span>+ <span className="block text-[12px] uppercase tracking-widest text-foreground/40 mb-1">{t.index.projectName}</span><inputaria-label={t.index.projectName}value={projectName}placeholder={t.index.projectNamePlaceholder}onChange={(e) => setProjectName(e.target.value)}- className="w-full bg-white/[0.04] border border-white/[0.06] rounded-lg px-3 py-2 text-[12px] text-foreground outline-none focus:border-primary/40 placeholder:text-foreground/20"+ className="w-full bg-popover border border-border rounded-md px-3 py-2 text-[12px] text-foreground outline-none focus:border-primary/40 placeholder:text-foreground/35"/>- <span className="block text-[10px] text-foreground/25 mt-1">{t.index.projectNameHelp}</span>+ <span className="block text-[12px] text-foreground/40 mt-1">{t.index.projectNameHelp}</span></label></div>@@ -326,7 +326,7 @@ function CreateIndexModal({ onClose, onCreated }: { onClose: () => void; onCreatplaceholder={t.index.filterFolders}onChange={(e) => setFilter(e.target.value)}onKeyDown={onFilterKeyDown}- className="flex-1 bg-white/[0.04] border border-white/[0.06] rounded-lg px-3 py-2 text-[12px] text-foreground outline-none focus:border-primary/40 placeholder:text-foreground/20"+ className="flex-1 bg-popover border border-border rounded-md px-3 py-2 text-[12px] text-foreground outline-none focus:border-primary/40 placeholder:text-foreground/35"/><div className="flex items-center gap-1">{displayRoots.map((root) => (@@ -334,7 +334,7 @@ function CreateIndexModal({ onClose, onCreated }: { onClose: () => void; onCreatkey={root}aria-label={t.index.browseRoot(root)}onClick={() => browse(root)}- className="px-2.5 py-2 rounded-lg bg-white/[0.04] hover:bg-white/[0.07] text-[11px] text-foreground/45 font-mono transition-all"+ className="px-2.5 py-2 rounded-md bg-popover hover:bg-white/[0.07] text-[13px] text-foreground/45 font-mono transition-all">{root}</button>@@ -343,13 +343,13 @@ function CreateIndexModal({ onClose, onCreated }: { onClose: () => void; onCreat</div>{/* Breadcrumb */}- <div className="px-5 py-2 border-y border-border/20 flex items-center gap-0.5 overflow-x-auto text-[11px] shrink-0">+ <div className="px-5 py-2 border-y border-border/20 flex items-center gap-0.5 overflow-x-auto text-[13px] shrink-0">{!isWinPath && (<button onClick={() => browse("/")} className="text-primary/60 hover:text-primary shrink-0 transition-colors">/</button>)}{segments.map((seg, i) => (<span key={i} className="flex items-center gap-0.5 shrink-0">- {(i > 0 || !isWinPath) && <span className="text-foreground/15">/</span>}+ {(i > 0 || !isWinPath) && <span className="text-foreground/30">/</span>}<buttononClick={() => browse(crumbPath(i))}className={`transition-colors ${i === segments.length - 1 ? "text-foreground/70 font-medium" : "text-primary/50 hover:text-primary"}`}@@ -367,22 +367,22 @@ function CreateIndexModal({ onClose, onCreated }: { onClose: () => void; onCreat{currentPath !== "/" && (<buttononClick={() => browse(parentPath)}- className="flex items-center gap-2 w-full text-left px-3 py-2 rounded-lg hover:bg-white/[0.04] text-[12px] text-foreground/40 transition-colors"+ className="flex items-center gap-2 w-full text-left px-3 py-2 rounded-md hover:bg-surface-3 text-[12px] text-foreground/40 transition-colors">- <span className="text-foreground/20">↑</span>+ <span className="text-foreground/35">↑</span><span>..</span></button>)}{loading ? (- <p className="text-foreground/20 text-[12px] text-center py-8">{t.common.loading}</p>+ <p className="text-foreground/35 text-[12px] text-center py-8">{t.common.loading}</p>) : filteredDirs.length === 0 ? (- <p className="text-foreground/15 text-[12px] text-center py-8">{t.index.noSubdirectories}</p>+ <p className="text-foreground/30 text-[12px] text-center py-8">{t.index.noSubdirectories}</p>) : (filteredDirs.map((d, i) => (<divkey={d}- className={`flex items-center gap-2 rounded-lg px-3 py-1.5 text-[12px] transition-colors group ${- i === activeIndex ? "bg-white/[0.05]" : "hover:bg-white/[0.04]"+ className={`flex items-center gap-2 rounded-md px-3 py-1.5 text-[12px] transition-colors group ${+ i === activeIndex ? "bg-surface-3" : "hover:bg-surface-3"}`}><button@@ -390,14 +390,14 @@ function CreateIndexModal({ onClose, onCreated }: { onClose: () => void; onCreatonClick={() => browse(joinPath(currentPath, d))}className="flex min-w-0 flex-1 items-center gap-2 text-left text-foreground/60">- <span className="text-foreground/20 group-hover:text-foreground/40">/</span>+ <span className="text-foreground/35 group-hover:text-foreground/40">/</span><span className="truncate">{d}</span></button><buttonaria-label={t.index.indexDirectory(d)}onClick={() => submit(joinPath(currentPath, d))}disabled={submitting}- className="opacity-100 sm:opacity-0 sm:group-hover:opacity-100 px-2 py-1 rounded-md bg-primary/15 hover:bg-primary/25 text-primary text-[10px] font-medium transition-all disabled:opacity-30"+ className="opacity-100 sm:opacity-0 sm:group-hover:opacity-100 px-2 py-1 rounded-md bg-primary/15 hover:bg-primary/25 text-primary text-[12px] font-medium transition-all disabled:opacity-30">{t.index.indexThisFolder}</button>@@ -409,12 +409,12 @@ function CreateIndexModal({ onClose, onCreated }: { onClose: () => void; onCreat{/* Footer */}<div className="px-5 py-4 border-t border-border/20 shrink-0">- {error && <div className="rounded-lg bg-destructive/10 border border-destructive/20 px-3 py-2 mb-3"><p className="text-destructive text-[11px]">{error}</p></div>}+ {error && <div className="rounded-md bg-destructive/10 border border-destructive/20 px-3 py-2 mb-3"><p className="text-destructive text-[13px]">{error}</p></div>}<div className="flex items-center justify-between">- <p className="text-[11px] text-foreground/25 font-mono truncate max-w-[250px]">{currentPath}</p>+ <p className="text-[13px] text-foreground/40 font-mono truncate max-w-[250px]">{currentPath}</p><div className="flex gap-2 shrink-0">- <button onClick={onClose} className="px-3 py-2 rounded-lg text-[12px] text-foreground/40 hover:bg-white/[0.04] font-medium transition-all">{t.common.cancel}</button>- <button onClick={() => submit()} disabled={submitting || !currentPath} className="px-4 py-2 rounded-lg bg-primary/20 hover:bg-primary/30 text-primary text-[12px] font-medium transition-all disabled:opacity-30">+ <button onClick={onClose} className="px-3 py-2 rounded-md text-[12px] text-foreground/40 hover:bg-surface-3 font-medium transition-all">{t.common.cancel}</button>+ <button onClick={() => submit()} disabled={submitting || !currentPath} className="px-4 py-2 rounded-md bg-primary/20 hover:bg-primary/30 text-primary text-[12px] font-medium transition-all disabled:opacity-30">{submitting ? t.index.starting : t.index.indexThisFolder}</button></div>@@ -461,23 +461,23 @@ export function IndexProgress({ onDone }: { onDone: () => void }) {if (active.length === 0 && errors.length === 0) return null;return (- <div className="rounded-xl border border-primary/20 bg-primary/5 p-4 mb-6">+ <div className="rounded-md border border-primary/20 bg-primary/5 p-4 mb-6">{active.map((j) => (<div key={j.slot} className="flex items-center gap-3"><div className="w-4 h-4 border-2 border-primary/30 border-t-primary rounded-full animate-spin shrink-0" /><div><p className="text-[12px] text-primary font-medium">{t.projects.indexingInProgress}</p>- <p className="text-[11px] text-foreground/30 font-mono">{j.path}</p>+ <p className="text-[13px] text-foreground/45 font-mono">{j.path}</p></div></div>))}{errors.map((j) => (- <div key={j.slot} className="flex items-start gap-3 mt-3 first:mt-0 p-3 rounded-lg border border-destructive/20 bg-destructive/5 text-destructive">+ <div key={j.slot} className="flex items-start gap-3 mt-3 first:mt-0 p-3 rounded-md border border-destructive/20 bg-destructive/5 text-destructive"><span className="text-[14px]">⚠️</span><div className="flex-1 min-w-0"><p className="text-[12px] font-semibold">{t.projects.indexingFailed}</p>- <p className="text-[11px] font-mono truncate">{j.path}</p>- {j.error && <p className="text-[10px] opacity-75 mt-1 font-mono">{j.error}</p>}+ <p className="text-[13px] font-mono truncate">{j.path}</p>+ {j.error && <p className="text-[12px] opacity-75 mt-1 font-mono">{j.error}</p>}</div></div>))}@@ -485,7 +485,7 @@ export function IndexProgress({ onDone }: { onDone: () => void }) {<div className="flex justify-end mt-3"><buttononClick={onDone}- className="px-3 py-1 rounded bg-destructive/10 hover:bg-destructive/20 text-destructive text-[11px] font-medium transition-all"+ className="px-3 py-1 rounded bg-destructive/10 hover:bg-destructive/20 text-destructive text-[13px] font-medium transition-all">{t.common.dismiss}</button>@@ -529,8 +529,8 @@ export function StatsTab({ onSelectProject }: StatsTabProps) {{ label: t.projects.nodes, value: aggregate.nodes, color: "text-foreground/80" },{ label: t.projects.edges, value: aggregate.edges, color: "text-foreground/80" },].map((s) => (- <div key={s.label} className="flex-1 rounded-xl border border-border/30 bg-white/[0.02] p-4">- <p className="text-[10px] text-foreground/25 uppercase tracking-widest mb-1">{s.label}</p>+ <div key={s.label} className="flex-1 rounded-md border border-border/30 bg-card p-4">+ <p className="text-[12px] text-foreground/40 uppercase tracking-widest mb-1">{s.label}</p><p className={`text-[22px] font-semibold tabular-nums ${s.color}`}>{s.value.toLocaleString()}</p></div>))}@@ -542,17 +542,17 @@ export function StatsTab({ onSelectProject }: StatsTabProps) {<div className="flex items-center justify-between mb-6"><h2 className="text-[15px] font-semibold text-foreground/80">{t.projects.indexedProjects}</h2><div className="flex items-center gap-2">- <button onClick={() => setShowModal(true)} className="px-3 py-1.5 rounded-lg bg-primary/15 hover:bg-primary/25 text-primary text-[12px] font-medium transition-all">+ {t.index.newIndex}</button>- <button onClick={refresh} disabled={loading} className="px-3 py-1.5 rounded-lg bg-white/[0.04] hover:bg-white/[0.07] text-[12px] text-foreground/40 font-medium transition-all disabled:opacity-30">{loading ? "..." : t.common.refresh}</button>+ <button onClick={() => setShowModal(true)} className="px-3 py-1.5 rounded-md bg-primary/15 hover:bg-primary/25 text-primary text-[12px] font-medium transition-all">+ {t.index.newIndex}</button>+ <button onClick={refresh} disabled={loading} className="px-3 py-1.5 rounded-md bg-popover hover:bg-white/[0.07] text-[12px] text-foreground/40 font-medium transition-all disabled:opacity-30">{loading ? "..." : t.common.refresh}</button></div></div>- {error && <div className="rounded-xl border border-destructive/20 bg-destructive/5 p-4 mb-6"><p className="text-destructive text-[13px]">{error}</p></div>}+ {error && <div className="rounded-md border border-destructive/20 bg-destructive/5 p-4 mb-6"><p className="text-destructive text-[13px]">{error}</p></div>}{!loading && projects.length === 0 && !error && (<div className="text-center py-20">- <p className="text-foreground/25 text-[13px] mb-2">{t.projects.noIndexedProjects}</p>- <button onClick={() => setShowModal(true)} className="px-4 py-2 rounded-lg bg-primary/15 hover:bg-primary/25 text-primary text-[12px] font-medium transition-all">{t.projects.indexFirstRepository}</button>+ <p className="text-foreground/40 text-[13px] mb-2">{t.projects.noIndexedProjects}</p>+ <button onClick={() => setShowModal(true)} className="px-4 py-2 rounded-md bg-primary/15 hover:bg-primary/25 text-primary text-[12px] font-medium transition-all">{t.projects.indexFirstRepository}</button></div>)}@@ -563,30 +563,30 @@ export function StatsTab({ onSelectProject }: StatsTabProps) {const totalEdges =p.project.edges ?? p.schema?.edge_types?.reduce((s, t) => s + t.count, 0) ?? 0;return (- <div key={p.project.name} className="rounded-xl border border-border/30 bg-white/[0.02] hover:bg-white/[0.035] transition-all p-5">+ <div key={p.project.name} className="rounded-md border border-border/30 bg-card hover:bg-white/[0.035] transition-all p-5"><div className="flex items-start justify-between gap-3 mb-3"><div className="min-w-0 flex items-start gap-2.5"><div className="mt-1.5"><HealthDot name={p.project.name} /></div><div className="min-w-0"><h3 className="text-[14px] font-semibold text-foreground/90 mb-0.5">{p.project.name}</h3>- <p className="text-[11px] text-foreground/20 font-mono truncate">{p.project.root_path}</p>+ <p className="text-[13px] text-foreground/35 font-mono truncate">{p.project.root_path}</p></div></div><div className="flex items-center gap-1.5 shrink-0"><AdrButton project={p.project.name} />- <button onClick={() => onSelectProject(p.project.name)} className="px-3 py-1.5 rounded-lg bg-primary/15 hover:bg-primary/25 text-primary text-[12px] font-medium transition-all">{t.projects.viewGraph}</button>- <button onClick={() => deleteProject(p.project.name)} className="px-2 py-1.5 rounded-lg hover:bg-destructive/10 text-foreground/20 hover:text-destructive text-[12px] transition-all" title={t.projects.deleteTitle}>✕</button>+ <button onClick={() => onSelectProject(p.project.name)} className="px-3 py-1.5 rounded-md bg-primary/15 hover:bg-primary/25 text-primary text-[12px] font-medium transition-all">{t.projects.viewGraph}</button>+ <button onClick={() => deleteProject(p.project.name)} className="px-2 py-1.5 rounded-md hover:bg-destructive/10 text-foreground/35 hover:text-destructive text-[12px] transition-all" title={t.projects.deleteTitle}>✕</button></div></div>{p.schema && (<>- <div className="flex gap-6 text-[12px] text-foreground/30 mb-3">+ <div className="flex gap-6 text-[12px] text-foreground/45 mb-3"><span><strong className="text-foreground/55 tabular-nums">{totalNodes.toLocaleString()}</strong> {t.projects.nodes}</span><span><strong className="text-foreground/55 tabular-nums">{totalEdges.toLocaleString()}</strong> {t.projects.edges}</span></div><div className="flex flex-wrap gap-1">{p.schema.node_labels?.map((l) => (- <span key={l.label} className="inline-flex items-center gap-1 px-1.5 py-[2px] rounded-md text-[10px] font-medium" style={{ backgroundColor: colorForLabel(l.label) + "10", color: colorForLabel(l.label) + "bb" }}>+ <span key={l.label} className="inline-flex items-center gap-1 px-1.5 py-[2px] rounded-md text-[12px] font-medium" style={{ backgroundColor: colorForLabel(l.label) + "10", color: colorForLabel(l.label) + "bb" }}><span className="w-[4px] h-[4px] rounded-full" style={{ backgroundColor: colorForLabel(l.label) }} />{l.label} {l.count.toLocaleString()}</span>diff --git a/graph-ui/src/components/SymbolTab.tsx b/graph-ui/src/components/SymbolTab.tsxindex 43728635a..6b72fb563 100644--- a/graph-ui/src/components/SymbolTab.tsx+++ b/graph-ui/src/components/SymbolTab.tsx@@ -42,13 +42,13 @@ function ConnectionList({}) {const shown = page.offset + page.items.length;return (- <div className="bg-white/[0.02] border border-border/40 rounded-xl p-4">+ <div className="bg-card border border-border/40 rounded-md p-4"><div className="flex items-baseline gap-2 mb-2">- <p className="text-[10px] uppercase tracking-widest text-foreground/30">{title}</p>- <span className="text-[11px] tabular-nums text-foreground/40">+ <p className="text-[12px] uppercase tracking-widest text-foreground/45">{title}</p>+ <span className="text-[13px] tabular-nums text-foreground/40">{page.total.toLocaleString("en-US")}</span>- <span className="text-[10px] text-foreground/25 ml-auto">+ <span className="text-[12px] text-foreground/40 ml-auto">{Object.entries(page.by_type).map(([type, count]) => `${CONFIDENCE[type]?.label ?? type.toLowerCase()} ${count}`).join(" · ")}@@ -59,29 +59,29 @@ function ConnectionList({<buttonkey={`${item.id}-${index}`}onClick={() => onOpenSymbol({ id: item.id })}- className="flex items-center gap-2 w-full text-left px-2 py-[4px] rounded-md hover:bg-white/[0.04] transition-colors group"+ className="flex items-center gap-2 w-full text-left px-2 py-[4px] rounded-md hover:bg-surface-3 transition-colors group"><span- className={`text-[9px] px-1 rounded border shrink-0 ${CONFIDENCE[item.type ?? ""]?.tone ?? "text-foreground/40 border-border/40"}`}+ className={`text-[12px] px-1 rounded border shrink-0 ${CONFIDENCE[item.type ?? ""]?.tone ?? "text-foreground/40 border-border/40"}`}>{CONFIDENCE[item.type ?? ""]?.label ?? item.type}</span>- <span className="text-[11.5px] font-mono text-foreground/65 group-hover:text-primary truncate transition-colors">+ <span className="text-[13px] font-mono text-foreground/65 group-hover:text-primary truncate transition-colors">{item.name}</span>- <span className="text-[10px] text-foreground/20 truncate ml-auto shrink-0 max-w-[45%]">+ <span className="text-[12px] text-foreground/35 truncate ml-auto shrink-0 max-w-[45%]">{item.file_path}</span></button>))}{page.items.length === 0 && (- <p className="text-[11px] text-foreground/25 px-2 py-2">None.</p>+ <p className="text-[13px] text-foreground/40 px-2 py-2">None.</p>)}</div>{shown < page.total && (<buttononClick={onLoadMore}- className="mt-1.5 px-2 text-[10.5px] text-primary/70 hover:text-primary transition-colors"+ className="mt-1.5 px-2 text-[12px] text-primary/70 hover:text-primary transition-colors">Show more ({(page.total - shown).toLocaleString("en-US")} hidden)</button>@@ -138,7 +138,7 @@ export function SymbolTab({ project, symbolRef, onOpenSymbol, onOpenRegion }: Syif (!bundle) {return (<div className="flex items-center justify-center h-full">- <p className="text-white/30 text-sm">Loading symbol…</p>+ <p className="text-foreground/45 text-sm">Loading symbol…</p></div>);}@@ -181,21 +181,21 @@ export function SymbolTab({ project, symbolRef, onOpenSymbol, onOpenRegion }: Sy<h2 className="text-[20px] font-semibold text-foreground/95 font-mono">{node.name}</h2>- <span className="px-2 py-0.5 rounded-md text-[10px] font-medium bg-white/[0.06] text-foreground/60">+ <span className="px-2 py-0.5 rounded-md text-[12px] font-medium bg-surface-3 text-foreground/60">{node.label}</span>{node.is_entry && (- <span className="px-2 py-0.5 rounded-md text-[10px] bg-emerald-400/10 text-emerald-300/80">+ <span className="px-2 py-0.5 rounded-md text-[12px] bg-emerald-400/10 text-emerald-300/80">entry point</span>)}{node.is_test && (- <span className="px-2 py-0.5 rounded-md text-[10px] bg-white/[0.06] text-foreground/50">+ <span className="px-2 py-0.5 rounded-md text-[12px] bg-surface-3 text-foreground/50">test</span>)}{node.is_exported && (- <span className="px-2 py-0.5 rounded-md text-[10px] bg-sky-400/10 text-sky-300/80">+ <span className="px-2 py-0.5 rounded-md text-[12px] bg-sky-400/10 text-sky-300/80">exported</span>)}@@ -214,13 +214,13 @@ export function SymbolTab({ project, symbolRef, onOpenSymbol, onOpenRegion }: Sy</div></div>{node.qualified_name && (- <p className="text-[11px] font-mono text-foreground/35 mt-1.5 break-all">+ <p className="text-[13px] font-mono text-foreground/50 mt-1.5 break-all">{node.qualified_name}</p>)}<div className="flex items-center gap-3 mt-1.5 flex-wrap">{node.file_path && (- <p className="text-[11px] font-mono text-foreground/45">+ <p className="text-[13px] font-mono text-foreground/45">{node.file_path}{node.start_line ? `:${node.start_line}` : ""}</p>@@ -228,13 +228,13 @@ export function SymbolTab({ project, symbolRef, onOpenSymbol, onOpenRegion }: Sy{bundle.region && (<buttononClick={() => onOpenRegion(bundle.region!.id)}- className="text-[11px] text-primary/70 hover:text-primary transition-colors"+ className="text-[13px] text-primary/70 hover:text-primary transition-colors">region: {bundle.region.name ?? bundle.region.id} →</button>)}{editorUrl && (- <a href={editorUrl} className="text-[11px] text-foreground/40 hover:text-foreground/70 transition-colors">+ <a href={editorUrl} className="text-[13px] text-foreground/40 hover:text-foreground/70 transition-colors">Open in editor ↗</a>)}@@ -243,7 +243,7 @@ export function SymbolTab({ project, symbolRef, onOpenSymbol, onOpenRegion }: Syhref={ghUrl}target="_blank"rel="noopener noreferrer"- className="text-[11px] text-foreground/40 hover:text-foreground/70 transition-colors"+ className="text-[13px] text-foreground/40 hover:text-foreground/70 transition-colors">GitHub ↗</a>@@ -258,12 +258,12 @@ export function SymbolTab({ project, symbolRef, onOpenSymbol, onOpenRegion }: Sy<buttononClick={code ? () => setCode(null) : loadCode}disabled={codeLoading || !node.qualified_name}- className="px-2.5 py-1 rounded-md bg-primary/15 text-primary text-[11px] font-medium hover:bg-primary/25 transition-colors disabled:opacity-40"+ className="px-2.5 py-1 rounded-md bg-primary/15 text-primary text-[13px] font-medium hover:bg-primary/25 transition-colors disabled:opacity-40">{codeLoading ? "Loading…" : code ? "Hide code" : "Show code"}</button>{code && (- <pre className="mt-2 max-h-[360px] overflow-auto rounded-md bg-black/40 border border-white/[0.06] p-3 text-[11px] leading-relaxed font-mono text-foreground/75 whitespace-pre">+ <pre className="mt-2 max-h-[360px] overflow-auto rounded-md bg-black/40 border border-border p-3 text-[13px] leading-relaxed font-mono text-foreground/75 whitespace-pre">{code}</pre>)}@@ -287,59 +287,59 @@ export function SymbolTab({ project, symbolRef, onOpenSymbol, onOpenRegion }: Sy</div><div className="grid grid-cols-1 lg:grid-cols-3 gap-4">- <div className="bg-white/[0.02] border border-border/40 rounded-xl p-4">- <p className="text-[10px] uppercase tracking-widest text-foreground/30 mb-2">+ <div className="bg-card border border-border/40 rounded-md p-4">+ <p className="text-[12px] uppercase tracking-widest text-foreground/45 mb-2">Tested by</p>{(bundle.tests ?? []).map((test: SymbolRef) => (<buttonkey={test.id}onClick={() => onOpenSymbol({ id: test.id })}- className="block w-full text-left text-[11px] font-mono text-foreground/60 hover:text-primary py-[3px] truncate transition-colors"+ className="block w-full text-left text-[13px] font-mono text-foreground/60 hover:text-primary py-[3px] truncate transition-colors">{test.name}</button>))}{(bundle.tests ?? []).length === 0 && (- <p className="text-[11px] text-amber-300/50">No TESTS edges reach this symbol.</p>+ <p className="text-[13px] text-amber-300/50">No TESTS edges reach this symbol.</p>)}</div>- <div className="bg-white/[0.02] border border-border/40 rounded-xl p-4">- <p className="text-[10px] uppercase tracking-widest text-foreground/30 mb-2">+ <div className="bg-card border border-border/40 rounded-md p-4">+ <p className="text-[12px] uppercase tracking-widest text-foreground/45 mb-2">Changes together with</p>{(bundle.co_change ?? []).map((partner) => (- <p key={partner.file_path} className="text-[11px] font-mono text-foreground/55 py-[3px] truncate">+ <p key={partner.file_path} className="text-[13px] font-mono text-foreground/55 py-[3px] truncate">{partner.file_path}{partner.score !== undefined && (- <span className="text-foreground/25"> · {partner.score.toFixed(2)}</span>+ <span className="text-foreground/40"> · {partner.score.toFixed(2)}</span>)}</p>))}{(bundle.co_change ?? []).length === 0 && (- <p className="text-[11px] text-foreground/25">No co-change history.</p>+ <p className="text-[13px] text-foreground/40">No co-change history.</p>)}</div>- <div className="bg-white/[0.02] border border-border/40 rounded-xl p-4">- <p className="text-[10px] uppercase tracking-widest text-foreground/30 mb-2">+ <div className="bg-card border border-border/40 rounded-md p-4">+ <p className="text-[12px] uppercase tracking-widest text-foreground/45 mb-2">Near-clones</p>{(bundle.similar ?? []).map((clone) => (<buttonkey={clone.id}onClick={() => onOpenSymbol({ id: clone.id })}- className="block w-full text-left text-[11px] font-mono text-foreground/60 hover:text-primary py-[3px] truncate transition-colors"+ className="block w-full text-left text-[13px] font-mono text-foreground/60 hover:text-primary py-[3px] truncate transition-colors">{clone.name}{clone.score !== undefined && (- <span className="text-foreground/25"> · {clone.score.toFixed(2)}</span>+ <span className="text-foreground/40"> · {clone.score.toFixed(2)}</span>)}</button>))}{(bundle.similar ?? []).length === 0 && (- <p className="text-[11px] text-foreground/25">No near-clones.</p>+ <p className="text-[13px] text-foreground/40">No near-clones.</p>)}</div></div>diff --git a/graph-ui/src/lib/regions.ts b/graph-ui/src/lib/regions.tsindex 7d5c8e864..704bd60fa 100644--- a/graph-ui/src/lib/regions.ts+++ b/graph-ui/src/lib/regions.ts@@ -57,3 +57,31 @@ export function regionsViewWorthwhile(payload: RegionsPayload): boolean {payload.total_nodes > REGIONS_MIN_TOTAL_NODES && payload.regions.length > 1);}++/* The product-code lens: test regions teach how the code is exercised, not+ * how it works — hide them by default, one toggle away. A region is+ * test-ish when its display name lives under a test folder. */+export function isTestRegion(name: string): boolean {+ return /(^|\/)(tests?|__tests__|spec|specs)($|\/|\b)/i.test(name.split(" · ")[0] ?? name);+}++export function lensRegionsPayload(+ payload: RegionsPayload,+ includeTests: boolean,+): RegionsPayload {+ if (includeTests) return payload;+ const kept = new Set(+ payload.regions.filter((region) => !isTestRegion(region.name)).map((r) => r.id),+ );+ return {+ ...payload,+ regions: payload.regions.filter((region) => kept.has(region.id)),+ edges: payload.edges.filter((edge) => kept.has(edge.source) && kept.has(edge.target)),+ };+}++/* Hub lists must never headline builtins — a `len` hub reads as a bug and+ * costs trust in everything else on the page. */+export function isBuiltinQn(qn: string): boolean {+ return /(^|\.)builtins?\./.test(qn) || /(^|\.)__builtins__\./.test(qn);+}diff --git a/graph-ui/src/styles/globals.css b/graph-ui/src/styles/globals.cssindex 5c401e336..92d2b0019 100644--- a/graph-ui/src/styles/globals.css+++ b/graph-ui/src/styles/globals.css@@ -1,31 +1,43 @@@import "tailwindcss";@theme inline {- --color-background: #0a161a;- --color-foreground: #e0eded;- --color-card: #0e2028;- --color-card-foreground: #e0eded;- --color-popover: #0e2028;- --color-popover-foreground: #e0eded;- --color-primary: #1DA27E;- --color-primary-foreground: #0a161a;- --color-secondary: #0f1e24;- --color-secondary-foreground: #b0d4d4;- --color-muted: #0f1e24;- --color-muted-foreground: #6a9e9e;- --color-accent: #1C8585;- --color-accent-foreground: #e0eded;- --color-destructive: #e05252;- --color-destructive-foreground: #0a161a;- --color-border: #1a3a4030;- --color-input: #0c1c2260;- --color-ring: #1DA27E;- --radius: 0.75rem;- --color-sidebar: #0c1a20;- --font-sans: "Inter", system-ui, -apple-system, sans-serif;- --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;+ /* CBM Atlas graphite system — Radix-style step jobs, one accent,+ * data colors live server-side (Okabe-Ito). Nothing saturated covers+ * area; the code graph is the only colorful thing on screen. */+ --color-background: #0D0F12; /* surface-0 canvas */+ --color-foreground: #E8EBEE; /* text-primary ~14:1 */+ --color-card: #131619; /* surface-1 panels */+ --color-card-foreground: #E8EBEE;+ --color-popover: #191D21; /* surface-2 nested */+ --color-popover-foreground: #E8EBEE;+ --color-primary: #4FA8E0; /* the one accent: interactive only */+ --color-primary-foreground: #0D0F12;+ --color-secondary: #191D21;+ --color-secondary-foreground: #9BA6B2;+ --color-muted: #191D21;+ --color-muted-foreground: #9BA6B2; /* text-secondary ~7:1 */+ --color-accent: #12293A; /* accent-muted wash (selection) */+ --color-accent-foreground: #E8EBEE;+ --color-destructive: #F85149;+ --color-destructive-foreground: #0D0F12;+ --color-border: #262C33; /* border-subtle */+ --color-input: #191D21;+ --color-ring: #4FA8E0;+ --radius: 0.375rem;+ --color-sidebar: #131619;+ /* Extended steps */+ --color-surface-3: #20252B; /* hover */+ --color-surface-4: #293038; /* pressed/selected */+ --color-text-muted: #66717E; /* decorative only */+ --color-good: #3FB950;+ --color-warn: #D29922;+ --color-crit: #F85149;+ /* System stacks: zero bytes, native rendering (the Primer approach). */+ --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;+ --font-mono: ui-monospace, SFMono-Regular, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;}+html, body, #root {margin: 0;padding: 0;@@ -41,14 +53,14 @@ html, body, #root {/* ── Graph loading constellation ─────────────────────────────── */.graph-loader-node {- fill: #22d3ee;+ fill: #4FA8E0;animation: graph-loader-pulse 2.1s ease-in-out infinite;transform-box: fill-box;transform-origin: center;}.graph-loader-edge {- stroke: #22d3ee;+ stroke: #4FA8E0;stroke-opacity: 0.35;stroke-width: 1.2;stroke-dasharray: 90;diff --git a/src/ui/atlas_flows.c b/src/ui/atlas_flows.cindex 441f78f66..19bf013c1 100644--- a/src/ui/atlas_flows.c+++ b/src/ui/atlas_flows.c@@ -510,6 +510,26 @@ static void fl_add_node_ref(yyjson_mut_doc *doc, yyjson_mut_val *obj, const charyyjson_mut_obj_add_val(doc, obj, field, ref);}+/* A display name with context when the bare name is ambiguous: dunders and+ * very short names get their file stem prefixed ("datastructures.__init__"),+ * because "__init__ → clone" teaches nobody anything. */+static void fl_display_name(const flow_node_t *node, char *out, size_t cap) {+ const char *name = node->name ? node->name : "?";+ bool ambiguous = name[0] == '_' || strlen(name) <= 3;+ if (ambiguous && node->file_path) {+ const char *base = strrchr(node->file_path, '/');+ base = base ? base + 1 : node->file_path;+ char stem[128];+ snprintf(stem, sizeof(stem), "%s", base);+ char *dot = strrchr(stem, '.');+ if (dot && dot != stem)+ *dot = '\0';+ snprintf(out, cap, "%s.%s", stem, name);+ return;+ }+ snprintf(out, cap, "%s", name);+}+char *cbm_atlas_flows_json(cbm_store_t *store, const char *project) {if (!store || !project)return NULL;@@ -528,13 +548,13 @@ char *cbm_atlas_flows_json(cbm_store_t *store, const char *project) {const flow_t *flow = &g_flow_cache.flows[i];yyjson_mut_val *obj = yyjson_mut_obj(doc);yyjson_mut_obj_add_int(doc, obj, "id", i);+ char entry_name[192];+ char terminal_name[192];+ fl_display_name(&g_flow_cache.nodes[flow->entry], entry_name, sizeof(entry_name));+ fl_display_name(&g_flow_cache.nodes[flow->terminal], terminal_name,+ sizeof(terminal_name));char label[CBM_SZ_512];- snprintf(label, sizeof(label), "%s → %s",- g_flow_cache.nodes[flow->entry].name ? g_flow_cache.nodes[flow->entry].name- : "?",- g_flow_cache.nodes[flow->terminal].name- ? g_flow_cache.nodes[flow->terminal].name- : "?");+ snprintf(label, sizeof(label), "%s → %s", entry_name, terminal_name);yyjson_mut_obj_add_strcpy(doc, obj, "label", label);fl_add_node_ref(doc, obj, "entry", &g_flow_cache.nodes[flow->entry]);fl_add_node_ref(doc, obj, "terminal", &g_flow_cache.nodes[flow->terminal]);diff --git a/src/ui/layout_regions.c b/src/ui/layout_regions.cindex 711262b66..0358581bc 100644--- a/src/ui/layout_regions.c+++ b/src/ui/layout_regions.c@@ -175,27 +175,28 @@ static int32_t rg_region_of(const rg_id_region_t *map, long long n, int64_t id)return -1;}-/* HSV(h, 0.62, 0.95) → 0xRRGGBB, hue in degrees. */+/* Region colors: Okabe-Ito (color-blind safe) for the first ten regions —+ * ranking already orders regions by size, so the vivid hues land on the+ * regions that matter — and a neutral gray for the tail, where labels and+ * position carry identity. Beyond ~10 hues distinguishability collapses+ * anyway (Okabe & Ito; Tol). */static uint32_t rg_wheel_color(int index, int count) {- float h = count > 0 ? (360.0f * (float)index / (float)count) : 0.0f;- float s = 0.62f, v = 0.95f;- float c = v * s;- float x = c * (1.0f - fabsf(fmodf(h / 60.0f, 2.0f) - 1.0f));- float m = v - c;- float rf = 0, gf = 0, bf = 0;- int seg = (int)(h / 60.0f) % 6;- switch (seg) {- case 0: rf = c; gf = x; break;- case 1: rf = x; gf = c; break;- case 2: gf = c; bf = x; break;- case 3: gf = x; bf = c; break;- case 4: rf = x; bf = c; break;- default: rf = c; bf = x; break;- }- uint32_t r = (uint32_t)((rf + m) * 255.0f);- uint32_t g = (uint32_t)((gf + m) * 255.0f);- uint32_t b = (uint32_t)((bf + m) * 255.0f);- return (r << 16) | (g << 8) | b;+ (void)count;+ static const uint32_t okabe_ito[10] = {+ 0xE69F00, /* orange */+ 0x56B4E9, /* sky */+ 0x009E73, /* bluish green */+ 0xF0E442, /* yellow */+ 0x4393C9, /* blue, lightened for dark grounds */+ 0xD55E00, /* vermilion */+ 0xCC79A7, /* reddish purple */+ 0xEE3377, /* magenta (Tol) */+ 0x33BBEE, /* cyan (Tol) */+ 0x999999, /* gray */+ };+ if (index >= 0 && index < 10)+ return okabe_ito[index];+ return 0x6E7A87; /* neutral tail — labels do the work */}/* ── Leiden vote: (file_idx, community) pairs → per-file winner ── */