Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.
Python agent-orchestrationai-agentai-coding-assistantclaude-codecoding-agentcomputer-usedesktop-applocal-firstmcppersonal-jarvisvoice-assistantvoice-coding
refactor(ui): migrate the view tree onto the surface-ladder tokens
rubenluetke10-beep7aa1283f6cce
diff --git a/jarvis/ui/web/frontend/src/components/AgentAccountsPanel.tsx b/jarvis/ui/web/frontend/src/components/AgentAccountsPanel.tsxindex 1fac9ab8b8..0f1696de5c 100644--- a/jarvis/ui/web/frontend/src/components/AgentAccountsPanel.tsx+++ b/jarvis/ui/web/frontend/src/components/AgentAccountsPanel.tsx@@ -202,10 +202,10 @@ export function AgentAccountsPanel({ onActivate, note }: AgentAccountsPanelProps<div className="space-y-3"><div className="flex items-center gap-2 px-1"><Users className="h-4 w-4 text-violet-400" />- <span className="text-xs font-semibold uppercase tracking-wider text-violet-400">+ <span className="text-xs font-semibold text-violet-400">{t("agent_accounts.title")}</span>- <span className="text-[11px] text-muted-foreground">+ <span className="text-micro text-muted-foreground">· {t("agent_accounts.hint")}</span>{usageAvailable && (@@ -215,24 +215,24 @@ export function AgentAccountsPanel({ onActivate, note }: AgentAccountsPanelPropsdisabled={refreshing}aria-label={t("agent_accounts.usage.refresh")}title={t("agent_accounts.usage.refresh")}- className="ml-auto inline-flex shrink-0 items-center gap-1 rounded-lg border border-border px-2 py-1 text-[10px] text-muted-foreground transition-colors hover:border-primary/40 hover:text-foreground disabled:opacity-50"+ className="ml-auto inline-flex shrink-0 items-center gap-1 rounded-lg border border-border px-2 py-1 text-micro text-muted-foreground transition-colors hover:border-border-strong hover:text-foreground disabled:opacity-50"><RefreshCw className={cn("h-3 w-3", refreshing && "animate-spin")} />{t("agent_accounts.usage.refresh")}</button>)}</div>- <p className="px-1 text-[11px] leading-relaxed text-muted-foreground">+ <p className="px-1 text-micro text-muted-foreground">{t("agent_accounts.description")}</p>{note && (- <p className="px-1 text-[11px] leading-relaxed text-muted-foreground">+ <p className="px-1 text-micro text-muted-foreground">{note}</p>)}{error && (- <p className="px-1 text-[11px] text-foreground" role="alert">+ <p className="px-1 text-micro text-foreground" role="alert">{error}</p>)}@@ -294,14 +294,14 @@ function PlatformCard({}return (- <div className="relative flex flex-col gap-3 rounded-2xl border border-border bg-card/60 p-4 backdrop-blur">+ <div className="relative flex flex-col gap-3 rounded-2xl border border-border bg-card p-4 backdrop-blur"><spanaria-hidden="true"className="absolute bottom-4 left-0 top-4 w-[3px] rounded-r-full bg-violet-400/60"/><div className="flex items-center justify-between gap-2"><h4 className="text-sm font-semibold">{group?.display_name || platform}</h4>- <span className="text-[11px] text-muted-foreground">+ <span className="text-micro text-muted-foreground">{accounts.length} {t("agent_accounts.accounts")}</span></div>@@ -320,7 +320,7 @@ function PlatformCard({/>))}{accounts.length === 0 && (- <li className="text-[11px] text-muted-foreground">+ <li className="text-micro text-muted-foreground">{t("agent_accounts.loading")}</li>)}@@ -344,7 +344,7 @@ function PlatformCard({type="button"onClick={() => void add()}disabled={!label.trim() || busy === `add:${platform}`}- className="shrink-0 rounded-lg bg-foreground/70 px-3 py-1.5 text-xs font-medium text-primary-foreground disabled:opacity-50"+ className="shrink-0 rounded-lg bg-primary px-3 py-1.5 text-xs font-medium text-primary-foreground disabled:opacity-50">{t("agent_accounts.add_confirm")}</button>@@ -360,7 +360,7 @@ function PlatformCard({<buttontype="button"onClick={() => setAdding(true)}- className="inline-flex w-fit items-center gap-1.5 rounded-lg border border-border px-3 py-1.5 text-xs hover:border-primary/40"+ className="inline-flex w-fit items-center gap-1.5 rounded-lg border border-border px-3 py-1.5 text-xs hover:border-border-strong"><Plus className="h-3.5 w-3.5" />{t("agent_accounts.add")}@@ -473,8 +473,8 @@ function AccountRow({className={cn("flex flex-col gap-1.5 rounded-xl border px-3 py-2 transition-colors",active- ? "border-primary/55 bg-primary/[0.06]"- : "border-border/70 hover:border-primary/30",+ ? "border-border-strong bg-primary/[0.06]"+ : "border-border hover:border-border-strong",)}><div className="flex items-center gap-2">@@ -488,8 +488,8 @@ function AccountRow({className={cn("grid h-4 w-4 shrink-0 place-items-center rounded-full border",active- ? "border-primary bg-foreground/70 text-primary-foreground"- : "border-muted-foreground/50 hover:border-primary",+ ? "border-border-strong bg-primary text-primary-foreground"+ : "border-muted-foreground/50 hover:border-border-strong",)}>{active && <Check className="h-2.5 w-2.5" />}@@ -523,7 +523,7 @@ function AccountRow({type="button"onClick={() => void signIn()}disabled={pending}- className="inline-flex shrink-0 items-center gap-1 rounded-lg bg-foreground/70 px-2 py-1 text-[11px] font-medium text-primary-foreground disabled:opacity-50"+ className="inline-flex shrink-0 items-center gap-1 rounded-lg bg-primary px-2 py-1 text-micro font-medium text-primary-foreground disabled:opacity-50"><LogIn className="h-3 w-3" />{t("agent_accounts.sign_in")}@@ -562,7 +562,7 @@ function AccountRow({<pclassName={cn(- "flex items-start gap-1.5 pl-6 text-[11px]",+ "flex items-start gap-1.5 pl-6 text-micro",account.connected ? "text-muted-foreground" : "text-foreground",)}>@@ -575,7 +575,7 @@ function AccountRow({draining twice as fast. So it is said out loud, next to the row thatduplicates another, rather than left to be deduced from a usage page. */}{account.warning && (- <p className="flex items-start gap-1.5 pl-6 text-[11px] text-foreground">+ <p className="flex items-start gap-1.5 pl-6 text-micro text-foreground"><AlertTriangle className="mt-0.5 h-3 w-3 shrink-0" /><span className="min-w-0 break-words">{account.warning}</span></p>@@ -661,15 +661,15 @@ function LoginFlowBox({return (<divdata-testid={`login-flow-${flow.account_id}`}- className="ml-6 space-y-2 rounded-xl border border-border/70 bg-background/50 p-3"+ className="ml-6 space-y-2 rounded-xl border border-border bg-background p-3"><div className="flex items-center gap-2">{!flow.finished && (- <Loader2 className="h-3.5 w-3.5 shrink-0 animate-spin text-primary" />+ <Loader2 className="h-3.5 w-3.5 shrink-0 animate-spin text-muted-foreground" />)}<spanclassName={cn(- "min-w-0 flex-1 break-words text-[11px]",+ "min-w-0 flex-1 break-words text-micro",failed ? "text-foreground" : "text-muted-foreground",)}>@@ -695,7 +695,7 @@ function LoginFlowBox({<div className="flex items-center gap-1.5"><codedata-testid="login-flow-url"- className="min-w-0 flex-1 truncate rounded-md border border-border bg-background px-2 py-1 font-mono text-[10px] text-muted-foreground"+ className="min-w-0 flex-1 truncate rounded-md border border-border bg-background px-2 py-1 font-mono text-micro text-muted-foreground"title={flow.url}>{flow.url}@@ -703,7 +703,7 @@ function LoginFlowBox({<buttontype="button"onClick={() => void copyUrl()}- className="inline-flex shrink-0 items-center gap-1 rounded-lg border border-border px-2 py-1 text-[11px] hover:border-primary/40"+ className="inline-flex shrink-0 items-center gap-1 rounded-lg border border-border px-2 py-1 text-micro hover:border-border-strong"><Copy className="h-3 w-3" />{t("agent_accounts.flow.copy")}@@ -711,13 +711,13 @@ function LoginFlowBox({<buttontype="button"onClick={() => void openExternalUrl(flow.url!)}- className="inline-flex shrink-0 items-center gap-1 rounded-lg border border-border px-2 py-1 text-[11px] hover:border-primary/40"+ className="inline-flex shrink-0 items-center gap-1 rounded-lg border border-border px-2 py-1 text-micro hover:border-border-strong"><ExternalLink className="h-3 w-3" />{t("agent_accounts.flow.open")}</button></div>- <p className="text-[10px] leading-relaxed text-muted-foreground">+ <p className="text-micro text-muted-foreground">{t("agent_accounts.flow.link_hint")}</p></div>@@ -742,7 +742,7 @@ function LoginFlowBox({onClick={() => void pasteCode()}aria-label={t("agent_accounts.flow.paste")}title={t("agent_accounts.flow.paste")}- className="shrink-0 rounded-lg border border-border p-1.5 hover:border-primary/40"+ className="shrink-0 rounded-lg border border-border p-1.5 hover:border-border-strong"><ClipboardPaste className="h-3.5 w-3.5" /></button>@@ -750,7 +750,7 @@ function LoginFlowBox({type="button"onClick={() => void submit()}disabled={!code.trim() || sending}- className="shrink-0 rounded-lg bg-foreground/70 px-3 py-1.5 text-xs font-medium text-primary-foreground disabled:opacity-50"+ className="shrink-0 rounded-lg bg-primary px-3 py-1.5 text-xs font-medium text-primary-foreground disabled:opacity-50">{t("agent_accounts.flow.submit")}</button>@@ -762,14 +762,14 @@ function LoginFlowBox({<buttontype="button"onClick={onRetry}- className="rounded-lg bg-foreground/70 px-3 py-1.5 text-xs font-medium text-primary-foreground"+ className="rounded-lg bg-primary px-3 py-1.5 text-xs font-medium text-primary-foreground">{t("agent_accounts.flow.retry")}</button><buttontype="button"onClick={onFallback}- className="rounded-lg border border-border px-3 py-1.5 text-xs hover:border-primary/40"+ className="rounded-lg border border-border px-3 py-1.5 text-xs hover:border-border-strong">{t("agent_accounts.flow.fallback")}</button>@@ -777,11 +777,11 @@ function LoginFlowBox({)}{flow.tail && !flow.finished && (- <details className="text-[10px] text-muted-foreground">+ <details className="text-micro text-muted-foreground"><summary className="cursor-pointer select-none">{t("agent_accounts.flow.show_cli")}</summary>- <pre className="mt-1 max-h-32 overflow-y-auto whitespace-pre-wrap break-words rounded-md border border-border/60 bg-background/70 p-2">+ <pre className="mt-1 max-h-32 overflow-y-auto whitespace-pre-wrap break-words rounded-md border border-border bg-background p-2">{flow.tail}</pre></details>diff --git a/jarvis/ui/web/frontend/src/components/ApiKeyForm.tsx b/jarvis/ui/web/frontend/src/components/ApiKeyForm.tsxindex 6608ed0193..8eb5b43a4f 100644--- a/jarvis/ui/web/frontend/src/components/ApiKeyForm.tsx+++ b/jarvis/ui/web/frontend/src/components/ApiKeyForm.tsx@@ -211,7 +211,7 @@ export function ApiKeyForm({ secretKey, dashboardUrl, configured, credentialHelphref={dashboardUrl}target="_blank"rel="noreferrer"- className="inline-flex items-center gap-1 text-xs text-muted-foreground hover:text-primary"+ className="inline-flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground-strong"><ExternalLink className="h-3 w-3" />{" "}{dashboardHost@@ -227,7 +227,7 @@ export function ApiKeyForm({ secretKey, dashboardUrl, configured, credentialHelpconst scopeQuestion = scopeChoice ? (<divdata-testid="secret-scope-choice"- className="space-y-2 rounded-control border border-border bg-background/60 px-3 py-2"+ className="space-y-2 rounded-control border border-border bg-background px-3 py-2"><p className="text-xs leading-relaxed text-foreground">{scopeChoice.choice_kind === "family_vs_dedicated"@@ -298,7 +298,7 @@ export function ApiKeyForm({ secretKey, dashboardUrl, configured, credentialHelp// beside a box read as three controls for one fact.return (<div className="space-y-2">- <div className="flex h-9 min-w-0 items-center gap-2.5 rounded-control border border-border bg-background/60 pl-3 pr-1.5">+ <div className="flex h-9 min-w-0 items-center gap-2.5 rounded-control border border-border bg-background pl-3 pr-1.5"><CheckCircle2 aria-hidden="true" className="h-3.5 w-3.5 shrink-0 text-muted-foreground" /><span className="shrink-0 text-xs font-medium text-foreground">{t("apikeys_view.key_saved_label")}@@ -369,7 +369,7 @@ export function ApiKeyForm({ secretKey, dashboardUrl, configured, credentialHelpplaceholder={t("apikeys_view.paste_key_placeholder")}className={cn("h-9 w-full rounded-control border border-input bg-background px-3 pr-9 font-mono text-xs",- "focus:outline-none focus:ring-1 focus:ring-primary",+ "focus:outline-none focus:ring-2 focus:ring-border-strong",)}onKeyDown={(e) => {if (e.key === "Enter" && !scopeChoice) void handleSave();diff --git a/jarvis/ui/web/frontend/src/components/BrainModelSelector.tsx b/jarvis/ui/web/frontend/src/components/BrainModelSelector.tsxindex e82fb62d11..20bec7018a 100644--- a/jarvis/ui/web/frontend/src/components/BrainModelSelector.tsx+++ b/jarvis/ui/web/frontend/src/components/BrainModelSelector.tsx@@ -76,12 +76,12 @@ function matchesFilter(m: BrainModel, f: ModelFilter): boolean {const STATUS_TONE: Record<ProviderTestStatus, string> = {ok: "border-muted-foreground/30 bg-muted-foreground/10 text-muted-foreground",not_configured: "border-border bg-muted text-muted-foreground",- bad_key: "border-foreground/30 bg-foreground/10 text-foreground",- no_credits: "border-foreground/30 bg-foreground/10 text-foreground",- rate_limited: "border-foreground/30 bg-foreground/10 text-foreground",- model_unavailable: "border-foreground/30 bg-foreground/10 text-foreground",- unreachable: "border-destructive/30 bg-destructive/10 text-destructive",- error: "border-destructive/30 bg-destructive/10 text-destructive",+ bad_key: "bg-secondary text-foreground",+ no_credits: "bg-secondary text-foreground",+ rate_limited: "bg-secondary text-foreground",+ model_unavailable: "bg-secondary text-foreground",+ unreachable: "bg-secondary text-destructive",+ error: "bg-secondary text-destructive",};/**@@ -394,7 +394,7 @@ export function BrainModelSelector({onClick={(e) => e.stopPropagation()}onDoubleClick={(e) => e.stopPropagation()}>- <span className="text-[11px] uppercase tracking-wide text-muted-foreground">+ <span className="text-micro text-muted-foreground">{headingLabel ??(selects === "voice" ? t("apikeys_model.heading_voice") : t("apikeys_model.heading"))}</span>@@ -413,7 +413,7 @@ export function BrainModelSelector({onDoubleClick={(e) => e.stopPropagation()}><div className="flex items-center justify-between gap-2">- <span className="text-[11px] uppercase tracking-wide text-muted-foreground">+ <span className="text-micro text-muted-foreground">{headingLabel ??(selects === "voice" ? t("apikeys_model.heading_voice") : t("apikeys_model.heading"))}</span>@@ -421,7 +421,7 @@ export function BrainModelSelector({type="button"onClick={() => void load(true)}disabled={loading}- className="inline-flex items-center gap-1 text-[11px] text-muted-foreground hover:text-foreground"+ className="inline-flex items-center gap-1 text-micro text-muted-foreground hover:text-foreground"title={t("apikeys_model.refresh")}>{loading ? (@@ -442,7 +442,7 @@ export function BrainModelSelector({disabled={saving}className={cn("flex w-full items-center justify-between gap-2 rounded-md border bg-background px-3 py-2 text-left transition-colors",- open ? "border-primary/50 ring-1 ring-primary/20" : "border-input hover:border-primary/40",+ open ? "border-border-strong ring-1 ring-primary/20" : "border-input hover:border-border-strong",)}><span className={cn("truncate text-xs", !pinned && "text-muted-foreground")}>@@ -506,9 +506,9 @@ export function BrainModelSelector({aria-label={t(`apikeys_model.filter_${f}`)}title={t(`apikeys_model.filter_hint_${f}`)}className={cn(- "inline-flex items-center gap-1 rounded-full border px-2 py-0.5 text-[11px] transition-colors",+ "inline-flex items-center gap-1 rounded-full border px-2 py-0.5 text-micro transition-colors",isActive- ? "border-primary/40 bg-primary/20 text-primary"+ ? "bg-secondary text-foreground-strong": "border-border bg-muted text-muted-foreground hover:text-foreground",disabled && "cursor-not-allowed opacity-40 hover:text-muted-foreground",)}@@ -521,7 +521,7 @@ export function BrainModelSelector({})}</div>{filter !== "all" && (- <p className="px-2.5 pb-1.5 text-[11px] leading-snug text-muted-foreground">+ <p className="px-2.5 pb-1.5 text-micro text-muted-foreground">{t(`apikeys_model.filter_hint_${filter}`)}</p>)}@@ -541,7 +541,7 @@ export function BrainModelSelector({readable — the maintainer's "too bright" complaint. */}<divclassName={cn(- "flex items-center rounded hover:bg-primary/10",+ "flex items-center rounded hover:bg-secondary",isPinned && "bg-primary/20",)}>@@ -553,23 +553,23 @@ export function BrainModelSelector({<spanclassName={cn("flex min-w-0 items-center gap-1.5 truncate text-xs",- isPinned && "font-medium text-primary",+ isPinned && "font-medium text-foreground-strong",)}>{m.starred && (<Stararia-label={t("apikeys_model.starred_label")}- className="h-3 w-3 shrink-0 fill-primary text-primary"+ className="h-3 w-3 shrink-0 fill-primary text-muted-foreground"/>)}{m.label}{recommendedModel && m.id === recommendedModel && (- <span className="shrink-0 rounded-full bg-foreground/70 px-1.5 py-0.5 text-[11px] font-medium uppercase tracking-wide text-primary-foreground">+ <span className="shrink-0 rounded-full bg-primary px-1.5 py-0.5 text-micro font-medium text-primary-foreground">{t("apikeys_model.recommended_tag")}</span>)}</span>- <span className="shrink-0 font-mono text-[11px] text-muted-foreground">+ <span className="shrink-0 font-mono text-micro text-muted-foreground">{m.id}</span></button>@@ -579,7 +579,7 @@ export function BrainModelSelector({onClick={() => void openExternalUrl(link)}aria-label={t("apikeys_model.open_on_provider")}title={t("apikeys_model.open_on_provider")}- className="mr-1 shrink-0 rounded p-1 text-muted-foreground transition-colors hover:text-primary"+ className="mr-1 shrink-0 rounded p-1 text-muted-foreground transition-colors hover:text-foreground-strong"><ExternalLink className="h-3 w-3" /></button>@@ -599,23 +599,23 @@ export function BrainModelSelector({type="button"data-testid="use-custom-row"onClick={() => void save(trimmed)}- className="flex w-full items-center gap-2 rounded px-2 py-1.5 text-left text-xs hover:bg-primary/10"+ className="flex w-full items-center gap-2 rounded px-2 py-1.5 text-left text-xs hover:bg-secondary">- <Check className="h-3 w-3 shrink-0 text-primary" />+ <Check className="h-3 w-3 shrink-0 text-muted-foreground" />{t("apikeys_model.use_custom").replace("{0}", trimmed)}</button></li>)}{!visible.length && !trimmed && (- <li className="px-2 py-2 text-[11px] text-muted-foreground">+ <li className="px-2 py-2 text-micro text-muted-foreground">{loading ? t("apikeys_model.loading") : t("apikeys_model.no_models")}</li>)}</ul>{matched.length > 0 && (- <div className="border-t border-border px-2.5 py-1 text-[11px] text-muted-foreground">+ <div className="border-t border-border px-2.5 py-1 text-micro text-muted-foreground">{t("apikeys_model.count_hint").replace("{0}", String(matched.length))}</div>)}@@ -624,18 +624,18 @@ export function BrainModelSelector({<div className="flex flex-wrap items-center gap-2">{source === "static" && (- <span className="text-[11px] text-foreground" title={t("apikeys_model.source_static_note")}>+ <span className="text-micro text-foreground" title={t("apikeys_model.source_static_note")}>{t("apikeys_model.source_static")}</span>)}{sourceNote && (- <span className="text-[11px] text-muted-foreground">{sourceNote}</span>+ <span className="text-micro text-muted-foreground">{sourceNote}</span>)}{probe && <ProbeChip probe={probe} />}{slowProbe && (<spandata-testid="brain-model-probe-slow"- className="text-[11px] text-muted-foreground"+ className="text-micro text-muted-foreground">{t("apikeys_model.probe_slow_note")}</span>@@ -652,7 +652,7 @@ function ProbeChip({ probe }: { probe: BrainModelProbe }) {<spandata-testid="brain-model-probe"className={cn(- "inline-flex items-center gap-1 rounded-full border px-2 py-0.5 text-[11px]",+ "inline-flex items-center gap-1 rounded-full border px-2 py-0.5 text-micro",tone,)}title={[probe.detail, probe.latency_ms ? `${Math.round(probe.latency_ms)} ms` : ""]diff --git a/jarvis/ui/web/frontend/src/components/ChatInput.tsx b/jarvis/ui/web/frontend/src/components/ChatInput.tsxindex b6fe12ead8..340614abbd 100644--- a/jarvis/ui/web/frontend/src/components/ChatInput.tsx+++ b/jarvis/ui/web/frontend/src/components/ChatInput.tsx@@ -167,21 +167,29 @@ export function ChatInput() {<divdata-testid="chat-composer"className={cn(- "flex flex-col gap-2 rounded-2xl border border-border bg-card p-3 transition-[border-color,box-shadow] dark:border-transparent",- "focus-within:border-primary/40",+ // The composer is an object: card fill, the strong rim, one radius.+ // `dark:border-transparent` used to erase that rim in the theme the+ // app opens in, which left the box with no outline and no focus state+ // at all on near-black. The ring is the focus device everywhere else+ // in the system, so it is the focus device here.+ "flex flex-col gap-row rounded-lg border border-border-strong bg-card p-3",+ "transition-[box-shadow] focus-within:ring-2 focus-within:ring-border-strong",)}>{dictating && (<div- className="flex items-center gap-2 rounded-lg border border-primary/30 bg-primary/10 px-3 py-1.5 text-xs text-primary"+ className="flex items-center gap-row rounded-md bg-secondary px-3 py-1.5 text-meta text-foreground"role="status"aria-live="polite">+ {/* Listening is a live state, and life is green. It used to be+ --primary, which on near-black is pure white — the loudest mark+ on the screen for a thing that is merely running. */}<span className="relative flex h-2 w-2" aria-hidden>- <span className="absolute inline-flex h-full w-full animate-ping rounded-full bg-primary/70" />- <span className="relative inline-flex h-2 w-2 rounded-full bg-foreground/70" />+ <span className="absolute inline-flex h-full w-full animate-ping rounded-full bg-success/70" />+ <span className="relative inline-flex h-2 w-2 rounded-full bg-success" /></span>- <span className="font-medium">{t("chats_view.dictation_listening")}</span>+ <span>{t("chats_view.dictation_listening")}</span></div>)}<textarea@@ -205,9 +213,9 @@ export function ChatInput() {rows={2}// Grows with the text up to half the window (useAutoGrowTextarea);// past the cap the box scrolls rather than pushing Send out of reach.- className="max-h-[50vh] w-full resize-none bg-transparent px-1 py-1 text-[15px] leading-relaxed text-foreground scrollbar-jarvis placeholder:text-muted-foreground focus-visible:outline-none disabled:opacity-50"+ className="max-h-[50vh] w-full resize-none bg-transparent px-1 py-1 text-reading text-foreground scrollbar-jarvis placeholder:text-faint-foreground focus-visible:outline-none disabled:opacity-50"/>- <div className="flex items-center gap-1.5">+ <div className="flex items-center gap-row"><buttontype="button"data-jarvis-dictation-trigger@@ -216,10 +224,10 @@ export function ChatInput() {aria-label={dictating ? t("chats_view.dictation_stop") : t("chats_view.dictation_start")}title={dictating ? t("chats_view.dictation_stop") : t("chats_view.dictation_start")}className={cn(- "inline-flex h-8 w-8 items-center justify-center rounded-lg border transition-colors disabled:opacity-50",+ "inline-flex h-8 w-8 items-center justify-center rounded-md transition-colors disabled:opacity-50",dictating- ? "animate-jarvis-pulse border-primary/50 bg-primary/15 text-primary"- : "border-transparent text-muted-foreground hover:bg-secondary hover:text-foreground",+ ? "animate-jarvis-pulse bg-secondary text-success"+ : "text-muted-foreground hover:bg-secondary hover:text-foreground",)}>{dictating ? <Square className="h-4 w-4" /> : <Mic className="h-4 w-4" />}@@ -230,11 +238,11 @@ export function ChatInput() {onClick={() => setActiveSection("apikeys")}title={t("home.model_hint")}data-testid="composer-model"- className="inline-flex h-8 max-w-[280px] items-center gap-1.5 rounded-lg px-2 text-xs text-muted-foreground transition-colors hover:bg-secondary hover:text-foreground"+ className="inline-flex h-8 max-w-[280px] items-center gap-1.5 rounded-md px-2 text-meta text-muted-foreground transition-colors hover:bg-secondary hover:text-foreground"><span className="truncate font-medium text-foreground">{engine.providerLabel}</span>{engine.model && (- <span className="truncate font-mono text-[10px] text-muted-foreground">{engine.model}</span>+ <span className="truncate font-mono text-micro text-muted-foreground">{engine.model}</span>)}</button><button@@ -244,10 +252,13 @@ export function ChatInput() {aria-label="Send"data-testid="composer-send"className={cn(- "inline-flex h-8 w-8 items-center justify-center rounded-lg transition-colors",+ // --primary is a fill and this is the one place in the composer+ // that earns it. There is no step above it in dark mode, so hover+ // answers with opacity rather than a colour that does not exist.+ "inline-flex h-8 w-8 items-center justify-center rounded-md transition-opacity",canSend- ? "bg-foreground/70 text-primary-foreground hover:bg-primary/90"- : "bg-secondary text-muted-foreground/60",+ ? "bg-primary text-primary-foreground hover:opacity-90"+ : "bg-secondary text-faint-foreground",)}><ArrowUp className="h-4 w-4" />diff --git a/jarvis/ui/web/frontend/src/components/CuModelSelector.tsx b/jarvis/ui/web/frontend/src/components/CuModelSelector.tsxindex 863723c513..9da025b6cd 100644--- a/jarvis/ui/web/frontend/src/components/CuModelSelector.tsx+++ b/jarvis/ui/web/frontend/src/components/CuModelSelector.tsx@@ -102,11 +102,11 @@ export function CuModelSelector({return res;}}/>- <p className="text-[11px] text-muted-foreground/80">+ <p className="text-micro text-muted-foreground">{t("apikeys_cu_model.vision_note")}</p><div className="flex items-center justify-between gap-2">- <span className="text-[11px] text-muted-foreground">+ <span className="text-micro text-muted-foreground">{usesMain? t("apikeys_cu_model.using_main"): `${t("apikeys_cu_model.effective")}: ${effective || cuModel}`}@@ -117,7 +117,7 @@ export function CuModelSelector({data-testid="cu-use-main"onClick={() => void clearToMain()}disabled={clearing}- className="text-[11px] text-muted-foreground underline hover:text-foreground"+ className="text-micro text-muted-foreground underline hover:text-foreground">{t("apikeys_cu_model.use_main")}</button>diff --git a/jarvis/ui/web/frontend/src/components/EventTimeline.tsx b/jarvis/ui/web/frontend/src/components/EventTimeline.tsxindex 15098de12d..409b6fda7e 100644--- a/jarvis/ui/web/frontend/src/components/EventTimeline.tsx+++ b/jarvis/ui/web/frontend/src/components/EventTimeline.tsx@@ -1,27 +1,17 @@import { useState } from "react";import { useEventStore, type EventItem } from "@/store/events";import { ScrollArea } from "@/components/ui/scroll-area";-import { cn } from "@/lib/utils";-const LAYER_COLOR: Record<string, string> = {- bus: "bg-slate-500",- brain: "bg-violet-500",- voice: "bg-muted-foreground",- audio: "bg-muted-foreground",- tool: "bg-foreground",- skill: "bg-sky-500",- ui: "bg-blue-500",- harness: "bg-fuchsia-500",- mcp: "bg-muted-foreground",- channel: "bg-indigo-500",- system: "bg-zinc-500",- debug: "bg-gray-500",-};--function layerColor(layer?: string): string {- if (!layer) return "bg-gray-500";- return LAYER_COLOR[layer] ?? "bg-gray-500";-}+/*+ * There is no colour key here any more.+ *+ * Twelve layers used to get twelve dots out of Tailwind's own palette —+ * slate, violet, sky, blue, fuchsia, indigo, zinc, gray — which is twelve+ * literal colours and, worse, twelve hues in a product where hue means life,+ * fault, degraded or identity and nothing else. A reader had no key to decode+ * them with, and the row already prints the layer's name in words a few+ * columns to the right. The dot was a legend for a legend.+ */function fmtTime(ts: number): string {const d = new Date(ts);@@ -37,7 +27,7 @@ export function EventTimeline() {<ScrollArea className="h-full"><ul className="divide-y divide-border">{visible.length === 0 && (- <li className="p-4 text-sm text-muted-foreground">+ <li className="p-4 text-body text-muted-foreground">No events yet. Emit a test event from the Debug tab.</li>)}@@ -53,23 +43,19 @@ function EventRow({ event }: { event: EventItem }) {const [open, setOpen] = useState(false);const hasPayload = event.payload !== undefined && event.payload !== null;return (- <li className="px-4 py-2 text-sm">- <div className="flex items-center gap-3">- <span- className={cn("h-2 w-2 rounded-full shrink-0", layerColor(event.layer))}- aria-hidden- />- <span className="font-mono text-xs text-muted-foreground tabular-nums">+ <li className="px-4 py-2">+ <div className="flex items-center gap-stack">+ <span className="font-mono text-meta tabular-nums text-muted-foreground">{fmtTime(event.ts)}</span>- <span className="font-medium truncate flex-1">{event.name}</span>+ <span className="min-w-0 flex-1 truncate text-body text-foreground">{event.name}</span>{event.layer && (- <span className="text-xs text-muted-foreground uppercase">{event.layer}</span>+ <span className="shrink-0 text-meta text-muted-foreground">{event.layer}</span>)}{hasPayload && (<buttontype="button"- className="text-xs text-muted-foreground hover:text-foreground"+ className="shrink-0 rounded-md px-1.5 py-0.5 text-meta font-medium text-muted-foreground transition-colors hover:bg-secondary hover:text-foreground"onClick={() => setOpen((v) => !v)}aria-expanded={open}>@@ -78,7 +64,7 @@ function EventRow({ event }: { event: EventItem }) {)}</div>{open && hasPayload && (- <pre className="mt-2 overflow-auto rounded bg-muted/50 p-2 text-xs">+ <pre className="mt-2 overflow-auto rounded-md bg-secondary p-2 font-mono text-meta">{JSON.stringify(event.payload, null, 2)}</pre>)}diff --git a/jarvis/ui/web/frontend/src/components/FrontierSwitchModal.tsx b/jarvis/ui/web/frontend/src/components/FrontierSwitchModal.tsxindex e995def035..aa09220d9d 100644--- a/jarvis/ui/web/frontend/src/components/FrontierSwitchModal.tsx+++ b/jarvis/ui/web/frontend/src/components/FrontierSwitchModal.tsx@@ -88,7 +88,7 @@ export function FrontierSwitchModal() {><divclassName={cn(- "w-full max-w-lg rounded-2xl border border-primary/40 bg-card",+ "w-full max-w-lg rounded-lg bg-popover shadow-float","p-6","animate-in zoom-in-95 fade-in duration-200",)}diff --git a/jarvis/ui/web/frontend/src/components/JarvisAgentSection.tsx b/jarvis/ui/web/frontend/src/components/JarvisAgentSection.tsxindex 7c34124e27..ec0f170e7d 100644--- a/jarvis/ui/web/frontend/src/components/JarvisAgentSection.tsx+++ b/jarvis/ui/web/frontend/src/components/JarvisAgentSection.tsx@@ -500,7 +500,7 @@ function SubagentModelCard({(p) => p.id === catalogProvider && p.supports_model_pull,);return (- <div className="space-y-3 rounded-surface border border-border bg-card/50 p-3.5">+ <div className="space-y-3 rounded-surface border border-border bg-card p-3.5"><p className="text-xs leading-relaxed text-muted-foreground">{t("subagent_model.description")}</p>@@ -545,7 +545,7 @@ function SubagentModelCard({function SectionHeader({ label }: { label: string }) {return (- <h3 className="mb-3 inline-flex items-center gap-2 text-[11px] uppercase tracking-wider text-muted-foreground">+ <h3 className="mb-3 inline-flex items-center gap-2 text-micro text-muted-foreground"><Bot className="h-3.5 w-3.5" /> {label}</h3>);@@ -650,11 +650,11 @@ function AgentGroup({<div data-testid={testId} className="space-y-2"><div className="flex min-w-0 items-center gap-2 px-0.5 text-xs"><Icon aria-hidden="true" className="h-3.5 w-3.5 shrink-0 text-primary" />- <span className="font-display text-[13px] font-semibold tracking-tight">{title}</span>+ <span className="font-display text-meta font-semibold tracking-tight">{title}</span><span aria-hidden="true" className="text-border">·</span><span className="truncate text-muted-foreground">{hint}</span></div>- <ul className="divide-y divide-border/70 overflow-hidden rounded-surface border border-border bg-card/50">+ <ul className="divide-y divide-border overflow-hidden rounded-surface border border-border bg-card">{children}</ul></div>@@ -744,7 +744,7 @@ function AgentRow({className={cn("flex items-center gap-3 px-3.5 py-3 outline-none",collapsible &&- "cursor-pointer hover:bg-secondary/40 focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring",+ "cursor-pointer hover:bg-secondary focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring",)}><ProviderLogo providerId={slug ?? label} label={label} />@@ -787,7 +787,7 @@ function AgentRow({{body && expanded && (<divdata-agent-card-control- className="space-y-3 border-t border-border/60 bg-background/30 px-3.5 pb-3.5 pl-[3.75rem] pt-3"+ className="space-y-3 border-t border-border bg-background px-3.5 pb-3.5 pl-[3.75rem] pt-3">{body}</div>@@ -887,7 +887,7 @@ function CliTestControl({}return (- <div className="space-y-2 border-t border-border/60 pt-2.5" data-agent-card-control>+ <div className="space-y-2 border-t border-border pt-2.5" data-agent-card-control><div className="flex flex-wrap items-center justify-between gap-2"><Buttonsize="sm"@@ -1733,8 +1733,8 @@ function SubagentActiveControl({isActive? "font-medium text-foreground": row.key_set- ? "border border-border bg-background/60 text-muted-foreground hover:border-primary/50 hover:text-foreground"- : "border border-dashed border-border/80 text-muted-foreground/80 hover:text-foreground",+ ? "border border-border bg-background text-muted-foreground hover:border-primary/50 hover:text-foreground"+ : "border border-dashed border-border text-muted-foreground hover:text-foreground",)}title={labelTitle}>diff --git a/jarvis/ui/web/frontend/src/components/JarvisDock.tsx b/jarvis/ui/web/frontend/src/components/JarvisDock.tsxindex d9b1aa4c1e..9ddc62f81f 100644--- a/jarvis/ui/web/frontend/src/components/JarvisDock.tsx+++ b/jarvis/ui/web/frontend/src/components/JarvisDock.tsx@@ -190,7 +190,7 @@ export function JarvisDock() {? "bloom": "idle";const stateClass = {- idle: "border-border bg-card/70",+ idle: "border-border bg-card",bloom:"scale-105 border-primary/70 bg-primary/15 ring-2 ring-primary/40 animate-[dock-breathe_2.2s_ease-in-out_infinite]",armed:diff --git a/jarvis/ui/web/frontend/src/components/LiveCore.tsx b/jarvis/ui/web/frontend/src/components/LiveCore.tsxindex 838a211dde..35c7a3c4f4 100644--- a/jarvis/ui/web/frontend/src/components/LiveCore.tsx+++ b/jarvis/ui/web/frontend/src/components/LiveCore.tsx@@ -1,9 +1,16 @@import { cn } from "@/lib/utils";/**- * The mark that says work is happening right now: an accent core inside two+ * The mark that says work is happening right now: a green core inside two* rings that expand and fade away.*+ * Green, because "running" is life and life is the only thing --success means.+ * It used to be --primary, which resolves to pure white on near-black — the+ * loudest mark the palette has, spent on the most ordinary state an app can be+ * in, and a fill used as a signal. The expanding rings keep their alpha: they+ * are genuinely translucent, mid-animation, which is the one job alpha still+ * has in this system.+ ** It is the ONE live mark the product owns. The agent chat used to spin a* borrowed CLI asterisk instead (maintainer, 2026-08-25: "dieses komische* Denksymbol"), which read as a foreign glyph next to the home chat's core —@@ -19,9 +26,9 @@ export function LiveCore({ className }: { className?: string }) {aria-hiddendata-testid="live-core">- <span className="thinking-ring absolute inline-flex h-full w-full rounded-full bg-primary/50" />- <span className="thinking-ring absolute inline-flex h-full w-full rounded-full bg-primary/50 [animation-delay:0.9s]" />- <span className="thinking-core relative inline-flex h-2.5 w-2.5 rounded-full bg-foreground/70" />+ <span className="thinking-ring absolute inline-flex h-full w-full rounded-full bg-success/50" />+ <span className="thinking-ring absolute inline-flex h-full w-full rounded-full bg-success/50 [animation-delay:0.9s]" />+ <span className="thinking-core relative inline-flex h-2.5 w-2.5 rounded-full bg-success" /></span>);}diff --git a/jarvis/ui/web/frontend/src/components/OpenWithDialog.tsx b/jarvis/ui/web/frontend/src/components/OpenWithDialog.tsxindex 534169ba3e..cea135ca3a 100644--- a/jarvis/ui/web/frontend/src/components/OpenWithDialog.tsx+++ b/jarvis/ui/web/frontend/src/components/OpenWithDialog.tsx@@ -64,7 +64,7 @@ export function OpenWithDialog({role="presentation"><div- className="w-full max-w-sm rounded-xl border border-border bg-card p-5"+ className="w-full max-w-sm rounded-lg bg-popover shadow-float p-5"onClick={(e) => e.stopPropagation()}role="dialog"aria-modal="true"diff --git a/jarvis/ui/web/frontend/src/components/PlanStepList.tsx b/jarvis/ui/web/frontend/src/components/PlanStepList.tsxindex 094f0a5d75..a161de431c 100644--- a/jarvis/ui/web/frontend/src/components/PlanStepList.tsx+++ b/jarvis/ui/web/frontend/src/components/PlanStepList.tsx@@ -13,8 +13,8 @@ const STATUS_ICON: Record<string, JSX.Element> = {done: <CheckCircle2 className="h-4 w-4 text-primary" />,failed: <XCircle className="h-4 w-4 text-destructive" />,running: <Loader2 className="h-4 w-4 animate-spin text-primary" />,- skipped: <Circle className="h-4 w-4 text-muted-foreground/40" />,- pending: <Circle className="h-4 w-4 text-muted-foreground/40" />,+ skipped: <Circle className="h-4 w-4 text-muted-foreground" />,+ pending: <Circle className="h-4 w-4 text-muted-foreground" />,};export function PlanStepList({ steps }: { steps: PlanStep[] }) {@@ -37,30 +37,30 @@ export function PlanStepList({ steps }: { steps: PlanStep[] }) {? "border-destructive/30 bg-destructive/5": s.status === "done"? "border-primary/30 bg-primary/5"- : "border-border bg-card/40",+ : "border-border bg-card",)}><div className="flex items-center gap-2">{STATUS_ICON[s.status] ?? STATUS_ICON.pending}- <span className="text-muted-foreground/50">{idx + 1}.</span>+ <span className="text-muted-foreground">{idx + 1}.</span><span className="font-medium">{s.name || s.step_id}</span>{typeof s.duration_s === "number" && (- <span className="ml-auto text-[10px] text-muted-foreground">+ <span className="ml-auto text-micro text-muted-foreground">{s.duration_s.toFixed(1)}s</span>)}</div>{s.error && (- <div className="mt-1 break-words font-mono text-[10px] text-destructive">+ <div className="mt-1 break-words font-mono text-micro text-destructive">{s.error}</div>)}{s.output && s.status === "done" && (<details className="mt-1">- <summary className="cursor-pointer text-[10px] text-muted-foreground hover:text-foreground">+ <summary className="cursor-pointer text-micro text-muted-foreground hover:text-foreground">{t("plan_step_list.show_output")}</summary>- <pre className="mt-1 max-h-40 overflow-auto whitespace-pre-wrap break-words rounded bg-background/40 p-2 font-mono text-[10px]">+ <pre className="mt-1 max-h-40 overflow-auto whitespace-pre-wrap break-words rounded bg-background p-2 font-mono text-micro">{s.output}</pre></details>diff --git a/jarvis/ui/web/frontend/src/components/ProviderBillingBadge.tsx b/jarvis/ui/web/frontend/src/components/ProviderBillingBadge.tsxindex b50c1548e2..53ed94b6bf 100644--- a/jarvis/ui/web/frontend/src/components/ProviderBillingBadge.tsx+++ b/jarvis/ui/web/frontend/src/components/ProviderBillingBadge.tsx@@ -39,7 +39,7 @@ export function ProviderBillingBadge({ billing, className }: { billing: Billing;return (<spanclassName={cn(- "inline-flex items-center gap-1 rounded-full border px-2 py-0.5 text-[10px] font-medium",+ "inline-flex items-center gap-1 rounded-full border px-2 py-0.5 text-micro font-medium",meta.className,className,)}diff --git a/jarvis/ui/web/frontend/src/components/ProviderSwitcher.tsx b/jarvis/ui/web/frontend/src/components/ProviderSwitcher.tsxindex a93fe18266..f319612485 100644--- a/jarvis/ui/web/frontend/src/components/ProviderSwitcher.tsx+++ b/jarvis/ui/web/frontend/src/components/ProviderSwitcher.tsx@@ -47,7 +47,7 @@ export function ProviderSwitcher() {return (<div className="space-y-3">- <label className="text-xs uppercase tracking-wide text-muted-foreground">+ <label className="text-xs text-muted-foreground">Active Brain</label><BrandedSelect@@ -59,7 +59,7 @@ export function ProviderSwitcher() {label: `${provider.label}${provider.configured? ""- : ` — ${t("provider_switcher.no_credential")}`+ :}` — ${t("provider_switcher.no_credential")}`}`,disabled: !provider.configured,}))}diff --git a/jarvis/ui/web/frontend/src/components/ShortcutOverlay.tsx b/jarvis/ui/web/frontend/src/components/ShortcutOverlay.tsxindex 4529dd3f42..9bb620054f 100644--- a/jarvis/ui/web/frontend/src/components/ShortcutOverlay.tsx+++ b/jarvis/ui/web/frontend/src/components/ShortcutOverlay.tsx@@ -144,8 +144,8 @@ export function ShortcutOverlay({data-testid="shortcut-overlay"className={cn("fixed left-1/2 top-1/2 z-[90] flex max-h-[min(88dvh,40rem)] w-[min(520px,calc(100vw-2rem))]",- "-translate-x-1/2 -translate-y-1/2 flex-col overflow-hidden rounded-2xl border border-border",- "bg-card outline-none",+ "-translate-x-1/2 -translate-y-1/2 flex-col overflow-hidden rounded-lg",+ "bg-popover shadow-float outline-none","data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 motion-reduce:animate-none",)}>diff --git a/jarvis/ui/web/frontend/src/components/ThinkingTrace.tsx b/jarvis/ui/web/frontend/src/components/ThinkingTrace.tsxindex 658a1e65b7..5d1cc202eb 100644--- a/jarvis/ui/web/frontend/src/components/ThinkingTrace.tsx+++ b/jarvis/ui/web/frontend/src/components/ThinkingTrace.tsx@@ -1,12 +1,18 @@/*** ThinkingTrace — the live reasoning card shown while the assistant works.*- * Replaces the three bouncing dots with a precision-instrument look that- * matches the app's dark/gold language: a pulsing core, a shimmering+ * The turn's visible state while it is running — the timeline never shows a+ * gap where an answer is being written. A pulsing core, a shimmering* "Thinking" wordmark, a live elapsed timer and a vertical step rail where* real backend events (tool calls, computer-use phases, worker dispatches)* appear as animated rows.*+ * It is an assistant bubble, not a special surface: same fill, same side, same+ * radius as the reply that replaces it, so the turn does not visibly change+ * shape when it finishes. The byline it used to carry is gone for the same+ * reason it is gone from MessageBubble — the fill and the side already say who+ * is speaking, and it was set in --primary, which is a fill and not an ink.+ ** ThoughtTraceDisclosure is the after-the-fact companion: once the reply* lands, the finished trace renders as a collapsed "Thought for 12.4s ·* 5 steps" row above the answer and can be expanded to replay the steps.@@ -63,31 +69,35 @@ function useElapsedMs(startedTs: number | null): number {return startedTs === null ? 0 : Math.max(0, now - startedTs);}+/**+ * A step's state, in colour and nothing else.+ *+ * Each of the three used to be a ring around a wash around a glyph — three+ * nested surfaces to say one word, at 12px. The glyph alone says it, and it+ * says it in the status palette: life for a finished step, fault for a failed+ * one, and the spinner's leading edge in life while the step is still running.+ * A done step must not be quieter than a pending one, so "done" is the only+ * green on the rail.+ */function StatusNode({ status }: { status: ThinkingStep["status"] }) {if (status === "active") {return (<spanaria-hidden- className="relative z-10 h-3 w-3 shrink-0 animate-spin rounded-full border-2 border-primary/25 border-t-primary bg-card"+ className="relative z-10 h-3 w-3 shrink-0 animate-spin rounded-full border-2 border-secondary border-t-success bg-card"/>);}if (status === "error") {return (- <span- aria-hidden- className="relative z-10 flex h-3 w-3 shrink-0 items-center justify-center rounded-full border border-destructive/50 bg-destructive/10"- >- <X className="h-2 w-2 text-destructive" strokeWidth={3} />+ <span aria-hidden className="relative z-10 flex h-3 w-3 shrink-0 items-center justify-center">+ <X className="h-3 w-3 text-destructive" strokeWidth={3} /></span>);}return (- <span- aria-hidden- className="relative z-10 flex h-3 w-3 shrink-0 items-center justify-center rounded-full border border-primary/50 bg-primary/15"- >- <Check className="h-2 w-2 text-primary" strokeWidth={3} />+ <span aria-hidden className="relative z-10 flex h-3 w-3 shrink-0 items-center justify-center">+ <Check className="h-3 w-3 text-success" strokeWidth={3} /></span>);}@@ -109,27 +119,24 @@ function StepRow({ step, live }: { step: ThinkingStep; live: boolean }) {<StatusNode status={step.status} /><KindIconaria-hidden- className={cn(- "h-3 w-3 shrink-0",- active ? "text-primary/80" : "text-muted-foreground/50",- )}+ className={cn("h-3 w-3 shrink-0 text-muted-foreground")}/><spanclassName={cn(- "shrink-0 text-xs",- active ? "thinking-shimmer font-medium" : "text-foreground/80",- step.status === "error" && "text-destructive/90",+ "shrink-0 text-meta",+ active ? "thinking-shimmer font-medium" : "text-foreground",+ step.status === "error" && "text-destructive",)}>{t(step.labelKey)}</span>{step.detail && (- <span className="min-w-0 truncate font-mono text-[10px] text-muted-foreground/80">+ <span className="min-w-0 truncate font-mono text-micro text-muted-foreground">{step.detail}</span>)}{step.durationMs !== undefined && step.durationMs > 0 && (- <span className="ml-auto shrink-0 pl-2 font-mono text-[10px] tabular-nums text-muted-foreground/60">+ <span className="ml-auto shrink-0 pl-2 font-mono text-micro tabular-nums text-muted-foreground">{formatThinkingDuration(step.durationMs)}</span>)}@@ -152,10 +159,10 @@ function StepRail({{/* Vertical rail behind the status nodes — fades out downward. */}<spanaria-hidden- className="absolute bottom-2 left-[5.5px] top-2 w-px bg-gradient-to-b from-primary/30 via-border to-transparent"+ className="absolute bottom-2 left-[5.5px] top-2 w-px bg-border"/>{hiddenCount > 0 && (- <li className="relative flex items-center gap-2 pl-5 font-mono text-[10px] text-muted-foreground/50">+ <li className="relative flex items-center gap-2 pl-5 font-mono text-micro text-muted-foreground">+{hiddenCount} {t("thinking.earlier")}</li>)}@@ -171,7 +178,6 @@ export function ThinkingTrace() {const t = useT();const steps = useEventStore((s) => s.thinkingSteps);const startedTs = useEventStore((s) => s.thinkingStartedTs);- const assistantName = useEventStore((s) => s.assistantName);const elapsed = useElapsedMs(startedTs);const visible = steps.slice(-VISIBLE_STEPS);@@ -184,22 +190,20 @@ export function ThinkingTrace() {aria-live="polite"aria-label={t("chats_view.thinking_aria")}>- <div className="relative w-full max-w-[80%] overflow-hidden rounded-2xl rounded-bl-sm border border-primary/20 bg-card px-4 py-3 sm:max-w-[440px]">- {/* Atmospheric breathing glow — gives the card a quiet "alive" depth. */}- <span- aria-hidden- className="thinking-breathe pointer-events-none absolute -left-14 -top-14 h-36 w-36 rounded-full bg-primary/10 blur-3xl"- />-- <div className="relative flex items-center gap-2">+ {/*+ * The in-progress turn is a bubble like any other: the assistant's own+ * fill, on the assistant's own side, at the assistant's own radius. The+ * blurred bloom behind it is gone — a glow is additive light standing in+ * for a fill that is now actually there — and so is the rim, because a+ * fill and a border are two answers to one question.+ */}+ <div className="relative w-full max-w-[85%] overflow-hidden rounded-lg bg-card px-4 py-3 sm:max-w-[440px]">+ <div className="relative flex items-center gap-row"><LiveCore />- <span className="font-mono text-[10px] uppercase tracking-[0.14em] text-primary">- {assistantName}- </span>- <span className="thinking-shimmer text-xs font-medium">+ <span className="thinking-shimmer text-meta font-medium">{t("thinking.label")}</span>- <span className="ml-auto font-mono text-[10px] tabular-nums text-primary/60">+ <span className="ml-auto font-mono text-micro tabular-nums text-muted-foreground">{formatThinkingDuration(elapsed)}</span></div>@@ -232,7 +236,7 @@ export function ThoughtTraceDisclosure({type="button"onClick={() => setOpen((v) => !v)}aria-expanded={open}- className="group -ml-1 flex items-center gap-1.5 rounded-md px-1 py-0.5 text-[11px] text-muted-foreground transition-colors hover:text-primary"+ className="group -ml-1 flex items-center gap-1.5 rounded-md px-1 py-0.5 text-micro text-muted-foreground transition-colors hover:text-foreground"><ChevronRightaria-hidden@@ -244,12 +248,12 @@ export function ThoughtTraceDisclosure({<span className="font-medium">{t("thinking.thought_for")} {formatThinkingDuration(trace.durationMs)}</span>- <span className="text-muted-foreground/50">+ <span className="text-muted-foreground">· {trace.steps.length} {t("thinking.steps")}</span></button>{open && (- <div className="mt-2 border-b border-border/60 pb-2">+ <div className="mt-2 border-b border-border pb-2"><StepRail steps={trace.steps} live={false} hiddenCount={0} /></div>)}diff --git a/jarvis/ui/web/frontend/src/components/ViewErrorBoundary.tsx b/jarvis/ui/web/frontend/src/components/ViewErrorBoundary.tsxindex ff81309dc2..5c8596a513 100644--- a/jarvis/ui/web/frontend/src/components/ViewErrorBoundary.tsx+++ b/jarvis/ui/web/frontend/src/components/ViewErrorBoundary.tsx@@ -115,7 +115,10 @@ export class ViewErrorBoundary extends Component<<div className="flex flex-1 items-center justify-center p-6"><divclassName={cn(- "w-full max-w-xl rounded-lg border bg-card/80 p-5",+ // A real object, sized to its content on the section's ground —+ // so it takes the card fill outright rather than an opacity of+ // it. The rim stays because it is the fault/stale signal.+ "w-full max-w-xl rounded-lg border bg-card p-5",stale ? "border-border" : "border-destructive/30",)}>diff --git a/jarvis/ui/web/frontend/src/components/VoiceIndicator.tsx b/jarvis/ui/web/frontend/src/components/VoiceIndicator.tsxindex 2f1ab7ad45..98678dcaef 100644--- a/jarvis/ui/web/frontend/src/components/VoiceIndicator.tsx+++ b/jarvis/ui/web/frontend/src/components/VoiceIndicator.tsx@@ -2,16 +2,32 @@ import { useEventStore, type VoiceState } from "@/store/events";import { useT } from "@/i18n";import { cn } from "@/lib/utils";-// Exhaustive by construction: adding a member to VoiceState without a style-// here fails the TypeScript build instead of rendering an undefined swatch.-const STATE_STYLE: Record<VoiceState, { color: string; ring: string }> = {- idle: { color: "bg-blue-500", ring: "ring-blue-500/40" },- connecting: { color: "bg-foreground", ring: "ring-foreground/50 animate-pulse" },- listening: { color: "bg-muted-foreground", ring: "ring-muted-foreground/50 animate-pulse" },- thinking: { color: "bg-foreground", ring: "ring-foreground/50 animate-pulse" },- speaking: { color: "bg-pink-500", ring: "ring-pink-500/50 animate-pulse" },- paused: { color: "bg-foreground", ring: "ring-foreground/40" },- error: { color: "bg-red-500", ring: "ring-red-500/50" },+/**+ * Status fill per voice state. Exhaustive by construction: adding a member to+ * VoiceState without an entry here fails the TypeScript build instead of+ * rendering an undefined swatch.+ *+ * Only the three status hues appear, because a status is the one thing in the+ * product allowed to carry colour. What was here before — blue for idle, pink+ * for speaking, red for error — spent hue on states that are not faults and+ * left `listening`, the one state that means "this is running right now", in+ * plain grey. That inverts the whole ramp: the loudest mark on the screen sat+ * on a session doing nothing while a live microphone read as switched off.+ *+ * So: anything actually running is `--success`, the connecting handshake is+ * `--warning` (partial, not yet live), a fault is `--destructive`, and the two+ * states that are neither — idle and paused — stay neutral ink. The live+ * states are told apart by motion rather than by a second hue, and every+ * animation is behind `motion-safe`.+ */+const STATE_STYLE: Record<VoiceState, { fill: string; motion: string }> = {+ idle: { fill: "bg-faint-foreground", motion: "" },+ connecting: { fill: "bg-warning", motion: "motion-safe:animate-pulse" },+ listening: { fill: "bg-success", motion: "" },+ thinking: { fill: "bg-success", motion: "motion-safe:animate-pulse" },+ speaking: { fill: "bg-success", motion: "motion-safe:animate-pulse" },+ paused: { fill: "bg-muted-foreground", motion: "" },+ error: { fill: "bg-destructive", motion: "" },};export function VoiceIndicator() {@@ -24,9 +40,12 @@ export function VoiceIndicator() {role="status"aria-label={`${t("voice_state.indicator_label")}: ${label}`}className={cn(- "h-8 w-8 rounded-full ring-4 transition-colors",- style.color,- style.ring,+ // A rim, not a bloom: the old translucent 4px halo was additive light+ // standing in for a fill, and it changed colour with the state as+ // well, which made every transition read as two separate changes.+ "h-8 w-8 rounded-full ring-2 ring-border-strong transition-colors",+ style.fill,+ style.motion,)}title={label}/>diff --git a/jarvis/ui/web/frontend/src/components/agentchat/AgentComposer.tsx b/jarvis/ui/web/frontend/src/components/agentchat/AgentComposer.tsxindex 72ca0f1122..7cec8b5a98 100644--- a/jarvis/ui/web/frontend/src/components/agentchat/AgentComposer.tsx+++ b/jarvis/ui/web/frontend/src/components/agentchat/AgentComposer.tsx@@ -430,7 +430,7 @@ export function AgentComposer({ autoFocus = false }: { autoFocus?: boolean }) {<divdata-testid="composer-drop-overlay"aria-hidden- className="pointer-events-none absolute inset-0 z-10 flex items-center justify-center rounded-2xl border-2 border-dashed border-primary/70 bg-card/90 text-sm font-medium text-primary"+ className="pointer-events-none absolute inset-0 z-10 flex items-center justify-center rounded-2xl border-2 border-dashed border-primary/70 bg-card text-sm font-medium text-primary">{t("agent_chat.attach_drop_hint")}</div>@@ -485,7 +485,7 @@ export function AgentComposer({ autoFocus = false }: { autoFocus?: boolean }) {// Grows with the text up to half the window (useAutoGrowTextarea), so// a message is read whole while it is written; past the cap the box// scrolls rather than pushing the picks and Send out of reach.- className="max-h-[50vh] w-full resize-none bg-transparent px-1 py-1 text-[15px] leading-relaxed text-foreground scrollbar-jarvis placeholder:text-muted-foreground focus-visible:outline-none disabled:opacity-50"+ className="max-h-[50vh] w-full resize-none bg-transparent px-1 py-1 text-reading text-foreground scrollbar-jarvis placeholder:text-muted-foreground focus-visible:outline-none disabled:opacity-50"/><div className="flex flex-wrap items-center gap-1">{/*@@ -504,7 +504,7 @@ export function AgentComposer({ autoFocus = false }: { autoFocus?: boolean }) {? t("agent_chat.surface_jarvis_hint"): `${t("agent_chat.surface_agent_hint")}: ${draft.cwd || folderLeaf("")}`}- className="inline-flex h-7 max-w-[180px] shrink-0 items-center gap-1.5 rounded-lg bg-secondary/60 px-2 text-xs font-medium text-foreground"+ className="inline-flex h-7 max-w-[180px] shrink-0 items-center gap-1.5 rounded-lg bg-secondary px-2 text-xs font-medium text-foreground">{surface === "jarvis" ? (<GigiMark size={18} />@@ -617,7 +617,7 @@ export function AgentComposer({ autoFocus = false }: { autoFocus?: boolean }) {className="inline-flex h-7 max-w-[160px] items-center gap-1.5 rounded-lg px-2 text-xs text-muted-foreground transition-colors hover:bg-secondary hover:text-foreground"><FolderOpen className="h-3.5 w-3.5 shrink-0" aria-hidden />- <span className="hidden truncate font-mono text-[11px] 2xl:inline">{folderLeaf(draft.cwd)}</span>+ <span className="hidden truncate font-mono text-micro 2xl:inline">{folderLeaf(draft.cwd)}</span></button>)}<span className="flex-1" />@@ -687,7 +687,7 @@ export function AgentComposer({ autoFocus = false }: { autoFocus?: boolean }) {"inline-flex h-8 w-8 items-center justify-center rounded-lg transition-colors",canSend? "bg-foreground/70 text-primary-foreground hover:bg-primary/90"- : "bg-secondary text-muted-foreground/60",+ : "bg-secondary text-muted-foreground",)}><ArrowUp className="h-4 w-4" />diff --git a/jarvis/ui/web/frontend/src/components/agentchat/AgentTimeline.tsx b/jarvis/ui/web/frontend/src/components/agentchat/AgentTimeline.tsxindex 4e5f4ce762..2034cbe5a5 100644--- a/jarvis/ui/web/frontend/src/components/agentchat/AgentTimeline.tsx+++ b/jarvis/ui/web/frontend/src/components/agentchat/AgentTimeline.tsx@@ -107,15 +107,12 @@ export function AgentTimeline({data-testid="agent-message-user"data-message-id={item.id}>- <div className="jarvis-user-bubble max-w-[78%] rounded-2xl rounded-br-md px-4 py-2.5 text-[15px] leading-relaxed">+ <div className="jarvis-user-bubble max-w-[85%] rounded-lg px-4 py-3 text-reading">{item.text && <div className="whitespace-pre-wrap">{item.text}</div>}{item.attachments.length > 0 && (<divdata-testid="agent-message-attachments"- className={cn(- "flex flex-wrap gap-1.5",- item.text && "mt-2 border-t border-border/60 pt-2",- )}+ className={cn("flex flex-wrap gap-row", item.text && "mt-2.5")}>{item.attachments.map((file) =>// The picture itself, where there is one to fetch: a@@ -133,7 +130,10 @@ export function AgentTimeline({loading="lazy"decoding="async"data-testid="agent-message-image"- className="max-h-60 max-w-full rounded-lg border border-border/70 bg-background/40 object-contain"+ // A picture is its own fill. The frame and the wash+ // behind it were describing an object that was+ // already fully described.+ className="max-h-60 max-w-full rounded-lg object-contain"/>) : (<span@@ -147,7 +147,11 @@ export function AgentTimeline({? t("agent_chat.attach_not_described"): file.name}- className="flex items-center gap-1.5 rounded-md border border-border/70 bg-background/40 px-1.5 py-0.5 text-[11px] text-muted-foreground"+ // No box. The user bubble is the loudest surface the+ // ladder has, so a chip inside it has nowhere to step+ // up to; the icon and the mono name carry the chip's+ // whole job on their own.+ className="flex items-center gap-1.5 text-micro opacity-80">{file.kind === "image" ? (<ImageIcon className="h-3 w-3 shrink-0" aria-hidden />@@ -169,7 +173,10 @@ export function AgentTimeline({<divkey={item.id}data-message-id={item.id}- className="mx-auto flex max-w-[85%] items-center gap-2 rounded-lg border border-destructive/30 bg-destructive/10 px-3 py-2 text-xs text-destructive"+ // Fault ink on a normal surface. A red-washed panel makes the+ // failure the brightest object on the screen and buries what it+ // says under what it looks like.+ className="mx-auto flex max-w-[85%] items-center gap-row rounded-lg bg-card px-4 py-3 text-body text-destructive"><CircleAlert className="h-3.5 w-3.5 shrink-0" aria-hidden /><span>{item.text}</span>@@ -217,19 +224,27 @@ const Turn = memo(function Turn({data-message-id={turn.id}data-status={turn.status}>- <div className="flex flex-wrap items-center gap-x-2 gap-y-1 px-1 font-mono text-[10px] uppercase tracking-[0.14em] text-primary">+ {/*+ * This byline stays where the home chat's was deleted, because it is not+ * a repeat: it names WHICH agent, provider and model answered, and in a+ * pane that can be pointed at any of them that is the fact the reader+ * needs. It just stops shouting — no small caps, no --primary, and the+ * dot is green only while the turn is actually running.+ */}+ <div className="flex flex-wrap items-center gap-x-2 gap-y-1 px-1 font-mono text-micro text-muted-foreground"><span- className={cn("h-1 w-1 rounded-full bg-foreground/70", live && "motion-safe:animate-pulse")}+ className={cn(+ "h-1.5 w-1.5 rounded-full",+ live ? "bg-success motion-safe:animate-pulse" : "bg-muted-foreground",+ )}aria-hidden/>- <span>{assistantName}</span>- <span className="inline-flex items-center gap-1.5 normal-case tracking-normal text-muted-foreground">+ <span className="text-foreground">{assistantName}</span>+ <span className="inline-flex items-center gap-1.5"><ProviderLogo providerId={turn.provider} label={providerLabel} size="sm" /><span>{providerLabel}</span>- {turn.model && <span className="text-muted-foreground/70">· {turn.model}</span>}- {turn.effort && (- <span className="text-muted-foreground/70">· {effortLabel(turn.effort, t)}</span>- )}+ {turn.model && <span>· {turn.model}</span>}+ {turn.effort && <span>· {effortLabel(turn.effort, t)}</span>}</span></div>@@ -352,14 +367,14 @@ function LiveStatus({return (<div- className="flex flex-wrap items-center gap-x-2 gap-y-0.5 py-0.5 text-xs"+ className="flex flex-wrap items-center gap-x-2 gap-y-0.5 py-0.5 text-meta"data-testid="agent-turn-live"role="status"aria-live="polite"><LiveCore /><span className="thinking-shimmer font-medium">{word}</span>- <span className="inline-flex items-center gap-1.5 font-mono text-[11px] tabular-nums text-muted-foreground/80">+ <span className="inline-flex items-center gap-1.5 font-mono text-micro tabular-nums text-muted-foreground"><span>({formatThoughtDuration(elapsed)}</span>{out !== null && out > 0 && (<>@@ -369,7 +384,7 @@ function LiveStatus({)}<span>)</span></span>- <span className="text-muted-foreground/60">{t("agent_chat.interrupt_hint")}</span>+ <span className="text-muted-foreground">{t("agent_chat.interrupt_hint")}</span></div>);}@@ -418,29 +433,36 @@ function TurnOutcome({ turn }: { turn: TurnItem }) {const out = outputTokens(usage);const answered = turn.blocks.some((b) => b.kind === "text" && b.text.trim().length > 0);+ /*+ * The closing line's colour is the turn's outcome, and the ramp used to run+ * backwards: "done" was the DIMMEST of the four, quieter than "cancelled"+ * and quieter than "finished without an answer". Success is life, a turn+ * that produced nothing is degraded, a failure is fault, and a turn the+ * person stopped themselves is not a status at all — it is meta.+ */const { Icon, label, tone } =turn.status === "error"- ? { Icon: CircleAlert, label: t("agent_chat.turn_failed"), tone: "text-destructive/80" }+ ? { Icon: CircleAlert, label: t("agent_chat.turn_failed"), tone: "text-destructive" }: turn.status === "cancelled"? { Icon: Ban, label: t("agent_chat.turn_cancelled"), tone: "text-muted-foreground" }: answered- ? { Icon: Check, label: t("agent_chat.turn_done"), tone: "text-muted-foreground/70" }+ ? { Icon: Check, label: t("agent_chat.turn_done"), tone: "text-success" }: {Icon: CircleAlert,label: t("agent_chat.turn_no_answer"),- tone: "text-muted-foreground",+ tone: "text-warning",};return (<divclassName={cn(- "flex flex-wrap items-center gap-x-2.5 gap-y-0.5 pt-0.5 font-mono text-[10px] tabular-nums",+ "flex flex-wrap items-center gap-x-2.5 gap-y-0.5 pt-0.5 font-mono text-micro tabular-nums",tone,)}data-testid="agent-turn-footer"data-outcome={turn.status === "done" && !answered ? "no-answer" : turn.status}>- <span className="inline-flex items-center gap-1 font-sans text-[11px] font-medium normal-case">+ <span className="inline-flex items-center gap-1 font-sans text-micro font-medium"><Icon className="h-3.5 w-3.5" aria-hidden />{label}</span>@@ -457,11 +479,11 @@ function Prose({ block }: { block: TextBlock }) {<divdata-testid="agent-text"className={cn(- "prose prose-neutral max-w-none text-[15px] leading-relaxed dark:prose-invert [overflow-wrap:anywhere]",+ "prose prose-neutral max-w-none text-reading dark:prose-invert [overflow-wrap:anywhere]","prose-p:my-2 prose-headings:font-display prose-headings:tracking-tight prose-h1:text-xl prose-h2:text-lg prose-h3:text-base",- "prose-a:text-primary prose-a:no-underline hover:prose-a:underline",- "prose-code:rounded prose-code:bg-muted/60 prose-code:px-1 prose-code:py-0.5 prose-code:font-mono prose-code:text-[0.85em] prose-code:font-normal prose-code:before:hidden prose-code:after:hidden",- "prose-pre:my-2 prose-pre:border prose-pre:border-border prose-pre:bg-card/80 prose-pre:text-[13px]",+ "prose-a:text-foreground-strong prose-a:underline prose-a:decoration-border-strong prose-a:underline-offset-2",+ "prose-code:rounded prose-code:bg-secondary prose-code:px-1 prose-code:py-0.5 prose-code:font-mono prose-code:text-[0.85em] prose-code:font-normal prose-code:before:hidden prose-code:after:hidden",+ "prose-pre:my-2 prose-pre:bg-card prose-pre:text-meta","prose-li:my-0.5 prose-ul:my-2 prose-ol:my-2",)}>@@ -570,12 +592,12 @@ function Scratchpad({{fill(t("agent_chat.thinking_for"), { duration: formatThoughtDuration(thinking) })}</span>{out !== null && out > 0 && (- <span className="inline-flex items-center gap-1.5 font-mono text-[11px] tabular-nums text-muted-foreground/80">+ <span className="inline-flex items-center gap-1.5 font-mono text-micro tabular-nums text-muted-foreground"><span aria-hidden>·</span><OutTokens n={out} /></span>)}- <span className="text-muted-foreground/60">{t("agent_chat.interrupt_hint")}</span>+ <span className="text-muted-foreground">{t("agent_chat.interrupt_hint")}</span></div>) : (<button@@ -585,7 +607,7 @@ function Scratchpad({disabled={!foldable}className={cn("-ml-1 inline-flex items-center gap-1.5 rounded-md px-1 py-0.5 text-xs text-muted-foreground transition-colors",- foldable ? "hover:bg-secondary/50 hover:text-foreground" : "cursor-default",+ foldable ? "hover:bg-secondary hover:text-foreground" : "cursor-default",)}><ChevronRight@@ -611,7 +633,7 @@ function Scratchpad({) : (<divclassName={cn(- "ml-[1.25rem] text-[13px] leading-relaxed text-muted-foreground/80 [overflow-wrap:anywhere]",+ "ml-[1.25rem] text-meta text-muted-foreground [overflow-wrap:anywhere]",foldable && "line-clamp-2",)}data-testid="agent-reasoning-preview"@@ -662,11 +684,11 @@ function ThoughtProse({ text }: { text: string }) {return (<divclassName={cn(- "prose prose-neutral max-w-none text-[13px] leading-relaxed text-muted-foreground dark:prose-invert [overflow-wrap:anywhere]",- "prose-p:my-1.5 prose-headings:my-1.5 prose-headings:text-[13px] prose-headings:font-semibold prose-headings:text-foreground/80",- "prose-strong:text-foreground/80 prose-li:my-0.5 prose-ul:my-1.5 prose-ol:my-1.5",+ "prose prose-neutral max-w-none text-meta text-muted-foreground dark:prose-invert [overflow-wrap:anywhere]",+ "prose-p:my-1.5 prose-headings:my-1.5 prose-headings:text-meta prose-headings:font-semibold prose-headings:text-foreground",+ "prose-strong:text-foreground prose-li:my-0.5 prose-ul:my-1.5 prose-ol:my-1.5","prose-code:font-mono prose-code:text-[0.9em] prose-code:before:hidden prose-code:after:hidden",- "prose-pre:my-1.5 prose-pre:bg-transparent prose-pre:p-0 prose-pre:text-[11px]",+ "prose-pre:my-1.5 prose-pre:bg-transparent prose-pre:p-0 prose-pre:text-micro",)}><ReactMarkdown remarkPlugins={[remarkGfm]}>{text}</ReactMarkdown>@@ -763,7 +785,7 @@ function DiffView({ files }: { files: DiffFile[] }) {{/* The path only when the row above cannot already be carrying it:one file is named on the row, several need naming here. */}{files.length > 1 && file.path && (- <span className="truncate font-mono text-[10px] text-muted-foreground/60">+ <span className="truncate font-mono text-micro text-muted-foreground">{file.path}</span>)}@@ -773,7 +795,7 @@ function DiffView({ files }: { files: DiffFile[] }) {))}</div>{file.truncated > 0 && (- <span className="font-mono text-[10px] text-muted-foreground/50">+ <span className="font-mono text-micro text-muted-foreground">{fill(t("agent_chat.diff_truncated"), { count: String(file.truncated) })}</span>)}@@ -795,7 +817,7 @@ function DiffRow({ line }: { line: DiffLine }) {return (<divdata-diff="gap"- className="select-none px-2 py-0.5 font-mono text-[10px] text-muted-foreground/40"+ className="select-none px-2 py-0.5 font-mono text-micro text-muted-foreground">{line.text ? fill(t("agent_chat.diff_skipped"), { count: line.text }) : "⋯"}</div>@@ -808,7 +830,7 @@ function DiffRow({ line }: { line: DiffLine }) {"flex whitespace-pre-wrap break-words px-2 font-mono text-[11.5px] leading-relaxed",line.kind === "add" && "diff-line-add",line.kind === "del" && "diff-line-del",- line.kind === "ctx" && "text-muted-foreground/70",+ line.kind === "ctx" && "text-muted-foreground",)}><span aria-hidden className="mr-2 w-2 shrink-0 select-none opacity-70">@@ -824,13 +846,13 @@ function DiffStat({ added, removed }: { added: number; removed: number }) {if (added === 0 && removed === 0) return null;return (<span- className="shrink-0 font-mono text-[10px] tabular-nums"+ className="shrink-0 font-mono text-micro tabular-nums"data-testid="agent-diff-stat"data-added={added}data-removed={removed}>{added > 0 && <span className="diff-ink-add">+{added}</span>}- {added > 0 && removed > 0 && <span className="text-muted-foreground/40"> </span>}+ {added > 0 && removed > 0 && <span className="text-muted-foreground"> </span>}{removed > 0 && <span className="diff-ink-del">-{removed}</span>}</span>);@@ -952,12 +974,12 @@ function GroupToggle({data-testid="agent-tool-group-toggle"className={cn("-ml-1 flex w-full min-w-0 items-center gap-2 rounded-md px-1 py-1",- "text-left text-xs transition-colors hover:bg-secondary/50",+ "text-left text-xs transition-colors hover:bg-secondary",)}><ChevronRightclassName={cn(- "h-3.5 w-3.5 shrink-0 text-muted-foreground/50 transition-transform",+ "h-3.5 w-3.5 shrink-0 text-muted-foreground transition-transform",open && "rotate-90",)}aria-hidden@@ -968,7 +990,7 @@ function GroupToggle({{stat && <DiffStat added={stat.added} removed={stat.removed} />}<span className="flex-1" />{duration > 0 && (- <span className="shrink-0 font-mono text-[10px] tabular-nums text-muted-foreground/60">+ <span className="shrink-0 font-mono text-micro tabular-nums text-muted-foreground">{formatStepDuration(duration)}</span>)}@@ -1044,7 +1066,7 @@ function ToolRow({aria-expanded={open}className={cn("-ml-1 flex w-full min-w-0 items-center gap-2 rounded-md px-1 py-1 text-left transition-colors",- pending ? "ml-0 px-2 pt-1.5" : "hover:bg-secondary/50",+ pending ? "ml-0 px-2 pt-1.5" : "hover:bg-secondary",)}><span className="grid h-4 w-4 shrink-0 place-items-center">@@ -1062,7 +1084,7 @@ function ToolRow({<view.IconclassName={cn("h-3.5 w-3.5",- block.isError ? "text-destructive/80" : "text-muted-foreground",+ block.isError ? "text-destructive" : "text-muted-foreground",)}aria-hidden/>@@ -1077,7 +1099,7 @@ function ToolRow({{view.label}</span>{summary ? (- <span className="min-w-0 flex-1 truncate font-mono text-[11px] text-muted-foreground/80">+ <span className="min-w-0 flex-1 truncate font-mono text-micro text-muted-foreground">{summary}</span>) : (@@ -1085,18 +1107,18 @@ function ToolRow({)}{stat && !running && <DiffStat added={stat.added} removed={stat.removed} />}{running ? (- <span className="inline-flex shrink-0 items-center gap-1.5 text-[10px] text-primary/90">+ <span className="inline-flex shrink-0 items-center gap-1.5 text-micro text-primary/90"><Spinner /><span className="font-mono tabular-nums">{formatStepDuration(elapsed)}</span></span>) : block.durationMs !== null && block.durationMs > 0 ? (- <span className="shrink-0 font-mono text-[10px] tabular-nums text-muted-foreground/60">+ <span className="shrink-0 font-mono text-micro tabular-nums text-muted-foreground">{formatStepDuration(block.durationMs)}</span>) : null}<ChevronRightclassName={cn(- "h-3.5 w-3.5 shrink-0 text-muted-foreground/50 transition-transform",+ "h-3.5 w-3.5 shrink-0 text-muted-foreground transition-transform",open && "rotate-90",)}aria-hidden@@ -1105,7 +1127,7 @@ function ToolRow({{gist && !open && (<div- className="ml-[1.375rem] truncate font-mono text-[11px] text-destructive/80"+ className="ml-[1.375rem] truncate font-mono text-micro text-destructive"data-testid="agent-tool-gist">{gist}@@ -1207,13 +1229,13 @@ function Trace({function Detail({ label, text, error }: { label: string; text: string; error?: boolean }) {return (<div className="flex flex-col gap-0.5">- <span className="font-mono text-[10px] uppercase tracking-[0.12em] text-muted-foreground/60">+ <span className="font-mono text-micro text-muted-foreground">{label}</span><preclassName={cn("scrollbar-jarvis max-h-72 overflow-auto whitespace-pre-wrap break-words font-mono text-[11.5px] leading-relaxed",- error ? "text-destructive/90" : "text-muted-foreground",+ error ? "text-destructive" : "text-muted-foreground",)}>{text}diff --git a/jarvis/ui/web/frontend/src/components/agentchat/ChatAttachmentStrip.tsx b/jarvis/ui/web/frontend/src/components/agentchat/ChatAttachmentStrip.tsxindex 28cd05cc03..951bb63fa4 100644--- a/jarvis/ui/web/frontend/src/components/agentchat/ChatAttachmentStrip.tsx+++ b/jarvis/ui/web/frontend/src/components/agentchat/ChatAttachmentStrip.tsx@@ -47,7 +47,7 @@ export function ChatAttachmentStrip({: item.note || item.name}className={- "flex items-center gap-1.5 rounded-md border px-2 py-1 text-[11px] " ++ "flex items-center gap-1.5 rounded-md border px-2 py-1 text-micro " +(read? "border-primary/40 bg-primary/10 text-foreground": "border-border text-muted-foreground")@@ -59,7 +59,7 @@ export function ChatAttachmentStrip({<FileText className="h-3 w-3 shrink-0" aria-hidden />)}<span className="max-w-[12rem] truncate font-mono">{item.name}</span>- <span className="shrink-0 text-[10px] text-muted-foreground">+ <span className="shrink-0 text-micro text-muted-foreground">{read? item.described_by === "vision"? t("agent_chat.attach_described")@@ -81,7 +81,7 @@ export function ChatAttachmentStrip({{analyzing > 0 && (<spandata-testid="chat-attachment-working"- className="flex items-center gap-1.5 rounded-md border border-dashed border-border px-2 py-1 text-[11px] text-muted-foreground"+ className="flex items-center gap-1.5 rounded-md border border-dashed border-border px-2 py-1 text-micro text-muted-foreground"><Loader2 className="h-3 w-3 animate-spin" aria-hidden />{t("agent_chat.attach_working")}diff --git a/jarvis/ui/web/frontend/src/components/agentchat/ComposerTypeahead.tsx b/jarvis/ui/web/frontend/src/components/agentchat/ComposerTypeahead.tsxindex 25777327b1..c6e34663e6 100644--- a/jarvis/ui/web/frontend/src/components/agentchat/ComposerTypeahead.tsx+++ b/jarvis/ui/web/frontend/src/components/agentchat/ComposerTypeahead.tsx@@ -99,7 +99,7 @@ export function ComposerTypeahead({maxHeight: position.maxHeight,}}onMouseDown={(ev) => ev.preventDefault()}- className="fixed z-[70] flex flex-col overflow-y-auto rounded-xl border border-primary/25 bg-popover/95 p-1 text-sm shadow-[0_22px_55px_-16px_rgb(var(--scrim-rgb)/0.7),inset_0_1px_0_hsl(var(--foreground)/0.05)] backdrop-blur-xl"+ className="fixed z-[70] flex flex-col overflow-y-auto rounded-xl border border-primary/25 bg-popover p-1 text-sm shadow-[0_22px_55px_-16px_rgb(var(--scrim-rgb)/0.7),inset_0_1px_0_hsl(var(--foreground)/0.05)] backdrop-blur-xl">{items.length === 0 ? (<div className="px-3 py-2 text-xs text-muted-foreground" data-testid="composer-typeahead-empty">@@ -108,7 +108,7 @@ export function ComposerTypeahead({) : (runs.map((run) => (<div key={`${run.group}-${runningIndex}`} role="group" aria-label={groupLabel(run.group, t)}>- <div className="px-2 pb-0.5 pt-1.5 text-[10px] font-semibold uppercase tracking-wider text-muted-foreground">+ <div className="px-2 pb-0.5 pt-1.5 text-micro font-semibold text-muted-foreground">{groupLabel(run.group, t)}</div>{run.items.map((item) => {@@ -127,11 +127,11 @@ export function ComposerTypeahead({onClick={() => onPick(item)}className={cn("flex cursor-pointer items-center gap-2 rounded-lg px-2 py-1.5",- active ? "bg-primary/15 text-foreground" : "text-foreground/90",+ active ? "bg-primary/15 text-foreground" : "text-foreground",)}><Icon className="h-3.5 w-3.5 shrink-0 text-muted-foreground" aria-hidden />- <span className="shrink-0 font-mono text-[13px]">+ <span className="shrink-0 font-mono text-meta"><span className="text-muted-foreground">{trigger}</span>{item.value}</span>diff --git a/jarvis/ui/web/frontend/src/components/agentic/AgentAllocation.tsx b/jarvis/ui/web/frontend/src/components/agentic/AgentAllocation.tsxindex ccc8a602c0..fcdd6018e9 100644--- a/jarvis/ui/web/frontend/src/components/agentic/AgentAllocation.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/AgentAllocation.tsx@@ -247,7 +247,7 @@ export function AgentAllocation({return (<div>- <div className="border-b border-border/70 pb-5">+ <div className="border-b border-border pb-5"><div className="flex items-end justify-between gap-5"><div><SectionLabel>@@ -276,7 +276,7 @@ export function AgentAllocation({}}/></div>- <p className="mt-2 text-right text-[11px] text-muted-foreground">+ <p className="mt-2 text-right text-micro text-muted-foreground">{unassigned === 0? t("workspace_launcher.agents.all_assigned"): t("workspace_launcher.agents.unassigned").replace(@@ -286,7 +286,7 @@ export function AgentAllocation({</p></div>- <div className="flex flex-wrap items-center gap-2 border-b border-border/70 py-4">+ <div className="flex flex-wrap items-center gap-2 border-b border-border py-4"><SectionLabel className="mr-1">{t("workspace_launcher.agents.quick_fill")}</SectionLabel>@@ -313,7 +313,7 @@ export function AgentAllocation({</Button></div>- <div className="border-b border-border/70">+ <div className="border-b border-border">{agents.map((agent) => {const count = counts[agent.name] ?? 0;const accounts = accountsFor(agent.name);@@ -323,7 +323,7 @@ export function AgentAllocation({<divkey={agent.name}className={cn(- "group grid gap-3 border-b border-border/50 px-1 py-3 last:border-b-0 sm:grid-cols-[minmax(0,1fr)_auto] sm:items-center",+ "group grid gap-3 border-b border-border px-1 py-3 last:border-b-0 sm:grid-cols-[minmax(0,1fr)_auto] sm:items-center",count > 0 && "bg-primary/[0.035]",)}>@@ -364,7 +364,7 @@ export function AgentAllocation({<span className="font-medium text-foreground">{agent.display_name}</span>- <span className="text-[11px] text-muted-foreground">+ <span className="text-micro text-muted-foreground">{agent.installed? agent.version ||t("workspace_launcher.agents.installed")@@ -406,12 +406,12 @@ export function AgentAllocation({)}</div>{agent.description && (- <p className="truncate text-[11px] text-muted-foreground">+ <p className="truncate text-micro text-muted-foreground">{agent.description}</p>)}{accounts.length >= 2 && count > 0 && (- <label className="mt-2 flex max-w-sm items-center gap-2 text-[11px] text-muted-foreground">+ <label className="mt-2 flex max-w-sm items-center gap-2 text-micro text-muted-foreground"><span>{t("workspace_launcher.agents.account")}</span><BrandedSelectvalue={selectedAccount}@@ -447,7 +447,7 @@ export function AgentAllocation({<div className="flex items-center justify-end gap-2"><Buttonvariant="subtle"- className="h-10 min-w-12 px-3 text-[10px] uppercase tracking-[0.12em]"+ className="h-10 min-w-12 px-3 text-micro "disabled={!agent.installed}onClick={() => commitCounts({ [agent.name]: total })}>@@ -465,11 +465,11 @@ export function AgentAllocation({)}disabled={!agent.installed || count === 0}onClick={() => setCount(agent.name, count - 1)}- className="flex h-10 items-center justify-center text-muted-foreground transition-colors hover:bg-secondary/60 hover:text-foreground active:scale-95 disabled:opacity-30"+ className="flex h-10 items-center justify-center text-muted-foreground transition-colors hover:bg-secondary hover:text-foreground active:scale-95 disabled:opacity-30"><Minus className="h-3.5 w-3.5" /></button>- <label className="flex h-10 min-w-0 items-center justify-center border-x border-border bg-card/30 px-2 focus-within:bg-secondary/45">+ <label className="flex h-10 min-w-0 items-center justify-center border-x border-border bg-card px-2 focus-within:bg-secondary"><inputtype="number"inputMode="numeric"@@ -494,7 +494,7 @@ export function AgentAllocation({/><spanaria-hidden="true"- className="ml-1 whitespace-nowrap font-mono text-[10px] tabular-nums text-muted-foreground"+ className="ml-1 whitespace-nowrap font-mono text-micro tabular-nums text-muted-foreground">/ {total}</span>@@ -507,7 +507,7 @@ export function AgentAllocation({)}disabled={!agent.installed || count >= total}onClick={() => setCount(agent.name, count + 1)}- className="flex h-10 items-center justify-center text-muted-foreground transition-colors hover:bg-secondary/60 hover:text-foreground active:scale-95 disabled:opacity-30"+ className="flex h-10 items-center justify-center text-muted-foreground transition-colors hover:bg-secondary hover:text-foreground active:scale-95 disabled:opacity-30"><Plus className="h-3.5 w-3.5" /></button>@@ -521,10 +521,10 @@ export function AgentAllocation({{/* Adding your own sits at the END of the list rather than in a settingspage, because this is where the question comes up: the user islooking at six CLIs and the one they wanted is not among them. */}- <div className="flex flex-wrap items-center justify-between gap-3 border-b border-border/70 px-1 py-3">+ <div className="flex flex-wrap items-center justify-between gap-3 border-b border-border px-1 py-3"><div className="min-w-0"><p className="text-sm text-foreground">{t("custom_cli.add_title")}</p>- <p className="text-[11px] leading-relaxed text-muted-foreground">+ <p className="text-micro text-muted-foreground">{t("custom_cli.add_hint")}</p></div>@@ -548,7 +548,7 @@ export function AgentAllocation({</p>)}- <p className="mt-3 text-[11px] leading-relaxed text-muted-foreground">+ <p className="mt-3 text-micro text-muted-foreground">{t("workspace_launcher.agents.auto_names")}</p>diff --git a/jarvis/ui/web/frontend/src/components/agentic/AgentInstallDialog.tsx b/jarvis/ui/web/frontend/src/components/agentic/AgentInstallDialog.tsxindex 73c56ebd0c..ab46f35777 100644--- a/jarvis/ui/web/frontend/src/components/agentic/AgentInstallDialog.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/AgentInstallDialog.tsx@@ -132,7 +132,9 @@ export function AgentInstallDialog({aria-modal="true"aria-label={`Install ${displayName}`}data-testid={`agent-install-dialog-${agent}`}- className="flex h-[32rem] max-h-full w-full max-w-3xl flex-col overflow-hidden rounded-xl border border-border bg-card"+ // A dialog floats: the floating ground plus the cast edge, not a card+ // fill with a hairline drawn around it.+ className="flex h-[32rem] max-h-full w-full max-w-3xl flex-col overflow-hidden rounded-lg bg-popover shadow-float"onMouseDown={(e) => e.stopPropagation()}><header className="flex items-center gap-3 border-b border-border px-4 py-3">@@ -149,7 +151,7 @@ export function AgentInstallDialog({{/* The command, before and while it runs. A user who would ratherrun it in their own shell can read it here and close this. */}{command && (- <p className="truncate font-mono text-[11px] text-muted-foreground">+ <p className="truncate font-mono text-micro text-muted-foreground">{command}</p>)}diff --git a/jarvis/ui/web/frontend/src/components/agentic/AgentMark.tsx b/jarvis/ui/web/frontend/src/components/agentic/AgentMark.tsxindex ea9e38c054..41f77df5cd 100644--- a/jarvis/ui/web/frontend/src/components/agentic/AgentMark.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/AgentMark.tsx@@ -145,7 +145,7 @@ export function AgentMark({data-ground={asset?.ground ?? "none"}aria-hidden="true"className={cn(- "inline-flex shrink-0 items-center justify-center overflow-hidden text-[9px] font-bold tracking-tight text-muted-foreground",+ "inline-flex shrink-0 items-center justify-center overflow-hidden text-micro font-bold tracking-tight text-muted-foreground",// The tile, and the brightness that goes with being one. Without it the// glyph sits at the weight of the text it accompanies, which is the// point of `plain`.@@ -154,8 +154,8 @@ export function AgentMark({? "rounded-[4px] bg-scrim/95 p-px": "opacity-70": canvased- ? "border border-border/80 bg-scrim/95"- : "border border-border/80 bg-background/80",+ ? "border border-border bg-scrim/95"+ : "border border-border bg-background",sizeClass,className,)}diff --git a/jarvis/ui/web/frontend/src/components/agentic/AgentPicker.tsx b/jarvis/ui/web/frontend/src/components/agentic/AgentPicker.tsxindex 4bd8d960a1..2d496296e5 100644--- a/jarvis/ui/web/frontend/src/components/agentic/AgentPicker.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/AgentPicker.tsx@@ -302,7 +302,7 @@ export function AgentPickerMenu({it is the one line that says what the click will do. The rule underit separates the question from the answers, so the first entry doesnot read as part of the heading. */}- <p className="mb-1 border-b border-border/60 px-2 pb-1.5 pt-1 text-[11px] font-semibold uppercase tracking-wider text-foreground/70">+ <p className="mb-1 border-b border-border px-2 pb-1.5 pt-1 text-micro font-semibold text-foreground">{title}</p>{agents.map((agent) => {@@ -361,7 +361,7 @@ export function AgentPickerMenu({is the difference a user needs before clicking, and it is theentry's own words rather than a name this menu recognises. */}{agent.description && (- <span className="block truncate text-[11px] text-muted-foreground">+ <span className="block truncate text-micro text-muted-foreground">{agent.description}</span>)}@@ -371,7 +371,7 @@ export function AgentPickerMenu({in a 272px menu costs the entry's description its line and saysnothing the button does not. */}{!agent.installed && !installable && (- <span className="shrink-0 text-[10px] font-medium uppercase tracking-wide text-muted-foreground">+ <span className="shrink-0 text-micro font-medium text-muted-foreground">{agent.kind === "shell" ? "no shell here" : "not installed"}</span>)}@@ -390,7 +390,7 @@ export function AgentPickerMenu({action, and a column of solid buttons would read as themenu itself being about installing. Its colours are themetokens, so it follows light and dark. */- className="my-0.5 shrink-0 self-center rounded-md border border-border px-2 py-1 text-[11px] font-medium text-foreground transition-colors hover:border-primary/60 hover:bg-primary/10"+ className="my-0.5 shrink-0 self-center rounded-md border border-border px-2 py-1 text-micro font-medium text-foreground transition-colors hover:border-primary/60 hover:bg-primary/10">Install</button>diff --git a/jarvis/ui/web/frontend/src/components/agentic/AgenticGrid.tsx b/jarvis/ui/web/frontend/src/components/agentic/AgenticGrid.tsxindex 2de7f2859a..19fef7aef9 100644--- a/jarvis/ui/web/frontend/src/components/agentic/AgenticGrid.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/AgenticGrid.tsx@@ -242,12 +242,25 @@ export function zoomedFontSize(from: number, intent: ZoomIntent): number {*/const TOOLBAR_BTN ="flex h-7 w-7 shrink-0 items-center justify-center rounded-control text-muted-foreground " +- "transition-colors hover:bg-secondary hover:text-foreground " +- "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/60 " ++ // The interaction ladder, and it only ever goes UP. The toolbar is chrome,+ // so it rests on --sidebar; one step up from the rail is the object step,+ // which leaves the lift step free to mean "this is ON" below.+ "transition-colors hover:bg-card hover:text-foreground " ++ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-strong " +"disabled:cursor-not-allowed disabled:opacity-40";-/** The same button, switched ON — the only yellow the toolbar spends. */-const TOOLBAR_BTN_ON = "bg-primary/15 text-primary hover:bg-primary/20 hover:text-primary";+/**+ * The same button, switched ON.+ *+ * A selected control is `--secondary` with the heading ink on it — the app-wide+ * recipe, the same one the workspace tabs and every list row use. It used to be+ * `--primary` at 15 % with `--primary` as the glyph colour: an opacity standing+ * in for a surface, and a fill used as an ink. With the brand hue retired+ * `--primary` is pure white, so that spelling now paints the loudest mark on+ * the screen onto a 28 px toggle.+ */+const TOOLBAR_BTN_ON =+ "bg-secondary text-foreground-strong hover:bg-secondary hover:text-foreground-strong";/*** The reading-mode switch, one entry per view.@@ -2118,12 +2131,23 @@ export function AgenticGrid({*/}<divdata-testid="agentic-toolbar"- className="flex shrink-0 flex-nowrap items-center gap-2 border-b border-border px-2 py-1"+ // Standing chrome, so it takes the rail token — the one surface in this+ // view that is allowed to differ from the room, because it stays put+ // while everything below it changes. The panes underneath sit at the+ // room value, so the bar reads as a shelf without a fill loud enough to+ // compete with them. It had no ground at all before and inherited+ // whatever was behind it, which is how a wallpaper ended up needing a+ // stack of text-shadows in index.css to keep these controls legible.+ className="flex shrink-0 flex-nowrap items-center gap-2 border-b border-border bg-sidebar px-2 py-1">{workspaceBar ?? (<div className="flex min-w-0 flex-1 items-center gap-2">- <FolderGit2 className="h-4 w-4 shrink-0 text-primary" />- <span className="truncate font-display text-sm font-semibold">{project.name}</span>+ {/* Meta ink, not the fill: a folder glyph labels the project name+ beside it and must not out-shout it. */}+ <FolderGit2 className="h-4 w-4 shrink-0 text-muted-foreground" />+ <span className="truncate font-display text-sm font-semibold text-foreground-strong">+ {project.name}+ </span></div>)}@@ -2134,7 +2158,7 @@ export function AgenticGrid({a chip: it is a fact to glance at, not a control to weigh. */}{branchLabel && (<span- className="hidden shrink-0 font-mono text-[11px] text-muted-foreground xl:inline"+ className="hidden shrink-0 font-mono text-micro text-muted-foreground xl:inline"title={session.folder}>{branchLabel}@@ -2289,12 +2313,17 @@ export function AgenticGrid({{selectionMode && (<divdata-testid="terminal-selection-actions"- className="flex shrink-0 items-center gap-1 rounded-lg border border-primary/35 bg-primary/5 p-1"+ // A content-sized cluster, so it may lift: the object step, with no+ // rim, because a surface with a real fill does not also need one.+ // It used to be `--primary` at 5 % behind a `--primary`/35 rim —+ // two opacities describing a box that a single named surface says+ // better, and both of them nearly invisible on near-black.+ className="flex shrink-0 items-center gap-1 rounded-lg bg-card p-1"><spanrole="status"aria-live="polite"- className="px-2 text-xs font-semibold text-primary"+ className="px-2 text-xs font-semibold text-foreground-strong">{t("agentic_grid.selection.selected_count").replace("{0}",@@ -2611,7 +2640,10 @@ export function AgenticGrid({ZONE_BOX[arrange.hover.zone],)}/>- <span className="absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 whitespace-nowrap rounded-md bg-foreground/70 px-2 py-1 text-[11px] font-semibold text-primary-foreground">+ {/* A solid fill, not ink at 70 %: this label lands on a+ live terminal, and a translucent plate over moving+ text is the one place a real fill is not optional. */}+ <span className="absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 whitespace-nowrap rounded-md bg-primary px-2 py-1 text-micro font-semibold text-primary-foreground">{t(`agentic_grid.arrange.${arrange.hover.zone}`).replace("{0}",term.name,@@ -2650,10 +2682,13 @@ export function AgenticGrid({><spanclassName={cn(- "absolute left-1/2 top-1/2 flex h-8 w-8 -translate-x-1/2 -translate-y-1/2 items-center justify-center rounded-lg border transition-colors",+ "absolute left-1/2 top-1/2 flex h-8 w-8 -translate-x-1/2 -translate-y-1/2 items-center justify-center rounded-lg transition-colors",+ // Ticked is a real fill and needs no rim; empty is a+ // card with one, because a box with nothing in it is+ // the one shape a rim has to describe on its own.selectedTerminals.has(term.name)- ? "border-primary bg-foreground/70 text-primary-foreground"- : "border-border bg-card/90 text-transparent",+ ? "bg-primary text-primary-foreground"+ : "border border-border bg-card text-transparent",)}aria-hidden="true">@@ -2851,7 +2886,12 @@ export function AgenticGrid({<MoveHorizontalaria-hiddenclassName={cn(- "pointer-events-none absolute left-1/2 top-1/2 h-5 w-5 -translate-x-1/2 -translate-y-1/2 rounded-full border border-primary/35 bg-background/90 p-0.5 text-primary backdrop-blur transition-opacity",+ // The seam grip is structure, not an object: a lift fill on+ // the room, no rim, and the glyph in body ink. It used to+ // wear a `--primary` outline and a `--primary` glyph, which+ // with the brand hue retired made a 20 px handle the+ // brightest thing between the explorer and the panes.+ "pointer-events-none absolute left-1/2 top-1/2 h-5 w-5 -translate-x-1/2 -translate-y-1/2 rounded-full bg-secondary p-0.5 text-foreground transition-opacity",explorerPane.isResizing? "opacity-100": "opacity-0 group-hover:opacity-100 group-focus-within:opacity-100",@@ -2907,7 +2947,10 @@ export function AgenticGrid({{arrange.held !== null && arrange.point !== null && (<divdata-testid="agentic-arrange-ghost"- className="pointer-events-none fixed z-50 flex items-center gap-1.5 rounded-lg border border-primary/60 bg-card px-2.5 py-1.5 text-xs font-semibold"+ // A floating layer: the float surface plus the float shadow, which+ // already carries a `--border-strong` ring. The extra `--primary`/60+ // rim was a third separation device on something that has two.+ className="pointer-events-none fixed z-50 flex items-center gap-1.5 rounded-md bg-popover px-2.5 py-1.5 text-xs font-semibold text-foreground-strong shadow-float"style={{ left: arrange.point.x + 14, top: arrange.point.y + 14 }}><GripVertical className="h-3.5 w-3.5 text-primary" />@@ -2926,7 +2969,7 @@ export function AgenticGrid({{arrange.hover !== null && !arrange.swapping && (<spandata-testid="agentic-arrange-swap-hint"- className="font-normal text-muted-foreground/70"+ className="font-normal text-muted-foreground">{t("agentic_grid.arrange.swap_hint")}</span>@@ -2961,7 +3004,7 @@ function ViewMenu({data-testid="agentic-view-menu"title={t("agentic_grid.display.appearance")}onClick={() => setOpen((value) => !value)}- className={cn(TOOLBAR_BTN, open && "bg-secondary text-foreground")}+ className={cn(TOOLBAR_BTN, open && TOOLBAR_BTN_ON)}><SlidersHorizontal className="h-4 w-4" /></button>@@ -2971,7 +3014,7 @@ function ViewMenu({<div className="fixed inset-0 z-40" onMouseDown={() => setOpen(false)} /><divdata-testid="agentic-view-menu-panel"- className="absolute right-0 top-full z-50 mt-1 w-60 rounded-xl border border-border bg-card p-3"+ className="absolute right-0 top-full z-50 mt-1 w-60 rounded-lg bg-popover p-3 shadow-float"><div className="flex items-center justify-between gap-3"><span className="text-xs text-muted-foreground">@@ -2984,10 +3027,14 @@ function ViewMenu({aria-pressed={appearance === "light"}onClick={() => onAppearance("light")}className={cn(- "flex h-6 w-6 items-center justify-center rounded transition-colors",+ "flex h-6 w-6 items-center justify-center rounded-md transition-colors",+ // The app-wide selected recipe: the lift surface with the+ // heading ink on it. `--primary` at 20 % was an opacity+ // doing a surface's job, and `--primary` as the glyph+ // colour is a fill used as an ink.appearance === "light"- ? "bg-primary/20 text-primary"- : "text-muted-foreground hover:text-foreground",+ ? "bg-secondary text-foreground-strong"+ : "text-muted-foreground hover:bg-card hover:text-foreground",)}><Sun className="h-3.5 w-3.5" />@@ -2998,10 +3045,10 @@ function ViewMenu({aria-pressed={appearance === "dark"}onClick={() => onAppearance("dark")}className={cn(- "flex h-6 w-6 items-center justify-center rounded transition-colors",+ "flex h-6 w-6 items-center justify-center rounded-md transition-colors",appearance === "dark"- ? "bg-primary/20 text-primary"- : "text-muted-foreground hover:text-foreground",+ ? "bg-secondary text-foreground-strong"+ : "text-muted-foreground hover:bg-card hover:text-foreground",)}><Moon className="h-3.5 w-3.5" />@@ -3066,7 +3113,7 @@ function ToolbarOverflow({ children }: { children: React.ReactNode }) {className={cn("contents",open- ? "max-[900px]:absolute max-[900px]:right-0 max-[900px]:top-full max-[900px]:z-50 max-[900px]:mt-1 max-[900px]:flex max-[900px]:w-[min(22rem,calc(100vw-1rem))] max-[900px]:flex-wrap max-[900px]:items-center max-[900px]:justify-end max-[900px]:gap-1 max-[900px]:rounded-xl max-[900px]:border max-[900px]:border-border max-[900px]:bg-card max-[900px]:p-2"+ ? "max-[900px]:absolute max-[900px]:right-0 max-[900px]:top-full max-[900px]:z-50 max-[900px]:mt-1 max-[900px]:flex max-[900px]:w-[min(22rem,calc(100vw-1rem))] max-[900px]:flex-wrap max-[900px]:items-center max-[900px]:justify-end max-[900px]:gap-1 max-[900px]:rounded-lg max-[900px]:bg-popover max-[900px]:p-2 max-[900px]:shadow-float": "max-[900px]:hidden",)}>@@ -3146,7 +3193,7 @@ function TerminalFontSizeControl({isMac ? "Meta+Plus Meta+Minus Meta+0" : "Control+Plus Control+Minus Control+0"}title={`${t("agentic_grid.display.text_size")} — ${chordHint}`}- className="flex h-7 shrink-0 items-center rounded-md border border-border/70 bg-background/30"+ className="flex h-7 shrink-0 items-center rounded-md border border-border bg-background"><Type aria-hidden="true" className="mx-1 h-3.5 w-3.5 text-muted-foreground" /><button@@ -3161,7 +3208,7 @@ function TerminalFontSizeControl({<spanaria-live="polite"data-testid="agentic-font-size-value"- className="w-7 text-center font-mono text-[11px] tabular-nums text-foreground"+ className="w-7 text-center font-mono text-micro tabular-nums text-foreground">{fontSize}</span>@@ -3194,10 +3241,10 @@ function ConfirmSelectionClose({const t = useT();return (<Dialog.Portal>- <Dialog.Overlay className="fixed inset-0 z-50 bg-background/70 backdrop-blur-sm" />+ <Dialog.Overlay className="fixed inset-0 z-50 bg-background backdrop-blur-sm" /><Dialog.Contentdata-testid="confirm-close-selection"- className="fixed left-1/2 top-1/2 z-50 w-[min(26rem,calc(100vw-3rem))] -translate-x-1/2 -translate-y-1/2 rounded-xl border border-border bg-card p-5"+ className="fixed left-1/2 top-1/2 z-50 w-[min(26rem,calc(100vw-3rem))] -translate-x-1/2 -translate-y-1/2 rounded-lg bg-popover p-5 shadow-float"onEscapeKeyDown={(event) => {if (busy) event.preventDefault();}}@@ -3274,10 +3321,10 @@ function ConfirmWorkspaceClose({return (<Dialog.Portal>- <Dialog.Overlay className="fixed inset-0 z-50 bg-background/70 backdrop-blur-sm" />+ <Dialog.Overlay className="fixed inset-0 z-50 bg-background backdrop-blur-sm" /><Dialog.Contentdata-testid="confirm-close-workspace"- className="fixed left-1/2 top-1/2 z-50 w-[min(24rem,calc(100vw-3rem))] -translate-x-1/2 -translate-y-1/2 rounded-xl border border-border bg-card p-5"+ className="fixed left-1/2 top-1/2 z-50 w-[min(24rem,calc(100vw-3rem))] -translate-x-1/2 -translate-y-1/2 rounded-lg bg-popover p-5 shadow-float"onEscapeKeyDown={(event) => {if (busy) event.preventDefault();}}@@ -3337,12 +3384,12 @@ function ConfirmClose({aria-modal="true"aria-label={`Close ${name}`}data-testid="confirm-close-terminal"- className="absolute inset-0 z-30 flex items-center justify-center bg-background/70 p-6 backdrop-blur-sm"+ className="absolute inset-0 z-30 flex items-center justify-center bg-background p-6 backdrop-blur-sm"onKeyDown={(e) => {if (e.key === "Escape") onCancel();}}>- <div className="w-full max-w-sm rounded-xl border border-border bg-card p-5">+ <div className="w-full max-w-sm rounded-lg bg-popover shadow-float p-5"><h3 className="font-display text-base font-semibold">Close {name}?</h3><p className="mt-2 text-sm text-muted-foreground">The coding agent running in this terminal is stopped and its session is gone. Anything itdiff --git a/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.test.tsx b/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.test.tsxindex a887981e6d..128f3bb605 100644--- a/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.test.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.test.tsx@@ -2523,7 +2523,7 @@ describe("pane status", () => {const frame = screen.getByTestId("agentic-pane-Dana");expect(frame.style.borderColor).toBe("");- expect(frame.className).toContain("border-primary/60");+ expect(frame.className).toContain("border-border-strong");view.rerender(pane({ focused: false }));expect(frame.style.borderColor).not.toBe("");diff --git a/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.tsx b/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.tsxindex 9bbccd7aed..598730ec9b 100644--- a/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.tsx@@ -2239,15 +2239,22 @@ export function AgenticTerminal({// read as a flicker rather than as a pane taking focus."relative flex h-full w-full flex-col overflow-hidden rounded-lg border backdrop-blur-[4px]","transition-[box-shadow,border-color,opacity] duration-150 ease-out motion-reduce:transition-none",- focused &&- "border-primary/60 shadow-[0_0_0_1px_hsl(var(--primary)/0.3)]",- dragging && "border-primary shadow-[0_0_0_2px_hsl(var(--primary)/0.5)]",- // A prompt just landed here. Two seconds of ring, for the one job the- // receipt below cannot do: telling the user WHICH pane out of eight to- // look at. Colour and shadow only — nothing moves, because a pane that- // jumps while an agent is drawing into it is worse than a quiet one.- justDelivered &&- "border-primary shadow-[0_0_0_2px_hsl(var(--primary)/0.6),0_0_28px_-4px_hsl(var(--primary)/0.55)]",+ // Focus steps the RIM one notch, from the structural hairline to+ // `--border-strong`, and stops there. It used to add a translucent+ // white edge and a shadow ring on top, which put three marks on a+ // state the header already announces three other ways (the filled+ // call-sign plate, the accent hairline under it, the visible action+ // cluster). A rim is the second separation device, never the first,+ // and a shadow belongs only to something that floats.+ focused && "border-border-strong",+ // Being carried, and "a prompt just landed here", are the two states+ // that must be findable across a wall of twelve. They get the fill —+ // a solid `--primary` edge plus the sanctioned focus ring — because+ // that is the loudest neutral mark the system has. The old version+ // added a 28px bloom around it; a glow is additive light standing in+ // for a fill, and the fill is right here.+ dragging && "border-primary ring-2 ring-primary",+ justDelivered && "border-primary ring-2 ring-primary",// Lifted out of the grid while it is being carried: the pane stays where// it is (moving it under the cursor would tear down nothing but would// reflow every other pane on every mouse move) and says so by fading.@@ -2394,26 +2401,34 @@ export function AgenticTerminal({className="pointer-events-none absolute inset-0 flex items-center justify-center"><div- className="flex items-center gap-2 rounded-xl border px-4 py-2.5 text-sm text-muted-foreground"+ // `rounded-lg` is the radius every card-shaped thing in the+ // product takes; `rounded-xl` was a fourth step nothing else+ // used. The spinner is decoration beside the sentence, so it+ // wears the same meta ink — `--primary` is a fill, and an icon+ // brighter than the words it sits next to is a bug.+ className="flex items-center gap-2 rounded-lg border px-4 py-2.5 text-sm text-muted-foreground"style={{ background: chrome.shell, borderColor: chrome.border }}>- <Loader2 className="h-4 w-4 animate-spin text-primary" />+ <Loader2 className="h-4 w-4 animate-spin" /><span>Starting {displayName}…</span></div></div>)}</div>{(dragging || attaching) && (- <div className="pointer-events-none absolute inset-0 flex items-center justify-center bg-background/70 backdrop-blur-[2px]">- <div className="flex items-center gap-2 rounded-xl border border-primary/50 bg-card px-4 py-2.5 text-sm">+ <div className="pointer-events-none absolute inset-0 flex items-center justify-center bg-background backdrop-blur-[2px]">+ {/* A real card fill separates this from the pane behind it, so it+ needs no rim of its own — and the two glyphs are decoration+ beside their sentence, not marks, so they take the meta ink. */}+ <div className="flex items-center gap-2 rounded-lg bg-card px-4 py-2.5 text-sm text-foreground">{attaching ? (<>- <Loader2 className="h-4 w-4 animate-spin text-primary" />+ <Loader2 className="h-4 w-4 animate-spin text-muted-foreground" /><span>Attaching to {name}…</span></>) : (<>- <Paperclip className="h-4 w-4 text-primary" />+ <Paperclip className="h-4 w-4 text-muted-foreground" /><span>Drop to put it in front of <strong>{name}</strong></span>@@ -2700,16 +2715,11 @@ function PaneHeader({style={{borderColor: PANE_CHROME[appearance].border,- // The focused pane's bar gets a whisper of the accent — one wash on- // one pane, never twelve tinted bands (see the class note above).- backgroundImage: focused- ? `linear-gradient(180deg, ${brand.accentWash}, transparent)`- : undefined,// Claims the touch gesture for the drag. Without it a touch that// starts on the header scrolls the workspace instead of lifting the// pane, and the drag never begins at all.touchAction: onArrangeStart ? "none" : undefined,- // The bar's brand, published as variables so hover/focus states can+ // The bar's ladder, published as variables so hover/focus states can// be CLASSES. An inline `color` beats every class (see PaneAction's// note), so anything that changes on interaction reads these instead// of receiving an inline style.@@ -2717,6 +2727,8 @@ function PaneHeader({"--pane-accent-soft": brand.accentSoft,"--pane-ink": brand.ink,"--pane-ink-muted": brand.inkMuted,+ "--pane-ink-faint": brand.inkFaint,+ "--pane-chip": brand.chip,} as React.CSSProperties}>@@ -2773,10 +2785,14 @@ function PaneHeader({event.stopPropagation();}}className={cn(- "w-full min-w-0 max-w-[9rem] rounded-md px-2 py-0.5 font-display text-[13px] font-semibold tracking-tight outline-none",- // The pane's own accent, not the app's: the vars are set on the- // header, so a light pane in a dark app still edits in gold.- "border border-[color:var(--pane-accent-soft)] transition-colors focus:border-[color:var(--pane-accent)] disabled:opacity-60",+ "w-full min-w-0 max-w-[9rem] rounded-md px-2 py-0.5 font-display text-meta font-semibold tracking-tight outline-none",+ // A field is a LIFT surface, and a surface with a real fill+ // needs no rim: the chip ground is what says "you can type+ // here". Focus answers with a ring rather than a second fill+ // or a brighter edge. Both come from the pane's own ladder+ // (the `--pane-*` variables the header publishes), so a light+ // pane inside a dark app still edits on its own ground.+ "transition-shadow focus:ring-2 focus:ring-[color:var(--pane-accent-soft)] disabled:opacity-60",)}style={{ color: brand.ink, background: brand.chip }}/>@@ -2786,8 +2802,8 @@ function PaneHeader({aria-label={`Save name for ${name}`}data-testid={`pane-rename-save-${name}`}className={cn(- "flex h-5 w-5 shrink-0 items-center justify-center rounded text-[color:var(--pane-accent)]",- "transition-colors duration-150 hover:bg-[color:var(--pane-accent-soft)] disabled:opacity-40",+ "flex h-5 w-5 shrink-0 items-center justify-center rounded-md text-[color:var(--pane-ink)]",+ "transition-colors duration-150 hover:bg-[color:var(--pane-chip)] disabled:opacity-40","focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[color:var(--pane-accent)]",)}>@@ -2803,14 +2819,16 @@ function PaneHeader({aria-label={`Cancel renaming ${name}`}onClick={() => setDraft(null)}className={cn(- "flex h-5 w-5 shrink-0 items-center justify-center rounded",+ "flex h-5 w-5 shrink-0 items-center justify-center rounded-md","transition-colors duration-150","focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[color:var(--pane-accent)]",// On the pane's ground, so the pane's ink — not the app's// muted-foreground, which disagrees exactly in mixed mode.- light- ? "text-[#6b6b73] hover:bg-scrim/10 hover:text-[#2b2b33]"- : "text-[#9a9aa5] hover:bg-sheen/10 hover:text-[#e8e8ec]",+ // Read from the `--pane-*` variables the header publishes+ // rather than from a hex per appearance: the ladder lives in+ // ONE table (./terminalThemes) and every reader of it agrees.+ "text-[color:var(--pane-ink-muted)] hover:bg-[color:var(--pane-chip)]",+ "hover:text-[color:var(--pane-ink)]",)}><X className="h-3 w-3" />@@ -2837,21 +2855,21 @@ function PaneHeader({}// No native `title` here: the rename gesture is a row in the// bar's own explainer card, which replaced the system tooltip.- // The focused pane's call-sign wears the brand plate — filled- // signal-yellow with black type on dark panes, gold with white- // type on light ones. Every other name sits on a quiet chip so- // the plate stays the workspace's one standing accent: a filled- // badge on all twelve panes marked nothing, because a marker- // everyone wears is a uniform. The colours come from PANE_BRAND- // (the pane's own ground), never the app theme.- className="shrink-0 rounded-md px-1.5 py-0.5 font-display text-[13px] font-semibold leading-none tracking-tight transition-[background-color,color,box-shadow] duration-150"+ // The focused pane's call-sign wears the FILL — white type-holes+ // on a dark pane, warm near-black on a light one. Every other+ // name sits on a quiet chip (the pane's lift step) so the plate+ // stays the workspace's one standing mark: a filled badge on all+ // twelve panes marked nothing, because a marker everyone wears+ // is a uniform. The colours come from PANE_BRAND (the pane's own+ // ground), never the app theme.+ //+ // No shadow under the plate any more. Depth on this ground is+ // carried by the fill; a soft glow around a 40px badge was a+ // bloom standing in for the contrast the fill already has.+ className="shrink-0 rounded-md px-1.5 py-0.5 font-display text-meta font-semibold leading-none tracking-tight transition-[background-color,color] duration-150"style={focused- ? {- background: brand.accent,- color: brand.onAccent,- boxShadow: `0 1px 8px ${brand.accentSoft}`,- }+ ? { background: brand.accent, color: brand.onAccent }: { background: brand.chip, color: brand.ink }}>@@ -2866,11 +2884,14 @@ function PaneHeader({onClick={() => setDraft(name)}onMouseDown={(event) => event.stopPropagation()}className={cn(- "flex h-5 w-5 shrink-0 items-center justify-center rounded transition-opacity",+ // Ink and hover ground come from the pane's own ladder+ // (`--pane-*`, published on the header), not from a literal+ // per-appearance hex and not from the app's tokens: a light+ // pane can sit inside a dark app, and this button has to read+ // on the ground it is actually drawn on.+ "flex h-5 w-5 shrink-0 items-center justify-center rounded-md transition-opacity",+ "text-[color:var(--pane-ink-muted)] hover:bg-[color:var(--pane-chip)]","opacity-0 focus-visible:opacity-100 group-hover/header:opacity-100",- light- ? "text-[#6b6b73] hover:bg-scrim/10"- : "text-[#9a9aa5] hover:bg-sheen/10",)}><Pencil className="h-3 w-3" />@@ -2927,12 +2948,12 @@ function PaneHeader({// Allowed to give way (`min-w-0`, no `shrink-0`): which seat a pane// bills is worth a badge, but never worth pushing the call-sign or// the pane's own state off a narrow header to say it.- className="min-w-0 max-w-[8rem] truncate rounded-full px-2 py-px font-display text-[10px] font-medium tracking-wide"- style={{- color: brand.inkFaint,- backgroundColor: brand.chip,- boxShadow: `inset 0 0 0 1px ${PANE_CHROME[appearance].border}`,- }}+ // 11px is the type floor, and this badge sat below it. It also+ // wore the placeholder ink, which is reserved for text that is NOT+ // information — which seat a pane bills plainly is. Meta ink, on+ // the lift chip, with no rim: the fill already separates it.+ className="min-w-0 max-w-[8rem] truncate rounded-full px-2 py-px font-display text-micro font-medium tracking-wide"+ style={{ color: brand.inkMuted, backgroundColor: brand.chip }}title={`Running on ${accountLabel}`}data-testid={`pane-account-${name}`}>@@ -2969,7 +2990,6 @@ function PaneHeader({<PaneActionlabel={t("agentic_grid.pane_chat.open").replace("{0}", name)}testId={`pane-open-chat-${name}`}- light={light}onClick={onOpenChat}><MessageSquare className="h-3.5 w-3.5" aria-hidden="true" />@@ -2981,7 +3001,6 @@ function PaneHeader({<PaneActionlabel={t("agentic_grid.conversation.open").replace("{0}", name)}testId={`pane-conversation-${name}`}- light={light}onClick={onOpenConversation}><BookOpenText className="h-3.5 w-3.5" aria-hidden="true" />@@ -2989,7 +3008,6 @@ function PaneHeader({<PaneActionlabel={maximized ? `Restore ${name}` : `Maximize ${name}`}testId={`pane-maximize-${name}`}- light={light}onClick={onToggleMaximize}>{maximized ? (@@ -3001,7 +3019,6 @@ function PaneHeader({<PaneActionlabel={`Open another terminal beside ${name}`}testId={`pane-split-right-${name}`}- light={light}disabled={splitDisabled}expanded={offersChoice ? picking === "right" : undefined}onClick={onSplit ? () => startSplit("right") : undefined}@@ -3011,7 +3028,6 @@ function PaneHeader({<PaneActionlabel={`Split ${name} and open a terminal below it`}testId={`pane-split-down-${name}`}- light={light}disabled={splitDisabled}expanded={offersChoice ? picking === "down" : undefined}onClick={onSplit ? () => startSplit("down") : undefined}@@ -3021,7 +3037,6 @@ function PaneHeader({<PaneActionlabel={`Close ${name}`}testId={`pane-close-${name}`}- light={light}dangeronClick={onClose}>@@ -3100,27 +3115,31 @@ function PaneHeaderTip({text: string;}) {const brand = PANE_BRAND[appearance];- const light = appearance === "light";+ const chrome = PANE_CHROME[appearance];return (<divrole="tooltip"data-testid={`pane-header-tip-${name}`}className={cn(- "pointer-events-none fixed z-[70] w-max max-w-[360px] overflow-hidden rounded-xl border",+ // `rounded-lg` — the one radius a floating surface takes. It used to be+ // `rounded-xl`, a fourth radius in a section that already has three.+ "pointer-events-none fixed z-[70] w-max max-w-[360px] overflow-hidden rounded-lg border","animate-in fade-in-0 duration-150",pos.top !== undefined ? "slide-in-from-top-1" : "slide-in-from-bottom-1",)}style={{left: pos.left,...(pos.top !== undefined ? { top: pos.top } : { bottom: pos.bottom }),- // Nearly opaque, unlike the pane's glass: the card can land on top of- // another pane's text, and an explainer must not be read THROUGH.- background: light ? "rgba(252,251,248,0.97)" : "rgba(13,14,18,0.96)",- borderColor: PANE_CHROME[appearance].border,- boxShadow: "0 14px 36px -14px rgba(0,0,0,0.6)",+ // Opaque, unlike the pane's glass: the card can land on top of another+ // pane's text, and an explainer must not be read THROUGH. This is the+ // pane's own float step — the one surface here that is genuinely off+ // the plane, so the one that gets a real shadow.+ background: chrome.float,+ borderColor: chrome.border,+ boxShadow: "0 12px 32px -8px rgb(var(--scrim-rgb) / 0.55)",}}>- {/* The same brand hairline the focused pane wears under its bar. */}+ {/* The same hairline the focused pane wears under its bar. */}<spanaria-hidden="true"className="block h-[2px]"@@ -3129,7 +3148,7 @@ function PaneHeaderTip({}}/><p- className="px-3.5 py-2.5 text-[11.5px] leading-relaxed"+ className="px-3.5 py-2.5 text-[13px] leading-relaxed"style={{ color: brand.ink }}>{text}@@ -3138,10 +3157,18 @@ function PaneHeaderTip({);}+/*+ * A header button.+ *+ * It no longer takes the pane's appearance: every colour it wears is read from+ * the `--pane-*` variables the header publishes, which resolve against the+ * PANE's ground whatever the app theme is doing. The prop used to pick between+ * two hard-coded hexes per state — the same ladder written a second time, and+ * the copy that drifted.+ */function PaneAction({label,testId,- light,danger = false,disabled = false,expanded,@@ -3150,7 +3177,6 @@ function PaneAction({}: {label: string;testId: string;- light: boolean;danger?: boolean;disabled?: boolean;/** Set when this button opens a menu — announces its state to a screen reader. */@@ -3183,17 +3209,18 @@ function PaneAction({// Reachable by keyboard and visibly so. The cluster is revealed by// `focus-within`, which is worth nothing if the focused button then// looks identical to its four neighbours. The ring reads the header's- // brand variable, so it is yellow on dark panes and gold on light ones.+ // own fill variable, so it lands on the PANE's ground rather than the+ // app's — a light pane inside a dark app is a supported combination."focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[color:var(--pane-accent)]",// The resting colour is a CLASS rather than an inline style, and that is// load-bearing rather than tidiness: an inline `color` beats every// class, so the hover colour below would simply never take effect.- light ? "text-[#55555e]" : "text-[#a8a8b2]",+ // Both steps come from the header's `--pane-*` ladder; they used to be+ // a hex per appearance, which is the same ladder written twice.+ "text-[color:var(--pane-ink-muted)]",danger? "hover:bg-destructive/20 hover:text-destructive"- : light- ? "hover:bg-scrim/10 hover:text-[#2b2b33]"- : "hover:bg-sheen/10 hover:text-[#e8e8ec]",+ : "hover:bg-[color:var(--pane-chip)] hover:text-[color:var(--pane-ink)]",)}>{children}@@ -3204,31 +3231,33 @@ function PaneAction({/*** The two tones a pane notice comes in, resolved against the PANE's own ground.*- * Not the app's `--destructive` tokens, and that is the whole reason this- * table exists rather than a call to the section's shared `Notice`: the- * terminal appearance is a separate setting from the app theme (plenty of- * people run dark panes in a light app, and the reverse — see the appearance- * note in ./AgenticGrid). A token picked for the app would land on the wrong- * ground in exactly those two configurations, which is where a warning is least- * affordable. The values are the pane's OWN ink (./terminalThemes), so a notice- * reads as part of the terminal rather than as the app leaning in over it.+ * Not read from the app's `--warning` / `--destructive` variables, and that is+ * the whole reason this table exists rather than a call to the section's shared+ * `Notice`: the terminal appearance is a separate setting from the app theme+ * (plenty of people run dark panes in a light app, and the reverse — see the+ * appearance note in ./AgenticGrid), so a value resolved from the app's `.dark`+ * block lands on the wrong ground in exactly those two configurations.*- * The two tones no longer differ by hue, so they differ by weight: a warning- * takes a half-strength rule and muted ink, an error takes a solid rule and- * the pane's full ink. Severity is how much of the pane's contrast the notice- * is allowed to spend.+ * The values ARE those tokens, re-derived per appearance: `#D6A94A` / `#A57A1D`+ * is the degraded hue, `#E8574C` / `#C72E23` the fault hue. An earlier version+ * dropped the hue entirely and separated the two tones by weight, using the+ * pane's full ink for an error — which puts a status in the ink ramp, makes the+ * loudest thing on a dead pane indistinguishable from its brightest heading,+ * and leaves colour with nothing to say. Fault and degraded are two of the+ * three jobs colour has in this product; a pane notice is exactly where they+ * are spent.*/const NOTICE_TONE: Record<"warning" | "error",Record<TerminalAppearance, { border: string; text: string }>> = {warning: {- light: { border: "rgba(43,43,51,0.45)", text: "#54545d" },- dark: { border: "rgba(242,242,245,0.38)", text: "#a8a8b4" },+ light: { border: "rgba(165,122,29,0.85)", text: "#a57a1d" },+ dark: { border: "rgba(214,169,74,0.85)", text: "#d6a94a" },},error: {- light: { border: "rgba(43,43,51,0.85)", text: "#2b2b33" },- dark: { border: "rgba(242,242,245,0.8)", text: "#f2f2f5" },+ light: { border: "rgba(199,46,35,0.9)", text: "#c72e23" },+ dark: { border: "rgba(232,87,76,0.9)", text: "#e8574c" },},};@@ -3272,9 +3301,9 @@ function PaneStatusNotice({onRestart?: () => void;}) {if (status !== "exited" && status !== "error") return null;- const tone = NOTICE_TONE[status === "error" ? "error" : "warning"][- light ? "light" : "dark"- ];+ const appearance: TerminalAppearance = light ? "light" : "dark";+ const tone = NOTICE_TONE[status === "error" ? "error" : "warning"][appearance];+ const brand = PANE_BRAND[appearance];/** The two details are written for different sentences and cannot be shown the* same way. A trouble message is already one ("This terminal is no longer part@@ -3301,8 +3330,20 @@ function PaneStatusNotice({// The shared section's notice shape — a rule down the left edge, no fill,// no icon — one size down for a pane header's scale. A filled box here// would read as a second, louder terminal sitting on top of the first.- className="flex shrink-0 items-center gap-2 border-l-2 px-2 py-1 text-[11px] leading-tight"- style={{ borderColor: tone.border, color: tone.text }}+ className="flex shrink-0 items-center gap-2 border-l-2 px-2 py-1 text-micro"+ style={+ {+ borderColor: tone.border,+ color: tone.text,+ // The pane's ladder, published here as well as on the header: this+ // strip is a sibling of the header, not a child, so the Restart+ // button below cannot inherit the header's copy.+ "--pane-accent": brand.accent,+ "--pane-ink": brand.ink,+ "--pane-chip": brand.chip,+ "--pane-accent-soft": brand.accentSoft,+ } as React.CSSProperties+ }><span className="min-w-0 flex-1 truncate" title={message}>{message}@@ -3319,10 +3360,15 @@ function PaneStatusNotice({}}onMouseDown={(e) => e.stopPropagation()}className={cn(- "flex shrink-0 items-center gap-1 rounded bg-primary/20 px-2 py-0.5",- "text-[11px] font-medium text-primary",- "transition-colors duration-150 hover:bg-primary/30",- "focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary/70",+ // The pane's own secondary button: a real lift fill with the+ // pane's ink on it. It used to be `--primary` at 20 % with+ // `--primary` as the label — an opacity standing in for a surface,+ // and a fill used as an ink. Both land wrong when the pane's+ // appearance and the app's theme disagree.+ "flex shrink-0 items-center gap-1 rounded-md px-2 py-0.5",+ "bg-[color:var(--pane-chip)] text-micro font-medium text-[color:var(--pane-ink)]",+ "transition-colors duration-150 hover:bg-[color:var(--pane-accent-soft)]",+ "focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[color:var(--pane-accent)]",)}><RotateCcw className="h-3 w-3" aria-hidden="true" />diff --git a/jarvis/ui/web/frontend/src/components/agentic/ContinueInterrupted.tsx b/jarvis/ui/web/frontend/src/components/agentic/ContinueInterrupted.tsxindex f46b2a3eba..6a8342214f 100644--- a/jarvis/ui/web/frontend/src/components/agentic/ContinueInterrupted.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/ContinueInterrupted.tsx@@ -156,7 +156,7 @@ function PaneRow({data-testid={`interrupted-pane-${pane.name}`}className={cn("rounded-lg border p-3",- pane.continuable ? "border-border bg-card/60" : "border-foreground/40 bg-foreground/10",+ pane.continuable ? "border-border bg-card" : "border-foreground/40 bg-foreground/10",)}><div className="flex flex-wrap items-start justify-between gap-2">@@ -326,7 +326,7 @@ export function ContinueInterrupted({{waiting && (<spandata-testid="continue-interrupted-count"- className="rounded bg-foreground/25 px-1.5 py-0.5 font-mono text-[10px]"+ className="rounded bg-foreground/25 px-1.5 py-0.5 font-mono text-micro">{offer.count}</span>@@ -335,10 +335,10 @@ export function ContinueInterrupted({</Dialog.Trigger><Dialog.Portal>- <Dialog.Overlay className="fixed inset-0 z-50 bg-background/70 backdrop-blur-sm" />+ <Dialog.Overlay className="fixed inset-0 z-50 bg-background backdrop-blur-sm" /><Dialog.Contentdata-testid="continue-interrupted"- className="fixed left-1/2 top-1/2 z-50 flex max-h-[min(40rem,calc(100vh-4rem))] w-[min(40rem,calc(100vw-3rem))] -translate-x-1/2 -translate-y-1/2 flex-col rounded-2xl border border-border bg-card"+ className="fixed left-1/2 top-1/2 z-50 flex max-h-[min(40rem,calc(100vh-4rem))] w-[min(40rem,calc(100vw-3rem))] -translate-x-1/2 -translate-y-1/2 flex-col rounded-lg bg-popover shadow-float"onEscapeKeyDown={(event) => {if (working) event.preventDefault();}}diff --git a/jarvis/ui/web/frontend/src/components/agentic/CustomCliDialog.tsx b/jarvis/ui/web/frontend/src/components/agentic/CustomCliDialog.tsxindex 3fa0cbbd33..e5ea02f372 100644--- a/jarvis/ui/web/frontend/src/components/agentic/CustomCliDialog.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/CustomCliDialog.tsx@@ -151,13 +151,13 @@ export function CustomCliDialog({return (<Dialog.Root open={open} onOpenChange={onOpenChange}><Dialog.Portal>- <Dialog.Overlay className="fixed inset-0 z-[80] bg-[#090909]/75 backdrop-blur-sm data-[state=open]:animate-in data-[state=open]:fade-in-0 motion-reduce:animate-none" />+ <Dialog.Overlay className="fixed inset-0 z-[80] bg-scrim/75 backdrop-blur-sm data-[state=open]:animate-in data-[state=open]:fade-in-0 motion-reduce:animate-none" /><Dialog.Contentdata-testid="custom-cli-dialog"className={cn("fixed left-1/2 top-1/2 z-[90] flex max-h-[min(88dvh,44rem)] w-[min(560px,calc(100vw-2rem))]",- "-translate-x-1/2 -translate-y-1/2 flex-col overflow-hidden rounded-2xl border border-border",- "bg-card outline-none",+ "-translate-x-1/2 -translate-y-1/2 flex-col overflow-hidden rounded-lg",+ "bg-popover shadow-float outline-none","data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 motion-reduce:animate-none",)}>@@ -251,7 +251,7 @@ export function CustomCliDialog({placeholder={t("custom_cli.name_placeholder")}onChange={(event) => setName(event.currentTarget.value)}/>- <span className="text-[11px] leading-relaxed text-muted-foreground">+ <span className="text-micro text-muted-foreground">{t("custom_cli.name_hint")}</span></label>@@ -273,7 +273,7 @@ export function CustomCliDialog({if (event.key === "Enter" && canSave) void save();}}/>- <span className="text-[11px] leading-relaxed text-muted-foreground">+ <span className="text-micro text-muted-foreground">{throughShell? t("custom_cli.command_shell_hint"): t("custom_cli.command_hint")}@@ -303,7 +303,7 @@ export function CustomCliDialog({<span className="block text-sm text-foreground">{t("custom_cli.at_reference")}</span>- <span className="block text-[11px] leading-relaxed text-muted-foreground">+ <span className="block text-micro text-muted-foreground">{t("custom_cli.at_reference_hint")}</span></span>diff --git a/jarvis/ui/web/frontend/src/components/agentic/FolderPicker.tsx b/jarvis/ui/web/frontend/src/components/agentic/FolderPicker.tsxindex d8d423248f..16772af6ea 100644--- a/jarvis/ui/web/frontend/src/components/agentic/FolderPicker.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/FolderPicker.tsx@@ -518,7 +518,7 @@ export function FolderPicker({className="relative flex min-h-0 flex-1 flex-col">{dragOver && (- <div className="pointer-events-none absolute inset-0 z-20 flex items-center justify-center rounded-surface bg-background/85 ring-2 ring-inset ring-primary/60">+ <div className="pointer-events-none absolute inset-0 z-20 flex items-center justify-center rounded-surface bg-background ring-2 ring-inset ring-primary/60"><span className="flex items-center gap-2 text-sm font-medium text-primary"><FolderOpen className="h-4 w-4" />Let go to use this folder@@ -709,10 +709,10 @@ export function FolderPicker({)}{/* --------------------------------------------------------------- list */}- <div className="min-h-[16rem] flex-1 overflow-y-auto scrollbar-jarvis border-y border-border/70">+ <div className="min-h-[16rem] flex-1 overflow-y-auto scrollbar-jarvis border-y border-border">{recents.length > 0 && !searchingMachine && (<>- <div className="sticky top-0 z-10 bg-card/95 px-3 py-1.5 backdrop-blur">+ <div className="sticky top-0 z-10 bg-card px-3 py-1.5 backdrop-blur"><SectionLabel>Recent folders</SectionLabel></div><ul>@@ -725,7 +725,7 @@ export function FolderPicker({"flex w-full items-center gap-2.5 px-3 py-1.5 text-left transition-colors",selected === recent.path? "bg-primary/10"- : "hover:bg-secondary/60",+ : "hover:bg-secondary",)}><Star@@ -736,11 +736,11 @@ export function FolderPicker({<span className="block truncate text-sm">{recent.name}</span>- <span className="block truncate font-mono text-[10px] text-muted-foreground">+ <span className="block truncate font-mono text-micro text-muted-foreground">{recent.path}</span></span>- <span className="shrink-0 pr-5 font-mono text-[11px] tabular-nums text-muted-foreground">+ <span className="shrink-0 pr-5 font-mono text-micro tabular-nums text-muted-foreground">{recent.terminals}</span></button>@@ -769,7 +769,7 @@ export function FolderPicker({above the list, and a label repeated twelve pixels apart reads astwo different things being named rather than one.*/}- <div className="sticky top-0 z-10 bg-card/95 px-3 py-1.5 backdrop-blur">+ <div className="sticky top-0 z-10 bg-card px-3 py-1.5 backdrop-blur"><SectionLabel>Browse</SectionLabel></div></>@@ -786,7 +786,7 @@ export function FolderPicker({data-testid="create-offer"onClick={() => makeFolder(createOffer.parent, createOffer.name)}disabled={creating}- className="flex w-full items-center gap-2.5 px-3 py-2 text-left text-sm text-primary transition-colors hover:bg-secondary/60"+ className="flex w-full items-center gap-2.5 px-3 py-2 text-left text-sm text-primary transition-colors hover:bg-secondary">{creating ? (<Loader2 className="h-4 w-4 shrink-0 animate-spin" />@@ -797,7 +797,7 @@ export function FolderPicker({<span className="block truncate">Create folder “{createOffer.name}”</span>- <span className="block truncate font-mono text-[10px] text-muted-foreground">+ <span className="block truncate font-mono text-micro text-muted-foreground">in {createOffer.parent ?? "your home folder"}</span></span>@@ -827,7 +827,7 @@ export function FolderPicker({onClick={() => open(item)}className={cn("flex w-full items-center gap-2.5 px-3 py-1.5 text-left text-sm transition-colors",- isSelected ? "bg-primary/10" : "hover:bg-secondary/60",+ isSelected ? "bg-primary/10" : "hover:bg-secondary",)}>{item.is_repo ? (@@ -843,7 +843,7 @@ export function FolderPicker({"h-4 w-4 shrink-0",isSelected? "text-primary"- : "text-muted-foreground/60",+ : "text-muted-foreground",)}/>)}@@ -857,13 +857,13 @@ export function FolderPicker({{item.name}</span>{searchingMachine && (- <span className="block truncate font-mono text-[10px] text-muted-foreground">+ <span className="block truncate font-mono text-micro text-muted-foreground">{item.path}</span>)}</span>{item.is_repo && (- <span className="shrink-0 font-mono text-[10px] uppercase tracking-wider text-muted-foreground/70">+ <span className="shrink-0 font-mono text-micro text-muted-foreground">git</span>)}@@ -932,7 +932,7 @@ export function FolderPicker({setDropChoices([]);open(choice);}}- className="flex w-full items-center gap-2 rounded px-1 py-0.5 text-left text-xs hover:bg-secondary/60"+ className="flex w-full items-center gap-2 rounded px-1 py-0.5 text-left text-xs hover:bg-secondary"><FolderOpen className="h-3.5 w-3.5 shrink-0 text-muted-foreground" /><code className="min-w-0 truncate font-mono">@@ -1188,13 +1188,13 @@ function PathInput({onClick={() => complete(item)}className={cn("flex w-full items-center gap-2 px-2.5 py-1.5 text-left text-xs",- index === active ? "bg-primary/15" : "hover:bg-secondary/60",+ index === active ? "bg-primary/15" : "hover:bg-secondary",)}>{item.is_repo ? (<FolderGit2 className="h-3.5 w-3.5 shrink-0 text-muted-foreground" />) : (- <Folder className="h-3.5 w-3.5 shrink-0 text-muted-foreground/60" />+ <Folder className="h-3.5 w-3.5 shrink-0 text-muted-foreground" />)}<span className="truncate font-mono">{item.name}</span></button>diff --git a/jarvis/ui/web/frontend/src/components/agentic/PaneActivityPill.test.tsx b/jarvis/ui/web/frontend/src/components/agentic/PaneActivityPill.test.tsxindex 18ad683d38..051e20e63b 100644--- a/jarvis/ui/web/frontend/src/components/agentic/PaneActivityPill.test.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/PaneActivityPill.test.tsx@@ -30,14 +30,16 @@ describe("what the badge shows", () => {expect(badge.getAttribute("data-icon")).toBe("spinner");});- it("shows an amber check mark for a pane that was given a job and has finished", () => {+ it("shows a green check mark for a pane that was given a job and has finished", () => {// A check, not a still dot: beside a row of spinners a dot read as "also// busy, just not animated", and the maintainer asked for an indicator// that says working or done (2026-08-27).const badge = pill({ status: "live", activity: "waiting", worked: true });expect(badge.textContent).toBe("");expect(badge.getAttribute("data-icon")).toBe("check");- expect(badge.className).toContain("text-foreground");+ // Life, not ink. A status painted in --foreground is the same colour as+ // every label around it and so reads as one.+ expect(badge.className).toContain("text-success");});it("hollows the dot — rather than recolouring it — for an unused pane", () => {@@ -48,10 +50,10 @@ describe("what the badge shows", () => {const badge = pill({ status: "live", activity: "waiting", worked: false });expect(badge.textContent).toBe("");expect(badge.getAttribute("data-icon")).toBe("ring");- expect(badge.className).toContain("text-foreground/60");+ expect(badge.className).toContain("text-success");});- it("keeps blue for the one state that wants something from you now", () => {+ it("keeps a colour of its own for the one state that wants something from you now", () => {// The only pane in the list that is neither busy nor simply finished, so// it is the only one worth spending a second colour on — and the only// still state allowed to wave: a beacon is a still dot with a radiating@@ -60,7 +62,7 @@ describe("what the badge shows", () => {const badge = pill({ status: "live", activity: "asking" });expect(badge.textContent).toBe("");expect(badge.getAttribute("data-icon")).toBe("beacon");- expect(badge.className).toContain("text-sky-400");+ expect(badge.className).toContain("text-warning");});it("shows an alert for an agent that could not be started", () => {diff --git a/jarvis/ui/web/frontend/src/components/agentic/PaneActivityPill.tsx b/jarvis/ui/web/frontend/src/components/agentic/PaneActivityPill.tsxindex a21eb8a118..f3d0c5bd4a 100644--- a/jarvis/ui/web/frontend/src/components/agentic/PaneActivityPill.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/PaneActivityPill.tsx@@ -56,18 +56,19 @@ import type { PaneActivity } from "@/lib/agenticIdeApi";* had to compare against its neighbours to judge.** The finished state is a CHECK and not a still dot for the same reason. A dot- * is what every list uses for "online", and beside a row of amber spinners an- * amber dot read as "also busy, just not animated right now" — the maintainer+ * is what every list uses for "online", and beside a row of green spinners a+ * green dot read as "also busy, just not animated right now" — the maintainer* asked for an indicator that says working or done, looking at a list that* already had one (2026-08-27). A check says finished the way a spinner says* busy: on its own, without a neighbour to compare against.*- * Colour then carries the second question — is this pane's stillness news? Amber- * is the app's own accent and marks a pane holding something for you: a check- * for a finished job, a hollow ring for one that is merely ready and has done- * nothing yet. Blue is spent on the one state that wants an action from you- * right now, a pane stopped on a question. Grey is for a pane with nothing to- * report, red for a broken one.+ * Colour then carries the second question — is this pane's stillness news?+ * The product has three status hues and this badge uses all three and nothing+ * else. Green (life) marks a pane that is healthy: working, a check for a+ * finished job, a hollow ring for one that is merely ready and has done+ * nothing yet. Amber (degraded) is spent on the one state that wants an action+ * from you right now, a pane stopped on a question. Grey — which is ink, not a+ * status — is for a pane with nothing to report, red for a broken one.*//**@@ -118,7 +119,9 @@ const LOOK: Record<Exclude<PaneActivity, "" | "waiting">, Look> = {working: {state: "working",label: "working",- className: "text-foreground",+ // Life. A status is never --foreground: ink is the colour of everything+ // that is NOT a signal, so a state painted in it reads as a label.+ className: "text-success",icon: "spinner",hint: "Working — its screen is still changing.",},@@ -132,7 +135,10 @@ const LOOK: Record<Exclude<PaneActivity, "" | "waiting">, Look> = {asking: {state: "asking",label: "needs you",- className: "text-sky-400",+ // Degraded — the pane is stalled until somebody answers it. It used to be+ // a Tailwind sky blue, which is a literal colour and a fourth hue in a+ // palette that has exactly three.+ className: "text-warning",/** The one deliberate exception to "motion means busy": a slow radiating* ring around a STILL dot. It does not share the spinner's silhouette —@@ -162,25 +168,24 @@ const LOOK: Record<Exclude<PaneActivity, "" | "waiting">, Look> = {const DONE: Look = {state: "done",label: "done",- className: "text-foreground",+ className: "text-success",icon: "check",glow: true,hint: "Finished and waiting at its prompt. That it stopped, not that the work is right.",};/**- * Ready, but holding nothing — the same amber, drawn as an empty ring.+ * Ready, but holding nothing — the same green, drawn as an empty ring.** A ring rather than a second colour because this is the SAME piece of news as* `done` with one part missing: the pane is quiet and yours to talk to, it just* has no finished job behind it. Reading "nothing here yet" out of an unfilled- * shape is what a fuel gauge does, and it keeps the accent colour meaning one- * thing.+ * shape is what a fuel gauge does, and it keeps green meaning one thing.*/const IDLE: Look = {state: "idle",label: "idle",- className: "text-foreground/60",+ className: "text-success",icon: "ring",hint: "Waiting at its prompt. Nothing has been sent to it yet.",};@@ -218,7 +223,7 @@ const BROKEN: Look = {* before its first status poll answers.** Grey, and hollow: neither pane has a finished job behind it, so neither has- * earned the accent colour that means "something here is yours".+ * earned the green that means "something here is yours".*/const CONNECTED: Look = {state: "live",diff --git a/jarvis/ui/web/frontend/src/components/agentic/PaneChat.tsx b/jarvis/ui/web/frontend/src/components/agentic/PaneChat.tsxindex 636cb2a7d2..45ff68fc55 100644--- a/jarvis/ui/web/frontend/src/components/agentic/PaneChat.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/PaneChat.tsx@@ -276,7 +276,7 @@ export function PaneChat({data-testid="pane-chat-state"data-state={state}className={cn(- "inline-flex h-7 shrink-0 items-center gap-1.5 rounded-full border border-border bg-card/60 pl-2 pr-2.5 text-xs font-medium transition-colors",+ "inline-flex h-7 shrink-0 items-center gap-1.5 rounded-full border border-border bg-card pl-2 pr-2.5 text-xs font-medium transition-colors",STATE_INK[state],)}>@@ -348,7 +348,7 @@ export function PaneChat({className="flex flex-1 flex-col items-center justify-center px-6 text-center"data-testid="pane-chat-not-readable">- <div className="mb-4 flex h-12 w-12 items-center justify-center rounded-2xl border border-border bg-muted/30">+ <div className="mb-4 flex h-12 w-12 items-center justify-center rounded-2xl border border-border bg-muted"><SquareTerminal className="h-5 w-5 text-muted-foreground" aria-hidden /></div><p className="text-sm font-medium text-foreground">@@ -372,7 +372,7 @@ export function PaneChat({data-testid="pane-chat-loading">{["w-2/3", "w-full", "w-5/6", "w-1/2", "w-full", "w-4/5"].map((width, row) => (- <div key={row} className={cn("h-3 animate-pulse rounded bg-muted/70", width)} />+ <div key={row} className={cn("h-3 animate-pulse rounded bg-muted", width)} />))}</div>) : (diff --git a/jarvis/ui/web/frontend/src/components/agentic/PaneConversation.tsx b/jarvis/ui/web/frontend/src/components/agentic/PaneConversation.tsxindex 2c7c26e2f0..b00c4292ea 100644--- a/jarvis/ui/web/frontend/src/components/agentic/PaneConversation.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/PaneConversation.tsx@@ -105,7 +105,7 @@ export function PaneConversationBody({return (<div className={cn("flex-1 space-y-4 overflow-hidden p-6", className)}>{["w-3/4", "w-full", "w-5/6", "w-2/3", "w-full", "w-4/5"].map((width, row) => (- <div key={row} className={cn("h-3 animate-pulse rounded bg-muted/70", width)} />+ <div key={row} className={cn("h-3 animate-pulse rounded bg-muted", width)} />))}</div>);@@ -136,7 +136,7 @@ export function PaneConversationBody({if (empty) {return (<div className={cn("flex flex-1 flex-col items-center justify-center px-6 text-center", className)}>- <div className="mb-4 flex h-12 w-12 items-center justify-center rounded-2xl border border-border bg-muted/30">+ <div className="mb-4 flex h-12 w-12 items-center justify-center rounded-2xl border border-border bg-muted"><BookOpenText className="h-5 w-5 text-muted-foreground" aria-hidden="true" /></div><p className="text-sm font-medium text-foreground">@@ -175,7 +175,7 @@ function TurnBlock({ turn }: { turn: ConversationTurn }): JSX.Element {<div className="mb-4 last:mb-0"><divclassName={cn(- "mb-1 text-[10px] font-semibold uppercase tracking-[0.14em]",+ "mb-1 text-micro font-semibold ",user ? "text-primary" : "text-muted-foreground",)}>@@ -187,14 +187,14 @@ function TurnBlock({ turn }: { turn: ConversationTurn }): JSX.Element {"whitespace-pre-wrap break-words rounded-xl border px-3.5 py-2.5 text-[12.5px] leading-relaxed",user? "border-primary/25 bg-primary/[0.07] text-foreground"- : "border-border/60 bg-background/35 text-foreground/90",+ : "border-border bg-background text-foreground",)}>{turn.text}</div>)}{turn.steps.length > 0 && (- <div className="mt-1 truncate text-[10px] text-muted-foreground/80">+ <div className="mt-1 truncate text-micro text-muted-foreground">{steps}{tools.length > 0 && <> · {tools.slice(0, 6).join(", ")}</>}</div>diff --git a/jarvis/ui/web/frontend/src/components/agentic/PaneConversationDialog.tsx b/jarvis/ui/web/frontend/src/components/agentic/PaneConversationDialog.tsxindex 593761ee13..d60466fff1 100644--- a/jarvis/ui/web/frontend/src/components/agentic/PaneConversationDialog.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/PaneConversationDialog.tsx@@ -39,13 +39,13 @@ export function PaneConversationDialog({return (<Dialog.Root open={open} onOpenChange={onOpenChange}><Dialog.Portal>- <Dialog.Overlay className="fixed inset-0 z-[80] bg-[#090909]/75 backdrop-blur-sm data-[state=open]:animate-in data-[state=open]:fade-in-0 motion-reduce:animate-none" />+ <Dialog.Overlay className="fixed inset-0 z-[80] bg-scrim/75 backdrop-blur-sm data-[state=open]:animate-in data-[state=open]:fade-in-0 motion-reduce:animate-none" /><Dialog.Contentdata-testid={`pane-conversation-dialog-${terminal}`}className={cn("fixed left-1/2 top-1/2 z-[90] flex h-[min(84dvh,52rem)] w-[min(880px,calc(100vw-2rem))]",- "-translate-x-1/2 -translate-y-1/2 flex-col overflow-hidden rounded-2xl border border-border",- "bg-card outline-none",+ "-translate-x-1/2 -translate-y-1/2 flex-col overflow-hidden rounded-lg",+ "bg-popover shadow-float outline-none","data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 motion-reduce:animate-none",)}>diff --git a/jarvis/ui/web/frontend/src/components/agentic/PaneNotifications.tsx b/jarvis/ui/web/frontend/src/components/agentic/PaneNotifications.tsxindex ab0b48f3fb..99077b2dcd 100644--- a/jarvis/ui/web/frontend/src/components/agentic/PaneNotifications.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/PaneNotifications.tsx@@ -327,7 +327,7 @@ export function PaneNotifications({ onJump, onScreen = true }: PaneNotifications{unread > 0 && (<spandata-testid="pane-notifications-count"- className="absolute -right-1.5 -top-1.5 min-w-[1rem] rounded-full bg-foreground/70 px-1 text-center font-mono text-[10px] font-semibold leading-4 text-primary-foreground"+ className="absolute -right-1.5 -top-1.5 min-w-[1rem] rounded-full bg-foreground/70 px-1 text-center font-mono text-micro font-semibold leading-4 text-primary-foreground">{unread > 99 ? "99+" : unread}</span>@@ -389,7 +389,7 @@ export function PaneNotifications({ onJump, onScreen = true }: PaneNotifications: t("agentic_grid.notifications.disabled")}</p>) : (- <ul className="divide-y divide-border/60">+ <ul className="divide-y divide-border">{entries.map((entry) => (<Rowkey={entry.id}@@ -407,7 +407,7 @@ export function PaneNotifications({ onJump, onScreen = true }: PaneNotifications</div>{!state.enabled && entries.length > 0 && (- <p className="shrink-0 border-t border-border px-4 py-2 text-[11px] text-muted-foreground">+ <p className="shrink-0 border-t border-border px-4 py-2 text-micro text-muted-foreground">{t("agentic_grid.notifications.disabled")}</p>)}@@ -444,10 +444,10 @@ function Row({<div className="min-w-0 flex-1"><div className="flex items-baseline gap-2"><span className="truncate font-semibold text-foreground">{entry.pane}</span>- <span className="truncate text-[11px] uppercase tracking-wide text-muted-foreground">+ <span className="truncate text-micro text-muted-foreground">{t(kind.key)}</span>- <span className="ml-auto shrink-0 text-[11px] tabular-nums text-muted-foreground">+ <span className="ml-auto shrink-0 text-micro tabular-nums text-muted-foreground">{ago(entry.created_at, now)}</span></div>@@ -458,9 +458,9 @@ function Row({{entry.display_name}{entry.workspace ? ` · ${entry.workspace}` : ""}</p>- <p className="mt-1 text-xs leading-relaxed text-foreground/80">{entry.title}</p>+ <p className="mt-1 text-xs leading-relaxed text-foreground">{entry.title}</p>{entry.detail && (- <p className="mt-1 line-clamp-2 text-[11px] leading-relaxed text-muted-foreground">+ <p className="mt-1 line-clamp-2 text-micro text-muted-foreground">{t("agentic_grid.notifications.last_task").replace("{0}", entry.detail)}</p>)}@@ -469,7 +469,7 @@ function Row({type="button"data-testid="pane-notification-jump"onClick={onJump}- className="rounded-md border border-primary/50 bg-primary/10 px-2 py-1 text-[11px] font-medium text-primary transition-colors hover:bg-primary/20"+ className="rounded-md border border-primary/50 bg-primary/10 px-2 py-1 text-micro font-medium text-primary transition-colors hover:bg-primary/20">{t("agentic_grid.notifications.jump")}</button>diff --git a/jarvis/ui/web/frontend/src/components/agentic/PaneRecap.tsx b/jarvis/ui/web/frontend/src/components/agentic/PaneRecap.tsxindex d599736fc3..57f6f6a38c 100644--- a/jarvis/ui/web/frontend/src/components/agentic/PaneRecap.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/PaneRecap.tsx@@ -253,7 +253,7 @@ export function PaneRecap({if (!headline) {return (<span- className="truncate font-display text-[11px] font-medium uppercase tracking-[0.14em]"+ className="truncate font-display text-micro font-medium "style={{ color: brand.inkFaint }}data-testid={`pane-agent-${name}`}>@@ -310,7 +310,7 @@ export function PaneRecap({// The title is the bar's main text and dresses like it: the display// face at a readable size, quiet ink that sharpens under the pointer.className={cn(- "flex min-w-0 flex-1 items-center gap-1 rounded-sm text-left font-display text-[12px] font-medium leading-tight tracking-tight outline-none",+ "flex min-w-0 flex-1 items-center gap-1 rounded-sm text-left font-display text-meta font-medium leading-tight tracking-tight outline-none","text-[color:var(--pane-ink-muted)] transition-colors hover:text-[color:var(--pane-ink)]","focus-visible:ring-1 focus-visible:ring-[color:var(--pane-accent)]",)}@@ -346,7 +346,7 @@ export function PaneRecap({: { bottom: anchor.bottom }),}}className={cn(- "z-[60] flex max-h-[70vh] flex-col gap-3 rounded-xl border border-border/90 bg-card p-4 text-left",+ "z-[60] flex max-h-[70vh] flex-col gap-3 rounded-xl border border-border bg-card p-4 text-left","","animate-in fade-in-0 zoom-in-95 duration-150",anchor.placement === "below"@@ -359,16 +359,16 @@ export function PaneRecap({className={cn("absolute h-2.5 w-2.5 -translate-x-1/2 rotate-45 bg-card",anchor.placement === "below"- ? "-top-[6px] border-l border-t border-border/90"- : "-bottom-[6px] border-b border-r border-border/90",+ ? "-top-[6px] border-l border-t border-border"+ : "-bottom-[6px] border-b border-r border-border",)}style={{ left: anchor.arrowX }}/><div className="flex items-center justify-between gap-2">- <span className="flex min-w-0 items-center gap-2 text-[10px] uppercase tracking-[0.14em] text-muted-foreground">+ <span className="flex min-w-0 items-center gap-2 text-micro text-muted-foreground"><span className="h-1.5 w-1.5 shrink-0 rounded-full bg-primary/80" /><span className="truncate">- <strong className="font-semibold text-foreground/85">{name}</strong>+ <strong className="font-semibold text-foreground">{name}</strong><span className="mx-1.5 opacity-40">/</span>{displayName}</span>@@ -404,7 +404,7 @@ export function PaneRecap({place it is allowed to wrap, which is the whole reasonsomebody opened the card. */}<p- className="font-display text-[14px] font-semibold leading-snug tracking-tight text-foreground"+ className="font-display text-body font-semibold leading-snug tracking-tight text-foreground"data-testid={`pane-recap-headline-${name}`}>{headline}@@ -419,7 +419,7 @@ export function PaneRecap({)}{WHY[reason] && (<p- className="border-l-2 border-primary/45 bg-primary/[0.035] px-3 py-2 text-[11px] leading-relaxed text-muted-foreground"+ className="border-l-2 border-primary/45 bg-primary/[0.035] px-3 py-2 text-micro text-muted-foreground"data-testid={`pane-recap-why-${name}`}>{WHY[reason]}@@ -431,7 +431,7 @@ export function PaneRecap({{failure && (<p- className="text-[11px] leading-relaxed text-destructive"+ className="text-micro text-destructive"data-testid={`pane-recap-error-${name}`}>{failure}@@ -439,8 +439,8 @@ export function PaneRecap({)}{!editing && (- <div className="mt-0.5 flex flex-wrap items-center gap-2 border-t border-border/60 pt-2.5">- <span className="mr-auto flex min-w-0 items-center gap-1.5 rounded-full border border-border/60 bg-muted/35 px-2 py-1 text-[10px] text-muted-foreground">+ <div className="mt-0.5 flex flex-wrap items-center gap-2 border-t border-border pt-2.5">+ <span className="mr-auto flex min-w-0 items-center gap-1.5 rounded-full border border-border bg-muted px-2 py-1 text-micro text-muted-foreground">{attribution.icon}<span className="truncate">{attribution.label}</span>{generatedAt > 0 && (@@ -514,7 +514,7 @@ function CardAction({e.stopPropagation();onClick();}}- className="flex h-7 items-center gap-1.5 rounded-md border border-transparent px-2 text-[10px] font-medium text-muted-foreground transition-colors hover:border-border/70 hover:bg-muted hover:text-foreground disabled:opacity-40"+ className="flex h-7 items-center gap-1.5 rounded-md border border-transparent px-2 text-micro font-medium text-muted-foreground transition-colors hover:border-border hover:bg-muted hover:text-foreground disabled:opacity-40">{busy ? <Loader2 className="h-3 w-3 animate-spin" /> : children}<span>{label}</span>@@ -571,7 +571,7 @@ function RecapEditor({return (<div className="flex flex-col gap-2"><label className="flex flex-col gap-1">- <span className="text-[10px] uppercase tracking-wider text-muted-foreground">+ <span className="text-micro text-muted-foreground">Header line</span><input@@ -582,11 +582,11 @@ function RecapEditor({data-testid={`pane-recap-input-${name}`}onChange={(e) => setLine(e.target.value)}onKeyDown={onKeyDown}- className="w-full rounded-lg border border-border bg-muted/25 px-2.5 py-2 text-[12.5px] text-foreground outline-none transition-colors focus:border-primary/60 focus:bg-background"+ className="w-full rounded-lg border border-border bg-muted px-2.5 py-2 text-[12.5px] text-foreground outline-none transition-colors focus:border-primary/60 focus:bg-secondary"/></label><label className="flex flex-col gap-1">- <span className="text-[10px] uppercase tracking-wider text-muted-foreground">+ <span className="text-micro text-muted-foreground">The longer version <span className="opacity-60">— optional</span></span><textarea@@ -597,11 +597,11 @@ function RecapEditor({data-testid={`pane-recap-detail-input-${name}`}onChange={(e) => setBody(e.target.value)}onKeyDown={onKeyDown}- className="w-full resize-y rounded-lg border border-border bg-muted/25 px-2.5 py-2 text-[12.5px] leading-relaxed text-foreground outline-none transition-colors focus:border-primary/60 focus:bg-background"+ className="w-full resize-y rounded-lg border border-border bg-muted px-2.5 py-2 text-[12.5px] leading-relaxed text-foreground outline-none transition-colors focus:border-primary/60 focus:bg-secondary"/></label><div className="flex items-center justify-between gap-2">- <span className="text-[10px] text-muted-foreground">+ <span className="text-micro text-muted-foreground">{/* An empty header line is how you clear a hand-written recap, andsaying so beats a disabled Save nobody can explain. */}{line.trim()@@ -613,7 +613,7 @@ function RecapEditor({type="button"onClick={onCancel}data-testid={`pane-recap-cancel-${name}`}- className="rounded-md px-2 py-1 text-[11px] text-muted-foreground transition-colors hover:bg-muted hover:text-foreground"+ className="rounded-md px-2 py-1 text-micro text-muted-foreground transition-colors hover:bg-muted hover:text-foreground">Cancel</button>@@ -622,7 +622,7 @@ function RecapEditor({onClick={submit}disabled={saving}data-testid={`pane-recap-save-${name}`}- className="flex items-center gap-1 rounded-md bg-foreground/70 px-2.5 py-1.5 text-[11px] font-semibold text-primary-foreground transition-[filter] hover:brightness-95 disabled:opacity-50"+ className="flex items-center gap-1 rounded-md bg-foreground/70 px-2.5 py-1.5 text-micro font-semibold text-primary-foreground transition-[filter] hover:brightness-95 disabled:opacity-50">{saving && <Loader2 className="h-3 w-3 animate-spin" />}Savediff --git a/jarvis/ui/web/frontend/src/components/agentic/PromptHistoryButton.tsx b/jarvis/ui/web/frontend/src/components/agentic/PromptHistoryButton.tsxindex 59cd64bf66..c2037258fd 100644--- a/jarvis/ui/web/frontend/src/components/agentic/PromptHistoryButton.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/PromptHistoryButton.tsx@@ -46,12 +46,19 @@ export function PromptHistoryButton({terminal,workspaceId,count,- light,}: {terminal: string;workspaceId?: string;count: number;- light: boolean;+ /**+ * Whether the PANE this button sits on wears the light appearance.+ *+ * Still accepted so no caller has to change, but no longer read: the button+ * now takes its two inks from the header's `--pane-*` variables, which+ * already resolve per appearance. A branch here was a second copy of that+ * decision.+ */+ light?: boolean;}): JSX.Element {const t = useT();const [open, setOpen] = useState(false);@@ -127,10 +134,13 @@ export function PromptHistoryButton({onMouseDown={(event) => event.stopPropagation()}className={cn("flex h-6 min-w-6 shrink-0 items-center justify-center gap-1 rounded-md px-1.5",- "text-[10px] font-medium tabular-nums transition-colors active:translate-y-px",- light- ? "text-[#6b6b73] hover:bg-scrim/10 hover:text-[#2b2b33]"- : "text-[#9a9aa5] hover:bg-sheen/10 hover:text-[#e8e8ec]",+ "text-micro font-medium tabular-nums transition-colors active:translate-y-px",+ // The header's own `--pane-*` ladder, exactly as PaneAction next+ // door reads it. This used to be a hex per appearance, which is+ // that ladder written a second time in a second file, free to+ // drift from it — and two of the four values already had.+ "text-[color:var(--pane-ink-muted)]",+ "hover:bg-[color:var(--pane-chip)] hover:text-[color:var(--pane-ink)]",)}><History className="h-3.5 w-3.5" aria-hidden="true" />@@ -139,13 +149,13 @@ export function PromptHistoryButton({</Dialog.Trigger><Dialog.Portal>- <Dialog.Overlay className="fixed inset-0 z-[80] bg-[#090909]/75 backdrop-blur-sm data-[state=open]:animate-in data-[state=open]:fade-in-0 motion-reduce:animate-none" />+ <Dialog.Overlay className="fixed inset-0 z-[80] bg-scrim/75 backdrop-blur-sm data-[state=open]:animate-in data-[state=open]:fade-in-0 motion-reduce:animate-none" /><Dialog.Contentdata-testid="prompt-history-dialog"className={cn("fixed left-1/2 top-1/2 z-[90] flex max-h-[82dvh] w-[min(940px,calc(100vw-2rem))]",- "-translate-x-1/2 -translate-y-1/2 flex-col overflow-hidden rounded-2xl border border-border",- "bg-card outline-none",+ "-translate-x-1/2 -translate-y-1/2 flex-col overflow-hidden rounded-lg",+ "bg-popover shadow-float outline-none","data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 motion-reduce:animate-none",)}>@@ -194,7 +204,7 @@ export function PromptHistoryButton({</div>) : !history || history.items.length === 0 ? (<div className="flex min-h-64 flex-col items-center justify-center px-6 text-center">- <div className="mb-4 flex h-12 w-12 items-center justify-center rounded-2xl border border-border bg-muted/30">+ <div className="mb-4 flex h-12 w-12 items-center justify-center rounded-2xl border border-border bg-muted"><History className="h-5 w-5 text-muted-foreground" aria-hidden="true" /></div><p className="text-sm font-medium text-foreground">@@ -207,8 +217,8 @@ export function PromptHistoryButton({) : (<div className="grid min-h-0 flex-1 grid-cols-1 md:grid-cols-[minmax(15rem,0.8fr)_minmax(0,1.4fr)]"><aside className="min-h-0 border-b border-border md:border-b-0 md:border-r">- <div className="flex items-center justify-between border-b border-border/60 px-4 py-2.5">- <span className="text-[10px] font-semibold uppercase tracking-[0.14em] text-muted-foreground">+ <div className="flex items-center justify-between border-b border-border px-4 py-2.5">+ <span className="text-micro font-semibold text-muted-foreground">{fill(t(history.available === 1@@ -219,7 +229,7 @@ export function PromptHistoryButton({)}</span>{!history.complete && (- <span className="text-[10px] text-foreground">+ <span className="text-micro text-foreground">{t("agentic_grid.history.partial")}</span>)}@@ -241,12 +251,12 @@ export function PromptHistoryButton({{selected && (<section className="flex min-h-0 flex-col" data-testid="prompt-history-detail">- <div className="flex items-center justify-between gap-3 border-b border-border/60 px-4 py-2.5">+ <div className="flex items-center justify-between gap-3 border-b border-border px-4 py-2.5"><div className="min-w-0"><div className="truncate text-xs font-medium text-foreground">{fill(t("agentic_grid.history.prompt_number"), selected.sequence)}</div>- <div className="mt-0.5 text-[10px] text-muted-foreground">+ <div className="mt-0.5 text-micro text-muted-foreground">{whenLabel(selected.at)} · {fill(t("agentic_grid.history.characters"), selected.chars)}</div></div>@@ -278,7 +288,7 @@ export function PromptHistoryButton({)}</button></div>- <pre className="min-h-0 flex-1 overflow-auto whitespace-pre-wrap break-words bg-background/35 p-4 font-mono text-[11px] leading-relaxed text-foreground/90">+ <pre className="min-h-0 flex-1 overflow-auto whitespace-pre-wrap break-words bg-background p-4 font-mono text-micro text-foreground">{selected.text}</pre></section>@@ -313,8 +323,8 @@ function HistoryRow({onClick={onSelect}data-testid={`prompt-history-row-${item.id}`}className={cn(- "group flex w-full items-start gap-3 border-b border-border/50 px-4 py-3 text-left transition-colors",- selected ? "bg-primary/10" : "hover:bg-muted/40",+ "group flex w-full items-start gap-3 border-b border-border px-4 py-3 text-left transition-colors",+ selected ? "bg-primary/10" : "hover:bg-muted",)}><span@@ -332,7 +342,7 @@ function HistoryRow({<span className="block truncate text-xs font-medium text-foreground">{firstLine(item.text)}</span>- <span className="mt-1 flex flex-wrap items-center gap-x-2 gap-y-0.5 text-[10px] text-muted-foreground">+ <span className="mt-1 flex flex-wrap items-center gap-x-2 gap-y-0.5 text-micro text-muted-foreground"><span>{whenLabel(item.at)}</span><span>{t(statusKey)}</span></span>@@ -346,9 +356,9 @@ function HistorySkeleton(): JSX.Element {<div className="grid min-h-64 grid-cols-1 md:grid-cols-[minmax(15rem,0.8fr)_minmax(0,1.4fr)]"><div className="border-b border-border p-4 md:border-b-0 md:border-r">{[0, 1, 2, 3].map((row) => (- <div key={row} className="border-b border-border/50 py-3">+ <div key={row} className="border-b border-border py-3"><div className="h-3 w-4/5 animate-pulse rounded bg-muted" />- <div className="mt-2 h-2 w-1/2 animate-pulse rounded bg-muted/70" />+ <div className="mt-2 h-2 w-1/2 animate-pulse rounded bg-muted" /></div>))}</div>@@ -356,7 +366,7 @@ function HistorySkeleton(): JSX.Element {<div className="h-3 w-1/3 animate-pulse rounded bg-muted" /><div className="mt-6 space-y-3">{["w-full", "w-11/12", "w-4/5", "w-5/6", "w-2/3"].map((width, row) => (- <div key={row} className={cn("h-2.5 animate-pulse rounded bg-muted/70", width)} />+ <div key={row} className={cn("h-2.5 animate-pulse rounded bg-muted", width)} />))}</div></div>diff --git a/jarvis/ui/web/frontend/src/components/agentic/PromptReceipt.tsx b/jarvis/ui/web/frontend/src/components/agentic/PromptReceipt.tsxindex 120c9aeb11..6a18f979c6 100644--- a/jarvis/ui/web/frontend/src/components/agentic/PromptReceipt.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/PromptReceipt.tsx@@ -240,7 +240,7 @@ export function PromptReceipt({return (<divclassName="pointer-events-auto absolute inset-x-2 bottom-2 z-20 rounded-md border- border-primary/50 bg-card/95 shadow-lg backdrop-blur+ border-primary/50 bg-card shadow-lg backdrop-blurtransition-opacity duration-300"onMouseEnter={() => setHovered(true)}onMouseLeave={() => setHovered(false)}@@ -265,17 +265,17 @@ export function PromptReceipt({data-testid="prompt-receipt-toggle"title={`Read exactly what was sent to ${terminal}`}>- <span className="shrink-0 truncate text-[11px] font-medium text-foreground">+ <span className="shrink-0 truncate text-micro font-medium text-foreground">{verdict.label}</span>- <span className="shrink-0 text-[11px] text-muted-foreground">+ <span className="shrink-0 text-micro text-muted-foreground">{agoLabel(at, now)}{clock ? ` · ${clock}` : ""}</span>{/* The opening of the brief, on the line itself. Even closed, thereceipt shows a piece of the real text — a bare "sent" is anotherclaim, and claims are what the user already had. */}- <span className="min-w-0 flex-1 truncate text-[11px] text-muted-foreground/80">+ <span className="min-w-0 flex-1 truncate text-micro text-muted-foreground">{preview}</span><ChevronDown@@ -300,21 +300,21 @@ export function PromptReceipt({covering the terminal for five seconds to say what the first rowalready said. */}{submitted === false && !open && (- <p className="px-2 pb-1.5 text-[10px] leading-snug text-muted-foreground">+ <p className="px-2 pb-1.5 text-micro text-muted-foreground">{verdict.note} · click to read what was sent</p>)}{open && (- <div className="border-t border-border/60 px-2 py-2" data-testid="prompt-receipt-body">+ <div className="border-t border-border px-2 py-2" data-testid="prompt-receipt-body"><preclassName="max-h-56 overflow-y-auto whitespace-pre-wrap break-words rounded- bg-background/60 px-2 py-1.5 font-mono text-[11px] leading-relaxed+ bg-background px-2 py-1.5 font-mono text-microtext-foreground">{full ?? preview}</pre>- <p className="mt-1.5 text-[10px] text-muted-foreground">+ <p className="mt-1.5 text-micro text-muted-foreground">{full === null && !loadError? `Opening of ${chars.toLocaleString()} characters — reading the rest…`: loadErrordiff --git a/jarvis/ui/web/frontend/src/components/agentic/ResumeCard.tsx b/jarvis/ui/web/frontend/src/components/agentic/ResumeCard.tsxindex 75096f9ea6..9fa23ba9a1 100644--- a/jarvis/ui/web/frontend/src/components/agentic/ResumeCard.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/ResumeCard.tsx@@ -260,7 +260,7 @@ function TerminalTile({aria-label={description}title={description}className={cn(- "group relative grid min-w-0 grid-cols-[auto_minmax(0,1fr)] gap-2.5 border border-border/60 bg-background/35 p-2.5 transition-colors hover:border-border hover:bg-background/70",+ "group relative grid min-w-0 grid-cols-[auto_minmax(0,1fr)] gap-2.5 border border-border bg-background p-2.5 transition-colors hover:border-border hover:bg-secondary",pane.resumable && pane.available && "border-primary/25",!pane.available && "border-foreground/45 dark:border-foreground/25",)}@@ -278,12 +278,12 @@ function TerminalTile({<AgentMark agent={pane.agent} label={pane.display_name} size="sm" /><div className="min-w-0"><div className="flex min-w-0 items-center justify-between gap-2">- <span className="truncate font-mono text-[11px] font-semibold text-foreground">+ <span className="truncate font-mono text-micro font-semibold text-foreground">{pane.name}</span><spanclassName={cn(- "shrink-0 text-[9px] font-medium uppercase tracking-[0.12em]",+ "shrink-0 text-micro font-medium ",!pane.available? "text-foreground": pane.resumable@@ -294,10 +294,10 @@ function TerminalTile({{status}</span></div>- <p className="mt-0.5 truncate text-[10px] text-muted-foreground">+ <p className="mt-0.5 truncate text-micro text-muted-foreground">{pane.display_name}</p>- <div className="mt-1.5 flex items-center justify-between gap-2 font-mono text-[9px] text-muted-foreground/75">+ <div className="mt-1.5 flex items-center justify-between gap-2 font-mono text-micro text-muted-foreground"><PromptCount count={pane.prompts_sent} t={t} /><span>{position}</span></div>@@ -330,13 +330,13 @@ function WorkspaceRow({<lidata-testid={`resume-workspace-${space.folder_name}`}className={cn(- "border-t border-border/70 py-5",+ "border-t border-border py-5",space.in_last_session === false && "opacity-70",)}><div className="grid gap-4 lg:grid-cols-[minmax(0,1fr)_auto] lg:items-start"><div className="flex min-w-0 items-start gap-3">- <span className="mt-0.5 inline-flex h-9 w-9 shrink-0 items-center justify-center rounded-control border border-border bg-background/60 text-muted-foreground">+ <span className="mt-0.5 inline-flex h-9 w-9 shrink-0 items-center justify-center rounded-control border border-border bg-background text-muted-foreground"><FolderOpen className="h-4 w-4" /></span><div className="min-w-0">@@ -345,20 +345,20 @@ function WorkspaceRow({{space.name || space.folder_name}</h4>{when && (- <span className="inline-flex items-center gap-1 text-[10px] text-muted-foreground">+ <span className="inline-flex items-center gap-1 text-micro text-muted-foreground"><Clock3 className="h-3 w-3" />{when}</span>)}</div>- <code className="mt-1 block truncate font-mono text-[10px] text-muted-foreground">+ <code className="mt-1 block truncate font-mono text-micro text-muted-foreground">{space.folder}</code><div className="mt-2 flex flex-wrap gap-1.5">{fleet.map((item) => (<spankey={item.agent}- className="inline-flex items-center gap-1.5 border border-border/60 bg-background/45 px-2 py-1 text-[10px] text-muted-foreground"+ className="inline-flex items-center gap-1.5 border border-border bg-background px-2 py-1 text-micro text-muted-foreground"><AgentMarkagent={item.agent}@@ -383,7 +383,7 @@ function WorkspaceRow({</div><div className="min-w-[220px] lg:text-right">- <div className="flex flex-wrap items-baseline gap-x-3 gap-y-1 text-[10px] text-muted-foreground lg:justify-end">+ <div className="flex flex-wrap items-baseline gap-x-3 gap-y-1 text-micro text-muted-foreground lg:justify-end"><strong className="font-mono text-xs font-semibold tabular-nums text-foreground">{fill(t("workspace_launcher.resume.terminal_count"), {count: space.terminals.length,@@ -412,7 +412,7 @@ function WorkspaceRow({)}</div><div- className="mt-2 flex h-1.5 overflow-hidden bg-muted/70"+ className="mt-2 flex h-1.5 overflow-hidden bg-muted"aria-label={fill(t("workspace_launcher.resume.recovery_bar"), {continuing: space.resumable_count,fresh,@@ -477,12 +477,12 @@ function FleetManifest({t: Translator;}) {return (- <aside className="border-t border-border/70 pt-5 xl:border-l xl:border-t-0 xl:pl-5 xl:pt-0">+ <aside className="border-t border-border pt-5 xl:border-l xl:border-t-0 xl:pl-5 xl:pt-0"><SectionLabel>{t("workspace_launcher.resume.agent_fleet")}</SectionLabel><p className="mt-2 text-xs leading-relaxed text-muted-foreground">{t("workspace_launcher.resume.agent_fleet_hint")}</p>- <ul className="mt-4 divide-y divide-border/60 border-y border-border/60">+ <ul className="mt-4 divide-y divide-border border-y border-border">{fleet.map((item) => {const total = Math.max(1, item.total);return (@@ -498,7 +498,7 @@ function FleetManifest({{item.total}</span></div>- <p className="mt-0.5 text-[10px] text-muted-foreground">+ <p className="mt-0.5 text-micro text-muted-foreground">{fill(t("workspace_launcher.resume.fleet_detail"), {continuing: item.resumable,fresh: item.fresh,@@ -515,7 +515,7 @@ function FleetManifest({</p></div></div>- <div className="mt-2 flex h-1 overflow-hidden bg-muted/70">+ <div className="mt-2 flex h-1 overflow-hidden bg-muted"><spanclassName="bg-primary/80"style={{ width: `${(item.resumable / total) * 100}%` }}@@ -565,7 +565,7 @@ function EarlierWorkspaces({if (spaces.length === 0) return null;return (<details- className="border-t border-border/70 py-4"+ className="border-t border-border py-4"data-testid="resume-earlier"><summary className="cursor-pointer text-xs font-medium text-muted-foreground hover:text-foreground">@@ -576,7 +576,7 @@ function EarlierWorkspaces({<p className="mt-2 text-xs leading-relaxed text-muted-foreground">{t("workspace_launcher.resume.earlier_hint")}</p>- <ul className="mt-3 divide-y divide-border/50 border-y border-border/50">+ <ul className="mt-3 divide-y divide-border border-y border-border">{spaces.map((space, index) => (<likey={space.session_id || `${space.folder}#${index}`}@@ -586,11 +586,11 @@ function EarlierWorkspaces({<strong className="block truncate text-xs font-semibold text-foreground">{space.name || space.folder_name}</strong>- <code className="mt-0.5 block truncate font-mono text-[9px] text-muted-foreground">+ <code className="mt-0.5 block truncate font-mono text-micro text-muted-foreground">{space.folder}</code></div>- <span className="font-mono text-[10px] text-muted-foreground">+ <span className="font-mono text-micro text-muted-foreground">{fill(t("workspace_launcher.resume.terminal_count"), {count: space.terminals.length,})}@@ -646,7 +646,7 @@ export function ResumeCard({{t("workspace_launcher.resume.eyebrow")}</SectionLabel>{when && (- <span className="inline-flex items-center gap-1 font-mono text-[9px] uppercase tracking-[0.12em] text-muted-foreground">+ <span className="inline-flex items-center gap-1 font-mono text-micro text-muted-foreground"><Clock3 className="h-3 w-3" />{fill(t("workspace_launcher.resume.last_saved"), {time: when,@@ -663,7 +663,7 @@ export function ResumeCard({<p className="mt-2 max-w-3xl text-sm leading-relaxed text-muted-foreground">{resumeSummary(offer, t)}</p>- <div className="mt-4 flex flex-wrap items-center gap-x-4 gap-y-2 text-[10px] text-muted-foreground">+ <div className="mt-4 flex flex-wrap items-center gap-x-4 gap-y-2 text-micro text-muted-foreground"><span className="inline-flex items-center gap-1.5"><span className="h-1.5 w-1.5 bg-foreground/70" />{t("workspace_launcher.resume.legend_continues")}@@ -679,12 +679,12 @@ export function ResumeCard({</div></div>- <div className="flex flex-col justify-between border-t border-border/70 pt-5 lg:border-l lg:border-t-0 lg:pl-6 lg:pt-0">+ <div className="flex flex-col justify-between border-t border-border pt-5 lg:border-l lg:border-t-0 lg:pl-6 lg:pt-0"><div className="flex items-end gap-3"><span className="font-mono text-5xl font-semibold leading-none tracking-[-0.08em] text-foreground">{offer.terminal_count}</span>- <span className="max-w-28 pb-1 text-[10px] uppercase leading-snug tracking-[0.14em] text-muted-foreground">+ <span className="max-w-28 pb-1 text-micro tracking-[0.14em] text-muted-foreground">{t("workspace_launcher.resume.saved_terminal_fleet")}</span></div>@@ -725,7 +725,7 @@ export function ResumeCard({</div></div>- <dl className="mt-6 grid grid-cols-2 border-y border-border/70 sm:grid-cols-4 sm:divide-x sm:divide-border/70">+ <dl className="mt-6 grid grid-cols-2 border-y border-border sm:grid-cols-4 sm:divide-x sm:divide-border">{[[offer.workspace_count,@@ -746,14 +746,14 @@ export function ResumeCard({className={cn("py-3 sm:px-4",index % 2 === 1 && "pl-4 sm:pl-4",- index >= 2 && "border-t border-border/70 sm:border-t-0",+ index >= 2 && "border-t border-border sm:border-t-0",index === 0 && "sm:pl-0",)}><dd className="font-mono text-lg font-semibold tabular-nums text-foreground">{value}</dd>- <dt className="mt-0.5 text-[9px] uppercase tracking-[0.14em] text-muted-foreground">+ <dt className="mt-0.5 text-micro text-muted-foreground">{label}</dt></div>@@ -780,14 +780,14 @@ export function ResumeCard({{t("workspace_launcher.resume.workspace_manifest_hint")}</p></div>- <span className="hidden font-mono text-[9px] uppercase tracking-[0.14em] text-muted-foreground sm:block">+ <span className="hidden font-mono text-micro text-muted-foreground sm:block">{fill(t("workspace_launcher.resume.available_workspaces"), {available: restorableWorkspaces,total: coming.length,})}</span></div>- <ul className="mt-3 border-b border-border/70">+ <ul className="mt-3 border-b border-border">{coming.map((space, index) => (<WorkspaceRowkey={space.session_id || `${space.folder}#${index}`}diff --git a/jarvis/ui/web/frontend/src/components/agentic/VoiceBubble.tsx b/jarvis/ui/web/frontend/src/components/agentic/VoiceBubble.tsxindex b8d332fc1d..610bd7ad97 100644--- a/jarvis/ui/web/frontend/src/components/agentic/VoiceBubble.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/VoiceBubble.tsx@@ -199,14 +199,14 @@ function format(text: string, ...values: Array<string | number>): string {*/const BUBBLE_BTN ="pointer-events-auto flex h-8 w-8 items-center justify-center rounded-full " +- "border border-border/50 bg-background/85 text-muted-foreground " ++ "border border-border bg-background text-muted-foreground " +"backdrop-blur transition-colors hover:bg-secondary hover:text-foreground " +"focus-visible:outline-none focus-visible:ring-2 " +"focus-visible:ring-primary/50 disabled:cursor-not-allowed disabled:opacity-40";/** The small floating surfaces (status, transcript, receipts) share this look. */const BUBBLE_SURFACE =- "pointer-events-auto border border-border/50 bg-background/85 backdrop-blur";+ "pointer-events-auto border border-border bg-background backdrop-blur";export function VoiceBubble({open,@@ -705,7 +705,7 @@ export function VoiceBubble({data-testid="voice-bubble-status"aria-live="polite"className={cn(- "text-[11px] font-medium uppercase tracking-[0.1em] transition-colors",+ "text-micro font-medium transition-colors",active ? "text-primary" : "text-muted-foreground",)}>@@ -739,9 +739,9 @@ export function VoiceBubble({<pref={transcriptWindowRef}className={cn(- "agentic-voice-transcript-window break-words text-center text-[13px]",+ "agentic-voice-transcript-window break-words text-center text-meta","font-medium leading-relaxed transition-colors duration-300",- transcriptionFinal ? "text-foreground/90" : "text-muted-foreground",+ transcriptionFinal ? "text-foreground" : "text-muted-foreground",)}>{transcriptWords.map((word, index) => (@@ -770,7 +770,7 @@ export function VoiceBubble({<span className="mt-0.5 grid h-4 w-4 shrink-0 place-items-center rounded-full bg-primary/15 text-primary"><Check className="h-2.5 w-2.5" aria-hidden="true" /></span>- <span className="min-w-0 flex-1 text-[11px] leading-relaxed text-muted-foreground">+ <span className="min-w-0 flex-1 text-micro text-muted-foreground"><span className="block truncate font-medium text-foreground"><FilePlus2className="mr-1 inline h-3.5 w-3.5 text-primary"diff --git a/jarvis/ui/web/frontend/src/components/agentic/VoiceBubbleNotice.tsx b/jarvis/ui/web/frontend/src/components/agentic/VoiceBubbleNotice.tsxindex c5eca826e8..29830826c8 100644--- a/jarvis/ui/web/frontend/src/components/agentic/VoiceBubbleNotice.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/VoiceBubbleNotice.tsx@@ -139,10 +139,10 @@ export function VoiceBubbleNotice({{/* Two lines rather than one truncated one: this is the sentence thattells the user WHICH of their agents this is about, and half of it isoften the half that names the thing. */}- <span className="line-clamp-2 text-[12px] font-semibold leading-snug text-foreground">+ <span className="line-clamp-2 text-meta font-semibold leading-snug text-foreground">{headline}</span>- <span className="mt-0.5 block truncate text-[11px] leading-snug text-muted-foreground">+ <span className="mt-0.5 block truncate text-micro text-muted-foreground">{subline}</span></>@@ -157,7 +157,7 @@ export function VoiceBubbleNotice({aria-live="polite"className={cn("pointer-events-auto flex w-full shrink-0 items-center gap-2.5",- "rounded-2xl border border-border/50 bg-background/90 px-3 py-2.5",+ "rounded-2xl border border-border bg-background px-3 py-2.5","text-left backdrop-blur",)}>diff --git a/jarvis/ui/web/frontend/src/components/agentic/WorkspaceBar.tsx b/jarvis/ui/web/frontend/src/components/agentic/WorkspaceBar.tsxindex 967b43228b..024b561020 100644--- a/jarvis/ui/web/frontend/src/components/agentic/WorkspaceBar.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/WorkspaceBar.tsx@@ -355,8 +355,8 @@ export function WorkspaceBar({dropping? "border-dashed border-primary bg-primary/10": selected- ? "border-border/60 bg-secondary"- : "border-transparent hover:bg-secondary/50",+ ? "border-border bg-secondary"+ : "border-transparent hover:bg-secondary",)}>{renaming ? (@@ -453,7 +453,7 @@ export function WorkspaceBar({<spandata-testid={`workspace-ordinal-${workspace.id}`}className={cn(- "font-mono text-[11px] tabular-nums",+ "font-mono text-micro tabular-nums",selected ? "font-semibold text-foreground" : "text-muted-foreground",)}>@@ -473,7 +473,7 @@ export function WorkspaceBar({onClick={() => beginRename(workspace)}className={cn("flex h-5 w-5 items-center justify-center rounded text-muted-foreground opacity-0 transition-opacity hover:bg-muted hover:text-foreground focus-visible:opacity-100 group-hover/tab:opacity-100 disabled:opacity-40",- compact && "absolute z-20 bg-secondary/95",+ compact && "absolute z-20 bg-secondary",compact && (ordinalOnly ? ordinalRenamePosition : "left-0"),)}>@@ -500,7 +500,7 @@ export function WorkspaceBar({setConfirming(null);onClose(workspace.id);}}- className="rounded bg-destructive/20 px-2 py-0.5 text-[11px] font-medium text-destructive transition-colors hover:bg-destructive/30 disabled:opacity-50"+ className="rounded bg-destructive/20 px-2 py-0.5 text-micro font-medium text-destructive transition-colors hover:bg-destructive/30 disabled:opacity-50">Close & stop {workspace.live_terminals || workspace.terminals}</button>@@ -508,7 +508,7 @@ export function WorkspaceBar({type="button"aria-label="Keep this workspace open"onClick={() => setConfirming(null)}- className="rounded px-1.5 py-0.5 text-[11px] text-muted-foreground hover:text-foreground"+ className="rounded px-1.5 py-0.5 text-micro text-muted-foreground hover:text-foreground">Keep</button>@@ -525,7 +525,7 @@ export function WorkspaceBar({"flex h-5 w-5 items-center justify-center rounded text-muted-foreground transition-opacity hover:bg-destructive/20 hover:text-destructive",compact? cn(- "absolute z-20 bg-secondary/95 opacity-0 focus-visible:opacity-100 group-hover/tab:opacity-100",+ "absolute z-20 bg-secondary opacity-0 focus-visible:opacity-100 group-hover/tab:opacity-100",ordinalOnly ? ordinalClosePosition : "right-0",): selected@@ -605,8 +605,8 @@ function PaneCount({className={cn(// No fill of its own: the tab it sits in is already a filled surface// when selected, and a badge inside it was a second box inside a box.- "shrink-0 font-mono text-[10px] tabular-nums",- selected ? "text-primary" : "text-muted-foreground/60",+ "shrink-0 font-mono text-micro tabular-nums",+ selected ? "text-primary" : "text-muted-foreground",)}>{workspace.terminals}diff --git a/jarvis/ui/web/frontend/src/components/agentic/WorkspaceChats.tsx b/jarvis/ui/web/frontend/src/components/agentic/WorkspaceChats.tsxindex abe4a68501..a2b6f3f836 100644--- a/jarvis/ui/web/frontend/src/components/agentic/WorkspaceChats.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/WorkspaceChats.tsx@@ -127,16 +127,16 @@ export function WorkspaceChats() {// is a child of the sidebar's flex scroll body: an `overflow-hidden`// flex item may shrink to nothing when the column is taller than the// window, and this one did — a two-pixel line where the list should be.- className="mx-2 mt-2 shrink-0 overflow-hidden rounded-lg border border-border/60 bg-card/40"+ className="mx-2 mt-2 shrink-0 overflow-hidden rounded-lg border border-border bg-card"><div className="flex items-center justify-between px-3 pb-1 pt-2">- <span className="font-mono text-[10px] font-medium uppercase tracking-[0.12em] text-muted-foreground">+ <span className="font-mono text-micro font-medium text-muted-foreground">{t("ide_chats.heading")}</span>{workspaces.length > 0 && (<spandata-testid="workspace-chats-count"- className="font-mono text-[10px] tabular-nums text-muted-foreground/60"+ className="font-mono text-micro tabular-nums text-muted-foreground">{workspaces.length}</span>@@ -144,7 +144,7 @@ export function WorkspaceChats() {</div><div className="px-1 pb-2">{workspaces.length === 0 ? (- <p className="px-3 py-2 text-[11px] text-muted-foreground/70">+ <p className="px-3 py-2 text-micro text-muted-foreground">{t("ide_chats.no_workspaces")}</p>) : (@@ -170,7 +170,7 @@ export function WorkspaceChats() {</div>{/* The panel's foot: the two ways to add a workspace, on their ownshelf under a rule so they are not read as rows of the last band. */}- <div className="border-t border-border/50 px-1 py-1">+ <div className="border-t border-border px-1 py-1">{/* One more project.First of the two closing rows and in reading ink rather than muted,because opening a second folder is the ordinary next thing to want@@ -185,7 +185,7 @@ export function WorkspaceChats() {type="button"onClick={requestAddWorkspace}data-testid="workspace-chats-new-workspace"- className="flex w-full items-center gap-2 rounded-md px-3 py-1.5 text-left text-xs font-medium text-foreground transition-colors hover:bg-background/60"+ className="flex w-full items-center gap-2 rounded-md px-3 py-1.5 text-left text-xs font-medium text-foreground transition-colors hover:bg-secondary"><FolderPlus aria-hidden className="h-3.5 w-3.5 shrink-0 text-muted-foreground" />{t("ide_chats.new_workspace")}@@ -196,7 +196,7 @@ export function WorkspaceChats() {type="button"onClick={requestSession}data-testid="workspace-chats-new-session"- className="flex w-full items-center gap-2 rounded-md px-3 py-1.5 text-left text-xs text-muted-foreground transition-colors hover:bg-background/60 hover:text-foreground"+ className="flex w-full items-center gap-2 rounded-md px-3 py-1.5 text-left text-xs text-muted-foreground transition-colors hover:bg-secondary hover:text-foreground"><Plus aria-hidden className="h-3.5 w-3.5 shrink-0" />{t("ide_chats.new_session")}@@ -282,13 +282,13 @@ function WorkspaceBand({workspace.active ? "bg-foreground/70" : "bg-muted-foreground/30",)}/>- <span className="text-[10px] font-medium uppercase tracking-wider text-muted-foreground/60">+ <span className="text-micro font-medium text-muted-foreground">{fill(t("ide_chats.workspace_band"), { n: index })}</span>{workspace.active && (<spandata-testid="workspace-chats-active"- className="rounded bg-primary/15 px-1.5 py-px text-[10px] font-medium text-primary"+ className="rounded bg-primary/15 px-1.5 py-px text-micro font-medium text-primary">{t("ide_chats.active")}</span>@@ -304,7 +304,7 @@ function WorkspaceBand({className={cn("flex w-full items-center gap-1.5 rounded-md py-1.5 pl-2 pr-8 text-left transition-colors","focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",- workspace.active ? "text-foreground" : "hover:bg-background/60",+ workspace.active ? "text-foreground" : "hover:bg-secondary",)}><Folder@@ -330,14 +330,14 @@ function WorkspaceBand({title={t("ide_chats.new_chat")}aria-label={t("ide_chats.new_chat")}data-testid={`workspace-chats-new-terminal-${workspace.id}`}- className="absolute right-1 top-1/2 flex h-5 w-5 -translate-y-1/2 items-center justify-center rounded text-muted-foreground opacity-0 transition-opacity hover:bg-background/60 hover:text-foreground focus-visible:opacity-100 group-hover/folder:opacity-100"+ className="absolute right-1 top-1/2 flex h-5 w-5 -translate-y-1/2 items-center justify-center rounded text-muted-foreground opacity-0 transition-opacity hover:bg-secondary hover:text-foreground focus-visible:opacity-100 group-hover/folder:opacity-100"><Plus className="h-3 w-3" /></button></div>{panes.length === 0 && archived.length === 0 ? (- <p className="pl-8 pr-2 text-[11px] text-muted-foreground/50">{t("ide_chats.no_sessions")}</p>+ <p className="pl-8 pr-2 text-micro text-muted-foreground">{t("ide_chats.no_sessions")}</p>) : (// The rows hang off the folder on a thin guide line drawn at the// centre of the folder's icon, so "this folder, these sessions"@@ -423,7 +423,7 @@ function SessionRow({// one way of saying "this is where you are" for the whole column.active? "bg-card text-foreground shadow-[inset_2px_0_0_hsl(var(--primary))]"- : "hover:bg-background/60",+ : "hover:bg-secondary",)}><AgentMark@@ -440,7 +440,7 @@ function SessionRow({>{label}</span>- <span className="mt-0.5 shrink-0 truncate font-mono text-[10px] text-muted-foreground/70">+ <span className="mt-0.5 shrink-0 truncate font-mono text-micro text-muted-foreground">{pane.name}</span>{/* The grid's own badge, not a second reading of the same facts.@@ -507,7 +507,7 @@ function ArchivedChats({onClick={() => setOpen((current) => !current)}aria-expanded={open}data-testid={`workspace-chats-archived-toggle-${workspaceId}`}- className="flex w-full items-center gap-2 rounded-md py-1.5 pl-8 pr-2 text-left text-[11px] text-muted-foreground transition-colors hover:bg-background/60 hover:text-foreground"+ className="flex w-full items-center gap-2 rounded-md py-1.5 pl-8 pr-2 text-left text-micro text-muted-foreground transition-colors hover:bg-secondary hover:text-foreground"><Archive aria-hidden className="h-3.5 w-3.5 shrink-0" /><span className="min-w-0 flex-1 truncate">@@ -529,7 +529,7 @@ function ArchivedChats({placeholder={t("ide_chats.archived_search")}aria-label={t("ide_chats.archived_search")}data-testid="workspace-chats-archived-search"- className="w-full rounded-md border border-border bg-background/60 py-1 pl-7 pr-2 text-[11px] text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring"+ className="w-full rounded-md border border-border bg-background py-1 pl-7 pr-2 text-micro text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring"/></div>)}@@ -680,7 +680,7 @@ function ConfirmCloseTerminal({aria-modal="true"aria-label={fill(t("ide_chats.close_title"), { name: pane.name })}data-testid="workspace-chats-confirm-close"- className="fixed inset-0 z-[100] flex items-center justify-center bg-background/70 p-6 backdrop-blur-sm"+ className="fixed inset-0 z-[100] flex items-center justify-center bg-background p-6 backdrop-blur-sm"onClick={(event) => {if (event.target === event.currentTarget && !busy) onCancel();}}@@ -688,7 +688,7 @@ function ConfirmCloseTerminal({if (event.key === "Escape" && !busy) onCancel();}}>- <div className="w-full max-w-sm rounded-xl border border-border bg-card p-5">+ <div className="w-full max-w-sm rounded-lg bg-popover shadow-float p-5"><h3 className="font-display text-base font-semibold">{fill(t("ide_chats.close_title"), { name: pane.name })}</h3>diff --git a/jarvis/ui/web/frontend/src/components/agentic/WorkspaceExplorer.tsx b/jarvis/ui/web/frontend/src/components/agentic/WorkspaceExplorer.tsxindex d3ee7153bf..cc183640b9 100644--- a/jarvis/ui/web/frontend/src/components/agentic/WorkspaceExplorer.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/WorkspaceExplorer.tsx@@ -154,8 +154,8 @@ export function WorkspaceExplorer({style={{ background: "rgb(var(--shell-rgb) / 0.22)" }}aria-label={t("agentic_grid.explorer.title")}>- <header className="flex h-10 shrink-0 items-center gap-2 border-b border-border/60 px-3">- <span className="min-w-0 flex-1 truncate text-[10px] font-semibold uppercase tracking-[0.16em] text-muted-foreground">+ <header className="flex h-10 shrink-0 items-center gap-2 border-b border-border px-3">+ <span className="min-w-0 flex-1 truncate text-micro font-semibold text-muted-foreground">{t("agentic_grid.explorer.title")}</span><button@@ -185,7 +185,7 @@ export function WorkspaceExplorer({role="treeitem"aria-expanded={rootOpen}onClick={() => toggleDirectory("")}- className="flex h-7 w-full items-center gap-1.5 rounded-control px-1.5 text-left text-xs font-semibold uppercase tracking-[0.08em] text-foreground transition-colors hover:bg-secondary/70 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring/60"+ className="flex h-7 w-full items-center gap-1.5 rounded-control px-1.5 text-left text-xs font-semibold text-foreground transition-colors hover:bg-secondary focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring/60"><ChevronRightclassName={cn(@@ -236,7 +236,7 @@ export function WorkspaceExplorer({</div></div>- <footer className="shrink-0 border-t border-border/60 px-3 py-2 text-[10px] leading-relaxed text-muted-foreground">+ <footer className="shrink-0 border-t border-border px-3 py-2 text-micro text-muted-foreground">{rootPath? t("agentic_grid.explorer.drag_hint"): t("agentic_grid.explorer.open_hint")}@@ -275,7 +275,7 @@ function TreeLevel({return (<divrole="status"- className="flex h-7 items-center gap-2 text-[11px] text-muted-foreground"+ className="flex h-7 items-center gap-2 text-micro text-muted-foreground"style={{ paddingLeft: `${depth * 12 + 9}px` }}><Loader2 className="h-3 w-3 animate-spin motion-reduce:animate-none" aria-hidden />@@ -288,7 +288,7 @@ function TreeLevel({return (<divrole="alert"- className="my-1 border-l-2 border-destructive/70 py-1 pr-2 text-[11px] leading-relaxed text-destructive"+ className="my-1 border-l-2 border-destructive/70 py-1 pr-2 text-micro text-destructive"style={{ marginLeft: `${depth * 12 + 9}px`, paddingLeft: "8px" }}>{directory.error}@@ -343,7 +343,7 @@ function TreeLevel({"group flex h-7 w-full items-center rounded-control transition-colors",selected? "bg-primary/10 text-foreground shadow-[inset_2px_0_0_hsl(var(--primary))]"- : "text-muted-foreground hover:bg-secondary/65 hover:text-foreground",+ : "text-muted-foreground hover:bg-secondary hover:text-foreground",)}><button@@ -364,7 +364,7 @@ function TreeLevel({onOpenFile(entry.path, event.currentTarget);}}}- className="flex h-full min-w-0 flex-1 items-center gap-1.5 text-left text-[12px] focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-ring/60"+ className="flex h-full min-w-0 flex-1 items-center gap-1.5 text-left text-meta focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-ring/60"style={{ paddingLeft: `${depth * 12}px` }}>{expandable ? (@@ -380,7 +380,7 @@ function TreeLevel({)}{entry.is_symlink ? (<Link2- className="h-4 w-4 shrink-0 text-muted-foreground/70"+ className="h-4 w-4 shrink-0 text-muted-foreground"aria-hidden/>) : (@@ -398,7 +398,7 @@ function TreeLevel({}}aria-label={`${t("agentic_grid.explorer.open_file")} ${entry.name}`}title={t("agentic_grid.explorer.open_file")}- className="mr-0.5 flex h-6 w-6 shrink-0 items-center justify-center rounded-control text-muted-foreground/70 opacity-70 transition hover:bg-primary/10 hover:text-primary hover:opacity-100 focus-visible:opacity-100 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring/60"+ className="mr-0.5 flex h-6 w-6 shrink-0 items-center justify-center rounded-control text-muted-foreground opacity-70 transition hover:bg-primary/10 hover:text-primary hover:opacity-100 focus-visible:opacity-100 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring/60"><FileSearch className="h-3 w-3" aria-hidden /></button>@@ -425,7 +425,7 @@ function TreeLevel({{directory.entries.length === 0 && (<div- className="h-6 truncate text-[11px] italic leading-6 text-muted-foreground/70"+ className="h-6 truncate text-micro italic leading-6 text-muted-foreground"style={{ paddingLeft: `${depth * 12 + 21}px` }}>{t("agentic_grid.explorer.empty")}@@ -434,7 +434,7 @@ function TreeLevel({{directory.truncated && (<divrole="note"- className="py-1 pr-2 text-[10px] leading-relaxed text-foreground"+ className="py-1 pr-2 text-micro text-foreground"style={{ paddingLeft: `${depth * 12 + 21}px` }}>{t("agentic_grid.explorer.truncated")}diff --git a/jarvis/ui/web/frontend/src/components/agentic/WorkspaceFileViewer.tsx b/jarvis/ui/web/frontend/src/components/agentic/WorkspaceFileViewer.tsxindex b2d55c482c..8af91bce6d 100644--- a/jarvis/ui/web/frontend/src/components/agentic/WorkspaceFileViewer.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/WorkspaceFileViewer.tsx@@ -176,15 +176,15 @@ export function WorkspaceFileViewer({<sectiondata-testid="workspace-file-viewer"aria-label={`${t("agentic_grid.viewer.title")}: ${name}`}- className="absolute inset-0 z-40 flex min-h-0 flex-col bg-background/95 backdrop-blur-xl"+ className="absolute inset-0 z-40 flex min-h-0 flex-col bg-background backdrop-blur-xl">- <header className="flex h-11 shrink-0 items-center gap-3 border-b border-border/70 bg-card/50 px-3">+ <header className="flex h-11 shrink-0 items-center gap-3 border-b border-border bg-card px-3"><FileText className="h-4 w-4 shrink-0 text-primary" aria-hidden /><div className="min-w-0 flex-1"><div className="truncate text-xs font-medium text-foreground">{name}</div>- <div className="truncate text-[10px] text-muted-foreground">{path}</div>+ <div className="truncate text-micro text-muted-foreground">{path}</div></div>- <span className="rounded-full border border-border/70 bg-secondary/60 px-2 py-0.5 text-[9px] uppercase tracking-[0.12em] text-muted-foreground">+ <span className="rounded-full border border-border bg-secondary px-2 py-0.5 text-micro text-muted-foreground">{kind}</span><button@@ -199,7 +199,7 @@ export function WorkspaceFileViewer({</button></header>- <div className="min-h-0 flex-1 overflow-auto bg-background/35 scrollbar-jarvis">+ <div className="min-h-0 flex-1 overflow-auto bg-background scrollbar-jarvis">{error ? (<div role="alert" className="m-auto flex h-full max-w-md flex-col items-center justify-center gap-3 p-8 text-center text-sm text-muted-foreground"><AlertTriangle className="h-7 w-7 text-destructive" aria-hidden />@@ -269,7 +269,7 @@ function ViewerContent({</div>)}{kind === "markdown" ? (- <article className="prose prose-neutral max-w-none text-sm dark:prose-invert prose-a:text-primary prose-code:text-foreground prose-pre:border prose-pre:border-border prose-pre:bg-card/80">+ <article className="prose prose-neutral max-w-none text-sm dark:prose-invert prose-a:text-primary prose-code:text-foreground prose-pre:border prose-pre:border-border prose-pre:bg-card"><ReactMarkdown remarkPlugins={[remarkGfm]} components={markdownComponents}>{text}</ReactMarkdown></article>) : text ? (@@ -277,7 +277,7 @@ function ViewerContent({) : preview?.hex_preview ? (<div><p className="mb-3 text-xs text-muted-foreground">{t("agentic_grid.viewer.binary")}</p>- <pre className="whitespace-pre-wrap break-words rounded-card border border-border bg-card/70 p-4 font-mono text-xs leading-relaxed text-foreground">{preview.hex_preview}</pre>+ <pre className="whitespace-pre-wrap break-words rounded-card border border-border bg-card p-4 font-mono text-xs leading-relaxed text-foreground">{preview.hex_preview}</pre></div>) : (<p className="text-center text-sm text-muted-foreground">{t("agentic_grid.viewer.empty")}</p>diff --git a/jarvis/ui/web/frontend/src/components/agentic/WorkspaceLauncher.tsx b/jarvis/ui/web/frontend/src/components/agentic/WorkspaceLauncher.tsxindex 71bb908a79..13dbf9177a 100644--- a/jarvis/ui/web/frontend/src/components/agentic/WorkspaceLauncher.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/WorkspaceLauncher.tsx@@ -228,16 +228,16 @@ export function WorkspaceLauncher({data-testid="workspace-launcher"className="flex h-full min-h-0 flex-col font-display">- <header className="shrink-0 border-b border-border/70 px-5 py-5 sm:px-8">+ <header className="shrink-0 border-b border-border px-5 py-5 sm:px-8"><div className="mx-auto flex w-full max-w-6xl items-start justify-between gap-6"><div className="min-w-0">- <p className="text-[11px] font-semibold uppercase tracking-[0.16em] text-primary/80">+ <p className="text-micro font-semibold text-primary/80">{t(addingNew? "workspace_launcher.wizard.additional_workspace": "workspace_launcher.wizard.new_workspace",)}- <span className="px-2 text-muted-foreground/50">/</span>+ <span className="px-2 text-muted-foreground">/</span>{t("workspace_launcher.wizard.step_progress").replace("{0}", String(step + 1)).replace("{1}", String(STEPS.length))}@@ -257,7 +257,7 @@ export function WorkspaceLauncher({</div>{folder && (<code- className="hidden max-w-[36%] truncate pt-1 font-mono text-[11px] text-muted-foreground xl:block"+ className="hidden max-w-[36%] truncate pt-1 font-mono text-micro text-muted-foreground xl:block"title={folder}>{folder}@@ -288,7 +288,7 @@ export function WorkspaceLauncher({</span><Buttonvariant="subtle"- className="h-6 px-2 text-foreground/90"+ className="h-6 px-2 text-foreground"onClick={onOpenClis}>{t("workspace_launcher.wizard.open_clis")}@@ -323,7 +323,7 @@ export function WorkspaceLauncher({aria-labelledby="workspace-launcher-title">{step === 0 && (- <div className="flex min-h-[28rem] flex-col border-y border-border/70">+ <div className="flex min-h-[28rem] flex-col border-y border-border"><FolderPickerselected={folder}onSelect={onSelectFolder}@@ -334,7 +334,7 @@ export function WorkspaceLauncher({{step === 1 && (<div>- <div className="flex items-end justify-between gap-5 border-b border-border/70 pb-5">+ <div className="flex items-end justify-between gap-5 border-b border-border pb-5"><div><SectionLabel>{t("workspace_launcher.wizard.terminal_panes")}@@ -391,7 +391,7 @@ export function WorkspaceLauncher({/>)}- <footer className="mt-7 flex min-h-10 items-center justify-between border-t border-border/70 pt-5">+ <footer className="mt-7 flex min-h-10 items-center justify-between border-t border-border pt-5">{step > 0 ? (<Buttonvariant="subtle"@@ -432,7 +432,7 @@ export function WorkspaceLauncher({? t("workspace_launcher.wizard.opening"): t("workspace_launcher.wizard.open_workspace")}{!busy && (- <kbd className="ml-1 hidden font-mono text-[10px] font-normal opacity-60 sm:inline">+ <kbd className="ml-1 hidden font-mono text-micro font-normal opacity-60 sm:inline">{workspaceLaunchShortcut()}</kbd>)}@@ -481,7 +481,7 @@ function CrowdedWarning({<divdata-testid="workspace-crowded-warning"role="note"- className="mt-3 flex items-start gap-3 rounded-control border border-border/70 bg-muted/30 px-3 py-2.5"+ className="mt-3 flex items-start gap-3 rounded-control border border-border bg-muted px-3 py-2.5"><Info className="mt-0.5 h-4 w-4 shrink-0 text-muted-foreground" /><p className="min-w-0 flex-1 text-xs leading-relaxed text-muted-foreground">@@ -538,7 +538,7 @@ function StepNavigation({aria-label={t("workspace_launcher.wizard.setup_label")}className="min-w-0">- <ol className="grid grid-cols-5 border-b border-border/70 lg:flex lg:flex-col lg:border-b-0 lg:border-r lg:pr-6">+ <ol className="grid grid-cols-5 border-b border-border lg:flex lg:flex-col lg:border-b-0 lg:border-r lg:pr-6">{STEPS.map((item, index) => {const target = index as LauncherStep;const selected = target === step;@@ -563,13 +563,13 @@ function StepNavigation({selected ? "bg-foreground/70" : "bg-transparent",)}/>- <span className="block font-mono text-[10px] tabular-nums text-muted-foreground/70">+ <span className="block font-mono text-micro tabular-nums text-muted-foreground">0{index + 1}</span><span className="mt-1 block truncate text-sm font-medium">{t(item.label)}</span>- <span className="mt-0.5 hidden truncate text-[11px] text-muted-foreground lg:block">+ <span className="mt-0.5 hidden truncate text-micro text-muted-foreground lg:block">{summaries[index]}</span></button>@@ -661,7 +661,7 @@ function ViewOption({"group min-w-0 border px-5 py-5 text-left transition-colors",selected? "border-primary/70 bg-primary/[0.04]"- : "border-border/70 hover:border-border",+ : "border-border hover:border-border",)}>{preview}@@ -674,7 +674,7 @@ function ViewOption({{icon}{title}{selected && (- <span className="ml-auto text-[10px] font-semibold uppercase tracking-[0.14em] text-primary">+ <span className="ml-auto text-micro font-semibold text-primary">{t("workspace_launcher.wizard.selected")}</span>)}@@ -767,8 +767,8 @@ function WorkspaceReview({{folder}</code>- <dl className="mt-7 border-y border-border/70">- <div className="flex items-center justify-between gap-5 border-b border-border/50 py-3 text-sm">+ <dl className="mt-7 border-y border-border">+ <div className="flex items-center justify-between gap-5 border-b border-border py-3 text-sm"><dt className="text-muted-foreground">{t("workspace_launcher.wizard.terminal_panes")}</dt>@@ -776,7 +776,7 @@ function WorkspaceReview({{planned.length}</dd></div>- <div className="flex items-center justify-between gap-5 border-b border-border/50 py-3 text-sm">+ <div className="flex items-center justify-between gap-5 border-b border-border py-3 text-sm"><dt className="text-muted-foreground">{t("workspace_launcher.wizard.opens_as")}</dt>@@ -797,13 +797,13 @@ function WorkspaceReview({<div className="min-w-0"><SectionLabel>{t("workspace_launcher.wizard.terminal_plan")}</SectionLabel>- <ol className="mt-3 border-t border-border/70">+ <ol className="mt-3 border-t border-border">{planned.map((pane, index) => (<likey={`${pane.name}-${index}`}- className="grid grid-cols-[2rem_minmax(0,1fr)_auto] items-baseline gap-2 border-b border-border/50 py-2.5 text-sm"+ className="grid grid-cols-[2rem_minmax(0,1fr)_auto] items-baseline gap-2 border-b border-border py-2.5 text-sm">- <span className="font-mono text-[10px] tabular-nums text-muted-foreground/70">+ <span className="font-mono text-micro tabular-nums text-muted-foreground">{(index + 1).toString().padStart(2, "0")}</span><span className="truncate font-mono text-foreground">diff --git a/jarvis/ui/web/frontend/src/components/agentic/WorkspaceSettings.tsx b/jarvis/ui/web/frontend/src/components/agentic/WorkspaceSettings.tsxindex e790912aaf..32e8ebff00 100644--- a/jarvis/ui/web/frontend/src/components/agentic/WorkspaceSettings.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/WorkspaceSettings.tsx@@ -94,7 +94,7 @@ export function WorkspaceSettings({title={`New ${account.display_name} terminals open on ${account.active_label}. Panes already running keep theirs. Click to switch.`}aria-label={`Switch which ${account.display_name} subscription new terminals use`}className={cn(- "hidden h-7 max-w-[16rem] items-center gap-1.5 rounded-md bg-secondary/50 px-2 text-[11px] text-muted-foreground transition-colors xl:flex",+ "hidden h-7 max-w-[16rem] items-center gap-1.5 rounded-md bg-secondary px-2 text-micro text-muted-foreground transition-colors xl:flex","hover:bg-secondary hover:text-foreground",)}>@@ -120,10 +120,10 @@ export function WorkspaceSettings({</Dialog.Trigger><Dialog.Portal>- <Dialog.Overlay className="fixed inset-0 z-50 bg-background/70 backdrop-blur-sm" />+ <Dialog.Overlay className="fixed inset-0 z-50 bg-background backdrop-blur-sm" /><Dialog.Contentdata-testid="agentic-settings"- className="fixed left-1/2 top-1/2 z-50 flex max-h-[min(44rem,calc(100vh-4rem))] w-[min(52rem,calc(100vw-3rem))] -translate-x-1/2 -translate-y-1/2 flex-col rounded-2xl border border-border bg-card"+ className="fixed left-1/2 top-1/2 z-50 flex max-h-[min(44rem,calc(100vh-4rem))] w-[min(52rem,calc(100vw-3rem))] -translate-x-1/2 -translate-y-1/2 flex-col rounded-lg bg-popover shadow-float"><div className="flex items-start justify-between gap-4 border-b border-border px-5 py-4"><div className="min-w-0">@@ -153,9 +153,9 @@ export function WorkspaceSettings({{accounts.map((account) => (<likey={account.agent}- className="rounded-xl border border-border bg-background/40 px-3 py-2"+ className="rounded-xl border border-border bg-background px-3 py-2">- <p className="text-[10px] uppercase tracking-wider text-muted-foreground">+ <p className="text-micro text-muted-foreground">{account.display_name} · new terminals</p><pdiff --git a/jarvis/ui/web/frontend/src/components/agentic/WorkspaceShape.tsx b/jarvis/ui/web/frontend/src/components/agentic/WorkspaceShape.tsxindex 7afcf14dbf..5516d1691b 100644--- a/jarvis/ui/web/frontend/src/components/agentic/WorkspaceShape.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/WorkspaceShape.tsx@@ -255,7 +255,7 @@ export function CountStepper({<div className="flex flex-col items-end gap-1.5"><labelhtmlFor="workspace-terminal-count"- className="font-mono text-[9px] font-medium uppercase tracking-[0.14em] text-muted-foreground"+ className="font-mono text-micro font-medium text-muted-foreground">Exact count · type a number</label>@@ -264,7 +264,7 @@ export function CountStepper({label="Use one fewer terminal"disabled={count <= 1}onClick={() => set(count - 1)}- className="h-full w-11 rounded-none border-r border-border/70"+ className="h-full w-11 rounded-none border-r border-border"><Minus className="h-4 w-4" /></IconButton>@@ -272,7 +272,7 @@ export function CountStepper({htmlFor="workspace-terminal-count"className={"group flex min-w-[7rem] cursor-text items-center justify-center gap-1.5 px-3 " +- "transition-colors hover:bg-secondary/50"+ "transition-colors hover:bg-secondary"}><input@@ -334,7 +334,7 @@ export function CountStepper({/><spanid="workspace-terminal-count-max"- className="shrink-0 font-mono text-[10px] tabular-nums text-muted-foreground/70"+ className="shrink-0 font-mono text-micro tabular-nums text-muted-foreground">/ {max}</span>@@ -343,7 +343,7 @@ export function CountStepper({label="Use one more terminal"disabled={count >= max}onClick={() => set(count + 1)}- className="h-full w-11 rounded-none border-l border-border/70"+ className="h-full w-11 rounded-none border-l border-border"><Plus className="h-4 w-4" /></IconButton>@@ -411,10 +411,10 @@ export function CountTrack({style={{ left: `${((n - 1) / span) * 100}%` }}className={cn("absolute top-0 flex -translate-x-1/2 flex-col items-center gap-1",- "px-1 font-mono text-[11px] tabular-nums transition-colors",+ "px-1 font-mono text-micro tabular-nums transition-colors",count === n? "text-primary"- : "text-muted-foreground/60 hover:text-foreground",+ : "text-muted-foreground hover:text-foreground",)}><span@@ -510,7 +510,7 @@ function WorkspaceStage({return (<divdata-testid="workspace-stage"- className="overflow-hidden rounded-control bg-background/70 ring-1 ring-inset ring-border/60"+ className="overflow-hidden rounded-control bg-background ring-1 ring-inset ring-border"style={{aspectRatio: `${WORKSPACE_ASPECT}`,minHeight: STAGE_MIN_HEIGHT_PX,@@ -580,13 +580,13 @@ function StagePane({*/className={cn("flex min-h-0 min-w-0 items-start justify-start overflow-hidden rounded-[3px]",- focused ? "bg-primary/[0.09] ring-1 ring-inset ring-primary/40" : "bg-muted/40",+ focused ? "bg-primary/[0.09] ring-1 ring-inset ring-primary/40" : "bg-muted",)}>{detail === "full" && (<spanclassName={cn(- "truncate px-1.5 py-1 font-mono text-[10px] leading-none",+ "truncate px-1.5 py-1 font-mono text-micro leading-none",focused ? "text-primary" : "text-muted-foreground",)}>diff --git a/jarvis/ui/web/frontend/src/components/agentic/controls.tsx b/jarvis/ui/web/frontend/src/components/agentic/controls.tsxindex 0c3e03b1ca..7a68f4a49d 100644--- a/jarvis/ui/web/frontend/src/components/agentic/controls.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/controls.tsx@@ -66,7 +66,7 @@ const BASE =const VARIANTS: Record<NonNullable<ButtonProps["variant"]>, string> = {primary: "bg-foreground/70 text-primary-foreground hover:bg-primary/90",quiet:- "border border-border bg-card/60 text-foreground hover:border-border hover:bg-secondary",+ "border border-border bg-card text-foreground hover:border-border hover:bg-secondary",subtle: "text-muted-foreground hover:bg-secondary hover:text-foreground",};@@ -144,7 +144,7 @@ export const Field = forwardRef<ref={ref}className={cn("h-8 min-w-0 rounded-control border border-border bg-background px-2.5 text-sm " +- "text-foreground placeholder:text-muted-foreground/70 " ++ "text-foreground placeholder:text-muted-foreground " +"outline-none transition-colors focus:border-primary/60",className,)}@@ -156,10 +156,19 @@ export const Field = forwardRef</*** A panel — the one container shape this section uses.*- * `title` is rendered as a small caps-tracked label rather than a heading with- * its own font size. The launcher has one real heading; everything else is a- * label on a region, and giving those heading-sized type is what made the old- * screen read as four unrelated cards stacked in a column.+ * `title` is rendered as a small label rather than a heading with its own font+ * size. The launcher has one real heading; everything else is a label on a+ * region, and giving those heading-sized type is what made the old screen read+ * as four unrelated cards stacked in a column.+ *+ * The ground is the RAIL, never the card. This panel is the section block for+ * Spend, Automations, the CLI hub and the launcher, where it renders at the+ * full content measure — 1180px in Spend, 1440px in Automations. Lift scales+ * inversely with area: a surface that wide never rises above the rail, and+ * painting it --card is precisely what turned those three sections into grey+ * slabs the last time this was attempted. The rim stays because call sites+ * recolour it to carry state (failed, open), so it is a real channel here and+ * not just a description of the fill.*/export function Panel({title,@@ -177,13 +186,13 @@ export function Panel({return (<sectionclassName={cn(- "flex min-h-0 min-w-0 flex-col rounded-surface border border-border/70 bg-card/30",+ "flex min-h-0 min-w-0 flex-col rounded-lg border border-border bg-sidebar",className,)}{...rest}>{(title || aside) && (- <div className="flex h-11 shrink-0 items-center justify-between gap-3 border-b border-border/70 px-3">+ <div className="flex h-11 shrink-0 items-center justify-between gap-3 border-b border-border px-3">{title ? <SectionLabel>{title}</SectionLabel> : <span />}{aside && (<div className="flex shrink-0 items-center gap-1.5">{aside}</div>@@ -208,7 +217,7 @@ export function SectionLabel({return (<spanclassName={cn(- "truncate text-[11px] font-semibold uppercase tracking-[0.12em] text-muted-foreground",+ "truncate text-micro font-semibold text-muted-foreground",className,)}>@@ -240,7 +249,7 @@ export function Notice({"flex flex-wrap items-center gap-x-2 gap-y-1 border-l-2 py-1 pl-3 text-sm",tone === "error"? "border-destructive/70 text-destructive"- : "border-foreground/70 text-foreground/90",+ : "border-foreground/70 text-foreground",)}>{children}diff --git a/jarvis/ui/web/frontend/src/components/agentic/folderColor.ts b/jarvis/ui/web/frontend/src/components/agentic/folderColor.tsindex 1de46f9d93..984be37c33 100644--- a/jarvis/ui/web/frontend/src/components/agentic/folderColor.ts+++ b/jarvis/ui/web/frontend/src/components/agentic/folderColor.ts@@ -1,23 +1,22 @@+import { identityHue } from "@/lib/identityHue";+/*** A stable colour for a folder, so the same project reads the same everywhere.** Derived from the path rather than stored, which means it needs no setting and- * survives a lost store. The palette is fixed rather than a free hue rotation:- * arbitrary HSL produces colours that vanish against one of the two themes.+ * survives a lost store. It now derives through the app's one identity helper+ * (`lib/identityHue`) instead of a private list of eight hex values: a project,+ * a conversation and an agent are the same kind of thing to a reader, so they+ * should not be coloured by two unrelated tables that can drift apart — and a+ * hard-coded palette is a literal colour by another name.+ *+ * This mark rides an icon rather than a filled disc, so it is lifted well above+ * the avatar's fill lightness: a 38%-lightness stroke disappears into a+ * near-black rail, where a filled circle at the same value reads perfectly.*/-const FOLDER_COLORS = [- "#e7c46e",- "#7dd3fc",- "#a5b4fc",- "#86efac",- "#fca5a5",- "#f0abfc",- "#fdba74",- "#5eead4",-] as const;+const STROKE_SATURATION = 58;+const STROKE_LIGHTNESS = 62;export function folderColor(key: string): string {- let sum = 0;- for (const char of key) sum = (sum + char.charCodeAt(0)) % 4096;- return FOLDER_COLORS[sum % FOLDER_COLORS.length];+ return `hsl(${identityHue(key)} ${STROKE_SATURATION}% ${STROKE_LIGHTNESS}%)`;}diff --git a/jarvis/ui/web/frontend/src/components/agentic/terminalThemes.ts b/jarvis/ui/web/frontend/src/components/agentic/terminalThemes.tsindex 6d272ba736..00832dde3b 100644--- a/jarvis/ui/web/frontend/src/components/agentic/terminalThemes.ts+++ b/jarvis/ui/web/frontend/src/components/agentic/terminalThemes.ts@@ -3,6 +3,23 @@ import type { ITheme } from "@xterm/xterm";/*** Terminal colour schemes for the Agentic IDE.*+ * ## Why this file holds literal colours when nothing else may+ *+ * The design system forbids a literal colour anywhere in the product; every+ * surface names a token. This module is its one sanctioned exception, for two+ * reasons that cannot be designed away. xterm's `ITheme` takes resolved colour+ * strings — it cannot read `hsl(var(--card))`, and the minimum-contrast maths+ * below needs real numbers to compute a ratio from. And a pane's appearance is+ * a SEPARATE setting from the app theme: a light pane inside a dark app is a+ * supported combination, so a pane that read app tokens would paint its chrome+ * for the wrong ground exactly when the two disagree.+ *+ * So the rule holds in a different shape: the 16 ANSI slots are the terminal's+ * own palette (one of the few places hue legitimately survives), and everything+ * else in this file — `PANE_CHROME`, `PANE_BRAND` — is the app's surface and+ * ink ladder re-derived for each appearance. No value here is invented; each+ * one names the step it stands for in its comment.+ ** Why a hand-built light palette instead of "same colours, white background":* the 16 ANSI colours a coding agent emits were designed for dark terminals.* Their bright variants (yellow, cyan, white) have almost no contrast on paper,@@ -126,6 +143,14 @@ export interface PaneChrome {shell: string;/** The pane's resting edge, and the rule under its header. */border: string;+ /**+ * The pane's float step: a tooltip or menu that leaves the plane.+ *+ * Opaque, unlike `shell`. A card that can land on top of another pane's+ * output must not be read THROUGH, and it is small enough that lift costs+ * the room nothing (see the "lift scales inversely with area" rule).+ */+ float: string;/** The edge that says what this pane's agent is doing. */edge: Record<PaneEdgeState, string>;}@@ -133,8 +158,15 @@ export interface PaneChrome {/*** Chrome (pane frame) colours that go with each terminal theme.*- * These alphas mirror the shared section-panel glass tokens. Keeping the tint- * on this single layer lets xterm remain clear while preserving text contrast.+ * Every value below is one of the app's own surface-ladder steps, expressed as+ * an alpha over the pane's ground so it still composites correctly when a+ * wallpaper is showing through the shell. On a flat ground they resolve to the+ * tokens by name: `border` lands on `--border`, `edge.exited` a step below it,+ * `PaneBrand.chip` on `--secondary`, `PaneBrand.accentSoft` on+ * `--border-strong`. The table exists because a pane's appearance is a+ * SEPARATE setting from the app theme — a light pane inside a dark app is a+ * supported combination — so the pane resolves the ladder against its own+ * ground rather than reading `hsl(var(--…))`, which would be the app's.** ## Why the edge is a state and not a decoration*@@ -147,89 +179,91 @@ export interface PaneChrome {* panes are here, and a workspace where everything is marked marks nothing.* * `exited` — dimmer than resting. The agent is gone; the pane recedes rather* than shouting, because a finished terminal is not a problem.- * * `error` — the CLI's own red, at an alpha that reads across a room without+ * * `error` — the fault hue, at an alpha that reads across a room without* turning the pane into an alert box.*- * The red is the matching terminal theme's own `red` slot rather than the app's- * `--destructive`, and that is deliberate: terminal appearance is a separate- * setting from the app theme (a light pane inside a dark app is a supported- * combination), so a token picked for the app lands on the wrong ground exactly- * when the two disagree.+ * The red used to be the matching terminal theme's own `red` slot. It is now+ * the app's fault hue re-derived per appearance — the same `#E8574C` the dark+ * theme paints `--destructive` with, and the darker `#C72E23` light mode uses —+ * because "this pane failed" is one status across the whole product and must+ * not change hue with a per-pane preference. Re-deriving it here rather than+ * reading the token keeps the ground correct when the two settings disagree.*//**- * Brand ink for a pane's title bar, resolved against the PANE's own ground.+ * Ink and accent for a pane's title bar, resolved against the PANE's own ground.*- * Not the app's `--primary` token, for the same reason `NOTICE_TONE` exists in+ * Not read from `hsl(var(--…))`, for the same reason `NOTICE_TONE` exists in* ./AgenticTerminal: terminal appearance is a separate setting from the app- * theme (a light pane inside a dark app is a supported combination), and the- * app's accent lands on the wrong ground exactly when the two disagree —- * signal-yellow on paper is 1.4:1, a call-sign nobody can read. Each- * appearance therefore carries its own accent, and it is the same hue that- * appearance's terminal theme already uses for the cursor: the dark panes'- * signal-yellow, the light panes' gold. The title bar reads as part of the- * terminal it crowns, in the brand's two voices.+ * theme, and an app token lands on the wrong ground exactly when the two+ * disagree.+ *+ * The values are the app's ink scale, not a second palette: `ink` is the body+ * step, `inkMuted` the meta step, `inkFaint` the placeholder step, and `accent`+ * is the fill — white on a dark pane, warm near-black on a light one. It used+ * to be a signal-yellow "brand" accent in two voices; the brand hue was retired+ * (Ink & Paper), and a title bar is chrome rather than a place to spend colour.+ * Hue now survives on a pane only where it means something: the terminal's own+ * 16 ANSI slots, the activity pill, and a failed edge.*/export interface PaneBrand {- /** The brand accent on this ground — the focused pane's call-sign plate. */+ /** The fill — the focused pane's call-sign plate, and the header hairline. */accent: string;- /** Ink ON the filled accent plate (black on yellow, white on gold). */+ /** Ink ON the filled plate. The pane's ground, so the plate reads as a hole. */onAccent: string;- /** Translucent accent for hairlines, tints, and hover grounds. */+ /** The pane's `--border-strong`: field rims and the hairline's fade. */accentSoft: string;- /** A whisper of accent — the wash across the focused title bar. */- accentWash: string;/** Primary ink — the resting call-sign, the headline under the pointer. */ink: string;- /** Secondary ink — the recap headline at rest. */+ /** Secondary ink — the recap headline at rest, and the seat chip. */inkMuted: string;- /** Tertiary ink — the CLI label and the seat chip. */+ /** Placeholder and disabled ink only. Never information. */inkFaint: string;- /** Quiet chip ground behind the resting call-sign and the seat chip. */+ /** The pane's `--secondary`: the resting call-sign chip, and hover grounds. */chip: string;}export const PANE_BRAND: Record<TerminalAppearance, PaneBrand> = {light: {- accent: "#0a0a0a",- onAccent: "#faf9f5",- accentSoft: "rgba(43,43,51,0.18)",- accentWash: "rgba(43,43,51,0.05)",- ink: "#2b2b33",- inkMuted: "#54545d",- inkFaint: "#77777f",- chip: "rgba(0,0,0,0.055)",+ accent: "#26251e",+ onAccent: "#f7f7f4",+ accentSoft: "rgba(38,37,30,0.24)",+ ink: "#26251e",+ inkMuted: "#6e6b61",+ inkFaint: "#918d82",+ chip: "rgba(38,37,30,0.08)",},dark: {accent: "#ffffff",- onAccent: "#262624",- accentSoft: "rgba(245,244,239,0.18)",- accentWash: "rgba(245,244,239,0.05)",- ink: "#f2f2f5",- inkMuted: "#a8a8b4",- inkFaint: "#8a8a95",- chip: "rgba(255,255,255,0.07)",+ onAccent: "#0a0a0a",+ accentSoft: "rgba(255,255,255,0.23)",+ ink: "#e6e6e6",+ inkMuted: "#949494",+ inkFaint: "#707070",+ chip: "rgba(255,255,255,0.17)",},};export const PANE_CHROME: Record<TerminalAppearance, PaneChrome> = {light: {shell: "rgba(252, 251, 248, 0.68)",- border: "rgba(0,0,0,0.10)",+ border: "rgba(38,37,30,0.115)",+ float: "#ffffff",edge: {- connecting: "rgba(0,0,0,0.10)",- live: "rgba(0,0,0,0.10)",- exited: "rgba(0,0,0,0.05)",- error: "rgba(192,57,43,0.45)",+ connecting: "rgba(38,37,30,0.115)",+ live: "rgba(38,37,30,0.115)",+ exited: "rgba(38,37,30,0.055)",+ error: "rgba(199,46,35,0.45)",},},dark: {shell: "rgba(10, 10, 10, 0.58)",border: "rgba(255,255,255,0.10)",+ float: "#3d3d3d",edge: {connecting: "rgba(255,255,255,0.10)",live: "rgba(255,255,255,0.10)",exited: "rgba(255,255,255,0.05)",- error: "rgba(255,107,94,0.50)",+ error: "rgba(232,87,76,0.55)",},},};diff --git a/jarvis/ui/web/frontend/src/components/board/PairDialog.tsx b/jarvis/ui/web/frontend/src/components/board/PairDialog.tsxindex a6d20621ae..311b2a322d 100644--- a/jarvis/ui/web/frontend/src/components/board/PairDialog.tsx+++ b/jarvis/ui/web/frontend/src/components/board/PairDialog.tsx@@ -36,7 +36,7 @@ export function PairDialog({ onClose }: PairDialogProps) {onClick={onClose}><div- className="w-full max-w-md rounded-xl border border-border bg-card p-6"+ className="w-full max-w-md rounded-lg bg-popover shadow-float p-6"onClick={(e) => e.stopPropagation()}><header className="mb-4 flex items-center gap-3">diff --git a/jarvis/ui/web/frontend/src/components/board/ShareDialog.tsx b/jarvis/ui/web/frontend/src/components/board/ShareDialog.tsxindex 2095f268c9..7b3c4b4e68 100644--- a/jarvis/ui/web/frontend/src/components/board/ShareDialog.tsx+++ b/jarvis/ui/web/frontend/src/components/board/ShareDialog.tsx@@ -185,7 +185,7 @@ export function ShareDialog({ open, onOpenChange, stats }: Props) {<Dialog.Portal><Dialog.Overlay className="fixed inset-0 z-50 bg-scrim/60 backdrop-blur-sm data-[state=open]:animate-in data-[state=open]:fade-in-0" /><Dialog.Content- className="fixed left-1/2 top-1/2 z-50 w-[min(440px,calc(100vw-2rem))] -translate-x-1/2 -translate-y-1/2 rounded-2xl border border-sheen/[0.08] bg-card p-5 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95"+ className="fixed left-1/2 top-1/2 z-50 w-[min(440px,calc(100vw-2rem))] -translate-x-1/2 -translate-y-1/2 rounded-lg bg-popover p-5 shadow-float data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95"data-testid="share-dialog"><div className="mb-3 flex items-start justify-between gap-3">diff --git a/jarvis/ui/web/frontend/src/components/board/StoryComposer.tsx b/jarvis/ui/web/frontend/src/components/board/StoryComposer.tsxindex d0aacad978..76fb4d5190 100644--- a/jarvis/ui/web/frontend/src/components/board/StoryComposer.tsx+++ b/jarvis/ui/web/frontend/src/components/board/StoryComposer.tsx@@ -24,7 +24,7 @@ export function StoryComposer({ onClose }: StoryComposerProps) {onClick={onClose}><div- className="w-full max-w-md rounded-xl border border-border bg-card p-5"+ className="w-full max-w-md rounded-lg bg-popover shadow-float p-5"onClick={(e) => e.stopPropagation()}><header className="mb-3 flex items-center gap-3">diff --git a/jarvis/ui/web/frontend/src/components/clis/CliLogo.tsx b/jarvis/ui/web/frontend/src/components/clis/CliLogo.tsxindex 16d03377f5..6bb5629f26 100644--- a/jarvis/ui/web/frontend/src/components/clis/CliLogo.tsx+++ b/jarvis/ui/web/frontend/src/components/clis/CliLogo.tsx@@ -160,7 +160,7 @@ export function CliLogo({className={cn(// One neutral tile for every mark, so a list of CLIs reads as one table// rather than a row of differently shaped app icons.- "inline-flex shrink-0 items-center justify-center overflow-hidden border border-border/70 bg-background/60",+ "inline-flex shrink-0 items-center justify-center overflow-hidden border border-border bg-background",tile,className,)}diff --git a/jarvis/ui/web/frontend/src/components/costs/costFormat.ts b/jarvis/ui/web/frontend/src/components/costs/costFormat.tsindex 5476f9f200..d7f9b66ab0 100644--- a/jarvis/ui/web/frontend/src/components/costs/costFormat.ts+++ b/jarvis/ui/web/frontend/src/components/costs/costFormat.ts@@ -1,17 +1,25 @@/*** Shared vocabulary of the Spend & Tokens section: colours, formatters, tone.*- * Colours are picked mid-luminance on purpose. They sit on the dark app- * background and on the light one without a second table, which is the rule- * every chart in this app follows (see `board/WordsTrendChart`): a hue that- * only works in one appearance is a bug in the other.+ * A stacked chart is the one place in this product where hue carries data:+ * eight bands with no glyph between them cannot be told apart by anything+ * else. So the role palette stays categorical, and it obeys two rules the rest+ * of the system imposes on it.+ *+ * 1. No band is a THEME token. `tool` used to be `hsl(var(--primary))`, which+ * was signal yellow when this file was written and is now pure white in+ * dark and near-black in light — one series silently became the loudest+ * (or the invisible) band in the chart. A data series owns its own hue.+ * 2. Every hue is mid-luminance, so it sits on the near-black room and on warm+ * paper without a second table — a hue that only works in one appearance is+ * a bug in the other.*/import type { CostRole, CostSurface, PriceSource } from "@/hooks/useCosts";/** One hue per role — the chart stack, the legend and the tables share it. */export const ROLE_COLORS: Record<CostRole, string> = {realtime: "hsl(199 90% 62%)", // sky — the voice you talk to- tool: "hsl(var(--primary))", // signal yellow — the app's primary+ tool: "hsl(228 72% 68%)", // indigo — one call, one answerpipeline: "hsl(268 72% 68%)", // violet — the classic brain pathagent: "hsl(152 58% 52%)", // green — coding agentsworker: "hsl(18 88% 62%)", // orange — autonomous missions@@ -31,8 +39,12 @@ export const ROLE_ORDER: CostRole[] = ["background",];-/** Fallback for a bucket key that is not a role (provider, model, day). */-export const NEUTRAL_COLOR = "hsl(0 0% 62%)";+/**+ * Fallback for a bucket key that is not a role (provider, model, day).+ * The theme's secondary ink, so an uncategorised band recedes to the same+ * grey the labels around it use instead of inventing a ninth value.+ */+export const NEUTRAL_COLOR = "hsl(var(--muted-foreground))";export function roleColor(key: string): string {return ROLE_COLORS[key as CostRole] ?? NEUTRAL_COLOR;diff --git a/jarvis/ui/web/frontend/src/components/docs/DocsSearchModal.tsx b/jarvis/ui/web/frontend/src/components/docs/DocsSearchModal.tsxindex 84d2a3962f..549850c393 100644--- a/jarvis/ui/web/frontend/src/components/docs/DocsSearchModal.tsx+++ b/jarvis/ui/web/frontend/src/components/docs/DocsSearchModal.tsx@@ -45,7 +45,7 @@ export function DocsSearchModal({ open, onOpenChange, onSelect }: Props) {<Dialog.Root open={open} onOpenChange={onOpenChange}><Dialog.Portal><Dialog.Overlay className="fixed inset-0 z-40 bg-scrim/60 backdrop-blur-sm data-[state=open]:animate-in data-[state=open]:fade-in-0 motion-reduce:animate-none" />- <Dialog.Content className="fixed left-1/2 top-[15%] z-50 w-[min(640px,calc(100vw-2rem))] -translate-x-1/2 overflow-hidden rounded-lg border border-border bg-card data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 motion-reduce:animate-none">+ <Dialog.Content className="fixed left-1/2 top-[15%] z-50 w-[min(640px,calc(100vw-2rem))] -translate-x-1/2 overflow-hidden rounded-lg bg-popover shadow-float data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 motion-reduce:animate-none"><Dialog.Title className="sr-only">{t("docs.search_modal_title")}</Dialog.Title><Dialog.Description className="sr-only">{t("docs.search_hint")}diff --git a/jarvis/ui/web/frontend/src/components/docs/DocsSidebar.tsx b/jarvis/ui/web/frontend/src/components/docs/DocsSidebar.tsxindex 4fcfa85418..086d57a0dd 100644--- a/jarvis/ui/web/frontend/src/components/docs/DocsSidebar.tsx+++ b/jarvis/ui/web/frontend/src/components/docs/DocsSidebar.tsx@@ -61,8 +61,11 @@ export function DocsSidebar({return filteredSections.reduce((acc, section) => acc + section.docs.length, 0);}, [filteredSections]);+ // A standing rail, not a card: it runs the full height of the section, so it+ // takes the rail ground and separates from the page by fill alone — a+ // content-sized surface is what earns --card, and this is not one.return (- <aside className="flex h-full w-72 shrink-0 flex-col border-r border-border bg-card/40">+ <aside className="flex h-full w-72 shrink-0 flex-col bg-sidebar">{/* Header */}<div className="border-b border-border px-3 py-3"><div className="mb-2 flex items-center justify-between">diff --git a/jarvis/ui/web/frontend/src/components/extensions/FileCard.tsx b/jarvis/ui/web/frontend/src/components/extensions/FileCard.tsxindex 9af0ee6ead..c53d98fb99 100644--- a/jarvis/ui/web/frontend/src/components/extensions/FileCard.tsx+++ b/jarvis/ui/web/frontend/src/components/extensions/FileCard.tsx@@ -46,7 +46,7 @@ export function fileIconFor(path: string) {/** Rendered markdown — the body of a SKILL.md, a usage card, a README. */export function MarkdownBody({ text }: { text: string }) {return (- <article className="prose prose-neutral max-w-none text-[15px] leading-relaxed dark:prose-invert prose-headings:font-display prose-headings:tracking-tight prose-h1:text-2xl prose-h2:text-xl prose-h3:text-lg prose-a:text-primary prose-code:text-foreground prose-pre:border prose-pre:border-border prose-pre:bg-card/80">+ <article className="prose prose-neutral max-w-none text-reading dark:prose-invert prose-headings:font-display prose-headings:tracking-tight prose-h1:text-2xl prose-h2:text-xl prose-h3:text-lg prose-a:text-foreground-strong prose-code:text-foreground prose-pre:border prose-pre:border-border prose-pre:bg-card"><ReactMarkdownremarkPlugins={[remarkGfm]}components={{@@ -84,7 +84,7 @@ export function ModeButton({onClick={onClick}className={cn("grid h-7 w-8 place-items-center rounded transition-colors",- active ? "bg-sheen/[0.12] text-foreground" : "text-muted-foreground hover:text-foreground",+ active ? "bg-secondary text-foreground" : "text-muted-foreground hover:text-foreground",)}>{children}@@ -170,7 +170,7 @@ export function FileTree({onClick={() => toggle(node.path)}aria-expanded={!closed}style={pad}- className="flex h-8 w-full items-center gap-1.5 pr-2 text-left text-[13px] text-foreground/85 hover:bg-sheen/[0.05]"+ className="flex h-8 w-full items-center gap-1.5 pr-2 text-left text-meta text-foreground hover:bg-secondary">{closed ? (<ChevronRight className="h-3.5 w-3.5 shrink-0 text-muted-foreground" />@@ -195,10 +195,10 @@ export function FileTree({title={node.path}style={{ paddingLeft: `${12 + depth * 14 + 20}px` }}className={cn(- "flex h-8 w-full items-center gap-2 pr-2 text-left font-mono text-[13px] transition-colors",+ "flex h-8 w-full items-center gap-2 pr-2 text-left font-mono text-meta transition-colors",active- ? "bg-sheen/[0.08] text-foreground"- : "text-foreground/80 hover:bg-sheen/[0.05] hover:text-foreground",+ ? "bg-secondary text-foreground"+ : "text-foreground hover:bg-secondary hover:text-foreground",)}><Icon className={cn("h-4 w-4 shrink-0", active ? "text-foreground" : "text-muted-foreground")} />@@ -210,8 +210,8 @@ export function FileTree({return (<nav aria-label={t("extensions.files_menu")} className={cn("min-w-0", className)}>- <div className="flex h-8 items-center gap-1.5 px-3 text-[13px] font-medium text-foreground">- <FolderOpen className="h-4 w-4 shrink-0 text-primary" />+ <div className="flex h-8 items-center gap-1.5 px-3 text-meta font-medium text-foreground">+ <FolderOpen className="h-4 w-4 shrink-0 text-muted-foreground" /><span className="truncate">{rootLabel}</span></div><ul>{renderNodes(tree, 0)}</ul>@@ -259,8 +259,8 @@ export function FileCard({return (<Panel className={className}>- <div className="flex items-center gap-3 border-b border-border/70 px-3 py-2">- <span className="inline-flex h-8 min-w-0 items-center gap-2 px-1 font-mono text-[13px] text-foreground">+ <div className="flex items-center gap-3 border-b border-border px-3 py-2">+ <span className="inline-flex h-8 min-w-0 items-center gap-2 px-1 font-mono text-meta text-foreground"><OpenIcon className="h-3.5 w-3.5 shrink-0 text-muted-foreground" /><span className="truncate">{open?.path ?? "—"}</span></span>@@ -270,7 +270,7 @@ export function FileCard({: fill(t("extensions.files"), { n: files.length })}</span><div- className="ml-auto flex items-center rounded-md bg-sheen/[0.05] p-0.5"+ className="ml-auto flex items-center rounded-md bg-secondary p-0.5"role="tablist"aria-label={t("extensions.view_mode")}>@@ -293,7 +293,7 @@ export function FileCard({<div className="flex min-h-[160px]"><FileTree- className="w-56 shrink-0 border-r border-border/70 py-2"+ className="w-56 shrink-0 border-r border-border py-2"rootLabel={rootLabel}paths={files.map((f) => f.path)}openPath={openPath}@@ -317,7 +317,7 @@ export function FileCard({<MarkdownBody text={open.text} /></div>) : (- <pre className="max-h-[60vh] overflow-auto whitespace-pre-wrap break-words px-6 py-5 font-mono text-[13px] leading-relaxed">+ <pre className="max-h-[60vh] overflow-auto whitespace-pre-wrap break-words px-6 py-5 font-mono text-meta ">{open.text}{open.truncated ? "\n…" : ""}</pre>diff --git a/jarvis/ui/web/frontend/src/components/extensions/primitives.tsx b/jarvis/ui/web/frontend/src/components/extensions/primitives.tsxindex fae9ab1717..e93064f1a7 100644--- a/jarvis/ui/web/frontend/src/components/extensions/primitives.tsx+++ b/jarvis/ui/web/frontend/src/components/extensions/primitives.tsx@@ -129,8 +129,8 @@ export function SoftButton({"inline-flex h-8 items-center gap-1.5 rounded-md px-3 text-xs font-medium transition-colors","disabled:cursor-not-allowed disabled:opacity-50",primary- ? "bg-foreground/70 text-primary-foreground hover:bg-primary/90"- : "bg-sheen/[0.06] text-foreground hover:bg-sheen/[0.12]",+ ? "bg-primary text-primary-foreground hover:bg-primary/90"+ : "bg-secondary text-foreground hover:bg-popover",className,)}>@@ -220,7 +220,7 @@ export function ActionMenu({className={cn("flex w-full items-center gap-2 rounded-md px-2.5 py-1.5 text-left text-xs transition-colors","hover:bg-accent disabled:cursor-not-allowed disabled:opacity-50",- a.destructive && "text-destructive hover:bg-destructive/10",+ a.destructive && "text-destructive hover:bg-secondary",)}>{a.icon ? (@@ -288,7 +288,7 @@ export function TableHead({ columns }: { columns: Column[] }) {return (<divrole="row"- className="grid items-center gap-x-5 border-b border-border px-3 py-2.5 text-[13px] text-muted-foreground"+ className="grid items-center gap-x-5 border-b border-border px-3 py-2.5 text-meta text-muted-foreground"style={{ gridTemplateColumns: gridTemplate(columns) }}>{columns.map((c) => (@@ -349,9 +349,9 @@ export function TableRow({: undefined}className={cn(- "group grid min-h-[54px] items-center gap-x-5 border-b border-border/70 px-3 py-2.5 transition-colors last:border-b-0",+ "group grid min-h-[54px] items-center gap-x-5 border-b border-border px-3 py-2.5 transition-colors last:border-b-0",clickable &&- "cursor-pointer hover:bg-sheen/[0.05] focus:outline-none focus-visible:bg-sheen/[0.06]",+ "cursor-pointer hover:bg-secondary focus:outline-none focus-visible:bg-secondary",selected && "bg-sheen/[0.06]",className,)}@@ -412,7 +412,7 @@ export function BackLink({ label, onClick }: { label: string; onClick: () => voi<buttontype="button"onClick={onClick}- className="inline-flex items-center gap-1.5 text-sm font-medium text-foreground/90 transition-colors hover:text-foreground"+ className="inline-flex items-center gap-1.5 text-sm font-medium text-foreground transition-colors hover:text-foreground"><ArrowLeft className="h-4 w-4" />{label}@@ -475,7 +475,7 @@ export function ClampedText({if (!text) return null;return (- <div className={cn("text-[15px] leading-relaxed text-foreground/85", className)}>+ <div className={cn("text-reading text-foreground", className)}><p ref={ref} className={cn(!expanded && "line-clamp-2")}>{text}{expanded && overflows && (@@ -495,7 +495,7 @@ export function ClampedText({<buttontype="button"onClick={() => setExpanded(true)}- className="mt-0.5 text-sm text-primary hover:underline"+ className="mt-0.5 text-sm text-foreground-strong hover:underline">{moreLabel}</button>@@ -524,7 +524,7 @@ export function FactRows({const visible = rows.filter((r) => r.value !== null && r.value !== undefined && r.value !== "");if (visible.length === 0) return null;return (- <dl className={cn("grid grid-cols-[max-content_minmax(0,1fr)] gap-x-8 gap-y-2.5 text-[15px]", className)}>+ <dl className={cn("grid grid-cols-[max-content_minmax(0,1fr)] gap-x-8 gap-y-2.5 text-title", className)}>{visible.map((r) => (<div key={r.label} className="contents"><dt className="text-sm leading-6 text-muted-foreground">{r.label}</dt>@@ -596,7 +596,7 @@ export function InlineSearch({onChange={(e) => onChange(e.target.value)}placeholder={placeholder}aria-label={placeholder}- className="h-8 w-full rounded-md border border-border bg-background/60 px-3 text-sm placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-primary"+ className="h-8 w-full rounded-md border border-border bg-background px-3 text-sm placeholder:text-faint-foreground focus:outline-none focus:ring-2 focus:ring-border-strong"/>);}@@ -627,7 +627,7 @@ export function SegmentedFilter<T extends string>({className={cn("inline-flex h-7 items-center gap-1.5 rounded-md px-2.5 text-xs transition-colors",active- ? "bg-sheen/[0.08] font-medium text-foreground"+ ? "bg-secondary font-medium text-foreground": "text-muted-foreground hover:text-foreground",)}>@@ -729,7 +729,7 @@ export function StatTile({</div>) : hint ? (<div- className="mt-0.5 truncate text-[11px] text-muted-foreground"+ className="mt-0.5 truncate text-micro text-muted-foreground"title={typeof hint === "string" ? hint : undefined}>{hint}diff --git a/jarvis/ui/web/frontend/src/components/friends/AddFriendMenu.tsx b/jarvis/ui/web/frontend/src/components/friends/AddFriendMenu.tsxindex c8d196336c..14c47a1228 100644--- a/jarvis/ui/web/frontend/src/components/friends/AddFriendMenu.tsx+++ b/jarvis/ui/web/frontend/src/components/friends/AddFriendMenu.tsx@@ -79,7 +79,7 @@ export function AddFriendMenu({return (<div className="fixed inset-0 z-50 flex items-center justify-center bg-background/80 backdrop-blur-sm">- <div className="w-full max-w-md rounded-xl border border-border bg-card">+ <div className="w-full max-w-md rounded-lg bg-popover shadow-float"><header className="flex items-center justify-between border-b border-border px-5 py-3"><h2 className="flex items-center gap-2 font-display text-sm font-semibold"><Plus className="h-4 w-4 text-primary" />diff --git a/jarvis/ui/web/frontend/src/components/home/AllChatsDialog.tsx b/jarvis/ui/web/frontend/src/components/home/AllChatsDialog.tsxindex 8d1b2162d4..f145b944fc 100644--- a/jarvis/ui/web/frontend/src/components/home/AllChatsDialog.tsx+++ b/jarvis/ui/web/frontend/src/components/home/AllChatsDialog.tsx@@ -74,8 +74,8 @@ export function AllChatsDialog({}}className={cn("fixed left-1/2 top-1/2 z-[90] flex max-h-[min(84dvh,44rem)] w-[min(680px,calc(100vw-2rem))]",- "-translate-x-1/2 -translate-y-1/2 flex-col overflow-hidden rounded-2xl border border-border",- "bg-card outline-none",+ "-translate-x-1/2 -translate-y-1/2 flex-col overflow-hidden rounded-lg",+ "bg-popover shadow-float outline-none","data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 motion-reduce:animate-none",)}>diff --git a/jarvis/ui/web/frontend/src/components/identity/IdentityAvatar.tsx b/jarvis/ui/web/frontend/src/components/identity/IdentityAvatar.tsxnew file mode 100644index 0000000000..ee9d42f01b--- /dev/null+++ b/jarvis/ui/web/frontend/src/components/identity/IdentityAvatar.tsx@@ -0,0 +1,56 @@+/**+ * The one way a person is drawn in this product.+ *+ * Wraps `lib/identityAvatar` so Profile, Contacts, Friends and the review+ * queue cannot drift into four different discs. Three sizes, one shape (pill),+ * no border: the disc has a real fill, and Design.md's separation rule is fill+ * first — a rim on top of a solid colour is the wireframe look it warns about.+ *+ * `src` renders a real portrait instead of the initials; the coloured disc+ * stays underneath as the ground, so a slow or broken image never flashes an+ * empty grey hole.+ */+import { cn } from "@/lib/utils";+import { identityAvatarStyle, identityInitials } from "@/lib/identityAvatar";++/** Disc diameter and the glyph size that belongs to it. */+const SIZES = {+ sm: "h-7 w-7 text-micro",+ md: "h-9 w-9 text-meta",+ lg: "h-14 w-14 text-page",+} as const;++export type IdentityAvatarSize = keyof typeof SIZES;++export function IdentityAvatar({+ name,+ size = "md",+ src,+ alt,+ className,+}: {+ name: string;+ size?: IdentityAvatarSize;+ /** A real portrait, drawn on top of the identity disc. */+ src?: string | null;+ alt?: string;+ className?: string;+}) {+ return (+ <span+ aria-hidden={src ? undefined : true}+ style={identityAvatarStyle(name)}+ className={cn(+ "relative flex shrink-0 items-center justify-center overflow-hidden rounded-full font-semibold",+ SIZES[size],+ className,+ )}+ >+ {src ? (+ <img src={src} alt={alt ?? name} className="h-full w-full object-cover" draggable={false} />+ ) : (+ identityInitials(name)+ )}+ </span>+ );+}diff --git a/jarvis/ui/web/frontend/src/components/layout/CodingModeBadge.tsx b/jarvis/ui/web/frontend/src/components/layout/CodingModeBadge.tsxindex eee3c441f2..dec261e2bd 100644--- a/jarvis/ui/web/frontend/src/components/layout/CodingModeBadge.tsx+++ b/jarvis/ui/web/frontend/src/components/layout/CodingModeBadge.tsx@@ -1,8 +1,8 @@import { Brain } from "lucide-react";+import { clsx } from "clsx";import { useEventStore } from "@/store/events";import { useT } from "@/i18n";-import { cn } from "@/lib/utils";/*** App-wide indicator: is Jarvis an Agentic IDE right now?@@ -63,16 +63,28 @@ export function CodingModeBadge({ className }: { className?: string }) {// Claiming a pressed state for something it cannot change would be a lie// to exactly the users who depend on it most.disabled={activeSection === "agentic-ide" || activeSection === "agentic-ide-classic"}- className={cn(- "inline-flex items-center gap-1.5 rounded-md border px-2.5 py-1",- "text-xs font-medium transition-colors disabled:cursor-default",+ // `clsx`, not `cn`: tailwind-merge reads `text-body` as a colour and+ // would drop it in favour of the state colour below, leaving the chip at+ // the inherited 16 px.+ className={clsx(+ "inline-flex h-8 items-center gap-2 rounded-md px-3",+ "text-body font-medium transition-colors disabled:cursor-default",+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-strong",+ // ON is a live state, so it says so in the one hue that means "this is+ // running" — a green dot beside plain ink, rather than a whole chip+ // recoloured in the accent, which put the loudest mark in the window+ // on a status. OFF keeps the quiet chrome shape.mode.active- ? "border-primary/60 bg-primary/15 text-primary hover:bg-primary/25"- : "border-border bg-secondary/40 text-muted-foreground hover:border-primary/40 hover:text-foreground",+ ? "bg-card text-foreground hover:bg-secondary"+ : "text-muted-foreground hover:bg-secondary hover:text-foreground",className,)}>- <Brain aria-hidden className="h-3.5 w-3.5" />+ {mode.active ? (+ <span aria-hidden className="h-2 w-2 shrink-0 rounded-full bg-success" />+ ) : (+ <Brain aria-hidden className="h-4 w-4 shrink-0" />+ )}{label}</button>);diff --git a/jarvis/ui/web/frontend/src/components/layout/DetachedViewPlaceholder.tsx b/jarvis/ui/web/frontend/src/components/layout/DetachedViewPlaceholder.tsxindex 08a7aee498..46c0c775c2 100644--- a/jarvis/ui/web/frontend/src/components/layout/DetachedViewPlaceholder.tsx+++ b/jarvis/ui/web/frontend/src/components/layout/DetachedViewPlaceholder.tsx@@ -1,6 +1,8 @@import { useState } from "react";import { AppWindow } from "lucide-react";+import { EmptyState } from "@/components/layout/EmptyState";+import { Button } from "@/components/ui/button";import { useT } from "@/i18n";import type { SectionId } from "@/store/events";@@ -38,40 +40,40 @@ export function DetachedViewPlaceholder({ view }: { view: SectionId }) {}}+ // The shared empty state, not a hand-rolled one: this IS the case that+ // primitive exists for — one sentence saying where the section went, and the+ // one action that brings it back.return (<div- className="flex h-full w-full flex-col items-center justify-center gap-4 text-center"+ className="flex h-full w-full items-center justify-center p-7"data-testid="detached-view-placeholder">- <AppWindow aria-hidden className="h-10 w-10 text-muted-foreground/60" />- <div className="max-w-sm space-y-1">- <div className="text-sm font-medium text-foreground">- {t("topbar.detached_title")}- </div>- <div className="text-xs text-muted-foreground">- {t("topbar.detached_body")}- </div>- </div>- <div className="flex items-center gap-2">- <button- type="button"- disabled={busy}- onClick={() => void post("/api/window/detach")}- data-testid="detached-focus-button"- className="inline-flex items-center gap-1.5 rounded-md border border-border bg-secondary/40 px-3 py-1.5 text-xs font-medium text-muted-foreground transition-colors hover:border-primary/50 hover:text-foreground disabled:cursor-default disabled:opacity-70"- >- {t("topbar.detach_focus")}- </button>- <button- type="button"- disabled={busy}- onClick={() => void post("/api/window/reattach")}- data-testid="detached-reattach-button"- className="inline-flex items-center gap-1.5 rounded-md border border-primary/50 bg-primary/10 px-3 py-1.5 text-xs font-medium text-primary transition-colors hover:bg-primary/20 disabled:cursor-default disabled:opacity-70"- >- {t("topbar.detach_bring_back")}- </button>- </div>+ <EmptyState+ icon={<AppWindow />}+ title={t("topbar.detached_title")}+ body={t("topbar.detached_body")}+ action={+ <div className="flex items-center gap-2">+ <Button+ variant="ghost"+ size="sm"+ disabled={busy}+ onClick={() => void post("/api/window/detach")}+ data-testid="detached-focus-button"+ >+ {t("topbar.detach_focus")}+ </Button>+ <Button+ size="sm"+ disabled={busy}+ onClick={() => void post("/api/window/reattach")}+ data-testid="detached-reattach-button"+ >+ {t("topbar.detach_bring_back")}+ </Button>+ </div>+ }+ /></div>);}diff --git a/jarvis/ui/web/frontend/src/components/layout/DockRail.tsx b/jarvis/ui/web/frontend/src/components/layout/DockRail.tsxindex 2408633d01..fcc65a39d9 100644--- a/jarvis/ui/web/frontend/src/components/layout/DockRail.tsx+++ b/jarvis/ui/web/frontend/src/components/layout/DockRail.tsx@@ -287,16 +287,21 @@ export function DockRail({ className }: { className?: string }) {exit={{ opacity: 0, x: -4 }}transition={reduced ? { duration: 0 } : { duration: 0.12, ease: "easeOut" }}style={{ top: labelViewportTop, left: labelLeft, y: "-50%" }}- className="pointer-events-none fixed z-[70] flex items-center gap-1.5 whitespace-nowrap rounded-md border border-border bg-background/95 px-2 py-1 text-xs text-foreground backdrop-blur"+ // A surface that has genuinely left the plane: the float token+ // and the float shadow, which carries its own rim — so no+ // border, and no `bg-background/95` standing in for a fill.+ className="pointer-events-none fixed z-[70] flex items-center gap-2 whitespace-nowrap rounded-lg bg-popover px-2.5 py-1.5 text-meta text-foreground shadow-float">{resolveNavLabel(t, hoveredItem)}{hoveredItem.beta && (- <span className="rounded-full border border-primary/30 bg-primary/10 px-1.5 py-0.5 text-[9px] font-medium uppercase tracking-wide text-primary">+ <span className="rounded-full bg-secondary px-1.5 text-micro text-muted-foreground">{t("nav.agentic_ide_beta")}</span>)}{hoveredCount > 0 && (- <span className="font-mono text-[10px] text-primary">{hoveredCount}</span>+ <span className="text-micro tabular-nums text-muted-foreground">+ {hoveredCount}+ </span>)}{hoveredHint && (<span className="max-w-[28ch] truncate text-muted-foreground">— {hoveredHint}</span>@@ -365,15 +370,18 @@ function DockIcon({aria-label={label}aria-current={active ? "page" : undefined}className={cn(- "absolute left-1/2 flex -translate-x-1/2 items-center justify-center rounded-xl border transition-colors duration-150",- "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/60",- // The active control is the app's glass surface with the accent on- // the glyph — the same language as the expanded sidebar's row.+ "absolute left-1/2 flex -translate-x-1/2 items-center justify-center rounded-md transition-colors duration-150",+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-strong",+ // The same ladder as the expanded sidebar's row, so a section reads+ // identically whichever face the column is wearing: hover lifts to+ // the object step, selection to the one above it with the strong+ // ink. No border on any of the three — each already has its fill,+ // and the resting one is meant to have none.active- ? "jarvis-nav-active border-transparent"+ ? "jarvis-nav-active bg-secondary text-foreground-strong": hovered- ? "border-transparent bg-secondary text-foreground"- : "border-transparent text-foreground/55",+ ? "bg-card text-foreground"+ : "text-muted-foreground",)}style={{ top: PAD_TOP + restCenter - BASE / 2, width: BASE, height: BASE }}>@@ -387,24 +395,26 @@ function DockIcon({{/* Pips ride on the icon's corner. The signal is the point, not therow — and there is no room for anything beside a 30 px box. */}+ {/* The three status hues, and the rail's own ground as the ring that+ separates a pip from the glyph it overlaps. */}{alert ? (<spandata-testid={`nav-alert-${item.id}`}role="status"aria-label={alertTitle}- className="absolute -right-0.5 -top-0.5 h-2 w-2 rounded-full bg-destructive ring-2 ring-background"+ className="absolute -right-0.5 -top-0.5 h-2 w-2 rounded-full bg-destructive ring-2 ring-sidebar"/>) : warn ? (<spandata-testid={`nav-warn-${item.id}`}role="status"aria-label={warnTitle}- className="absolute -right-0.5 -top-0.5 h-2 w-2 rounded-full bg-foreground ring-2 ring-background"+ className="absolute -right-0.5 -top-0.5 h-2 w-2 rounded-full bg-warning ring-2 ring-sidebar"/>) : live ? (<spanaria-hidden- className="absolute -right-0.5 -top-0.5 h-2 w-2 rounded-full bg-foreground/70 ring-2 ring-background"+ className="absolute -right-0.5 -top-0.5 h-2 w-2 rounded-full bg-success ring-2 ring-sidebar"/>) : null}</button>diff --git a/jarvis/ui/web/frontend/src/components/layout/EmptyState.tsx b/jarvis/ui/web/frontend/src/components/layout/EmptyState.tsxnew file mode 100644index 0000000000..86c700d915--- /dev/null+++ b/jarvis/ui/web/frontend/src/components/layout/EmptyState.tsx@@ -0,0 +1,64 @@+import type { ReactNode } from "react";++import { cn } from "@/lib/utils";++/**+ * The "there is nothing here yet" surface, for every section that can be empty.+ *+ * Replaces the dimmed centred word each view invented for itself — a single+ * `text-muted-foreground` line floating in a black rectangle, which is+ * indistinguishable from a section that failed to load. An empty state is a+ * designed surface with two jobs: say what will appear here, and offer the one+ * action that makes it appear. If a section has no such action, it has no empty+ * state either — it has a sentence.+ *+ * A card, so it is a real object on the page rather than a hole in it, and+ * capped at the form measure so it stays sized to its content: a full-bleed+ * surface never rises above the room it sits in.+ *+ * Locale-free: the caller passes already-translated strings.+ */+export function EmptyState({+ icon,+ title,+ body,+ action,+ className,+}: {+ /** A 20px lucide glyph. Rendered in secondary ink; pass no colour class. */+ icon?: ReactNode;+ /** Optional short headline — skip it when `body` already says everything. */+ title?: string;+ /** One sentence: what appears here, and when. Already translated. */+ body: string;+ /** The one control that fills this section. Omit only if none exists. */+ action?: ReactNode;+ className?: string;+}) {+ return (+ <div+ data-testid="empty-state"+ className={cn(+ "mx-auto flex w-full max-w-form flex-col items-center gap-3",+ "rounded-lg bg-card px-block py-10 text-center shadow-rim",+ className,+ )}+ >+ {icon && (+ <span+ aria-hidden+ className="text-muted-foreground [&>svg]:h-5 [&>svg]:w-5"+ >+ {icon}+ </span>+ )}+ {title && (+ <p className="text-title font-semibold text-foreground-strong">+ {title}+ </p>+ )}+ <p className="max-w-reading text-body text-muted-foreground">{body}</p>+ {action && <div className="mt-1">{action}</div>}+ </div>+ );+}diff --git a/jarvis/ui/web/frontend/src/components/layout/InputIsolationBanner.tsx b/jarvis/ui/web/frontend/src/components/layout/InputIsolationBanner.tsxindex 4c7a07b766..e0ab4dc688 100644--- a/jarvis/ui/web/frontend/src/components/layout/InputIsolationBanner.tsx+++ b/jarvis/ui/web/frontend/src/components/layout/InputIsolationBanner.tsx@@ -59,19 +59,22 @@ export function InputIsolationBanner() {data-testid="input-isolation-banner"data-reason={report.reason}role="alert"- className="border-b-2 border-foreground/50 bg-foreground/10 text-foreground"+ // A full-width strip stays on the page's own ground: the state is said+ // by the glyph and the hairline, not by washing the top of the window in+ // an alpha of the ink colour.+ className="border-b border-warning"><div className="flex items-start gap-3 px-4 py-2.5">- <KeyboardOff className="mt-0.5 h-5 w-5 shrink-0 text-foreground" aria-hidden />+ <KeyboardOff className="mt-0.5 h-5 w-5 shrink-0 text-warning" aria-hidden /><div className="min-w-0 flex-1">- <p className="text-sm font-semibold leading-tight">+ <p className="text-body font-semibold text-foreground-strong">{t("input_isolation.title")}</p>- <p className="mt-0.5 text-xs leading-snug text-foreground/90">+ <p className="mt-0.5 text-meta text-muted-foreground">{t("input_isolation.impact")}</p>{!report.can_restart_unelevated && (- <p className="mt-1 text-xs leading-snug text-foreground/70">+ <p className="mt-1 text-meta text-muted-foreground">{t("input_isolation.manual_hint")}</p>)}diff --git a/jarvis/ui/web/frontend/src/components/layout/MainView.tsx b/jarvis/ui/web/frontend/src/components/layout/MainView.tsxindex 7e4e880392..2eda967a39 100644--- a/jarvis/ui/web/frontend/src/components/layout/MainView.tsx+++ b/jarvis/ui/web/frontend/src/components/layout/MainView.tsx@@ -6,6 +6,7 @@ import {useState,type ComponentType,type LazyExoticComponent,+ type ReactNode,} from "react";import { QueryClientContext } from "@tanstack/react-query";import { Loader2 } from "lucide-react";@@ -331,10 +332,13 @@ export function ViewLoadingFallback() {>{phase !== "quiet" && (<>- <Loader2 className="h-5 w-5 animate-spin text-primary" />- <p className="text-sm text-muted-foreground">{t("view_loading.loading")}</p>+ {/* Secondary ink, not the accent: `--primary` is a fill — buttons,+ marks, focus rings — and an icon painted in it outshines every+ heading on the screen behind it. */}+ <Loader2 className="h-5 w-5 animate-spin text-muted-foreground" />+ <p className="text-body text-muted-foreground">{t("view_loading.loading")}</p>{phase === "slow" && (- <p className="max-w-[46ch] text-center text-xs text-muted-foreground/80">+ <p className="max-w-[46ch] text-center text-meta text-muted-foreground">{t("view_loading.slow")}</p>)}@@ -365,6 +369,70 @@ const CODING_SECTION_IDS = ["agentic-ide", "agentic-ide-classic", "chat-workspac*/const STICKY_SECTION = "agentic-ide";+/**+ * The sections that opt OUT of the page measure, and why each one earns it.+ *+ * Content is bounded by the shell rather than by each view (see+ * `SectionMeasure`): a settings card holding two words has no business+ * spanning 1170 px, and an explanatory sentence that runs the full width of a+ * maximised window cannot be read. A view does not get to decide that for+ * itself — 46 views deciding it independently is how the app ended up with no+ * measure at all.+ *+ * A genuine full-bleed section is one whose CONTENT is the surface:+ * - the coding workspace is a wall of terminals, and every pixel taken off+ * its width is taken off a pane (it renders through the sticky branch+ * below, which never passes through the measure — the ids are listed for+ * completeness, so this stays the one place the question is answered);+ * - the visualization stage shows pictures somebody else produced, framed+ * edge to edge and already sized by their own aspect;+ * - the board is a horizontally scrolling column layout, which a centred+ * 1080 px column would simply cut in half.+ *+ * Everything else is text, rows, forms and cards, and all four read better+ * inside a measure. Adding an id here is a design decision, not a fix for a+ * cramped view: a view that feels cramped at 1080 px usually has a nested+ * layout that wants flattening.+ */+const FULL_BLEED_SECTIONS: readonly string[] = [+ ...CODING_SECTION_IDS,+ "visualization",+ "board",+];++/**+ * The page measure, applied once, by the shell.+ *+ * `max-w-page` is 1080 px and the padding is the 28 px page step; both come+ * from the token scale rather than from a number typed here. Full-bleed+ * sections keep the whole window (see `FULL_BLEED_SECTIONS`).+ *+ * `h-full` is load-bearing: sections are full-height flex columns that scroll+ * internally (nothing in this app scrolls the page itself), so the measure has+ * to be as tall as the stage it sits in or every one of them would collapse to+ * its content height.+ */+function SectionMeasure({+ bleed,+ children,+}: {+ bleed: boolean;+ children: ReactNode;+}) {+ return (+ <div+ data-testid="section-measure"+ data-bleed={bleed ? "true" : "false"}+ className={cn(+ "h-full w-full",+ !bleed && "mx-auto max-w-page px-7",+ )}+ >+ {children}+ </div>+ );+}+/*** Main area to the right of the sidebar. Views are switched the classic way* (one view active, the others unmounted) — this saves render load and is@@ -463,7 +531,9 @@ export function MainView() {{/* Keyed on the active section so switching away from a still-loadingview cannot leave the previous section's fallback on screen. */}<Suspense key={active} fallback={<ViewLoadingFallback />}>- <SwitchOnActiveSection active={active} />+ <SectionMeasure bleed={FULL_BLEED_SECTIONS.includes(active)}>+ <SwitchOnActiveSection active={active} />+ </SectionMeasure></Suspense></ViewErrorBoundary>)}diff --git a/jarvis/ui/web/frontend/src/components/layout/PaneResizer.tsx b/jarvis/ui/web/frontend/src/components/layout/PaneResizer.tsxindex d6d7971ad0..890d7d6f3f 100644--- a/jarvis/ui/web/frontend/src/components/layout/PaneResizer.tsx+++ b/jarvis/ui/web/frontend/src/components/layout/PaneResizer.tsx@@ -138,9 +138,12 @@ export const PaneResizer = forwardRef<HTMLDivElement, PaneResizerProps>(functionvertical? "inset-y-0 left-1/2 w-px -translate-x-1/2": "inset-x-0 top-1/2 h-px -translate-y-1/2",+ // Rim → strong rim → fill. Three named steps rather than three+ // opacities: a seam has to read on the page's own ground in both+ // themes, and an alpha of the ink lands differently in each.active- ? "bg-foreground/70"- : "bg-border group-hover:bg-primary/60 group-focus-visible:bg-primary/60",+ ? "bg-primary"+ : "bg-border group-hover:bg-border-strong group-focus-visible:bg-border-strong",)}/>{/* A short thicker stub in the middle: without it the seam reads as a@@ -151,8 +154,8 @@ export const PaneResizer = forwardRef<HTMLDivElement, PaneResizerProps>(function"pointer-events-none absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 rounded-full transition-colors",vertical ? "h-8 w-[3px]" : "h-[3px] w-8",active- ? "bg-foreground/70"- : "bg-border group-hover:bg-primary/70 group-focus-visible:bg-primary/70",+ ? "bg-primary"+ : "bg-border group-hover:bg-border-strong group-focus-visible:bg-border-strong",)}/></div>diff --git a/jarvis/ui/web/frontend/src/components/layout/PanelSkeleton.tsx b/jarvis/ui/web/frontend/src/components/layout/PanelSkeleton.tsxnew file mode 100644index 0000000000..808d0851ab--- /dev/null+++ b/jarvis/ui/web/frontend/src/components/layout/PanelSkeleton.tsx@@ -0,0 +1,76 @@+import { cn } from "@/lib/utils";++/**+ * One skeleton bar. The shape of a thing that has not arrived yet.+ *+ * `sheen` is the theme's "lift this off the surface" channel, so the bar is a+ * pale wash on near-black and an ink wash on paper without either value being+ * written down. Give it the width and height of the real element it stands in+ * for — a skeleton whose bars are a different size from the content that+ * replaces them makes the section jump when the data lands.+ */+export function SkeletonBar({+ className,+ style,+}: {+ className?: string;+ style?: React.CSSProperties;+}) {+ return (+ <span+ aria-hidden+ className={cn("block rounded-md bg-sheen/[0.06]", className)}+ style={style}+ />+ );+}++/**+ * The loading state for a list, table or card stack.+ *+ * Replaces the two things every section did instead: a centred spinner in an+ * otherwise black rectangle, and — worse — a finished-looking panel full of+ * zeros. A section showing "0 runs" while the request is still in flight is+ * not loading, it is lying: the user reads a working section with no data and+ * goes looking for the bug.+ *+ * So this renders the REAL container at its real height, with a bar where each+ * row will be. Pass the row height the section actually uses; the default is+ * the app's standard list row. It announces itself as busy, so a screen reader+ * hears "loading" rather than walking a wall of empty spans.+ */+export function PanelSkeleton({+ rows = 4,+ rowHeight = 44,+ label,+ className,+}: {+ /** How many rows the real container shows before it scrolls. */+ rows?: number;+ /** The real row height in px, so nothing shifts when the data lands. */+ rowHeight?: number;+ /** Already-translated "loading" text for assistive technology. */+ label?: string;+ className?: string;+}) {+ return (+ <div+ role="status"+ aria-busy="true"+ aria-label={label}+ data-testid="panel-skeleton"+ className={cn("flex w-full flex-col gap-stack", className)}+ >+ {Array.from({ length: rows }, (_, i) => (+ <SkeletonBar+ key={i}+ style={{ height: rowHeight }}+ // The bars shorten down the stack, the way real rows have unequal+ // titles. A column of identical full-width blocks reads as a+ // rendering fault rather than as content on its way.+ className={i % 3 === 2 ? "w-4/5" : i % 3 === 1 ? "w-11/12" : "w-full"}+ />+ ))}+ </div>+ );+}diff --git a/jarvis/ui/web/frontend/src/components/layout/PermissionsAlertBanner.tsx b/jarvis/ui/web/frontend/src/components/layout/PermissionsAlertBanner.tsxindex f731400cf1..d713435205 100644--- a/jarvis/ui/web/frontend/src/components/layout/PermissionsAlertBanner.tsx+++ b/jarvis/ui/web/frontend/src/components/layout/PermissionsAlertBanner.tsx@@ -11,6 +11,8 @@ import {MousePointer2,ShieldAlert,} from "lucide-react";+import { clsx } from "clsx";+import { Button } from "@/components/ui/button";import { useT } from "@/i18n";import { useEventStore } from "@/store/events";@@ -105,18 +107,20 @@ export function PermissionsAlertBanner() {data-testid="permissions-alert-banner"data-state={restartOnly ? "restart" : "missing"}role="alert"- className="border-b-2 border-foreground/50 bg-foreground/10 text-foreground"+ // Same rule as the other shell banners: a full-width strip does not rise+ // off the page. The alert is carried by the glyph and the hairline.+ className="border-b border-warning"><div className="flex items-center gap-3 px-4 py-2.5">- <ShieldAlert className="h-5 w-5 shrink-0 text-foreground" aria-hidden />+ <ShieldAlert className="h-5 w-5 shrink-0 text-warning" aria-hidden /><div className="min-w-0 flex-1">- <p className="text-sm font-semibold leading-tight">+ <p className="text-body font-semibold text-foreground-strong">{restartOnly? t("permissions.restart_required"): t("permissions.banner.title")}</p>{!restartOnly && brokenFeatures.length > 0 && (- <p className="text-xs leading-tight text-foreground/90">+ <p className="text-meta text-muted-foreground">{t("permissions.banner.impact").replace("{0}", brokenFeatures.join(", "))}</p>)}@@ -144,12 +148,12 @@ export function PermissionsAlertBanner() {</div>{!restartOnly && !collapsed && (- <div className="space-y-2 px-4 pb-3">+ <div className="space-y-stack px-4 pb-3">{snapshot.app_identity.stable === false && (- <p className="text-xs text-foreground/90">{t("permissions.identity_warning")}</p>+ <p className="text-meta text-muted-foreground">{t("permissions.identity_warning")}</p>)}{snapshot.identity_reset && (- <p className="text-xs text-foreground/90">{t("permissions.identity_reset")}</p>+ <p className="text-meta text-muted-foreground">{t("permissions.identity_reset")}</p>)}{missing.map((item) => (<MissingPermissionRow@@ -162,15 +166,18 @@ export function PermissionsAlertBanner() {/>))}{snapshot.restart_required && (- <div className="flex flex-wrap items-center justify-between gap-2 rounded-lg border border-foreground/30 bg-background/40 p-3">- <p className="text-xs text-foreground">{t("permissions.restart_required")}</p>+ // Rim-only, no fill: these rows are as wide as the window, and a+ // surface that wide never rises off the page. When a fill is out,+ // the hairline is what is left to group with.+ <div className="flex flex-wrap items-center justify-between gap-2 rounded-lg border border-border p-block">+ <p className="text-body text-foreground">{t("permissions.restart_required")}</p><Button size="sm" disabled={restarting} onClick={() => void restartApp()}>{restarting && <Loader2 className="mr-1.5 h-3.5 w-3.5 animate-spin" />}{t(restarting ? "permissions.restarting" : "permissions.restart_now")}</Button></div>)}- <p className="text-xs text-foreground/70">{t("permissions.banner.hint")}</p>+ <p className="text-meta text-muted-foreground">{t("permissions.banner.hint")}</p></div>)}</div>@@ -203,23 +210,35 @@ function MissingPermissionRow({: item.status;return (- <div className="flex flex-wrap items-center gap-3 rounded-lg border border-foreground/30 bg-background/40 p-3">- <Icon className="h-4 w-4 shrink-0 text-foreground" aria-hidden />+ <div className="flex flex-wrap items-center gap-3 rounded-lg border border-border p-block">+ <Icon className="h-4 w-4 shrink-0 text-muted-foreground" aria-hidden /><div className="min-w-[12rem] flex-1">- <div className="text-sm font-medium text-foreground">+ <div className="text-title font-semibold text-foreground-strong">{t(`permissions.items.${item.id}.title`)}</div>- <p className="mt-0.5 text-xs text-muted-foreground">+ <p className="mt-0.5 text-meta text-muted-foreground">{t(`permissions.items.${item.id}.description`)}</p>{/* macOS will not prompt again and the grant is missing: thecheckmark in System Settings belongs to an older signature ofthis app, so toggling it there leads nowhere (BUG-159). */}{item.can_reset && !item.can_request && (- <p className="mt-1 text-xs text-foreground/90">{t("permissions.stale_grant_hint")}</p>+ <p className="mt-1 text-meta text-muted-foreground">+ {t("permissions.stale_grant_hint")}+ </p>)}</div>- <span className="rounded-full bg-foreground/10 px-2 py-1 text-[10px] font-medium uppercase tracking-wide text-foreground">+ {/* A status is never ink: every row here is a permission the app does+ NOT have, so it reads as a fault — except the one that is only+ waiting for a restart, which is the "degraded" case. */}+ {/* `clsx`, not `cn`: tailwind-merge treats `text-meta` as a colour and+ would drop the size in favour of the status colour beside it. */}+ <span+ className={clsx(+ "shrink-0 text-meta font-medium",+ statusKey === "restart_pending" ? "text-warning" : "text-destructive",+ )}+ >{t(`permissions.status.${statusKey}`)}</span>{item.can_request && (diff --git a/jarvis/ui/web/frontend/src/components/layout/SectionHeader.tsx b/jarvis/ui/web/frontend/src/components/layout/SectionHeader.tsxnew file mode 100644index 0000000000..c8bedd39bf--- /dev/null+++ b/jarvis/ui/web/frontend/src/components/layout/SectionHeader.tsx@@ -0,0 +1,71 @@+import type { ReactNode } from "react";++import { cn } from "@/lib/utils";++/**+ * The ONE header every section of the app wears.+ *+ * Replaces the ~46 hand-rolled header rows the views grew independently — each+ * with its own size, weight, ink and padding, several of them a tiny all-caps+ * label over a 12px title. A header is a role, not a layout each view gets to+ * reinvent, and a product whose 46 screens introduce themselves 46 different+ * ways reads as 46 products.+ *+ * The type is fixed here so a call site cannot pick a size: the title is the+ * `page` step (20/600) in the ink ceiling, the subtitle is `meta` in secondary+ * ink, and the icon is a 20px glyph in the same secondary ink — never brighter+ * than the heading it labels. The rhythm is fixed too: 28px above (the page+ * step) and 32px below (the group step), which is the gap that was missing+ * everywhere and is why sections read as one undifferentiated mesh.+ *+ * Locale-free on purpose: the caller passes already-translated strings, the+ * same way the sidebar's rows do, so this component never grows a dependency+ * on the i18n bundle.+ */+export function SectionHeader({+ icon,+ title,+ subtitle,+ actions,+ className,+}: {+ /** A 20px lucide glyph. Rendered in secondary ink; pass no colour class. */+ icon?: ReactNode;+ /** The section's name, already translated. */+ title: string;+ /** One line saying what the section is for. Longer than a line: cut it. */+ subtitle?: string;+ /** Right-aligned controls — the section's own actions, if it has any. */+ actions?: ReactNode;+ className?: string;+}) {+ return (+ <header+ data-testid="section-header"+ className={cn("flex shrink-0 items-start gap-3 pb-group pt-7", className)}+ >+ {icon && (+ // A sizing box rather than a decorative wrapper: it pins every+ // section's glyph to the same 20px square on the title's first line,+ // and to the one ink an icon is allowed to carry.+ <span+ aria-hidden+ className="mt-0.5 flex h-5 w-5 shrink-0 items-center justify-center text-muted-foreground [&>svg]:h-5 [&>svg]:w-5"+ >+ {icon}+ </span>+ )}+ <div className="min-w-0 flex-1">+ <h1 className="truncate text-page font-semibold text-foreground-strong">+ {title}+ </h1>+ {subtitle && (+ <p className="mt-1 text-meta text-muted-foreground">{subtitle}</p>+ )}+ </div>+ {actions && (+ <div className="flex shrink-0 items-center gap-2">{actions}</div>+ )}+ </header>+ );+}diff --git a/jarvis/ui/web/frontend/src/components/layout/SectionTabBar.tsx b/jarvis/ui/web/frontend/src/components/layout/SectionTabBar.tsxindex ceafed457e..11e82270fd 100644--- a/jarvis/ui/web/frontend/src/components/layout/SectionTabBar.tsx+++ b/jarvis/ui/web/frontend/src/components/layout/SectionTabBar.tsx@@ -1,5 +1,6 @@+import { clsx } from "clsx";+import { useEventStore, type SectionId } from "@/store/events";-import { cn } from "@/lib/utils";import { useT } from "@/i18n";export interface SectionTab {@@ -22,6 +23,10 @@ export function SectionTabBar({ tabs }: { tabs: readonly SectionTab[] }) {const setActive = useEventStore((s) => s.setActiveSection);return (+ // The horizontal padding stays matched to the header this bar sits under+ // (`ViewHeader`, px-6). It comes off the day the views take the shared+ // `SectionHeader`, which carries none — the shell supplies the page+ // padding then, and a second inset here would push the tabs off the title.<div className="flex items-center gap-6 border-b border-border px-6">{tabs.map((tab) => (<PrimaryTab@@ -49,16 +54,23 @@ function PrimaryTab({type="button"onClick={onClick}aria-current={active ? "page" : undefined}- className={cn(- "relative py-3 text-sm font-medium transition-colors",- active ? "text-foreground" : "text-muted-foreground hover:text-foreground",+ // `clsx`, not `cn`: tailwind-merge classifies the design system's+ // `text-body` as a text COLOUR, so merging it with `text-muted-foreground`+ // drops the size and the tab jumps to the inherited 16 px.+ className={clsx(+ "relative py-3 text-body font-medium transition-colors",+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-strong",+ active+ ? "text-foreground-strong"+ : "text-muted-foreground hover:text-foreground",)}>{label}{active && (+ // An active indicator is one of the four things `--primary` is for.<spanaria-hidden- className="absolute inset-x-0 bottom-0 h-0.5 rounded-full bg-foreground"+ className="absolute inset-x-0 bottom-0 h-0.5 rounded-full bg-primary"/>)}</button>diff --git a/jarvis/ui/web/frontend/src/components/layout/Sidebar.tsx b/jarvis/ui/web/frontend/src/components/layout/Sidebar.tsxindex e77a250ee6..c6550316be 100644--- a/jarvis/ui/web/frontend/src/components/layout/Sidebar.tsx+++ b/jarvis/ui/web/frontend/src/components/layout/Sidebar.tsx@@ -21,6 +21,7 @@ import { useVoiceMode } from "@/hooks/useVoiceMode";import { useSectionHealth } from "@/hooks/useProviders";import { usePluginAttention } from "@/hooks/usePluginAttention";import { useVoiceEngineDisplay } from "@/hooks/useVoiceEngineDisplay";+import { clsx } from "clsx";import { cn } from "@/lib/utils";import { useCallback, useEffect, useMemo, useState, type ReactNode } from "react";import { useT } from "@/i18n";@@ -38,6 +39,24 @@ import { GigiMark } from "@/components/GigiMark";/** Where the Chat row remembers whether its history is folded out. */const CHATS_OPEN_KEY = "jarvis.sidebar.recent-chats-open";+/*+ * Why `clsx` and not `cn` on the rows below.+ *+ * `cn` runs tailwind-merge, which decides that anything matching `text-*` that+ * is not one of ITS known size names is a text COLOUR. The design system's+ * scale — `text-body`, `text-meta`, `text-title`, `text-micro` — is not in that+ * list, so a class list holding both a size and a colour ends up with only the+ * colour: `cn("text-body", "text-muted-foreground")` returns+ * `"text-muted-foreground"` and the row silently falls back to the inherited+ * 16 px. Font size and colour are different CSS properties and never conflict+ * in the stylesheet, so plain concatenation is the correct behaviour here.+ *+ * The real fix is one line in `lib/utils.ts` — teach tailwind-merge the scale+ * via `extendTailwindMerge({ extend: { classGroups: { "font-size": [{ text:+ * ["display","page","title","reading","body","meta","micro"] }] } } })`. That+ * file is outside this change; once it lands these can go back to `cn`.+ */+function readChatsOpen(): boolean {try {return window.localStorage.getItem(CHATS_OPEN_KEY) === "1";@@ -67,17 +86,28 @@ const IDE_SECTIONS: readonly string[] = ["agentic-ide-classic",];+/**+ * The voice status dot, in the three colours a status is allowed to have.+ *+ * It used to run on four shades of grey — `bg-muted-foreground/50`,+ * `bg-muted-foreground`, `bg-foreground/70`, `bg-foreground` — which is a ramp+ * nobody can read: "listening" and "idle" differed by an opacity, and the+ * loudest value on the ramp was "paused". Colour carries exactly three+ * meanings in this product, so the dot carries them too: green while the voice+ * path is actually doing something, red when it broke, amber while it is only+ * half up, and neutral ink when it is simply at rest.+ */const VOICE_STATE_STYLE: Record<string, { dot: string; pulse: boolean }> = {- idle: { dot: "bg-muted-foreground/50", pulse: false },- listening: { dot: "bg-muted-foreground", pulse: true },- thinking: { dot: "bg-foreground/70", pulse: true },- speaking: { dot: "bg-foreground/70", pulse: true },+ idle: { dot: "bg-muted-foreground", pulse: false },+ listening: { dot: "bg-success", pulse: true },+ thinking: { dot: "bg-success", pulse: true },+ speaking: { dot: "bg-success", pulse: true },// The user muted or suspended the pipeline: neither working nor broken.- paused: { dot: "bg-foreground", pulse: false },+ paused: { dot: "bg-muted-foreground", pulse: false },error: { dot: "bg-destructive", pulse: false },// Not a supervisor state — the surface's own "a realtime transport is- // negotiating" phase, which no backend state covers.- connecting: { dot: "bg-foreground", pulse: true },+ // negotiating" phase, which no backend state covers. Half up, so amber.+ connecting: { dot: "bg-warning", pulse: true },};export interface SidebarProps {@@ -278,6 +308,14 @@ export function Sidebar({() => Object.values(sectionHealth).some((h) => h?.status === "error"),[sectionHealth],);+ // The footer card IS the button that opens API Keys, so its dot carries that+ // page's verdict rather than a decorative grey mark. Three honest states:+ // something is failing, something has answered, or nothing has reported yet+ // — a fresh install must not claim green before a single provider replied.+ const providersAnswering = useMemo(+ () => Object.values(sectionHealth).some((h) => h?.status === "ok"),+ [sectionHealth],+ );// A connected marketplace plugin whose token was revoked/expired (needs_reauth)// — surfaced as an amber dot on the row that fronts Plugins ("Skills & Tools"),// so a dead connection is visible app-wide, not only on the Plugins page. The@@ -369,7 +407,10 @@ export function Sidebar({data-railed={railed ? "true" : "false"}className="jarvis-nav-surface relative isolate z-20 flex h-full shrink-0 flex-col">- <div className={cn("border-b border-border", railed ? "px-2 py-2.5" : "px-3 py-3")}>+ {/* One 8px gutter down the whole column — header, navigation and footer+ share it, so the rows, the "+ New" button and the brain card all line+ up on the same left edge. */}+ <div className={cn("border-b border-border px-2", railed ? "py-2.5" : "py-3")}><divclassName={cn("flex items-center gap-3",@@ -386,7 +427,7 @@ export function Sidebar({<spandata-testid="sidebar-instance-tag"title={t("sidebar.instance_dev_hint")}- className="absolute -bottom-1 -right-1 z-10 rounded-[3px] bg-foreground/70 px-[3px] py-px font-mono text-[7px] font-bold leading-none tracking-wider text-primary-foreground"+ className="absolute -bottom-1 -right-1 z-10 rounded-full bg-primary px-1 text-micro font-medium leading-none text-primary-foreground">{devTag}</span>@@ -395,19 +436,25 @@ export function Sidebar({</span>{!railed && (<div className="flex min-w-0 flex-1 flex-col">- <span className="flex min-w-0 items-center gap-1.5 font-display text-[15px] font-semibold tracking-tight text-foreground">+ <span className="flex min-w-0 items-center gap-2 font-display text-title font-semibold text-foreground-strong"><span className="truncate">{assistantName}</span>{devTag && (+ // A mark, not a status: the fill is the neutral accent, so it+ // never competes with the green/amber/red the voice dot+ // beside it uses to mean something.<spandata-testid="sidebar-instance-tag"title={t("sidebar.instance_dev_hint")}- className="shrink-0 rounded-[4px] bg-foreground/70 px-1 py-px font-mono text-[9px] font-bold leading-none tracking-wider text-primary-foreground"+ className="shrink-0 rounded-full bg-primary px-1.5 text-micro font-medium leading-none text-primary-foreground">{devTag}</span>)}</span>- <span className="mt-0.5 inline-flex w-fit items-center rounded-full bg-secondary px-1.5 py-px text-[10px] font-medium uppercase tracking-wider text-foreground/70">+ {/* The state, as a plain line rather than a tiny all-caps chip.+ The dot to its right already carries the colour; a pill here+ was a second, louder copy of the same fact. */}+ <span className="truncate text-meta text-muted-foreground">{voiceLabel}</span></div>@@ -438,8 +485,12 @@ export function Sidebar({aria-label={railed ? t("sidebar.expand") : t("sidebar.collapse")}className={cn("flex shrink-0 items-center justify-center rounded-md text-muted-foreground",- "transition-colors hover:bg-background/20 hover:text-foreground",- "focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",+ // Hover goes UP the surface ladder. It used to be+ // `hover:bg-background/20`, which composites the PAGE colour+ // over the rail — on near-black that is darker than rest, so+ // the control dimmed under the pointer.+ "transition-colors hover:bg-secondary hover:text-foreground",+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-strong",railed ? "h-7 w-7" : "-mr-1 h-7 w-7",)}>@@ -459,15 +510,17 @@ export function Sidebar({Hidden while the IDE's chats own the column: two switches with"Chat" on both halves are two questions nobody asked. */}<SurfaceSwitch className="mt-2" />+ {/* An object that answers a pointer by stepping up one surface —+ `bg-card` at rest, `bg-secondary` under the cursor. The old+ `hover:bg-secondary/80` went the other way: it thinned the fill+ the button already had. */}<buttontype="button"onClick={onVoiceSurface ? startNewVoice : startNewChat}data-testid="sidebar-new-chat"- className="mt-2 flex w-full items-center gap-2 rounded-xl bg-secondary px-2.5 py-2 text-xs font-medium text-foreground transition-colors hover:bg-secondary/80 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring"+ className="mt-2 flex h-9 w-full items-center gap-2 rounded-md bg-card px-3 text-body font-medium text-foreground transition-colors hover:bg-secondary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-strong">- <span className="flex h-5 w-5 items-center justify-center rounded-md bg-foreground/15 text-foreground">- <Plus aria-hidden className="h-3 w-3" />- </span>+ <Plus aria-hidden className="h-4 w-4 shrink-0 text-muted-foreground" />{onVoiceSurface ? t("sidebar.new_voice_chat") : t("sidebar.new_chat")}</button><BrowserRealtimeControl />@@ -495,10 +548,10 @@ export function Sidebar({type="button"onClick={() => setSectionsShown(true)}data-testid="sidebar-show-sections"- className={cn(- "group mx-2 mb-2 mt-3 flex shrink-0 items-center gap-3 rounded-lg px-3 py-2 text-sm transition-colors",- "text-muted-foreground hover:bg-background/20 hover:text-foreground",- "focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",+ className={clsx(+ "group mx-2 mb-2 mt-3 flex h-10 shrink-0 items-center gap-2 rounded-md px-3 text-body transition-colors",+ "text-muted-foreground hover:bg-secondary hover:text-foreground",+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-strong",)}><LayoutList@@ -508,26 +561,29 @@ export function Sidebar({<span className="flex-1 text-left">{t("sidebar.sections")}</span><ChevronRightaria-hidden- className="h-4 w-4 shrink-0 text-muted-foreground transition-transform group-hover:translate-x-0.5 group-hover:text-primary"+ className="h-4 w-4 shrink-0 text-muted-foreground transition-transform group-hover:translate-x-0.5 group-hover:text-foreground"/></button></>) : (- <nav className="px-1.5 py-1.5">+ // 8px in from the column edge, because the SELECTION is drawn on the+ // whole row now: the fill needs an inset to read as a rounded object+ // sitting in the rail rather than as a stripe welded to its side.+ <nav className="px-2 py-2">{chatFace && (<buttontype="button"onClick={() => setSectionsShown(false)}data-testid="sidebar-show-chats"- className={cn(- "group mb-2 flex w-full items-center gap-3 rounded-lg px-3 py-2 text-sm transition-colors",- "text-muted-foreground hover:bg-background/20 hover:text-foreground",- "focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",+ className={clsx(+ "group mb-2 flex h-10 w-full items-center gap-2 rounded-md px-3 text-body transition-colors",+ "text-muted-foreground hover:bg-secondary hover:text-foreground",+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-strong",)}><ChevronLeftaria-hidden- className="h-4 w-4 shrink-0 text-muted-foreground transition-transform group-hover:-translate-x-0.5 group-hover:text-primary"+ className="h-4 w-4 shrink-0 text-muted-foreground transition-transform group-hover:-translate-x-0.5 group-hover:text-foreground"/><span className="flex-1 text-left">{t("sidebar.back_to_chats")}</span></button>@@ -606,12 +662,13 @@ export function Sidebar({</div>)}- <div className={cn("border-t border-border", railed ? "p-1.5" : "p-2")}>+ <div className="border-t border-border p-2"><buttontype="button"onClick={() => setActive("apikeys")}className={cn(- "group flex w-full items-center rounded-xl bg-secondary text-left transition-colors hover:bg-secondary/80",+ "group flex w-full items-center rounded-lg bg-card text-left transition-colors hover:bg-secondary",+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-strong",railed ? "justify-center px-2 py-2" : "gap-3 px-3 py-2",)}// On the rail the card shrinks to its status dot, so everything it@@ -623,22 +680,38 @@ export function Sidebar({: footerTooltip}>- <div className="h-2 w-2 shrink-0 rounded-full bg-foreground/70" />+ {/* Not decoration: the dot is this button's destination reporting in+ — red when a configured provider is failing, green once one has+ actually answered, neutral until any of them has. On the rail it+ is the whole card, which is why it has to mean something. */}+ <div+ data-testid="sidebar-footer-health"+ className={cn(+ "h-2 w-2 shrink-0 rounded-full",+ apikeysHasError+ ? "bg-destructive"+ : providersAnswering+ ? "bg-success"+ : "bg-muted-foreground",+ )}+ />{!railed && (<div className="flex-1 min-w-0"><div- className="text-[10px] uppercase tracking-wider text-muted-foreground"+ className="text-meta text-muted-foreground"data-testid="sidebar-footer-tier">{footerLabel}</div>- <div className="text-xs font-medium truncate">{footerProvider}</div>+ <div className="truncate text-title font-semibold text-foreground-strong">+ {footerProvider}+ </div>{/* The model id actually in use (e.g. "claude-opus-4-8", or therealtime model in realtime mode) — the user asked to see WHICHmodel is in use, not just the provider. */}{footerModel && (<div- className="text-[10px] text-muted-foreground/70 truncate"+ className="truncate text-meta text-muted-foreground"title={footerModel}data-testid="sidebar-brain-model">@@ -648,7 +721,7 @@ export function Sidebar({</div>)}{!railed && (- <ChevronRight className="h-4 w-4 text-muted-foreground transition-transform group-hover:translate-x-0.5 group-hover:text-primary" />+ <ChevronRight className="h-4 w-4 text-muted-foreground transition-transform group-hover:translate-x-0.5 group-hover:text-foreground" />)}</button></div>@@ -697,6 +770,22 @@ function NavRow({}) {const Icon = item.icon;const hint = alert ? alertTitle : warn ? warnTitle : undefined;+ /*+ * Selection is drawn on the WHOLE ROW.+ *+ * It used to be a `bg-foreground/10` fill on the 24×24 icon box while the+ * ~200×40 row it belongs to stayed at the rail's own ground — a correct lift+ * spent on 3.5 % of the thing it was meant to mark, which is why "you are+ * here" was the hardest question to answer in this app. The row takes the+ * fill now (one step up the ladder, inset from the column edge by the nav's+ * own padding) plus the strong ink, and the icon box is gone entirely: it+ * existed only to hold that fill.+ *+ * Hover stops one rung BELOW selection — `bg-card`, not `bg-secondary` — so+ * a hovered row and the selected row never look alike. That difference is+ * the whole point of a fill-based selection; matching them would give the+ * fill with one hand and take the meaning away with the other.+ */return (<li className={cn(expand && "relative")}><button@@ -704,39 +793,46 @@ function NavRow({data-testid={`nav-row-${item.id}`}onClick={onClick}title={hint}- className={cn(- "group relative flex w-full items-center gap-2.5 rounded-xl px-2 py-1.5 text-[13px] font-medium transition-colors",- "hover:bg-secondary/70",+ className={clsx(+ "group relative flex h-10 w-full items-center gap-2 rounded-md px-3 text-body transition-colors",+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-strong",// Leave the chevron its own column so the two buttons never overlap.expand && "pr-9",- active ? "jarvis-nav-active" : "text-foreground/80 hover:text-foreground",+ active+ ? "jarvis-nav-active bg-secondary text-foreground-strong"+ : "text-foreground hover:bg-card",)}>- <span+ <Icon+ aria-hiddenclassName={cn(- "flex h-6 w-6 shrink-0 items-center justify-center rounded-md transition-colors",- active ? "bg-foreground/10 text-foreground" : "text-foreground/55 group-hover:text-foreground",+ "h-4 w-4 shrink-0 transition-colors",+ active+ ? "text-foreground-strong"+ : "text-muted-foreground group-hover:text-foreground",)}- >- <Icon className="h-4 w-4" />- </span>- <span className="flex flex-1 items-center gap-1.5 text-left">- {label}+ />+ <span className="flex min-w-0 flex-1 items-center gap-2 text-left">+ {/* The row is a fixed 40px now, so a long label has to be cut rather+ than allowed to wrap out of it. */}+ <span className="truncate">{label}</span>{betaLabel && (<spandata-testid={`nav-beta-${item.id}`}- className="shrink-0 rounded-full border border-primary/30 bg-primary/10 px-1.5 py-0.5 text-[9px] font-medium uppercase tracking-wide text-primary"+ className="shrink-0 rounded-full bg-secondary px-1.5 text-micro text-muted-foreground">{betaLabel}</span>)}</span>+ {/* No ring around these: they sit in clear space at the row's end, and+ a rim on something that already has a fill is one device too many. */}{alert && (<spandata-testid={`nav-alert-${item.id}`}role="status"aria-label={alertTitle}- className="h-2 w-2 shrink-0 rounded-full bg-destructive ring-2 ring-background"+ className="h-2 w-2 shrink-0 rounded-full bg-destructive"/>)}{!alert && warn && (@@ -744,11 +840,11 @@ function NavRow({data-testid={`nav-warn-${item.id}`}role="status"aria-label={warnTitle}- className="h-2 w-2 shrink-0 rounded-full bg-foreground ring-2 ring-background"+ className="h-2 w-2 shrink-0 rounded-full bg-warning"/>)}{badge !== undefined && badge > 0 && (- <span className="rounded-full bg-primary/20 px-1.5 py-0.5 text-[10px] font-semibold text-primary">+ <span className="shrink-0 rounded-full bg-secondary px-1.5 text-micro tabular-nums text-muted-foreground">{badge}</span>)}@@ -762,9 +858,11 @@ function NavRow({title={expand.label}data-testid={`nav-expand-${item.id}`}className={cn(- "absolute right-1.5 top-1/2 flex h-5 w-5 -translate-y-1/2 items-center justify-center rounded-md transition-colors",- "text-muted-foreground hover:bg-background/60 hover:text-foreground",- "focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",+ "absolute right-2 top-1/2 flex h-6 w-6 -translate-y-1/2 items-center justify-center rounded-md transition-colors",+ // `hover:bg-background/60` painted the PAGE over the rail here,+ // i.e. it went darker under the pointer. Up the ladder instead.+ "text-muted-foreground hover:bg-secondary hover:text-foreground",+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-strong",)}><ChevronDowndiff --git a/jarvis/ui/web/frontend/src/components/layout/ThemeToggle.tsx b/jarvis/ui/web/frontend/src/components/layout/ThemeToggle.tsxindex ba962bdf10..de9ff3157e 100644--- a/jarvis/ui/web/frontend/src/components/layout/ThemeToggle.tsx+++ b/jarvis/ui/web/frontend/src/components/layout/ThemeToggle.tsx@@ -30,11 +30,16 @@ export function ThemeToggle({ className }: { className?: string }) {aria-label={label}data-testid="theme-toggle"className={cn(- "inline-flex h-7 w-7 shrink-0 items-center justify-center rounded-md border border-border bg-secondary/40 text-muted-foreground transition-colors hover:border-primary/50 hover:text-foreground",+ // Same recipe as the rest of the bar: no fill at rest, one step up+ // under the pointer. The old version answered a hover by recolouring+ // its BORDER, which is a rim doing a fill's job.+ "inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-md",+ "text-muted-foreground transition-colors hover:bg-secondary hover:text-foreground",+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-strong",className,)}>- <Icon aria-hidden className="h-3.5 w-3.5" />+ <Icon aria-hidden className="h-4 w-4" /></button>);}diff --git a/jarvis/ui/web/frontend/src/components/layout/TopBar.tsx b/jarvis/ui/web/frontend/src/components/layout/TopBar.tsxindex b680a9f919..a43c7b6e7b 100644--- a/jarvis/ui/web/frontend/src/components/layout/TopBar.tsx+++ b/jarvis/ui/web/frontend/src/components/layout/TopBar.tsx@@ -7,6 +7,7 @@ import {useUpdate,type UpdateProgress,} from "@/hooks/useUpdate";+import { clsx } from "clsx";import { fill, useT } from "@/i18n";import { cn } from "@/lib/utils";import { CodingModeBadge } from "@/components/layout/CodingModeBadge";@@ -46,6 +47,39 @@ import { openExternalUrl } from "@/lib/openExternal";*/const CONFIRM_TIMEOUT_MS = 4000;+/**+ * The one recipe every control in this bar follows.+ *+ * The three buttons had drifted into three different shapes — a bordered+ * `bg-secondary/40` pill, a bordered `bg-primary/10` pill in accent ink, and a+ * bordered `bg-foreground/10` pill — none of which is a surface in the system:+ * each was a token multiplied by an opacity, so all three sat at whatever value+ * the ground behind them happened to be. Shape, size, radius and focus ring+ * live here; only the FILL differs, and only because the three states differ.+ *+ * Composed with `clsx`, not `cn`: tailwind-merge reads any unfamiliar `text-*`+ * class as a colour, so `cn("text-body", "text-muted-foreground")` throws the+ * SIZE away and the button falls back to the inherited 16 px. Font size and+ * colour never conflict in real CSS. (The durable fix is teaching+ * tailwind-merge the scale in `lib/utils.ts`; that file is not part of this+ * change.)+ */+const CHROME_BUTTON =+ "inline-flex h-8 shrink-0 items-center gap-2 rounded-md px-3 text-body font-medium " ++ "transition-[background-color,color,transform] duration-150 " ++ "motion-safe:active:scale-[0.98] focus-visible:outline-none focus-visible:ring-2 " ++ "focus-visible:ring-border-strong disabled:cursor-default disabled:opacity-70";++/** Resting chrome: no fill of its own, one step up under the pointer. */+const CHROME_QUIET = "text-muted-foreground hover:bg-secondary hover:text-foreground";++/**+ * A control waiting for a second, deliberate click — "confirm restart",+ * "restart anyway". Amber is the product's "needs attention" hue and this is+ * the only place in the shell that earns it: the guard already refused once.+ */+const CHROME_ARMED = "bg-warning text-background";+const CODING_SECTIONS = new Set<SectionId>(["agentic-ide","agentic-ide-classic",@@ -80,7 +114,10 @@ export function TopBar() {}return (- <div className="jarvis-shell-surface flex h-10 shrink-0 items-center justify-end gap-2 border-b border-border px-4 backdrop-blur-md">+ // 44px, so a 32px control has room to breathe in it. At 40px the buttons+ // filled the bar edge to edge and the strip read as a container that had+ // burst rather than as chrome.+ <div className="jarvis-shell-surface flex h-11 shrink-0 items-center justify-end gap-2 border-b border-border px-4 backdrop-blur-md">{/* Status, not an action — `mr-auto` pins it left so it never crowdsthe buttons. The deck header does not pass this: it already sitsin a right-hand cluster. */}@@ -187,9 +224,9 @@ function DetachButton() {disabled={busy}title={t("topbar.detach_hint")}data-testid="detach-view-button"- className="inline-flex shrink-0 items-center gap-1.5 rounded-md border border-border bg-secondary/40 px-2.5 py-1 text-xs font-medium text-muted-foreground transition-colors hover:border-primary/50 hover:text-foreground disabled:cursor-default disabled:opacity-70"+ className={clsx(CHROME_BUTTON, CHROME_QUIET)}>- <AppWindow aria-hidden className="h-3.5 w-3.5" />+ <AppWindow aria-hidden className="h-4 w-4" />{t("topbar.detach")}</button>);@@ -294,16 +331,14 @@ function RestartButton() {onClick={onClick}disabled={restarting}title={t("topbar.restart_hint")}- className={cn(- "inline-flex shrink-0 items-center gap-1.5 rounded-md border px-2.5 py-1 text-xs font-medium transition-colors disabled:cursor-default disabled:opacity-70",- confirming || forceArmed- ? "border-foreground/60 bg-foreground/10 text-foreground hover:bg-foreground/20"- : "border-border bg-secondary/40 text-muted-foreground hover:border-primary/50 hover:text-foreground",+ className={clsx(+ CHROME_BUTTON,+ confirming || forceArmed ? CHROME_ARMED : CHROME_QUIET,)}><RotateCwaria-hidden- className={cn("h-3.5 w-3.5", restarting && "animate-spin")}+ className={cn("h-4 w-4", restarting && "animate-spin")}/>{label}</button>@@ -583,40 +618,47 @@ function UpdateButton() {aria-valuemin={busy ? 0 : undefined}aria-valuemax={busy ? 100 : undefined}aria-valuenow={busy ? percent : undefined}- className={cn(- "relative inline-flex items-center gap-1.5 overflow-hidden rounded-md border px-2.5 py-1 text-xs font-medium transition-colors disabled:cursor-default disabled:opacity-70",- forceArmed- ? "border-foreground/60 bg-foreground/10 text-foreground hover:bg-foreground/20"- : "border-primary/50 bg-primary/10 text-primary hover:bg-primary/20",+ className={clsx(+ CHROME_BUTTON,+ "relative overflow-hidden",+ // The one offer in the bar, so it is the one thing here with a fill+ // of its own: an object on the chrome, answering the pointer one+ // step up. It used to be accent-tinted TEXT on an accent-tinted+ // wash, which put the loudest ink in the window on a button most+ // users never need.+ forceArmed ? CHROME_ARMED : "bg-card text-foreground hover:bg-secondary",)}>{busy && (<spanaria-hiddendata-testid="update-progress-fill"- // A token tint on the button's own token background: it reads as a- // fill in light and dark alike, with no hardcoded colour.- className="absolute inset-y-0 left-0 bg-primary/25 transition-[width] duration-300 ease-out"+ // The bar is the next surface UP from the button's own, so it+ // stays readable whether the button is resting or hovered — and+ // it is a named token, not a tint of one.+ className="absolute inset-y-0 left-0 bg-popover transition-[width] duration-300 ease-out"style={{ width: `${percent}%` }}/>)}<Downloadaria-hidden- className={cn("relative h-3.5 w-3.5", busy && "animate-pulse")}+ className={cn("relative h-4 w-4", busy && "animate-pulse")}/><span className="relative tabular-nums">{label}</span>{!busy && !forceArmed && shownVersion && (- <span className="relative rounded bg-primary/20 px-1 text-[10px] tabular-nums">+ <span className="relative rounded-full bg-secondary px-1.5 text-micro tabular-nums text-muted-foreground">v{shownVersion}</span>)}</button>{showNotes && status.notes && (- <div className="absolute right-0 top-full z-50 mt-1 w-80 rounded-md border border-border bg-background p-3 text-left">- <div className="mb-1 text-xs font-semibold text-foreground">+ // A floating layer: the float surface, the float shadow, and no border+ // of its own — the shadow already carries the rim.+ <div className="absolute right-0 top-full z-50 mt-2 w-80 rounded-lg bg-popover p-block text-left shadow-float">+ <div className="mb-2 text-title font-semibold text-foreground-strong">{t("topbar.update_available")} · v{shownVersion}</div>- <div className="max-h-64 overflow-y-auto whitespace-pre-wrap text-[11px] leading-relaxed text-muted-foreground">+ <div className="max-h-64 overflow-y-auto whitespace-pre-wrap text-meta text-muted-foreground">{status.notes.slice(0, 800)}</div></div>diff --git a/jarvis/ui/web/frontend/src/components/layout/VoiceWarmingBanner.tsx b/jarvis/ui/web/frontend/src/components/layout/VoiceWarmingBanner.tsxindex bfece55f3b..45e07905d3 100644--- a/jarvis/ui/web/frontend/src/components/layout/VoiceWarmingBanner.tsx+++ b/jarvis/ui/web/frontend/src/components/layout/VoiceWarmingBanner.tsx@@ -2,7 +2,6 @@ import { useEffect, useRef, useState } from "react";import { Loader2, Mic } from "lucide-react";import { useT } from "@/i18n";import { useVoiceReadiness } from "@/hooks/useVoiceReadiness";-import { cn } from "@/lib/utils";/*** Honest "can I speak yet?" indicator.@@ -49,28 +48,25 @@ export function VoiceWarmingBanner() {data-state={warming ? "warming" : "ready"}role="status"aria-live="polite"- className={cn(- "flex items-center gap-3 border-b px-4 py-2.5 text-sm transition-colors",- // The pale -200 tints are dark-mode ink; on light they land near-white- // on a bright wallpaper and disappear (the banner spans raw artwork).- warming- ? "border-foreground/30 bg-foreground/10 text-foreground"- : "border-muted-foreground/30 bg-muted-foreground/10 text-muted-foreground",- )}+ // No wash. The banner spans the whole window, and a full-bleed region+ // never rises off the page it sits on — so the state is carried by the+ // GLYPH's colour and the hairline under it, the way a status is meant to+ // be, instead of by a tinted slab across the top of the app.+ className="flex items-center gap-3 border-b border-border px-4 py-2.5">{warming ? (- <Loader2 className="h-4 w-4 shrink-0 animate-spin" aria-hidden />+ <Loader2 className="h-4 w-4 shrink-0 animate-spin text-warning" aria-hidden />) : (- <Mic className="h-4 w-4 shrink-0" aria-hidden />+ <Mic className="h-4 w-4 shrink-0 text-success" aria-hidden />)}<div className="flex min-w-0 flex-col">- <span className="font-medium leading-tight">+ <span className="text-body font-medium text-foreground-strong">{warming? t("voice_state.warming_title"): t("voice_state.ready_title")}</span>{warming && (- <span className="text-xs leading-tight opacity-80">+ <span className="text-meta text-muted-foreground">{t("voice_state.warming_hint")}</span>)}diff --git a/jarvis/ui/web/frontend/src/components/local-models/AssistantPanel.tsx b/jarvis/ui/web/frontend/src/components/local-models/AssistantPanel.tsxindex 1a29f27814..657719fde8 100644--- a/jarvis/ui/web/frontend/src/components/local-models/AssistantPanel.tsx+++ b/jarvis/ui/web/frontend/src/components/local-models/AssistantPanel.tsx@@ -428,10 +428,10 @@ export function AssistantPanel({disabled={!activeSessionId || busyNow}onClick={() => void send(text)}className={cn(- "rounded-full border border-border bg-card px-3.5 py-2 text-[13px] text-muted-foreground",- "transition-colors hover:border-primary/50 hover:text-foreground",+ "rounded-full border border-border bg-card px-3.5 py-2 text-meta text-muted-foreground",+ "transition-colors hover:border-border-strong hover:text-foreground","disabled:cursor-not-allowed disabled:opacity-50",- "focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",)}>{text}@@ -447,9 +447,9 @@ export function AssistantPanel({type="button"onClick={() => setShowEarlier((v) => !v)}className={cn(- "mx-auto inline-flex items-center gap-1.5 rounded-full border border-border bg-card/60 px-3 py-1",+ "mx-auto inline-flex items-center gap-1.5 rounded-full border border-border bg-card px-3 py-1","text-[11.5px] text-muted-foreground hover:text-foreground",- "focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",)}data-testid="assistant-earlier">@@ -492,7 +492,7 @@ export function AssistantPanel({className={cn("mt-0.5 flex h-7 w-7 shrink-0 items-center justify-center rounded-full",live- ? "animate-pulse bg-primary/15 text-primary"+ ? "animate-pulse bg-secondary text-foreground-strong": "bg-muted text-muted-foreground",)}>@@ -502,7 +502,7 @@ export function AssistantPanel({<AssistantSteps blocks={item.blocks} live={live} onDecide={onDecide} />{answer && (<div- className="flex flex-col gap-3 text-[15px] leading-[1.7] text-foreground"+ className="flex flex-col gap-3 text-title text-foreground"data-testid="assistant-answer">{answer.split(/\n{2,}/).map((para, k) => (@@ -540,12 +540,12 @@ export function AssistantPanel({</div>{/* ── composer ───────────────────────────────────────────────────── */}- <div className="shrink-0 border-t border-border/70 bg-card px-5 py-3">+ <div className="shrink-0 border-t border-border bg-card px-5 py-3"><div className="mx-auto w-full max-w-[46rem]"><formclassName={cn("flex items-end gap-2 rounded-2xl border border-border bg-background px-2.5 py-2",- "transition-colors focus-within:border-primary/60",+ "transition-colors focus-within:border-border-strong",!activeSessionId && "opacity-60",)}onSubmit={(e) => {@@ -573,7 +573,7 @@ export function AssistantPanel({data-testid="assistant-composer"className={cn("max-h-40 min-h-[1.75rem] flex-1 resize-none bg-transparent px-1.5 py-1 text-[14.5px] leading-relaxed text-foreground",- "placeholder:text-muted-foreground focus:outline-none disabled:cursor-not-allowed",+ "placeholder:text-faint-foreground focus:outline-none disabled:cursor-not-allowed",)}/><button@@ -581,23 +581,23 @@ export function AssistantPanel({aria-label={t("local_models.assistant.send")}disabled={!activeSessionId || !draft.trim() || busy || running}className={cn(- "flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-foreground/70 text-primary-foreground",+ "flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-primary text-primary-foreground","transition-opacity hover:opacity-90 disabled:opacity-30",- "focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",)}><Send className="h-3.5 w-3.5" /></button></form><div className="mt-1.5 flex items-center justify-between gap-3 px-1">- <span className="text-[11px] text-muted-foreground/70">+ <span className="text-micro text-muted-foreground">{t("local_models.assistant.composer_hint")}</span>{onOpenServerLog && (<buttontype="button"onClick={onOpenServerLog}- className="text-[11px] text-muted-foreground/70 underline-offset-4 hover:text-foreground hover:underline"+ className="text-micro text-muted-foreground underline-offset-4 hover:text-foreground hover:underline"data-testid="assistant-open-server-log">{t("local_models.assistant.open_server_log")}@@ -630,9 +630,9 @@ function ChipButton({className={cn("inline-flex items-center gap-1.5 rounded-full px-3 py-1.5 text-[12.5px] font-medium","transition-colors disabled:cursor-not-allowed disabled:opacity-45",- "focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",primary- ? "bg-foreground/70 text-primary-foreground hover:opacity-90"+ ? "bg-primary text-primary-foreground hover:opacity-90": "border border-border text-muted-foreground hover:text-foreground",)}>diff --git a/jarvis/ui/web/frontend/src/components/local-models/AssistantSteps.tsx b/jarvis/ui/web/frontend/src/components/local-models/AssistantSteps.tsxindex 4fbe066633..a7753766e3 100644--- a/jarvis/ui/web/frontend/src/components/local-models/AssistantSteps.tsx+++ b/jarvis/ui/web/frontend/src/components/local-models/AssistantSteps.tsx@@ -75,7 +75,7 @@ function toneOf(block: TurnBlock): Tone {}function Mark({ tone }: { tone: Tone }) {- if (tone === "run") return <Loader2 className="h-3 w-3 animate-spin text-primary" />;+ if (tone === "run") return <Loader2 className="h-3 w-3 animate-spin text-muted-foreground" />;if (tone === "fail") return <X className="h-3 w-3 text-destructive" />;if (tone === "ask")return <span className="h-1.5 w-1.5 rounded-full bg-foreground" />;@@ -106,14 +106,14 @@ function StepRow({</span><spanclassName={cn(- "text-[13px] leading-5",+ "text-meta ",tone === "fail" ? "text-destructive" : "text-foreground/90",)}>{label}</span>{meta && (- <span className="font-mono text-[10.5px] tabular-nums text-muted-foreground/70">+ <span className="font-mono text-[10.5px] tabular-nums text-muted-foreground">{meta}</span>)}@@ -122,9 +122,9 @@ function StepRow({type="button"onClick={() => setOpen((v) => !v)}className={cn(- "ml-auto shrink-0 rounded px-1 text-[10.5px] uppercase tracking-[0.08em] text-muted-foreground/0",+ "ml-auto shrink-0 rounded px-1 text-[10.5px] text-muted-foreground","transition-colors group-hover/step:text-muted-foreground hover:!text-foreground",- "focus-visible:text-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",+ "focus-visible:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",open && "!text-muted-foreground",)}>@@ -133,7 +133,7 @@ function StepRow({)}</div>{open && hasDetail && (- <pre className="ml-6 mt-1.5 max-h-56 overflow-auto rounded-md border border-border/70 bg-muted/40 p-2.5 font-mono text-[11px] leading-relaxed text-muted-foreground">+ <pre className="ml-6 mt-1.5 max-h-56 overflow-auto rounded-md border border-border bg-muted p-2.5 font-mono text-micro text-muted-foreground">{detail}</pre>)}@@ -174,20 +174,20 @@ function ToolStep({return (<StepRow tone={tone} label={label} meta={seconds(block.durationMs)} detail={detail}>{tone === "ask" && block.approval && onDecide && (- <div className="ml-6 mt-2 flex flex-wrap items-center gap-3 rounded-lg border border-foreground/40 bg-foreground/[0.07] px-3 py-2">- <span className="text-[13px] text-foreground">{block.approval.summary}</span>+ <div className="ml-6 mt-2 flex flex-wrap items-center gap-3 rounded-lg bg-secondary px-3 py-2">+ <span className="text-meta text-foreground">{block.approval.summary}</span><div className="ml-auto flex gap-1.5"><buttontype="button"onClick={() => onDecide(block.approval!.approvalId, "allow")}- className="rounded-md bg-foreground/70 px-2.5 py-1 text-[12px] font-medium text-primary-foreground hover:opacity-90 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring"+ className="rounded-md bg-primary px-2.5 py-1 text-meta font-medium text-primary-foreground hover:opacity-90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring">{t("local_models.assistant.steps.allow")}</button><buttontype="button"onClick={() => onDecide(block.approval!.approvalId, "deny")}- className="rounded-md border border-border px-2.5 py-1 text-[12px] hover:bg-muted focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring"+ className="rounded-md border border-border px-2.5 py-1 text-meta hover:bg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring">{t("local_models.assistant.steps.deny")}</button>@@ -255,7 +255,7 @@ export function AssistantSteps({className={cn("-mx-1 inline-flex items-center gap-1.5 rounded-md px-1 py-0.5","text-[12.5px] text-muted-foreground",- "focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",!pinned && "hover:text-foreground",)}>@@ -266,11 +266,11 @@ export function AssistantSteps({pinned && "hidden",)}/>- {live && <Loader2 className="h-3 w-3 shrink-0 animate-spin text-primary" />}+ {live && <Loader2 className="h-3 w-3 shrink-0 animate-spin text-muted-foreground" />}<span>{live ? t("local_models.assistant.steps.working") : summary}</span></button>{open && (- <ul className="mt-2 flex flex-col gap-2 border-l border-border/70 pl-3.5">+ <ul className="mt-2 flex flex-col gap-2 border-l border-border pl-3.5">{steps.map((block) =>block.kind === "tool" ? (<ToolStep key={block.callId} block={block} onDecide={onDecide} />diff --git a/jarvis/ui/web/frontend/src/components/local-models/SetupProposalCard.tsx b/jarvis/ui/web/frontend/src/components/local-models/SetupProposalCard.tsxindex 306fa10961..bf46fd431c 100644--- a/jarvis/ui/web/frontend/src/components/local-models/SetupProposalCard.tsx+++ b/jarvis/ui/web/frontend/src/components/local-models/SetupProposalCard.tsx@@ -134,7 +134,7 @@ export function SetupProposalCard({<ProvenBadge proven={step.proven} /></span>{(step.model || size || step.fit) && (- <span className="flex flex-wrap gap-x-3 font-mono text-[12px] text-muted-foreground">+ <span className="flex flex-wrap gap-x-3 font-mono text-meta text-muted-foreground">{step.model && <span>{step.model}</span>}{size && <span>{size}</span>}{step.fit && <span>{step.fit}</span>}@@ -160,7 +160,7 @@ export function SetupProposalCard({className="flex items-center gap-2 text-sm text-muted-foreground"data-testid="proposal-confirmed">- <Check className="h-4 w-4 text-primary" />+ <Check className="h-4 w-4 text-muted-foreground" />{fill(t("local_models.assistant.proposal_confirmed"), { hash })}</p>) : (diff --git a/jarvis/ui/web/frontend/src/components/marketplace/PublishIdentity.tsx b/jarvis/ui/web/frontend/src/components/marketplace/PublishIdentity.tsxindex aace81fa70..a072499f99 100644--- a/jarvis/ui/web/frontend/src/components/marketplace/PublishIdentity.tsx+++ b/jarvis/ui/web/frontend/src/components/marketplace/PublishIdentity.tsx@@ -202,7 +202,7 @@ export function PublisherAvatar({style={{ width: size, height: size }}aria-hidden>- <span className="text-[11px] font-bold">{initial}</span>+ <span className="text-micro font-bold">{initial}</span>{url && !failed && (<imgsrc={url}@@ -239,14 +239,14 @@ function DeviceCodeTicket({const verifyUrl = flow.verification_uri ?? GITHUB_DEVICE_URL;return (<div- className="relative isolate overflow-hidden rounded-2xl border border-primary/30 bg-gradient-to-br from-primary/10 via-card to-card p-5"+ className="relative isolate overflow-hidden rounded-2xl border border-border-strong bg-gradient-to-br from-primary/10 via-card to-card p-5"data-testid="device-code-ticket"><divaria-hidden- className="pointer-events-none absolute -z-10 -right-16 -top-16 h-48 w-48 rounded-full bg-primary/15 blur-3xl"+ className="pointer-events-none absolute -z-10 -right-16 -top-16 h-48 w-48 rounded-full bg-secondary blur-3xl"/>- <p className="text-[11px] font-semibold uppercase tracking-[0.18em] text-muted-foreground">+ <p className="text-micro font-semibold text-muted-foreground">{t("marketplace.identity_code_label")}</p><div className="mt-2 flex flex-wrap items-center gap-3">@@ -268,11 +268,11 @@ function DeviceCodeTicket({onClick={async () => {if (await robustCopy(flow.user_code)) setCopied(true);}}- className="grid h-9 w-9 place-items-center rounded-lg border border-border bg-background/60 text-muted-foreground transition-colors hover:bg-secondary hover:text-foreground"+ className="grid h-9 w-9 place-items-center rounded-lg border border-border bg-background text-muted-foreground transition-colors hover:bg-secondary hover:text-foreground"title={copied ? t("marketplace.identity_copied") : t("marketplace.identity_copy_code")}aria-label={t("marketplace.identity_copy_code")}>- {copied ? <Check className="h-4 w-4 text-primary" /> : <Copy className="h-4 w-4" />}+ {copied ? <Check className="h-4 w-4 text-muted-foreground" /> : <Copy className="h-4 w-4" />}</button></div><p className="mt-3 text-xs leading-relaxed text-muted-foreground">@@ -287,10 +287,10 @@ function DeviceCodeTicket({<Button size="sm" variant="ghost" onClick={onCancel}>{t("marketplace.identity_cancel")}</Button>- <span className="ml-auto flex items-center gap-2 text-[11px] text-muted-foreground">+ <span className="ml-auto flex items-center gap-2 text-micro text-muted-foreground"><span className="relative flex h-2 w-2">- <span className="absolute inline-flex h-full w-full animate-ping rounded-full bg-primary/60" />- <span className="relative inline-flex h-2 w-2 rounded-full bg-foreground/70" />+ <span className="absolute inline-flex h-full w-full animate-ping rounded-full bg-secondary" />+ <span className="relative inline-flex h-2 w-2 rounded-full bg-secondary" /></span>{t("marketplace.identity_waiting")}</span>@@ -337,7 +337,7 @@ export function GithubSignInDialog({ onClose }: { onClose: () => void }) {aria-modal="true"aria-label={t("marketplace.identity_dialog_title")}data-testid="github-signin-dialog"- className="fixed inset-0 z-[70] flex items-center justify-center bg-background/80 p-6 backdrop-blur-sm"+ className="fixed inset-0 z-[70] flex items-center justify-center bg-background p-6 backdrop-blur-sm"><div className="relative w-full max-w-lg overflow-hidden rounded-2xl border border-border bg-popover text-popover-foreground"><header className="flex items-start gap-3 border-b border-border px-5 py-4">@@ -364,7 +364,7 @@ export function GithubSignInDialog({ onClose }: { onClose: () => void }) {<div className="space-y-4 px-5 py-5">{signedIn ? (- <div className="flex items-center gap-3 rounded-xl border border-primary/30 bg-primary/5 p-4">+ <div className="flex items-center gap-3 rounded-xl bg-secondary p-4"><PublisherAvatarlogin={identity.data?.login}url={identity.data?.avatar_url}@@ -380,12 +380,12 @@ export function GithubSignInDialog({ onClose }: { onClose: () => void }) {{t("marketplace.identity_signed_in_hint")}</p></div>- <Check className="h-5 w-5 text-primary" />+ <Check className="h-5 w-5 text-muted-foreground" /></div>) : signIn.flow ? (<DeviceCodeTicket flow={signIn.flow} onCancel={signIn.cancel} />) : (- <div className="flex items-center gap-3 rounded-xl border border-border bg-secondary/30 p-4 text-sm text-muted-foreground">+ <div className="flex items-center gap-3 rounded-xl bg-secondary p-4 text-sm text-muted-foreground">{signIn.starting || identity.isLoading ? (<Loader2 className="h-4 w-4 animate-spin" />) : (@@ -399,23 +399,23 @@ export function GithubSignInDialog({ onClose }: { onClose: () => void }) {)}{signIn.error && (- <p className="flex items-start gap-2 rounded-lg border border-destructive/40 bg-destructive/5 px-3 py-2 text-xs text-destructive">+ <p className="flex items-start gap-2 rounded-lg bg-secondary px-3 py-2 text-xs text-destructive"><AlertTriangle className="mt-0.5 h-3.5 w-3.5 shrink-0" />{signIn.error}</p>)}<ul className="grid gap-2 text-xs text-muted-foreground sm:grid-cols-3">- <li className="flex items-start gap-2 rounded-lg border border-border/70 bg-background/50 p-2.5">- <ShieldCheck className="mt-0.5 h-3.5 w-3.5 shrink-0 text-primary" />+ <li className="flex items-start gap-2 rounded-lg border border-border bg-background p-2.5">+ <ShieldCheck className="mt-0.5 h-3.5 w-3.5 shrink-0 text-muted-foreground" />{t("marketplace.identity_fact_scope")}</li>- <li className="flex items-start gap-2 rounded-lg border border-border/70 bg-background/50 p-2.5">- <Store className="mt-0.5 h-3.5 w-3.5 shrink-0 text-primary" />+ <li className="flex items-start gap-2 rounded-lg border border-border bg-background p-2.5">+ <Store className="mt-0.5 h-3.5 w-3.5 shrink-0 text-muted-foreground" />{t("marketplace.identity_fact_name")}</li>- <li className="flex items-start gap-2 rounded-lg border border-border/70 bg-background/50 p-2.5">- <LogOut className="mt-0.5 h-3.5 w-3.5 shrink-0 text-primary" />+ <li className="flex items-start gap-2 rounded-lg border border-border bg-background p-2.5">+ <LogOut className="mt-0.5 h-3.5 w-3.5 shrink-0 text-muted-foreground" />{t("marketplace.identity_fact_keyring")}</li></ul>@@ -498,8 +498,8 @@ export function PublisherChip({aria-expanded={open}data-testid="publisher-chip"className={cn(- "flex h-8 items-center gap-2 rounded-full border border-border bg-card/70 pl-1 pr-2.5",- "text-xs font-medium text-foreground backdrop-blur transition-colors hover:border-primary/50",+ "flex h-8 items-center gap-2 rounded-full border border-border bg-card pl-1 pr-2.5",+ "text-xs font-medium text-foreground backdrop-blur transition-colors hover:border-border-strong",)}><PublisherAvatar login={data.login} url={data.avatar_url} size={24} />@@ -513,7 +513,7 @@ export function PublisherChip({><div className="px-2.5 py-2"><p className="truncate text-xs font-semibold text-foreground">@{data.login}</p>- <p className="text-[11px] text-muted-foreground">+ <p className="text-micro text-muted-foreground">{t("marketplace.identity_menu_hint")}</p></div>@@ -573,7 +573,7 @@ export function PublishIdentityCard({const signedIn = identity?.signed_in === true;return (<section- className={cn(!compact && "rounded-xl border border-border bg-card/40 p-4")}+ className={cn(!compact && "rounded-xl border border-border bg-card p-4")}data-testid="publish-identity"data-signed-in={signedIn ? "yes" : "no"}>@@ -586,7 +586,7 @@ export function PublishIdentityCard({</span>)}<div className="min-w-0 flex-1">- <p className="text-xs font-semibold uppercase tracking-wider text-foreground">+ <p className="text-xs font-semibold text-foreground">{t("marketplace.identity_label")}</p><p className="text-xs text-muted-foreground">@@ -601,7 +601,7 @@ export function PublishIdentityCard({)}</p>{identity?.unreachable && (- <p className="mt-1 text-[11px] text-muted-foreground">+ <p className="mt-1 text-micro text-muted-foreground">{t("marketplace.identity_unreachable")}</p>)}@@ -636,7 +636,7 @@ export function PublishIdentityCard({</div>)}{signIn.error && (- <p className="mt-2 flex items-start gap-2 rounded-md border border-destructive/40 bg-destructive/5 px-2 py-1.5 text-xs text-destructive">+ <p className="mt-2 flex items-start gap-2 rounded-md bg-secondary px-2 py-1.5 text-xs text-destructive"><AlertTriangle className="mt-0.5 h-3.5 w-3.5 shrink-0" />{signIn.error}</p>diff --git a/jarvis/ui/web/frontend/src/components/marketplace/PublishStudio.tsx b/jarvis/ui/web/frontend/src/components/marketplace/PublishStudio.tsxindex edb5346e23..516778de21 100644--- a/jarvis/ui/web/frontend/src/components/marketplace/PublishStudio.tsx+++ b/jarvis/ui/web/frontend/src/components/marketplace/PublishStudio.tsx@@ -352,7 +352,7 @@ export function PublishStudio({aria-modal="true"aria-label={t("marketplace.studio_title")}data-testid="publish-studio"- className="fixed inset-0 z-[60] flex bg-background/80 backdrop-blur-md"+ className="fixed inset-0 z-[60] flex bg-background backdrop-blur-md"><buttontype="button"@@ -362,12 +362,12 @@ export function PublishStudio({/><div className="relative m-auto flex h-[min(92vh,56rem)] w-[min(96vw,72rem)] overflow-hidden rounded-2xl border border-border bg-popover text-popover-foreground">{/* Rail */}- <aside className="relative isolate hidden w-60 shrink-0 flex-col border-r border-border bg-secondary/30 p-5 md:flex">+ <aside className="relative isolate hidden w-60 shrink-0 flex-col border-r bg-secondary p-5 md:flex"><divaria-hidden- className="pointer-events-none absolute -z-10 -left-20 top-0 h-64 w-64 rounded-full bg-primary/10 blur-3xl"+ className="pointer-events-none absolute -z-10 -left-20 top-0 h-64 w-64 rounded-full bg-secondary blur-3xl"/>- <p className="text-[11px] font-semibold uppercase tracking-[0.18em] text-muted-foreground">+ <p className="text-micro font-semibold text-muted-foreground">{t("marketplace.studio_eyebrow")}</p><h2 className="mt-1 font-display text-lg font-semibold tracking-tight text-foreground">@@ -379,7 +379,7 @@ export function PublishStudio({<Station n={3} active={station === 3} done={station > 3} label={t("marketplace.studio_station_check")} /><Station n={4} active={station === 4} done={false} label={t("marketplace.studio_station_live")} /></ol>- <div className="mt-auto space-y-2 text-[11px] leading-relaxed text-muted-foreground">+ <div className="mt-auto space-y-2 text-micro text-muted-foreground"><p>{t("marketplace.studio_rail_note_public")}</p><p>{t("marketplace.studio_rail_note_rules")}</p></div>@@ -404,7 +404,7 @@ export function PublishStudio({</p></div>{signedIn && identity.data && (- <span className="hidden items-center gap-2 rounded-full border border-border bg-background/60 py-0.5 pl-0.5 pr-2.5 text-[11px] text-foreground sm:flex">+ <span className="hidden items-center gap-2 rounded-full border border-border bg-background py-0.5 pl-0.5 pr-2.5 text-micro text-foreground sm:flex"><PublisherAvatar login={identity.data.login} url={identity.data.avatar_url} size={20} />@{identity.data.login}</span>@@ -494,17 +494,17 @@ function Station({<liclassName={cn("flex items-center gap-3 rounded-lg px-2.5 py-2 text-sm transition-colors",- active ? "bg-background/70 text-foreground" : "text-muted-foreground",+ active ? "bg-background text-foreground" : "text-muted-foreground",)}data-active={active ? "yes" : "no"}><spanclassName={cn(- "grid h-6 w-6 shrink-0 place-items-center rounded-full border text-[11px] font-bold",+ "grid h-6 w-6 shrink-0 place-items-center rounded-full border text-micro font-bold",done- ? "border-primary bg-foreground/70 text-primary-foreground"+ ? "border-border-strong bg-primary text-primary-foreground": active- ? "border-primary text-primary"+ ? "border-border-strong text-foreground-strong": "border-border text-muted-foreground",)}>@@ -564,10 +564,10 @@ function SourcePicker({return (<section className="space-y-4"><div className="flex flex-wrap items-baseline gap-2">- <span className="text-xs font-semibold uppercase tracking-wider text-foreground">+ <span className="text-xs font-semibold text-foreground">{t("marketplace.studio_source_label")}</span>- <span className="text-[11px] text-muted-foreground">+ <span className="text-micro text-muted-foreground">{t("marketplace.studio_source_hint")}</span></div>@@ -598,15 +598,15 @@ function SourcePicker({"group relative isolate flex min-h-44 cursor-pointer flex-col justify-end overflow-hidden rounded-2xl border border-dashed p-5 text-left transition-colors md:row-span-2","focus:outline-none focus-visible:ring-2 focus-visible:ring-ring",dragOver- ? "border-primary bg-primary/10"- : "border-border bg-gradient-to-br from-primary/10 via-card to-card hover:border-primary/50",+ ? "bg-secondary"+ : "border-border bg-gradient-to-br from-primary/10 via-card to-card hover:border-border-strong",)}><divaria-hidden- className="pointer-events-none absolute -z-10 -right-10 -top-10 h-40 w-40 rounded-full bg-primary/15 blur-3xl transition-transform duration-500 group-hover:scale-125"+ className="pointer-events-none absolute -z-10 -right-10 -top-10 h-40 w-40 rounded-full bg-secondary blur-3xl transition-transform duration-500 group-hover:scale-125"/>- <span className="grid h-11 w-11 place-items-center rounded-xl bg-foreground/70 text-primary-foreground">+ <span className="grid h-11 w-11 place-items-center rounded-xl bg-primary text-primary-foreground">{busy ? <Loader2 className="h-5 w-5 animate-spin" /> : <FolderUp className="h-5 w-5" />}</span><p className="mt-4 font-display text-base font-semibold tracking-tight text-foreground">@@ -618,7 +618,7 @@ function SourcePicker({<buttontype="button"data-testid="studio-door-skill-file"- className="mt-3 inline-flex w-fit items-center gap-1.5 text-xs font-medium text-primary underline-offset-4 hover:underline focus:outline-none focus-visible:ring-2 focus-visible:ring-ring"+ className="mt-3 inline-flex w-fit items-center gap-1.5 text-xs font-medium text-foreground-strong underline-offset-4 hover:underline focus:outline-none focus-visible:ring-2 focus-visible:ring-ring"onClick={(e) => {// The tile itself opens the folder picker — this link must not.e.stopPropagation();@@ -674,7 +674,7 @@ function SourcePicker({testId="studio-door-github"/>- <div className="flex flex-col rounded-2xl border border-border bg-card/50 p-4">+ <div className="flex flex-col rounded-2xl border border-border bg-card p-4"><span className="grid h-9 w-9 place-items-center rounded-lg bg-secondary text-foreground"><PencilLine className="h-4 w-4" /></span>@@ -709,7 +709,7 @@ function SourcePicker({</div>{dropError && (- <p className="flex items-start gap-2 rounded-md border border-destructive/40 bg-destructive/5 px-2 py-1.5 text-xs text-destructive">+ <p className="flex items-start gap-2 rounded-md bg-secondary px-2 py-1.5 text-xs text-destructive"><AlertTriangle className="mt-0.5 h-3.5 w-3.5 shrink-0" />{dropError}</p>@@ -741,8 +741,8 @@ function Door({onClick={onClick}data-testid={testId}className={cn(- "flex flex-col rounded-2xl border border-border bg-card/50 p-4 text-left transition-colors",- "hover:border-primary/50 hover:bg-secondary/40 focus:outline-none focus-visible:ring-2 focus-visible:ring-ring",+ "flex flex-col rounded-2xl border border-border bg-card p-4 text-left transition-colors",+ "hover:border-border-strong hover:bg-secondary focus:outline-none focus-visible:ring-2 focus-visible:ring-ring",className,)}>@@ -760,14 +760,14 @@ function Door({function HowPublishingWorks({ t }: { t: Translate }) {const [open, setOpen] = useState(false);return (- <section className="rounded-2xl border border-border bg-card/40 p-4">- <p className="text-xs font-semibold uppercase tracking-wider text-foreground">+ <section className="rounded-2xl border border-border bg-card p-4">+ <p className="text-xs font-semibold text-foreground">{t("marketplace.studio_how_title")}</p><ol className="mt-2 grid gap-2 text-xs text-muted-foreground sm:grid-cols-4">{[1, 2, 3, 4].map((n) => (<li key={n} className="flex gap-2">- <span className="grid h-5 w-5 shrink-0 place-items-center rounded-full border border-primary/50 text-[10px] font-bold text-primary">+ <span className="grid h-5 w-5 shrink-0 place-items-center rounded-full border border-border-strong text-micro font-bold text-muted-foreground">{n}</span>{t(`marketplace.studio_how_step_${n}`)}@@ -777,13 +777,13 @@ function HowPublishingWorks({ t }: { t: Translate }) {<buttontype="button"onClick={() => setOpen((o) => !o)}- className="mt-3 text-[11px] font-medium text-primary hover:underline"+ className="mt-3 text-micro font-medium text-foreground-strong hover:underline">{open ? t("marketplace.studio_how_hide_layout") : t("marketplace.studio_how_show_layout")}</button>{open && (<div className="mt-2 overflow-x-auto">- <pre className="rounded-md border border-border bg-background p-3 font-mono text-[11px] leading-relaxed text-foreground">+ <pre className="rounded-md border border-border bg-background p-3 font-mono text-micro text-foreground">{`my-plugin/├── plugin.json ← required: name, description, version├── mcp.json ← the server your plugin talks to (optional)@@ -795,7 +795,7 @@ function HowPublishingWorks({ t }: { t: Translate }) {my-skill/└── SKILL.md ← a standalone skill: one file, YAML frontmatter first`}</pre>- <p className="mt-2 text-[11px] text-muted-foreground">+ <p className="mt-2 text-micro text-muted-foreground">{t("marketplace.studio_how_layout_note")}</p></div>@@ -918,8 +918,8 @@ function GithubImportPanel({};return (- <section className="space-y-4 rounded-2xl border border-border bg-card/40 p-4">- <p className="text-[11px] text-muted-foreground">{t("marketplace.studio_github_note")}</p>+ <section className="space-y-4 rounded-2xl border border-border bg-card p-4">+ <p className="text-micro text-muted-foreground">{t("marketplace.studio_github_note")}</p><div className="flex flex-wrap items-end gap-2"><div className="min-w-48 flex-1">@@ -974,7 +974,7 @@ function GithubImportPanel({</div>{error && (- <p className="flex items-start gap-2 rounded-md border border-destructive/40 bg-destructive/5 px-2 py-1.5 text-xs text-destructive">+ <p className="flex items-start gap-2 rounded-md bg-secondary px-2 py-1.5 text-xs text-destructive"><AlertTriangle className="mt-0.5 h-3.5 w-3.5 shrink-0" />{error}</p>@@ -992,7 +992,7 @@ function GithubImportPanel({}}className={cn("flex w-full items-baseline gap-2 rounded-md border border-transparent px-2 py-1.5 text-left transition-colors",- "hover:border-border hover:bg-muted/40 focus:outline-none focus-visible:ring-2 focus-visible:ring-ring",+ "hover:border-border hover:bg-muted focus:outline-none focus-visible:ring-2 focus-visible:ring-ring",)}><span className="font-mono text-xs text-foreground">{r.full_name}</span>@@ -1000,7 +1000,7 @@ function GithubImportPanel({<Loader2 className="h-3 w-3 animate-spin text-muted-foreground" />)}{r.description && (- <span className="truncate text-[11px] text-muted-foreground">+ <span className="truncate text-micro text-muted-foreground">{r.description}</span>)}@@ -1026,7 +1026,7 @@ function GithubImportPanel({setTruncated(false);setError(null);}}- className="text-[11px] font-medium text-primary hover:underline"+ className="text-micro font-medium text-foreground-strong hover:underline">← {t("marketplace.studio_github_all_repos")}</button>@@ -1038,7 +1038,7 @@ function GithubImportPanel({)}</div>{truncated && candidates && candidates.length > 0 && (- <p className="flex items-start gap-1.5 text-[11px] text-muted-foreground">+ <p className="flex items-start gap-1.5 text-micro text-muted-foreground"><AlertTriangle className="mt-0.5 h-3 w-3 shrink-0" />{t("marketplace.studio_github_truncated")}</p>@@ -1051,15 +1051,15 @@ function GithubImportPanel({className="flex flex-wrap items-center gap-2 rounded-md border border-border bg-background px-2.5 py-2">{c.kind === "plugin" ? (- <Plug className="h-3.5 w-3.5 text-primary" />+ <Plug className="h-3.5 w-3.5 text-muted-foreground" />) : (- <FileText className="h-3.5 w-3.5 text-primary" />+ <FileText className="h-3.5 w-3.5 text-muted-foreground" />)}<span className="text-xs font-medium text-foreground">{c.kind === "plugin" ? t("marketplace.kind_plugin") : t("marketplace.kind_skill")}</span>- <span className="font-mono text-[11px] text-muted-foreground">/{c.dir || ""}</span>- <span className="text-[11px] text-muted-foreground">+ <span className="font-mono text-micro text-muted-foreground">/{c.dir || ""}</span>+ <span className="text-micro text-muted-foreground">{fill(t("marketplace.studio_github_files"), { count: c.paths.length })}</span><Button@@ -1143,11 +1143,11 @@ function WallpaperLane({"flex cursor-pointer items-center gap-4 rounded-2xl border border-dashed p-4 text-left transition-colors","focus:outline-none focus-visible:ring-2 focus-visible:ring-ring",dragOver- ? "border-primary bg-primary/10"- : "border-border bg-gradient-to-br from-primary/10 via-card to-card hover:border-primary/50",+ ? "bg-secondary"+ : "border-border bg-gradient-to-br from-primary/10 via-card to-card hover:border-border-strong",)}>- <span className="grid h-11 w-11 shrink-0 place-items-center rounded-xl bg-foreground/70 text-primary-foreground">+ <span className="grid h-11 w-11 shrink-0 place-items-center rounded-xl bg-primary text-primary-foreground">{add.isPending ? (<Loader2 className="h-5 w-5 animate-spin" />) : (@@ -1175,16 +1175,16 @@ function WallpaperLane({/></div>{add.error && (- <p className="flex items-start gap-2 rounded-md border border-destructive/40 bg-destructive/5 px-2 py-1.5 text-xs text-destructive">+ <p className="flex items-start gap-2 rounded-md bg-secondary px-2 py-1.5 text-xs text-destructive"><AlertTriangle className="mt-0.5 h-3.5 w-3.5 shrink-0" />{add.error.message}</p>)}<div className="flex flex-wrap items-baseline gap-2">- <span className="text-xs font-semibold uppercase tracking-wider text-foreground">+ <span className="text-xs font-semibold text-foreground">{t("marketplace.studio_wallpapers_label")}</span>- <span className="text-[11px] text-muted-foreground">+ <span className="text-micro text-muted-foreground">{t("marketplace.studio_wallpapers_hint")}</span></div>@@ -1205,7 +1205,7 @@ function WallpaperLane({key={entry.id}type="button"onClick={() => setShareItem(entry)}- className="group relative aspect-[16/10] overflow-hidden rounded-xl border border-border bg-secondary/40 text-left transition-colors hover:border-primary/60 focus:outline-none focus-visible:ring-2 focus-visible:ring-ring"+ className="group relative aspect-[16/10] overflow-hidden rounded-xl bg-secondary text-left transition-colors hover:border-border-strong focus:outline-none focus-visible:ring-2 focus-visible:ring-ring"><imgsrc={thumbUrlFor(entry)}@@ -1217,7 +1217,7 @@ function WallpaperLane({<span className="min-w-0 flex-1 truncate text-xs font-medium text-white">{entry.title}</span>- <span className="rounded-full bg-white/15 px-2 py-0.5 text-[10px] font-medium text-white backdrop-blur">+ <span className="rounded-full bg-white/15 px-2 py-0.5 text-micro font-medium text-white backdrop-blur">{t("marketplace.share_cta")}</span></span>@@ -1269,7 +1269,7 @@ function DraftForm({<div className="grid gap-5 lg:grid-cols-[minmax(0,1fr)_18rem]"><section className="space-y-4" data-testid="studio-form"><div className="flex flex-wrap items-center gap-2">- <span className="text-xs font-semibold uppercase tracking-wider text-foreground">+ <span className="text-xs font-semibold text-foreground">{t("marketplace.studio_form_label")}</span><div className="ml-auto flex items-center gap-1">@@ -1289,18 +1289,18 @@ function DraftForm({</div>{prefill && (- <div className="rounded-xl border border-primary/30 bg-primary/5 px-3 py-2">+ <div className="rounded-xl bg-secondary px-3 py-2"><p className="text-xs text-foreground">- <Check className="mr-1 inline h-3.5 w-3.5 text-primary" />+ <Check className="mr-1 inline h-3.5 w-3.5 text-muted-foreground" />{fill(t("marketplace.studio_prefilled_from"), { origin: prefill.origin })}</p>{prefill.files.length > 0 && (- <p className="mt-1 font-mono text-[11px] text-muted-foreground">+ <p className="mt-1 font-mono text-micro text-muted-foreground">{prefill.files.join(" · ")}</p>)}{prefill.warnings.map((w, i) => (- <p key={i} className="mt-1 flex items-start gap-1.5 text-[11px] text-muted-foreground">+ <p key={i} className="mt-1 flex items-start gap-1.5 text-micro text-muted-foreground"><AlertTriangle className="mt-0.5 h-3 w-3 shrink-0" />{w}</p>@@ -1384,7 +1384,7 @@ function DraftForm({<buttontype="button"onClick={() => set({ skill_md: SKILL_TEMPLATE })}- className="text-[11px] font-medium text-primary hover:underline"+ className="text-micro font-medium text-foreground-strong hover:underline">{t("marketplace.studio_insert_template")}</button>@@ -1437,7 +1437,7 @@ function DraftForm({errors={errorFor("skills")}>{draft.skills.length === 0 ? (- <p className="rounded-md border border-dashed border-border px-2.5 py-2 text-[11px] text-muted-foreground">+ <p className="rounded-md border border-dashed border-border px-2.5 py-2 text-micro text-muted-foreground">{t("marketplace.studio_f_skills_none")}</p>) : (@@ -1447,9 +1447,9 @@ function DraftForm({key={s.name}className="flex items-center gap-1.5 rounded-full border border-border bg-background px-2.5 py-1">- <FileText className="h-3 w-3 text-primary" />- <span className="font-mono text-[11px] text-foreground">{s.name}</span>- <span className="text-[10px] text-muted-foreground">+ <FileText className="h-3 w-3 text-muted-foreground" />+ <span className="font-mono text-micro text-foreground">{s.name}</span>+ <span className="text-micro text-muted-foreground">{Math.max(1, Math.round(s.skill_md.length / 1024))} KB</span><button@@ -1487,7 +1487,7 @@ function DraftForm({{generalErrors.map((e, i) => (<pkey={i}- className="flex items-start gap-2 rounded-md border border-destructive/40 bg-destructive/5 px-2 py-1.5 text-xs text-destructive"+ className="flex items-start gap-2 rounded-md bg-secondary px-2 py-1.5 text-xs text-destructive"><AlertTriangle className="mt-0.5 h-3.5 w-3.5 shrink-0" />{e.error}@@ -1495,15 +1495,15 @@ function DraftForm({))}{checked && errors.length === 0 && (<p- className="flex items-center gap-2 rounded-md border border-primary/40 bg-primary/5 px-3 py-2 text-xs text-foreground"+ className="flex items-center gap-2 rounded-md bg-secondary px-3 py-2 text-xs text-foreground"data-testid="studio-check-ok">- <Check className="h-3.5 w-3.5 text-primary" />+ <Check className="h-3.5 w-3.5 text-muted-foreground" />{t("marketplace.studio_check_ok")}</p>)}- <div className="flex flex-wrap items-center justify-end gap-2 border-t border-border/50 pt-3">+ <div className="flex flex-wrap items-center justify-end gap-2 border-t border-border pt-3"><Button size="sm" variant="ghost" onClick={onStartOver}><ArrowLeft className="mr-1.5 h-3.5 w-3.5" />{t("marketplace.studio_start_over")}@@ -1593,10 +1593,10 @@ function CardPreview({ draft, t }: { draft: Draft; t: Translate }) {return (<div data-testid="studio-card-preview">- <p className="mb-2 text-[11px] font-semibold uppercase tracking-wider text-muted-foreground">+ <p className="mb-2 text-micro font-semibold text-muted-foreground">{t("marketplace.studio_preview_label")}</p>- <div className="overflow-hidden rounded-2xl border border-border bg-card/70">+ <div className="overflow-hidden rounded-2xl border border-border bg-card"><div className="flex items-center gap-3 px-3.5 py-3"><div className="grid h-10 w-10 shrink-0 place-items-center rounded-lg bg-gradient-to-br from-primary/70 to-primary/30 text-sm font-semibold text-primary-foreground">{draft.kind === "skill" ? <Sparkles className="h-4 w-4" /> : preview.initial}@@ -1604,19 +1604,19 @@ function CardPreview({ draft, t }: { draft: Draft; t: Translate }) {<div className="min-w-0 flex-1"><div className="flex items-center gap-2"><span className="truncate text-sm font-semibold text-foreground">{preview.title}</span>- <span className="shrink-0 rounded-full border border-border px-1.5 py-px text-[9px] font-semibold uppercase tracking-wider text-muted-foreground">+ <span className="shrink-0 rounded-full border border-border px-1.5 py-px text-micro font-semibold text-muted-foreground">{draft.kind === "skill" ? t("marketplace.kind_skill") : t("marketplace.kind_plugin")}</span></div><p className="truncate text-xs text-muted-foreground">{preview.description}</p></div></div>- <div className="flex items-center justify-between border-t border-border/70 px-3.5 py-2 text-[10px] text-muted-foreground">+ <div className="flex items-center justify-between border-t border-border px-3.5 py-2 text-micro text-muted-foreground"><span className="truncate">{preview.detail || "—"}</span><span className="ml-2 shrink-0 tabular-nums">v{draft.version.trim() || "?"}</span></div></div>- <p className="mt-2 text-[11px] leading-relaxed text-muted-foreground">+ <p className="mt-2 text-micro text-muted-foreground">{t("marketplace.studio_preview_note")}</p></div>@@ -1626,7 +1626,7 @@ function CardPreview({ draft, t }: { draft: Draft; t: Translate }) {function inputCls(hasError: boolean): string {return cn("w-full rounded-lg border bg-background px-2.5 py-1.5 text-sm text-foreground",- "placeholder:text-muted-foreground/60 focus:outline-none focus:ring-1 focus:ring-ring",+ "placeholder:text-faint-foreground focus:outline-none focus:ring-2 focus:ring-ring",hasError ? "border-destructive/60" : "border-border",);}@@ -1652,10 +1652,10 @@ function Field({</div>{children}{hint && errors.length === 0 && (- <p className="mt-1 text-[11px] text-muted-foreground">{hint}</p>+ <p className="mt-1 text-micro text-muted-foreground">{hint}</p>)}{errors.map((e, i) => (- <p key={i} className="mt-1 text-[11px] text-destructive">+ <p key={i} className="mt-1 text-micro text-destructive">{e.error}</p>))}@@ -1682,8 +1682,8 @@ function KindButton({className={cn("inline-flex items-center gap-1.5 rounded-md border px-2.5 py-1 text-xs font-medium transition-colors",active- ? "border-primary/50 bg-primary/10 text-foreground"- : "border-border text-muted-foreground hover:border-primary/30 hover:text-foreground",+ ? "bg-secondary text-foreground"+ : "border-border text-muted-foreground hover:border-border-strong hover:text-foreground",)}>{icon}@@ -1752,16 +1752,16 @@ function PublishedCard({return (<div className="space-y-4" data-testid="studio-published">- <section className="relative isolate overflow-hidden rounded-2xl border border-primary/30 bg-gradient-to-br from-primary/15 via-card to-card p-5">+ <section className="relative isolate overflow-hidden rounded-2xl border border-border-strong bg-gradient-to-br from-primary/15 via-card to-card p-5"><divaria-hidden- className="pointer-events-none absolute -z-10 -right-16 -top-16 h-56 w-56 rounded-full bg-primary/20 blur-3xl"+ className="pointer-events-none absolute -z-10 -right-16 -top-16 h-56 w-56 rounded-full bg-secondary blur-3xl"/>- <p className="text-[11px] font-semibold uppercase tracking-[0.18em] text-muted-foreground">+ <p className="text-micro font-semibold text-muted-foreground">{t("marketplace.studio_done_eyebrow")}</p><p className="mt-1 flex items-center gap-2 font-display text-lg font-semibold tracking-tight text-foreground">- <Check className="h-5 w-5 text-primary" />+ <Check className="h-5 w-5 text-muted-foreground" />{result.name} <span className="text-muted-foreground">v{result.version}</span></p><p className="mt-2 max-w-xl text-xs leading-relaxed text-muted-foreground">@@ -1784,10 +1784,10 @@ function PublishedCard({</div></section>- <section className="space-y-4 rounded-2xl border border-border bg-card/40 p-4">+ <section className="space-y-4 rounded-2xl border border-border bg-card p-4">{live ? (<p className="flex items-center gap-2 text-sm text-foreground">- <Check className="h-4 w-4 text-primary" />+ <Check className="h-4 w-4 text-muted-foreground" />{fill(t("marketplace.studio_done_live"), { name: result.name, version: result.version })}</p>) : waitedOut ? (@@ -1795,8 +1795,8 @@ function PublishedCard({) : (<p className="flex items-center gap-2 text-xs text-muted-foreground"><span className="relative flex h-2 w-2">- <span className="absolute inline-flex h-full w-full animate-ping rounded-full bg-primary/60" />- <span className="relative inline-flex h-2 w-2 rounded-full bg-foreground/70" />+ <span className="absolute inline-flex h-full w-full animate-ping rounded-full bg-secondary" />+ <span className="relative inline-flex h-2 w-2 rounded-full bg-secondary" /></span>{t("marketplace.studio_done_watching")}</p>diff --git a/jarvis/ui/web/frontend/src/components/missions/GlobalKillButton.tsx b/jarvis/ui/web/frontend/src/components/missions/GlobalKillButton.tsxindex 3d3ca8833a..3c485fc3d5 100644--- a/jarvis/ui/web/frontend/src/components/missions/GlobalKillButton.tsx+++ b/jarvis/ui/web/frontend/src/components/missions/GlobalKillButton.tsx@@ -57,7 +57,7 @@ export function GlobalKillButton() {if (e.target === e.currentTarget) setOpen(false);}}>- <div className="card-outline mx-4 w-full max-w-md bg-card p-5">+ <div className="mx-4 w-full max-w-md rounded-lg bg-popover p-5 shadow-float"><div className="flex items-start gap-3"><div className="flex h-9 w-9 shrink-0 items-center justify-center rounded-md border border-destructive/40 bg-destructive/10"><AlertTriangle className="h-5 w-5 text-destructive" />diff --git a/jarvis/ui/web/frontend/src/components/providers/ProviderLogo.tsx b/jarvis/ui/web/frontend/src/components/providers/ProviderLogo.tsxindex e80bc6bd96..2d5db20ea3 100644--- a/jarvis/ui/web/frontend/src/components/providers/ProviderLogo.tsx+++ b/jarvis/ui/web/frontend/src/components/providers/ProviderLogo.tsx@@ -124,9 +124,16 @@ export function ProviderLogo({className={cn(// One neutral tile for every mark, so a row of providers reads as one// list rather than a row of differently shaped app icons.+ //+ // The tile is a LIFT surface with no rim. It used to be a --background+ // fill inside a --border outline: the room itself, which on a card is+ // a child darker than its parent, and which the wallpaper path+ // converges to transparent — between them, that is why a logo tile+ // could render as an empty outline. A nested tile steps UP, and once+ // it has a real fill the outline is what was standing in for one.small- ? "inline-flex h-4 w-4 shrink-0 items-center justify-center overflow-hidden rounded-sm"- : "inline-flex h-9 w-9 shrink-0 items-center justify-center overflow-hidden rounded-surface border border-border/80 bg-background/70",+ ? "inline-flex h-4 w-4 shrink-0 items-center justify-center overflow-hidden rounded-full"+ : "inline-flex h-9 w-9 shrink-0 items-center justify-center overflow-hidden rounded-md bg-secondary",className,)}>@@ -154,7 +161,12 @@ export function ProviderLogo({) : local === "device" ? (<HardDrive className={cn("text-muted-foreground", glyphClass)} />) : (- <span className={cn("font-display font-semibold text-muted-foreground", small ? "text-[10px]" : "text-xs")}>+ <span+ className={cn(+ "font-display font-semibold text-muted-foreground",+ small ? "text-micro" : "text-meta",+ )}+ >{monogram}</span>)}diff --git a/jarvis/ui/web/frontend/src/components/providers/ProviderTierSection.tsx b/jarvis/ui/web/frontend/src/components/providers/ProviderTierSection.tsxindex 8aafda5976..e3fbab7b70 100644--- a/jarvis/ui/web/frontend/src/components/providers/ProviderTierSection.tsx+++ b/jarvis/ui/web/frontend/src/components/providers/ProviderTierSection.tsx@@ -306,11 +306,11 @@ export function EngineModeSwitch({<span data-testid="voice-engine-pick-one-hint" className="sr-only">{pickOneHint}</span>- <div className="relative grid min-w-48 grid-cols-2 rounded-surface border border-border bg-card/40 p-0.5">+ <div className="relative grid min-w-48 grid-cols-2 rounded-surface border border-border bg-card p-0.5"><spandata-testid="voice-engine-selection-thumb"aria-hidden="true"- className="absolute inset-y-0.5 left-0.5 w-[calc(50%-0.125rem)] rounded-control bg-foreground/70 transition-transform duration-200 ease-out motion-reduce:transition-none"+ className="absolute inset-y-0.5 left-0.5 w-[calc(50%-0.125rem)] rounded-control bg-secondary transition-transform duration-200 ease-out motion-reduce:transition-none"style={{ transform: `translateX(${selectedIndex * 100}%)` }}/>{segments.map((seg) => {@@ -339,7 +339,7 @@ export function EngineModeSwitch({isSelected? "text-primary-foreground": needsKey- ? "text-muted-foreground/60 hover:text-muted-foreground"+ ? "text-muted-foreground hover:text-muted-foreground": "text-muted-foreground hover:text-foreground",)}>@@ -454,9 +454,9 @@ export function LocalModeNotice({// is a translated template, so this is the one place a test (or a support// screenshot) can read the number without depending on wording.data-hidden-count={hiddenCount}- className="mb-3 flex items-start gap-2.5 rounded-surface border border-border bg-card/40 px-3 py-2"+ className="mb-3 flex items-start gap-2.5 rounded-surface border border-border bg-card px-3 py-2">- <HardDrive aria-hidden="true" className="mt-0.5 h-4 w-4 shrink-0 text-primary" />+ <HardDrive aria-hidden="true" className="mt-0.5 h-4 w-4 shrink-0 text-muted-foreground" /><p className="min-w-0 text-xs leading-relaxed text-muted-foreground"><span className="font-medium text-foreground">{t("apikeys_view.local_mode_label")}@@ -466,7 +466,7 @@ export function LocalModeNotice({<buttontype="button"onClick={onDisable}- className="font-medium text-primary underline-offset-2 hover:underline"+ className="font-medium text-foreground-strong underline-offset-2 hover:underline">{t("apikeys_view.local_mode_show_all")}</button>@@ -535,7 +535,7 @@ export function VoiceEngineContext({: transitioning? t("apikeys_view.runtime_switching"): sessionActive && activeSessionMode === "realtime"- ? `${t("apikeys_view.runtime_realtime")}${runtimeDetail ? ` · ${runtimeDetail}` : ""}`+ ? `${t("apikeys_view.runtime_realtime")}${runtimeDetail ?}` · ${runtimeDetail}` : ""}`: sessionActive && activeSessionMode === "pipeline" && liveMode === "realtime"? t("apikeys_view.runtime_fallback_pipeline"): sessionActive && activeSessionMode === "pipeline"@@ -634,7 +634,7 @@ export function VoiceEngineContext({</span><span className="hidden sm:inline">{t("apikeys_view.voice_engine_label")}</span></summary>- <div className="absolute right-0 top-full z-20 mt-2 w-80 rounded-surface border border-border bg-card p-3 text-xs leading-relaxed text-muted-foreground">+ <div className="absolute right-0 top-full z-20 mt-2 w-80 rounded-lg bg-popover p-3 shadow-float text-xs leading-relaxed text-muted-foreground"><p className="font-medium text-foreground">{t("apikeys_view.voice_engine_desc")}</p>@@ -727,10 +727,10 @@ function RecommendedSetupPanel({return (<divdata-testid="recommended-setup-panel"- className="flex min-w-0 items-center gap-3 border-t border-border/60 py-1.5 text-xs"+ className="flex min-w-0 items-center gap-3 border-t border-border py-1.5 text-xs"><p className="flex shrink-0 items-center gap-1.5 text-muted-foreground">- <Sparkles aria-hidden="true" className="h-3.5 w-3.5 shrink-0 text-primary" />+ <Sparkles aria-hidden="true" className="h-3.5 w-3.5 shrink-0 text-muted-foreground" />{t("apikeys_view.reco_title")}</p>{/* Text links, not capsules: three picks in a row already read as a@@ -780,7 +780,7 @@ export function CategoryHero({// a hero: icon, title and the one-line description on a single baseline.return (<div className="mb-3 flex min-w-0 items-center gap-2 pt-1">- <Icon aria-hidden="true" className="h-4 w-4 shrink-0 text-primary" />+ <Icon aria-hidden="true" className="h-4 w-4 shrink-0 text-muted-foreground" /><h3 className="shrink-0 font-display text-sm font-semibold tracking-tight">{title}</h3>@@ -805,8 +805,8 @@ export function CategoryHero({export function GuidancePanel({ title, body }: { title: string; body: string }) {return (<details className="group mb-3 text-xs">- <summary className="inline-flex cursor-pointer list-none items-center gap-1.5 font-medium text-foreground/90 transition-colors hover:text-foreground [&::-webkit-details-marker]:hidden">- <Sparkles aria-hidden="true" className="h-3.5 w-3.5 shrink-0 text-primary" />+ <summary className="inline-flex cursor-pointer list-none items-center gap-1.5 font-medium text-foreground transition-colors hover:text-foreground [&::-webkit-details-marker]:hidden">+ <Sparkles aria-hidden="true" className="h-3.5 w-3.5 shrink-0 text-muted-foreground" />{title}<ChevronDownaria-hidden="true"@@ -887,7 +887,7 @@ export function ProviderCategory({)}{error && (- <div className="flex items-start gap-2 rounded-md border border-destructive/30 bg-destructive/5 p-4 text-sm text-destructive">+ <div className="flex items-start gap-2 rounded-md bg-secondary p-4 text-sm text-destructive"><AlertCircle className="mt-0.5 h-4 w-4" /><div>{error === PROVIDER_BACKEND_UNREACHABLE@@ -970,7 +970,7 @@ export function TierSection({return (<uldata-testid="provider-list"- className="divide-y divide-border/70 overflow-hidden rounded-surface border border-border bg-card/50"+ className="divide-y divide-border/70 overflow-hidden rounded-surface border border-border bg-card">{sorted.map((p) => (<li key={p.id}>@@ -1374,7 +1374,7 @@ export function ProviderCard({title={rowTitle}className={cn("flex items-center gap-3 px-3.5 py-3 outline-none",- collapsible && "cursor-pointer hover:bg-secondary/40 focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring",+ collapsible && "cursor-pointer hover:bg-secondary focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring",!isBrainSwitchable && "opacity-80",)}>@@ -1444,7 +1444,7 @@ export function ProviderCard({e.stopPropagation();setActiveSection("local-models");}}- className="inline-flex h-7 shrink-0 items-center gap-1.5 rounded-md border border-border/70 px-2.5 text-xs font-medium text-foreground/90 transition-colors hover:bg-secondary/60 hover:text-foreground"+ className="inline-flex h-7 shrink-0 items-center gap-1.5 rounded-md border border-border px-2.5 text-xs font-medium text-foreground transition-colors hover:bg-secondary hover:text-foreground"><Cpu aria-hidden="true" className="h-3.5 w-3.5" />{t("apikeys_view.local_models_open")}@@ -1490,7 +1490,7 @@ export function ProviderCard({<divid={`provider-body-${descriptor.id}`}data-testid={`provider-body-${descriptor.id}`}- className="space-y-3 border-t border-border/60 bg-background/30 px-3.5 pb-3.5 pl-[3.75rem] pt-3"+ className="space-y-3 border-t border-border bg-background px-3.5 pb-3.5 pl-[3.75rem] pt-3">{/* The precise "this card is the problem" banner: only on the active card,only when the live check actually failed. Names the cause in plain@@ -1516,7 +1516,7 @@ export function ProviderCard({/>{!isBrainSwitchable && (- <p className="rounded-control border border-foreground/25 bg-foreground/10 px-3 py-2 text-xs leading-relaxed text-foreground">+ <p className="rounded-control bg-secondary px-3 py-2 text-xs leading-relaxed text-foreground">{t("apikeys_view.agents_only_note").replace("{0}",agentBrand(assistantName),@@ -1604,7 +1604,7 @@ export function ProviderCard({{/* Footer: the live connectivity test, visually separated from theconfiguration body so "set up" and "verify" read as two steps. */}- <div className="border-t border-border/60 pt-2.5">+ <div className="border-t border-border pt-2.5"><ProviderTestControlproviderId={descriptor.id}providerLabel={descriptor.label}@@ -1807,8 +1807,8 @@ export function ActiveControl({descriptor.active? "font-medium text-foreground": descriptor.configured- ? "border border-border bg-background/60 text-muted-foreground hover:border-primary/50 hover:text-foreground"- : "border border-dashed border-border/80 text-muted-foreground/80 hover:text-foreground",+ ? "border border-border bg-background text-muted-foreground hover:border-border-strong hover:text-foreground"+ : "border border-dashed border-border text-muted-foreground hover:text-foreground",)}title={labelTitle}>@@ -1824,7 +1824,7 @@ export function ActiveControl({<spanaria-hidden="true"className={cn(- "h-[7px] w-[7px] rounded-full bg-foreground/70",+ "h-[7px] w-[7px] rounded-full bg-secondary",activating && "animate-pulse motion-reduce:animate-none",)}/>@@ -1878,7 +1878,7 @@ export function BaseUrlField({return (<div className="space-y-1">- <label className="text-xs uppercase tracking-wider text-muted-foreground">+ <label className="text-xs text-muted-foreground">{t("apikeys_base_url.label")}</label><div className="flex gap-2">@@ -2020,7 +2020,7 @@ function LocalRuntimePanel({const showAccelerator =accelerator !== null && accelerator.reason !== "not_requested" && accelerator.reason !== "";return (- <div className="space-y-2 border-t border-border/60 pt-3">+ <div className="space-y-2 border-t border-border pt-3"><div className="flex items-start gap-2 text-xs">{status.ready ? (<Check className="mt-0.5 h-3.5 w-3.5 shrink-0 text-muted-foreground" />@@ -2477,7 +2477,7 @@ function ManagedServerPanel({.includes(normalizedVoiceQuery);});return (- <div className="space-y-2 border-t border-border/60 pt-3">+ <div className="space-y-2 border-t border-border pt-3"><div className="flex items-start gap-2 text-xs">{status.ready ? (<Check className="mt-0.5 h-3.5 w-3.5 shrink-0 text-muted-foreground" />@@ -2603,12 +2603,12 @@ function ManagedServerPanel({value: choice.id,label: `${choice.label} · ~${choice.size_gb} GB${choice.recommended- ? ` · ${t("apikeys_view.managed_brain_recommended")}`+ ?}` · ${t("apikeys_view.managed_brain_recommended")}`: ""}${choice.fits? ""- : ` · ${t("apikeys_view.managed_brain_no_fit")}`+ :}` · ${t("apikeys_view.managed_brain_no_fit")}`}`,disabled: !choice.fits,}))}@@ -2630,11 +2630,11 @@ function ManagedServerPanel({value: choice.id,label: `${choice.label}${choice.recommended- ? ` · ${t("apikeys_view.managed_brain_recommended")}`+ ?}` · ${t("apikeys_view.managed_brain_recommended")}`: ""}${!choice.selectable- ? ` · ${t("apikeys_view.managed_voice_unavailable")}`+ ?}` · ${t("apikeys_view.managed_voice_unavailable")}`: choice.runtime_ready === false? ` · ${t("apikeys_view.managed_voice_install_required")}`: ""@@ -2717,15 +2717,15 @@ function ManagedServerPanel({className={cn("flex items-start justify-between gap-3 rounded-md border px-2.5 py-2",choice.id === selectedVoice- ? "border-primary/45 bg-primary/[0.05]"- : "border-border/50 bg-background/50",+ ? "border-border-strong bg-primary/[0.05]"+ : "border-border bg-background",)}><div className="min-w-0 space-y-1"><div className="flex flex-wrap items-center gap-1.5"><span className="text-xs font-medium">{choice.label}</span>{choice.frontier && (- <span className="rounded-full bg-primary/15 px-1.5 py-px text-xs font-semibold uppercase tracking-wide text-primary">+ <span className="rounded-full bg-secondary px-1.5 py-px text-xs font-semibold text-foreground-strong">{t("apikeys_view.managed_voice_frontier")}</span>)}@@ -2739,7 +2739,7 @@ function ManagedServerPanel({"rounded-full border px-1.5 py-px text-xs",choice.selectable? "border-muted-foreground/30 bg-muted-foreground/10 text-muted-foreground"- : "border-foreground/30 bg-foreground/10 text-foreground",+ : "bg-secondary text-foreground",)}>{t(@@ -2757,7 +2757,7 @@ function ManagedServerPanel({</p><div className="flex flex-wrap items-center gap-1 text-xs text-muted-foreground">{(choice.languages ?? []).slice(0, 12).map((language) => (- <span key={language} className="rounded bg-muted px-1 py-px uppercase">+ <span key={language} className="rounded bg-muted px-1 py-px ">{language}</span>))}@@ -2772,7 +2772,7 @@ function ManagedServerPanel({href={choice.source_url}target="_blank"rel="noreferrer"- className="font-medium text-primary hover:underline"+ className="font-medium text-foreground-strong hover:underline">{t("apikeys_view.managed_voice_source")}</a>@@ -2812,7 +2812,7 @@ function ManagedServerPanel({<div className="space-y-1"><div className="h-1.5 w-full overflow-hidden rounded bg-muted"><div- className="h-full rounded bg-foreground/70 transition-all"+ className="h-full rounded bg-secondary transition-all"style={{ width: `${Math.max(2, progress?.percent ?? 0)}%` }}/></div>@@ -3029,7 +3029,7 @@ export function OllamaRuntimePanel({return (<div- className="space-y-2 border-t border-border/60 pt-3"+ className="space-y-2 border-t border-border pt-3"data-testid="ollama-runtime-panel"><div className="flex items-start gap-2 text-xs">@@ -3042,7 +3042,7 @@ export function OllamaRuntimePanel({{installing && (<div className="h-1.5 w-full overflow-hidden rounded bg-muted"><div- className="h-full rounded bg-foreground/70 transition-all"+ className="h-full rounded bg-secondary transition-all"style={{ width: `${Math.max(2, progress?.percent ?? 0)}%` }}/></div>@@ -3179,7 +3179,7 @@ export function LibraryBrowser({};return (- <div className="space-y-2 border-t border-border/50 pt-2" data-testid="model-library">+ <div className="space-y-2 border-t border-border pt-2" data-testid="model-library">{/* The first version of this shipped as a bare input with a changedplaceholder, in the exact spot the old blind text field had occupied.It worked and nobody could see it: a feature that looks identical to@@ -3238,7 +3238,7 @@ export function LibraryBrowser({<divkey={model.name}data-testid={`library-row-${model.name}`}- className="rounded border border-border/50 bg-background/50"+ className="rounded border border-border bg-background"><buttontype="button"@@ -3263,7 +3263,7 @@ export function LibraryBrowser({{model.capabilities.map((cap) => (<spankey={cap}- className="rounded bg-primary/10 px-1 py-px text-xs font-medium uppercase tracking-wide text-primary"+ className="rounded bg-secondary px-1 py-px text-xs font-medium text-foreground-strong">{cap}</span>@@ -3290,7 +3290,7 @@ export function LibraryBrowser({// A popular family publishes well over a hundred tags// (qwen2.5: 133). Un-capped, one opened model would push the// whole settings page down by several screens.- <div className="max-h-56 space-y-1 overflow-y-auto border-t border-border/40 px-2 py-1.5">+ <div className="max-h-56 space-y-1 overflow-y-auto border-t border-border px-2 py-1.5">{loadingTags && !tags[model.name] && (<p className="text-xs text-muted-foreground">{t("apikeys_model_pull.library_loading_versions")}@@ -3511,7 +3511,7 @@ export function LocalModelDownloadPanel({return (<divdata-testid={`provider-model-pull-${descriptor.id}`}- className="space-y-2 border-t border-border/60 pt-3"+ className="space-y-2 border-t border-border pt-3"><div className="flex items-center justify-between gap-2"><p className="text-xs font-medium">{t("apikeys_model_pull.title")}</p>@@ -3532,7 +3532,7 @@ export function LocalModelDownloadPanel({{groups.map((group) => (<div key={group.role ?? "all"} className="space-y-1.5">{group.role && (- <p className="pt-1 text-xs font-semibold uppercase tracking-wider text-muted-foreground/80">+ <p className="pt-1 text-xs font-semibold text-muted-foreground">{t(`apikeys_model_pull.role_${group.role}`)}</p>)}@@ -3542,9 +3542,9 @@ export function LocalModelDownloadPanel({data-testid={`model-pull-row-${row.id}`}data-recommended={row.recommended ? "true" : "false"}className={cn(- "flex items-start justify-between gap-2 rounded border bg-background/50 px-2 py-1.5",+ "flex items-start justify-between gap-2 rounded border bg-background px-2 py-1.5",row.recommended- ? "border-primary/40 bg-primary/[0.04]"+ ? "border-border-strong bg-primary/[0.04]": "border-border/50",)}>@@ -3558,7 +3558,7 @@ export function LocalModelDownloadPanel({)}</span>{row.recommended && (- <span className="ml-1.5 whitespace-nowrap rounded-full bg-primary/15 px-1.5 py-px text-xs font-semibold uppercase tracking-wide text-primary">+ <span className="ml-1.5 whitespace-nowrap rounded-full bg-secondary px-1.5 py-px text-xs font-semibold text-foreground-strong">{t("apikeys_model_pull.best_for_machine")}</span>)}@@ -3624,7 +3624,7 @@ export function LocalModelDownloadPanel({{running && (<div className="h-1 w-full overflow-hidden rounded bg-border"><div- className="h-full bg-foreground/70 transition-all"+ className="h-full bg-secondary transition-all"style={{ width: `${percent}%` }}/></div>@@ -3944,7 +3944,7 @@ function CodexAuthWidget({// Not connected: status + (install hint) + the single "connect" action.return (<div className="space-y-3">- <div className="rounded-md border border-border bg-background/40 p-3 text-xs text-muted-foreground">+ <div className="rounded-md border border-border bg-background p-3 text-xs text-muted-foreground"><div className="flex flex-wrap items-center gap-2"><span>{subscriptionOnly@@ -3966,7 +3966,7 @@ function CodexAuthWidget({status.message && (<divdata-testid="codex-setup-detail"- className="mt-2 break-words border-t border-border/60 pt-2 font-mono text-xs"+ className="mt-2 break-words border-t border-border pt-2 font-mono text-xs"><span className="mr-1 font-sans">{t("apikeys_codex.setup_detail_label")}@@ -3985,7 +3985,7 @@ function CodexAuthWidget({{!status?.installed &&!CODEX_NO_INSTALL_PROMPT_REASONS.has(status?.reason_code ?? "") && (<div className="flex flex-wrap items-center gap-2">- <code className="min-w-[220px] flex-1 rounded-md border border-border bg-muted/30 px-3 py-1.5 font-mono text-xs">+ <code className="min-w-[220px] flex-1 rounded-md border border-border bg-muted px-3 py-1.5 font-mono text-xs">{installCommand}</code><Button size="sm" variant="outline" onClick={handleCopy} disabled={pending === "copy"}>@@ -4139,7 +4139,7 @@ function AntigravityAuthWidget({// Not connected: status + (install hint) + the single "connect" action.return (<div className="space-y-3">- <div className="rounded-md border border-border bg-background/40 p-3 text-xs text-muted-foreground">+ <div className="rounded-md border border-border bg-background p-3 text-xs text-muted-foreground"><div className="flex flex-wrap items-center gap-2"><span>{status?.message ?? t("apikeys_antigravity.status_loading")}</span>{status?.version && (@@ -4150,7 +4150,7 @@ function AntigravityAuthWidget({{!status?.installed && (<div className="flex flex-wrap items-center gap-2">- <code className="min-w-[220px] flex-1 rounded-md border border-border bg-muted/30 px-3 py-1.5 font-mono text-xs">+ <code className="min-w-[220px] flex-1 rounded-md border border-border bg-muted px-3 py-1.5 font-mono text-xs">{installCommand}</code><Button size="sm" variant="outline" onClick={handleCopy} disabled={pending === "copy"}>@@ -4191,7 +4191,7 @@ function AntigravityAuthWidget({*/const STATE_CHIP_TONE = {active: {- wrap: "rounded-[4px] border border-primary/40 px-1.5 text-[10.5px] font-semibold uppercase tracking-[0.06em] text-primary",+ wrap: "rounded-[4px] border border-border-strong px-1.5 text-[10.5px] font-semibold text-foreground-strong",dot: null,},ready: { wrap: "text-muted-foreground", dot: "bg-muted-foreground" },@@ -4246,10 +4246,10 @@ export function Tag({{...rest}title={title}className={cn(- "inline-flex shrink-0 items-center rounded-[4px] border px-1.5 text-[10.5px] font-semibold uppercase leading-[18px] tracking-[0.06em]",- tone === "accent" && "border-primary/40 text-primary",+ "inline-flex shrink-0 items-center rounded-[4px] border px-1.5 text-[10.5px] font-semibold leading-[18px] tracking-[0.06em]",+ tone === "accent" && "border-border-strong text-foreground-strong",tone === "neutral" && "border-border text-muted-foreground",- tone === "warn" && "border-foreground/40 text-foreground",+ tone === "warn" && "border-border-strong text-foreground",)}>{children}diff --git a/jarvis/ui/web/frontend/src/components/runs/DecisionPath.tsx b/jarvis/ui/web/frontend/src/components/runs/DecisionPath.tsxindex f2cdc4945b..f9fbd14100 100644--- a/jarvis/ui/web/frontend/src/components/runs/DecisionPath.tsx+++ b/jarvis/ui/web/frontend/src/components/runs/DecisionPath.tsx@@ -7,58 +7,60 @@* brain's OWN words captured next to its tool call, "rule" is a deterministic* explanation derived from a recorded fact. Neither is ever invented — a step* with no recorded rationale says so instead of guessing.+ *+ * The six kinds are told apart by their GLYPH, not by six hues: a decision+ * kind is neither a status nor an identity, and painting `risk` rose made+ * every routing trace look like it contained an error.*/import { useT } from "@/i18n";import type { DecisionStep } from "./types";-const KIND_META: Record<string, { icon: string; cls: string }> = {- tier: { icon: "◆", cls: "text-slate-300" },- route: { icon: "→", cls: "text-foreground" },- risk: { icon: "⚖", cls: "text-rose-300" },- brain: { icon: "🧠", cls: "text-violet-300" },- mission: { icon: "⚙", cls: "text-fuchsia-300" },- fallback: { icon: "↺", cls: "text-cyan-300" },-};--const SOURCE_STYLE: Record<string, string> = {- model: "bg-violet-400/10 text-violet-300 ring-violet-400/25",- rule: "bg-muted/40 text-muted-foreground ring-border",+const KIND_ICON: Record<string, string> = {+ tier: "◆",+ route: "→",+ risk: "⚖",+ brain: "🧠",+ mission: "⚙",+ fallback: "↺",};export function DecisionPath({ steps }: { steps: DecisionStep[] }) {const t = useT();if (steps.length === 0) {- return <span className="text-muted-foreground/60">{t("run_inspector.decision.empty")}</span>;+ return (+ <span className="text-body text-muted-foreground">+ {t("run_inspector.decision.empty")}+ </span>+ );}return (- <ol className="space-y-1.5" data-testid="decision-path">- {steps.map((s, i) => {- const meta = KIND_META[s.kind] ?? { icon: "·", cls: "text-muted-foreground" };- return (- <li- key={i}- data-decision-kind={s.kind}- className="rounded-md border border-border/50 bg-background/40 px-2 py-1.5"- >- <div className="flex flex-wrap items-baseline gap-1.5 text-[11px]">- <span className={`w-4 shrink-0 text-center ${meta.cls}`}>{meta.icon}</span>- <span className="font-medium text-foreground/90">{s.label}</span>- {s.detail && (- <span className="font-mono text-[10px] text-muted-foreground">{s.detail}</span>- )}- <span- className={`ml-auto rounded-full px-1.5 py-px text-[9px] uppercase tracking-wide ring-1 ring-inset ${SOURCE_STYLE[s.rationale_source] ?? SOURCE_STYLE.rule}`}- >- {s.rationale_source || t("run_inspector.decision.no_source")}+ <ol className="space-y-1" data-testid="decision-path">+ {steps.map((s, i) => (+ <li+ key={i}+ data-decision-kind={s.kind}+ className="rounded-md px-2 py-1.5 transition-colors hover:bg-secondary"+ >+ <div className="flex flex-wrap items-baseline gap-1.5 text-body">+ <span className="w-4 shrink-0 text-center text-muted-foreground">+ {KIND_ICON[s.kind] ?? "·"}+ </span>+ <span className="font-medium text-foreground">{s.label}</span>+ {s.detail && (+ <span className="font-mono text-micro text-muted-foreground">+ {s.detail}</span>- </div>- <p className="mt-1 pl-[22px] text-[11px] leading-relaxed text-muted-foreground [overflow-wrap:anywhere]">- {s.rationale || t("run_inspector.decision.no_rationale")}- </p>- </li>- );- })}+ )}+ <span className="ml-auto rounded-full bg-secondary px-2 py-px text-micro text-muted-foreground">+ {s.rationale_source || t("run_inspector.decision.no_source")}+ </span>+ </div>+ <p className="mt-1 pl-[22px] text-meta text-muted-foreground [overflow-wrap:anywhere]">+ {s.rationale || t("run_inspector.decision.no_rationale")}+ </p>+ </li>+ ))}</ol>);}diff --git a/jarvis/ui/web/frontend/src/components/runs/EnvironmentPanel.tsx b/jarvis/ui/web/frontend/src/components/runs/EnvironmentPanel.tsxindex 38b06ec1e3..78df3e4a01 100644--- a/jarvis/ui/web/frontend/src/components/runs/EnvironmentPanel.tsx+++ b/jarvis/ui/web/frontend/src/components/runs/EnvironmentPanel.tsx@@ -14,10 +14,8 @@ import type { RunEnvironment } from "./types";function Row({ label, value }: { label: string; value: string }) {return (<div className="flex min-w-0 items-baseline gap-2">- <span className="w-24 shrink-0 text-[9px] font-medium uppercase tracking-[0.12em] text-muted-foreground">- {label}- </span>- <span className="min-w-0 flex-1 break-words font-mono text-[11px] text-foreground/90 [overflow-wrap:anywhere]">+ <span className="w-24 shrink-0 text-meta text-muted-foreground">{label}</span>+ <span className="min-w-0 flex-1 break-words font-mono text-meta text-foreground [overflow-wrap:anywhere]">{value}</span></div>@@ -49,11 +47,15 @@ export function EnvironmentPanel({ env }: { env: RunEnvironment }) {}if (rows.length === 0) {- return <span className="text-muted-foreground/60">{t("run_inspector.env.empty")}</span>;+ return (+ <span className="text-body text-muted-foreground">+ {t("run_inspector.env.empty")}+ </span>+ );}return (- <div className="grid gap-1.5 sm:grid-cols-2" data-testid="environment-panel">+ <div className="grid gap-stack sm:grid-cols-2" data-testid="environment-panel">{rows.map(([label, value]) => (<Row key={label} label={label} value={value} />))}diff --git a/jarvis/ui/web/frontend/src/components/runs/ErrorPanel.tsx b/jarvis/ui/web/frontend/src/components/runs/ErrorPanel.tsxindex 5f6611b459..c8b9a4773c 100644--- a/jarvis/ui/web/frontend/src/components/runs/ErrorPanel.tsx+++ b/jarvis/ui/web/frontend/src/components/runs/ErrorPanel.tsx@@ -1,11 +1,16 @@import type { ErrorEntry } from "./types";+/**+ * Recorded faults for one run. `fault` ink on the normal lift surface — an+ * error says what failed, it does not repaint the panel red.+ */export function ErrorPanel({ errors }: { errors: ErrorEntry[] }) {- if (errors.length === 0) return <span className="text-muted-foreground/60">—</span>;+ if (errors.length === 0)+ return <span className="text-body text-muted-foreground">—</span>;return (<ul className="space-y-1">{errors.map((e, i) => (- <li key={i} className="rounded bg-destructive/10 px-2 py-1 text-[11px]">+ <li key={i} className="rounded-md bg-secondary px-2 py-1.5 text-meta"><span className="font-semibold text-destructive">{e.source}</span>{e.layer && <span className="text-muted-foreground"> · {e.layer}</span>}<span className="text-muted-foreground"> — {e.message}</span>diff --git a/jarvis/ui/web/frontend/src/components/runs/EventStream.tsx b/jarvis/ui/web/frontend/src/components/runs/EventStream.tsxindex af7934b578..ee1af29072 100644--- a/jarvis/ui/web/frontend/src/components/runs/EventStream.tsx+++ b/jarvis/ui/web/frontend/src/components/runs/EventStream.tsx@@ -21,22 +21,17 @@ import { useT } from "@/i18n";import type { RawEvent } from "./types";-// Lane -> colour. An unknown category degrades to the neutral system tone-// instead of rendering unstyled (BUG-008 string contract).-const LANE: Record<string, { dot: string; chip: string; text: string }> = {- lifecycle: { dot: "bg-slate-400", chip: "bg-slate-400/10 text-slate-300 ring-slate-400/25", text: "text-slate-300" },- speech: { dot: "bg-muted-foreground", chip: "bg-muted-foreground/10 text-muted-foreground ring-muted-foreground/25", text: "text-muted-foreground" },- brain: { dot: "bg-violet-400", chip: "bg-violet-400/10 text-violet-300 ring-violet-400/25", text: "text-violet-300" },- tool: { dot: "bg-foreground", chip: "bg-foreground/10 text-foreground ring-foreground/25", text: "text-foreground" },- agent: { dot: "bg-fuchsia-400", chip: "bg-fuchsia-400/10 text-fuchsia-300 ring-fuchsia-400/25", text: "text-fuchsia-300" },- vision: { dot: "bg-sky-400", chip: "bg-sky-400/10 text-sky-300 ring-sky-400/25", text: "text-sky-300" },- latency: { dot: "bg-cyan-400", chip: "bg-cyan-400/10 text-cyan-300 ring-cyan-400/25", text: "text-cyan-300" },- error: { dot: "bg-rose-500", chip: "bg-rose-500/10 text-rose-300 ring-rose-500/25", text: "text-rose-300" },- system: { dot: "bg-muted-foreground/50", chip: "bg-muted/40 text-muted-foreground ring-border", text: "text-muted-foreground" },-};--function lane(category: string) {- return LANE[category] ?? LANE.system;+/**+ * Nine lanes used to mean nine hues — slate, violet, fuchsia, sky, cyan, rose+ * and near-white — which spent the product's entire colour budget on a filter+ * strip and left the one lane that matters (`error`) no louder than the rest.+ *+ * The lane NAME is printed in the chip and the event `kind` is printed in the+ * row, so the words already carry the distinction. Only `error` keeps a hue,+ * because only `error` is a status.+ */+function isFaultLane(category: string): boolean {+ return category === "error";}function fmtOffset(ms: number): string {@@ -77,7 +72,11 @@ export function EventStream({}, [events, lanes, needle]);if (events.length === 0) {- return <span className="text-muted-foreground/60">{t("run_inspector.stream.empty")}</span>;+ return (+ <span className="text-body text-muted-foreground">+ {t("run_inspector.stream.empty")}+ </span>+ );}const toggleLane = (name: string) =>@@ -102,18 +101,23 @@ export function EventStream({.map((e) => JSON.stringify({ offset_ms: e.offset_ms, kind: e.kind, ...e.payload })).join("\n");const ok = await robustCopy(text);- pushToast(ok ? "success" : "error", ok- ? `${visible.length} ${t("run_inspector.stream.copied")}`- : t("run_inspector.stream.copy_failed"));+ pushToast(+ ok ? "success" : "error",+ ok+ ? `${visible.length} ${t("run_inspector.stream.copied")}`+ : t("run_inspector.stream.copy_failed"),+ );};return (- <div className="space-y-2" data-testid="event-stream">+ <div className="space-y-stack" data-testid="event-stream">{/* Lane filters + search */}<div className="flex flex-wrap items-center gap-1.5">{Object.entries(counts).sort((a, b) => b[1] - a[1]).map(([cat, n]) => {+ // With no explicit selection every lane is on; a lane switched off+ // recedes rather than disappears, so the strip keeps its shape.const active = lanes.size === 0 || lanes.has(cat);return (<button@@ -122,11 +126,12 @@ export function EventStream({data-testid={`lane-${cat}`}data-active={lanes.has(cat)}onClick={() => toggleLane(cat)}- className={`inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-[10px] font-medium ring-1 ring-inset transition-opacity ${lane(cat).chip} ${active ? "" : "opacity-35"}`}+ className={`inline-flex items-center gap-1 rounded-full bg-secondary px-2 py-0.5 text-micro font-medium transition-opacity ${+ isFaultLane(cat) ? "text-destructive" : "text-foreground"+ } ${active ? "" : "opacity-40"}`}>- <span className={`h-1.5 w-1.5 rounded-full ${lane(cat).dot}`} />{cat}- <span className="tabular-nums opacity-70">{n}</span>+ <span className="tabular-nums text-muted-foreground">{n}</span></button>);})}@@ -139,14 +144,14 @@ export function EventStream({onChange={(e) => setNeedle(e.target.value)}placeholder={t("run_inspector.stream.filter")}data-testid="event-filter"- className="h-6 w-40 rounded-md border border-border/70 bg-background/60 pl-6 pr-2 text-[11px] outline-none placeholder:text-muted-foreground/70 focus:border-border"+ className="h-7 w-40 rounded-md bg-input pl-6 pr-2 text-micro text-foreground outline-none placeholder:text-faint-foreground focus:ring-2 focus:ring-border-strong"/></div><buttontype="button"onClick={copyStream}title={t("run_inspector.stream.copy")}- className="inline-flex h-6 items-center gap-1 rounded-md border border-border/70 px-2 text-[10px] text-muted-foreground transition-colors hover:border-border hover:text-foreground"+ className="inline-flex h-7 items-center gap-1 rounded-md px-2 text-micro text-muted-foreground transition-colors hover:bg-secondary hover:text-foreground"><Copy className="h-3 w-3" />JSONL@@ -155,13 +160,13 @@ export function EventStream({</div>{truncated && (- <div className="rounded-md border border-foreground/30 bg-foreground/5 px-2 py-1 text-[10px] text-foreground">+ <div className="rounded-md bg-secondary px-2 py-1 text-micro text-warning">{t("run_inspector.stream.truncated")}</div>)}- {/* Rows */}- <ol className="divide-y divide-border/40 overflow-hidden rounded-md border border-border/50">+ {/* Rows. Fill on hover is the separation device — no rules between them. */}+ <ol>{visible.map((e) => {const isOpen = open.has(e.seq);const hasPayload = Object.keys(e.payload ?? {}).length > 0;@@ -170,28 +175,37 @@ export function EventStream({<buttontype="button"onClick={() => hasPayload && toggleRow(e.seq)}- className={`flex w-full items-start gap-2 px-2 py-1 text-left transition-colors hover:bg-muted/30 ${hasPayload ? "" : "cursor-default"}`}+ className={`flex w-full items-start gap-2 rounded-md px-2 py-1 text-left transition-colors hover:bg-secondary ${+ hasPayload ? "" : "cursor-default"+ }`}><span className="mt-[3px] w-4 shrink-0 text-muted-foreground">{hasPayload ? (- isOpen ? <ChevronDown className="h-3 w-3" /> : <ChevronRight className="h-3 w-3" />+ isOpen ? (+ <ChevronDown className="h-3 w-3" />+ ) : (+ <ChevronRight className="h-3 w-3" />+ )) : null}</span>- <span className="w-16 shrink-0 text-right font-mono text-[10px] tabular-nums text-muted-foreground">+ <span className="w-16 shrink-0 text-right font-mono text-micro tabular-nums text-muted-foreground">{fmtOffset(e.offset_ms)}</span>- <span className={`mt-[5px] h-1.5 w-1.5 shrink-0 rounded-full ${lane(e.category).dot}`} />- <span className={`w-48 shrink-0 font-mono text-[11px] ${lane(e.category).text}`}>+ <span+ className={`w-48 shrink-0 font-mono text-micro ${+ isFaultLane(e.category) ? "text-destructive" : "text-foreground"+ }`}+ >{e.kind}</span>{/* No truncation: the summary IS the information. Long lineswrap instead of being cut at the container edge. */}- <span className="min-w-0 flex-1 break-words text-[11px] text-foreground/80 [overflow-wrap:anywhere]">+ <span className="min-w-0 flex-1 break-words text-micro text-muted-foreground [overflow-wrap:anywhere]">{e.summary}</span></button>{isOpen && (- <pre className="overflow-x-auto border-t border-border/40 bg-background/60 px-3 py-2 font-mono text-[10px] leading-relaxed text-muted-foreground">+ <pre className="overflow-x-auto rounded-md bg-secondary px-3 py-2 font-mono text-micro text-muted-foreground">{JSON.stringify(e.payload, null, 2)}</pre>)}@@ -200,7 +214,7 @@ export function EventStream({})}</ol>- <div className="text-[10px] text-muted-foreground">+ <div className="text-micro tabular-nums text-muted-foreground">{visible.length === events.length? `${events.length} ${t("run_inspector.stream.events")}`: `${visible.length} / ${events.length} ${t("run_inspector.stream.events")}`}diff --git a/jarvis/ui/web/frontend/src/components/runs/FeatureBadges.tsx b/jarvis/ui/web/frontend/src/components/runs/FeatureBadges.tsxindex c25a1c5fe3..8c20d29cbb 100644--- a/jarvis/ui/web/frontend/src/components/runs/FeatureBadges.tsx+++ b/jarvis/ui/web/frontend/src/components/runs/FeatureBadges.tsx@@ -4,27 +4,23 @@ import { Bot, Monitor, Sparkles, Terminal } from "lucide-react";import { agentBrand } from "@/lib/agentBrand";import { useEventStore } from "@/store/events";-// Specific agent/feature markers get a named, icon-led badge; everything else-// (CLI/tool names) gets a neutral monospace chip. This is the "which agents /-// tools / CLIs ran" overview — Computer-Use, the agent system and Skill are-// called out by name. The sub_agent label is resolved per render: it carries-// the wake-word-derived assistant name ("Ruben" -> "Ruben-Agent").-const AGENT_META: Record<string, { label: string | null; Icon: LucideIcon; cls: string }> = {- computer_use: {- label: "Computer-Use",- Icon: Monitor,- cls: "bg-sky-400/10 text-sky-300 ring-sky-400/25",- },- sub_agent: {- label: null, // dynamic: agentBrand(assistantName)- Icon: Bot,- cls: "bg-violet-400/10 text-violet-300 ring-violet-400/25",- },- skill: {- label: "Skill",- Icon: Sparkles,- cls: "bg-fuchsia-400/10 text-fuchsia-300 ring-fuchsia-400/25",- },+/**+ * "Which agents / tools / CLIs ran" — Computer-Use, the agent system and Skill+ * are called out by name and by glyph; everything else (CLI/tool names) gets a+ * monospace chip.+ *+ * These used to be painted sky / violet / fuchsia, which spent hue on three+ * things that are neither a status nor an identity — and made a run that+ * happened to touch a skill louder than one that failed. The glyph is what+ * distinguishes them now; the surface is the same neutral lift every chip in+ * the product rests on. The sub_agent label is still resolved per render: it+ * carries the wake-word-derived assistant name ("Ruben" -> "Ruben-Agent").+ */+const AGENT_META: Record<string, { label: string | null; Icon: LucideIcon }> = {+ computer_use: { label: "Computer-Use", Icon: Monitor },+ // Dynamic: agentBrand(assistantName).+ sub_agent: { label: null, Icon: Bot },+ skill: { label: "Skill", Icon: Sparkles },};export function FeatureBadges({@@ -40,7 +36,8 @@ export function FeatureBadges({if (!tags.length) return null;const shown = max ? tags.slice(0, max) : tags;const rest = tags.length - shown.length;- const pad = size === "xs" ? "px-1.5 py-px text-[10px]" : "px-2 py-0.5 text-[11px]";+ // 11px is the type floor, so the two sizes differ in padding only.+ const pad = size === "xs" ? "px-1.5 py-px" : "px-2 py-0.5";const icon = size === "xs" ? "h-3 w-3" : "h-3.5 w-3.5";return (<div className="flex flex-wrap items-center gap-1" data-testid="feature-badges">@@ -52,7 +49,7 @@ export function FeatureBadges({<spankey={t}data-feature={t}- className={`inline-flex items-center gap-1 rounded-full font-medium ring-1 ring-inset ${pad} ${m.cls}`}+ className={`inline-flex items-center gap-1 rounded-full bg-secondary text-micro font-medium text-foreground ${pad}`}><Icon className={icon} strokeWidth={2.25} />{m.label ?? agentBrand(assistantName)}@@ -63,16 +60,14 @@ export function FeatureBadges({<spankey={t}data-feature={t}- className={`inline-flex items-center gap-1 rounded-full bg-muted/40 font-mono text-muted-foreground ring-1 ring-inset ring-border/70 ${pad}`}+ className={`inline-flex items-center gap-1 rounded-full bg-secondary font-mono text-micro text-muted-foreground ${pad}`}><Terminal className={icon} strokeWidth={2} />{t}</span>);})}- {rest > 0 && (- <span className="text-[10px] text-muted-foreground">+{rest}</span>- )}+ {rest > 0 && <span className="text-micro text-muted-foreground">+{rest}</span>}</div>);}diff --git a/jarvis/ui/web/frontend/src/components/runs/LatencyWaterfall.tsx b/jarvis/ui/web/frontend/src/components/runs/LatencyWaterfall.tsxindex 85b59cfafc..5b6ff2410e 100644--- a/jarvis/ui/web/frontend/src/components/runs/LatencyWaterfall.tsx+++ b/jarvis/ui/web/frontend/src/components/runs/LatencyWaterfall.tsx@@ -1,23 +1,40 @@import type { LatencyEntry } from "./types";+/**+ * Per-phase latency, one bar each. The three SLO states are the three status+ * hues: a phase inside budget is alive, a warned one is degraded, a breached+ * one is a fault. `warn` used to be painted in --foreground, which made the+ * middle state the brightest bar in the chart.+ */const BAR: Record<string, string> = {- ok: "bg-muted-foreground/70", warn: "bg-foreground/80", breach: "bg-destructive/80",+ ok: "bg-success",+ warn: "bg-warning",+ breach: "bg-destructive",};export function LatencyWaterfall({ entries }: { entries: LatencyEntry[] }) {- if (entries.length === 0) return <span className="text-muted-foreground/60">n/a</span>;+ if (entries.length === 0)+ return <span className="text-body text-muted-foreground">n/a</span>;const max = Math.max(...entries.map((e) => e.duration_ms), 1);return (<div className="space-y-1">{entries.map((e) => (- <div key={e.phase} className="flex items-center gap-2"- data-testid={`lat-${e.phase}`} data-slo={e.slo_status}>- <span className="w-40 shrink-0 truncate font-mono text-[10px]">{e.phase}</span>- <div className="h-2 flex-1 rounded bg-background">- <div className={`h-2 rounded ${BAR[e.slo_status] ?? BAR.ok}`}- style={{ width: `${Math.max(3, (e.duration_ms / max) * 100)}%` }} />+ <div+ key={e.phase}+ className="flex items-center gap-2"+ data-testid={`lat-${e.phase}`}+ data-slo={e.slo_status}+ >+ <span className="w-40 shrink-0 truncate font-mono text-micro text-muted-foreground">+ {e.phase}+ </span>+ <div className="h-2 flex-1 rounded-full bg-secondary">+ <div+ className={`h-2 rounded-full ${BAR[e.slo_status] ?? BAR.ok}`}+ style={{ width: `${Math.max(3, (e.duration_ms / max) * 100)}%` }}+ /></div>- <span className="w-14 shrink-0 text-right font-mono text-[10px]">+ <span className="w-14 shrink-0 text-right font-mono text-micro tabular-nums text-foreground">{e.duration_ms.toFixed(0)}ms</span></div>diff --git a/jarvis/ui/web/frontend/src/components/runs/MetricsPanel.tsx b/jarvis/ui/web/frontend/src/components/runs/MetricsPanel.tsxindex ab4aeff8cf..f9ecc60a9d 100644--- a/jarvis/ui/web/frontend/src/components/runs/MetricsPanel.tsx+++ b/jarvis/ui/web/frontend/src/components/runs/MetricsPanel.tsx@@ -3,7 +3,14 @@ import type { ReactNode } from "react";import { fmtInt, fmtMs, useRunLocale } from "./format";import type { Run } from "./types";-/** A compact labelled metric: small uppercase label over a mono value. */+/**+ * One measured number with the word for it underneath.+ *+ * A real tile — `.jarvis-stat-tile` is the shared lift surface — rather than+ * the outlined transparent box it used to be, and the label is sentence case+ * at the type floor instead of a 9px letter-spaced all-caps line. `breach`+ * is the only tone carrying hue, because it is the only one that is a fault.+ */export function StatChip({label,value,@@ -14,17 +21,38 @@ export function StatChip({tone?: "default" | "warn" | "breach";}) {const valueCls =- tone === "breach" ? "text-rose-300" : tone === "warn" ? "text-foreground" : "text-foreground";+ tone === "breach"+ ? "text-destructive"+ : tone === "warn"+ ? "text-warning"+ : "text-foreground-strong";return (- <div className="rounded-lg border border-border/70 bg-background/40 px-3 py-2">- <div className="text-[9px] font-medium uppercase tracking-[0.12em] text-muted-foreground">- {label}- </div>- <div className={`mt-0.5 font-mono text-sm tabular-nums ${valueCls}`}>{value}</div>+ <div className="jarvis-stat-tile">+ <div className={`font-mono text-title tabular-nums ${valueCls}`}>{value}</div>+ <div className="mt-0.5 text-micro text-muted-foreground">{label}</div></div>);}+/** A group's name. One weight, one size, no letter-spaced caps. */+function GroupLabel({ children }: { children: ReactNode }) {+ return (+ <div className="mb-stack text-title font-semibold text-foreground-strong">+ {children}+ </div>+ );+}++/** A neutral count chip: `name ×n`. */+function CountChip({ name, count }: { name: string; count: number }) {+ return (+ <span className="inline-flex items-center gap-1 rounded-full bg-secondary px-2 py-0.5 font-mono text-micro text-muted-foreground">+ {name}+ <span className="tabular-nums text-foreground">×{count}</span>+ </span>+ );+}+/** Deep-dive analytics grid for a single run. */export function MetricsPanel({ run }: { run: Run }) {const locale = useRunLocale();@@ -33,8 +61,8 @@ export function MetricsPanel({ run }: { run: Run }) {const tools = Object.entries(a.tool_counts).sort((x, y) => y[1] - x[1]);const eventKinds = Object.entries(run.event_counts ?? {}).sort((x, y) => y[1] - x[1]);return (- <div className="space-y-3" data-testid="metrics-panel">- <div className="grid grid-cols-2 gap-2 sm:grid-cols-3 lg:grid-cols-4">+ <div className="space-y-group" data-testid="metrics-panel">+ <div className="grid grid-cols-2 gap-stack sm:grid-cols-3 lg:grid-cols-4"><StatChip label="Think" value={fmtMs(a.total_think_ms)} /><StatChip label="Speak" value={fmtMs(a.total_speak_ms)} /><StatChip label="Tokens in" value={fmtInt(a.total_tokens_in, locale)} />@@ -47,20 +75,26 @@ export function MetricsPanel({ run }: { run: Run }) {<StatChiplabel="Worst latency"value={a.worst_slo_status}- tone={a.worst_slo_status === "breach" ? "breach" : a.worst_slo_status === "warn" ? "warn" : "default"}+ tone={+ a.worst_slo_status === "breach"+ ? "breach"+ : a.worst_slo_status === "warn"+ ? "warn"+ : "default"+ }/></div>{providers.length > 0 && (<div>- <div className="mb-1 text-[9px] font-medium uppercase tracking-[0.12em] text-muted-foreground">- Cost by provider- </div>- <div className="space-y-0.5">+ <GroupLabel>Cost by provider</GroupLabel>+ <div className="space-y-1">{providers.map(([p, c]) => (- <div key={p} className="flex items-center justify-between text-[11px]">+ <div key={p} className="flex items-center justify-between text-body"><span className="text-muted-foreground">{p}</span>- <span className="font-mono tabular-nums">${c.toFixed(4)}</span>+ <span className="font-mono tabular-nums text-foreground">+ ${c.toFixed(4)}+ </span></div>))}</div>@@ -72,18 +106,10 @@ export function MetricsPanel({ run }: { run: Run }) {40% CUStepProfiled, and the shape alone often locates a problem. */}{eventKinds.length > 0 && (<div>- <div className="mb-1 text-[9px] font-medium uppercase tracking-[0.12em] text-muted-foreground">- Recorded events- </div>+ <GroupLabel>Recorded events</GroupLabel><div className="flex flex-wrap gap-1" data-testid="event-histogram">{eventKinds.map(([kind, n]) => (- <span- key={kind}- className="inline-flex items-center gap-1 rounded-md bg-muted/40 px-1.5 py-0.5 font-mono text-[10px] text-muted-foreground ring-1 ring-inset ring-border/60"- >- {kind}- <span className="text-foreground/80">×{n}</span>- </span>+ <CountChip key={kind} name={kind} count={n} />))}</div></div>@@ -91,18 +117,10 @@ export function MetricsPanel({ run }: { run: Run }) {{tools.length > 0 && (<div>- <div className="mb-1 text-[9px] font-medium uppercase tracking-[0.12em] text-muted-foreground">- Tool usage- </div>+ <GroupLabel>Tool usage</GroupLabel><div className="flex flex-wrap gap-1">{tools.map(([name, n]) => (- <span- key={name}- className="inline-flex items-center gap-1 rounded-md bg-muted/40 px-1.5 py-0.5 font-mono text-[10px] text-muted-foreground ring-1 ring-inset ring-border/60"- >- {name}- <span className="text-foreground/80">×{n}</span>- </span>+ <CountChip key={name} name={name} count={n} />))}</div></div>diff --git a/jarvis/ui/web/frontend/src/components/runs/OutcomeBadge.tsx b/jarvis/ui/web/frontend/src/components/runs/OutcomeBadge.tsxindex abceb302cd..7b69cc7fa2 100644--- a/jarvis/ui/web/frontend/src/components/runs/OutcomeBadge.tsx+++ b/jarvis/ui/web/frontend/src/components/runs/OutcomeBadge.tsx@@ -1,38 +1,39 @@-// Functional run/turn outcome — distinct from SLO latency. Disciplined colors:-// emerald = success, amber = partial (hiccup but answered), rose = genuine failure.-// An unknown value degrades to a neutral style (BUG-008 string contract).+/**+ * The functional outcome of a run or a turn — distinct from SLO latency.+ *+ * The ramp used to be inverted: "success" drew the same grey dot as an unknown+ * value, "partial" was painted in --foreground and so became the loudest mark+ * on the screen, and "failed" reached for a literal rose. Status is the only+ * place hue is allowed in this product, and it has exactly three jobs — life,+ * degraded, fault. So the dot carries the hue, the chip stays on the neutral+ * lift every other small surface uses, and the unknown value is the ONE that+ * recedes (--faint-foreground), never the successful one.+ *+ * An unknown value still degrades to a neutral style rather than throwing+ * (BUG-008 string contract).+ */-type OutcomeStyle = { label: string; dot: string; badge: string };+type OutcomeStyle = { label: string; dot: string };const OUTCOME_STYLE: Record<string, OutcomeStyle> = {- success: {- label: "Success",- dot: "bg-muted-foreground",- badge: "bg-muted-foreground/10 text-muted-foreground ring-muted-foreground/25",- },- partial: {- label: "Partial",- dot: "bg-foreground",- badge: "bg-foreground/10 text-foreground ring-foreground/25",- },- failed: {- label: "Failed",- dot: "bg-rose-500",- badge: "bg-rose-500/10 text-rose-300 ring-rose-500/25",- },+ success: { label: "Success", dot: "bg-success" },+ partial: { label: "Partial", dot: "bg-warning" },+ failed: { label: "Failed", dot: "bg-destructive" },};-const FALLBACK: OutcomeStyle = {- label: "—",- dot: "bg-muted-foreground/40",- badge: "bg-muted/40 text-muted-foreground ring-border",-};+const FALLBACK: OutcomeStyle = { label: "—", dot: "bg-faint-foreground" };export function outcomeStyle(outcome: string): OutcomeStyle {return OUTCOME_STYLE[outcome] ?? FALLBACK;}-export function OutcomeDot({ outcome, className = "" }: { outcome: string; className?: string }) {+export function OutcomeDot({+ outcome,+ className = "",+}: {+ outcome: string;+ className?: string;+}) {return (<spandata-outcome={outcome}@@ -46,7 +47,7 @@ export function OutcomeBadge({ outcome }: { outcome: string }) {return (<spandata-outcome={outcome}- className={`inline-flex items-center gap-1.5 rounded-full px-2 py-0.5 text-[11px] font-medium ring-1 ring-inset ${s.badge}`}+ className="inline-flex items-center gap-1.5 rounded-full bg-secondary px-2.5 py-0.5 text-micro font-medium text-foreground"><span className={`h-1.5 w-1.5 rounded-full ${s.dot}`} />{s.label}diff --git a/jarvis/ui/web/frontend/src/components/runs/RunDetail.tsx b/jarvis/ui/web/frontend/src/components/runs/RunDetail.tsxindex d5c858e063..8c4f5fdb96 100644--- a/jarvis/ui/web/frontend/src/components/runs/RunDetail.tsx+++ b/jarvis/ui/web/frontend/src/components/runs/RunDetail.tsx@@ -2,6 +2,7 @@ import { useState } from "react";import type { ReactNode } from "react";import { useRunDetail } from "@/hooks/useRuns";import { Badge } from "@/components/ui/badge";+import { PanelSkeleton } from "@/components/layout/PanelSkeleton";import { runExportUrl } from "@/components/runs/api";import { RunTurnCard } from "@/components/runs/RunTurnCard";import { OutcomeBadge } from "@/components/runs/OutcomeBadge";@@ -27,7 +28,14 @@ export function RunDetail({ sessionId }: { sessionId: string }) {const [showEnv, setShowEnv] = useState(false);const [showSessionEvents, setShowSessionEvents] = useState(false);if (isLoading || !run) {- return <div className="p-6 text-sm text-muted-foreground">…</div>;+ // The real column at its real height with bars where the turn cards go —+ // a centred "…" in a black rectangle is indistinguishable from a section+ // that failed to load.+ return (+ <div className="mx-auto w-full max-w-reading p-5">+ <PanelSkeleton rows={4} rowHeight={132} label={t("run_inspector.title")} />+ </div>+ );}const a = run.analytics;@@ -51,11 +59,11 @@ export function RunDetail({ sessionId }: { sessionId: string }) {<div className="flex h-full min-h-0 flex-col" data-testid="run-detail">{/* ── Run header (sticky) ─────────────────────────────────── */}<div className="shrink-0 border-b border-border px-5 py-4">- <div className="mx-auto flex w-full max-w-5xl items-start justify-between gap-3">+ <div className="mx-auto flex w-full max-w-reading items-start justify-between gap-3"><div className="min-w-0 space-y-2"><div className="flex items-center gap-2"><OutcomeBadge outcome={run.outcome} />- <span className="font-mono text-xs text-muted-foreground">+ <span className="font-mono text-meta tabular-nums text-muted-foreground">{started.toLocaleString(locale)}{ended && ` — ${ended.toLocaleTimeString(locale)}`}</span>@@ -69,15 +77,13 @@ export function RunDetail({ sessionId }: { sessionId: string }) {<Badge variant="outline">${run.session.total_cost_usd.toFixed(3)}</Badge>)}{tokens > 0 && (- <Badge variant="outline" className="text-[10px]">- {tokens.toLocaleString(locale)} tok- </Badge>+ <Badge variant="outline">{tokens.toLocaleString(locale)} tok</Badge>)}{run.session.hangup_reason && (<Badge variant="outline">{run.session.hangup_reason}</Badge>)}{totalEvents > 0 && (- <Badge variant="outline" className="text-[10px]">+ <Badge variant="outline">{totalEvents.toLocaleString(locale)} {t("run_inspector.stream.events")}</Badge>)}@@ -85,13 +91,13 @@ export function RunDetail({ sessionId }: { sessionId: string }) {</div>{/* The run's recorded setup, always visible: mode + provider decidehow every number below should be read. */}- <div className="flex flex-wrap items-center gap-1.5 pt-0.5 text-[10px] text-muted-foreground">+ <div className="flex flex-wrap items-center gap-1.5 pt-0.5">{[env.voice_mode, env.wake_source, env.language, ...env.providers, ...env.models].filter(Boolean).map((v, i) => (<spankey={`${v}-${i}`}- className="rounded bg-muted/40 px-1.5 py-px font-mono ring-1 ring-inset ring-border/60"+ className="rounded-full bg-secondary px-2 py-0.5 font-mono text-micro text-muted-foreground">{v}</span>@@ -105,7 +111,7 @@ export function RunDetail({ sessionId }: { sessionId: string }) {</div><a- className="shrink-0 rounded-md border border-border/70 px-2 py-1 text-[11px] text-muted-foreground transition-colors hover:border-border hover:text-foreground"+ className="shrink-0 rounded-md px-2 py-1 text-meta text-muted-foreground transition-colors hover:bg-secondary hover:text-foreground"href={runExportUrl(sessionId)}target="_blank"rel="noreferrer"@@ -117,7 +123,7 @@ export function RunDetail({ sessionId }: { sessionId: string }) {{/* ── Scrollable body (centered reading column) ───────────── */}<div className="min-h-0 flex-1 overflow-y-auto">- <div className="mx-auto w-full max-w-5xl space-y-3 p-5">+ <div className="mx-auto w-full max-w-reading space-y-stack p-5"><Collapsiblelabel={t("run_inspector.environment")}open={showEnv}@@ -158,31 +164,35 @@ export function RunDetail({ sessionId }: { sessionId: string }) {);}+/**+ * The worst latency this run reached, shown only when it is not "ok".+ * `warn` is degraded and `breach` is a fault — it used to be drawn in+ * --foreground, which made a warning the brightest chip in the header.+ */function LatencyChip({ status }: { status: string }) {if (status === "ok") return null;- const cls =- status === "breach"- ? "border-rose-500/30 bg-rose-500/10 text-rose-300"- : "border-foreground/30 bg-foreground/10 text-foreground";return (- <span className={`rounded-full border px-2 py-0.5 text-[10px] font-medium ${cls}`}>- latency {status}- </span>+ <Badge variant={status === "breach" ? "fault" : "degraded"}>latency {status}</Badge>);}+/**+ * A disclosure row. No box: the header is a row that hovers and the body is+ * separated by the padding it opens into, which is what the rest of the app+ * does. An outline around a closed section is chrome around nothing.+ */function Collapsible({label, open, onToggle, children, testId = "metrics-toggle",}: {label: string; open: boolean; onToggle: () => void; children: ReactNode; testId?: string;}) {return (- <div className="rounded-lg border border-border/70">+ <div><buttontype="button"data-testid={testId}onClick={onToggle}- className="flex w-full items-center gap-2 px-3 py-2 text-left text-xs font-medium text-foreground/90 transition-colors hover:text-foreground"+ className="flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-left text-body font-medium text-foreground transition-colors hover:bg-secondary"><span className="text-muted-foreground">{open ? "▾" : "▸"}</span>{label}@@ -190,7 +200,7 @@ function Collapsible({{open && (<divdata-testid={testId.replace(/-toggle$/, "")}- className="border-t border-border/60 px-3 py-3 text-xs"+ className="px-2 pb-stack pt-stack">{children}</div>diff --git a/jarvis/ui/web/frontend/src/components/runs/RunList.tsx b/jarvis/ui/web/frontend/src/components/runs/RunList.tsxindex 9e5ddb4327..257f4cf116 100644--- a/jarvis/ui/web/frontend/src/components/runs/RunList.tsx+++ b/jarvis/ui/web/frontend/src/components/runs/RunList.tsx@@ -3,8 +3,19 @@ import type { RunListItem } from "./types";import { OutcomeDot } from "./OutcomeBadge";import { FeatureBadges } from "./FeatureBadges";+/**+ * The run rail. One row per recorded session.+ *+ * Separation is fill, not rule: the row rests on the rail's own ground, hover+ * lifts it to --secondary and selection keeps that lift with the label in the+ * ink ceiling. The old row drew a border AND a 2px left tick AND a background+ * — three devices saying the same thing, of which the fill is the only one an+ * eye actually reads on near-black.+ */export function RunList({- items, selectedId, onSelect,+ items,+ selectedId,+ onSelect,}: {items: RunListItem[];selectedId: string | null;@@ -21,28 +32,28 @@ export function RunList({type="button"onClick={() => onSelect(r.session_id)}className={cn(- "group relative flex w-full flex-col gap-1.5 rounded-lg border px-3 py-2.5 text-left transition-colors",+ "flex w-full flex-col gap-1.5 rounded-md px-3 py-2.5 text-left transition-colors",selected- ? "border-border bg-background"- : "border-transparent hover:border-border/60 hover:bg-background/50",+ ? "bg-secondary text-foreground-strong"+ : "hover:bg-secondary",)}>- {selected && (- <span className="absolute inset-y-2 left-0 w-0.5 rounded-full bg-foreground" />- )}<div className="flex items-center gap-2"><OutcomeDot outcome={r.outcome} />- <span className="flex-1 truncate text-sm">+ <span className="flex-1 truncate text-body">{r.preview || r.session_id.slice(0, 8)}</span>- <span className="shrink-0 text-[10px] tabular-nums text-muted-foreground">- {new Date(r.started_ms).toLocaleTimeString([], { hour: "2-digit", minute: "2-digit" })}+ <span className="shrink-0 text-micro tabular-nums text-muted-foreground">+ {new Date(r.started_ms).toLocaleTimeString([], {+ hour: "2-digit",+ minute: "2-digit",+ })}</span></div>- <div className="flex items-center gap-1.5 pl-4 text-[10px] tabular-nums text-muted-foreground">+ <div className="flex items-center gap-1.5 pl-4 text-micro tabular-nums text-muted-foreground"><span>{r.turn_count} turns</span>{r.duration_s !== null && <span>· {r.duration_s.toFixed(1)}s</span>}- {slow && <span className="text-foreground/80">· slow</span>}+ {slow && <span className="text-warning">· slow</span>}</div>{r.feature_tags.length > 0 && (<div className="pl-4">diff --git a/jarvis/ui/web/frontend/src/components/runs/RunTurnCard.tsx b/jarvis/ui/web/frontend/src/components/runs/RunTurnCard.tsxindex 16bad9a523..6b9b510780 100644--- a/jarvis/ui/web/frontend/src/components/runs/RunTurnCard.tsx+++ b/jarvis/ui/web/frontend/src/components/runs/RunTurnCard.tsx@@ -7,6 +7,10 @@* recorded rationale, the latency waterfall, tool I/O, the raw event stream and* errors. Tabs rather than five stacked sections, because the useful move is* "show me the events for THIS turn", not "scroll past four panels".+ *+ * Surfaces: the card is the object, everything nested inside it steps up to+ * the lift token once and stops there — the forensic panel deliberately keeps+ * NO fill so the rows inside it still have a hover to travel to.*/import { useState } from "react";import type { ReactNode } from "react";@@ -28,11 +32,14 @@ import { ErrorPanel } from "./ErrorPanel";import { EventStream } from "./EventStream";import type { RunTurn, TranscriptLine } from "./types";-const ROLE_TONE: Record<string, string> = {- jarvis: "border-primary/20 bg-primary/5",- system: "border-border bg-muted/30",- tool: "border-sky-400/20 bg-sky-400/5",- error: "border-destructive/30 bg-destructive/10",+/**+ * A trace line's role is told by its LABEL, not by a tinted box — four boxes+ * in four hues around four one-line strings was the loudest thing on the card+ * and said less than the word already printed inside each badge. Only `error`+ * keeps ink, because only `error` is a status.+ */+const ROLE_INK: Record<string, string> = {+ error: "text-destructive",};const ROLE_LABEL: Record<string, string> = {@@ -67,7 +74,11 @@ export function RunTurnCard({ turn }: { turn: RunTurn }) {// quiet empty tab, never crash the inspector (BUG-008 degrade contract).const events = turn.events ?? [];const tabs: Array<{ id: TabId; label: string; count: number }> = [- { id: "decisions", label: t("run_inspector.panel.decision"), count: turn.decision_path.length },+ {+ id: "decisions",+ label: t("run_inspector.panel.decision"),+ count: turn.decision_path.length,+ },{ id: "latency", label: t("run_inspector.panel.latency"), count: turn.latency.length },{ id: "tools", label: t("run_inspector.panel.tools"), count: turn.tools.length },{ id: "events", label: t("run_inspector.panel.events"), count: events.length },@@ -76,20 +87,20 @@ export function RunTurnCard({ turn }: { turn: RunTurn }) {const hasForensics = tabs.some((x) => x.count > 0);return (- <Card className="bg-background/40" data-testid="run-turn-card">- <CardContent className="space-y-3 p-4">+ <Card data-testid="run-turn-card">+ <CardContent className="space-y-stack p-5">{/* Header: turn # + outcome + brain meta */}<div className="flex flex-wrap items-center justify-between gap-2"><div className="flex items-center gap-2">- <span className="font-mono text-sm font-semibold">Turn {turn.idx + 1}</span>+ <span className="font-mono text-title font-semibold text-foreground-strong">+ Turn {turn.idx + 1}+ </span><OutcomeBadge outcome={turn.outcome} /></div>- <div className="flex flex-wrap items-center gap-1.5 text-[11px] text-muted-foreground">- {turn.tier && (- <Badge variant="outline" className="text-[10px]">{turn.tier}</Badge>- )}+ <div className="flex flex-wrap items-center gap-1.5 text-meta text-muted-foreground">+ {turn.tier && <Badge variant="outline">{turn.tier}</Badge>}{(turn.model || turn.provider) && (- <Badge variant="outline" className="font-mono text-[10px]">+ <Badge variant="outline" className="font-mono">{turn.model || turn.provider}</Badge>)}@@ -98,48 +109,46 @@ export function RunTurnCard({ turn }: { turn: RunTurn }) {would misreport it as free. */}{turn.usage_recorded ? (<>- <span>{fmtInt(turn.tokens_in, locale)}+{fmtInt(turn.tokens_out, locale)} tok</span>- {turn.cost_usd > 0 && <span>· ${turn.cost_usd.toFixed(4)}</span>}+ <span className="tabular-nums">+ {fmtInt(turn.tokens_in, locale)}+{fmtInt(turn.tokens_out, locale)} tok+ </span>+ {turn.cost_usd > 0 && (+ <span className="tabular-nums">· ${turn.cost_usd.toFixed(4)}</span>+ )}</>) : (- <span className="italic text-muted-foreground/70">- {t("run_inspector.no_usage")}- </span>+ <span className="italic">{t("run_inspector.no_usage")}</span>)}</div></div>{/* User */}{turn.user_text && (- <Block icon={<Mic2 className="h-3 w-3" />} label="User" accent="text-muted-foreground"- box="border-muted-foreground/20 bg-muted-foreground/5">+ <Block icon={<Mic2 className="h-3.5 w-3.5" />} label="User">{turn.user_text}</Block>)}{/* Triggered capabilities — the per-turn headline */}{triggered.length > 0 && (- <div className="flex flex-wrap items-center gap-1.5 rounded-md border border-foreground/20 bg-foreground/5 px-2 py-1.5 text-[11px]">- <Zap className="h-3.5 w-3.5 shrink-0 text-foreground" />- <span className="font-medium uppercase tracking-wider text-foreground/90">- {t("run_inspector.triggered")}- </span>+ <div className="flex flex-wrap items-center gap-2 text-meta">+ <Zap className="h-3.5 w-3.5 shrink-0 text-muted-foreground" />+ <span className="text-muted-foreground">{t("run_inspector.triggered")}</span><FeatureBadges tags={triggered} /></div>)}{/* Assistant reply */}{turn.jarvis_text && (- <Block icon={<Volume2 className="h-3 w-3" />} label={assistantName} accent="text-primary"- box="border-primary/20 bg-primary/5">+ <Block icon={<Volume2 className="h-3.5 w-3.5" />} label={assistantName}>{turn.jarvis_text}</Block>)}{/* What happened — intermediate phrases, tool outcomes, system outputs */}{trace.length > 0 && (- <div className="space-y-1.5 border-t border-border/50 pt-2">- <div className="text-[11px] uppercase tracking-wider text-muted-foreground">+ <div className="space-y-1 border-t border-border pt-stack">+ <div className="text-meta text-muted-foreground">{t("run_inspector.what_happened")}</div>{trace.map((l, i) => (@@ -155,33 +164,33 @@ export function RunTurnCard({ turn }: { turn: RunTurn }) {{/* Think / speak */}{(turn.think_ms > 0 || turn.speak_ms > 0) && (- <div className="flex flex-wrap items-center gap-3 text-[11px] text-muted-foreground">- <span className="flex items-center gap-1">- <Brain className="h-3 w-3 text-foreground" /> {fmtMs(turn.think_ms)} thinking+ <div className="flex flex-wrap items-center gap-3 text-meta text-muted-foreground">+ <span className="flex items-center gap-1 tabular-nums">+ <Brain className="h-3.5 w-3.5" /> {fmtMs(turn.think_ms)} thinking</span>- <span className="flex items-center gap-1">- <Hourglass className="h-3 w-3 text-primary" /> {fmtMs(turn.speak_ms)} speaking+ <span className="flex items-center gap-1 tabular-nums">+ <Hourglass className="h-3.5 w-3.5" /> {fmtMs(turn.speak_ms)} speaking</span></div>)}{/* Forensics — deep, on demand */}{hasForensics && (- <div className="border-t border-border/50 pt-2">+ <div className="border-t border-border pt-stack"><buttontype="button"data-testid="forensics-toggle"onClick={() => setShowForensics((v) => !v)}- className="flex items-center gap-1.5 text-[11px] font-medium text-muted-foreground transition-colors hover:text-foreground"+ className="flex items-center gap-1.5 text-meta font-medium text-muted-foreground transition-colors hover:text-foreground"><span>{showForensics ? "▾" : "▸"}</span>{t("run_inspector.forensics")}- <span className="text-[10px] text-muted-foreground/70">+ <span className="tabular-nums">· {events.length} {t("run_inspector.stream.events")}</span></button>{showForensics && (- <div className="mt-2 space-y-2">+ <div className="mt-stack space-y-stack"><div className="flex flex-wrap gap-1" role="tablist">{tabs.map((x) => (<button@@ -192,20 +201,22 @@ export function RunTurnCard({ turn }: { turn: RunTurn }) {data-testid={`forensic-tab-${x.id}`}onClick={() => setTab(x.id)}disabled={x.count === 0}- className={`rounded-md px-2 py-1 text-[11px] font-medium transition-colors ${+ className={`rounded-md px-2 py-1 text-meta font-medium transition-colors ${tab === x.id- ? "bg-primary/15 text-foreground ring-1 ring-inset ring-primary/30"+ ? "bg-secondary text-foreground-strong": x.count === 0- ? "text-muted-foreground/40"- : "text-muted-foreground hover:bg-muted/40 hover:text-foreground"+ ? "text-faint-foreground"+ : "text-muted-foreground hover:bg-secondary hover:text-foreground"}`}>{x.label}- <span className="ml-1 tabular-nums opacity-70">{x.count}</span>+ <span className="ml-1 tabular-nums text-muted-foreground">+ {x.count}+ </span></button>))}</div>- <div className="rounded-md border border-border/50 bg-background/30 p-2 text-xs">+ <div>{tab === "decisions" && <DecisionPath steps={turn.decision_path} />}{tab === "latency" && <LatencyWaterfall entries={turn.latency} />}{tab === "tools" && <ToolTable tools={turn.tools} />}@@ -233,54 +244,71 @@ function TurnFacts({ turn }: { turn: RunTurn }) {if (turn.extras.cache_hit !== null) {facts.push([t("run_inspector.facts.cache"),- turn.extras.cache_hit ? t("run_inspector.facts.cache_hit") : t("run_inspector.facts.cache_miss"),+ turn.extras.cache_hit+ ? t("run_inspector.facts.cache_hit")+ : t("run_inspector.facts.cache_miss"),]);}if (turn.extras.interrupted) {facts.push([t("run_inspector.facts.interrupted"), "yes"]);}if (turn.extras.context_tokens) {- facts.push([t("run_inspector.facts.context"), `${fmtInt(turn.extras.context_tokens, locale)} tok`]);+ facts.push([+ t("run_inspector.facts.context"),+ `${fmtInt(turn.extras.context_tokens, locale)} tok`,+ ]);}facts.push(["trace_id", turn.trace_id]);return (- <div className="flex flex-wrap items-center gap-x-3 gap-y-1 text-[10px] text-muted-foreground">+ <div className="flex flex-wrap items-center gap-x-3 gap-y-1 text-micro text-muted-foreground">{facts.map(([k, v]) => (<span key={k} className="inline-flex items-center gap-1">- <span className="uppercase tracking-[0.1em] opacity-70">{k}</span>- <span className="font-mono text-foreground/70">{v}</span>+ <span>{k}</span>+ <span className="font-mono text-foreground">{v}</span></span>))}</div>);}+/**+ * One side of the conversation. The label names the speaker; the words sit on+ * the card's lift surface so the reading block is an object, not an outline.+ */function Block({- icon, label, accent, box, children,+ icon,+ label,+ children,}: {- icon: ReactNode; label: string; accent: string; box: string; children: ReactNode;+ icon: ReactNode;+ label: string;+ children: ReactNode;}) {return (<div className="space-y-1">- <div className={`flex items-center gap-1.5 text-[11px] uppercase tracking-wider ${accent}`}>+ <div className="flex items-center gap-1.5 text-meta text-muted-foreground">{icon}{label}</div>- <div className={`rounded-md border p-2 text-sm leading-relaxed ${box}`}>{children}</div>+ <div className="rounded-md bg-secondary p-stack text-reading text-foreground">+ {children}+ </div></div>);}function TraceLine({ line }: { line: TranscriptLine }) {- const tone = ROLE_TONE[line.role] ?? "border-border bg-muted/20";const label = line.spoken_kind || ROLE_LABEL[line.role] || line.role;return (- <div className={`flex items-start gap-2 rounded-md border p-2 text-[13px] ${tone}`}>- <Badge variant="secondary" className="mt-0.5 shrink-0 text-[9px] uppercase tracking-wide">+ <div className="flex items-start gap-2 rounded-md px-2 py-1.5 text-meta transition-colors hover:bg-secondary">+ <Badge variant="secondary" className="mt-px shrink-0">{label}</Badge>- <span className="min-w-0 flex-1 break-words">{line.text}</span>+ <span+ className={`min-w-0 flex-1 break-words ${ROLE_INK[line.role] ?? "text-foreground"}`}+ >+ {line.text}+ </span></div>);}-diff --git a/jarvis/ui/web/frontend/src/components/runs/ToolTable.tsx b/jarvis/ui/web/frontend/src/components/runs/ToolTable.tsxindex b6603fe509..ba3c888fae 100644--- a/jarvis/ui/web/frontend/src/components/runs/ToolTable.tsx+++ b/jarvis/ui/web/frontend/src/components/runs/ToolTable.tsx@@ -16,18 +16,28 @@ import { useT } from "@/i18n";import type { ToolCall } from "./types";+/**+ * The risk ladder, read left to right: two quiet tiers, then the two that want+ * a human. `ask` is degraded (someone has to answer), `block` is a fault. The+ * old table painted `monitor` sky and `ask` in near-white, which made the+ * second-quietest tier the loudest thing in the row.+ */const RISK_STYLE: Record<string, string> = {- safe: "text-muted-foreground/80",- monitor: "text-sky-300/80",- ask: "text-foreground/90",- block: "text-rose-300",+ safe: "text-faint-foreground",+ monitor: "text-muted-foreground",+ ask: "text-warning",+ block: "text-destructive",};export function ToolTable({ tools }: { tools: ToolCall[] }) {const t = useT();const [open, setOpen] = useState<Set<number>>(new Set());if (tools.length === 0) {- return <span className="text-muted-foreground/60">{t("run_inspector.tools.empty")}</span>;+ return (+ <span className="text-body text-muted-foreground">+ {t("run_inspector.tools.empty")}+ </span>+ );}const toggle = (i: number) =>setOpen((prev) => {@@ -47,45 +57,61 @@ export function ToolTable({ tools }: { tools: ToolCall[] }) {key={`${tool.name}-${i}`}data-tool={tool.name}data-success={tool.success}- className="rounded-md border border-border/50 bg-background/40"+ className="overflow-hidden rounded-md"><buttontype="button"onClick={() => detail && toggle(i)}- className={`flex w-full items-center gap-2 px-2 py-1.5 text-left text-[11px] ${detail ? "hover:bg-muted/30" : "cursor-default"}`}+ className={`flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-left text-micro transition-colors ${+ detail ? "hover:bg-secondary" : "cursor-default"+ }`}><span className="w-3 shrink-0 text-muted-foreground">{detail ? (- isOpen ? <ChevronDown className="h-3 w-3" /> : <ChevronRight className="h-3 w-3" />+ isOpen ? (+ <ChevronDown className="h-3 w-3" />+ ) : (+ <ChevronRight className="h-3 w-3" />+ )) : null}</span>- <span className="min-w-0 flex-1 truncate font-mono text-foreground/90">{tool.name}</span>+ <span className="min-w-0 flex-1 truncate font-mono text-foreground">+ {tool.name}+ </span>{tool.caller && (- <span className="shrink-0 text-[10px] text-muted-foreground">{tool.caller}</span>+ <span className="shrink-0 text-muted-foreground">{tool.caller}</span>)}{tool.risk_tier && (- <span className={`shrink-0 text-[10px] ${RISK_STYLE[tool.risk_tier] ?? "text-muted-foreground"}`}>+ <span+ className={`shrink-0 ${RISK_STYLE[tool.risk_tier] ?? "text-muted-foreground"}`}+ >{tool.risk_tier}</span>)}{tool.approved_by && (- <span className="shrink-0 text-[10px] text-muted-foreground">+ <span className="shrink-0 text-muted-foreground">✓ {tool.approved_by}</span>)}{tool.duration_ms != null && (- <span className="shrink-0 font-mono text-[10px] tabular-nums text-muted-foreground">+ <span className="shrink-0 font-mono tabular-nums text-muted-foreground">{tool.duration_ms}ms</span>)}<span- className={`shrink-0 font-mono text-[10px] ${tool.success ? "text-muted-foreground" : "text-rose-300"}`}+ className={`shrink-0 font-mono tabular-nums ${+ tool.success ? "text-success" : "text-destructive"+ }`}>- {tool.exit_code != null ? `exit ${tool.exit_code}` : tool.success ? "ok" : "fail"}+ {tool.exit_code != null+ ? `exit ${tool.exit_code}`+ : tool.success+ ? "ok"+ : "fail"}</span></button>{isOpen && detail && (- <div className="space-y-1.5 border-t border-border/40 px-3 py-2">+ <div className="space-y-stack px-3 pb-2 pt-1.5">{tool.command && (<Field label={t("run_inspector.tools.command")} value={tool.command} />)}@@ -93,7 +119,11 @@ export function ToolTable({ tools }: { tools: ToolCall[] }) {<Field label={t("run_inspector.tools.output")} value={tool.output} />)}{tool.error_line && (- <Field label={t("run_inspector.tools.error")} value={tool.error_line} tone="error" />+ <Field+ label={t("run_inspector.tools.error")}+ value={tool.error_line}+ tone="error"+ />)}</div>)}@@ -105,17 +135,21 @@ export function ToolTable({ tools }: { tools: ToolCall[] }) {}function Field({- label, value, tone = "default",+ label,+ value,+ tone = "default",}: {- label: string; value: string; tone?: "default" | "error";+ label: string;+ value: string;+ tone?: "default" | "error";}) {return (<div>- <div className="mb-0.5 text-[9px] font-medium uppercase tracking-[0.12em] text-muted-foreground">- {label}- </div>+ <div className="mb-1 text-micro text-muted-foreground">{label}</div><pre- className={`overflow-x-auto whitespace-pre-wrap break-words rounded bg-background/70 px-2 py-1 font-mono text-[10px] leading-relaxed [overflow-wrap:anywhere] ${tone === "error" ? "text-rose-300" : "text-foreground/80"}`}+ className={`overflow-x-auto whitespace-pre-wrap break-words rounded-md bg-secondary px-2 py-1.5 font-mono text-micro [overflow-wrap:anywhere] ${+ tone === "error" ? "text-destructive" : "text-foreground"+ }`}>{value}</pre>diff --git a/jarvis/ui/web/frontend/src/components/ui/badge.tsx b/jarvis/ui/web/frontend/src/components/ui/badge.tsxindex 8fe07b0636..bf9007b1c9 100644--- a/jarvis/ui/web/frontend/src/components/ui/badge.tsx+++ b/jarvis/ui/web/frontend/src/components/ui/badge.tsx@@ -2,15 +2,43 @@ import * as React from "react";import { cva, type VariantProps } from "class-variance-authority";import { cn } from "@/lib/utils";+/**+ * A chip. Pill-shaped, 11px, and quiet unless it is carrying a status.+ *+ * The default used to be `bg-foreground/70` — a near-white slab that made a+ * neutral label the loudest object on a screen and inverted the ink ramp. It+ * now rests on --secondary, the same lift every other small surface uses, and+ * the three variants that mean something (`life`, `fault`, `degraded`) are the+ * only ones carrying hue. A status is never drawn in --foreground or+ * --primary: white "cancelled" outshouting a green "running" is exactly the+ * inversion those variants exist to prevent.+ *+ * `solid` is the rare deliberate --primary fill; reach for it when a chip is+ * genuinely the one thing to look at, never as a default.+ *+ * A badge does not hover: it is a label, not a control. It is also the ONE+ * place in the product where `uppercase` is allowed, and callers opt into it.+ */const badgeVariants = cva(- "inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",+ "inline-flex items-center rounded-full border px-2.5 py-0.5 text-[11px] font-medium transition-colors ring-offset-background focus:outline-none focus:ring-2 focus:ring-border-strong focus:ring-offset-2",{variants: {variant: {- default: "border-transparent bg-foreground/70 text-primary-foreground shadow hover:bg-primary/80",- secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",- destructive: "border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",- outline: "text-foreground",+ default: "border-border bg-secondary text-foreground",+ secondary: "border-transparent bg-secondary text-muted-foreground",+ outline: "border-border-strong bg-transparent text-muted-foreground",+ solid: "border-transparent bg-primary text-primary-foreground",+ /** Running, live, connected, on, passed. */+ life: "border-transparent bg-success text-primary-foreground",+ /** Failed, blocked, disconnected, error. */+ fault: "border-transparent bg-destructive text-destructive-foreground",+ /** Stale, partial, needs attention. */+ degraded: "border-transparent bg-warning text-primary-foreground",+ /**+ * Retained so the ~30 existing call sites keep compiling; `fault` is+ * the name to use for new code.+ */+ destructive: "border-transparent bg-destructive text-destructive-foreground",},},defaultVariants: { variant: "default" },diff --git a/jarvis/ui/web/frontend/src/components/ui/button.tsx b/jarvis/ui/web/frontend/src/components/ui/button.tsxindex c9fb8b5981..7d9ae5dec7 100644--- a/jarvis/ui/web/frontend/src/components/ui/button.tsx+++ b/jarvis/ui/web/frontend/src/components/ui/button.tsx@@ -3,21 +3,35 @@ import { Slot } from "@radix-ui/react-slot";import { cva, type VariantProps } from "class-variance-authority";import { cn } from "@/lib/utils";+/*+ * The interaction ladder only ever goes UP.+ *+ * `ghost` and `outline` used to hover to --accent, which in dark mode is pure+ * white: brushing a toolbar painted a white slab where a quiet control had+ * been. Both now answer with --secondary, one step up the surface ladder in+ * either theme, and keep their ink at --foreground.+ *+ * Focus is a --border-strong ring rather than --ring: a ring is a rim, and a+ * rim is never the brightest thing on the screen.+ */const buttonVariants = cva(- "inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",+ "inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-[background-color,border-color,color,transform] duration-150 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-strong focus-visible:ring-offset-2 motion-safe:active:scale-[0.98] disabled:pointer-events-none disabled:opacity-50",{variants: {variant: {- default: "bg-primary text-primary-foreground shadow hover:bg-primary/90",+ default: "bg-primary text-primary-foreground hover:bg-primary/90",destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",- outline: "border border-input bg-background hover:bg-accent hover:text-accent-foreground",- secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",- ghost: "hover:bg-accent hover:text-accent-foreground",- link: "text-primary underline-offset-4 hover:underline",+ outline: "border border-border-strong bg-transparent hover:bg-secondary hover:text-foreground",+ // A lift-resting control answers with the float step above it.+ secondary: "bg-secondary text-secondary-foreground hover:bg-popover",+ ghost: "hover:bg-secondary hover:text-foreground",+ // --primary is a fill, never running text, so a link button reads in+ // body ink and marks itself with the underline instead.+ link: "text-foreground underline-offset-4 hover:underline",},size: {default: "h-9 px-4 py-2",- sm: "h-8 rounded-md px-3 text-xs",+ sm: "h-8 rounded-md px-3 text-[13px]",lg: "h-10 rounded-md px-8",icon: "h-9 w-9",},diff --git a/jarvis/ui/web/frontend/src/components/ui/card.tsx b/jarvis/ui/web/frontend/src/components/ui/card.tsxindex d9e24a9270..7edf79463b 100644--- a/jarvis/ui/web/frontend/src/components/ui/card.tsx+++ b/jarvis/ui/web/frontend/src/components/ui/card.tsx@@ -1,44 +1,73 @@import * as React from "react";import { cn } from "@/lib/utils";+/**+ * The one card recipe: an OBJECT sized to its content, never a wall.+ *+ * --card may only paint something bounded by its content or by a max-width. A+ * wrapper carrying `flex-1`, `h-full`, `w-full` or `inset-0` is a full-bleed+ * region and belongs at --background or --sidebar; putting this component+ * around one is the mistake that produced "grey slabs" twice.+ *+ * Separation is fill first: the surface does the work, the hairline only+ * finishes the edge (--border is LIGHTER than --card, so on near-black it+ * reads as a lit top edge rather than a drawn outline), and the rim shadow+ * replaces the drop shadow that is mathematically invisible on this ground.+ * No `shadow-float` here — that belongs to menus, dialogs and tooltips.+ *+ * The 20px block padding lives on the parts rather than on the root, so a card+ * can also hold a full-bleed child — a table, a list, a code block — without+ * cancelling an outer padding with a negative margin.+ */const Card = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(({ className, ...props }, ref) => (- <div ref={ref} className={cn("rounded-xl border bg-card text-card-foreground shadow", className)} {...props} />+ <div+ ref={ref}+ className={cn(+ "rounded-lg border border-border bg-card text-foreground shadow-rim",+ className,+ )}+ {...props}+ />),);Card.displayName = "Card";const CardHeader = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(({ className, ...props }, ref) => (- <div ref={ref} className={cn("flex flex-col space-y-1.5 p-6", className)} {...props} />+ <div ref={ref} className={cn("flex flex-col gap-1.5 p-5", className)} {...props} />),);CardHeader.displayName = "CardHeader";const CardTitle = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(({ className, ...props }, ref) => (- <div ref={ref} className={cn("font-semibold leading-none tracking-tight", className)} {...props} />+ <div+ ref={ref}+ className={cn("text-[15px] font-semibold text-foreground-strong", className)}+ {...props}+ />),);CardTitle.displayName = "CardTitle";const CardDescription = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(({ className, ...props }, ref) => (- <div ref={ref} className={cn("text-sm text-muted-foreground", className)} {...props} />+ <div ref={ref} className={cn("text-[13px] text-muted-foreground", className)} {...props} />),);CardDescription.displayName = "CardDescription";const CardContent = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(({ className, ...props }, ref) => (- <div ref={ref} className={cn("p-6 pt-0", className)} {...props} />+ <div ref={ref} className={cn("p-5 pt-0", className)} {...props} />),);CardContent.displayName = "CardContent";const CardFooter = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(({ className, ...props }, ref) => (- <div ref={ref} className={cn("flex items-center p-6 pt-0", className)} {...props} />+ <div ref={ref} className={cn("flex items-center gap-2 p-5 pt-0", className)} {...props} />),);CardFooter.displayName = "CardFooter";diff --git a/jarvis/ui/web/frontend/src/components/ui/combobox.tsx b/jarvis/ui/web/frontend/src/components/ui/combobox.tsxindex f235781566..2815b6e9bb 100644--- a/jarvis/ui/web/frontend/src/components/ui/combobox.tsx+++ b/jarvis/ui/web/frontend/src/components/ui/combobox.tsx@@ -49,7 +49,7 @@ export interface ComboboxOption {export interface ComboboxGroup {id: string;- /** Rendered as a small caps heading; omit for an ungrouped lead band. */+ /** Rendered as a quiet micro heading; omit for an ungrouped lead band. */label?: string;options: ComboboxOption[];}@@ -397,11 +397,16 @@ export function Combobox({data-value={value}onClick={() => !disabled && setOpen((wasOpen) => !wasOpen)}onKeyDown={onTriggerKeyDown}+ // A field is a lift surface, so the fill does the separating and the+ // trigger carries no border at all. Every state used to be a --primary+ // wash — on this ground --primary is pure white, so hovering a select+ // lit it up brighter than the heading above it. Hover steps up to the+ // float surface and focus is a --border-strong ring, the same ladder+ // every other control in the app climbs.className={cn(- "flex w-full items-center gap-2 rounded-md border border-input bg-background px-3 py-2 text-left text-sm",- "shadow-[inset_0_1px_0_hsl(var(--foreground)/0.04)] transition-[border-color,background-color,box-shadow]",- "hover:border-primary/40 hover:bg-muted/20 focus:outline-none focus-visible:border-primary/60 focus-visible:ring-1 focus-visible:ring-primary/70",- open && "border-primary/60 bg-primary/[0.03] ring-1 ring-primary/70",+ "flex w-full items-center gap-2 rounded-md bg-input px-3 py-2 text-left text-sm text-foreground",+ "transition-colors duration-150 hover:bg-popover focus:outline-none focus-visible:ring-2 focus-visible:ring-border-strong",+ open && "bg-popover ring-2 ring-border-strong",disabled && "cursor-not-allowed opacity-50",className,)}@@ -409,7 +414,7 @@ export function Combobox({{selected?.icon}<span className="min-w-0 flex-1 truncate">{triggerLabel}</span>{triggerHint && selected?.hint && (- <span className="shrink-0 truncate text-xs text-muted-foreground">+ <span className="shrink-0 truncate text-[13px] text-muted-foreground">{selected.hint}</span>)}@@ -417,7 +422,9 @@ export function Combobox({aria-hidden="true"className={cn("h-4 w-4 shrink-0 text-muted-foreground transition-transform",- open && "rotate-180 text-primary",+ // Body ink, not --primary: an open chevron is a decoration, and a+ // decoration is never brighter than the label it sits beside.+ open && "rotate-180 text-foreground",)}/></button>@@ -436,10 +443,13 @@ export function Combobox({maxHeight: position.maxHeight,}}onKeyDown={onKeyDown}- className="fixed z-[70] flex flex-col overflow-hidden rounded-lg border border-primary/25 bg-popover/95 shadow-[0_22px_55px_-16px_rgba(0,0,0,0.9),inset_0_1px_0_hsl(var(--foreground)/0.05)] backdrop-blur-xl"+ // The one place a real shadow is allowed: this layer leaves the+ // plane. Opaque --popover rather than a blurred translucent wash,+ // so the list has a predictable ground whatever it covers.+ className="fixed z-[70] flex flex-col overflow-hidden rounded-lg border border-border-strong bg-popover shadow-float">{searchable && (- <div className="flex items-center gap-2 border-b border-border/70 px-3 py-2">+ <div className="flex items-center gap-2 border-b border-border px-3 py-2"><Searcharia-hidden="true"className="h-3.5 w-3.5 shrink-0 text-muted-foreground"@@ -456,7 +466,7 @@ export function Combobox({activeOption?.id}data-testid={testId ? `${testId}-search` : undefined}- className="w-full bg-transparent text-sm outline-none placeholder:text-muted-foreground"+ className="w-full bg-transparent text-sm text-foreground outline-none placeholder:text-faint-foreground"/></div>)}@@ -474,7 +484,7 @@ export function Combobox({>{flat.length === 0 && (<p- className="px-3 py-6 text-center text-xs text-muted-foreground"+ className="px-3 py-6 text-center text-[13px] text-muted-foreground"data-testid={testId ? `${testId}-empty` : undefined}>{emptyLabel ?? "—"}@@ -484,7 +494,10 @@ export function Combobox({{visibleGroups.map((group, groupIndex) => (<div key={group.id}>{group.label && (- <div className="px-3 pb-1 pt-2 text-[10px] font-semibold uppercase tracking-wider text-muted-foreground">+ // Micro, the scale's floor — not a 10px all-caps label.+ // Tiny uppercase is the single construction that makes an+ // interface read as an admin panel.+ <div className="px-3 pb-1 pt-2 text-[11px] font-medium text-muted-foreground">{group.label}</div>)}@@ -518,12 +531,18 @@ export function Combobox({}}}onClick={() => commit(option)}+ // The highlight is drawn on the whole row, and it is a+ // sheen rather than a named surface because the ladder+ // has run out: the panel is already the float layer,+ // and --secondary would sit BELOW it in dark mode —+ // the "selection reads as a hole" defect. A true+ // overlay on a floating layer lifts on black and+ // deepens on paper, which is right in both themes.className={cn(- "relative flex cursor-pointer items-center gap-2 rounded-md border border-transparent px-3 py-1.5 text-sm transition-colors",- isActive && "border-primary/15 bg-primary/10 text-foreground",- isSelected && "bg-primary/15 font-medium text-primary",- option.disabled &&- "cursor-not-allowed text-muted-foreground/45",+ "relative flex cursor-pointer items-center gap-2 rounded-md px-3 py-1.5 text-sm transition-colors",+ isActive && "bg-sheen/[0.08] text-foreground",+ isSelected && "font-medium text-foreground-strong",+ option.disabled && "cursor-not-allowed text-faint-foreground",)}>{option.icon}@@ -531,14 +550,14 @@ export function Combobox({{option.label}</span>{option.hint && (- <span className="shrink-0 truncate text-xs text-muted-foreground">+ <span className="shrink-0 truncate text-[13px] text-muted-foreground">{option.hint}</span>)}{isSelected && (<Checkaria-hidden="true"- className="h-3.5 w-3.5 shrink-0 text-primary"+ className="h-3.5 w-3.5 shrink-0 text-foreground-strong"/>)}</div>diff --git a/jarvis/ui/web/frontend/src/components/ui/scroll-area.tsx b/jarvis/ui/web/frontend/src/components/ui/scroll-area.tsxindex eaf9c3d7d2..256bce1349 100644--- a/jarvis/ui/web/frontend/src/components/ui/scroll-area.tsx+++ b/jarvis/ui/web/frontend/src/components/ui/scroll-area.tsx@@ -45,7 +45,15 @@ const ScrollBar = React.forwardRef<)}{...props}>- <ScrollAreaPrimitive.ScrollAreaThumb className="relative flex-1 rounded-full bg-border" />+ {/*+ The thumb rides OVER content on whatever surface the area happens to+ sit on, so it is the one place a value is allowed to be translucent:+ it is genuinely see-through, not a fill faking a depth step. It used+ to be bound to --border, a structural hairline only a few values above+ its own track — on near-black that is a scratch, not a control. Meta+ ink at 35% reads on every ground in both themes and answers to hover.+ */}+ <ScrollAreaPrimitive.ScrollAreaThumb className="relative flex-1 rounded-full bg-muted-foreground/35 transition-colors hover:bg-muted-foreground/55" /></ScrollAreaPrimitive.ScrollAreaScrollbar>));ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;diff --git a/jarvis/ui/web/frontend/src/components/ui/scroll-to-end-button.tsx b/jarvis/ui/web/frontend/src/components/ui/scroll-to-end-button.tsxindex 37c7a5e979..9fb4796fba 100644--- a/jarvis/ui/web/frontend/src/components/ui/scroll-to-end-button.tsx+++ b/jarvis/ui/web/frontend/src/components/ui/scroll-to-end-button.tsx@@ -33,11 +33,16 @@ export function ScrollToEndButton({data-testid={testId}aria-label={label}title={label}+ // This button hovers over the conversation, so it is opaque and carries+ // the float shadow and the strong rim — not a 95%-opaque card leaning on+ // a blur. It rests one rung below the floating layer so that hover still+ // has somewhere to go: --card up to --secondary, rather than lighting the+ // border with --primary, which on this ground is pure white.className={cn("absolute -top-3 left-1/2 z-10 flex h-8 w-8 -translate-x-1/2 items-center justify-center",- "rounded-full border border-border bg-card/95 text-muted-foreground backdrop-blur",- "transition-colors hover:border-primary/40 hover:text-foreground",- "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",+ "rounded-full border border-border-strong bg-card text-muted-foreground shadow-float",+ "transition-colors duration-150 hover:bg-secondary hover:text-foreground",+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-strong",className,)}>diff --git a/jarvis/ui/web/frontend/src/components/ui/switch.test.tsx b/jarvis/ui/web/frontend/src/components/ui/switch.test.tsxindex 95f84114f3..ce9289b759 100644--- a/jarvis/ui/web/frontend/src/components/ui/switch.test.tsx+++ b/jarvis/ui/web/frontend/src/components/ui/switch.test.tsx@@ -1,11 +1,15 @@/**- * Regression guard for the "invisible off-switch" bug.+ * Regression guard for the two ways this control has been wrong.*- * On the matte-black theme (--background #0A0A0A) the unchecked switch track used- * --input (#1A1A1A) and the thumb used --background (#0A0A0A) — both nearly- * identical to the page background, so an OFF switch vanished. The only disabled- * skill (memory-save) therefore looked like it had no toggle at all. The off- * state must use a clearly visible colour.+ * First it was invisible: on the near-black theme the unchecked track used+ * --input and the thumb used --background, both within a few values of the+ * page, so an OFF switch vanished and the one disabled skill looked as though+ * it had no toggle at all.+ *+ * Then it read backwards: ON was a mid grey while OFF carried the brightest+ * pixel in the row, so a disabled setting drew more attention than an enabled+ * one. ON is now a life signal (--success) and OFF a resting lift surface+ * (--secondary), with the thumb as the ink of whichever track it rides on.*/import { afterEach, describe, expect, it } from "vitest";import { cleanup, render } from "@testing-library/react";@@ -14,14 +18,36 @@ import { Switch } from "@/components/ui/switch";afterEach(cleanup);-describe("Switch off-state visibility", () => {- it("an unchecked switch does not paint its track with the near-invisible bg-input", () => {- const { container } = render(- <Switch checked={false} onCheckedChange={() => {}} />,- );- const root = container.querySelector('[role="switch"]') as HTMLElement;- expect(root).toBeTruthy();+function renderSwitch(checked: boolean) {+ const { container } = render(+ <Switch checked={checked} onCheckedChange={() => {}} />,+ );+ const root = container.querySelector('[role="switch"]') as HTMLElement;+ expect(root).toBeTruthy();+ const thumb = root.querySelector("span") as HTMLElement;+ expect(thumb).toBeTruthy();+ return { root, thumb };+}++describe("Switch state legibility", () => {+ it("never paints a track with a ground the page already uses", () => {+ const { root } = renderSwitch(false);expect(root.className).not.toContain("bg-input");- expect(root.className).toContain("bg-muted-foreground");+ expect(root.className).not.toContain("bg-background");+ expect(root.className).not.toContain("bg-card");+ });++ it("rests OFF on the lift surface and ON on the life colour", () => {+ const { root } = renderSwitch(false);+ expect(root.className).toContain("data-[state=unchecked]:bg-secondary");+ expect(root.className).toContain("data-[state=checked]:bg-success");+ });++ it("keeps the thumb readable on both tracks without outshining the row", () => {+ const { thumb } = renderSwitch(true);+ expect(thumb.className).toContain("data-[state=checked]:bg-primary-foreground");+ expect(thumb.className).toContain("data-[state=unchecked]:bg-muted-foreground");+ // The brightest pixel in the row must never be an OFF switch.+ expect(thumb.className).not.toContain("data-[state=unchecked]:bg-foreground");});});diff --git a/jarvis/ui/web/frontend/src/components/ui/switch.tsx b/jarvis/ui/web/frontend/src/components/ui/switch.tsxindex c0abdbff9a..3f841c8d6f 100644--- a/jarvis/ui/web/frontend/src/components/ui/switch.tsx+++ b/jarvis/ui/web/frontend/src/components/ui/switch.tsx@@ -2,16 +2,30 @@ import * as React from "react";import * as SwitchPrimitives from "@radix-ui/react-switch";import { cn } from "@/lib/utils";+/**+ * ON is a life signal; OFF is a resting surface.+ *+ * The previous recipe read backwards. ON was a mid grey (`bg-foreground/70`)+ * carrying a dark thumb, while OFF put the brightest pixel in the row on the+ * thumb — so a disabled setting drew more attention than an enabled one. The+ * fix before that one had gone the other way and made OFF invisible by+ * painting the track --input over a near-identical ground.+ *+ * The states now sit on opposite sides of the system's own vocabulary: ON+ * takes --success, because "on" is the same fact as "running" and colour has+ * exactly three jobs; OFF takes --secondary, the lift surface, which is a+ * clear step above both the page and a card in either theme. The thumb is the+ * ink of whichever track it rides on, so the knob is always the readable part+ * and never the loudest.+ */const Switch = React.forwardRef<React.ElementRef<typeof SwitchPrimitives.Root>,React.ComponentPropsWithoutRef<typeof SwitchPrimitives.Root>>(({ className, ...props }, ref) => (<SwitchPrimitives.RootclassName={cn(- // OFF state uses muted-foreground (not --input, which is nearly identical- // to the matte-black background and made off switches invisible). ON state- // (signal-yellow --primary) is unchanged.- "peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-foreground/70 data-[state=unchecked]:bg-muted-foreground/30",+ "peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors duration-150 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-strong focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50",+ "data-[state=checked]:bg-success data-[state=unchecked]:bg-secondary",className,)}{...props}@@ -19,9 +33,11 @@ const Switch = React.forwardRef<><SwitchPrimitives.ThumbclassName={cn(- // Light thumb when OFF (visible on the grey track), dark thumb when ON- // (visible on the yellow track).- "pointer-events-none block h-4 w-4 rounded-full bg-background ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0 data-[state=unchecked]:bg-foreground",+ "pointer-events-none block h-4 w-4 rounded-full ring-0 transition-transform duration-150",+ "data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0",+ // On the green track the thumb is the ink that sits on a fill; on the+ // grey track it is meta ink, visible without outshining the label.+ "data-[state=checked]:bg-primary-foreground data-[state=unchecked]:bg-muted-foreground",)}/></SwitchPrimitives.Root>diff --git a/jarvis/ui/web/frontend/src/components/ui/tabs.tsx b/jarvis/ui/web/frontend/src/components/ui/tabs.tsxindex f3a61b162b..92a657f188 100644--- a/jarvis/ui/web/frontend/src/components/ui/tabs.tsx+++ b/jarvis/ui/web/frontend/src/components/ui/tabs.tsx@@ -4,6 +4,20 @@ import { cn } from "@/lib/utils";const Tabs = TabsPrimitive.Root;+/*+ * Selection is a LIFT, not a hole.+ *+ * The active tab used to be painted --background on a --muted track, so the+ * selected chip was the darkest thing in the strip and read as a gap punched+ * through it. The track now rests on --card (the strip is content-sized, so an+ * object surface is legal) and the active chip steps up to --secondary with+ * --foreground-strong ink — the same rest/hover/selected ladder every row in+ * the app uses.+ *+ * The track is deliberately NOT --muted: --muted and --secondary resolve to the+ * same value in both themes, so a muted track would leave the active chip with+ * nothing to stand on.+ */const TabsList = React.forwardRef<React.ElementRef<typeof TabsPrimitive.List>,React.ComponentPropsWithoutRef<typeof TabsPrimitive.List>@@ -11,7 +25,7 @@ const TabsList = React.forwardRef<<TabsPrimitive.Listref={ref}className={cn(- "inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",+ "inline-flex h-9 items-center justify-center gap-1 rounded-lg bg-card p-1 text-muted-foreground",className,)}{...props}@@ -26,7 +40,8 @@ const TabsTrigger = React.forwardRef<<TabsPrimitive.Triggerref={ref}className={cn(- "inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-xs font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",+ "inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-[13px] font-medium ring-offset-background transition-colors duration-150 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-strong focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",+ "hover:text-foreground data-[state=active]:bg-secondary data-[state=active]:text-foreground-strong data-[state=active]:shadow-rim",className,)}{...props}@@ -41,7 +56,7 @@ const TabsContent = React.forwardRef<<TabsPrimitive.Contentref={ref}className={cn(- "mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",+ "mt-3 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-strong focus-visible:ring-offset-2",className,)}{...props}diff --git a/jarvis/ui/web/frontend/src/components/ui/tooltip.tsx b/jarvis/ui/web/frontend/src/components/ui/tooltip.tsxindex 30aea1cd62..5e11770dcd 100644--- a/jarvis/ui/web/frontend/src/components/ui/tooltip.tsx+++ b/jarvis/ui/web/frontend/src/components/ui/tooltip.tsx@@ -4,8 +4,8 @@* The native tooltip is the wrong tool for a truncated label: it waits a* second and a half before appearing, and it is drawn by the OS in whatever* grey box the platform ships — a foreign artifact on top of the app's own- * surfaces. This one appears quickly, wears the same card surface as every- * other floating panel here, and is rendered in a portal so a clipping+ * surfaces. This one appears quickly, wears the same float surface as every+ * other layer that leaves the plane, and is rendered in a portal so a clipping* ancestor (a scrolling rail, an `overflow: hidden` pane) cannot cut it off.** Deliberately NOT interactive, unlike the recap card: a tooltip repeats text@@ -137,8 +137,11 @@ export function QuickTooltip({visibility: position ? "visible" : "hidden",}}className={cn(- "pointer-events-none z-[70] rounded-lg border border-border/90 bg-card px-2.5 py-1.5",- "text-[11.5px] leading-snug text-foreground",+ // A tooltip leaves the plane, so it wears the float surface —+ // --popover with the strong rim and the only shadow the system+ // allows — not the card surface it used to borrow.+ "pointer-events-none z-[70] rounded-lg border border-border-strong bg-popover px-2.5 py-1.5 shadow-float",+ "text-[13px] text-popover-foreground",position && "animate-in fade-in-0 zoom-in-95 duration-100",)}>diff --git a/jarvis/ui/web/frontend/src/components/voice/BrowserRealtimeControl.tsx b/jarvis/ui/web/frontend/src/components/voice/BrowserRealtimeControl.tsxindex 272dd2e41f..3722778ee3 100644--- a/jarvis/ui/web/frontend/src/components/voice/BrowserRealtimeControl.tsx+++ b/jarvis/ui/web/frontend/src/components/voice/BrowserRealtimeControl.tsx@@ -2,6 +2,8 @@ import { useCallback, useEffect, useRef, useState } from "react";import { Loader2, Mic, MicOff, RotateCcw } from "lucide-react";import { VoiceWaveform, type WaveformPhase } from "@/components/overlay/VoiceWaveform";+import { Button } from "@/components/ui/button";+import { Card } from "@/components/ui/card";import { useCapabilities } from "@/hooks/useCapabilities";import { useVoiceMode } from "@/hooks/useVoiceMode";import { useT } from "@/i18n";@@ -364,46 +366,53 @@ export function BrowserRealtimeControl() {? "sidebar.realtime_transcribing": "sidebar.realtime_listening";+ // A failure and a note are different things and used to be painted the+ // same: both ran as near-white 10px lines under the button, so a dead+ // session looked exactly like a provider warning the call survived.+ const faultLine = error || (supportIssue ? supportMessage(supportIssue) : "");+return (- <div className="mt-2 rounded-md border border-border/70 bg-background/50 p-2">- <button- type="button"+ // An object on the rail, not a translucent wash of the room behind it:+ // this control is sized to its content, so it is allowed to lift.+ <Card className="mt-2 p-2">+ <Button+ variant={connected ? "secondary" : "default"}disabled={unavailable || connecting}aria-label={label}aria-pressed={connected}onClick={() => void (connected ? stop() : start())}- className={cn(- "flex min-h-9 w-full touch-manipulation items-center justify-center gap-2 rounded-md px-2",- "text-xs font-medium transition-colors",- "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary",- connected- ? "bg-foreground/70 text-primary-foreground hover:bg-primary/90"- : "border border-border bg-card text-foreground hover:border-primary/50",- (unavailable || connecting) && "cursor-not-allowed opacity-60",- )}+ className="w-full touch-manipulation gap-2"><IconclassName={cn("h-3.5 w-3.5", connecting && "animate-spin motion-reduce:animate-none")}aria-hidden="true"/><span>{connecting ? t("sidebar.realtime_connecting") : label}</span>- </button>+ </Button>{(connected || connecting) && (- <div className="mt-1.5">+ <div className="mt-2"><VoiceWaveform levelRef={levelRef} phase={phase} /></div>)}- <div className="mt-1.5 min-h-4 text-[10px] text-muted-foreground" aria-live="polite">- {error ||- (supportIssue ? supportMessage(supportIssue) : "") ||+ <div+ className={cn(+ "mt-2 min-h-4 text-micro",+ faultLine ? "text-destructive" : "text-muted-foreground",+ )}+ aria-live="polite"+ >+ {faultLine ||(connected? [t(progressKey), effectiveProvider].filter(Boolean).join(" · "): t("sidebar.realtime_browser_hint"))}</div>+ {/* The call survived — a different provider answered, or one warned+ about itself. Degraded, so it wears the degraded hue rather than the+ brightest ink on the rail. */}{notice && !error && (<divdata-testid="realtime-provider-notice"- className="mt-1 text-[10px] leading-snug text-foreground"+ className="mt-1 text-micro text-warning"aria-live="polite">{notice}@@ -414,11 +423,11 @@ export function BrowserRealtimeControl() {{spokenText && error && (<divdata-testid="realtime-spoken-text"- className="mt-1 text-[10px] leading-snug text-foreground"+ className="mt-1 text-micro text-foreground">{spokenText}</div>)}- </div>+ </Card>);}diff --git a/jarvis/ui/web/frontend/src/components/wiki/BacklinksPanel.tsx b/jarvis/ui/web/frontend/src/components/wiki/BacklinksPanel.tsxindex 7633720749..a3a963c30e 100644--- a/jarvis/ui/web/frontend/src/components/wiki/BacklinksPanel.tsx+++ b/jarvis/ui/web/frontend/src/components/wiki/BacklinksPanel.tsx@@ -29,7 +29,7 @@ export function BacklinksPanel({ slug, onSelect }: BacklinksPanelProps) {return (<aside- className="flex h-full w-[380px] shrink-0 flex-col overflow-y-auto border-l border-border p-4"+ className="flex h-full w-[380px] shrink-0 flex-col overflow-y-auto bg-sidebar p-4"data-testid="wiki-backlinks-panel"><BacklinksCard title="Backlinks">@@ -37,13 +37,13 @@ export function BacklinksPanel({ slug, onSelect }: BacklinksPanelProps) {{isError && (<divrole="alert"- className="rounded-md border border-destructive/40 bg-destructive/10 px-3 py-2 text-xs text-destructive"+ className="text-meta text-destructive">{t("backlinks_panel.load_error")}</div>)}{!isLoading && !isError && backlinks.length === 0 && (- <p className="text-xs text-muted-foreground" data-testid="wiki-backlinks-empty">+ <p className="text-body text-muted-foreground" data-testid="wiki-backlinks-empty">{t("backlinks_panel.empty")}</p>)}@@ -53,7 +53,7 @@ export function BacklinksPanel({ slug, onSelect }: BacklinksPanelProps) {type="button"key={bl.slug}onClick={() => onSelect(bl.slug)}- className="flex w-full items-start gap-2 rounded-md px-2 py-2 text-left text-sm text-muted-foreground transition-colors hover:bg-secondary/60 hover:text-foreground"+ className="flex w-full items-start gap-2 rounded-md px-2 py-2 text-left text-body text-muted-foreground transition-colors hover:bg-secondary hover:text-foreground"data-testid="wiki-backlink-item"data-target-slug={bl.slug}>@@ -61,7 +61,7 @@ export function BacklinksPanel({ slug, onSelect }: BacklinksPanelProps) {<div className="min-w-0 flex-1"><div className="truncate text-foreground">{bl.title || bl.slug}</div>{bl.snippet && (- <div className="mt-0.5 text-[11px] leading-snug text-muted-foreground">+ <div className="mt-0.5 text-meta text-muted-foreground">{bl.snippet}</div>)}@@ -81,10 +81,11 @@ function BacklinksCard({children: React.ReactNode;}) {return (- <section className="mb-3 rounded-lg border border-border bg-secondary/30 p-4">- <h3 className="mb-3 text-[11px] font-bold uppercase tracking-widest text-muted-foreground">- {title}- </h3>+ // Not a card: a panel the full height of the section is far too wide to+ // earn --card, so it takes the rail ground and the heading does the work a+ // box used to do badly.+ <section className="mb-stack">+ <h3 className="mb-3 text-title font-semibold text-foreground-strong">{title}</h3><div className="space-y-1">{children}</div></section>);@@ -93,8 +94,8 @@ function BacklinksCard({function BacklinksSkeleton() {return (<div className="space-y-2" data-testid="wiki-backlinks-skeleton">- <div className="h-4 w-3/4 animate-pulse rounded bg-muted" />- <div className="h-3 w-1/2 animate-pulse rounded bg-muted" />+ <div className="h-4 w-3/4 animate-pulse rounded-full bg-sheen/[0.06]" />+ <div className="h-3 w-1/2 animate-pulse rounded-full bg-sheen/[0.06]" /></div>);}diff --git a/jarvis/ui/web/frontend/src/components/wiki/ObsidianSetupDialog.tsx b/jarvis/ui/web/frontend/src/components/wiki/ObsidianSetupDialog.tsxindex 5d78e1386b..c0ef50b96d 100644--- a/jarvis/ui/web/frontend/src/components/wiki/ObsidianSetupDialog.tsx+++ b/jarvis/ui/web/frontend/src/components/wiki/ObsidianSetupDialog.tsx@@ -432,7 +432,7 @@ export function ObsidianSetupDialog({}}><div- className="relative w-full max-w-xl rounded-2xl border border-border bg-card p-6"+ className="relative w-full max-w-xl rounded-lg bg-popover shadow-float p-6"onClick={(e) => e.stopPropagation()}><buttondiff --git a/jarvis/ui/web/frontend/src/components/wiki/PageHeader.tsx b/jarvis/ui/web/frontend/src/components/wiki/PageHeader.tsxindex 94be3cb2ef..4606c0b317 100644--- a/jarvis/ui/web/frontend/src/components/wiki/PageHeader.tsx+++ b/jarvis/ui/web/frontend/src/components/wiki/PageHeader.tsx@@ -39,13 +39,6 @@ const FRIENDLY_LABELS: Record<string, string> = {last_activity: "last activity",};-const TYPE_COLOR: Record<WikiKind, string> = {- entity: "text-[#6aa9ff]",- concept: "text-[#b48cf2]",- project: "text-[#ffb84d]",- session: "text-[#5bd4a4]",-};-const MAX_PILLS = 6;export function PageHeader({@@ -58,7 +51,6 @@ export function PageHeader({}: PageHeaderProps) {const pills = buildPills(frontmatter);const breadcrumb = breadcrumbFromPath(vaultRelPath);- const typeColor = TYPE_COLOR[kind] ?? "text-foreground";return (<header@@ -67,27 +59,34 @@ export function PageHeader({data-slug={slug}><div className="min-w-0 flex-1">- <div className="mb-1.5 text-xs text-muted-foreground" data-testid="wiki-page-crumb">+ <div className="mb-1.5 text-meta text-muted-foreground" data-testid="wiki-page-crumb">{breadcrumb.map((part, idx) => (<span key={idx}>- {idx > 0 && <span className="mx-1.5 text-border">/</span>}+ {idx > 0 && <span className="mx-1.5">/</span>}{part}</span>))}</div>- <h1 className="text-[22px] font-semibold tracking-tight" data-testid="wiki-page-title">+ <h1+ className="text-display font-semibold text-foreground-strong"+ data-testid="wiki-page-title"+ >{title}</h1>- {pills.length > 0 && (- <div className="mt-2.5 flex flex-wrap gap-2 text-xs" data-testid="wiki-page-pills">+ {/* The page kind used to be painted in one of four hardcoded hues.+ Hue belongs to life, fault and identity only — a page's kind is+ none of those, so it is now simply the first neutral chip. */}+ {(pills.length > 0 || kind) && (+ <div className="mt-2.5 flex flex-wrap gap-2 text-meta" data-testid="wiki-page-pills">+ <span className="rounded-full bg-secondary px-2.5 py-0.5 text-foreground">{kind}</span>{pills.map((p) => (<spankey={p.key}- className="rounded-md border border-border bg-secondary/50 px-2.5 py-0.5 text-muted-foreground"+ className="rounded-full bg-secondary px-2.5 py-0.5 text-muted-foreground"data-pill-key={p.key}>- <span className="mr-1.5 text-foreground">{p.label}:</span>- <span className={cn(p.key === "type" && typeColor)}>{p.value}</span>+ <span className="mr-1.5">{p.label}:</span>+ <span className="text-foreground">{p.value}</span></span>))}</div>@@ -137,13 +136,13 @@ function ObsidianButtonPlaceholder({ vaultRelPath: _vaultRelPath }: { vaultRelPatype="button"disabledclassName={cn(- "inline-flex shrink-0 items-center gap-2 rounded-md border border-border bg-secondary/40",- "px-3.5 py-2 text-sm text-muted-foreground opacity-60",+ "inline-flex shrink-0 items-center gap-2 rounded-md bg-secondary",+ "px-3.5 py-2 text-body text-faint-foreground",)}data-testid="obsidian-button-placeholder"title={t("page_header.placeholder_title")}>- <span className="grid h-4 w-4 place-items-center rounded-sm bg-[#b48cf2] text-[10px] font-bold text-background">+ <span className="grid h-4 w-4 place-items-center rounded-sm bg-faint-foreground text-micro font-semibold text-background">O</span>{t("page_header.open_in_obsidian")}diff --git a/jarvis/ui/web/frontend/src/components/wiki/PageRenderer.tsx b/jarvis/ui/web/frontend/src/components/wiki/PageRenderer.tsxindex 171c6c8075..2e93b6c45e 100644--- a/jarvis/ui/web/frontend/src/components/wiki/PageRenderer.tsx+++ b/jarvis/ui/web/frontend/src/components/wiki/PageRenderer.tsx@@ -72,12 +72,9 @@ export function PageRenderer({ slug, onWikilinkClick }: PageRendererProps) {if (pageQuery.isError) {return (<div className="px-7 py-6" data-testid="wiki-page-error">- <div- role="alert"- className="rounded-md border border-destructive/40 bg-destructive/10 px-4 py-3 text-sm text-destructive"- >+ <p role="alert" className="text-body text-destructive">{t("page_renderer.load_error")}- </div>+ </p></div>);}@@ -86,12 +83,9 @@ export function PageRenderer({ slug, onWikilinkClick }: PageRendererProps) {if (!page || !page.ok) {return (<div className="px-7 py-6" data-testid="wiki-page-error">- <div- role="alert"- className="rounded-md border border-destructive/40 bg-destructive/10 px-4 py-3 text-sm text-destructive"- >+ <p role="alert" className="text-body text-destructive">{page?.error ?? t("page_renderer.not_found")}- </div>+ </p></div>);}@@ -121,8 +115,13 @@ export function PageRenderer({ slug, onWikilinkClick }: PageRendererProps) {vaultRelPath={vaultRelPath}/>+ {/* A wiki page is a document, so it is set at the reading step in full+ ink and bounded to the reading measure. It used to run every+ paragraph, list and heading at muted ink under `prose-invert` — a+ dark-only class — so a page read as text somebody had disabled, and+ light mode got dark-mode typography. */}<div- className="prose prose-invert max-w-[820px] px-9 py-7 text-sm"+ className="max-w-reading px-9 py-7 text-reading text-foreground"data-testid="wiki-page-body"><ReactMarkdown@@ -154,31 +153,29 @@ export function PageRenderer({ slug, onWikilinkClick }: PageRendererProps) {);},h1: ({ children }) => (- <h2 className="mb-3 mt-7 border-b border-border pb-2 text-[13px] font-semibold uppercase tracking-wider text-muted-foreground">+ <h2 className="mb-3 mt-group text-title font-semibold text-foreground-strong">{children}</h2>),h2: ({ children }) => (- <h2 className="mb-3 mt-7 border-b border-border pb-2 text-[13px] font-semibold uppercase tracking-wider text-muted-foreground">+ <h2 className="mb-3 mt-group text-title font-semibold text-foreground-strong">{children}</h2>),h3: ({ children }) => (- <h3 className="mb-2 mt-5 text-sm font-semibold uppercase tracking-wider text-muted-foreground">+ <h3 className="mb-2 mt-block text-title font-semibold text-foreground-strong">{children}</h3>),- p: ({ children }) => (- <p className="my-2 text-muted-foreground">{children}</p>- ),+ p: ({ children }) => <p className="my-stack text-foreground">{children}</p>,ul: ({ children }) => (- <ul className="my-2 list-disc pl-5 text-muted-foreground">{children}</ul>+ <ul className="my-stack list-disc pl-5 text-foreground">{children}</ul>),li: ({ children }) => <li className="my-0.5">{children}</li>,code: ({ children, ...rest }) => (<code{...rest}- className="rounded bg-background px-1 py-0.5 font-mono text-[11px] text-muted-foreground"+ className="rounded-sm bg-secondary px-1 py-0.5 font-mono text-meta text-foreground">{children}</code>@@ -225,17 +222,22 @@ function buildKnownSlugSet(tree: WikiTreeResponse | undefined): Set<string> {function PageSkeleton() {return (- <div className="space-y-3 px-7 py-6" data-testid="wiki-page-skeleton">- <div className="h-3 w-32 animate-pulse rounded bg-muted" />- <div className="h-6 w-64 animate-pulse rounded bg-muted" />+ <div+ className="max-w-reading space-y-stack px-9 py-7"+ data-testid="wiki-page-skeleton"+ role="status"+ aria-busy="true"+ >+ <div className="h-3 w-32 animate-pulse rounded-full bg-sheen/[0.06]" />+ <div className="h-6 w-64 animate-pulse rounded-md bg-sheen/[0.06]" /><div className="flex gap-2">- <div className="h-4 w-20 animate-pulse rounded bg-muted" />- <div className="h-4 w-24 animate-pulse rounded bg-muted" />+ <div className="h-4 w-20 animate-pulse rounded-full bg-sheen/[0.06]" />+ <div className="h-4 w-24 animate-pulse rounded-full bg-sheen/[0.06]" /></div>- <div className="mt-6 space-y-2">- <div className="h-3 w-full animate-pulse rounded bg-muted" />- <div className="h-3 w-5/6 animate-pulse rounded bg-muted" />- <div className="h-3 w-4/6 animate-pulse rounded bg-muted" />+ <div className="mt-group space-y-stack">+ <div className="h-3 w-full animate-pulse rounded-full bg-sheen/[0.06]" />+ <div className="h-3 w-5/6 animate-pulse rounded-full bg-sheen/[0.06]" />+ <div className="h-3 w-4/6 animate-pulse rounded-full bg-sheen/[0.06]" /></div></div>);diff --git a/jarvis/ui/web/frontend/src/components/wiki/TreeSidebar.tsx b/jarvis/ui/web/frontend/src/components/wiki/TreeSidebar.tsxindex f744f96c7f..5640dcd27e 100644--- a/jarvis/ui/web/frontend/src/components/wiki/TreeSidebar.tsx+++ b/jarvis/ui/web/frontend/src/components/wiki/TreeSidebar.tsx@@ -19,14 +19,6 @@ interface TreeSidebarProps {onSelect: (slug: string) => void;}-const FOLDER_SWATCH: Record<string, string> = {- entities: "bg-[#6aa9ff]",- concepts: "bg-[#b48cf2]",- projects: "bg-[#ffb84d]",- sessions: "bg-[#5bd4a4]",- _archive: "bg-muted-foreground",-};-const DEFAULT_OPEN = new Set(["entities", "projects"]);export function TreeSidebar({ selectedSlug, onSelect }: TreeSidebarProps) {@@ -87,16 +79,12 @@ export function TreeSidebar({ selectedSlug, onSelect }: TreeSidebarProps) {return (<aside- className="flex h-full w-[260px] shrink-0 flex-col overflow-y-auto border-r border-border"+ className="flex h-full w-[260px] shrink-0 flex-col overflow-y-auto bg-sidebar"data-testid="wiki-tree-sidebar"><div className="flex items-center justify-between border-b border-border px-3 py-3">- <h2 className="text-[11px] font-bold uppercase tracking-widest text-muted-foreground">- Vault- </h2>- <span className="text-[11px] text-muted-foreground">- wiki/obsidian-vault/- </span>+ <h2 className="text-title font-semibold text-foreground-strong">Vault</h2>+ <span className="text-meta text-muted-foreground">wiki/obsidian-vault/</span></div><div className="flex-1 p-2">@@ -104,7 +92,7 @@ export function TreeSidebar({ selectedSlug, onSelect }: TreeSidebarProps) {{isError && (<divrole="alert"- className="m-2 rounded-md border border-destructive/40 bg-destructive/10 px-3 py-2 text-xs text-destructive"+ className="m-2 text-meta text-destructive">{t("tree_sidebar.load_error")}</div>@@ -113,36 +101,26 @@ export function TreeSidebar({ selectedSlug, onSelect }: TreeSidebarProps) {{!isLoading && !isError &&folders.map((folder) => {const isOpen = openFolders.has(folder.name);- const swatch =- FOLDER_SWATCH[folder.name] ?? "bg-muted-foreground";return (<div key={folder.name} className="mb-1"><buttontype="button"onClick={() => toggle(folder.name)}className={cn(- "flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-sm",- "text-muted-foreground hover:bg-secondary/60 hover:text-foreground",+ "flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-body",+ "text-muted-foreground transition-colors hover:bg-secondary hover:text-foreground",)}data-folder={folder.name}data-open={isOpen ? "true" : "false"}><ChevronRightclassName={cn(- "h-3 w-3 shrink-0 text-muted-foreground transition-transform",+ "h-3 w-3 shrink-0 transition-transform",isOpen && "rotate-90",)}/>- <span- className={cn(- "h-2 w-2 shrink-0 rounded-full",- swatch,- )}- /><span className="flex-1 text-left">{folder.name}</span>- <span className="rounded-full bg-secondary/80 px-1.5 py-0 text-[10px] font-medium text-muted-foreground">- {folder.count}- </span>+ <span className="text-meta tabular-nums">{folder.count}</span></button>{isOpen && folder.files.length > 0 && (@@ -157,18 +135,13 @@ export function TreeSidebar({ selectedSlug, onSelect }: TreeSidebarProps) {data-slug={file.slug}data-active={isActive ? "true" : "false"}className={cn(- "flex w-full items-center gap-2 rounded-md px-2 py-1 text-left text-sm transition-colors",+ "flex w-full items-center gap-2 rounded-md px-2 py-1 text-left text-body transition-colors",isActive- ? "bg-primary/10 text-primary shadow-[inset_2px_0_0_hsl(var(--primary))]"- : "text-muted-foreground hover:bg-secondary/60 hover:text-foreground",+ ? "bg-secondary text-foreground-strong"+ : "text-muted-foreground hover:bg-secondary hover:text-foreground",)}>- <FileText- className={cn(- "h-3 w-3 shrink-0",- isActive ? "text-primary" : "text-muted-foreground",- )}- />+ <FileText className="h-3 w-3 shrink-0" /><span className="truncate">{file.slug}.md</span></button></li>@@ -183,18 +156,18 @@ export function TreeSidebar({ selectedSlug, onSelect }: TreeSidebarProps) {{stats && (<div- className="border-t border-border px-3 py-3 text-[11px] text-muted-foreground"+ className="space-y-1 border-t border-border px-3 py-3 text-meta text-muted-foreground"data-testid="wiki-tree-meta">- <div className="flex justify-between">+ <div className="flex justify-between gap-2"><span>Total pages</span>- <span className="text-foreground">{stats.total_pages}</span>+ <span className="tabular-nums text-foreground">{stats.total_pages}</span></div>- <div className="flex justify-between">+ <div className="flex justify-between gap-2"><span>Total links</span>- <span className="text-foreground">{stats.total_links}</span>+ <span className="tabular-nums text-foreground">{stats.total_links}</span></div>- <div className="flex justify-between">+ <div className="flex justify-between gap-2"><span>{t("tree_sidebar.last_change")}</span><span className="text-foreground">{lastChangedLabel}</span></div>@@ -208,7 +181,7 @@ function TreeSkeleton() {return (<div className="space-y-2 p-2" data-testid="wiki-tree-skeleton">{[0, 1, 2, 3].map((i) => (- <div key={i} className="h-4 animate-pulse rounded bg-muted" />+ <div key={i} className="h-4 animate-pulse rounded-full bg-sheen/[0.06]" />))}</div>);diff --git a/jarvis/ui/web/frontend/src/index.css b/jarvis/ui/web/frontend/src/index.cssindex 2d9e1a3f92..bc6448939e 100644--- a/jarvis/ui/web/frontend/src/index.css+++ b/jarvis/ui/web/frontend/src/index.css@@ -1,3 +1,16 @@+/* KNOWN GAP — the three interface families are fetched from a remote host.+ The design system says they ship with the application ("Loaded locally,+ never from a remote host"), and it is right: the desktop app is a WebView+ that regularly starts with no network, and when this request fails the+ whole product renders in Segoe UI / system fallbacks — a different typeface+ at a different width on every surface at once.++ Nothing is vendored under public/ or src/assets/ yet and no font may be+ downloaded here, so the import stays for now. Closing the gap is a separate+ change: add the three families as local files (or an @fontsource dependency),+ replace this line with @font-face rules pointing at them, and delete this+ comment. The family declarations themselves live at the bottom of this file,+ outside the layers — see the note there. */@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700;800&display=swap");@tailwind base;@@ -446,70 +459,90 @@ label,* looks correct in exactly one theme and is a bug in the other — and because* the app defaults to dark, that bug ships invisible to whoever wrote it.*- * The shadcn set below covers flat surfaces and text. Effects — glows, grid- * lines, scrims, glass, hatching — cannot use it, because they need colour- * CHANNELS to build an rgba() from. That is what the four `*-rgb` triples- * exist for; each is a bare `R G B` list meant for `rgb(var(--x) / <alpha>)`.+ * THE SECOND RULE: a surface is a NAMED token, never a token multiplied by+ * an opacity. `bg-card/40` as a resting ground is not "a quieter card", it+ * is a colour nobody chose, and it changes with whatever happens to be+ * behind it. Depth is picked from the ladder below, one step at a time.+ *+ * These two blocks are the only place a colour is decided. The set covers+ * flat surfaces and text. Effects — glows, grid lines, scrims, glass,+ * hatching — cannot use it, because they need colour CHANNELS to build an+ * rgba() from. That is what the four `*-rgb` triples exist for; each is a+ * bare `R G B` list meant for `rgb(var(--x) / <alpha>)`.*/:root {- /* --- Light: the Design.md's palette, taken literally -------------------- Every value below is that document's own: `canvas`, `ink`,- `surface-card`, `surface-strong`, `hairline`, `hairline-soft`,- `semantic-error`. The ground is a solid colour by default- (2026-08-23, maintainer: the app no longer opens on a wallpaper).-- ONE correction. The document's `muted` (#807D72) scores 3.84:1 on its- own canvas — under the 4.5:1 body text needs. On a marketing page it- sets sub-titles; here it carries secondary text in dense lists, so it- keeps the document's exact hue and saturation and drops four points of- lightness to #747167 (4.55:1). */- --background: 60 16% 96%; /* #F7F7F4 — Design.md `canvas` */- --foreground: 53 12% 13%; /* #26251E — Design.md `ink` */- --card: 0 0% 100%; /* white card on paper */+ /* --- Light: the same system, the value scale inverted ------------------+ Warm paper, warm near-black ink. Every role below has exactly the job+ its dark twin has; only the brightness swaps. Objects rise TOWARD white+ and interaction answers by going DOWN into warm grey — the role is "the+ surface that responds", not "the lighter surface".++ The one rule that governs both themes holds here too: lift scales+ inversely with area. --background paints the room and every full-bleed+ region; --card may only paint something sized to its content. A surface+ wider than ~720px never rises above --sidebar. */++ /* --- The surface ladder ---------------------------------------------- */+ --background: 60 16% 96%; /* #F7F7F4 — the room, every full-bleed region */+ --sidebar: 51 18% 92%; /* #EFEEE8 — the rail, standing chrome */+ --card: 0 0% 100%; /* #FFFFFF — an OBJECT: card, bubble, panel */--card-foreground: 53 12% 13%;- --popover: 0 0% 100%;+ --secondary: 50 11% 89%; /* #E6E5E0 — the LIFT: hover, selected, tile */+ --secondary-foreground: 50 13% 9%; /* a selected label is ink-strong */+ --muted: 50 11% 89%; /* = --secondary: the ~65 hover:bg-muted sites read this */+ --input: 50 11% 89%; /* a field is a lift surface */+ --popover: 0 0% 100%; /* #FFFFFF — the floating layer, plus .shadow-float */--popover-foreground: 53 12% 13%;- /* #26251E — the Design.md's `ink`, and equal to --foreground on purpose.- That document uses one value for three jobs: display type, emphasis- (`body-strong`, "Same as ink"), and the filled surface of a primary- action (`button-download`, `pricing-tier-featured`). It has no separate- "primary text" colour, so neither do we.-- The cost is real and named here rather than engineered around: with no- hue and no separate value, `text-primary` cannot make a word louder on- its own. Emphasis is carried by weight in running text and by a filled- chip for state; the 857 uses of bg-/border-/ring-primary are unaffected,- since they read against the surface and the hairline. 14.3:1 on canvas. */+ --user-bubble: 53 12% 13%; /* #26251E — the user's own turn */+ --user-bubble-foreground: 60 16% 96%;++ /* --- Rims. Two values, because one border cannot do two jobs ---------- */+ --border: 53 12% 87%; /* #E2E1DA — structural hairlines, dividers, rules */+ --border-strong: 50 9% 75%; /* #C4C2B8 — composer outline, float rim, focus */++ /* --- Ink. Four steps, one job each ------------------------------------+ The split is what stops a single ink slab from reading as harsh: with+ no hierarchy behind it, one maximum-contrast value across a whole app+ has nothing to justify its weight. */+ --foreground-strong: 50 13% 9%; /* #1A1914 — headings, headline numbers */+ --foreground: 53 12% 13%; /* #26251E — body, labels, running text */+ --muted-foreground: 46 6% 41%; /* #6E6B61 — meta, timestamps, table heads */+ --faint-foreground: 44 6% 54%; /* #918D82 — placeholder + disabled ONLY */++ /* --primary is a FILL, not an ink: buttons, marks, active indicators,+ focus rings. It never paints running text, a byline or a decorative+ icon. On paper the fill IS the ink colour — the light scale has no step+ above `ink` the way the dark one has white above 96% — so --primary and+ --foreground share a value here, and emphasis in running text is+ carried by weight and by --foreground-strong instead. 14.3:1 on paper. */--primary: 53 12% 13%;- --primary-foreground: 60 16% 96%; /* the canvas, not pure white */- --secondary: 50 11% 89%; /* #E6E5E0 — Design.md `surface-strong` */- --secondary-foreground: 53 12% 13%;- --muted: 50 11% 89%;- --muted-foreground: 47 6% 43%; /* #747167 — Design.md `muted`, see note above */+ --primary-foreground: 60 16% 96%; /* the paper, not pure white */--accent: 53 12% 13%;--accent-foreground: 60 16% 96%;- --destructive: 345 64% 49%; /* #C0392B — the light terminal's red */+ --ring: 53 12% 13%;++ /* --- Status. The only hue in the product ------------------------------+ Three meanings, identical in both themes so a status never changes+ meaning with the theme; the lightness is tuned per ground so each one+ stays legible on it. Nothing else in the interface carries hue except+ identity — a vendor logo in its real colours, or a coloured avatar. */+ --success: 153 62% 32%; /* life: running, live, connected, passed */+ --destructive: 4 70% 46%; /* fault: failed, blocked, disconnected */--destructive-foreground: 0 0% 100%;- /* Live / ok. Dark overrides to a brighter sibling so a 8 px status- dot still reads on near-black (Grok-Bot green). */- --success: 152 48% 28%;+ --warning: 41 70% 38%; /* degraded: stale, partial, needs attention */+/* Added / removed code in a chat diff. Green and red were always theweaker half of this signal: a diff already carries + and - in itsgutter, so hue was reinforcement, not information. Monochrome the pair- says it more directly — an added line comes FORWARD (full ink on a- raised ground) and a deleted one RECEDES (muted ink, struck through,+ says it more directly — an added line comes FORWARD (strong ink on a+ lifted ground) and a deleted one RECEDES (meta ink, struck through,see .diff-line-del). Strike-through is the move colour cannot make. */- --diff-add: 53 12% 13%;+ --diff-add: 50 13% 9%;--diff-add-bg: 50 11% 89%;- --diff-del: 47 6% 43%;+ --diff-del: 46 6% 41%;--diff-del-bg: 51 18% 94%;- --border: 50 11% 89%; /* #E6E5E0 — Design.md `hairline` */- --input: 50 11% 89%;- --ring: 53 12% 13%;+--radius: 0.75rem;- /* The navigation column's own ground — a shade below the paper, so the- rail reads as a rail without a border doing all the work. */- --sidebar: 51 18% 92%; /* #EFEEE8 — Design.md `hairline-soft` *//* --- Effect channels (see the note above) ---------------------------- *//* The accent as raw channels, for glows / grid lines / halos. Now the ink@@ -528,21 +561,18 @@ label,must read as "the app, blurred" rather than a grey rectangle. */--shell-rgb: 247 247 244;- /* Light mode changes the interface ink, not the chosen wallpaper. Fully- transparent surfaces were tried first, but with user-chosen wallpapers- (any subject, any brightness) ink regularly landed on same-value artwork- and disappeared. Light therefore carries the same glass system as dark,- tuned slightly lighter: the artwork stays visible around and through- every panel, and text always sits on a predictable ground. */- /* Matched to the dark theme's values: light used to run ~8 points more- transparent, and on bright, busy artwork the ivory glass stopped being- a ground at all — ink landed on the wallpaper itself and washed out. */+ /* --- Glass alphas — WALLPAPER PATH ONLY -------------------------------+ These are read exclusively by the readability floor further down, which+ is now scoped to `:root.jarvis-wallpaper`. On the flat ground the app+ opens with (the default since 2026-08-23) nothing reads them: a surface+ there is a NAMED token, never a token multiplied by an opacity. They+ exist because ink over user-chosen artwork — 500 pictures of any+ brightness, in either theme — needs a predictable ground under it.+ Three more (`stage`, `wiki-pane`, `wiki-stage`) were deleted: nothing+ had read them since the wiki panes were made fully transparent. */--surface-card-alpha: 0.6;--surface-panel-alpha: 0.58;--surface-control-alpha: 0.72;- --surface-stage-alpha: 0.58;- --surface-wiki-pane-alpha: 0.3;- --surface-wiki-stage-alpha: 0.28;/* --- Stages ----------------------------------------------------------The full-bleed canvases behind the knowledge maps. They are not chrome:@@ -569,22 +599,17 @@ label,and where it lands are full ink, everything in between is neutral. Onlythe card's icon tile reads `hsl(var(--viz-*))`. */--viz-trigger: 53 12% 13%; /* full ink — the run's ignition */- --viz-reasoning: 47 6% 43%; /* the worker thinking */- --viz-terminal: 47 6% 43%; /* shell commands */- --viz-file: 47 6% 43%; /* file writes/edits */- --viz-search: 47 6% 43%; /* read/grep/glob */- --viz-web: 47 6% 43%; /* fetch/web */- --viz-integration: 47 6% 43%; /* MCP / external tools */- --viz-agent: 47 6% 43%; /* sub-agent spawns */- --viz-tool: 47 6% 43%; /* unrecognised tools */+ --viz-reasoning: 46 6% 41%; /* the worker thinking */+ --viz-terminal: 46 6% 41%; /* shell commands */+ --viz-file: 46 6% 41%; /* file writes/edits */+ --viz-search: 46 6% 41%; /* read/grep/glob */+ --viz-web: 46 6% 41%; /* fetch/web */+ --viz-integration: 46 6% 41%; /* MCP / external tools */+ --viz-agent: 46 6% 41%; /* sub-agent spawns */+ --viz-tool: 46 6% 41%; /* unrecognised tools */--viz-result: 53 12% 13%; /* full ink — the run's landing */- --viz-deliverable: 47 6% 43%; /* files left behind */+ --viz-deliverable: 46 6% 41%; /* files left behind */- /* Legacy aliases. Kept because they are referenced from a handful of- places that predate the token set; all now follow the theme. The names- outlived the colour — nothing yellow is left in either — but they stay- spelled this way until the call sites are renamed in their own pass,- because a rename and a recolour in one commit hides both. *//* --- The mascot's two marking roles ----------------------------------The ghost was drawn with one hardcoded white for everything, which isonly correct for half of it. Its markings fall into two groups that@@ -603,82 +628,122 @@ label,reads on paper and on charcoal. */--gigi-on-body: 0 0% 100%; /* white eyes on the black body */--gigi-trim: 53 12% 13%; /* ink — reads on paper */++ /* Legacy aliases. The names outlived the colour — nothing yellow is left+ in either theme — and no rule reads them any more either; they stay+ declared until the last call sites that predate the token set are+ renamed in their own pass, because a rename and a recolour in one+ commit hides both. */--jarvis-yellow: 38 37 30;--jarvis-yellow-dim: 128 125 114;--jarvis-grid: 50 11% 89%;- /* Outbound chat fill. Light: the ink itself. Dark overrides to a mid grey- so the bubble does not become inverted cream on black. */- --user-bubble: 53 12% 13%;- --user-bubble-foreground: 60 16% 96%;}.dark {- /* --- Dark: one black room, colour only on life -------------------------- Warm-cream inversion was the first defect (muddy brown cards). The- charcoal pass after that painted the ROOM grey: a #1A1A1A rail and- #242424 cards on #050505, every status dot muted, no green. Against a- live Grok-Bot window (2026-08-31) that is the whole difference: Bot- is a black void with coloured avatars and green live-dots; our- sections were grey furniture filling the void.-- The room stays black. Surfaces lift a whisper. Colour is status and- identity, never walls.-- 2 % background the room — #050505- 5 % sidebar same night, not a grey wall- 8 % card a lifted bubble, sized to its content- 12 % border a rim you should barely see- 16 % secondary hover / menus- 34 % user bubble the one obviously-lifted grey- 46 % success live green (Grok-Bot's heartbeat)- 64 % muted text- 97 % foreground- 100 % primary white, actions only */- --background: 0 0% 2%; /* #050505 */- --foreground: 0 0% 97%; /* #F7F7F7 — crisp, not cream */- --card: 0 0% 8%; /* #141414 — a bubble, not a grey slab */- --card-foreground: 0 0% 97%;- --popover: 0 0% 16%; /* #292929 */- --popover-foreground: 0 0% 97%;- /* #FFFFFF. The brand is whichever end of the value scale the ground is- not. Here it sits one step past --foreground because on a near-black- ground there is headroom for it; the light theme has none above `ink`- and keeps the two equal. 19.8:1. */+ /* --- Dark: a black room with lit objects in it -------------------------+ LIFT SCALES INVERSELY WITH AREA. That single rule is the whole system,+ and the resolution of two attempts that were both reverted. Lifting+ every full-bleed region produced opaque grey furniture standing on a+ black page ("grey slabs"). Refusing to lift anything produced surfaces+ three byte-values above their ground — below the threshold at which an+ eye perceives an edge at all ("dead"). Both were searching for one+ correct value for a variable that should never have been global.++ So --background paints the room and everything that fills it, and lift+ is spent only on things sized to their content: a bubble, a row, a+ tile, a composer, a menu. A surface wider than ~720px never rises above+ --sidebar, whatever class it carries.++ The steps are measured, not invented (Grok Bot and Cursor, 2026-09-01).+ Grok's assistant bubble sits at #262626 and its selected row at+ #313131; Cursor's composer at #212121 and its active row at #252525,+ with 90.4 % of that window held in just two values. --card #212121 and+ --secondary #333333 sit inside that measured band, with steps large+ enough to survive an uncalibrated monitor.++ INK STOPS BELOW WHITE. Cursor's brightest text measures #F0F0F0 and+ never exceeds it. One maximum-contrast slab across a whole app has no+ hierarchy behind it to justify its brightness, so the eye reads it as+ harsh rather than as important — that is the "the white looks+ artificial" report. Body runs at 90 %, headings at 96 %. Pure white is+ a FILL — buttons, marks, focus rings — and never running text.++ 4 % background the room, every full-bleed region+ 7 % sidebar the rail, standing chrome+ 13 % card an OBJECT: card, bubble, panel+ 14 % border structural hairline+ 20 % secondary / input the LIFT: hover, selected, field, tile+ 24 % popover the floating layer+ 26 % border-strong composer outline, floating rim, focus+ 30 % user bubble the one deliberately loud surface+ 44 % faint ink placeholder and disabled only+ 58 % muted ink meta, timestamps, table heads+ 90 % foreground body, labels, running text+ 96 % foreground-strong headings, headline numbers+ 100 % primary white — a fill, never an ink */++ /* --- The surface ladder ---------------------------------------------- */+ --background: 0 0% 4%; /* #0A0A0A */+ --sidebar: 0 0% 7%; /* #121212 — the same night, one step up */+ --card: 0 0% 13%; /* #212121 — content-sized ONLY */+ --card-foreground: 0 0% 90%;+ --secondary: 0 0% 20%; /* #333333 — hover, selected, tile */+ --secondary-foreground: 0 0% 96%; /* a selected label is ink-strong */+ --muted: 0 0% 20%; /* = --secondary: the ~65 hover:bg-muted sites read this */+ --input: 0 0% 20%; /* a field is a lift surface */+ --popover: 0 0% 24%; /* #3D3D3D — plus .shadow-float */+ --popover-foreground: 0 0% 90%;+ --user-bubble: 0 0% 30%; /* #4D4D4D */+ --user-bubble-foreground: 0 0% 96%;++ /* --- Rims. A rim is LIGHTER than the fill it encloses ------------------+ On near-black a dark border around a dark fill reads as a wireframe+ with nothing inside it. Cursor's rims cover 0.2 % of its window — a+ composer outline and a few dividers, not an edge around every card. */+ --border: 0 0% 14%; /* #242424 */+ --border-strong: 0 0% 26%; /* #424242 */++ /* --- Ink -------------------------------------------------------------- */+ --foreground-strong: 0 0% 96%; /* #F5F5F5 */+ --foreground: 0 0% 90%; /* #E6E6E6 */+ --muted-foreground: 0 0% 58%; /* #949494 */+ --faint-foreground: 0 0% 44%; /* #707070 */++ /* #FFFFFF, and a FILL. It sits one step past --foreground because a+ near-black ground has headroom above the ink ceiling; the light theme+ has none above `ink` and keeps the two equal. 19.8:1. */--primary: 0 0% 100%;- --primary-foreground: 0 0% 4%; /* the ground */- --secondary: 0 0% 16%; /* #292929 hover, menus, composer */- --secondary-foreground: 0 0% 97%;- --muted: 0 0% 16%;- --muted-foreground: 0 0% 64%; /* #A3A3A3 cool grey */+ --primary-foreground: 0 0% 4%; /* the room */--accent: 0 0% 100%;--accent-foreground: 0 0% 4%;- --destructive: 349 76% 62%;- --destructive-foreground: 0 0% 97%;- --success: 152 62% 46%; /* Grok-Bot live green */- --diff-add: 0 0% 97%;- --diff-add-bg: 0 0% 14%;- --diff-del: 0 0% 64%;- --diff-del-bg: 0 0% 4%;- --border: 0 0% 12%; /* #1F1F1F — a rim you should barely see */- --input: 0 0% 16%;--ring: 0 0% 100%;- --sidebar: 0 0% 5%; /* #0D0D0D — same night as the page */- --user-bubble: 0 0% 34%; /* #575757 */- --user-bubble-foreground: 0 0% 97%;- --accent-rgb: 247 247 247;+ /* --- Status. Same three meanings as light, lifted for a black ground -- */+ --success: 153 62% 46%; /* #2DBE7E — life */+ --destructive: 4 77% 60%; /* #E8574C — fault */+ --destructive-foreground: 0 0% 96%;+ --warning: 41 63% 57%; /* #D6A94A — degraded */++ /* Added / removed code — see :root. The added line takes the lift so it+ comes forward off the card it sits on; the deleted line takes the card+ itself, i.e. no ground of its own, and recedes through meta ink and the+ strike-through. It must never be DARKER than the surface under it. */+ --diff-add: 0 0% 96%;+ --diff-add-bg: 0 0% 20%;+ --diff-del: 0 0% 58%;+ --diff-del-bg: 0 0% 13%;++ --accent-rgb: 255 255 255;--scrim-rgb: 0 0 0;--sheen-rgb: 255 255 255;- --shell-rgb: 5 5 5;+ --shell-rgb: 10 10 10; /* the room, as channels */+ /* Wallpaper path only — see the note in :root. */--surface-card-alpha: 0.6;--surface-panel-alpha: 0.58;--surface-control-alpha: 0.72;- --surface-stage-alpha: 0.58;- --surface-wiki-pane-alpha: 0.36;- --surface-wiki-stage-alpha: 0.34;- --stage-bg: 0 0% 2%;+ --stage-bg: 0 0% 4%;--stage-dot-rgb: 255 255 255;--stage-dot-strong: 0.5;--stage-dot-soft: 0.35;@@ -691,23 +756,25 @@ label,full accent; every step between them is neutral and leaves the tellingto its glyph. */--viz-trigger: 0 0% 100%;- --viz-reasoning: 0 0% 64%;- --viz-terminal: 0 0% 64%;- --viz-file: 0 0% 64%;- --viz-search: 0 0% 64%;- --viz-web: 0 0% 64%;- --viz-integration: 0 0% 64%;- --viz-agent: 0 0% 64%;- --viz-tool: 0 0% 64%;+ --viz-reasoning: 0 0% 58%;+ --viz-terminal: 0 0% 58%;+ --viz-file: 0 0% 58%;+ --viz-search: 0 0% 58%;+ --viz-web: 0 0% 58%;+ --viz-integration: 0 0% 58%;+ --viz-agent: 0 0% 58%;+ --viz-tool: 0 0% 58%;--viz-result: 0 0% 100%;- --viz-deliverable: 0 0% 64%;+ --viz-deliverable: 0 0% 58%;/* Black-and-white Gigi: white eyes and a white outline on charcoal. */--gigi-on-body: 0 0% 100%;--gigi-trim: 0 0% 100%;- --jarvis-yellow: 247 247 247;- --jarvis-yellow-dim: 163 163 163;- --jarvis-grid: 0 0% 8%;++ /* Legacy aliases — see :root. Declared, read by nothing. */+ --jarvis-yellow: 255 255 255;+ --jarvis-yellow-dim: 148 148 148;+ --jarvis-grid: 0 0% 14%;}}@@ -731,26 +798,44 @@ label,body {@apply bg-background text-foreground antialiased;- font-family:- "Inter",- ui-sans-serif,- system-ui,- -apple-system,- "Segoe UI",- sans-serif;- font-feature-settings: "cv02", "cv03", "cv04", "cv11";overflow-x: hidden;}+}- .font-display {- font-family: "Space Grotesk", "Inter", ui-sans-serif, system-ui, sans-serif;- font-feature-settings: "ss01", "ss02";- letter-spacing: -0.02em;- }+/* ----------------------------------------------------------------------+ The three interface families — PLAIN (non-@layer) CSS on purpose.++ Tailwind hoists every `@layer base` rule into its base section, which is+ emitted BEFORE the utilities. `.font-mono` there therefore lost to+ Tailwind's own `.font-mono` utility at identical specificity, and+ JetBrains Mono rendered on NONE of its several hundred call sites — every+ terminal, path, transcript and code surface in the product silently fell+ back to Consolas. Unlayered CSS after `@tailwind utilities` wins that tie+ for good, whatever Tailwind generates.++ Interface = Inter, display = Space Grotesk (section titles and headline+ numbers only), code = JetBrains Mono. See the known-gap note at the top of+ this file: they are still fetched from a remote host.+ ---------------------------------------------------------------------- */+body {+ font-family:+ "Inter",+ ui-sans-serif,+ system-ui,+ -apple-system,+ "Segoe UI",+ sans-serif;+ font-feature-settings: "cv02", "cv03", "cv04", "cv11";+}- .font-mono {- font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;- }+.font-display {+ font-family: "Space Grotesk", "Inter", ui-sans-serif, system-ui, sans-serif;+ font-feature-settings: "ss01", "ss02";+ letter-spacing: -0.02em;+}++.font-mono {+ font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;}@layer components {@@ -781,11 +866,10 @@ label,left: clamp(20px, 22vw, 340px);bottom: clamp(28px, 11vh, 104px);z-index: 1;- filter: drop-shadow(0 16px 28px rgb(0 0 0 / 0.38));- }-- :root:not(.dark) .jarvis-desktop-wallpaper-mascot {- filter: drop-shadow(0 14px 22px rgb(40 28 12 / 0.22));+ /* --scrim-rgb is what a shadow is made of in either theme — black on the+ dark ground, warm charcoal on paper — so one rule replaces the pair of+ hardcoded shadows that used to live here. */+ filter: drop-shadow(0 16px 28px rgb(var(--scrim-rgb) / 0.32));}.jarvis-desktop-wallpaper-veil {@@ -820,14 +904,47 @@ label,}/*- * Transparent workspace chrome.+ * The named app surfaces.+ *+ * Each one is a ROLE, and on the flat ground the app opens with, each is+ * simply the token for that role — a fill, no alpha, no blur. Depth is a+ * named token; a token multiplied by an opacity is not a surface.*- * The wallpaper is the app's ground now, so navigation and section roots no- * longer repaint it with an opaque theme colour. Small content surfaces keep- * a restrained local veil for contrast; their colour still comes from the- * semantic shell channel and therefore follows light/dark mode automatically.+ * The wallpaper variants underneath are the exception the design system+ * grants: a wallpaper user's chrome sits on arbitrary artwork, so it keeps+ * the glass that made ink legible there. Everything about them is scoped to+ * `:root.jarvis-wallpaper` so it costs the default path nothing.*/+ .jarvis-nav-surface {+ background: hsl(var(--sidebar));+ }+.jarvis-shell-surface {+ background: hsl(var(--background));+ }++ .jarvis-panel-surface {+ background: hsl(var(--card));+ }++ .jarvis-message-surface {+ background: hsl(var(--card));+ }++ .jarvis-input-surface {+ background: hsl(var(--input));+ }++ /* NOTE (2026-08-11): a full glass ground for the nav column, top bar and+ the Agentic IDE chrome was tried and rejected for the WALLPAPER mode —+ the maintainer wants the artwork to shine through the chrome untinted.+ So under a wallpaper the nav paints nothing and only stays as the scoping+ hook for the ink/outline rules further down. */+ :root.jarvis-wallpaper .jarvis-nav-surface {+ background: transparent;+ }++ :root.jarvis-wallpaper .jarvis-shell-surface {background: linear-gradient(180deg,rgb(var(--shell-rgb) / 0.16),@@ -835,17 +952,11 @@ label,);}- /* NOTE (2026-08-11): a full glass ground for the nav column, top bar and- the Agentic IDE chrome was tried and rejected — the maintainer wants the- wallpaper to shine through the chrome untinted. `.jarvis-nav-surface`- stays on the Sidebar as the scoping hook for the ink/outline rules in- the readability-floor section; it paints nothing itself. */-- .jarvis-panel-surface {+ :root.jarvis-wallpaper .jarvis-panel-surface {background: rgb(var(--shell-rgb) / var(--surface-panel-alpha));}- .jarvis-message-surface {+ :root.jarvis-wallpaper .jarvis-message-surface {background: linear-gradient(135deg,rgb(var(--shell-rgb) / var(--surface-card-alpha)),@@ -855,7 +966,7 @@ label,backdrop-filter: blur(12px) saturate(1.08);}- .jarvis-input-surface {+ :root.jarvis-wallpaper .jarvis-input-surface {background: rgb(var(--shell-rgb) / var(--surface-control-alpha));-webkit-backdrop-filter: blur(14px) saturate(1.08);backdrop-filter: blur(14px) saturate(1.08);@@ -868,24 +979,27 @@ label,color: hsl(var(--user-bubble-foreground));}- /* Selected nav row — a fill, one step toward the light, like a messenger- chip. Not a hairline and not an inset accent bar. */+ /* Selected nav row — the lift surface across the WHOLE row, plus strong ink+ on the label. Not a hairline, not an inset accent bar, and never drawn on+ the icon box alone while the row it belongs to stays at ground. */.jarvis-nav-active {background: hsl(var(--secondary));- color: hsl(var(--foreground));+ color: hsl(var(--foreground-strong));}/* Section-level grounds disappear everywhere the wallpaper is active. Theselectors intentionally stop at page roots and purpose-built stages: cards,- dialogs and data tables retain their own hierarchy and remain readable. */- .jarvis-section-stage > [class~="bg-background"],- .jarvis-section-stage .agents-board-stage,- .jarvis-section-stage .uw-stage {+ dialogs and data tables retain their own hierarchy and remain readable.+ On the flat ground they keep their own token ground, which is the room —+ the same colour, arrived at by the palette instead of by an exception. */+ :root.jarvis-wallpaper .jarvis-section-stage > [class~="bg-background"],+ :root.jarvis-wallpaper .jarvis-section-stage .agents-board-stage,+ :root.jarvis-wallpaper .jarvis-section-stage .uw-stage {background-color: transparent;}/*- * Wallpaper readability floor.+ * Wallpaper readability floor — WALLPAPER PATH ONLY.** Everything inside a section stage may end up directly on user-chosen* artwork — 500 wallpapers of any brightness, in either theme. Nothing can@@ -899,8 +1013,14 @@ label,* 2. Scoped token floors. Muted ink and hairline borders are re-declared on* the stage only: strong enough to survive artwork, while popovers and* dialogs outside the stage keep the quieter global values.+ *+ * Every rule in this floor is gated on `:root.jarvis-wallpaper`, because on+ * a flat ground every one of these treatments is a defect: a halo around+ * text on paper reads as a printing error, and a re-floored --border turns+ * a hairline meant to be barely visible into a drawn box. The palette is+ * calibrated for the flat ground; the floor is what a picture costs.*/- .dark .jarvis-section-stage {+ :root.jarvis-wallpaper.dark .jarvis-section-stage {--muted-foreground: 0 0% 68%;--border: 0 0% 24%;text-shadow:@@ -918,9 +1038,9 @@ label,ink, and a tight outline-grade halo — the desktop-OS icon-label trick,where a 1–2px light ring makes dark ink read on ANY artwork. On calmivory glass the ring is ivory-on-ivory and invisible. */- :root:not(.dark) .jarvis-section-stage,- :root:not(.dark) .jarvis-nav-surface,- :root:not(.dark) .jarvis-shell-surface {+ :root.jarvis-wallpaper:not(.dark) .jarvis-section-stage,+ :root.jarvis-wallpaper:not(.dark) .jarvis-nav-surface,+ :root.jarvis-wallpaper:not(.dark) .jarvis-shell-surface {--muted-foreground: 240 9% 18%;--border: 40 12% 46%;/* Subtitle-grade outline, not a soft glow: eight hard offsets close a@@ -947,10 +1067,10 @@ label,of an outline — invisible on calm glass, a rescue ring on busy artwork.Scoped to the chrome (nav, top bar, IDE toolbar + chat rail), whereicons ARE the interface; content views draw icons on their own cards. */- :root:not(.dark) .jarvis-nav-surface svg,- :root:not(.dark) .jarvis-shell-surface svg,- :root:not(.dark) [data-testid="agentic-toolbar"] svg,- :root:not(.dark) [data-testid="agentic-chat-rail"] svg {+ :root.jarvis-wallpaper:not(.dark) .jarvis-nav-surface svg,+ :root.jarvis-wallpaper:not(.dark) .jarvis-shell-surface svg,+ :root.jarvis-wallpaper:not(.dark) [data-testid="agentic-toolbar"] svg,+ :root.jarvis-wallpaper:not(.dark) [data-testid="agentic-chat-rail"] svg {filter: drop-shadow(1px 0 0 rgb(var(--shell-rgb)))drop-shadow(-1px 0 0 rgb(var(--shell-rgb)))drop-shadow(0 1px 0 rgb(var(--shell-rgb)))@@ -961,8 +1081,8 @@ label,/* The IDE toolbar and chat rail live INSIDE the stage but hold shell-gradesmall controls; give their text the same outline-grade ink as the chromeabove (the stage floor alone was tuned for text on glass cards). */- :root:not(.dark) [data-testid="agentic-toolbar"],- :root:not(.dark) [data-testid="agentic-chat-rail"] {+ :root.jarvis-wallpaper:not(.dark) [data-testid="agentic-toolbar"],+ :root.jarvis-wallpaper:not(.dark) [data-testid="agentic-chat-rail"] {--muted-foreground: 240 9% 18%;text-shadow:1px 0 0 rgb(var(--shell-rgb)),@@ -996,10 +1116,17 @@ label,* moment the shell laid something else out around it.*/.jarvis-visualization-stage {- background: rgb(var(--shell-rgb) / 0.94);+ background: hsl(var(--background));text-shadow: none;}+ /* Under a wallpaper the same stage keeps a near-opaque veil rather than the+ flat token: a diagram is still judged against one predictable colour, but+ the artwork stays faintly present at the frame. */+ :root.jarvis-wallpaper .jarvis-visualization-stage {+ background: rgb(var(--shell-rgb) / 0.94);+ }+/* Subtle grid pattern in the background — gives a dashboard feel withoutdistracting. Drawn in the accent so it reads as the app's own texture;slightly stronger on paper, where a 4 % line simply disappears. */@@ -1065,80 +1192,110 @@ label,linear-gradient(90deg, rgb(var(--accent-rgb) / 0.04) 1px, transparent 1px);}- /* Button base — for CTAs */+ /* Button base — for CTAs. The 32px accent bloom on hover is gone: a glow is+ additive light standing in for a fill that should have been there, and on+ paper it was never visible at all. Hover is one step of the fill, which is+ the same move every other interactive surface in the app makes. */.btn-primary {@apply inline-flex items-center justify-center gap-2 rounded-full px-6 py-3 font-mediumbg-primary text-primary-foreground- transition-all duration-200- hover:bg-primary/90 hover:shadow-[0_0_32px_rgb(var(--accent-rgb)/0.35)]+ transition-colors duration-200+ hover:bg-primary/90active:scale-[0.98] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring;}.btn-ghost {@apply inline-flex items-center justify-center gap-2 rounded-full px-6 py-3 font-mediumtext-foreground border border-border- transition-all duration-200- hover:bg-secondary hover:border-primary/40+ transition-colors duration-200+ hover:bg-secondaryactive:scale-[0.98] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring;}+ .btn-ghost:hover {+ border-color: hsl(var(--border-strong));+ }++ /* A chip is a lift surface with meta ink on it. The 60 % wash it used to+ carry (plus a backdrop-blur with nothing behind it to blur) was depth+ expressed as opacity; the border stays because several call sites answer+ a hover on it. */.chip {- @apply inline-flex items-center gap-2 rounded-full border border-border bg-secondary/60- px-3 py-1 text-xs font-medium text-muted-foreground backdrop-blur;+ @apply inline-flex items-center gap-2 rounded-full border border-border+ px-3 py-1 text-xs font-medium text-muted-foreground;+ background-color: hsl(var(--secondary));}+ /* The emphasised sibling — "in use", "CHATGPT-LOGIN". Same surface, strong+ ink instead of meta: a state marker may never be painted in --primary,+ which on a black ground would make it the loudest mark on the screen. */.chip-yellow {- @apply inline-flex items-center gap-2 rounded-full border border-primary/30 bg-primary/10- px-3 py-1 text-xs font-semibold text-primary;+ @apply inline-flex items-center gap-2 rounded-full border border-border+ px-3 py-1 text-xs font-semibold;+ background-color: hsl(var(--secondary));+ color: hsl(var(--foreground-strong));}+ /*+ * A card has ONE resting value, in both themes: --card, a real fill, and a+ * hairline only because a card can sit beside another card. The dark+ * overrides these two carried — a 3.5 % and a 3 % white wash — were the+ * "whisper" era: three byte-values above the ground, below the threshold at+ * which an eye perceives an edge. They escaped every correction pass because+ * @apply inlines its declarations and so hides the class from the converge+ * selectors that were rewriting everything else.+ */.card-outline {- @apply rounded-2xl border border-border bg-card/60 backdrop-blur- transition-colors duration-300- hover:border-primary/40;+ @apply rounded-lg border border-border transition-colors duration-300;+ background-color: hsl(var(--card));}- .dark .card-outline {- border-color: rgb(var(--sheen-rgb) / 0.07);- background-color: rgb(var(--sheen-rgb) / 0.035);+ .card-outline:hover {+ border-color: hsl(var(--border-strong));}- /* Headline numbers and table shells. The section-stage rewrite paints- any `bg-card/50` class opaque, which turned Spend / Automations /- Local models into grey slabs. These two names sit outside that list- so dark mode can be a black room with numbers on it. */+ /* A headline number stands ON something. The dark override here stripped the+ border, the background AND the radius, which is why every stat in Spend,+ Automations and Local models read as a number floating in the void. It is+ a tile now in both themes: the lift surface, no rim (it has a real fill),+ one radius. */.jarvis-stat-tile {- @apply rounded-xl border border-border px-4 py-3.5;- background-color: hsl(var(--card) / 0.5);- }-- .dark .jarvis-stat-tile {- border-color: transparent;- background-color: transparent;- border-radius: 0;- padding: 0.5rem 0.25rem;+ @apply rounded-md px-4 py-3.5;+ background-color: hsl(var(--secondary));}.jarvis-quiet-panel {- @apply overflow-hidden rounded-xl border border-border;- background-color: hsl(var(--card) / 0.5);- }-- .dark .jarvis-quiet-panel {- border-color: rgb(var(--sheen-rgb) / 0.06);- background-color: rgb(var(--sheen-rgb) / 0.03);+ @apply overflow-hidden rounded-lg border border-border;+ background-color: hsl(var(--card));}}@layer utilities {/*- * One contrast system for every workspace section. Older views chose their- * own card opacity (or an opaque background), which made navigation feel- * like switching products. Exact class-token selectors preserve semantic- * colours and interaction variants while converging resting surfaces on the- * George Voice glass balance.+ * ===========================================================================+ * THE WALLPAPER APPARATUS — everything down to the `profile-rise` keyframes+ * ===========================================================================+ *+ * These rules exist for exactly one situation: the app painted on artwork a+ * user chose, which can be any picture at any brightness in either theme.+ * They converge eleven bg-card steps, fifteen bg-background steps and nine+ * bg-muted steps onto two composite colours, so that whatever a view asked+ * for, the ink on top of it lands on a predictable ground.+ *+ * That convergence is exactly wrong on a flat ground — it flattens every+ * hierarchy a section authored, which is the mechanism behind "every screen+ * looks like one grey mesh". So every rule here is now scoped to+ * `:root.jarvis-wallpaper`: the class the boot script in index.html stamps+ * on <html> when, and only when, a wallpaper is really shown+ * (`lib/backgroundMode.ts`; the flat colour has been the default since+ * 2026-08-23). On the default path the palette in the token block is the+ * whole answer and nothing here fires at all.+ *+ * Not everything below this point is wallpaper logic. The animation+ * utilities, the Gigi mascot, the deck's ring and 3-D case, and the+ * expanded-map `main:has(...)` rule are genuine utilities and stay global.*/- .jarvis-section-stage+ :root.jarvis-wallpaper .jarvis-section-stage:where([class~="bg-card"],[class~="bg-card/20"],@@ -1155,7 +1312,7 @@ label,background-color: hsl(var(--card) / var(--surface-card-alpha));}- .jarvis-section-stage+ :root.jarvis-wallpaper .jarvis-section-stage:where(div,aside,@@ -1204,7 +1361,7 @@ label,background-color: hsl(var(--card) / var(--surface-panel-alpha));}- .jarvis-section-stage+ :root.jarvis-wallpaper .jarvis-section-stage:where(input, textarea, select, [role="combobox"]):where([class~="bg-background"],[class~="bg-background/20"],@@ -1231,7 +1388,7 @@ label,content surface. On detailed wallpaper that drops muted labels below theGeorge Voice contrast baseline, so these cards now use the same 60% glasswhile the artwork remains clearly visible around and through them. */- .jarvis-section-stage :where([class~="bg-scrim/30"]) {+ :root.jarvis-wallpaper .jarvis-section-stage :where([class~="bg-scrim/30"]) {background-color: hsl(var(--card) / var(--surface-card-alpha));}@@ -1239,7 +1396,7 @@ label,edge highlight, not a readable surface, and it made both Board and Profiledissolve into detailed wallpaper. Keep the sheen, but give it the samecard glass that George Voice uses underneath. */- .jarvis-section-stage+ :root.jarvis-wallpaper .jarvis-section-stage:where([class~="from-sheen/[0.055]"][class~="to-sheen/[0.015]"]) {@@ -1250,7 +1407,7 @@ label,Layer the wash over the shared glass instead: state stays recognisable,but provider forms, output cards and branded feedback remain as readableas their neutral neighbours. */- .jarvis-section-stage+ :root.jarvis-wallpaper .jarvis-section-stage:where(div, section, article, li, label, button):where([class~="bg-primary/5"],[class~="bg-primary/10"],@@ -1272,27 +1429,27 @@ label,);}- .jarvis-section-stage+ :root.jarvis-wallpaper .jarvis-section-stage:where([class~="bg-primary/[0.04]"]) {--surface-tint-color: hsl(var(--primary) / 0.04);}- .jarvis-section-stage+ :root.jarvis-wallpaper .jarvis-section-stage:where([class~="bg-primary/5"], [class~="bg-primary/[0.05]"]) {--surface-tint-color: hsl(var(--primary) / 0.05);}- .jarvis-section-stage+ :root.jarvis-wallpaper .jarvis-section-stage:where([class~="bg-primary/[0.06]"]) {--surface-tint-color: hsl(var(--primary) / 0.06);}- .jarvis-section-stage+ :root.jarvis-wallpaper .jarvis-section-stage:where([class~="bg-primary/[0.07]"]) {--surface-tint-color: hsl(var(--primary) / 0.07);}- .jarvis-section-stage+ :root.jarvis-wallpaper .jarvis-section-stage:where([class~="bg-primary/10"]) {--surface-tint-color: hsl(var(--primary) / 0.1);}@@ -1301,32 +1458,32 @@ label,rows). Without the card glass underneath, a 15-25% ink wash overartwork is no ground at all — the reported "active filter isinvisible" symptom. */- .jarvis-section-stage+ :root.jarvis-wallpaper .jarvis-section-stage:where([class~="bg-primary/15"]) {--surface-tint-color: hsl(var(--primary) / 0.15);}- .jarvis-section-stage+ :root.jarvis-wallpaper .jarvis-section-stage:where([class~="bg-primary/20"]) {--surface-tint-color: hsl(var(--primary) / 0.2);}- .jarvis-section-stage+ :root.jarvis-wallpaper .jarvis-section-stage:where([class~="bg-primary/25"]) {--surface-tint-color: hsl(var(--primary) / 0.25);}- .jarvis-section-stage+ :root.jarvis-wallpaper .jarvis-section-stage:where([class~="bg-primary/30"]) {--surface-tint-color: hsl(var(--primary) / 0.3);}- .jarvis-section-stage+ :root.jarvis-wallpaper .jarvis-section-stage:where([class~="bg-destructive/[0.05]"]) {--surface-tint-color: hsl(var(--destructive) / 0.05);}- .jarvis-section-stage+ :root.jarvis-wallpaper .jarvis-section-stage:where([class~="bg-[#5865F2]/10"]) {--surface-tint-color: rgb(88 101 242 / 0.1);}@@ -1334,7 +1491,7 @@ label,/* Light mode uses transparent glass rather than stacked white sheets. Arestrained blur separates content from the artwork while thewarm inset highlight preserves the same glass hierarchy as dark mode. */- :root:not(.dark)+ :root.jarvis-wallpaper:not(.dark).jarvis-section-stage:where([class~="bg-card"],@@ -1401,7 +1558,7 @@ label,glass and those labels vanish completely — the reported symptom. Insidethe light stage the variants converge on one readable floor; hierarchysurvives through the size and weight steps the views already use. */- :root:not(.dark)+ :root.jarvis-wallpaper:not(.dark).jarvis-section-stage:where([class~="text-muted-foreground/40"],@@ -1412,7 +1569,7 @@ label,color: hsl(var(--muted-foreground) / 0.78);}- :root:not(.dark)+ :root.jarvis-wallpaper:not(.dark).jarvis-section-stage:where([class~="text-muted-foreground/70"],@@ -1428,7 +1585,7 @@ label,artwork the missing alpha is exactly the missing legibility, so insidethe light floors they converge on near-full ink; hierarchy keepsreading through size and weight. */- :root:not(.dark)+ :root.jarvis-wallpaper:not(.dark):where(.jarvis-section-stage,.jarvis-nav-surface,@@ -1444,7 +1601,7 @@ label,color: hsl(var(--foreground) / 0.95);}- :root:not(.dark)+ :root.jarvis-wallpaper:not(.dark):where(.jarvis-section-stage,.jarvis-nav-surface,@@ -1464,7 +1621,7 @@ label,card-glass-under-tint rule cannot reach them. Same treatment, scoped tolight: the pill gets a real ivory chip under its ink wash instead of15-25% ink over raw artwork. */- :root:not(.dark)+ :root.jarvis-wallpaper:not(.dark):where(.jarvis-nav-surface, .jarvis-shell-surface):where(button, a, span, div):where([class~="bg-primary/10"],@@ -1480,8 +1637,8 @@ label,);}- :root:not(.dark) .jarvis-section-stage .card-outline,- :root:not(.dark)+ :root.jarvis-wallpaper:not(.dark) .jarvis-section-stage .card-outline,+ :root.jarvis-wallpaper:not(.dark).jarvis-section-stage:where(div, section, article)[class~="bg-border"] {background-color: transparent;@@ -1504,9 +1661,9 @@ label,These surfaces therefore carry their own near-opaque paper ground, aborder firm enough to read as an edge, and no inherited halo (ink sits onpaper here, so an outline would be pure noise). */- :root:not(.dark)+ :root.jarvis-wallpaper:not(.dark):where([class~="bg-popover"], [class~="bg-popover/95"]),- :root:not(.dark)+ :root.jarvis-wallpaper:not(.dark):where([role="dialog"],[role="menu"],@@ -1535,7 +1692,7 @@ label,it. The `:not()` chain protects the floating layer's own ground: a menu ora tooltip opened from within a dialog is a surface in front of it, not apanel inside it, and this selector outranks the rule above. */- :root:not(.dark)+ :root.jarvis-wallpaper:not(.dark)[role="dialog"]:where([class~="bg-card"],@@ -1567,7 +1724,7 @@ label,/* Modal backdrops may blur the wallpaper, but must not tint it white orblack. Semantic colour washes inside the modal remain untouched. */- :root:not(.dark)+ :root.jarvis-wallpaper:not(.dark):where([class~="bg-scrim/40"],[class~="bg-scrim/50"],@@ -1585,7 +1742,7 @@ label,backdrop-filter: blur(4px) saturate(0.92);}- .jarvis-section-stage > [class~="bg-background"] {+ :root.jarvis-wallpaper .jarvis-section-stage > [class~="bg-background"] {background-color: transparent;}@@ -1593,8 +1750,8 @@ label,structural wrapper its own glass fill compounds the alpha and turns threetransparent layers into an almost opaque rectangle. Keep the workspace,centre column and side panes clear so the desktop artwork stays visible. */- .jarvis-section-stage #wiki-workspace,- .jarvis-section-stage+ :root.jarvis-wallpaper .jarvis-section-stage #wiki-workspace,+ :root.jarvis-wallpaper .jarvis-section-stage#wiki-workspace> section[class~="bg-background"] {background-color: transparent;@@ -1611,7 +1768,7 @@ label,visibility: hidden;}- .jarvis-section-stage+ :root.jarvis-wallpaper .jarvis-section-stage#wiki-workspace:where([data-testid="wiki-tree-sidebar"],@@ -1623,7 +1780,7 @@ label,backdrop-filter: none;}- .jarvis-section-stage+ :root.jarvis-wallpaper .jarvis-section-stage#wiki-workspace> section> [class~="bg-card/40"] {@@ -2835,13 +2992,13 @@ label,-webkit-backdrop-filter: blur(14px) saturate(1.05);border-radius: 6px;box-shadow:- 0 18px 34px -18px rgb(0 0 0 / 0.55),+ 0 18px 34px -18px rgb(var(--scrim-rgb) / 0.55),0 2px 0 -1px hsl(var(--primary) / 0.08) inset;}:root:not(.dark) .deck-board-3d .deck-card {background: hsl(var(--card) / 0.62);box-shadow:- 0 18px 30px -18px rgb(40 28 12 / 0.35),+ 0 18px 30px -18px rgb(var(--scrim-rgb) / 0.35),0 1px 0 0 rgb(255 255 255 / 0.5) inset;}/* Cards behind the wall's plane read softer, like things further away. */@@ -2897,14 +3054,16 @@ label,bottom: 2%;height: 9%;border-radius: 50%;- background: radial-gradient(ellipse at 50% 50%, rgb(0 0 0 / 0.5), transparent 70%);+ /* One shadow for both themes: the scrim channel already flips. */+ background: radial-gradient(+ ellipse at 50% 50%,+ rgb(var(--scrim-rgb) / 0.45),+ transparent 70%+ );filter: blur(6px);z-index: -1;pointer-events: none;}- :root:not(.dark) .deck-orb-ground {- background: radial-gradient(ellipse at 50% 50%, rgb(40 28 12 / 0.32), transparent 70%);- }@media (prefers-reduced-motion: reduce) {.deck-slot-3d {@@ -3239,130 +3398,42 @@ label,/** ===========================================================================- * Solid ground — the default since 2026-08-23+ * Elevation — two classes, and no third* ===========================================================================*- * The app opens on a plain theme colour now; a wallpaper is an opt-in- * (`lib/backgroundMode.ts`, toggled by the Wallpaper section). The whole- * readability floor above — glass alphas, text halos, SVG outline rings,- * token floors — exists to keep ink legible over arbitrary artwork, and- * every one of those treatments is a defect on a flat colour: a halo around- * text on paper reads as a printing error, and a 60 % glass card on its own- * ground is just a slightly wrong card.+ * Depth in this app is carried by FILL. A black shadow on a near-black ground+ * is mathematically invisible, which is why the product had no working depth+ * device at all and reached for glows instead. On this ground the device that+ * works is a lighter fill plus a lighter top edge.+ *+ * .shadow-rim A card or bubble catching light along its top edge. Not a+ * drop shadow — one hairline of sheen, inside the box.+ * .shadow-float The only real shadow in the product: menus, dialogs,+ * tooltips, anything that has left the plane. The ring is+ * --border-strong, because on near-black the ring is what+ * actually separates the layer; the shadow is the hint.+ *+ * Both read in either theme without a variant: --sheen-rgb is white on dark+ * and ink on light, --scrim-rgb is black on dark and warm charcoal on light,+ * so "catches light" and "casts shadow" swap sides with the ground the way+ * they should. Nothing that is not floating gets .shadow-float.*- * So the floor is switched off as a whole wherever <html> lacks the- * `jarvis-wallpaper` class (set by the boot script in index.html and kept in- * step by the wallpaper store). Placed in the utilities layer on purpose:- * a later layer beats an earlier one regardless of specificity, so these- * few rules undo the components-layer floor without having to out-specify- * each of its selectors one by one. Rules that live in the utilities layer- * themselves are matched at equal specificity and simply come later.+ * `tailwind.config.ts` declares the same two under `boxShadow`, which is the+ * better definition: a generated utility composes with `ring-*` and accepts+ * variants. These live in the COMPONENTS layer on purpose, so the generated+ * utility always outranks them and this is only the floor underneath —+ * `shadow-float` already has ~50 call sites and must never resolve to+ * nothing. If the two ever disagree, the config is the one to trust.*/-@layer utilities {- :root:not(.jarvis-wallpaper) {- /* Opaque surfaces: the card tokens ARE the surface hierarchy now. */- --surface-card-alpha: 1;- --surface-panel-alpha: 1;- --surface-control-alpha: 1;- --surface-stage-alpha: 1;- --surface-wiki-pane-alpha: 1;- --surface-wiki-stage-alpha: 1;- }-- /* No halos, no outline rings, no re-floored tokens. `inherit` hands the- custom property back to the value <html> carries for the active theme. */- :root:not(.jarvis-wallpaper) .jarvis-section-stage,- :root:not(.jarvis-wallpaper) .jarvis-nav-surface,- :root:not(.jarvis-wallpaper) .jarvis-shell-surface,- :root:not(.jarvis-wallpaper) [data-testid="agentic-toolbar"],- :root:not(.jarvis-wallpaper) [data-testid="agentic-chat-rail"] {- --muted-foreground: inherit;- --border: inherit;- text-shadow: none;- }-- :root:not(.jarvis-wallpaper) .jarvis-nav-surface svg,- :root:not(.jarvis-wallpaper) .jarvis-shell-surface svg,- :root:not(.jarvis-wallpaper) [data-testid="agentic-toolbar"] svg,- :root:not(.jarvis-wallpaper) [data-testid="agentic-chat-rail"] svg {- filter: none;- }-- /* The chrome gets a ground of its own on a flat colour: the nav column one- step OFF the page — below it on paper, above it in the dark (see the- surface ramp note in the token block) — and the top bar on the page- itself. */- :root:not(.jarvis-wallpaper) .jarvis-nav-surface {- background: hsl(var(--sidebar));- }-- :root:not(.jarvis-wallpaper) .jarvis-shell-surface {- background: hsl(var(--background));- -webkit-backdrop-filter: none;- backdrop-filter: none;- }-- /* The glass surfaces become the plain card / control / panel they stand- for. No blur: there is nothing behind them to blur. */- :root:not(.jarvis-wallpaper) .jarvis-message-surface,- :root:not(.jarvis-wallpaper) .jarvis-panel-surface {- background: hsl(var(--card));- -webkit-backdrop-filter: none;- backdrop-filter: none;- }-- :root:not(.jarvis-wallpaper) .jarvis-input-surface {- background: hsl(var(--input));- -webkit-backdrop-filter: none;- backdrop-filter: none;- }-- /* The pictures-only stage keeps its own flat ground either way. */- :root:not(.jarvis-wallpaper) .jarvis-visualization-stage {- background: hsl(var(--background));- }-- /*- * Dark + no wallpaper: do not paint the room grey.- *- * The block above sets every surface alpha to 1 so a card on a flat colour- * is a real card, not 60% glass on the same colour. In light that is paper- * on paper and it works. In dark it turned Spend, Settings, Board and- * Local models into opaque grey furniture on a black page. Live 2026-08-31- * against Grok-Bot: Bot is a black void; grey is only the size of a- * bubble; colour sits on avatars and live-dots. Dark therefore keeps a- * whisper of lift, a hairline you should barely see, and lets the Board- * sheen stay a sheen instead of a slab.- */- :root.dark:not(.jarvis-wallpaper) {- --surface-card-alpha: 0.2;- --surface-panel-alpha: 0.14;- --surface-control-alpha: 0.4;- --surface-stage-alpha: 0.14;- --surface-wiki-pane-alpha: 0.12;- --surface-wiki-stage-alpha: 0.1;- }-- :root.dark:not(.jarvis-wallpaper) .jarvis-section-stage {- --border: 0 0% 9%;- }-- :root.dark:not(.jarvis-wallpaper) .jarvis-message-surface {- background: hsl(0 0% 12%);- }-- :root.dark:not(.jarvis-wallpaper) .jarvis-panel-surface {- background: rgb(var(--sheen-rgb) / 0.035);- }-- :root.dark:not(.jarvis-wallpaper) .jarvis-input-surface {- background: rgb(var(--sheen-rgb) / 0.06);+@layer components {+ .shadow-rim {+ box-shadow: inset 0 1px 0 rgb(var(--sheen-rgb) / 0.05);}- :root.dark:not(.jarvis-wallpaper)- .jarvis-section-stage- :where([class~="from-sheen/[0.055]"][class~="to-sheen/[0.015]"]) {- background-color: transparent;+ .shadow-float {+ box-shadow:+ 0 12px 32px -8px rgb(var(--scrim-rgb) / 0.55),+ 0 0 0 1px hsl(var(--border-strong));}}diff --git a/jarvis/ui/web/frontend/src/lib/identityAvatar.ts b/jarvis/ui/web/frontend/src/lib/identityAvatar.tsnew file mode 100644index 0000000000..8fa481b669--- /dev/null+++ b/jarvis/ui/web/frontend/src/lib/identityAvatar.ts@@ -0,0 +1,55 @@+/**+ * The coloured identity mark — one helper for every person in the product.+ *+ * Design.md gives colour exactly three jobs: life, fault, and identity. This is+ * the identity one. A person without a real portrait gets a round avatar whose+ * hue is derived deterministically from their name, so the same person is the+ * same colour in Profile, Contacts, Friends and the review queue, in every+ * session, on every machine. A grey disc with a monogram is explicitly NOT the+ * fallback: it is the thing that makes a near-black app feel dead.+ *+ * Both the disc and the glyph are DERIVED from that one hue rather than written+ * as literals — the glyph is the same hue lifted to 96% lightness, which stays+ * legible on the mid-lightness disc in both themes without needing a per-theme+ * variant (the disc carries its own contrast; it is not painted on the page).+ *+ * Lives in `lib/` on purpose: it is imported from several unrelated view+ * clusters, and a second copy of it would silently give one person two colours.+ */+import type { CSSProperties } from "react";++/** Stable djb2-xor string hash — platform-independent, no Math.random. */+function hashString(value: string): number {+ let hash = 5381;+ for (let i = 0; i < value.length; i++) {+ hash = (Math.imul(hash, 33) ^ value.charCodeAt(i)) >>> 0;+ }+ return hash;+}++/** Up to two initials: first letter of the first and of the last word. */+export function identityInitials(name: string): string {+ const words = name.trim().split(/\s+/).filter(Boolean);+ if (words.length === 0) return "?";+ const first = words[0]![0]!;+ const last = words.length > 1 ? words[words.length - 1]![0]! : "";+ return (first + last).toUpperCase();+}++/** The person's hue, 0–359. Same name in, same hue out, forever. */+export function identityHue(name: string): number {+ return hashString(name.trim().toLowerCase()) % 360;+}++/**+ * Inline style for the avatar disc: the identity hue as the fill, the same hue+ * at 96% lightness as the glyph. Saturation and lightness are fixed so no name+ * can hash its way to an unreadable pairing.+ */+export function identityAvatarStyle(name: string): CSSProperties {+ const hue = identityHue(name);+ return {+ backgroundColor: `hsl(${hue} 42% 46%)`,+ color: `hsl(${hue} 45% 96%)`,+ };+}diff --git a/jarvis/ui/web/frontend/src/lib/identityHue.ts b/jarvis/ui/web/frontend/src/lib/identityHue.tsnew file mode 100644index 0000000000..247674d3b4--- /dev/null+++ b/jarvis/ui/web/frontend/src/lib/identityHue.ts@@ -0,0 +1,108 @@+/**+ * Identity marks — the one place outside status where this product carries hue.+ *+ * Design.md: "Every conversation, agent, provider and person carries a coloured+ * identity mark: a real vendor logo where one exists, otherwise a 36px round+ * avatar whose hue is derived deterministically from the name. Never a grey+ * placeholder." A grey disc with a letter in it is the thing that makes a black+ * app read as dead, and a conversation list is where the product feels alive or+ * does not.+ *+ * Three decisions worth stating, because each one had an obvious-looking+ * alternative that is wrong here:+ *+ * 1. The colour is COMPUTED, never looked up in a table. A fixed array of hex+ * values is a literal colour by another name — the exact thing the system+ * bans — and it also fossilises a palette that nothing can re-tune. A hash+ * into evenly-spaced hue slots gives the same stability for free.+ *+ * 2. The slots step AROUND the three status bands (life ≈ 153°, degraded ≈ 41°,+ * fault ≈ 4°). Identity must never be readable as state: a green avatar+ * beside a green "running" dot teaches the eye that green means nothing.+ *+ * 3. The mark does NOT flip with the theme. Status does not, and identity is+ * the same kind of absolute: the same person is the same colour on paper and+ * in the dark. One mid-dark fill carrying light ink clears 4.5:1 against its+ * own label and stays a distinct disc on both the near-black card (#212121)+ * and the white one, so a single value serves both without a second branch+ * that could drift.+ */++/**+ * Twelve hues, evenly spread and stepped clear of the status bands.+ *+ * Twelve rather than the more usual eight because a conversation list shows a+ * dozen rows at once and repeats inside one screen read as a relationship the+ * data does not have.+ */+const IDENTITY_HUES = [+ 200, 214, 228, 244, 262, 280, 298, 316, 332, 88, 108, 128,+] as const;++/** Fill saturation/lightness. See note 3 above — one pair, both themes. */+const FILL_SATURATION = 46;+const FILL_LIGHTNESS = 38;++/**+ * The ink on a mark: the same hue carried up to the ink ceiling rather than a+ * flat white. It keeps the mark reading as one object, and it is derived from+ * the name like everything else here instead of being a colour written down.+ */+const INK_SATURATION = 32;+const INK_LIGHTNESS = 96;++/**+ * FNV-1a over the code points. Any stable hash would do; this one is chosen+ * because a plain character sum collides on anagrams, which in a chat list+ * means "Deploy notes" and "Notes deploy" share a colour.+ */+function hash(key: string): number {+ let h = 0x811c9dc5;+ for (let i = 0; i < key.length; i += 1) {+ h ^= key.charCodeAt(i);+ h = Math.imul(h, 0x01000193);+ }+ return h >>> 0;+}++/** The hue this name always resolves to, in degrees. */+export function identityHue(name: string): number {+ const key = name.trim().toLowerCase();+ if (!key) return IDENTITY_HUES[0];+ return IDENTITY_HUES[hash(key) % IDENTITY_HUES.length];+}++export interface IdentityMark {+ /** Fill for the avatar disc. */+ background: string;+ /** Ink for the initial sitting on it. */+ color: string;+}++/**+ * The inline style for an identity avatar. Returned as a style object rather+ * than a class because the hue is data — Tailwind cannot generate a utility for+ * a value that only exists at runtime.+ */+export function identityMark(name: string): IdentityMark {+ const hue = identityHue(name);+ return {+ background: `hsl(${hue} ${FILL_SATURATION}% ${FILL_LIGHTNESS}%)`,+ color: `hsl(${hue} ${INK_SATURATION}% ${INK_LIGHTNESS}%)`,+ };+}++/**+ * The one or two letters a mark shows. Two initials where the name has two+ * words, one otherwise; emoji and other non-letters are skipped so a title like+ * "🚀 ship it" marks as "S" instead of half a surrogate pair.+ */+export function identityInitial(name: string): string {+ const words = name+ .split(/[\s/_-]+/)+ .map((w) => w.replace(/[^\p{L}\p{N}]/gu, ""))+ .filter(Boolean);+ if (words.length === 0) return "?";+ if (words.length === 1) return words[0].slice(0, 1).toUpperCase();+ return (words[0][0] + words[1][0]).toUpperCase();+}diff --git a/jarvis/ui/web/frontend/src/views/AgenticIdeView.tsx b/jarvis/ui/web/frontend/src/views/AgenticIdeView.tsxindex 44c37ebf32..24b3cf681e 100644--- a/jarvis/ui/web/frontend/src/views/AgenticIdeView.tsx+++ b/jarvis/ui/web/frontend/src/views/AgenticIdeView.tsx@@ -1235,7 +1235,7 @@ function CodingModeIntro({const second = terminals[1] ?? terminals[0] ?? "T2";return (<div className="fixed inset-0 z-50 flex items-center justify-center bg-background/70 p-6 backdrop-blur-sm">- <div className="w-full max-w-md rounded-surface border border-border bg-card p-5">+ <div className="w-full max-w-md rounded-lg bg-popover shadow-float p-5"><h3 className="font-display text-base font-semibold">Coding mode is on</h3>diff --git a/jarvis/ui/web/frontend/src/views/AgentsView.tsx b/jarvis/ui/web/frontend/src/views/AgentsView.tsxindex 052cdd470f..3026c6f297 100644--- a/jarvis/ui/web/frontend/src/views/AgentsView.tsx+++ b/jarvis/ui/web/frontend/src/views/AgentsView.tsx@@ -15,7 +15,7 @@ export function AgentsView() {/><div className="flex flex-1 items-center justify-center p-8"><div className="max-w-md text-center">- <div className="mx-auto mb-4 flex h-14 w-14 items-center justify-center rounded-2xl border border-border bg-card/60">+ <div className="mx-auto mb-4 flex h-14 w-14 items-center justify-center rounded-2xl border border-border bg-card"><Inbox className="h-6 w-6 text-muted-foreground" /></div><h3 className="font-display text-lg font-semibold tracking-tight">@@ -25,7 +25,7 @@ export function AgentsView() {{t("agents_view.empty_body_a")} {assistantName}{" "}{t("agents_view.empty_body_b")}</p>- <p className="mt-4 text-xs italic text-muted-foreground/70">+ <p className="mt-4 text-xs italic text-muted-foreground">{t("agents_view.phase4_notice")}</p></div>diff --git a/jarvis/ui/web/frontend/src/views/ApiKeysView.tsx b/jarvis/ui/web/frontend/src/views/ApiKeysView.tsxindex 270a461554..be8f204516 100644--- a/jarvis/ui/web/frontend/src/views/ApiKeysView.tsx+++ b/jarvis/ui/web/frontend/src/views/ApiKeysView.tsx@@ -135,7 +135,7 @@ export function ApiKeysView() {return (<div className="flex h-full min-h-0 flex-col"><ViewHeader- icon={<KeyRound className="h-4 w-4 text-primary" />}+ icon={<KeyRound className="h-4 w-4 text-muted-foreground" />}title={t("apikeys_view.title")}subtitle={t("apikeys_view.subtitle")}right={@@ -301,7 +301,6 @@ function CategoryTabs({selected={active === "jarvis-key"}onClick={() => onSelect("jarvis-key")}health={health["jarvis-key"]}- muted/>)}{showAdvanced && (@@ -311,7 +310,6 @@ function CategoryTabs({selected={active === "advanced"}onClick={() => onSelect("advanced")}health={health.advanced}- muted/>)}</div>@@ -324,15 +322,12 @@ function TabButton({label,selected,onClick,- muted = false,health,}: {icon: LucideIcon;label: string;selected: boolean;onClick: () => void;- /** The de-emphasized "Advanced" tab: neutral fill instead of the gold accent. */- muted?: boolean;/** Optional health rollup driving the corner status dot. */health?: SectionHealth;}) {@@ -366,24 +361,28 @@ function TabButton({onClick={onClick}title={title}className={cn(- "relative -mb-px inline-flex h-10 shrink-0 items-center gap-2 whitespace-nowrap border-b-2 px-3 text-[13px] font-medium transition-colors",+ "relative -mb-px inline-flex h-10 shrink-0 items-center gap-2 whitespace-nowrap border-b-2 px-3 text-meta font-medium transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring",+ // The underline is an ACTIVE INDICATOR, which is one of the four jobs+ // --primary is a fill for; the selected label rises to the ink ceiling+ // beside it, so "you are here" is stated twice and neither statement+ // is a colour the eye has to decode.selected- ? "border-primary text-foreground"- : muted- ? "border-transparent text-muted-foreground/70 hover:text-foreground"- : "border-transparent text-muted-foreground hover:text-foreground",+ ? "border-primary text-foreground-strong"+ : "border-transparent text-muted-foreground hover:text-foreground",)}>- {/* The attention dot sits where the icon would: it is the only colour in- the bar besides the gold underline, so a dot always means "look here"- — red for "set up but broken", amber for "still to set up". */}+ {/* The attention dot sits where the icon would, and it is the only hue+ in the bar: fault red for "set up but broken", degraded amber for+ "still to set up". "needs setup" used to be painted in --foreground,+ which made a status the brightest mark on the bar and told the eye+ nothing — a state is never ink. */}{indicator ? (<spanaria-hidden="true"className={cn(- "h-[7px] w-[7px] shrink-0 rounded-full",- indicator === "error" ? "bg-destructive" : "bg-foreground",+ "h-2 w-2 shrink-0 rounded-full",+ indicator === "error" ? "bg-destructive" : "bg-warning",)}/>) : (@@ -585,7 +584,7 @@ function AdvancedCategory() {belong to their owners and are shown only to identify what you connectto. Backs the third-party logos used on plugin cards (seeTRADEMARK.md). */}- <p className="pt-2 text-[11px] leading-relaxed text-muted-foreground">+ <p className="pt-2 text-micro text-muted-foreground">{t("apikeys_view.trademark_notice")}</p></div>@@ -606,7 +605,7 @@ function TelephonySection() {const t = useT();return (<section>- <h3 className="mb-3 inline-flex items-center gap-2 text-[10px] uppercase tracking-wider text-muted-foreground">+ <h3 className="mb-3 inline-flex items-center gap-2 text-micro text-muted-foreground"><Phone className="h-3.5 w-3.5" /> {t("apikeys_view.tier_telephony")}</h3><TelephonyPanel />diff --git a/jarvis/ui/web/frontend/src/views/AutomationsView.tsx b/jarvis/ui/web/frontend/src/views/AutomationsView.tsxindex a2f39b1756..0f92b13fa5 100644--- a/jarvis/ui/web/frontend/src/views/AutomationsView.tsx+++ b/jarvis/ui/web/frontend/src/views/AutomationsView.tsx@@ -9,9 +9,13 @@* category down an unbounded-width page.** The layout is the section design the rest of the app converged on: the- * section header bar, a centred content column, a row of headline numbers,- * a chip rail of tabs, and panels holding tables — the same shapes as Spend,- * Local models and the extensions section.+ * section header bar, a row of headline tiles, a chip rail of tabs, and the+ * tables themselves — the same shapes as Spend and Local models. The measure+ * comes from the shell (MainView caps every non-bleed section at the page+ * width), so this view sets no width of its own, and the tables sit directly+ * on the page: a --card panel drawn around a full-width table is a surface+ * far wider than the 720px at which lift stops being an object and starts+ * being a wall.** Degrades honestly against an older backend: when the catalogue route does* not exist yet (404 — it goes live with the next restart) the tab says so@@ -31,9 +35,10 @@ import {} from "lucide-react";import { ViewHeader } from "@/views/ChatsView";import { ScrollArea } from "@/components/ui/scroll-area";+import { EmptyState } from "@/components/layout/EmptyState";+import { PanelSkeleton } from "@/components/layout/PanelSkeleton";import {IconButton,- Panel,PanelHeader,SegmentedFilter,SoftButton,@@ -203,7 +208,7 @@ export function AutomationsView() {return (<div className="flex h-full flex-col"><ViewHeader- icon={<Workflow className="h-4 w-4 text-primary" />}+ icon={<Workflow className="h-4 w-4" />}title={t("automations_view.title")}subtitle={t("automations_view.subtitle")}right={@@ -233,15 +238,13 @@ export function AutomationsView() {)}<ScrollArea className="flex-1">- <div className="mx-auto flex max-w-[1440px] flex-col gap-4 px-6 py-6">+ <div className="flex flex-col gap-group py-6">{notice && (<divrole="status"className={cn(- "flex items-center gap-2 rounded-lg border px-3 py-2 text-sm",- notice.kind === "error"- ? "border-destructive/50 bg-destructive/5 text-destructive"- : "border-primary/40 bg-primary/5 text-primary",+ "flex items-center gap-2 rounded-md bg-secondary px-3 py-2 text-body",+ notice.kind === "error" ? "text-destructive" : "text-foreground",)}><span className="min-w-0 flex-1 truncate">{notice.text}</span>@@ -257,13 +260,13 @@ export function AutomationsView() {)}{tasksQuery.error && (- <div className="rounded-lg border border-destructive/40 bg-destructive/5 px-3 py-2 text-sm text-destructive">+ <div className="rounded-md bg-secondary px-3 py-2 text-body text-destructive">{t("tasks_view.load_error")}: {(tasksQuery.error as Error).message}</div>)}{/* Headline numbers — what is armed, what happens next, what broke. */}- <div className="grid gap-3 sm:grid-cols-2 xl:grid-cols-4">+ <div className="grid gap-stack sm:grid-cols-2 xl:grid-cols-4"><StatTileicon={<Zap className="h-4 w-4" />}label={t("automations_view.stat_active")}@@ -313,21 +316,18 @@ export function AutomationsView() {/>{tab === "automations" && (- <Panel>- <div className="px-4 pt-4">- <PanelHeader- title={t("automations_view.yours_heading")}- subtitle={t("automations_view.yours_subtitle")}- actions={- <SoftButton onClick={openCatalogue}>- <LayoutGrid className="h-3.5 w-3.5" />- {t("automations_view.browse_catalogue")}- </SoftButton>- }- />- </div>- <div className="mt-3">- <AutomationsPanel+ <section className="space-y-stack">+ <PanelHeader+ title={t("automations_view.yours_heading")}+ subtitle={t("automations_view.yours_subtitle")}+ actions={+ <SoftButton onClick={openCatalogue}>+ <LayoutGrid className="h-3.5 w-3.5" />+ {t("automations_view.browse_catalogue")}+ </SoftButton>+ }+ />+ <AutomationsPanelautomations={automations}templatesByKey={templatesByKey}highlightId={highlightId}@@ -341,28 +341,24 @@ export function AutomationsView() {toggleId: setEnabled.isPending ? setEnabled.variables?.id : undefined,deleteId: deleteTask.isPending ? deleteTask.variables?.id : undefined,}}- loading={tasksQuery.isLoading}- />- </div>- </Panel>+ loading={tasksQuery.isLoading}+ />+ </section>)}{tab === "schedules" && (- <Panel>- <div className="px-4 pt-4">- <PanelHeader- title={t("automations_view.schedules_heading")}- subtitle={t("automations_view.schedules_subtitle")}- actions={- <SoftButton primary onClick={openScheduleCreate}>- <Plus className="h-3.5 w-3.5" />- {t("automations_view.new_schedule")}- </SoftButton>- }- />- </div>- <div className="mt-3">- <SchedulesPanel+ <section className="space-y-stack">+ <PanelHeader+ title={t("automations_view.schedules_heading")}+ subtitle={t("automations_view.schedules_subtitle")}+ actions={+ <SoftButton primary onClick={openScheduleCreate}>+ <Plus className="h-3.5 w-3.5" />+ {t("automations_view.new_schedule")}+ </SoftButton>+ }+ />+ <SchedulesPanelschedules={schedules}onRunNow={handleRunNow}onDelete={handleDelete}@@ -371,60 +367,60 @@ export function AutomationsView() {runId: runNow.isPending ? runNow.variables : undefined,deleteId: deleteTask.isPending ? deleteTask.variables?.id : undefined,}}- loading={tasksQuery.isLoading}- />- </div>- </Panel>+ loading={tasksQuery.isLoading}+ />+ </section>)}{tab === "runs" && (- <Panel>- <div className="px-4 pt-4">- <PanelHeader- title={t("automations_view.runs_heading")}- subtitle={t("automations_view.runs_subtitle")}- actions={- <SegmentedFilter<RunFilter>- label={t("automations_view.runs_filter_label")}- value={runFilter}- onChange={setRunFilter}- options={RUN_FILTERS.map((f) => ({- id: f,- label: t(`automations_view.runs_filter.${f}`),- }))}- />- }- />- </div>- <div className="mt-3">- <RunsPanel tasks={tasks} filter={runFilter} onNotice={showNotice} />- </div>- </Panel>+ <section className="space-y-stack">+ <PanelHeader+ title={t("automations_view.runs_heading")}+ subtitle={t("automations_view.runs_subtitle")}+ actions={+ <SegmentedFilter<RunFilter>+ label={t("automations_view.runs_filter_label")}+ value={runFilter}+ onChange={setRunFilter}+ options={RUN_FILTERS.map((f) => ({+ id: f,+ label: t(`automations_view.runs_filter.${f}`),+ }))}+ />+ }+ />+ <RunsPanel tasks={tasks} filter={runFilter} onNotice={showNotice} />+ </section>)}{tab === "catalogue" && (- <div className="space-y-3">+ <section className="space-y-stack"><PanelHeadertitle={t("automations_view.catalogue_heading")}subtitle={t("automations_view.catalogue_hint")}/>{catalogueUnavailable ? (- <Panel className="p-6 text-center text-sm text-muted-foreground">- {t("automations_view.catalogue_unavailable")}- </Panel>+ <EmptyState body={t("automations_view.catalogue_unavailable")} />) : templatesQuery.isLoading ? (- <p className="text-sm text-muted-foreground">- {t("automations_view.catalogue_loading")}- </p>+ // The catalogue is a card grid, so its wait is card-shaped —+ // a dimmed "Loading…" line in a black rectangle is the one+ // loading state this design system does not allow.+ <div className="grid grid-cols-1 gap-stack sm:grid-cols-2 xl:grid-cols-3">+ <PanelSkeleton+ rows={3}+ rowHeight={148}+ label={t("automations_view.catalogue_loading")}+ />+ <PanelSkeleton rows={3} rowHeight={148} />+ <PanelSkeleton rows={3} rowHeight={148} />+ </div>) : templatesQuery.error ? (- <Panel className="p-4 text-sm text-destructive">+ <p className="text-body text-destructive">{t("automations_view.catalogue_error")}:{" "}{(templatesQuery.error as Error).message}- </Panel>+ </p>) : templates.length === 0 ? (- <Panel className="p-6 text-center text-sm text-muted-foreground">- {t("automations_view.catalogue_empty")}- </Panel>+ <EmptyState body={t("automations_view.catalogue_empty")} />) : (<CataloguePaneltemplates={templates}@@ -434,11 +430,7 @@ export function AutomationsView() {onCreateCustom={openCreate}/>)}- </div>- )}-- {tasksQuery.isLoading && (- <p className="text-sm text-muted-foreground">{t("tasks_view.loading")}</p>+ </section>)}</div></ScrollArea>diff --git a/jarvis/ui/web/frontend/src/views/ChatsView.tsx b/jarvis/ui/web/frontend/src/views/ChatsView.tsxindex 877c9224dd..81ec0c0813 100644--- a/jarvis/ui/web/frontend/src/views/ChatsView.tsx+++ b/jarvis/ui/web/frontend/src/views/ChatsView.tsx@@ -1,5 +1,6 @@import { useCallback, useEffect, useLayoutEffect, type ReactNode } from "react";import { MessageSquare, Mic, Plus, Trash2, AudioLines } from "lucide-react";+import { identityInitial, identityMark } from "@/lib/identityHue";import {useEventStore,type ChatMessage,@@ -150,24 +151,24 @@ export function ChatsView({<div className="flex min-w-0 flex-1 flex-col"><ViewHeader- icon={<MessageSquare className="h-4 w-4 text-primary" />}+ icon={<MessageSquare className="h-4 w-4" />}title={activeTitle}subtitle={t("chats_view.subtitle")}right={- <div className="flex items-center gap-2">+ <div className="flex items-center gap-row"><buttontype="button"onClick={speak}disabled={!activeThreadId}title={t("chats_view.speak")}className={cn(- "flex items-center gap-2 rounded-lg border px-3 py-1.5 text-xs font-medium transition-colors",+ "flex items-center gap-row rounded-md px-3 py-1.5 text-body font-medium transition-colors",activeThreadId- ? "border-primary/40 bg-primary/10 text-primary hover:bg-primary/20"- : "cursor-not-allowed border-border text-muted-foreground/50",+ ? "text-muted-foreground hover:bg-secondary hover:text-foreground-strong"+ : "cursor-not-allowed text-faint-foreground",)}>- <AudioLines className="h-3.5 w-3.5" />+ <AudioLines className="h-4 w-4" /><span className="hidden sm:inline">{t("chats_view.speak")}</span><span className="sm:hidden">{t("chats_view.speak_short")}</span></button>@@ -176,12 +177,23 @@ export function ChatsView({}/>+ {/*+ * The transcript and the composer share one measure. Rule 1 — lift+ * scales inversely with area — is the reason the bubbles are capped at+ * 720px rather than allowed to run the window: a message the width of a+ * monitor is a slab, and message length stops being visual rhythm.+ */}<div className="flex-1 min-h-0">{!hasContent ? (<EmptyState />) : (<ScrollArea ref={rootRef} className="h-full">- <div ref={contentRef} className="space-y-3 px-6 py-4">+ {/* Turn gap 24px, then 40px of air so the composer below reads as+ a tool rather than as the last thing said. */}+ <div+ ref={contentRef}+ className="mx-auto w-full max-w-reading space-y-6 px-6 pb-10 pt-6"+ >{messages.map((m) => (<MessageBubble key={m.id} message={m} />))}@@ -191,7 +203,9 @@ export function ChatsView({)}</div>- <div className="relative border-t border-border px-6 py-4">+ {/* No rule above the composer: it has a real fill of its own, and a+ hairline plus a fill is the border this system does not draw. */}+ <div className="relative mx-auto w-full max-w-reading px-6 pb-6">{hasContent && !atEnd && <ScrollToEndButton onClick={jumpToEnd} />}<ChatInput /></div>@@ -225,17 +239,20 @@ function ConversationList({return (<asidestyle={{ width }}- className="flex h-full shrink-0 flex-col"+ className="flex h-full shrink-0 flex-col bg-sidebar">- <div className="flex items-center justify-between border-b border-border px-3 py-3">- <span className="font-display text-sm font-semibold tracking-tight">+ {/* No rule under the header. The rail is already a different fill from+ the room, and a list that reads on its own needs no chrome around it —+ Grok Bot's conversation list contains zero dividers. */}+ <div className="flex items-center justify-between gap-row px-3 py-3">+ <span className="text-title font-semibold text-foreground-strong">{t("chats_view.history")}</span><buttontype="button"onClick={onNew}title={t("chats_view.new_chat")}- className="flex items-center gap-1 rounded-lg border border-primary/40 bg-primary/10 px-2 py-1 text-xs font-medium text-primary transition-colors hover:bg-primary/20"+ className="flex shrink-0 items-center gap-1.5 rounded-md bg-primary px-2.5 py-1.5 text-meta font-medium text-primary-foreground transition-opacity hover:opacity-90"><Plus className="h-3.5 w-3.5" /><span>{t("chats_view.new_chat")}</span>@@ -243,18 +260,20 @@ function ConversationList({</div>{conversations.length === 0 ? (- <div className="flex flex-1 items-center justify-center px-4 text-center text-xs text-muted-foreground/60">+ <div className="flex flex-1 items-center justify-center px-4 text-center text-meta text-muted-foreground">{t("chats_view.empty_history")}</div>) : (<ScrollArea className="flex-1">- <div className="px-2 py-2">+ {/* 32px between day groups — the step the product was missing, and+ the reason a history list used to read as one long mesh. */}+ <div className="space-y-group px-2 pb-block pt-1">{groups.map(({ label, items }) => (- <div key={label} className="mb-3">- <div className="px-2 pb-1 text-[10px] font-semibold uppercase tracking-wider text-muted-foreground/60">+ <div key={label}>+ <div className="px-2 pb-1.5 text-meta text-muted-foreground">{label}</div>- <ul className="space-y-0.5">+ <ul>{items.map((c) => (<ConversationRowkey={`${c.kind}-${c.id}`}@@ -287,8 +306,14 @@ function ConversationRow({}) {const t = useT();const isVoice = conversation.kind === "voice";- const Icon = isVoice ? Mic : MessageSquare;const title = conversation.title || conversation.preview || t("chats_view.new_chat");+ // Second line: the preview where it says something the title does not,+ // otherwise the time on its own. The old row stacked title, preview, a+ // kind badge AND a timestamp into 56px of four type sizes; two lines carry+ // the same facts and let the row breathe to the reference height.+ const preview =+ conversation.preview && conversation.preview !== title ? conversation.preview : null;+ const time = formatTime(conversation.updated_ms);return (<li className="group relative">@@ -296,34 +321,44 @@ function ConversationRow({type="button"onClick={onOpen}className={cn(- "flex w-full items-start gap-2 rounded-lg px-2 py-2 text-left transition-colors",- active- ? "bg-primary/[0.08] shadow-[inset_2px_0_0_hsl(var(--primary))]"- : "hover:bg-card/20",+ // Selection is the whole row: a full-width fill inset from the+ // column edge, never a hairline and never an accent on the icon.+ "flex w-full items-center gap-stack rounded-md px-2 py-3 text-left transition-colors",+ active ? "bg-secondary" : "hover:bg-secondary",)}>- <Icon- className={cn(- "mt-0.5 h-3.5 w-3.5 shrink-0",- isVoice ? "text-muted-foreground" : "text-primary/80",+ <span+ aria-hidden+ style={identityMark(title)}+ className="relative flex h-9 w-9 shrink-0 items-center justify-center rounded-full text-meta font-semibold"+ >+ {identityInitial(title)}+ {isVoice && (+ // The kind used to be an all-caps chip on its own line. It is one+ // fact about the conversation, so it rides the mark instead.+ <span className="absolute -bottom-0.5 -right-0.5 flex h-4 w-4 items-center justify-center rounded-full bg-sidebar">+ <Mic className="h-2.5 w-2.5 text-muted-foreground" />+ </span>)}- />+ </span><span className="min-w-0 flex-1">- <span className="block truncate text-xs font-medium text-foreground">+ <span+ className={cn(+ "block truncate text-title font-semibold",+ active ? "text-foreground-strong" : "text-foreground",+ )}+ >{title}</span>- {conversation.preview && conversation.preview !== title && (- <span className="block truncate text-[11px] text-muted-foreground">- {conversation.preview}- </span>- )}- <span className="mt-0.5 flex items-center gap-1.5 text-[10px] text-muted-foreground/60">- <span className="rounded-sm bg-secondary/60 px-1 py-px uppercase tracking-wide">- {isVoice ? t("chats_view.voice_badge") : t("chats_view.text_badge")}- </span>- <span>{formatTime(conversation.updated_ms)}</span>+ <span className="mt-0.5 block truncate text-meta text-muted-foreground">+ {preview ?? time}</span></span>+ {preview && (+ <span className="shrink-0 self-start pt-0.5 text-meta tabular-nums text-muted-foreground">+ {time}+ </span>+ )}</button>{!isVoice && (<button@@ -333,7 +368,7 @@ function ConversationRow({onDelete();}}title={t("chats_view.delete")}- className="absolute right-1 top-1.5 hidden rounded-md p-1 text-muted-foreground/60 transition-colors hover:bg-destructive/15 hover:text-destructive group-hover:block"+ className="absolute right-1.5 top-1/2 hidden -translate-y-1/2 rounded-md bg-secondary p-1.5 text-muted-foreground transition-colors hover:text-destructive group-hover:block"><Trash2 className="h-3.5 w-3.5" /></button>@@ -394,22 +429,6 @@ function formatTime(ms: number): string {// Right pane helpers (unchanged behaviour)// -----------------------------------------------------------------------/**- * Shared assistant byline. Replaces the old sparkle-icon + "Jarvis" header —- * the sparkle read as a generic-AI tell. Now a calm gold dot + mono wordmark.- * The wordmark follows the configured assistant name (store-seeded) so a rename- * propagates to every reply byline instead of leaking a stale "Jarvis".- */-function AssistantLabel() {- const assistantName = useEventStore((s) => s.assistantName);- return (- <div className="flex items-center gap-1.5 font-mono text-[10px] uppercase tracking-[0.14em] text-primary">- <span className="h-1 w-1 rounded-full bg-foreground/70" aria-hidden />- {assistantName}- </div>- );-}-function MessageBubble({ message }: { message: ChatMessage }) {const isUser = message.role === "user";const isSystem = message.role === "system";@@ -417,30 +436,26 @@ function MessageBubble({ message }: { message: ChatMessage }) {// Finished reasoning trace for this reply (assistant messages only) —// renders as the collapsible "Thought for Xs" disclosure above the text.const trace = useEventStore((s) => s.thinkingTraces[message.id]);- const assistantName = useEventStore((s) => s.assistantName);+ // A system note is an aside about the conversation, not a turn in it. It used+ // to be a bordered card in the middle of the column, which made the timeline+ // read as three kinds of box; centred meta ink says the same thing quieter.if (isSystem) {return (- <div className="jarvis-message-surface mx-auto max-w-[85%] rounded-lg border border-border px-3 py-2 text-center text-xs italic text-muted-foreground">+ <div className="px-4 text-center text-meta text-muted-foreground">{message.content}</div>);}+ // The pre-acknowledgement — the short thing said before the real answer+ // arrives. Same speaker as the reply that follows, so it is not given a+ // second bubble: the timeline doctrine forbids nested and near-duplicate+ // boxes, and the "pre-ack" chip only restated what the italic already said.if (isPreamble) {return (- <div className="flex justify-start">- <div className="jarvis-message-surface max-w-[80%] rounded-2xl rounded-bl-sm border border-dashed border-border px-4 py-2.5 text-xs italic leading-relaxed text-muted-foreground">- <div className="mb-1 flex items-center gap-1.5">- <span className="rounded-sm border border-border bg-secondary/70 px-1.5 py-0.5 font-mono text-[9px] font-semibold uppercase tracking-wider text-muted-foreground">- pre-ack- </span>- <span className="font-mono text-[10px] uppercase tracking-[0.14em] text-muted-foreground">- {assistantName}- </span>- </div>- <div className="whitespace-pre-wrap">{message.content}</div>- </div>+ <div className="max-w-[85%] whitespace-pre-wrap text-reading italic text-muted-foreground">+ {message.content}</div>);}@@ -449,15 +464,18 @@ function MessageBubble({ message }: { message: ChatMessage }) {<div className={cn("flex", isUser ? "justify-end" : "justify-start")}><divclassName={cn(- "max-w-[80%] px-4 py-3 text-sm leading-relaxed",+ // Two independent signals for one fact: the fill says who spoke and+ // so does the side it sits on. That is why the byline above the+ // assistant's text is gone — it was a third signal for the same fact,+ // set in --primary, which this system reserves for fills.+ "max-w-[85%] rounded-lg px-4 py-3 text-reading",isUser- ? "jarvis-user-bubble rounded-2xl rounded-br-sm"- : "jarvis-message-surface rounded-2xl rounded-bl-sm text-foreground",+ ? "jarvis-user-bubble"+ : "jarvis-message-surface text-foreground",)}>- {!isUser && <AssistantLabel />}{!isUser && trace && <ThoughtTraceDisclosure trace={trace} />}- <div className={cn("whitespace-pre-wrap", !isUser && "mt-1.5")}>{message.content}</div>+ <div className="whitespace-pre-wrap">{message.content}</div></div></div>);@@ -483,13 +501,13 @@ function EmptyState() {<MascotGigi size={96} reactToVoice enableComments={false} /></div><h3- className="profile-rise font-display text-3xl tracking-tight text-foreground sm:text-4xl"+ className="profile-rise font-display text-display text-foreground-strong"style={{ animationDelay: "80ms" }}>{warming ? t("chats_view.warming_title") : t("chats_view.empty_title")}</h3><p- className="profile-rise mt-3 max-w-md text-sm leading-relaxed text-muted-foreground sm:text-base"+ className="profile-rise mt-3 max-w-form text-reading text-muted-foreground"style={{ animationDelay: "160ms" }}>{warming ? t("chats_view.warming_subtitle") : t("chats_view.empty_subtitle")}@@ -514,17 +532,27 @@ export function ViewHeader({right?: ReactNode;}) {return (- <header className="flex items-center gap-3 border-b border-border px-6 py-4">- <div className="flex h-8 w-8 items-center justify-center rounded-lg border border-border bg-secondary/50">+ <header className="flex items-center gap-stack border-b border-border px-6 py-4">+ {/*+ * The icon box is a lift tile with no rim — a fill and a border around+ * the same 32px square is the belt-and-braces this system drops. The+ * `[&_svg]:` rule is the single point where the mark is neutralised:+ * most call sites hand this header an icon painted with --primary, and+ * --primary is a fill, never a decorative glyph. Setting it here means+ * one edit answers for every section instead of thirty.+ */}+ <div className="flex h-8 w-8 shrink-0 items-center justify-center rounded-md bg-secondary [&_svg]:text-muted-foreground">{icon}</div><div className="flex-1 min-w-0">- <div className="flex items-center gap-2">- <h2 className="font-display text-base font-semibold tracking-tight">{title}</h2>+ <div className="flex items-center gap-row">+ <h2 className="truncate font-display text-page font-semibold text-foreground-strong">+ {title}+ </h2>{titleBadge}</div>{subtitle && (- <p className="truncate text-xs text-muted-foreground">{subtitle}</p>+ <p className="truncate text-meta text-muted-foreground">{subtitle}</p>)}</div>{right}diff --git a/jarvis/ui/web/frontend/src/views/CliTestHubView.tsx b/jarvis/ui/web/frontend/src/views/CliTestHubView.tsxindex ccd49fe413..ce88b48eb2 100644--- a/jarvis/ui/web/frontend/src/views/CliTestHubView.tsx+++ b/jarvis/ui/web/frontend/src/views/CliTestHubView.tsx@@ -106,7 +106,7 @@ function RiskBadge({ tier }: { tier: RiskTier | null }) {<spandata-testid="risk-badge"data-risk="unknown"- className="inline-flex items-center gap-1.5 rounded-md border border-border px-2 py-0.5 text-[11px] font-medium text-muted-foreground"+ className="inline-flex items-center gap-1.5 rounded-md border border-border px-2 py-0.5 text-micro font-medium text-muted-foreground">{t("cli_test_hub_view.no_risk_tier")}</span>@@ -119,7 +119,7 @@ function RiskBadge({ tier }: { tier: RiskTier | null }) {data-testid="risk-badge"data-risk={tier}className={cn(- "inline-flex items-center gap-1.5 rounded-md border px-2 py-0.5 text-[11px] font-medium",+ "inline-flex items-center gap-1.5 rounded-md border px-2 py-0.5 text-micro font-medium",style.badge,)}>@@ -305,7 +305,7 @@ function Composer({className={cn(// One card, not a labelled form field: the border belongs to the whole// composer and lights up when the caret is anywhere inside it.- "rounded-2xl border border-border bg-card/50 transition-colors",+ "rounded-2xl border border-border bg-card transition-colors","focus-within:border-foreground/25",)}>@@ -318,10 +318,10 @@ function Composer({rows={3}aria-label={`${t("cli_test_hub_view.instruction_to")} ${assistantName}`}placeholder={`${t("cli_test_hub_view.subtitle_tell")} ${assistantName}, ${t("cli_test_hub_view.placeholder_rest")}`}- className="w-full resize-none bg-transparent px-4 pb-2 pt-4 text-[15px] leading-relaxed placeholder:text-muted-foreground focus:outline-none disabled:opacity-60"+ className="w-full resize-none bg-transparent px-4 pb-2 pt-4 text-reading placeholder:text-muted-foreground focus:outline-none disabled:opacity-60"/>- <div className="flex flex-wrap items-center gap-2 border-t border-border/70 px-3 py-2.5">+ <div className="flex flex-wrap items-center gap-2 border-t border-border px-3 py-2.5"><TargetPickervalue={cliHint}onChange={onCliHintChange}@@ -329,7 +329,7 @@ function Composer({disabled={isPending}/><div className="ml-auto flex items-center gap-3">- <span className="hidden text-[11px] text-muted-foreground sm:inline">+ <span className="hidden text-micro text-muted-foreground sm:inline">{t("cli_test_hub_view.ctrl_cmd_enter")}</span><Button@@ -479,7 +479,7 @@ function Starters({<buttontype="button"onClick={() => onPick(cli.name, text)}- className="inline-flex items-center gap-2 rounded-lg border border-border bg-card/40 px-3 py-1.5 text-left text-xs text-foreground/85 transition-colors hover:border-foreground/20 hover:bg-sheen/[0.06]"+ className="inline-flex items-center gap-2 rounded-md bg-secondary px-3 py-1.5 text-left text-body text-foreground transition-colors hover:bg-popover"><CliLogocliName={cli.name}@@ -537,7 +537,7 @@ function ConnectedClisPanel({return (<divdata-testid="clis-empty"- className="rounded-xl border border-border bg-card/50 p-5"+ className="rounded-xl border border-border bg-card p-5"><div className="flex flex-col items-start gap-3"><div className="flex items-center gap-2 text-sm font-medium">@@ -565,7 +565,7 @@ function ConnectedClisPanel({{clis.map((cli) => (<likey={cli.name}- className="inline-flex items-center gap-1.5 rounded-lg border border-border bg-card/40 py-1 pl-1.5 pr-2.5 text-xs"+ className="inline-flex items-center gap-1.5 rounded-lg border border-border bg-card py-1 pl-1.5 pr-2.5 text-xs"title={cli.description}><CliLogo@@ -576,7 +576,7 @@ function ConnectedClisPanel({/><span className="font-medium">{cli.name}</span>{cli.version && (- <span className="font-mono text-[11px] text-muted-foreground">+ <span className="font-mono text-micro text-muted-foreground">{cli.version}</span>)}@@ -598,7 +598,7 @@ function ResultSkeleton() {<divdata-testid="result-skeleton"aria-busy="true"- className="space-y-3 rounded-xl border border-border bg-card/50 p-5"+ className="space-y-3 rounded-xl border border-border bg-card p-5"><div className="flex items-center gap-2 text-sm text-muted-foreground"><Loader2 className="h-4 w-4 animate-spin text-primary" />@@ -682,18 +682,18 @@ function RunCard({type="button"onClick={onToggle}aria-expanded={open}- className="flex w-full items-center gap-3 px-4 py-3 text-left transition-colors hover:bg-sheen/[0.04]"+ className="flex w-full items-center gap-3 px-4 py-3 text-left transition-colors hover:bg-secondary">{cli ? (<CliLogo cliName={cli} category="other" size="sm" />) : (- <span className="inline-flex h-7 w-7 shrink-0 items-center justify-center rounded-md border border-border/70 bg-background/60">+ <span className="inline-flex h-7 w-7 shrink-0 items-center justify-center rounded-md border border-border bg-background"><FlaskConical className="h-4 w-4 text-muted-foreground" /></span>)}<span className="min-w-0 flex-1"><span className="block truncate text-sm">{run.instruction}</span>- <span className="mt-0.5 block truncate font-mono text-[11px] text-muted-foreground">+ <span className="mt-0.5 block truncate font-mono text-micro text-muted-foreground">{run.result?.command ?? run.error?.message ?? t("cli_test_hub_view.no_command")}</span></span>@@ -707,7 +707,7 @@ function RunCard({</button>{open && (- <div className="border-t border-border/70 px-4 py-4">+ <div className="border-t border-border px-4 py-4">{run.error ? (<RequestErrorPanel error={run.error} />) : run.result ? (@@ -733,8 +733,8 @@ function RequestErrorPanel({ error }: { error: Error }) {<h3 className="mb-1 text-sm font-semibold text-destructive">{t("cli_test_hub_view.request_failed")}</h3>- <p className="break-words text-xs text-destructive/90">{error.message}</p>- <p className="mt-2 text-[11px] text-muted-foreground">+ <p className="break-words text-xs text-destructive">{error.message}</p>+ <p className="mt-2 text-micro text-muted-foreground">{t("cli_test_hub_view.backend_check_prefix")}<code className="mx-1 font-mono">/api/clis/test-run</code>{" "}{t("cli_test_hub_view.backend_check_suffix")}@@ -763,7 +763,7 @@ function ResultPanel({ result }: { result: TestRunResponse }) {</div><pdata-testid="result-summary"- className="text-[15px] leading-relaxed text-foreground"+ className="text-reading text-foreground">{result.summary || (failed ? t("cli_test_hub_view.command_failed") : "—")}</p>@@ -834,18 +834,18 @@ function ResultPanel({ result }: { result: TestRunResponse }) {{result.steps.map((step, idx) => (<likey={`${step.tool}-${idx}`}- className="flex items-start gap-2.5 rounded-lg border border-border bg-background/40 px-3 py-2"+ className="flex items-start gap-2.5 rounded-lg border border-border bg-background px-3 py-2">- <span className="mt-0.5 flex h-5 w-5 shrink-0 items-center justify-center rounded-full bg-sheen/[0.08] text-[11px] font-medium tabular-nums text-muted-foreground">+ <span className="mt-0.5 flex h-5 w-5 shrink-0 items-center justify-center rounded-full bg-secondary text-micro font-medium tabular-nums text-muted-foreground">{idx + 1}</span><div className="min-w-0 flex-1">- <div className="flex items-center gap-1.5 text-[11px] text-muted-foreground">+ <div className="flex items-center gap-1.5 text-micro text-muted-foreground"><span className="font-mono">{step.tool}</span><ChevronRight className="h-3 w-3" /><StepExitCode code={step.exit_code} /></div>- <code className="mt-0.5 block break-all font-mono text-[11px] text-foreground">+ <code className="mt-0.5 block break-all font-mono text-micro text-foreground">{step.command}</code></div>@@ -857,7 +857,7 @@ function ResultPanel({ result }: { result: TestRunResponse }) {{/* Empty result hint — no tool resolved at all. */}{!result.tool_called && !result.command && !result.error && (- <div className="rounded-lg border border-border bg-background/40 px-3 py-2 text-xs text-muted-foreground">+ <div className="rounded-lg border border-border bg-background px-3 py-2 text-xs text-muted-foreground">{assistantName} {t("cli_test_hub_view.no_tool_found")}</div>)}@@ -877,7 +877,7 @@ function MetaChip({children: React.ReactNode;}) {return (- <span className="inline-flex items-center gap-1.5 rounded-md border border-border bg-background/40 px-2 py-0.5 text-[11px]">+ <span className="inline-flex items-center gap-1.5 rounded-md border border-border bg-background px-2 py-0.5 text-micro"><span className="text-muted-foreground">{label}</span><span className="text-foreground">{children}</span></span>@@ -905,7 +905,7 @@ function ExitCodeBadge({<spandata-testid={testId}data-exit="null"- className="inline-flex shrink-0 items-center gap-1.5 rounded-md border border-border bg-background/40 px-2 py-0.5 text-[11px] text-muted-foreground"+ className="inline-flex shrink-0 items-center gap-1.5 rounded-md border border-border bg-background px-2 py-0.5 text-micro text-muted-foreground">{!compact && <span className="text-muted-foreground">Exit</span>}<span>—</span>@@ -918,7 +918,7 @@ function ExitCodeBadge({data-testid={testId}data-exit={String(code)}className={cn(- "inline-flex shrink-0 items-center gap-1.5 rounded-md border px-2 py-0.5 text-[11px] font-medium tabular-nums",+ "inline-flex shrink-0 items-center gap-1.5 rounded-md border px-2 py-0.5 text-micro font-medium tabular-nums",ok? "border-muted-foreground/40 bg-muted-foreground/10 text-muted-foreground": "border-destructive/50 bg-destructive/10 text-destructive",@@ -932,7 +932,7 @@ function ExitCodeBadge({function StepExitCode({ code }: { code: number | null }) {if (code === null || code === undefined) {- return <span className="text-muted-foreground/70">exit —</span>;+ return <span className="text-muted-foreground">exit —</span>;}return (<span@@ -972,7 +972,7 @@ function CodeBlock({window.setTimeout(() => setCopied(false), 1500);});}}- className="inline-flex items-center gap-1 text-[11px] text-muted-foreground transition-colors hover:text-foreground"+ className="inline-flex items-center gap-1 text-micro text-muted-foreground transition-colors hover:text-foreground">{copied ? <Check className="h-3 w-3" /> : <Copy className="h-3 w-3" />}{copied ? t("cli_test_hub_view.copied") : t("cli_test_hub_view.copy")}@@ -1006,8 +1006,8 @@ function OutputBlock({<predata-testid={testId}className={cn(- "whitespace-pre-wrap break-words px-3 py-2 font-mono text-[11px] leading-relaxed",- tone === "error" ? "text-destructive/90" : "text-foreground/90",+ "whitespace-pre-wrap break-words px-3 py-2 font-mono text-micro",+ tone === "error" ? "text-destructive" : "text-foreground",)}>{content}diff --git a/jarvis/ui/web/frontend/src/views/ClisHubView.tsx b/jarvis/ui/web/frontend/src/views/ClisHubView.tsxindex 5db81c2ffe..b16ae165ad 100644--- a/jarvis/ui/web/frontend/src/views/ClisHubView.tsx+++ b/jarvis/ui/web/frontend/src/views/ClisHubView.tsx@@ -52,9 +52,9 @@ export function ClisHubView() {<div className="flex h-full min-h-0"><navaria-label={t("clis_view.group_label")}- className="flex w-[200px] shrink-0 flex-col border-r border-border/60 px-3 py-3"+ className="flex w-[200px] shrink-0 flex-col border-r border-border px-3 py-3">- <p className="px-2.5 pb-2 text-[11px] font-medium uppercase tracking-wider text-foreground/50">+ <p className="px-2.5 pb-2 text-micro font-medium text-foreground">{t("clis_view.group_label")}</p><ul className="space-y-0.5">@@ -68,16 +68,16 @@ export function ClisHubView() {onClick={() => setActive(area.id)}aria-current={isActive ? "page" : undefined}className={cn(- "flex w-full items-center gap-2.5 rounded-xl px-2.5 py-2 text-left text-[13px] font-medium transition-colors",+ "flex w-full items-center gap-2.5 rounded-xl px-2.5 py-2 text-left text-meta font-medium transition-colors",isActive? "jarvis-nav-active"- : "text-foreground/80 hover:bg-secondary/70 hover:text-foreground",+ : "text-foreground hover:bg-secondary hover:text-foreground",)}><IconclassName={cn("h-4 w-4 shrink-0",- isActive ? "text-foreground" : "text-foreground/55",+ isActive ? "text-foreground" : "text-foreground",)}/><span className="flex-1 truncate">{t(area.labelKey)}</span>diff --git a/jarvis/ui/web/frontend/src/views/ClisView.tsx b/jarvis/ui/web/frontend/src/views/ClisView.tsxindex 6134483cd2..6c58971f3f 100644--- a/jarvis/ui/web/frontend/src/views/ClisView.tsx+++ b/jarvis/ui/web/frontend/src/views/ClisView.tsx@@ -376,7 +376,7 @@ function CliRow({<CliLogo cliName={cli.name} category={cli.category} /><div className="min-w-0"><div className="flex items-center gap-2">- <span className="truncate text-[15px] font-medium">{cli.display_name}</span>+ <span className="truncate text-reading font-medium">{cli.display_name}</span><span className="shrink-0 font-mono text-xs text-muted-foreground">{cli.name}</span>@@ -413,12 +413,12 @@ function CliRow({<span className="tabular-nums">{fill(t("clis_view.usage_7d"), { count: cli.usage_count_7d })}</span>- <span className="block text-[11px] text-muted-foreground/70">+ <span className="block text-micro text-muted-foreground">{formatRelativeTime(cli.last_used_at)}</span></button>) : (- <span className="text-xs text-muted-foreground/60">+ <span className="text-xs text-muted-foreground">{t("clis_view.never_used")}</span>)}@@ -431,7 +431,7 @@ function EmptyCatalog() {const t = useT();return (<div className="flex flex-col items-center justify-center gap-5 py-16 text-center">- <div className="flex h-16 w-16 items-center justify-center rounded-2xl border border-border bg-card/60">+ <div className="flex h-16 w-16 items-center justify-center rounded-2xl border border-border bg-card"><Terminal className="h-7 w-7 text-muted-foreground" /></div><h3 className="font-display text-xl font-semibold tracking-tight">@@ -489,7 +489,7 @@ function CliDetailPage({}title={data.display_name}titleAccessory={- <span className="rounded-md bg-sheen/[0.08] px-2 py-0.5 font-mono text-xs text-muted-foreground">+ <span className="rounded-md bg-secondary px-2 py-0.5 font-mono text-meta text-muted-foreground">{data.name}</span>}@@ -745,7 +745,7 @@ function DetailPanel({}) {return (<Panel className={cn("p-5", className)}>- <h4 className="mb-3 text-[11px] font-medium uppercase tracking-wider text-muted-foreground">+ <h4 className="mb-3 text-micro font-medium text-muted-foreground">{title}</h4><div className="space-y-3">{children}</div>@@ -775,7 +775,7 @@ function PatternList({key={pattern}className={cn("break-all font-mono text-xs",- tone === "deny" ? "text-destructive/80" : "text-muted-foreground/90",+ tone === "deny" ? "text-destructive" : "text-muted-foreground",)}>{pattern}@@ -875,7 +875,7 @@ function DialogShell({<div className="fixed inset-0 z-50 flex items-center justify-center bg-scrim/60 backdrop-blur-sm"><divclassName={cn(- "flex w-full flex-col overflow-hidden rounded-xl border border-border bg-card",+ "flex w-full flex-col overflow-hidden rounded-lg bg-popover shadow-float",width,)}>@@ -957,7 +957,7 @@ function ApiKeyDialog({<div className="mb-1 flex items-center justify-between"><span className="font-medium">{sk.env_var}</span>{sk.required && (- <span className="text-[11px] text-muted-foreground">+ <span className="text-micro text-muted-foreground">{t("clis_view.required_word")}</span>)}@@ -1080,7 +1080,7 @@ function InstallDialog({"flex cursor-pointer items-center gap-2 rounded-md border px-3 py-2 transition-colors",selected === m.manager? "border-primary/40 bg-primary/10"- : "border-border hover:bg-sheen/[0.05]",+ : "border-border hover:bg-secondary",)}><input@@ -1454,7 +1454,7 @@ function UsageDrawer({ name, onClose }: { name: string; onClose: () => void }) {{usage && usage.entries.length > 0 && (<ul className="space-y-1.5">{usage.entries.map((e) => (- <li key={e.id} className="rounded-lg border border-border bg-background/40 px-3 py-2">+ <li key={e.id} className="rounded-lg border border-border bg-background px-3 py-2"><div className="flex items-start justify-between gap-2"><code className="min-w-0 flex-1 break-all font-mono text-xs">{e.full_command}@@ -1468,14 +1468,14 @@ function UsageDrawer({ name, onClose }: { name: string; onClose: () => void }) {{e.exit_code === 0 ? "✓" : e.exit_code !== null ? `✗ ${e.exit_code}` : "…"}</span></div>- <div className="mt-1 flex flex-wrap items-center gap-x-3 gap-y-0.5 text-[11px] text-muted-foreground tabular-nums">+ <div className="mt-1 flex flex-wrap items-center gap-x-3 gap-y-0.5 text-micro text-muted-foreground tabular-nums"><span>{formatDateTime(e.started_at)}</span>{e.duration_ms !== null && <span>{e.duration_ms} ms</span>}<span>{e.caller}</span>{e.trace_id && <span title={e.trace_id}>T:{e.trace_id.slice(0, 8)}</span>}</div>{e.stderr_preview && (- <div className="mt-1.5 rounded border border-destructive/30 bg-destructive/5 px-2 py-1 font-mono text-[11px] text-destructive/90">+ <div className="mt-1.5 rounded border border-destructive/30 bg-destructive/5 px-2 py-1 font-mono text-micro text-destructive">{e.stderr_preview}</div>)}@@ -1488,7 +1488,7 @@ function UsageDrawer({ name, onClose }: { name: string; onClose: () => void }) {{stats && stats.top_commands.length > 0 && (<div className="border-t border-border px-5 py-3">- <div className="mb-1.5 text-[11px] font-medium uppercase tracking-wider text-muted-foreground">+ <div className="mb-1.5 text-micro font-medium text-muted-foreground">{t("clis_view.top_commands")}</div><ul className="space-y-0.5">diff --git a/jarvis/ui/web/frontend/src/views/DictationView.tsx b/jarvis/ui/web/frontend/src/views/DictationView.tsxindex c48d6a07c5..5e227a74de 100644--- a/jarvis/ui/web/frontend/src/views/DictationView.tsx+++ b/jarvis/ui/web/frontend/src/views/DictationView.tsx@@ -10,6 +10,9 @@ import {} from "lucide-react";import { ViewHeader } from "@/views/ChatsView";import { Button } from "@/components/ui/button";+import { Card } from "@/components/ui/card";+import { EmptyState } from "@/components/layout/EmptyState";+import { PanelSkeleton, SkeletonBar } from "@/components/layout/PanelSkeleton";import { useDictation, type DictationEntry } from "@/hooks/useDictation";import { DictationStatsBar } from "@/views/voice/DictationStatsBar";import { DictationHistoryGroup } from "@/views/voice/DictationHistoryGroup";@@ -24,7 +27,7 @@ import { useT } from "@/i18n";** 1. **Whether insertion can work at all.** On Wayland, on a headless host, or* while an elevated window is in front, the OS blocks one program from- * typing into another — and does so silently. The banner says it up front so+ * typing into another — and does so silently. The notice says it up front so* "nothing happened" is never a mystery.* 2. **What the filler cleanup changed.** Every entry keeps the raw transcript* next to the inserted one, so a wrong rule is findable instead of merely@@ -47,6 +50,10 @@ import { useT } from "@/i18n";* left earlier for the same reason: the two dictation shortcuts in the voice* section's Shortcuts tab are the source of truth for hold-vs-hands-free.*+ * The screen is three groups — state, numbers, history — separated by 32px and+ * bounded at the reading measure, because everything on it is either a card or+ * a transcript and neither earns the full width of a desktop window.+ ** Backed by /api/dictation (status/start/stop/history/stats) via useDictation.*/export interface DictationViewProps {@@ -155,58 +162,79 @@ export function DictationView({ hideHeader = false }: DictationViewProps = {}) {const groups = useMemo(() => groupByDay(filtered), [filtered]);+ // Life / neutral / fault, and nothing in between. A recording session is the+ // one thing on this screen that is actually running, so it is the one thing+ // wearing --success; "ready" is a neutral idle, and a machine that cannot+ // dictate at all is a fault rather than a dimmer shade of ready.+ const dotFill = status?.active+ ? "bg-success motion-safe:animate-pulse"+ : status?.available+ ? "bg-muted-foreground"+ : "bg-destructive";+return (<div className="flex h-full flex-col">{!hideHeader && (<ViewHeader- icon={<Mic className="h-4 w-4 text-primary" />}+ icon={<Mic className="h-4 w-4 text-foreground" />}title={t("dictation.title")}subtitle={t("dictation.description")}/>)}<div className="flex-1 overflow-y-auto scrollbar-jarvis p-6">- <div className="mx-auto flex max-w-3xl flex-col gap-4">- {error && <p className="text-xs text-destructive">{error}</p>}+ <div className="mx-auto flex max-w-reading flex-col gap-group">+ {error && <p className="text-meta text-destructive">{error}</p>}- {/* --- Insertion warning: the silent-failure paths, made loud. --- */}+ {/* --- Insertion notice: the silent-failure paths, made loud. ---+ Degraded, not broken — the words still reach the clipboard — so+ it is a --warning glyph on an ordinary card, never a washed+ panel that claims the whole screen has failed. */}{blocked && (- <div- className="flex items-start gap-3 rounded-lg border border-foreground/40 bg-foreground/10 p-4"+ <Card+ className="flex items-start gap-3 p-5"data-testid="dictation-insert-warning">- <AlertTriangle className="mt-0.5 h-4 w-4 shrink-0 text-foreground" />+ <AlertTriangle+ aria-hidden="true"+ className="mt-0.5 h-4 w-4 shrink-0 text-warning"+ /><div className="min-w-0">- <h4 className="font-display text-sm font-semibold">+ <h4 className="text-title font-semibold text-foreground-strong">{t("dictation.cannot_insert_title")}</h4>- <p className="mt-1 text-xs text-muted-foreground">+ <p className="mt-1 text-meta text-muted-foreground">{status?.insertion.detail || t("dictation.cannot_insert_generic")}</p></div>- </div>+ </Card>)}- {/* --- Status + the big button. --- */}- <div className="rounded-lg border border-border bg-card/60 p-4">+ {/* --- State, and the one primary action on the screen. --- */}+ <Card className="p-5">{loading ? (- <div className="flex items-center gap-2 text-xs text-muted-foreground">- <Loader2 className="h-3.5 w-3.5 animate-spin" />- {t("dictation.loading")}+ // The real card at its real height with bars where the state+ // line and the button will be — never a centred grey word, which+ // is indistinguishable from a section that failed.+ <div+ role="status"+ aria-busy="true"+ aria-label={t("dictation.loading")}+ className="flex items-center justify-between gap-4"+ >+ <div className="flex min-w-0 flex-1 flex-col gap-2">+ <SkeletonBar className="h-4 w-32" />+ <SkeletonBar className="h-3 w-3/5" />+ </div>+ <SkeletonBar className="h-9 w-32 shrink-0" /></div>) : (- <div className="flex flex-wrap items-center justify-between gap-3">+ <div className="flex flex-wrap items-center justify-between gap-4"><div className="min-w-0"><div className="flex items-center gap-2"><span- className={`h-2 w-2 shrink-0 rounded-full ${- status?.active- ? "animate-pulse bg-foreground/70"- : status?.available- ? "bg-muted-foreground"- : "bg-muted-foreground/50"- }`}+ className={`h-2 w-2 shrink-0 rounded-full ${dotFill}`}/>- <span className="text-sm font-medium">+ <span className="text-title font-semibold text-foreground-strong">{status?.active? t("dictation.state_active"): status?.available@@ -214,7 +242,7 @@ export function DictationView({ hideHeader = false }: DictationViewProps = {}) {: t("dictation.state_unavailable")}</span></div>- <p className="mt-1 text-xs text-muted-foreground">+ <p className="mt-1 text-meta text-muted-foreground">{status?.available? status.hotkey? t("dictation.shortcut_set").replace("{0}", status.hotkey)@@ -223,45 +251,78 @@ export function DictationView({ hideHeader = false }: DictationViewProps = {}) {</p></div><Button- size="sm"- className="gap-1.5"+ className="gap-2"disabled={busy || !status?.available}data-testid="dictation-toggle"onClick={() => void onToggle()}>{busy ? (- <Loader2 className="h-3.5 w-3.5 animate-spin" />+ <Loader2+ aria-hidden="true"+ className="h-4 w-4 animate-spin motion-reduce:animate-none"+ />) : status?.active ? (- <Square className="h-3.5 w-3.5" />+ <Square aria-hidden="true" className="h-4 w-4" />) : (- <Mic className="h-3.5 w-3.5" />+ <Mic aria-hidden="true" className="h-4 w-4" />)}{status?.active ? t("dictation.stop") : t("dictation.start")}</Button></div>)}{!status?.hotkey && status?.available && (- <p className="mt-3 flex items-center gap-1.5 text-xs text-muted-foreground">- <Keyboard className="h-3.5 w-3.5" />+ <p className="mt-block flex items-center gap-2 text-meta text-muted-foreground">+ <Keyboard aria-hidden="true" className="h-3.5 w-3.5 shrink-0" />{t("dictation.assign_hint")}</p>)}- </div>+ </Card>- {/* --- How much you dictate, honestly windowed. --- */}- {stats && <DictationStatsBar stats={stats} />}+ {/* --- How much you dictate, honestly windowed. ---+ While the request is in flight the three tiles stand at their+ real size as empty bars. Rendering the card with zeros in it+ would not read as loading; it would read as a person who has+ never dictated anything. */}+ {loading ? (+ <Card className="p-5">+ <SkeletonBar className="h-3 w-24" />+ <div className="mt-stack grid gap-stack sm:grid-cols-3">+ <SkeletonBar className="h-[84px]" />+ <SkeletonBar className="h-[84px]" />+ <SkeletonBar className="h-[84px]" />+ </div>+ </Card>+ ) : (+ stats && <DictationStatsBar stats={stats} />+ )}- {/* --- History. --- */}- <div className="rounded-lg border border-border bg-card/60 p-4">- <div className="flex items-center justify-between gap-3">- <h4 className="font-display text-sm font-semibold">- {t("dictation.history_title")}- </h4>- {entries.length > 0 && (+ {/* --- History. ---+ With nothing in it there is no list to frame, so the card, its+ title, its hint and its search field all go and the designed+ empty surface stands alone. */}+ {loading ? (+ <Card className="p-5">+ <SkeletonBar className="h-4 w-40" />+ <SkeletonBar className="mt-block h-9 w-full" />+ <PanelSkeleton+ className="mt-block"+ rows={4}+ rowHeight={56}+ label={t("dictation.loading")}+ />+ </Card>+ ) : entries.length === 0 ? (+ <EmptyState icon={<Mic />} body={t("dictation.history_empty")} />+ ) : (+ <Card className="p-5">+ <div className="flex items-center justify-between gap-3">+ <h4 className="text-title font-semibold text-foreground-strong">+ {t("dictation.history_title")}+ </h4><Buttonsize="sm"variant="ghost"- className="gap-1.5 text-xs"+ className="gap-2 text-muted-foreground"data-testid="dictation-clear-history"onClick={() => {void clearHistory().catch((e) =>@@ -269,64 +330,64 @@ export function DictationView({ hideHeader = false }: DictationViewProps = {}) {);}}>- <Trash2 className="h-3.5 w-3.5" />+ <Trash2 aria-hidden="true" className="h-3.5 w-3.5" />{t("dictation.clear_history")}</Button>- )}- </div>- {entries.length > 0 && (- <>- <p className="mt-1 text-[11px] text-muted-foreground">- {t("dictation.clear_history_hint")}- </p>- <div className="relative mt-3">- <Search className="absolute left-2.5 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-muted-foreground" />- <input- value={query}- onChange={(e) => setQuery(e.target.value)}- placeholder={t("dictation.search_placeholder")}- aria-label={t("dictation.search_placeholder")}- data-testid="dictation-search"- className="w-full rounded-md border border-input bg-background py-1.5 pl-8 pr-3 text-sm focus:outline-none focus:ring-1 focus:ring-primary"- />- </div>- </>- )}- {entries.length === 0 ? (- <p className="mt-3 text-xs text-muted-foreground">- {t("dictation.history_empty")}- </p>- ) : filtered.length === 0 ? (- /* Shared "nothing matched your search" string — the Dictionary- tab owns it and it is already localized everywhere. */- <p- className="mt-3 text-xs text-muted-foreground"- data-testid="dictation-no-matches"- >- {t("dictionary.no_matches")}+ </div>+ <p className="mt-1 text-meta text-muted-foreground">+ {t("dictation.clear_history_hint")}</p>- ) : (- <div className="mt-3" data-testid="dictation-history">- {groups.map((group) => (- <DictationHistoryGroup- key={group.key}- label={dayLabel(t, group.key)}- entries={group.entries}- busyIds={busyIds}- copiedId={copiedId}- onCopy={(entry) => void onCopy(entry)}- onRestore={(entry) => void onRestore(entry)}- onDiscard={(entry) => {- void withRowBusy(entry.id, () => discardEntry(entry.id));- }}- onDelete={(entry) => {- void withRowBusy(entry.id, () => deleteEntry(entry.id));- }}- />- ))}+ {/* A field is a lift surface, not a hairline outline: it now+ answers with a fill the way every other input in the app+ does, and the focus ring is a rim rather than a third fill. */}+ <div className="relative mt-block">+ <Search+ aria-hidden="true"+ className="pointer-events-none absolute left-3 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-muted-foreground"+ />+ <input+ value={query}+ onChange={(e) => setQuery(e.target.value)}+ placeholder={t("dictation.search_placeholder")}+ aria-label={t("dictation.search_placeholder")}+ data-testid="dictation-search"+ className="h-9 w-full rounded-md bg-input pl-9 pr-3 text-body text-foreground placeholder:text-faint-foreground focus:outline-none focus:ring-2 focus:ring-border-strong"+ /></div>- )}- </div>+ {filtered.length === 0 ? (+ /* Shared "nothing matched your search" string — the Dictionary+ tab owns it and it is already localized everywhere. A lift+ panel at the height the list would have had, so clearing the+ query does not make the card jump. */+ <div+ className="mt-block rounded-md bg-secondary px-block py-10 text-center text-body text-muted-foreground"+ data-testid="dictation-no-matches"+ >+ {t("dictionary.no_matches")}+ </div>+ ) : (+ <div className="mt-block" data-testid="dictation-history">+ {groups.map((group) => (+ <DictationHistoryGroup+ key={group.key}+ label={dayLabel(t, group.key)}+ entries={group.entries}+ busyIds={busyIds}+ copiedId={copiedId}+ onCopy={(entry) => void onCopy(entry)}+ onRestore={(entry) => void onRestore(entry)}+ onDiscard={(entry) => {+ void withRowBusy(entry.id, () => discardEntry(entry.id));+ }}+ onDelete={(entry) => {+ void withRowBusy(entry.id, () => deleteEntry(entry.id));+ }}+ />+ ))}+ </div>+ )}+ </Card>+ )}</div></div></div>diff --git a/jarvis/ui/web/frontend/src/views/DictionaryView.tsx b/jarvis/ui/web/frontend/src/views/DictionaryView.tsxindex 5457dcff2a..c4261db92c 100644--- a/jarvis/ui/web/frontend/src/views/DictionaryView.tsx+++ b/jarvis/ui/web/frontend/src/views/DictionaryView.tsx@@ -285,7 +285,7 @@ function DictionaryEntryDialog({role="presentation"><div- className="w-full max-w-md rounded-xl border border-border bg-card p-6"+ className="w-full max-w-md rounded-lg bg-popover shadow-float p-6"onClick={(e) => e.stopPropagation()}data-testid="dictionary-dialog"role="dialog"diff --git a/jarvis/ui/web/frontend/src/views/ExtensionsView.tsx b/jarvis/ui/web/frontend/src/views/ExtensionsView.tsxindex 52d1488da3..61143131b6 100644--- a/jarvis/ui/web/frontend/src/views/ExtensionsView.tsx+++ b/jarvis/ui/web/frontend/src/views/ExtensionsView.tsx@@ -63,9 +63,9 @@ export function ExtensionsView() {<div className="flex h-full min-h-0"><navaria-label={t("extensions.group_label")}- className="flex w-[200px] shrink-0 flex-col border-r border-border/60 px-3 py-3"+ className="flex w-[200px] shrink-0 flex-col border-r border-border px-3 py-3">- <p className="px-2.5 pb-2 text-[11px] font-medium uppercase tracking-wider text-foreground/50">+ <p className="px-2.5 pb-2 text-micro font-medium text-foreground">{t("extensions.group_label")}</p><ul className="space-y-0.5">@@ -80,10 +80,10 @@ export function ExtensionsView() {onClick={() => setActive(area.id)}aria-current={isActive ? "page" : undefined}className={cn(- "flex w-full items-center gap-2.5 rounded-xl px-2.5 py-2 text-left text-[13px] font-medium transition-colors",+ "flex w-full items-center gap-2.5 rounded-xl px-2.5 py-2 text-left text-meta font-medium transition-colors",isActive? "jarvis-nav-active"- : "text-foreground/80 hover:bg-secondary/70 hover:text-foreground",+ : "text-foreground hover:bg-secondary hover:text-foreground",)}><Icon className={cn("h-4 w-4 shrink-0", isActive ? "text-foreground" : "text-foreground/55")} />diff --git a/jarvis/ui/web/frontend/src/views/MarketplaceView.tsx b/jarvis/ui/web/frontend/src/views/MarketplaceView.tsxindex 3a1fcea24b..eb74ef2895 100644--- a/jarvis/ui/web/frontend/src/views/MarketplaceView.tsx+++ b/jarvis/ui/web/frontend/src/views/MarketplaceView.tsx@@ -339,7 +339,7 @@ export function MarketplaceView() {}/>- <div className="flex items-center gap-3 border-b border-border bg-background/60 px-6 py-3 backdrop-blur-sm">+ <div className="flex items-center gap-3 border-b border-border bg-background px-6 py-3 backdrop-blur-sm"><div className="relative min-w-0 flex-1"><Search className="pointer-events-none absolute -z-10 left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" /><input@@ -349,8 +349,8 @@ export function MarketplaceView() {aria-label={t("marketplace.search_placeholder")}className={cn("h-9 w-full rounded-md border border-border bg-background pl-9 pr-3",- "text-sm text-foreground placeholder:text-muted-foreground",- "outline-none transition-colors focus:border-primary/60",+ "text-sm text-foreground placeholder:text-faint-foreground",+ "outline-none transition-colors focus:border-border-strong",)}/></div>@@ -370,7 +370,7 @@ export function MarketplaceView() {</div>{offline && (- <p className="flex items-center gap-2 border-b border-border bg-foreground/10 px-6 py-2 text-xs text-foreground">+ <p className="flex items-center gap-2 border-b bg-secondary px-6 py-2 text-xs text-foreground"><AlertTriangle className="h-3.5 w-3.5 shrink-0" />{status === "unavailable"? t("marketplace.status_unavailable")@@ -462,7 +462,7 @@ export function MarketplaceView() {entries={skills}onOpen={setOpenEntry}icon={() => (- <div className="grid h-10 w-10 shrink-0 place-items-center rounded-lg border border-border/60 bg-secondary/50">+ <div className="grid h-10 w-10 shrink-0 place-items-center rounded-lg bg-secondary"><Wand2 className="h-4 w-4 text-muted-foreground" /></div>)}@@ -563,7 +563,7 @@ function FilterChips({"rounded-md px-2.5 py-1.5 text-xs font-medium transition-colors",active === chip.id? "bg-secondary text-foreground"- : "text-muted-foreground hover:bg-secondary/50 hover:text-foreground",+ : "text-muted-foreground hover:bg-secondary hover:text-foreground",)}>{chip.label}@@ -593,7 +593,7 @@ function Shelf({{title}</h3><span className="text-xs tabular-nums text-muted-foreground">{count}</span>- <span className="min-w-0 truncate text-xs font-medium text-foreground/75">{hint}</span>+ <span className="min-w-0 truncate text-xs font-medium text-foreground">{hint}</span></div>{children}</section>@@ -615,9 +615,9 @@ function WallpaperTile({onClick={onOpen}className={cn("group relative block aspect-[16/10] w-full overflow-hidden rounded-xl",- "border border-border bg-secondary/40 text-left",- "transition-colors hover:border-primary/50",- "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/60",+ "bg-secondary text-left",+ "transition-colors hover:border-border-strong",+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-strong/60",)}>{entry.thumbUrl ? (@@ -635,11 +635,11 @@ function WallpaperTile({<div className="absolute inset-x-0 bottom-0 bg-gradient-to-t from-black/75 via-black/35 to-transparent p-3"><p className="truncate text-sm font-medium text-white">{entry.title}</p>{entry.publisher && (- <p className="truncate text-[11px] text-white/70">{entry.publisher}</p>+ <p className="truncate text-micro text-white/70">{entry.publisher}</p>)}</div>{entry.installed && (- <span className="absolute right-2 top-2 flex items-center gap-1 rounded-full bg-black/60 px-2 py-0.5 text-[10px] font-medium text-white backdrop-blur">+ <span className="absolute right-2 top-2 flex items-center gap-1 rounded-full bg-black/60 px-2 py-0.5 text-micro font-medium text-white backdrop-blur"><Check className="h-3 w-3" />{t("marketplace.installed")}</span>@@ -652,7 +652,7 @@ function BrandTile({ entry }: { entry: Entry }) {const [failed, setFailed] = useState(false);return (<div- className="grid h-10 w-10 shrink-0 place-items-center overflow-hidden rounded-lg border border-border/60"+ className="grid h-10 w-10 shrink-0 place-items-center overflow-hidden rounded-lg border border-border"style={{ backgroundColor: entry.logoColor ?? undefined }}>{failed || !entry.logoUrl ? (@@ -690,7 +690,7 @@ function EntryList({t: Translate;}) {return (- <div className="divide-y divide-border/70 overflow-hidden rounded-xl border border-border bg-card/60 backdrop-blur-sm">+ <div className="divide-y divide-border/70 overflow-hidden rounded-xl border border-border bg-card backdrop-blur-sm">{entries.map((entry) => (<buttonkey={`${entry.kind}:${entry.name}`}@@ -698,11 +698,11 @@ function EntryList({onClick={() => onOpen(entry)}className={cn("flex w-full items-center gap-3 px-3.5 py-3 text-left transition-colors",- "hover:bg-secondary/60 focus-visible:outline-none focus-visible:bg-secondary/60",+ "hover:bg-secondary focus-visible:outline-none focus-visible:bg-secondary",)}>{entry.broken ? (- <div className="grid h-10 w-10 shrink-0 place-items-center rounded-lg border border-border/60 bg-muted">+ <div className="grid h-10 w-10 shrink-0 place-items-center rounded-lg border border-border bg-muted"><AlertTriangle className="h-4 w-4 text-muted-foreground" /></div>) : (@@ -714,7 +714,7 @@ function EntryList({{entry.title}</span>{entry.installed && (- <span className="flex shrink-0 items-center gap-1 rounded-full bg-primary/10 px-1.5 py-0.5 text-[10px] font-medium text-primary">+ <span className="flex shrink-0 items-center gap-1 rounded-full bg-secondary px-1.5 py-0.5 text-micro font-medium text-foreground-strong"><Check className="h-3 w-3" />{t("marketplace.installed")}</span>@@ -726,11 +726,11 @@ function EntryList({: entry.description}</p></div>- <div className="hidden shrink-0 items-center gap-3 text-[11px] text-muted-foreground sm:flex">+ <div className="hidden shrink-0 items-center gap-3 text-micro text-muted-foreground sm:flex">{entry.publisher && <span className="truncate">{entry.publisher}</span>}{entry.version && <span className="tabular-nums">v{entry.version}</span>}</div>- <ArrowRight className="h-4 w-4 shrink-0 text-muted-foreground/50" />+ <ArrowRight className="h-4 w-4 shrink-0 text-muted-foreground" /></button>))}</div>@@ -753,7 +753,7 @@ function EmptyState({if (mine && !query) {return (<div className="py-16 text-center" data-testid="marketplace-empty-mine">- <UploadCloud className="mx-auto mb-3 h-6 w-6 text-muted-foreground/60" />+ <UploadCloud className="mx-auto mb-3 h-6 w-6 text-muted-foreground" /><p className="text-sm text-muted-foreground">{t("marketplace.empty_mine")}</p><Button size="sm" className="mt-3" onClick={onPublish}><UploadCloud className="mr-1.5 h-3.5 w-3.5" />@@ -764,7 +764,7 @@ function EmptyState({}return (<div className="py-16 text-center">- <Package className="mx-auto mb-3 h-6 w-6 text-muted-foreground/60" />+ <Package className="mx-auto mb-3 h-6 w-6 text-muted-foreground" /><p className="text-sm text-muted-foreground">{query ? fill(t("marketplace.empty_search"), { query }) : t("marketplace.empty")}</p>@@ -805,20 +805,20 @@ function Hero({};return (<section- className="relative isolate mb-8 overflow-hidden rounded-2xl border border-border bg-card/60 p-6 backdrop-blur-sm"+ className="relative isolate mb-8 overflow-hidden rounded-2xl border border-border bg-card p-6 backdrop-blur-sm"data-testid="marketplace-hero"><divaria-hidden- className="pointer-events-none absolute -z-10 -right-24 -top-24 hidden h-72 w-72 rounded-full bg-primary/15 blur-3xl dark:block"+ className="pointer-events-none absolute -z-10 -right-24 -top-24 hidden h-72 w-72 rounded-full bg-secondary blur-3xl dark:block"/><divaria-hidden- className="pointer-events-none absolute -z-10 -bottom-28 left-1/3 hidden h-64 w-64 rounded-full bg-primary/10 blur-3xl dark:block"+ className="pointer-events-none absolute -z-10 -bottom-28 left-1/3 hidden h-64 w-64 rounded-full bg-secondary blur-3xl dark:block"/><div className="relative flex flex-wrap items-end gap-6"><div className="min-w-0 flex-1">- <p className="text-[11px] font-semibold uppercase tracking-[0.18em] text-muted-foreground">+ <p className="text-micro font-semibold text-muted-foreground">{t("marketplace.hero_eyebrow")}</p><h3 className="mt-1 font-display text-2xl tracking-tight text-foreground">@@ -853,11 +853,11 @@ function Hero({function Stat({ value, label }: { value: number; label: string }) {return (- <div className="rounded-xl border border-border/70 bg-background/50 px-4 py-3 text-center">+ <div className="rounded-xl border border-border bg-background px-4 py-3 text-center"><dd className="font-display text-2xl tabular-nums tracking-tight text-foreground">{value}</dd>- <dt className="text-[11px] uppercase tracking-wider text-muted-foreground">{label}</dt>+ <dt className="text-micro text-muted-foreground">{label}</dt></div>);}@@ -872,7 +872,7 @@ function PublishFooter({t: Translate;}) {return (- <div className="mt-10 flex flex-wrap items-center justify-between gap-3 rounded-xl border border-dashed border-border bg-card/50 px-4 py-3 backdrop-blur-sm">+ <div className="mt-10 flex flex-wrap items-center justify-between gap-3 rounded-xl border border-dashed border-border bg-card px-4 py-3 backdrop-blur-sm"><p className="text-xs text-muted-foreground">{t("marketplace.publish_hint")}</p><div className="flex items-center gap-2"><Button@@ -947,12 +947,14 @@ function EntryDrawer({type="button"aria-label={t("marketplace.close")}onClick={onClose}- className="absolute inset-0 bg-background/70 backdrop-blur-sm"+ className="absolute inset-0 bg-background backdrop-blur-sm"/>- <aside className="relative flex h-full w-full max-w-md flex-col border-l border-border bg-card">+ {/* A drawer over a scrim leaves the plane, so it takes the floating+ ground and its cast edge instead of the card ground. */}+ <aside className="relative flex h-full w-full max-w-md flex-col bg-popover shadow-float"><header className="flex items-start gap-3 border-b border-border px-5 py-4"><div className="min-w-0 flex-1">- <p className="text-[11px] uppercase tracking-wide text-muted-foreground">+ <p className="text-micro text-muted-foreground">{t(`marketplace.kind_${entry.kind}`)}</p><h3 className="truncate font-display text-base font-semibold tracking-tight">@@ -980,7 +982,7 @@ function EntryDrawer({)}{entry.description && (- <p className="text-sm leading-relaxed text-foreground/90">+ <p className="text-sm leading-relaxed text-foreground">{entry.description}</p>)}@@ -990,7 +992,7 @@ function EntryDrawer({{entry.categories.map((category) => (<spankey={category}- className="rounded-full border border-border px-2 py-0.5 text-[11px] text-muted-foreground"+ className="rounded-full border border-border px-2 py-0.5 text-micro text-muted-foreground">{category}</span>@@ -998,7 +1000,7 @@ function EntryDrawer({</div>)}- <p className="rounded-lg border border-border bg-secondary/30 px-3 py-2 text-xs leading-relaxed text-muted-foreground">+ <p className="rounded-lg bg-secondary px-3 py-2 text-xs leading-relaxed text-muted-foreground">{t("marketplace.unreviewed_note")}</p>@@ -1017,7 +1019,7 @@ function EntryDrawer({)}<div>- <h4 className="mb-2 flex items-center gap-1.5 text-xs font-semibold uppercase tracking-wide text-muted-foreground">+ <h4 className="mb-2 flex items-center gap-1.5 text-xs font-semibold text-muted-foreground"><FileText className="h-3.5 w-3.5" />{t("marketplace.files")}</h4>@@ -1042,7 +1044,7 @@ function EntryDrawer({{contents.data.files.map((file) => (<detailskey={file.path}- className="rounded-lg border border-border bg-background/50"+ className="rounded-lg border border-border bg-background"><summary className="cursor-pointer select-none px-3 py-2 text-xs font-medium text-foreground">{file.path}@@ -1052,7 +1054,7 @@ function EntryDrawer({: `${(file.size / 1024).toFixed(1)} kB`}</span></summary>- <pre className="max-h-64 overflow-auto border-t border-border px-3 py-2 text-[11px] leading-relaxed text-muted-foreground">+ <pre className="max-h-64 overflow-auto border-t border-border px-3 py-2 text-micro text-muted-foreground">{file.text}{file.truncated ? `\n${t("marketplace.files_truncated")}` : ""}</pre>@@ -1077,7 +1079,7 @@ function EntryDrawer({</p>) : entry.installed ? (<p className="flex items-center gap-2 text-xs text-muted-foreground">- <Check className="h-3.5 w-3.5 text-primary" />+ <Check className="h-3.5 w-3.5 text-muted-foreground" />{t("marketplace.already_installed")}</p>) : (@@ -1139,7 +1141,7 @@ function Destination({ entry, t }: { entry: Entry; t: Translate }) {return (<div className="space-y-2">{entry.seedConflict && (- <p className="flex items-start gap-2 rounded-lg border border-foreground/40 bg-foreground/10 px-3 py-2 text-xs text-foreground">+ <p className="flex items-start gap-2 rounded-lg bg-secondary px-3 py-2 text-xs text-foreground"><AlertTriangle className="mt-0.5 h-3.5 w-3.5 shrink-0" />{t("marketplace.seed_conflict")}</p>@@ -1148,7 +1150,7 @@ function Destination({ entry, t }: { entry: Entry; t: Translate }) {<div key={row.label}><p className="mb-1 text-xs font-medium text-foreground">{row.label}</p>{row.code && (- <code className="block break-all rounded-md border border-border bg-muted/40 px-2 py-1.5 text-xs text-foreground">+ <code className="block break-all rounded-md border border-border bg-muted px-2 py-1.5 text-xs text-foreground">{row.code}</code>)}@@ -1193,7 +1195,7 @@ function LandingToast({<divclassName={cn("grid h-8 w-8 shrink-0 place-items-center rounded-lg",- ready ? "bg-primary/15 text-primary" : "bg-foreground/15 text-foreground",+ ready ? "bg-secondary text-foreground-strong" : "bg-secondary text-foreground",)}>{ready ? <Check className="h-4 w-4" /> : <AlertTriangle className="h-4 w-4" />}diff --git a/jarvis/ui/web/frontend/src/views/McpsView.tsx b/jarvis/ui/web/frontend/src/views/McpsView.tsxindex 3c82521ff1..998fd25bb2 100644--- a/jarvis/ui/web/frontend/src/views/McpsView.tsx+++ b/jarvis/ui/web/frontend/src/views/McpsView.tsx@@ -359,7 +359,7 @@ export function McpsView() {<div className="py-8 text-center text-sm text-muted-foreground">{t("common.loading")}</div>)}{error && (- <div className="rounded-lg border border-destructive/40 bg-destructive/10 p-3 text-sm text-destructive">+ <div className="rounded-lg bg-secondary p-3 text-sm text-destructive">{t("common.error")}: {(error as Error).message}</div>)}@@ -385,7 +385,7 @@ export function McpsView() {><Cell><div className="flex items-center gap-2" title={s.description}>- <span className="truncate text-[15px] font-medium">{s.name}</span>+ <span className="truncate text-title font-medium">{s.name}</span>{s.tools.length > 0 && (<span className="shrink-0 text-xs text-muted-foreground">{toolCountLabel(s.tools.length, t)}@@ -463,7 +463,7 @@ function McpDetail({<div className="mt-5"><DetailHeaderleading={- <span className="grid h-10 w-10 shrink-0 place-items-center rounded-lg border border-border bg-sheen/[0.05]">+ <span className="grid h-10 w-10 shrink-0 place-items-center rounded-lg bg-secondary"><McpLogo className="h-5 w-5 text-muted-foreground" /></span>}@@ -528,7 +528,7 @@ function McpDetail({)}{server.error && (- <div className="mt-4 rounded-md border border-destructive/40 bg-destructive/10 p-2.5 text-xs text-destructive">+ <div className="mt-4 rounded-md bg-secondary p-2.5 text-xs text-destructive">{server.error}</div>)}@@ -541,7 +541,7 @@ function McpDetail({{ label: t("mcps_view.col_transport"), value: server.transport ?? null },{label: t("mcps_view.command"),- value: command ? <code className="font-mono text-[13px]">{command}</code> : null,+ value: command ? <code className="font-mono text-meta">{command}</code> : null,},{label: t("mcps_view.credentials"),@@ -571,7 +571,7 @@ function McpDetail({/><Panel className="mt-4">- <div className="flex items-center gap-2 border-b border-border/70 px-5 py-2.5">+ <div className="flex items-center gap-2 border-b border-border px-5 py-2.5"><span className="text-sm font-medium">{t("mcps_view.tools_heading")}</span><span className="text-sm text-muted-foreground">{server.tools.length}</span></div>@@ -581,9 +581,9 @@ function McpDetail({<ul className="divide-y divide-border/70">{server.tools.map((tool) => (<li key={tool.name} className="px-5 py-3">- <p className="font-mono text-[13px]">{tool.name}</p>+ <p className="font-mono text-meta">{tool.name}</p>{tool.description && (- <p className="mt-0.5 line-clamp-2 text-[13px] text-muted-foreground" title={tool.description}>+ <p className="mt-0.5 line-clamp-2 text-meta text-muted-foreground" title={tool.description}>{tool.description}</p>)}@@ -662,7 +662,7 @@ function EmptyState({{importing ? t("mcps_view.importing") : t("mcps_view.import_claude")}</Button></div>- <p className="mt-4 text-[11px] text-muted-foreground/80">{t("mcps_view.empty_tip")}</p>+ <p className="mt-4 text-micro text-muted-foreground">{t("mcps_view.empty_tip")}</p></EmptyRow>);}@@ -727,11 +727,11 @@ function ConfigModal({ onClose }: { onClose: () => void }) {return (<div className="fixed inset-0 z-50 flex items-center justify-center bg-scrim/60 backdrop-blur-sm">- <div className="flex w-full max-w-3xl flex-col rounded-xl border border-border bg-card">+ <div className="flex w-full max-w-3xl flex-col rounded-lg bg-popover shadow-float"><div className="flex items-start justify-between gap-4 border-b border-border p-6"><div className="min-w-0 flex-1"><div className="flex items-center gap-2">- <FileJson className="h-4 w-4 text-primary" />+ <FileJson className="h-4 w-4 text-muted-foreground" /><h3 className="font-display text-lg font-semibold tracking-tight">mcp.json</h3>@@ -763,10 +763,10 @@ function ConfigModal({ onClose }: { onClose: () => void }) {value={editing}onChange={(e) => setEditing(e.target.value)}spellCheck={false}- className="h-[420px] w-full resize-none rounded-md border border-input bg-background px-3 py-2 font-mono text-xs focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring"+ className="h-[420px] w-full resize-none rounded-md border border-input bg-background px-3 py-2 font-mono text-xs focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"placeholder='{"mcpServers": {...}}'/>- <p className="mt-2 text-[11px] leading-relaxed text-muted-foreground">+ <p className="mt-2 text-micro text-muted-foreground">{t("mcps_view.config_format_hint")}</p></div>diff --git a/jarvis/ui/web/frontend/src/views/MissionsView.tsx b/jarvis/ui/web/frontend/src/views/MissionsView.tsxindex 31e7c0e442..22fb6230a2 100644--- a/jarvis/ui/web/frontend/src/views/MissionsView.tsx+++ b/jarvis/ui/web/frontend/src/views/MissionsView.tsx@@ -131,9 +131,13 @@ export function MissionsView() {}/>+ {/* Three full-height panes. None of them is a card: the two side rails+ take the rail ground and the centre stays on the page's own ground,+ so the section reads as one room with columns in it rather than as+ three grey slabs. */}<div className="grid flex-1 grid-cols-[280px_1fr_320px] overflow-hidden">{/* Left pane */}- <div className="flex h-full flex-col overflow-hidden border-r border-border bg-card/20">+ <div className="flex h-full flex-col overflow-hidden bg-sidebar"><div className="border-b border-border px-3 py-2 text-[10px] uppercase tracking-wider text-muted-foreground">{t("missions_view.tree_label")}</div>@@ -144,7 +148,7 @@ export function MissionsView() {{/* Center pane */}<div className="grid h-full grid-rows-[1fr_240px] overflow-hidden">- <div className="overflow-hidden border-b border-border bg-background/20 p-3">+ <div className="overflow-hidden border-b border-border bg-background p-3">{selectedWorkerId ? (<Suspense fallback={<TerminalFallback />}><PtyTerminal@@ -156,7 +160,7 @@ export function MissionsView() {<SelectionPlaceholder hasMission={!!selectedMissionId} />)}</div>- <div className="overflow-hidden bg-card/20">+ <div className="overflow-hidden bg-sidebar"><div className="border-b border-border px-3 py-1.5 text-[10px] uppercase tracking-wider text-muted-foreground">{t("missions_view.timeline_label")}</div>@@ -167,7 +171,7 @@ export function MissionsView() {</div>{/* Right pane */}- <div className="flex h-full flex-col overflow-hidden border-l border-border bg-card/20">+ <div className="flex h-full flex-col overflow-hidden bg-sidebar"><Tabs defaultValue="verdicts" className="flex h-full flex-col"><div className="border-b border-border px-2 py-2"><TabsList className="grid w-full grid-cols-5">diff --git a/jarvis/ui/web/frontend/src/views/PluginsCommunity.tsx b/jarvis/ui/web/frontend/src/views/PluginsCommunity.tsxindex f10be7bc7f..839bcc6cdf 100644--- a/jarvis/ui/web/frontend/src/views/PluginsCommunity.tsx+++ b/jarvis/ui/web/frontend/src/views/PluginsCommunity.tsx@@ -381,20 +381,20 @@ export function CommunityTab() {(data?.skills.length ?? 0) +(data?.wallpapers?.length ?? 0) >0 && (- <label className="flex items-center gap-2 rounded-lg border border-border bg-card/40 px-3 py-2">+ <label className="flex items-center gap-2 rounded-lg border border-border bg-card px-3 py-2"><Search className="h-3.5 w-3.5 shrink-0 text-muted-foreground" /><inputvalue={query}onChange={(e) => setQuery(e.target.value)}placeholder="Search community plugins, skills and wallpapers…"- className="w-full bg-transparent text-sm text-foreground outline-none placeholder:text-muted-foreground"+ className="w-full bg-transparent text-sm text-foreground outline-none placeholder:text-faint-foreground"/></label>)}{plugins.length > 0 && (<section>- <h3 className="mb-3 font-display text-xs font-semibold uppercase tracking-[0.18em] text-muted-foreground">+ <h3 className="mb-3 font-display text-xs font-semibold text-muted-foreground">Plugins</h3><div className="grid gap-2 sm:grid-cols-2">@@ -416,7 +416,7 @@ export function CommunityTab() {{skills.length > 0 && (<section>- <h3 className="mb-3 font-display text-xs font-semibold uppercase tracking-[0.18em] text-muted-foreground">+ <h3 className="mb-3 font-display text-xs font-semibold text-muted-foreground">Skills</h3><div className="grid gap-2 sm:grid-cols-2">@@ -443,7 +443,7 @@ export function CommunityTab() {{wallpapers.length > 0 && (<section>- <h3 className="mb-3 font-display text-xs font-semibold uppercase tracking-[0.18em] text-muted-foreground">+ <h3 className="mb-3 font-display text-xs font-semibold text-muted-foreground">Wallpapers</h3><div className="grid gap-3 sm:grid-cols-3 lg:grid-cols-4">@@ -575,10 +575,10 @@ function Notice({<pclassName={cn("flex items-start gap-2 rounded-lg border px-3 py-2 text-xs",- tone === "muted" && "border-border bg-card/40 text-muted-foreground",- tone === "warn" && "border-foreground/40 bg-foreground/5 text-foreground",+ tone === "muted" && "border-border bg-card text-muted-foreground",+ tone === "warn" && "bg-secondary text-foreground",tone === "error" &&- "border-destructive/40 bg-destructive/5 text-destructive",+ "bg-secondary text-destructive",)}>{tone !== "muted" && <AlertTriangle className="mt-0.5 h-3.5 w-3.5 shrink-0" />}@@ -619,33 +619,33 @@ function ContentsPanel({ name }: { name: string }) {<div><div className="mb-1.5 flex items-baseline justify-between gap-3"><p className="text-xs font-medium text-foreground">What's inside</p>- <p className="shrink-0 text-[11px] text-muted-foreground">+ <p className="shrink-0 text-micro text-muted-foreground">{data.files.length === 1 ? "1 file" : `${data.files.length} files`} ·{" "}{formatBytes(total)}</p></div><div className="overflow-hidden rounded-md border border-border">- <p className="border-b border-border bg-muted/40 px-2.5 py-1.5 font-mono text-[11px] text-muted-foreground">+ <p className="border-b border-border bg-muted px-2.5 py-1.5 font-mono text-micro text-muted-foreground">{data.root}</p>{data.files.map((file) => (<div key={file.path} className="border-b border-border last:border-b-0">- <div className="flex items-baseline justify-between gap-3 bg-card/60 px-2.5 py-1.5">- <span className="truncate font-mono text-[11px] text-foreground">+ <div className="flex items-baseline justify-between gap-3 bg-card px-2.5 py-1.5">+ <span className="truncate font-mono text-micro text-foreground">{file.path}</span>- <span className="shrink-0 font-mono text-[10px] text-muted-foreground">+ <span className="shrink-0 font-mono text-micro text-muted-foreground">{formatBytes(file.size)}</span></div>{/* Long lines scroll inside the file rather than widening thedialog. The text is interpolated, never dangerouslySetInnerHTML— a publisher's file is untrusted text and stays text. */}- <pre className="max-h-[420px] overflow-auto bg-background/60 px-2.5 py-2 font-mono text-[11px] leading-relaxed text-muted-foreground">+ <pre className="max-h-[420px] overflow-auto bg-background px-2.5 py-2 font-mono text-micro text-muted-foreground">{file.text}</pre>{file.truncated && (- <p className="bg-card/60 px-2.5 py-1.5 text-[11px] text-foreground">+ <p className="bg-card px-2.5 py-1.5 text-micro text-foreground">Shown up to 256 kB — the published file is longer. Open thesource to read the rest.</p>@@ -653,7 +653,7 @@ function ContentsPanel({ name }: { name: string }) {</div>))}</div>- <p className="mt-1.5 text-[11px] text-muted-foreground/70">+ <p className="mt-1.5 text-micro text-muted-foreground">Exactly as published. These are the bytes {PRODUCT_NAME} downloads whenyou install it — nothing is added or rewritten in between.</p>@@ -675,7 +675,7 @@ function CommunityTile({ plugin }: { plugin: CommunityPluginWire }) {const name = plugin.display_name ?? plugin.name;return (<div- className="grid h-10 w-10 shrink-0 place-items-center overflow-hidden rounded-lg border border-border/60"+ className="grid h-10 w-10 shrink-0 place-items-center overflow-hidden rounded-lg border border-border"style={{ backgroundColor: tile }}>{failed || !src ? (@@ -709,8 +709,8 @@ function CommunityPluginRow({const name = plugin.display_name ?? plugin.name;if (!plugin.valid) {return (- <article className="flex items-center gap-3 rounded-lg border border-border bg-card/20 px-3 py-2.5 opacity-70">- <div className="grid h-10 w-10 shrink-0 place-items-center rounded-lg border border-border/60 bg-muted">+ <article className="flex items-center gap-3 rounded-lg border border-border bg-card px-3 py-2.5 opacity-70">+ <div className="grid h-10 w-10 shrink-0 place-items-center rounded-lg border border-border bg-muted"><AlertTriangle className="h-4 w-4 text-muted-foreground" /></div><div className="min-w-0 flex-1">@@ -730,10 +730,10 @@ function CommunityPluginRow({return (<articleclassName={cn(- "group flex items-center gap-3 rounded-lg border bg-card/40 px-3 py-2.5 transition-[colors,box-shadow]",+ "group flex items-center gap-3 rounded-lg border bg-card px-3 py-2.5 transition-[colors,box-shadow]",plugin.installed? "border-primary/30"- : "border-border hover:border-primary/40 hover:bg-card/70",+ : "border-border hover:border-border-strong hover:bg-secondary",)}><CommunityTile plugin={plugin} />@@ -749,11 +749,11 @@ function CommunityPluginRow({<h4 className="min-w-0 max-w-full truncate text-sm font-semibold tracking-tight text-foreground">{name}</h4>- <span className="shrink-0 text-[9px] font-medium uppercase tracking-wider text-foreground/80">+ <span className="shrink-0 text-micro font-medium text-foreground">Community · not reviewed</span>{plugin.installed && (- <span className="shrink-0 text-[9px] font-medium uppercase tracking-wider text-primary">+ <span className="shrink-0 text-micro font-medium text-foreground-strong">· Installed</span>)}@@ -761,7 +761,7 @@ function CommunityPluginRow({<p className="truncate text-xs text-muted-foreground" title={plugin.description}>{plugin.description}</p>- <p className="truncate text-[11px] text-muted-foreground/70">+ <p className="truncate text-micro text-muted-foreground">{plugin.publisher ? `by ${plugin.publisher}` : "unknown publisher"}{plugin.version ? ` · v${plugin.version}` : ""}</p>@@ -793,7 +793,7 @@ function CommunityPluginRow({</Button>) : plugin.seed_conflict ? (<span- className="shrink-0 text-[10px] text-muted-foreground"+ className="shrink-0 text-micro text-muted-foreground"title="A built-in plugin already uses this name">Name taken@@ -821,10 +821,10 @@ function CommunitySkillRow({return (<articleclassName={cn(- "flex items-center gap-3 rounded-lg border bg-card/40 px-3 py-2.5",+ "flex items-center gap-3 rounded-lg border bg-card px-3 py-2.5",skill.installed? "border-primary/30"- : "border-border hover:border-primary/40 hover:bg-card/70",+ : "border-border hover:border-border-strong hover:bg-secondary",)}>{/* Same as the plugin card: the body opens the skill so its instructions@@ -839,12 +839,12 @@ function CommunitySkillRow({<h4 className="min-w-0 max-w-full truncate text-sm font-semibold tracking-tight text-foreground">{skill.title}</h4>- <span className="shrink-0 text-[9px] font-medium uppercase tracking-wider text-foreground/80">+ <span className="shrink-0 text-micro font-medium text-foreground">Community · not reviewed</span>{skill.flavor === "portable" && (<span- className="shrink-0 rounded-full border border-border px-1.5 text-[9px] font-medium uppercase tracking-wider text-muted-foreground"+ className="shrink-0 rounded-full border border-border px-1.5 text-micro font-medium text-muted-foreground"title={portableNote(skill) ?? undefined}>Portable@@ -854,7 +854,7 @@ function CommunitySkillRow({<p className="truncate text-xs text-muted-foreground" title={skill.description}>{skill.description}</p>- <p className="truncate text-[11px] text-muted-foreground/70">+ <p className="truncate text-micro text-muted-foreground">{skill.publisher ? `by ${skill.publisher}` : "unknown publisher"}{installError ? ` · ${installError}` : ""}</p>@@ -871,7 +871,7 @@ function CommunitySkillRow({</button>)}{skill.installed ? (- <span className="inline-flex shrink-0 items-center gap-1 text-[10px] font-medium uppercase tracking-wider text-primary">+ <span className="inline-flex shrink-0 items-center gap-1 text-micro font-medium text-foreground-strong"><Check className="h-3 w-3" /> Installed</span>) : skill.raw_url ? (@@ -880,7 +880,7 @@ function CommunitySkillRow({</Button>) : (<span- className="shrink-0 text-[10px] text-muted-foreground"+ className="shrink-0 text-micro text-muted-foreground"title="No direct download — open the source and follow its steps">Manual@@ -908,15 +908,15 @@ function CommunityWallpaperCard({onClick={onOpen}title={`Preview ${paper.title}`}className={cn(- "group overflow-hidden rounded-lg border bg-card/40 text-left transition-colors",+ "group overflow-hidden rounded-lg border bg-card text-left transition-colors",paper.installed? "border-primary/30"- : "border-border hover:border-primary/40 hover:bg-card/70",+ : "border-border hover:border-border-strong hover:bg-secondary",)}><div className="grid aspect-video place-items-center overflow-hidden bg-muted">{failed || !paper.raw_url ? (- <span className="text-[11px] text-muted-foreground">No preview</span>+ <span className="text-micro text-muted-foreground">No preview</span>) : (<imgsrc={paper.raw_url}@@ -933,10 +933,10 @@ function CommunityWallpaperCard({{paper.title}</h4>{paper.installed && (- <Check className="h-3 w-3 shrink-0 text-primary" aria-label="Installed" />+ <Check className="h-3 w-3 shrink-0 text-muted-foreground" aria-label="Installed" />)}</div>- <p className="truncate text-[11px] text-muted-foreground/70">+ <p className="truncate text-micro text-muted-foreground">{paper.publisher ? `by ${paper.publisher}` : "unknown publisher"}</p></div>@@ -980,7 +980,7 @@ export function WallpaperPreviewDialog({if (e.target === e.currentTarget && !isPending) onCancel();}}>- <div className="relative flex max-h-[88vh] w-full max-w-3xl flex-col overflow-hidden rounded-2xl border border-border bg-card">+ <div className="relative flex max-h-[88vh] w-full max-w-3xl flex-col overflow-hidden rounded-lg bg-popover shadow-float"><header className="border-b border-border px-5 py-4"><h2id="community-wallpaper-title"@@ -988,7 +988,7 @@ export function WallpaperPreviewDialog({>{paper.installed ? paper.title : `Install ${paper.title}?`}</h2>- <p className="text-[11px] uppercase tracking-wider text-foreground/80">+ <p className="text-micro text-foreground">Community wallpaper · not reviewed{paper.installed ? " · installed" : ""}</p>@@ -1019,7 +1019,7 @@ export function WallpaperPreviewDialog({uploads. It carries no code and no credentials.</p>{errorMessage && (- <p className="flex items-start gap-2 rounded-md border border-destructive/40 bg-destructive/5 px-2 py-1.5 text-xs text-destructive">+ <p className="flex items-start gap-2 rounded-md bg-secondary px-2 py-1.5 text-xs text-destructive"><AlertTriangle className="mt-0.5 h-3.5 w-3.5 shrink-0" />{errorMessage}</p>@@ -1087,7 +1087,7 @@ export function SkillInstallConsentDialog({if (e.target === e.currentTarget && !isPending) onCancel();}}>- <div className="relative flex max-h-[88vh] w-full max-w-2xl flex-col overflow-hidden rounded-2xl border border-border bg-card">+ <div className="relative flex max-h-[88vh] w-full max-w-2xl flex-col overflow-hidden rounded-lg bg-popover shadow-float"><header className="border-b border-border px-5 py-4"><h2id="community-skill-install-title"@@ -1095,7 +1095,7 @@ export function SkillInstallConsentDialog({>{skill.installed ? skill.title : `Install ${skill.title}?`}</h2>- <p className="text-[11px] uppercase tracking-wider text-foreground/80">+ <p className="text-micro text-foreground">Community skill · not reviewed{skill.installed ? " · installed" : ""}</p>@@ -1126,7 +1126,7 @@ export function SkillInstallConsentDialog({<p className="mb-1 text-xs font-medium text-foreground">The instructions are downloaded from:</p>- <code className="block break-all rounded-md border border-border bg-muted/40 px-2 py-1.5 text-xs text-foreground">+ <code className="block break-all rounded-md border border-border bg-muted px-2 py-1.5 text-xs text-foreground">{skill.raw_url}</code></div>@@ -1145,7 +1145,7 @@ export function SkillInstallConsentDialog({above is exactly what it would be told to do.</p>{errorMessage && (- <p className="flex items-start gap-2 rounded-md border border-destructive/40 bg-destructive/5 px-2 py-1.5 text-xs text-destructive">+ <p className="flex items-start gap-2 rounded-md bg-secondary px-2 py-1.5 text-xs text-destructive"><AlertTriangle className="mt-0.5 h-3.5 w-3.5 shrink-0" />{errorMessage}</p>@@ -1210,7 +1210,7 @@ export function InstallConsentDialog({if (e.target === e.currentTarget && !isPending) onCancel();}}>- <div className="relative flex max-h-[88vh] w-full max-w-2xl flex-col overflow-hidden rounded-2xl border border-border bg-card">+ <div className="relative flex max-h-[88vh] w-full max-w-2xl flex-col overflow-hidden rounded-lg bg-popover shadow-float"><header className="flex items-center gap-3 border-b border-border px-5 py-4"><CommunityTile plugin={plugin} /><div className="min-w-0">@@ -1220,7 +1220,7 @@ export function InstallConsentDialog({>{plugin.installed ? name : `Install ${name}?`}</h2>- <p className="text-[11px] uppercase tracking-wider text-foreground/80">+ <p className="text-micro text-foreground">Community plugin · not reviewed{plugin.installed ? " · installed" : ""}</p>@@ -1243,7 +1243,7 @@ export function InstallConsentDialog({After you connect it, requests and your {name} access token goto:</p>- <code className="block break-all rounded-md border border-border bg-muted/40 px-2 py-1.5 text-xs text-foreground">+ <code className="block break-all rounded-md border border-border bg-muted px-2 py-1.5 text-xs text-foreground">{mcp.url}</code></div>@@ -1253,7 +1253,7 @@ export function InstallConsentDialog({<p className="mb-1 text-xs font-medium text-foreground">After you connect it, this command runs on your computer:</p>- <code className="block break-all rounded-md border border-border bg-muted/40 px-2 py-1.5 text-xs text-foreground">+ <code className="block break-all rounded-md border border-border bg-muted px-2 py-1.5 text-xs text-foreground">{(mcp.install ?? []).join(" ")}</code></div>@@ -1288,7 +1288,7 @@ export function InstallConsentDialog({)}{errorMessage && (- <p className="flex items-start gap-2 rounded-md border border-destructive/40 bg-destructive/5 px-2 py-1.5 text-xs text-destructive">+ <p className="flex items-start gap-2 rounded-md bg-secondary px-2 py-1.5 text-xs text-destructive"><AlertTriangle className="mt-0.5 h-3.5 w-3.5 shrink-0" />{errorMessage}</p>diff --git a/jarvis/ui/web/frontend/src/views/PluginsView.tsx b/jarvis/ui/web/frontend/src/views/PluginsView.tsxindex b0ae252417..4283e773c3 100644--- a/jarvis/ui/web/frontend/src/views/PluginsView.tsx+++ b/jarvis/ui/web/frontend/src/views/PluginsView.tsx@@ -1013,13 +1013,13 @@ export function PluginsView() {<div className="ml-auto flex items-center gap-2">{filtersActive && (<>- <span className="text-[11px] text-muted-foreground">+ <span className="text-micro text-muted-foreground">{fill(translate("plugins_view.matches"), { n: visible.length })}</span><buttontype="button"onClick={resetFilters}- className="text-[11px] text-muted-foreground underline-offset-2 hover:text-foreground hover:underline"+ className="text-micro text-muted-foreground underline-offset-2 hover:text-foreground hover:underline">{translate("plugins_view.clear_filters")}</button>@@ -1030,7 +1030,7 @@ export function PluginsView() {value={filter}onValueChange={(v) => setFilter((v || "all") as FilterId)}ariaLabel={translate("plugins_view.col_category")}- className="h-7 w-auto rounded-md px-2 py-0 text-[11px]"+ className="h-7 w-auto rounded-md px-2 py-0 text-micro"options={[{ value: "all", label: translate("plugins_view.all_categories") },...categoryOrder.map((c) => ({ value: c, label: c })),@@ -1049,7 +1049,7 @@ export function PluginsView() {}}/>{error && (- <div className="rounded-lg border border-destructive/40 bg-destructive/10 p-3 text-sm text-destructive">+ <div className="rounded-lg bg-secondary p-3 text-sm text-destructive">{(error as Error).message}</div>)}@@ -1162,7 +1162,7 @@ function PluginTable({<buttontype="button"onClick={onReset}- className="mt-3 text-xs text-primary hover:underline"+ className="mt-3 text-xs text-foreground-strong hover:underline">{translate("plugins_view.show_all")}</button>@@ -1192,11 +1192,11 @@ function PluginTableRow({<BrandTile plugin={plugin} size="sm" /><div className="min-w-0"><div className="flex items-center gap-2">- <span className="truncate text-[15px] font-medium">{plugin.name}</span>+ <span className="truncate text-title font-medium">{plugin.name}</span>{plugin.fromMarketplace && <MarketplaceBadge publisher={plugin.publisher} />}{plugin.selfUploaded && (<span- className="rounded-full border border-foreground/40 bg-foreground/10 px-1.5 text-[9px] font-medium uppercase tracking-wider text-foreground"+ className="rounded-full bg-secondary px-1.5 text-micro font-medium text-foreground"title={translate("plugin_upload.unreviewed")}>{translate("plugin_upload.self_badge")}@@ -1285,7 +1285,7 @@ function PluginDetail({ plugin, onConnect, onDisconnect }: { plugin: Plugin } &{plugin.fromMarketplace && <MarketplaceBadge publisher={plugin.publisher} />}{plugin.selfUploaded && (<span- className="rounded-full border border-foreground/40 bg-foreground/10 px-1.5 text-[9px] font-medium uppercase tracking-wider text-foreground"+ className="rounded-full bg-secondary px-1.5 text-micro font-medium text-foreground"title={translate("plugin_upload.unreviewed")}>{translate("plugin_upload.self_badge")}@@ -1305,7 +1305,7 @@ function PluginDetail({ plugin, onConnect, onDisconnect }: { plugin: Plugin } &actions={<>{connected ? (- <span className="inline-flex h-8 items-center gap-1.5 rounded-md bg-primary/15 px-3 text-xs font-medium text-primary">+ <span className="inline-flex h-8 items-center gap-1.5 rounded-md bg-secondary px-3 text-xs font-medium text-foreground-strong"><Check className="h-3.5 w-3.5" />{translate("plugins_view.status_connected")}</span>@@ -1318,8 +1318,8 @@ function PluginDetail({ plugin, onConnect, onDisconnect }: { plugin: Plugin } &className={cn("inline-flex h-8 items-center gap-1.5 rounded-md px-3 text-xs font-medium transition-colors disabled:cursor-not-allowed disabled:opacity-60",needsReconnect- ? "border border-foreground/50 bg-foreground/10 text-foreground hover:bg-foreground/20"- : "bg-foreground/70 text-primary-foreground hover:bg-primary/90",+ ? "bg-secondary text-foreground hover:bg-popover"+ : "bg-primary text-primary-foreground hover:bg-primary/90",)}>{busy ? (@@ -1348,7 +1348,7 @@ function PluginDetail({ plugin, onConnect, onDisconnect }: { plugin: Plugin } &/>{plugin.status === "needs_reauth" ? (- <div className="mt-4 rounded-md border border-foreground/40 bg-foreground/10 px-3 py-2.5 text-xs">+ <div className="mt-4 rounded-md bg-secondary px-3 py-2.5 text-xs"><ReauthExplanation plugin={plugin} /></div>) : null}@@ -1435,10 +1435,10 @@ function AttentionBanner({: `${plugins.length} connections need reconnecting`;return (- <div className="mb-4 flex items-center gap-3 rounded-lg border border-foreground/30 bg-foreground/[0.07] px-3 py-2">+ <div className="mb-4 flex items-center gap-3 rounded-lg bg-secondary px-3 py-2"><AlertTriangle className="h-4 w-4 shrink-0 text-foreground" /><div className="min-w-0 flex-1">- <p className="truncate text-[13px] font-medium text-foreground">{headline}</p>+ <p className="truncate text-meta font-medium text-foreground">{headline}</p><p className="truncate text-xs text-muted-foreground">{one? // The banner is the first thing the user reads, so it states the@@ -1456,7 +1456,7 @@ function AttentionBanner({<buttontype="button"onClick={onJump}- className="inline-flex h-7 shrink-0 items-center gap-1.5 rounded-md border border-foreground/40 bg-foreground/10 px-2.5 text-xs font-medium text-foreground transition-colors hover:bg-foreground/20"+ className="inline-flex h-7 shrink-0 items-center gap-1.5 rounded-md bg-secondary px-2.5 text-xs font-medium text-foreground transition-colors hover:bg-popover">{one ? "Jump to it" : "Jump to first"}<ArrowRight className="h-3.5 w-3.5" />@@ -1495,7 +1495,7 @@ export function BrandTile({ plugin, size = "md" }: { plugin: Plugin; size?: "sm"// own logo is near-black ship a light variant for exactly this case —// see LOGOS.md; without one, a dark mark would vanish here.fullColour && !showMonogram- ? "border-sheen/10 bg-sheen/[0.07]"+ ? "bg-secondary": "border-border/60",)}style={fullColour && !showMonogram ? undefined : { backgroundColor: tile }}@@ -1536,7 +1536,7 @@ export function LongevityBadge({ plugin }: { plugin: Plugin }) {<spantitle={plugin.longevityNote ?? LONGEVITY_LABEL[plugin.longevity]}className={cn(- "text-[9px] font-medium uppercase tracking-wider",+ "text-micro font-medium ",limited ? "text-foreground/80" : "text-muted-foreground/45",)}>@@ -1577,7 +1577,7 @@ export function ReauthExplanation({ plugin, inline }: { plugin: Plugin; inline?:return (<><p- className="truncate text-xs text-foreground/90"+ className="truncate text-xs text-foreground"title={retrying? `${headline}. Jarvis retries this once a day; reconnect to fix it now.`@@ -1586,7 +1586,7 @@ export function ReauthExplanation({ plugin, inline }: { plugin: Plugin; inline?:>{headline}</p>- {fix && <p className="truncate text-[11px] text-muted-foreground" title={fix}>{fix}</p>}+ {fix && <p className="truncate text-micro text-muted-foreground" title={fix}>{fix}</p>}</>);}@@ -1644,7 +1644,7 @@ export function ConnectIconButton({e.stopPropagation();onDisconnect();}}- className="grid h-7 w-7 shrink-0 place-items-center rounded-full bg-primary/15 text-primary transition-colors hover:bg-destructive/20 hover:text-destructive"+ className="grid h-7 w-7 shrink-0 place-items-center rounded-full bg-secondary text-foreground-strong transition-colors hover:bg-popover hover:text-destructive"aria-label="Disconnect plugin"title="Disconnect">@@ -1672,7 +1672,7 @@ export function ConnectIconButton({disabled={busy}aria-busy={busy}className={cn(- "grid h-7 w-7 shrink-0 place-items-center rounded-full border border-foreground/50 bg-foreground/10 text-foreground transition-all hover:bg-foreground/20 group-hover:scale-105",+ "grid h-7 w-7 shrink-0 place-items-center rounded-full bg-secondary text-foreground transition-all hover:bg-popover group-hover:scale-105",busy && "cursor-not-allowed opacity-60 group-hover:scale-100",)}aria-label="Reconnect plugin"@@ -1694,8 +1694,8 @@ export function ConnectIconButton({disabled={busy}aria-busy={busy}className={cn(- "grid h-7 w-7 shrink-0 place-items-center rounded-full border border-border bg-background/60 text-muted-foreground transition-all hover:border-primary/50 hover:bg-primary/10 hover:text-primary group-hover:scale-105",- busy && "cursor-not-allowed opacity-60 hover:bg-background/60 hover:text-muted-foreground group-hover:scale-100",+ "grid h-7 w-7 shrink-0 place-items-center rounded-full border border-border bg-background text-muted-foreground transition-all hover:border-border-strong hover:bg-secondary hover:text-foreground-strong group-hover:scale-105",+ busy && "cursor-not-allowed opacity-60 hover:bg-secondary hover:text-muted-foreground group-hover:scale-100",)}aria-label="Connect plugin">@@ -1736,20 +1736,20 @@ function CopyableUrl({ url, hint }: { url: string; hint?: string }) {value={url}onFocus={(e) => e.currentTarget.select()}aria-label="Authorization link"- className="min-w-0 flex-1 rounded-md border border-border bg-background/60 px-2.5 py-1.5 font-mono text-[11px] text-muted-foreground focus:border-primary/40 focus:outline-none"+ className="min-w-0 flex-1 rounded-md border border-border bg-background px-2.5 py-1.5 font-mono text-micro text-muted-foreground focus:border-border-strong focus:outline-none"/><buttontype="button"onClick={copy}- className="inline-flex shrink-0 items-center gap-1.5 rounded-md border border-border bg-card px-3 text-[11px] font-medium text-foreground transition-colors hover:border-primary/50 hover:text-primary"+ className="inline-flex shrink-0 items-center gap-1.5 rounded-md border border-border bg-card px-3 text-micro font-medium text-foreground transition-colors hover:border-border-strong hover:text-foreground-strong"title="Copy link">- {copied ? <Check className="h-3 w-3 text-primary" /> : <Copy className="h-3 w-3" />}+ {copied ? <Check className="h-3 w-3 text-muted-foreground" /> : <Copy className="h-3 w-3" />}{copied ? "Copied" : "Copy"}</button></div>{hint && (- <p className="mt-1.5 text-[11px] leading-relaxed text-muted-foreground/80">{hint}</p>+ <p className="mt-1.5 text-micro text-muted-foreground">{hint}</p>)}</div>);@@ -1836,13 +1836,13 @@ function OAuthRedirectDialog({if (e.target === e.currentTarget) onClose();}}>- <div className="relative w-full max-w-md overflow-hidden rounded-2xl border border-border bg-card">+ <div className="relative w-full max-w-md overflow-hidden rounded-lg bg-popover shadow-float"><header className="flex items-center justify-between border-b border-border px-5 py-4"><div><h2 className="font-display text-base font-semibold tracking-tight">Connecting {pluginName}</h2>- <p className="text-[11px] uppercase tracking-wider text-muted-foreground">+ <p className="text-micro text-muted-foreground">Browser login</p></div>@@ -1859,7 +1859,7 @@ function OAuthRedirectDialog({<div className="space-y-5 px-5 py-6">{state === "pending" && (<div className="flex flex-col items-center gap-4 py-4 text-center">- <Loader2 className="h-8 w-8 animate-spin text-primary" />+ <Loader2 className="h-8 w-8 animate-spin text-foreground-strong" /><div><p className="text-sm font-medium text-foreground">Authorize {PRODUCT_NAME} in your browser@@ -1877,7 +1877,7 @@ function OAuthRedirectDialog({e.preventDefault();void openExternalUrl(openUrl);}}- className="text-[11px] uppercase tracking-wider text-muted-foreground/80 underline-offset-4 hover:text-primary hover:underline"+ className="text-micro text-muted-foreground underline-offset-4 hover:text-foreground-strong hover:underline">Tab didn't open? Click here</a>@@ -1890,7 +1890,7 @@ function OAuthRedirectDialog({{state === "connected" && (<div className="flex flex-col items-center gap-3 py-6 text-center">- <div className="grid h-12 w-12 place-items-center rounded-full bg-primary/15 text-primary">+ <div className="grid h-12 w-12 place-items-center rounded-full bg-secondary text-foreground-strong"><Check className="h-6 w-6" /></div><p className="font-display text-base font-semibold tracking-tight text-foreground">@@ -1900,7 +1900,7 @@ function OAuthRedirectDialog({)}{state === "error" && errorMessage && (- <div className="rounded-md border border-destructive/40 bg-destructive/10 px-3 py-2 text-xs text-destructive">+ <div className="rounded-md bg-secondary px-3 py-2 text-xs text-destructive">{errorMessage}</div>)}@@ -2011,13 +2011,13 @@ function DeviceCodeDialog({if (e.target === e.currentTarget) onClose();}}>- <div className="relative w-full max-w-md overflow-hidden rounded-2xl border border-border bg-card">+ <div className="relative w-full max-w-md overflow-hidden rounded-lg bg-popover shadow-float"><header className="flex items-center justify-between border-b border-border px-5 py-4"><div><h2 className="font-display text-base font-semibold tracking-tight">Connect {pluginName}</h2>- <p className="text-[11px] uppercase tracking-wider text-muted-foreground">+ <p className="text-micro text-muted-foreground">Device flow</p></div>@@ -2035,26 +2035,26 @@ function DeviceCodeDialog({{state === "pending" && (<><div>- <p className="text-[11px] uppercase tracking-wider text-muted-foreground">+ <p className="text-micro text-muted-foreground">Step 1 — copy this code</p><buttontype="button"onClick={copyCode}- className="group mt-2 flex w-full items-center justify-between gap-2 rounded-lg border border-border bg-background/60 px-4 py-3 transition-colors hover:border-primary/50 hover:bg-primary/5"+ className="group mt-2 flex w-full items-center justify-between gap-2 rounded-lg border border-border bg-background px-4 py-3 transition-colors hover:border-border-strong hover:bg-secondary"title="Copy"><span className="font-mono text-2xl font-semibold tracking-[0.3em] tabular-nums text-foreground">{userCode}</span>- <span className="text-[10px] uppercase tracking-wider text-muted-foreground group-hover:text-primary">+ <span className="text-micro text-muted-foreground group-hover:text-foreground-strong">{copied ? "Copied!" : "Copy"}</span></button></div><div>- <p className="text-[11px] uppercase tracking-wider text-muted-foreground">+ <p className="text-micro text-muted-foreground">Step 2 — paste it on {pluginName}</p><a@@ -2065,7 +2065,7 @@ function DeviceCodeDialog({e.preventDefault();void openExternalUrl(verificationUriComplete ?? verificationUri);}}- className="mt-2 inline-flex items-center gap-1.5 rounded-full bg-foreground/70 px-3.5 py-1.5 text-xs font-semibold text-primary-foreground transition-all hover:bg-primary/90"+ className="mt-2 inline-flex items-center gap-1.5 rounded-full bg-primary px-3.5 py-1.5 text-xs font-semibold text-primary-foreground transition-all hover:bg-primary/90">Open {pluginName}<ExternalLink className="h-3 w-3" />@@ -2078,8 +2078,8 @@ function DeviceCodeDialog({</div></div>- <div className="flex items-center gap-2 text-[11px] text-muted-foreground">- <Loader2 className="h-3 w-3 animate-spin text-primary" />+ <div className="flex items-center gap-2 text-micro text-muted-foreground">+ <Loader2 className="h-3 w-3 animate-spin text-muted-foreground" />Waiting for authorization…{secondsLeft > 0 && (<span className="ml-auto font-mono tabular-nums">@@ -2093,7 +2093,7 @@ function DeviceCodeDialog({{state === "connected" && (<div className="flex flex-col items-center gap-3 py-6 text-center">- <div className="grid h-12 w-12 place-items-center rounded-full bg-primary/15 text-primary">+ <div className="grid h-12 w-12 place-items-center rounded-full bg-secondary text-foreground-strong"><Check className="h-6 w-6" /></div><p className="font-display text-base font-semibold tracking-tight text-foreground">@@ -2103,7 +2103,7 @@ function DeviceCodeDialog({)}{state === "error" && errorMessage && (- <div className="rounded-md border border-destructive/40 bg-destructive/10 px-3 py-2 text-xs text-destructive">+ <div className="rounded-md bg-secondary px-3 py-2 text-xs text-destructive">{errorMessage}</div>)}@@ -2203,9 +2203,9 @@ export function PkceConnectDialog({if (e.target === e.currentTarget && !busy) onClose();}}>- <div className="relative w-full max-w-md overflow-hidden rounded-2xl border border-border bg-card">+ <div className="relative w-full max-w-md overflow-hidden rounded-lg bg-popover shadow-float"><header className="flex items-center gap-3 border-b border-border px-5 py-4">- <div className="grid h-10 w-10 shrink-0 place-items-center rounded-md border border-border/60 bg-white">+ <div className="grid h-10 w-10 shrink-0 place-items-center rounded-md border border-border bg-white"><imgsrc={resolveLogoUrl(plugin)}alt=""@@ -2219,7 +2219,7 @@ export function PkceConnectDialog({>Connect {plugin.name}</h2>- <p className="text-[11px] text-muted-foreground">+ <p className="text-micro text-muted-foreground">You'll sign in with your {fam?.label ?? "provider"} account in thebrowser.</p>@@ -2228,11 +2228,11 @@ export function PkceConnectDialog({<div className="space-y-3 px-5 py-4">{isGoogle && (- <div className="rounded-md border border-foreground/40 bg-foreground/10 px-3 py-2.5 text-[11px] leading-relaxed">+ <div className="rounded-md bg-secondary px-3 py-2.5 text-micro "><p className="font-medium text-foreground">Keep it connected permanently</p>- <p className="mt-1 text-foreground/90">+ <p className="mt-1 text-foreground">Google drops the connection every 7 days while your OAuth app isin "Testing". Publish your app to <strong>In production</strong>{" "}(it can stay unverified for personal use) so it never expires.@@ -2251,7 +2251,7 @@ export function PkceConnectDialog({{fam && (<div>{clientRequired && (- <p className="mb-2 rounded-md border border-foreground/40 bg-foreground/10 px-3 py-2 text-[11px] leading-relaxed text-foreground">+ <p className="mb-2 rounded-md bg-secondary px-3 py-2 text-micro text-foreground">This installation has no {fam.label} OAuth client yet. Addyour own Client ID below before browser sign-in can start.</p>@@ -2259,7 +2259,7 @@ export function PkceConnectDialog({<buttontype="button"onClick={() => setShowClient((v) => !v)}- className="text-[11px] font-medium text-muted-foreground underline underline-offset-2 hover:text-foreground"+ className="text-micro font-medium text-muted-foreground underline underline-offset-2 hover:text-foreground">{clientRequired? "OAuth client setup required"@@ -2267,7 +2267,7 @@ export function PkceConnectDialog({</button>{showClient && (<div className="mt-2 space-y-2">- <p className="text-[10px] leading-relaxed text-muted-foreground">+ <p className="text-micro text-muted-foreground">{clientRequired ? "Required. " : "Optional. "}Paste a clientfrom your own {fam.label}{" "}{OAUTH_CLIENT_CONSOLE[fam.family] && (@@ -2285,18 +2285,18 @@ export function PkceConnectDialog({"One client covers Gmail, Drive, Calendar and YouTube Music."}</p>{redirectUri && (- <div className="rounded-md border border-border bg-background/40 px-2.5 py-2">- <p className="text-[10px] leading-relaxed text-muted-foreground">+ <div className="rounded-md border border-border bg-background px-2.5 py-2">+ <p className="text-micro text-muted-foreground">While creating the app, register this as its{" "}<span className="font-medium text-foreground">redirect URI</span>, character for character:</p>- <code className="mt-1 block select-all break-all rounded bg-muted/60 px-1.5 py-1 text-[11px] text-foreground">+ <code className="mt-1 block select-all break-all rounded bg-muted px-1.5 py-1 text-micro text-foreground">{redirectUri}</code>- <p className="mt-1 text-[10px] leading-relaxed text-muted-foreground">+ <p className="mt-1 text-micro text-muted-foreground">It must be the numeric address, not{" "}<code className="text-[10px]">localhost</code>, andcarry no trailing slash.@@ -2306,7 +2306,7 @@ export function PkceConnectDialog({<div><labelhtmlFor="pkce-client-id"- className="block text-[10px] font-medium uppercase tracking-wider text-muted-foreground"+ className="block text-micro font-medium text-muted-foreground">Client ID</label>@@ -2314,7 +2314,7 @@ export function PkceConnectDialog({id="pkce-client-id"value={clientId}onChange={(e) => setClientId(e.target.value)}- className="mt-1 h-8 w-full rounded-md border border-border bg-background/60 px-2 text-xs text-foreground placeholder:text-muted-foreground/60 focus:border-primary/40 focus:outline-none"+ className="mt-1 h-8 w-full rounded-md border border-border bg-background px-2 text-xs text-foreground placeholder:text-faint-foreground focus:border-border-strong focus:outline-none"placeholder={OAUTH_CLIENT_ID_PLACEHOLDER[fam.family] ??`Client ID from ${fam.label}`@@ -2324,7 +2324,7 @@ export function PkceConnectDialog({<div><labelhtmlFor="pkce-client-secret"- className="block text-[10px] font-medium uppercase tracking-wider text-muted-foreground"+ className="block text-micro font-medium text-muted-foreground">Client Secret</label>@@ -2333,7 +2333,7 @@ export function PkceConnectDialog({type="password"value={clientSecret}onChange={(e) => setClientSecret(e.target.value)}- className="mt-1 h-8 w-full rounded-md border border-border bg-background/60 px-2 text-xs text-foreground placeholder:text-muted-foreground/60 focus:border-primary/40 focus:outline-none"+ className="mt-1 h-8 w-full rounded-md border border-border bg-background px-2 text-xs text-foreground placeholder:text-faint-foreground focus:border-border-strong focus:outline-none"placeholder={OAUTH_NO_SECRET_NEEDED[fam.family] ??"optional for some providers"@@ -2346,7 +2346,7 @@ export function PkceConnectDialog({)}{err && (- <div className="rounded-md border border-destructive/40 bg-destructive/10 px-3 py-2 text-xs text-destructive">+ <div className="rounded-md bg-secondary px-3 py-2 text-xs text-destructive">{err}</div>)}@@ -2365,7 +2365,7 @@ export function PkceConnectDialog({type="button"onClick={handleContinue}disabled={busy || (clientRequired && !clientId.trim())}- className="inline-flex items-center gap-1.5 rounded-md bg-foreground/70 px-3 py-1.5 text-xs font-semibold text-primary-foreground transition-colors hover:bg-primary/90 disabled:opacity-60"+ className="inline-flex items-center gap-1.5 rounded-md bg-primary px-3 py-1.5 text-xs font-semibold text-primary-foreground transition-colors hover:bg-primary/90 disabled:opacity-60">{busy && <Loader2 className="h-3 w-3 animate-spin" />}Continue@@ -2414,10 +2414,10 @@ function DisconnectConfirmDialog({if (e.target === e.currentTarget && !isPending) onCancel();}}>- <div className="relative w-full max-w-sm overflow-hidden rounded-2xl border border-border bg-card">+ <div className="relative w-full max-w-sm overflow-hidden rounded-lg bg-popover shadow-float"><header className="flex items-center justify-between border-b border-border px-5 py-4"><div className="flex items-center gap-3">- <div className="grid h-10 w-10 shrink-0 place-items-center rounded-md border border-border/60 bg-white">+ <div className="grid h-10 w-10 shrink-0 place-items-center rounded-md border border-border bg-white"><imgsrc={resolveLogoUrl(plugin)}alt=""@@ -2431,7 +2431,7 @@ function DisconnectConfirmDialog({>Remove {plugin.name}?</h2>- <p className="text-[11px] uppercase tracking-wider text-muted-foreground">+ <p className="text-micro text-muted-foreground">Disconnect plugin</p></div>@@ -2454,7 +2454,7 @@ function DisconnectConfirmDialog({deletes its stored credentials. {assistantName} loses access until you reconnect it.</p>{errorMessage && (- <div className="mt-3 rounded-md border border-destructive/40 bg-destructive/10 px-3 py-2 text-xs text-destructive">+ <div className="mt-3 rounded-md bg-secondary px-3 py-2 text-xs text-destructive">{errorMessage}</div>)}@@ -2473,7 +2473,7 @@ function DisconnectConfirmDialog({type="button"onClick={onConfirm}disabled={isPending}- className="inline-flex items-center gap-1.5 rounded-md bg-destructive px-3.5 py-1.5 text-xs font-semibold text-destructive-foreground transition-all hover:bg-destructive/90 disabled:cursor-not-allowed disabled:opacity-40"+ className="inline-flex items-center gap-1.5 rounded-md bg-destructive px-3.5 py-1.5 text-xs font-semibold text-destructive-foreground transition-all hover:bg-secondary disabled:cursor-not-allowed disabled:opacity-40">{isPending ? (<>@@ -2557,10 +2557,10 @@ export function PatConnectDialog({if (e.target === e.currentTarget && !isPending) onClose();}}>- <div className="relative w-full max-w-md overflow-hidden rounded-2xl border border-border bg-card">+ <div className="relative w-full max-w-md overflow-hidden rounded-lg bg-popover shadow-float"><header className="flex items-center justify-between border-b border-border px-5 py-4"><div className="flex items-center gap-3">- <div className="grid h-10 w-10 shrink-0 place-items-center rounded-md border border-border/60 bg-white">+ <div className="grid h-10 w-10 shrink-0 place-items-center rounded-md border border-border bg-white"><imgsrc={resolveLogoUrl(plugin)}alt=""@@ -2574,7 +2574,7 @@ export function PatConnectDialog({>Connect {plugin.name}</h2>- <p className="text-[11px] uppercase tracking-wider text-muted-foreground">+ <p className="text-micro text-muted-foreground">Access token · {AUTH_LABELS[plugin.authMode]}</p></div>@@ -2604,7 +2604,7 @@ export function PatConnectDialog({e.preventDefault();void openExternalUrl(auth.token_creation_url);}}- className="mt-2 inline-flex items-center gap-1.5 rounded-full bg-foreground/70 px-3.5 py-1.5 text-xs font-semibold text-primary-foreground transition-all hover:bg-primary/90"+ className="mt-2 inline-flex items-center gap-1.5 rounded-full bg-primary px-3.5 py-1.5 text-xs font-semibold text-primary-foreground transition-all hover:bg-primary/90">Open {plugin.name} tokens<ExternalLink className="h-3 w-3" />@@ -2630,7 +2630,7 @@ export function PatConnectDialog({if (e.key === "Enter" && canSubmit) submit();}}placeholder={instanceField.placeholder}- className="mt-2 w-full rounded-md border border-border bg-input px-3 py-2 font-mono text-xs text-foreground placeholder:text-muted-foreground/40 focus:border-primary/50 focus:outline-none focus:ring-1 focus:ring-primary/30"+ className="mt-2 w-full rounded-md bg-input px-3 py-2 font-mono text-xs text-foreground placeholder:text-faint-foreground focus:border-border-strong focus:outline-none focus:ring-2 focus:ring-border-strong/30"disabled={isPending}/></Step>@@ -2647,12 +2647,12 @@ export function PatConnectDialog({if (e.key === "Enter" && canSubmit) submit();}}placeholder={expectedPrefix ? `${expectedPrefix}_…` : "Token"}- className="mt-2 w-full rounded-md border border-border bg-input px-3 py-2 font-mono text-xs text-foreground placeholder:text-muted-foreground/40 focus:border-primary/50 focus:outline-none focus:ring-1 focus:ring-primary/30"+ className="mt-2 w-full rounded-md bg-input px-3 py-2 font-mono text-xs text-foreground placeholder:text-faint-foreground focus:border-border-strong focus:outline-none focus:ring-2 focus:ring-border-strong/30"autoFocusdisabled={isPending}/>{token && expectedPrefix && !prefixOk && (- <p className="mt-1.5 text-[11px] text-foreground">+ <p className="mt-1.5 text-micro text-foreground">Should start with{" "}<span className="font-mono">{expectedPrefix}_</span></p>@@ -2673,15 +2673,15 @@ export function PatConnectDialog({if (e.key === "Enter" && canSubmit) submit();}}placeholder="123456789"- className="mt-2 w-full rounded-md border border-border bg-input px-3 py-2 font-mono text-xs text-foreground placeholder:text-muted-foreground/40 focus:border-primary/50 focus:outline-none focus:ring-1 focus:ring-primary/30"+ className="mt-2 w-full rounded-md bg-input px-3 py-2 font-mono text-xs text-foreground placeholder:text-faint-foreground focus:border-border-strong focus:outline-none focus:ring-2 focus:ring-border-strong/30"disabled={isPending}/>- <p className="mt-1.5 text-[11px] text-muted-foreground">+ <p className="mt-1.5 text-micro text-muted-foreground">Only this user id can command the bot. Leave blank to let thefirst person who messages it claim access instead.</p>{userIdTrimmed !== "" && !userIdOk && (- <p className="mt-1 text-[11px] text-foreground">+ <p className="mt-1 text-micro text-foreground">User id must be digits only.</p>)}@@ -2689,7 +2689,7 @@ export function PatConnectDialog({)}{errorMessage && (- <div className="rounded-md border border-destructive/40 bg-destructive/10 px-3 py-2 text-xs text-destructive">+ <div className="rounded-md bg-secondary px-3 py-2 text-xs text-destructive">{errorMessage}</div>)}@@ -2708,7 +2708,7 @@ export function PatConnectDialog({type="button"onClick={submit}disabled={!canSubmit}- className="inline-flex items-center gap-1.5 rounded-md bg-foreground/70 px-3.5 py-1.5 text-xs font-semibold text-primary-foreground transition-all hover:bg-primary/90 disabled:cursor-not-allowed disabled:opacity-40"+ className="inline-flex items-center gap-1.5 rounded-md bg-primary px-3.5 py-1.5 text-xs font-semibold text-primary-foreground transition-all hover:bg-primary/90 disabled:cursor-not-allowed disabled:opacity-40">{isPending ? (<>@@ -2741,7 +2741,7 @@ function Step({}) {return (<div className="flex gap-3">- <span className="grid h-6 w-6 shrink-0 place-items-center rounded-full border border-border text-[11px] font-semibold text-muted-foreground">+ <span className="grid h-6 w-6 shrink-0 place-items-center rounded-full border border-border text-micro font-semibold text-muted-foreground">{num}</span><div className="min-w-0 flex-1">diff --git a/jarvis/ui/web/frontend/src/views/ProfileView.tsx b/jarvis/ui/web/frontend/src/views/ProfileView.tsxindex 7058fcd409..f2eae4b896 100644--- a/jarvis/ui/web/frontend/src/views/ProfileView.tsx+++ b/jarvis/ui/web/frontend/src/views/ProfileView.tsx@@ -57,6 +57,7 @@ import {import { ViewHeader } from "@/views/ChatsView";import { Button } from "@/components/ui/button";import { Badge } from "@/components/ui/badge";+import { IdentityAvatar } from "@/components/identity/IdentityAvatar";import { useEventStore } from "@/store/events";import { cn } from "@/lib/utils";import { getWSClient } from "@/hooks/useWebSocket";@@ -67,7 +68,6 @@ import {CLUSTER_ORDER,TOTAL_FIELDS,acquaintanceStage,- clusterFilledCount,collectOpenQuestions,countFilled,displayAddress,@@ -148,13 +148,6 @@ async function fetchJson<T>(url: string, init?: RequestInit): Promise<T> {// Small shared helpers// -----------------------------------------------------------------------function initials(name: string): string {- const parts = name.trim().split(/\s+/).filter(Boolean);- if (parts.length === 0) return "?";- if (parts.length === 1) return parts[0].slice(0, 2).toUpperCase();- return (parts[0][0] + parts[parts.length - 1][0]).toUpperCase();-}-function clusterDataOf(meta: Record<string, unknown>, cid: ClusterId): Record<string, unknown> {const raw = meta[cid];return raw && typeof raw === "object" ? (raw as Record<string, unknown>) : {};@@ -170,10 +163,15 @@ function renderValue(t: (k: string) => string, value: unknown): string {}function Dot() {- return <span className="px-1.5 text-muted-foreground/40">·</span>;+ return <span className="px-1.5 text-muted-foreground">·</span>;}-/** A rail's section heading — small caps, hairline rule, no box. */+/**+ * A group's heading. It used to be an 11px all-caps label over a hairline —+ * the exact construction that makes an interface read as an admin panel, and+ * twelve of them shared one viewport here. It is now a plain title, and the+ * 32px between groups does the separating a rule used to do badly.+ */function RailHeading({title,count,@@ -184,12 +182,10 @@ function RailHeading({right?: React.ReactNode;}) {return (- <div className="flex items-baseline gap-2 border-b border-sheen/[0.06] pb-1.5">- <h3 className="font-display text-[11px] font-semibold uppercase tracking-[0.13em] text-muted-foreground">- {title}- </h3>+ <div className="flex items-baseline gap-2">+ <h3 className="text-title font-semibold text-foreground-strong">{title}</h3>{count !== undefined && count !== "" && (- <span className="text-[11px] tabular-nums text-muted-foreground/60">{count}</span>+ <span className="text-meta tabular-nums text-muted-foreground">{count}</span>)}<span className="ml-auto flex items-center">{right}</span></div>@@ -211,9 +207,9 @@ export function ProfileView() {const meta = (data?.user.meta ?? {}) as Record<string, unknown>;return (- <div className="relative flex h-full flex-col overflow-hidden">+ <div className="relative flex h-full flex-col overflow-hidden bg-background"><ViewHeader- icon={<UserCircle2 className="h-4 w-4 text-primary" />}+ icon={<UserCircle2 className="h-4 w-4" />}title={t("profile_view.title")}subtitle={t("profile_view.subtitle")}right={@@ -239,7 +235,14 @@ export function ProfileView() {{/* One viewport. On lg+ the three rails stand side by side andscroll individually; below that they stack and the containertakes over the scrolling — the honest degradation for a window- too narrow to hold three rails at a readable width. */}+ too narrow to hold three rails at a readable width.++ Each rail carries its own ground rather than a hairline: the two+ standing rails take --sidebar, the document in the middle keeps+ --background. That is the reference layout (a rail is lighter+ than the stage it flanks) and it is the only separation device+ that survives at these widths — a full-height column is far too+ wide to earn --card. */}<divclassName={cn("grid min-h-0 flex-1 grid-cols-1 overflow-y-auto scrollbar-jarvis",@@ -298,24 +301,24 @@ function IdentityStrip({: t("profile_view.people_known").replace("{0}", String(data.people.length));return (- <div className="profile-rise flex items-center gap-3.5 border-b border-border px-6 py-3">+ <div className="profile-rise flex items-center gap-row border-b border-border px-6 py-3"><AvatarButton name={name} hasAvatar={!!data.has_avatar} /><div className="flex min-w-0 flex-wrap items-baseline gap-x-2.5 gap-y-0.5">- <h1 className="font-display text-[15px] font-semibold tracking-tight">{headline}</h1>- <span className="text-[11px] font-medium uppercase tracking-[0.12em] text-muted-foreground">+ <h1 className="font-display text-title font-semibold text-foreground-strong">{headline}</h1>+ <span className="text-meta text-muted-foreground">{t(`profile_view.stages.${stage.key}`)}</span></div>- <div className="ml-auto flex shrink-0 items-center text-[11px] text-muted-foreground">- <span className="font-medium tabular-nums text-foreground/90">{ratio}</span>+ <div className="ml-auto flex shrink-0 items-center text-meta text-muted-foreground">+ <span className="tabular-nums text-foreground">{ratio}</span><Dot />{peopleLine}{data.reviews_count > 0 && (<><Dot />- <span className="font-medium text-foreground/90">+ <span className="text-foreground">{data.reviews_count} {t("profile_view.reviews_count")}</span></>@@ -406,30 +409,34 @@ function AvatarButton({ name, hasAvatar }: { name: string | null; hasAvatar: boodisabled={busy}title={hasAvatar ? t("profile_view.avatar_change") : t("profile_view.avatar_upload")}aria-label={hasAvatar ? t("profile_view.avatar_change") : t("profile_view.avatar_upload")}- className="relative flex h-9 w-9 items-center justify-center overflow-hidden rounded-full border border-sheen/[0.09] bg-sheen/[0.04] outline-none transition-colors hover:border-primary/50 focus-visible:border-primary"+ className="relative flex h-9 w-9 items-center justify-center overflow-hidden rounded-full bg-secondary outline-none transition-colors focus-visible:ring-2 focus-visible:ring-border-strong">- {hasAvatar ? (+ {/* The person's own coloured mark, not a grey disc: identity is one of+ the three jobs colour has, and this is the app's own owner. */}+ {name ? (+ <IdentityAvatar+ name={name}+ src={hasAvatar ? `/api/profile/avatar?t=${bust}` : null}+ alt={t("profile_view.avatar_alt")}+ />+ ) : hasAvatar ? (<imgsrc={`/api/profile/avatar?t=${bust}`}alt={t("profile_view.avatar_alt")}className="h-full w-full object-cover"draggable={false}/>- ) : name ? (- <span className="font-display text-xs font-semibold tracking-tight text-foreground/80">- {initials(name)}- </span>) : (- <UserCircle2 className="h-5 w-5 text-muted-foreground/50" />+ <UserCircle2 className="h-5 w-5 text-muted-foreground" />)}- <span className="pointer-events-none absolute inset-0 flex items-center justify-center rounded-full bg-background/70 opacity-0 transition-opacity duration-200 group-hover/avatar:opacity-100 group-focus-visible/avatar:opacity-100">- <Camera className="h-3.5 w-3.5 text-primary" />+ <span className="pointer-events-none absolute inset-0 flex items-center justify-center rounded-full bg-scrim/70 opacity-0 transition-opacity duration-200 group-hover/avatar:opacity-100 group-focus-visible/avatar:opacity-100">+ <Camera className="h-3.5 w-3.5 text-foreground-strong" /></span>{busy && (- <span className="absolute inset-0 flex items-center justify-center rounded-full bg-background/70">- <Loader2 className="h-3.5 w-3.5 animate-spin text-primary" />+ <span className="absolute inset-0 flex items-center justify-center rounded-full bg-scrim/70">+ <Loader2 className="h-3.5 w-3.5 animate-spin text-foreground-strong" /></span>)}</button>@@ -441,7 +448,7 @@ function AvatarButton({ name, hasAvatar }: { name: string | null; hasAvatar: boodisabled={busy}title={t("profile_view.avatar_remove")}aria-label={t("profile_view.avatar_remove")}- className="absolute -bottom-1 -right-1 rounded-full border border-sheen/[0.1] bg-background p-1 text-muted-foreground opacity-0 outline-none transition-all hover:border-destructive/40 hover:text-destructive focus-visible:opacity-100 group-hover/avatar:opacity-100"+ className="absolute -bottom-1 -right-1 rounded-full bg-secondary p-1 text-muted-foreground opacity-0 outline-none transition-all hover:text-destructive focus-visible:opacity-100 group-hover/avatar:opacity-100"><Trash2 className="h-2.5 w-2.5" /></button>@@ -463,25 +470,26 @@ function LedgerRail({ meta }: { meta: Record<string, unknown> }) {const t = useT();return (- <section className="flex min-w-0 flex-col px-6 py-6 lg:min-h-0 lg:overflow-y-auto lg:py-7 scrollbar-jarvis">+ <section className="flex min-w-0 flex-col bg-sidebar px-6 py-6 lg:min-h-0 lg:overflow-y-auto lg:py-7 scrollbar-jarvis"><div className="profile-rise" style={{ animationDelay: "60ms" }}>- <h2 className="font-display text-base font-semibold tracking-tight">+ <h2 className="font-display text-page font-semibold text-foreground-strong">{t("profile_view.section_knowledge")}</h2>- <p className="mt-0.5 text-xs text-muted-foreground">+ <p className="mt-1 text-meta text-muted-foreground">{t("profile_view.section_knowledge_sub")}</p></div>- {/* One continuous run of clusters. Balanced CSS columns halved the- content's height and left the lower viewport empty; a single column- fills the rail the way a ledger page fills a sheet, and the leader- dots keep even a wide row readable. */}- <div className="mt-4">+ {/* One continuous run of clusters, separated by the 32px group step.+ The per-cluster blurb and the "3/4 filled" counter that used to sit+ under every heading were both removed: the blurb restated the field+ names below it, and nobody acts on a per-cluster count — the strip+ at the top already says how complete the profile is. */}+ <div className="mt-group space-y-group">{CLUSTER_ORDER.map((cid, i) => (<divkey={cid}- className="profile-rise mb-6 last:mb-0"+ className="profile-rise"style={{ animationDelay: `${100 + i * 45}ms` }}><ClusterGroup cid={cid} meta={meta} />@@ -496,20 +504,13 @@ function ClusterGroup({ cid, meta }: { cid: ClusterId; meta: Record<string, unknconst t = useT();const data = clusterDataOf(meta, cid);const fields = CLUSTER_FIELD_KEYS[cid];- const filled = clusterFilledCount(meta, cid);return (<div>- <RailHeading- title={t(`profile_view.clusters.${cid}.label`)}- count={`${filled}/${fields.length}`}- />- <p className="mt-1.5 text-[11px] leading-relaxed text-muted-foreground/80">- {t(`profile_view.clusters.${cid}.description`)}- </p>+ <RailHeading title={t(`profile_view.clusters.${cid}.label`)} />{/* Every row carries its own quiet pencil — learned fields can beoverwritten or cleared, blank ones filled in, all edited in place. */}- <dl className="mt-1.5">+ <dl className="mt-stack">{fields.map((key) => (<EditableFieldRow key={key} cid={cid} fieldKey={key} value={data[key]} />))}@@ -565,12 +566,14 @@ function IconBtn({tone?: "muted" | "primary" | "danger";disabled?: boolean;}) {+ // --primary is a FILL, never an ink: the affirmative action is a filled+ // square, the other two are ghosts that answer hover by stepping up.const toneCls =tone === "primary"- ? "text-primary hover:bg-primary/10"+ ? "bg-primary text-primary-foreground": tone === "danger"- ? "text-muted-foreground hover:bg-destructive/10 hover:text-destructive"- : "text-muted-foreground hover:bg-sheen/[0.06] hover:text-foreground";+ ? "text-muted-foreground hover:bg-secondary hover:text-destructive"+ : "text-muted-foreground hover:bg-secondary hover:text-foreground";return (<buttontype="button"@@ -579,7 +582,7 @@ function IconBtn({aria-label={title}disabled={disabled}className={cn(- "shrink-0 rounded p-1 outline-none transition-colors focus-visible:ring-1 focus-visible:ring-primary/50 disabled:opacity-40",+ "shrink-0 rounded-md p-1 outline-none transition-colors focus-visible:ring-2 focus-visible:ring-border-strong disabled:opacity-40",toneCls,)}>@@ -658,47 +661,39 @@ function EditableFieldRow({};// ------------------------------------------------------------------ display+ //+ // No leader dots, and no fifteen repetitions of "not known yet". The dotted+ // rule was the construction that made this column read as a printed ledger+ // form, and a sentence repeated once per blank field is noise, not an empty+ // state: a blank row now says so once, with a dash, and the whole row is the+ // affordance that fills it in.if (!editing) {return (- <div className="group flex items-baseline gap-2 py-[0.3rem]">- <dt- className={cn(- "shrink-0 text-xs transition-colors",- empty- ? "text-muted-foreground/55 group-hover:text-muted-foreground"- : "text-muted-foreground group-hover:text-foreground",- )}- >- {label}- </dt>- {/* Leader dots. An empty baseline-aligned flex item puts its bottom- border exactly on the text baseline, which is what carries the eye- from a field's name across to its value — and what makes the- column read as a ledger line rather than a wide, empty row. */}- <span- aria-hidden="true"- className="min-w-[1rem] flex-1 border-b border-dotted border-sheen/[0.18] transition-colors group-hover:border-sheen/[0.32]"- />- <dd className="flex min-w-0 max-w-[68%] items-center justify-end gap-1">+ <div className="group flex items-baseline justify-between gap-3 rounded-md px-2 py-1.5 -mx-2 transition-colors hover:bg-secondary">+ <dt className="shrink-0 text-meta text-muted-foreground">{label}</dt>+ <dd className="flex min-w-0 max-w-[68%] items-center justify-end gap-2">{kind === "list" && !empty ? (<div className="flex flex-wrap justify-end gap-1">{(value as unknown[]).map((item) => (<spankey={String(item)}- className="rounded-full border border-sheen/[0.08] bg-sheen/[0.04] px-2 py-0.5 text-[11px] font-medium"+ className="rounded-full bg-secondary px-2 py-0.5 text-meta text-foreground group-hover:bg-popover">{String(item)}</span>))}</div>- ) : (+ ) : empty ? (<span- className={cn(- "leading-snug [overflow-wrap:anywhere]",- empty ? "text-xs italic text-muted-foreground/45" : "text-[13px] font-medium",- )}+ aria-label={t("profile_view.field_unknown")}+ title={t("profile_view.field_unknown")}+ className="text-body text-faint-foreground">- {empty ? t("profile_view.field_unknown") : renderValue(t, value)}+ —+ </span>+ ) : (+ <span className="text-body text-foreground [overflow-wrap:anywhere]">+ {renderValue(t, value)}</span>)}{/* Quiet pencil — appears on row hover / keyboard focus only. */}@@ -707,9 +702,9 @@ function EditableFieldRow({onClick={startEdit}title={t("profile_view.field_edit")}aria-label={`${t("profile_view.field_edit")}: ${label}`}- className="shrink-0 rounded p-1 text-muted-foreground opacity-0 outline-none transition-opacity hover:text-primary focus-visible:opacity-100 focus-visible:ring-1 focus-visible:ring-primary/50 group-hover:opacity-100"+ className="shrink-0 rounded-md p-1 text-muted-foreground opacity-0 outline-none transition-opacity hover:text-foreground focus-visible:opacity-100 focus-visible:ring-2 focus-visible:ring-border-strong group-hover:opacity-100">- <Pencil className="h-3 w-3" />+ {empty ? <Plus className="h-3.5 w-3.5" /> : <Pencil className="h-3.5 w-3.5" />}</button></dd></div>@@ -718,8 +713,8 @@ function EditableFieldRow({// ------------------------------------------------------------------- editingreturn (- <div className="group flex items-baseline justify-between gap-3 py-[0.3rem]">- <dt className="shrink-0 text-xs text-foreground">{label}</dt>+ <div className="group flex items-baseline justify-between gap-3 rounded-md bg-secondary px-2 py-1.5 -mx-2">+ <dt className="shrink-0 text-meta text-foreground-strong">{label}</dt><dd className="flex min-w-0 max-w-[68%] flex-col items-end gap-1.5">{kind === "bool" ? (<div className="flex items-center gap-1">@@ -730,10 +725,10 @@ function EditableFieldRow({disabled={busy}onClick={() => mutate("set", b)}className={cn(- "rounded-full border px-2.5 py-0.5 text-xs font-medium transition-colors disabled:opacity-40",+ "rounded-full px-2.5 py-0.5 text-meta font-medium transition-colors disabled:opacity-40",value === b- ? "border-primary/50 bg-primary/[0.12] text-primary"- : "border-sheen/[0.08] bg-sheen/[0.03] text-muted-foreground hover:border-primary/40",+ ? "bg-primary text-primary-foreground"+ : "bg-popover text-muted-foreground hover:text-foreground",)}>{b ? t("profile_view.value_yes") : t("profile_view.value_no")}@@ -757,7 +752,7 @@ function EditableFieldRow({{(value as unknown[]).map((item) => (<spankey={String(item)}- className="inline-flex items-center gap-1 rounded-full border border-sheen/[0.1] bg-sheen/[0.05] py-0.5 pl-2 pr-1 text-[11px] font-medium"+ className="inline-flex items-center gap-1 rounded-full bg-popover py-0.5 pl-2 pr-1 text-meta text-foreground">{String(item)}<button@@ -766,7 +761,7 @@ function EditableFieldRow({onClick={() => mutate("remove", String(item), { keepOpen: true })}title={t("profile_view.field_remove_item")}aria-label={`${t("profile_view.field_remove_item")}: ${String(item)}`}- className="rounded-full p-0.5 text-muted-foreground outline-none transition-colors hover:bg-destructive/15 hover:text-destructive focus-visible:ring-1 focus-visible:ring-primary/50 disabled:opacity-40"+ className="rounded-full p-0.5 text-muted-foreground outline-none transition-colors hover:text-destructive focus-visible:ring-2 focus-visible:ring-border-strong disabled:opacity-40"><X className="h-2.5 w-2.5" /></button>@@ -785,7 +780,7 @@ function EditableFieldRow({if (e.key === "Escape") cancel();}}placeholder={t("profile_view.field_add_placeholder")}- className="w-28 min-w-0 rounded border border-primary/40 bg-background/60 px-2 py-1 text-sm outline-none focus:border-primary"+ className="w-28 min-w-0 rounded-md bg-popover px-2 py-1 text-body text-foreground outline-none placeholder:text-faint-foreground focus:ring-2 focus:ring-border-strong"/><IconBtnicon={Plus}@@ -818,7 +813,7 @@ function EditableFieldRow({if (e.key === "Escape") cancel();}}placeholder={t("profile_view.field_value_placeholder")}- className="min-w-0 flex-1 rounded border border-primary/40 bg-background/60 px-2 py-1 text-right text-sm outline-none focus:border-primary"+ className="min-w-0 flex-1 rounded-md bg-popover px-2 py-1 text-right text-body text-foreground outline-none placeholder:text-faint-foreground focus:ring-2 focus:ring-border-strong"/><IconBtnicon={Check}@@ -856,7 +851,7 @@ function MarginRail({meta: Record<string, unknown>;}) {return (- <aside className="flex min-w-0 flex-col gap-6 border-t border-border px-5 py-6 lg:min-h-0 lg:overflow-y-auto lg:border-l lg:border-t-0 lg:py-8 scrollbar-jarvis">+ <aside className="flex min-w-0 flex-col gap-group bg-sidebar px-5 py-6 lg:min-h-0 lg:overflow-y-auto lg:py-8 scrollbar-jarvis"><div className="profile-rise" style={{ animationDelay: "80ms" }}><AskCard meta={meta} /></div>@@ -883,39 +878,40 @@ function AskCard({ meta }: { meta: Record<string, unknown> }) {const q = open[idx % open.length];+ // A card, and it has earned it: this is sized to one question, not to the+ // rail. The nested "say this" well steps UP to --secondary rather than down+ // into a translucent wash of the page behind it.return (- <div className="rounded-2xl border border-sheen/[0.08] bg-sheen/[0.03] p-4">- <div className="flex items-center gap-1.5 text-[11px] font-medium uppercase tracking-[0.12em] text-muted-foreground">+ <div className="rounded-lg bg-card p-block shadow-rim">+ <div className="flex items-center gap-1.5 text-meta text-muted-foreground"><Sparkles className="h-3.5 w-3.5" />{t("profile_view.ask_title")}- <span className="ml-auto tabular-nums text-muted-foreground/60">+ <span className="ml-auto tabular-nums">{(idx % open.length) + 1}/{open.length}</span></div>- <p className="mt-2.5 font-display text-base font-semibold leading-snug tracking-tight">+ <p className="mt-2.5 font-display text-title font-semibold text-foreground-strong">{t(`profile_view.questions.${q.field}`)}</p>- <div className="mt-3 flex items-start gap-2 rounded-xl border border-sheen/[0.07] bg-background/40 px-3 py-2 text-[11px] leading-relaxed text-muted-foreground">+ <div className="mt-3 flex items-start gap-2 rounded-md bg-secondary px-3 py-2 text-meta text-muted-foreground"><Mic className="mt-0.5 h-3.5 w-3.5 shrink-0" /><span className="min-w-0">{t("profile_view.ask_say_prefix")}:{" "}- <span className="font-medium text-foreground/90">- “{t(`profile_view.says.${q.field}`)}”- </span>+ <span className="text-foreground">“{t(`profile_view.says.${q.field}`)}”</span></span></div><div className="mt-3 flex items-center justify-between gap-2">- <span className="text-[11px] text-muted-foreground/70">+ <span className="text-meta text-muted-foreground">{t(`profile_view.clusters.${q.cluster}.label`)}</span><buttontype="button"data-testid="ask-next"onClick={() => setIdx((i) => i + 1)}- className="inline-flex items-center gap-1 rounded-full border border-sheen/[0.08] bg-sheen/[0.03] px-3 py-1 text-[11px] font-medium transition-colors hover:border-primary/40 hover:bg-sheen/[0.07]"+ className="inline-flex items-center gap-1 rounded-full bg-secondary px-3 py-1 text-meta font-medium text-foreground transition-colors hover:bg-popover">{t("profile_view.ask_next")}<ChevronRight className="h-3 w-3" />@@ -989,17 +985,25 @@ function ReviewsSection({ reviewsCount }: { reviewsCount: number }) {disabled={isRefetching}title={t("profile_view.reload_tooltip")}aria-label={t("profile_view.reload_tooltip")}- className="rounded p-1 text-muted-foreground transition-colors hover:text-foreground disabled:opacity-40"+ className="rounded-md p-1 text-muted-foreground transition-colors hover:bg-secondary hover:text-foreground disabled:opacity-40">- <RefreshCw className={cn("h-3 w-3", isRefetching && "animate-spin")} />+ <RefreshCw className={cn("h-3.5 w-3.5", isRefetching && "animate-spin")} /></button>}/>+ {/* The real container at its real height with skeleton bars — never a+ spinner beside a grey word, and never an invented zero. */}{isLoading && (- <div className="mt-2.5 flex items-center gap-2 text-xs text-muted-foreground">- <RefreshCw className="h-3 w-3 animate-spin" /> {t("profile_view.raw_loading")}- </div>+ <ul className="mt-stack space-y-stack" aria-hidden>+ {[0, 1].map((i) => (+ <li key={i} className="space-y-2 rounded-lg bg-card p-3 shadow-rim">+ <div className="h-3 w-4/5 animate-pulse rounded-full bg-sheen/[0.06]" />+ <div className="h-3 w-2/5 animate-pulse rounded-full bg-sheen/[0.06]" />+ <div className="h-7 animate-pulse rounded-md bg-sheen/[0.06]" />+ </li>+ ))}+ </ul>)}{error &&@@ -1015,12 +1019,9 @@ function ReviewsSection({ reviewsCount }: { reviewsCount: number }) {testId="reviews-disabled"/>) : (- <div- data-testid="reviews-error"- className="mt-2.5 rounded-xl border border-destructive/30 bg-destructive/5 p-3 text-xs text-destructive"- >+ <p data-testid="reviews-error" className="mt-stack text-meta text-destructive">{error.message}- </div>+ </p>))}{data && items.length === 0 && (@@ -1032,7 +1033,7 @@ function ReviewsSection({ reviewsCount }: { reviewsCount: number }) {)}{items.length > 0 && (- <ul className="mt-2.5 space-y-2">+ <ul className="mt-stack space-y-stack">{items.map((c) => (<ReviewRowkey={c.idx}@@ -1061,13 +1062,13 @@ function EmptyHint({testId?: string;}) {return (- <div data-testid={testId} className="mt-2.5 flex items-start gap-3 py-1">- <div className="flex h-8 w-8 shrink-0 items-center justify-center rounded-full border border-sheen/[0.07] bg-sheen/[0.03]">- <Icon className="h-[15px] w-[15px] text-muted-foreground" />+ <div data-testid={testId} className="mt-stack flex items-start gap-3">+ <div className="flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-secondary">+ <Icon className="h-4 w-4 text-muted-foreground" /></div><div className="min-w-0 flex-1">- <div className="text-xs font-medium">{title}</div>- <p className="mt-0.5 text-[11px] leading-relaxed text-muted-foreground">{body}</p>+ <div className="text-body text-foreground">{title}</div>+ <p className="mt-0.5 text-meta text-muted-foreground">{body}</p></div></div>);@@ -1087,42 +1088,45 @@ function ReviewRow({onReject: () => void;}) {const t = useT();+ // Who the observation is about. Every person in the app carries a coloured+ // mark, this row included — it is what tells "about you" from "about Anna"+ // at a glance, without reading the line.+ const subject = candidate.is_person+ ? (candidate.person_name ?? t("profile_view.review_subject_user"))+ : t("profile_view.review_subject_user");return (- <li className="rounded-xl border border-sheen/[0.06] bg-sheen/[0.02] p-3 transition-colors hover:border-primary/25">+ <li className="rounded-lg bg-card p-3 shadow-rim">+ <div className="flex items-center gap-2 text-meta text-muted-foreground">+ <IdentityAvatar name={subject} size="sm" />+ <span className="min-w-0 truncate text-foreground">{subject}</span>+ <span className="ml-auto shrink-0 tabular-nums">+ {(candidate.confidence * 100).toFixed(0)}%+ </span>+ </div>+{candidate.evidence && (- <blockquote className="text-xs italic leading-snug text-foreground/90">+ <blockquote className="mt-2 text-meta italic text-foreground">“{candidate.evidence}”</blockquote>)}- <div className="mt-2 flex flex-wrap items-center gap-1 text-[11px] text-muted-foreground">- <span>- {candidate.is_person- ? `${t("profile_view.review_subject_user")} → ${candidate.person_name}`- : t("profile_view.review_subject_user")}- </span>- <Dot />+ <div className="mt-2 flex flex-wrap items-center gap-1 text-meta text-muted-foreground"><span>{candidate.cluster}</span>- <ChevronRight className="h-3 w-3 text-muted-foreground/40" />- <span className="font-medium text-foreground">{candidate.field}</span>- <Badge variant="outline" className="text-[10px]">- {candidate.operation}- </Badge>- <span className="ml-auto font-semibold tabular-nums text-foreground/80">- {(candidate.confidence * 100).toFixed(0)}%- </span>+ <ChevronRight className="h-3 w-3" />+ <span className="text-foreground">{candidate.field}</span>+ <Badge variant="outline">{candidate.operation}</Badge></div>- <div className="mt-1.5 text-xs">+ <div className="mt-1.5 text-meta"><span className="text-muted-foreground">{t("profile_view.review_value")}: </span>- <span className="font-medium text-foreground [overflow-wrap:anywhere]">+ <span className="text-foreground [overflow-wrap:anywhere]">{renderValue(t, candidate.value) || "—"}</span></div>{candidate.reason && (- <p className="mt-1 text-[10px] leading-relaxed text-muted-foreground/70">+ <p className="mt-1 text-meta text-muted-foreground">{t("profile_view.review_reason")}: {candidate.reason}</p>)}@@ -1131,7 +1135,7 @@ function ReviewRow({<Buttonsize="sm"variant="default"- className="h-7 flex-1 text-[11px]"+ className="h-7 flex-1 text-meta"disabled={pending}onClick={onAccept}title={t("profile_view.accept_tooltip")}@@ -1142,7 +1146,7 @@ function ReviewRow({<Buttonsize="sm"variant="outline"- className="h-7 flex-1 text-[11px]"+ className="h-7 flex-1 text-meta"disabled={pending}onClick={onReject}title={t("profile_view.reject_tooltip")}@@ -1181,7 +1185,7 @@ function PeopleSection({ people }: { people: PersonSummary[] }) {body={t("profile_view.people_empty_body")}/>) : (- <ul className="mt-1.5">+ <ul className="mt-stack">{people.map((p) => (<PersonRowkey={p.slug}@@ -1207,60 +1211,62 @@ function PersonRow({}) {const t = useT();+ // Selection is drawn on the WHOLE row, inset from the column edge — not on+ // the 28px avatar box. Rest is the rail's own ground; hover and open both+ // step up to --secondary, which is the only direction the ladder goes.return (- <li className="border-b border-sheen/[0.05] last:border-b-0">+ <li><buttontype="button"onClick={onToggle}aria-expanded={open}- className="flex w-full items-center gap-2.5 py-2 text-left transition-colors"+ className={cn(+ "-mx-2 flex w-[calc(100%+1rem)] items-center gap-row rounded-md px-2 py-2 text-left transition-colors",+ open ? "bg-secondary" : "hover:bg-secondary",+ )}>- <span- className={cn(- "flex h-7 w-7 shrink-0 items-center justify-center rounded-full border text-[10px] font-semibold transition-colors",- open- ? "border-primary/40 bg-primary/10 text-primary"- : "border-sheen/[0.08] bg-sheen/[0.05] text-foreground/80",- )}- >- {initials(person.name)}- </span>+ <IdentityAvatar name={person.name} size="sm" /><span className="min-w-0 flex-1">- <span className="block truncate text-xs font-medium">{person.name}</span>- <span className="block truncate text-[10px] text-muted-foreground">+ <span+ className={cn(+ "block truncate text-body",+ open ? "text-foreground-strong" : "text-foreground",+ )}+ >+ {person.name}+ </span>+ <span className="block truncate text-meta text-muted-foreground">{person.relationship}</span></span><ChevronDownclassName={cn(- "h-3.5 w-3.5 shrink-0 text-muted-foreground/50 transition-transform",- open && "rotate-180 text-primary",+ "h-3.5 w-3.5 shrink-0 text-muted-foreground transition-transform",+ open && "rotate-180",)}/></button>{open && (- <div className="pb-3 pl-[2.375rem] pr-1">- <dl className="space-y-1.5 text-[11px]">+ <div className="py-stack pl-[2.375rem] pr-1">+ <dl className="space-y-stack text-meta"><div className="flex items-baseline justify-between gap-3"><dt className="text-muted-foreground">{t("profile_view.person_relationship")}</dt>- <dd className="font-medium text-foreground">{person.relationship}</dd>+ <dd className="text-foreground">{person.relationship}</dd></div><div className="flex items-baseline justify-between gap-3"><dt className="text-muted-foreground">{t("profile_view.person_aliases")}</dt><dd className="text-right [overflow-wrap:anywhere]">{person.aliases.length === 0 ? (- <span className="italic text-muted-foreground/60">- {t("profile_view.person_no_aliases")}- </span>+ <span className="text-faint-foreground">—</span>) : (- <span className="text-foreground/90">{person.aliases.join(" · ")}</span>+ <span className="text-foreground">{person.aliases.join(" · ")}</span>)}</dd></div></dl>- <p className="mt-2 flex items-start gap-1.5 rounded-lg bg-sheen/[0.03] p-2 text-[10px] leading-relaxed text-muted-foreground">- <Inbox className="mt-0.5 h-3 w-3 shrink-0" />+ <p className="mt-stack flex items-start gap-1.5 text-meta text-muted-foreground">+ <Inbox className="mt-0.5 h-3.5 w-3.5 shrink-0" />{t("profile_view.person_file_hint").replace("{0}", person.slug)}</p></div>@@ -1400,29 +1406,29 @@ function SourceRail() {}, [data]);return (- <section className="flex min-w-0 flex-col border-t border-border lg:min-h-0 lg:border-l lg:border-t-0">- <div className="flex flex-wrap items-center gap-2 border-b border-sheen/[0.06] px-5 py-2.5">+ <section className="flex min-w-0 flex-col bg-background lg:min-h-0">+ <div className="flex flex-wrap items-center gap-2 border-b border-border px-5 py-2.5"><FileText className="h-3.5 w-3.5 shrink-0 text-muted-foreground" />- <h2 className="font-display text-[11px] font-semibold uppercase tracking-[0.13em] text-muted-foreground">+ <h2 className="text-title font-semibold text-foreground-strong">{t("profile_view.section_source")}</h2>{data && (- <span className="min-w-0 truncate font-mono text-[10px] text-muted-foreground/60">+ <span className="min-w-0 truncate font-mono text-micro text-muted-foreground">{data.path}</span>)}- <div className="ml-auto flex items-center gap-1.5 text-[10px] text-muted-foreground">+ <div className="ml-auto flex items-center gap-1.5 text-meta text-muted-foreground">{editing ? (<><span className="hidden items-center gap-1.5 xl:flex">- <Lock className="h-3 w-3 text-primary/70" />+ <Lock className="h-3 w-3" />{t("profile_view.raw_editing_hint")}</span><Buttonsize="sm"variant="ghost"- className="h-6 px-2 text-[11px]"+ className="h-6 px-2 text-meta"onClick={() => setEditing(false)}disabled={save.isPending}>@@ -1431,7 +1437,7 @@ function SourceRail() {<Buttonsize="sm"variant="default"- className="h-6 px-2 text-[11px]"+ className="h-6 px-2 text-meta"onClick={() => save.mutate(draft)}disabled={save.isPending}>@@ -1441,11 +1447,14 @@ function SourceRail() {</>) : (<>+ {/* Something just wrote to the file: that is the section's one+ live signal, so it is spent on --success rather than on+ another grey pill. */}{isPulsing && (- <span className="inline-flex items-center gap-1.5 rounded-full bg-muted-foreground/15 px-2 py-0.5 font-semibold text-muted-foreground">+ <span className="inline-flex items-center gap-1.5 rounded-full bg-secondary px-2 py-0.5 text-foreground"><span className="relative flex h-1.5 w-1.5">- <span className="absolute inline-flex h-full w-full animate-ping rounded-full bg-muted-foreground opacity-75" />- <span className="relative inline-flex h-1.5 w-1.5 rounded-full bg-muted-foreground" />+ <span className="absolute inline-flex h-full w-full animate-ping rounded-full bg-success opacity-75" />+ <span className="relative inline-flex h-1.5 w-1.5 rounded-full bg-success" /></span>{t("profile_view.just_updated")}</span>@@ -1463,15 +1472,15 @@ function SourceRail() {disabled={isRefetching}title={t("profile_view.reload_tooltip")}aria-label={t("profile_view.reload_tooltip")}- className="rounded p-1 text-muted-foreground transition-colors hover:text-foreground disabled:opacity-40"+ className="rounded-md p-1 text-muted-foreground transition-colors hover:bg-secondary hover:text-foreground disabled:opacity-40">- <RefreshCw className={cn("h-3 w-3", isRefetching && "animate-spin")} />+ <RefreshCw className={cn("h-3.5 w-3.5", isRefetching && "animate-spin")} /></button>{data && (<Buttonsize="sm"variant="outline"- className="h-6 px-2 text-[11px]"+ className="h-6 px-2 text-meta"onClick={startEditing}><Pencil className="mr-1 h-3 w-3" />@@ -1484,17 +1493,18 @@ function SourceRail() {</div><div className="min-h-0 flex-1 lg:overflow-hidden">+ {/* The document at its real width with skeleton lines, not a spinner+ beside a word. */}{isLoading && (- <div className="flex items-center gap-2 px-5 py-4 text-xs text-muted-foreground">- <RefreshCw className="h-3 w-3 animate-spin" /> {t("profile_view.raw_loading")}+ <div className="max-w-reading space-y-stack px-5 py-4" aria-hidden>+ <div className="h-4 w-1/3 animate-pulse rounded-full bg-sheen/[0.06]" />+ <div className="h-3 w-full animate-pulse rounded-full bg-sheen/[0.06]" />+ <div className="h-3 w-11/12 animate-pulse rounded-full bg-sheen/[0.06]" />+ <div className="h-3 w-4/5 animate-pulse rounded-full bg-sheen/[0.06]" /></div>)}- {error && (- <div className="m-4 rounded-xl border border-destructive/30 bg-destructive/5 p-3 text-xs text-destructive">- {error.message}- </div>- )}+ {error && <p className="px-5 py-4 text-body text-destructive">{error.message}</p>}{data &&(editing ? (@@ -1504,25 +1514,29 @@ function SourceRail() {spellCheck={false}autoFocusaria-label="USER.md"- className="block h-full min-h-[24rem] w-full resize-none bg-transparent px-5 py-4 font-mono text-[11px] leading-relaxed text-foreground/90 outline-none scrollbar-jarvis"+ className="block h-full min-h-[24rem] w-full resize-none bg-transparent px-5 py-4 font-mono text-meta text-foreground outline-none scrollbar-jarvis"/>) : (<div className="h-full overflow-y-auto px-5 py-4 scrollbar-jarvis">{body ? (+ // A profile is a document, so it is set at the reading step in+ // full ink and bounded to a reading measure. It used to run at+ // muted ink under small-caps headings, which reads as text+ // somebody disabled rather than text somebody wrote.<articledata-testid="profile-source-markdown"className={cn(PROSE_BASE,- "max-w-none text-[13px]",- "prose-headings:font-display prose-h1:text-lg prose-h2:mt-6 prose-h2:text-sm",- "prose-h2:uppercase prose-h2:tracking-[0.1em] prose-h2:text-muted-foreground",- "prose-h3:text-[13px] prose-p:leading-relaxed",+ "max-w-reading text-reading text-foreground",+ "prose-headings:font-display prose-headings:text-foreground-strong",+ "prose-h1:text-page prose-h2:mt-group prose-h2:text-title prose-h3:text-title",+ "prose-p:text-foreground prose-li:text-foreground prose-strong:text-foreground-strong",)}><ReactMarkdown remarkPlugins={[remarkGfm]}>{body}</ReactMarkdown></article>) : (- <p className="text-xs italic text-muted-foreground/60">+ <p className="text-body text-muted-foreground">{t("profile_view.raw_empty")}</p>)}@@ -1537,12 +1551,40 @@ function SourceRail() {// Loading / Error// ----------------------------------------------------------------------+/**+ * The real three-rail shape at its real height, with skeleton bars. A centred+ * spinner in an empty window is the state that reads as "broken", because it+ * throws away every bit of structure the section is about to have.+ */function LoadingState() {- const t = useT();return (- <div className="flex flex-1 items-center justify-center">- <div className="flex items-center gap-2 text-sm text-muted-foreground">- <RefreshCw className="h-4 w-4 animate-spin" /> {t("common.loading")}+ <div+ role="status"+ aria-busy="true"+ className="grid min-h-0 flex-1 grid-cols-1 lg:grid-cols-[minmax(320px,1fr)_minmax(0,1.15fr)_minmax(280px,330px)]"+ >+ <div className="space-y-group bg-sidebar px-6 py-7">+ {[0, 1, 2].map((group) => (+ <div key={group} className="space-y-stack">+ <div className="h-4 w-32 animate-pulse rounded-full bg-sheen/[0.06]" />+ {[0, 1, 2, 3].map((row) => (+ <div key={row} className="flex items-center justify-between gap-8">+ <div className="h-3 w-24 animate-pulse rounded-full bg-sheen/[0.06]" />+ <div className="h-3 w-28 animate-pulse rounded-full bg-sheen/[0.06]" />+ </div>+ ))}+ </div>+ ))}+ </div>+ <div className="max-w-reading space-y-stack bg-background px-5 py-6">+ <div className="h-5 w-2/5 animate-pulse rounded-full bg-sheen/[0.06]" />+ {[0, 1, 2, 3, 4].map((line) => (+ <div key={line} className="h-3 w-full animate-pulse rounded-full bg-sheen/[0.06]" />+ ))}+ </div>+ <div className="space-y-stack bg-sidebar px-5 py-8">+ <div className="h-28 animate-pulse rounded-lg bg-sheen/[0.06]" />+ <div className="h-20 animate-pulse rounded-lg bg-sheen/[0.06]" /></div></div>);@@ -1554,15 +1596,15 @@ function ErrorState({ error, onRetry }: { error: Error; onRetry: () => void }) {if (status === 503) {return (<div className="flex flex-1 items-center justify-center p-8">- <div className="max-w-md rounded-2xl border border-sheen/[0.08] bg-sheen/[0.03] p-8 text-center">- <div className="mx-auto mb-5 flex h-14 w-14 items-center justify-center rounded-full border border-sheen/[0.08] bg-sheen/[0.04]">- <UserCircle2 className="h-6 w-6 text-primary" />+ <div className="max-w-form rounded-lg bg-card p-8 text-center shadow-rim">+ <div className="mx-auto mb-5 flex h-14 w-14 items-center justify-center rounded-full bg-secondary">+ <UserCircle2 className="h-6 w-6 text-muted-foreground" /></div>- <h3 className="font-display text-lg font-semibold tracking-tight">+ <h3 className="font-display text-page font-semibold text-foreground-strong">{t("profile_view.hero_name_placeholder")}</h3>- <p className="mt-2 text-sm text-muted-foreground">{error.message}</p>- <p className="mt-4 text-xs text-muted-foreground/70">{t("profile_view.no_user_hint")}</p>+ <p className="mt-2 text-body text-foreground">{error.message}</p>+ <p className="mt-4 text-meta text-muted-foreground">{t("profile_view.no_user_hint")}</p><Button className="mt-6" size="sm" variant="outline" onClick={onRetry}><RefreshCw className="mr-2 h-3.5 w-3.5" /> {t("apikeys_view.retry")}</Button>@@ -1571,13 +1613,13 @@ function ErrorState({ error, onRetry }: { error: Error; onRetry: () => void }) {);}return (- <div className="p-6">- <div className="rounded-xl border border-destructive/30 bg-destructive/5 p-4 text-sm text-destructive">+ <div className="flex items-center gap-3 p-6 text-body">+ <span className="text-destructive">{t("common.error_generic")}: {error.message}- <button className="ml-2 underline" onClick={onRetry}>- {t("apikeys_view.retry")}- </button>- </div>+ </span>+ <Button size="sm" variant="outline" onClick={onRetry}>+ {t("apikeys_view.retry")}+ </Button></div>);}diff --git a/jarvis/ui/web/frontend/src/views/RunInspectorView.tsx b/jarvis/ui/web/frontend/src/views/RunInspectorView.tsxindex 7bb7bce84c..4570e92dcb 100644--- a/jarvis/ui/web/frontend/src/views/RunInspectorView.tsx+++ b/jarvis/ui/web/frontend/src/views/RunInspectorView.tsx@@ -1,12 +1,14 @@import { useEffect, useState } from "react";import { useT } from "@/i18n";import { useRuns } from "@/hooks/useRuns";+import { EmptyState } from "@/components/layout/EmptyState";+import { PanelSkeleton } from "@/components/layout/PanelSkeleton";import { RunList } from "@/components/runs/RunList";import { RunDetail } from "@/components/runs/RunDetail";export function RunInspectorView() {const t = useT();- const { data: runs, isError } = useRuns();+ const { data: runs, isError, isLoading } = useRuns();const [selected, setSelected] = useState<string | null>(null);useEffect(() => {@@ -14,21 +16,41 @@ export function RunInspectorView() {}, [runs, selected]);if (isError) {- return <div className="p-6 text-sm text-muted-foreground">{t("run_inspector.unavailable")}</div>;+ return (+ <div className="flex h-full items-center justify-center">+ <EmptyState body={t("run_inspector.unavailable")} />+ </div>+ );}return (<div className="flex h-full">- <div className="w-[300px] shrink-0 overflow-y-auto border-r border-border">- <div className="px-4 py-3">- <h2 className="text-sm font-semibold">{t("run_inspector.title")}</h2>- <p className="text-xs text-muted-foreground">{t("run_inspector.subtitle")}</p>+ {/* The rail: standing chrome, so it sits one step below the page and+ never rises to --card no matter how tall it gets. */}+ <div className="w-[300px] shrink-0 overflow-y-auto border-r border-border bg-sidebar">+ <div className="px-4 py-4">+ <h2 className="text-title font-semibold text-foreground-strong">+ {t("run_inspector.title")}+ </h2>+ <p className="mt-1 text-meta text-muted-foreground">+ {t("run_inspector.subtitle")}+ </p></div>- <RunList items={runs ?? []} selectedId={selected} onSelect={setSelected} />+ {isLoading ? (+ <div className="px-2">+ <PanelSkeleton rows={6} rowHeight={64} label={t("run_inspector.title")} />+ </div>+ ) : (+ <RunList items={runs ?? []} selectedId={selected} onSelect={setSelected} />+ )}</div><div className="min-h-0 min-w-0 flex-1">- {selected ? <RunDetail sessionId={selected} /> : (- <div className="p-6 text-sm text-muted-foreground">{t("run_inspector.empty")}</div>+ {selected ? (+ <RunDetail sessionId={selected} />+ ) : (+ <div className="flex h-full items-center justify-center p-5">+ <EmptyState body={t("run_inspector.empty")} />+ </div>)}</div></div>diff --git a/jarvis/ui/web/frontend/src/views/SessionsView.tsx b/jarvis/ui/web/frontend/src/views/SessionsView.tsxindex 7e42a7ac0b..74e9035eda 100644--- a/jarvis/ui/web/frontend/src/views/SessionsView.tsx+++ b/jarvis/ui/web/frontend/src/views/SessionsView.tsx@@ -5,7 +5,7 @@* + turn timeline + click-to-copy. Live updates via the useSessions hook,* which reacts to VoiceSessionStarted/Ended bus events.*/-import { Mic } from "lucide-react";+import { AlertTriangle, Mic } from "lucide-react";import { useEffect, useState } from "react";import { useEventStore } from "@/store/events";@@ -43,22 +43,36 @@ export function SessionsView() {return (<div className="flex h-full flex-col">+ {/* --primary is a fill, never a decorative glyph. */}<ViewHeader- icon={<Mic className="h-4 w-4 text-primary" />}+ icon={<Mic className="h-4 w-4 text-foreground" />}title={t("sessions_view.title")}subtitle={t("sessions_view.subtitle")}/>+ {/* The recorder being switched off is a degraded state, not a failure:+ everything else on this screen still works. So it is a --warning+ glyph on the room's own ground, and NOT the near-white band this+ used to be — a full-bleed region never rises above its room, and a+ status painted in --foreground outshouts every real heading. */}{errorMessage && /HTTP 503/.test(errorMessage) && (- <div className="border-b border-foreground/30 bg-foreground/10 px-5 py-3 text-sm text-foreground">- <div className="font-medium">{t("sessions_view.recorder_disabled")}</div>- <div className="mt-0.5 text-xs text-foreground/80">- {t("sessions_view.recorder_hint_a")}{" "}- <code className="font-mono">[sessions]</code>{" "}- {t("sessions_view.recorder_hint_b")}{" "}- <code className="font-mono">jarvis.toml</code>{" "}- (<code className="font-mono">enabled = true</code>){" "}- {t("sessions_view.recorder_hint_c")} {assistantName}.+ <div className="flex items-start gap-3 border-b border-border px-6 py-4">+ <AlertTriangle+ aria-hidden="true"+ className="mt-0.5 h-4 w-4 shrink-0 text-warning"+ />+ <div className="min-w-0">+ <div className="text-title font-semibold text-foreground-strong">+ {t("sessions_view.recorder_disabled")}+ </div>+ <div className="mt-1 text-meta text-muted-foreground">+ {t("sessions_view.recorder_hint_a")}{" "}+ <code className="font-mono">[sessions]</code>{" "}+ {t("sessions_view.recorder_hint_b")}{" "}+ <code className="font-mono">jarvis.toml</code>{" "}+ (<code className="font-mono">enabled = true</code>){" "}+ {t("sessions_view.recorder_hint_c")} {assistantName}.+ </div></div></div>)}diff --git a/jarvis/ui/web/frontend/src/views/SettingsView.tsx b/jarvis/ui/web/frontend/src/views/SettingsView.tsxindex 86e8cf981b..641e95fdda 100644--- a/jarvis/ui/web/frontend/src/views/SettingsView.tsx+++ b/jarvis/ui/web/frontend/src/views/SettingsView.tsx@@ -6,7 +6,7 @@ import {Loader2,Languages,} from "lucide-react";-import { ViewHeader } from "@/views/ChatsView";+import { SectionHeader } from "@/components/layout/SectionHeader";import { Switch } from "@/components/ui/switch";import { Button } from "@/components/ui/button";import { BrandedSelect } from "@/components/ui/select";@@ -22,6 +22,7 @@ import { AudioDevicesGroup } from "@/views/settings/AudioDevicesGroup";import { SystemPromptGroup } from "@/views/settings/SystemPromptGroup";import { SettingsGroupBoundary } from "@/views/settings/SettingsGroupBoundary";import { ScreenContextGroup } from "@/views/settings/ScreenContextGroup";+import { settingsInputCls } from "@/views/settings/SettingsBlock";import {useWakeWord,useLocalSpeechInstall,@@ -96,15 +97,22 @@ export function SettingsView() {return (<div className="flex h-full flex-col">- <ViewHeader- icon={<Settings className="h-4 w-4 text-primary" />}+ <SectionHeader+ icon={<Settings />}title={t("settings_view.title")}subtitle={t("settings_view.subtitle")}/>{/* Each group is fault-isolated. The panels are independent, each backedby its own route, so one of them throwing must cost the user that one- panel — not the ability to change any setting at all. */}- <div className="flex-1 overflow-y-auto scrollbar-jarvis p-6">+ panel — not the ability to change any setting at all.++ The measure and the rhythm live here, once: settings are option lists+ and single-column forms, so they stop at the 640px form measure rather+ than stretching an option card holding two words across the window,+ and the groups are separated by the 32px group step — the step the+ section was missing entirely, which is why it read as one mesh. The+ horizontal page padding comes from the shell, not from here. */}+ <div className="flex-1 space-y-group overflow-y-auto scrollbar-jarvis pb-group [&>*]:max-w-form"><SettingsGroupBoundary group="languages"><LanguagesGroup /></SettingsGroupBoundary>@@ -142,7 +150,7 @@ export function SettingsView() {<KeybindsPanel /></SettingsGroupBoundary>- <ul className="mt-2 space-y-2">+ <ul className="space-y-stack">{rows.map((r) => (<SettingRow key={r.title} row={r} />))}@@ -159,14 +167,20 @@ export function SettingsView() {function SettingRow({ row }: { row: SettingRow }) {const Icon = row.icon;return (- <li className="card-outline flex items-center gap-4 p-4">- <Icon className="h-4 w-4 shrink-0 text-primary" />+ <li className="flex items-center gap-3 rounded-lg border border-border bg-card p-block">+ {/* Secondary ink, never --primary: an icon that is brighter than the+ heading it labels inverts the ramp (rule 8). */}+ <Icon className="h-5 w-5 shrink-0 text-muted-foreground" /><div className="min-w-0 flex-1">- <div className="font-medium">{row.title}</div>- <p className="mt-0.5 text-xs text-muted-foreground">{row.description}</p>+ <div className="text-title font-semibold text-foreground-strong">+ {row.title}+ </div>+ <p className="mt-1 text-meta text-muted-foreground">{row.description}</p></div>{row.value && (- <span className="font-mono text-xs text-muted-foreground">{row.value}</span>+ <span className="font-mono text-meta tabular-nums text-muted-foreground">+ {row.value}+ </span>)}{row.control}</li>@@ -186,12 +200,13 @@ function SettingRow({ row }: { row: SettingRow }) {* (WakeWordOnboardingGate) handles the mandatory first-run flow.*//**- * Branded language dropdown (GTC black/yellow) — a native <select> cannot style- * its option list (the OS renders it), which clashed with the theme. This is a- * self-contained button + positioned listbox: dark card surface, primary-yellow- * accent on the active/hover row, closes on outside-click and Escape. Shows a- * placeholder when the value is not one of the offered concrete languages (e.g.- * a fresh "auto" config), nudging the user to make an explicit choice.+ * The wake-word language dropdown — a native <select> cannot style its option+ * list (the OS renders it), which clashed with the theme. Presentation is the+ * shared BrandedSelect's: a float surface for the list and the interaction+ * ladder for its rows. Nothing is passed in here, because a select that carries+ * a coloured hairline at one call site and not at the others is two controls.+ * Shows a placeholder when the value is not one of the offered concrete+ * languages (e.g. a fresh "auto" config), nudging an explicit choice.*/function LanguageDropdown({value,@@ -215,7 +230,6 @@ function LanguageDropdown({ariaLabel={placeholder}placeholder={placeholder}disabled={disabled}- className="border-primary/40"options={options.map((code) => ({value: code,label: labelFor(code),@@ -416,19 +430,19 @@ function WakeWordPanel() {}return (- <div className="rounded-lg border border-border bg-card/60 p-4">+ <div className="rounded-lg border border-border bg-card p-block"><div className="flex items-start gap-3">- <Mic className="mt-0.5 h-4 w-4 shrink-0 text-primary" />+ <Mic className="mt-0.5 h-5 w-5 shrink-0 text-muted-foreground" /><div className="min-w-0 flex-1">- <h4 className="font-display text-sm font-semibold">+ <h4 className="text-title font-semibold text-foreground-strong">{t("settings_view.wake_word.title")}</h4>- <p className="mt-1 text-xs text-muted-foreground">+ <p className="mt-1 text-meta text-muted-foreground">{t("settings_view.wake_word.description")}</p>- <div className="mt-3 flex items-center justify-between gap-4">- <span className="text-xs font-medium">+ <div className="mt-block flex items-center justify-between gap-4">+ <span className="text-body text-foreground">{t("settings_view.wake_word.activation_title")}</span><Switch@@ -438,16 +452,16 @@ function WakeWordPanel() {onCheckedChange={onToggleActivation}/></div>- <p className="mt-1 text-xs text-muted-foreground">+ <p className="mt-1 text-meta text-muted-foreground">{t("settings_view.wake_word.activation_hint")}</p>{error && (- <p className="mt-3 text-xs text-destructive">{error}</p>+ <p className="mt-stack text-meta text-destructive">{error}</p>)}{/* Phrase input — free text, no quick-picks */}- <label className="mt-4 block text-xs font-medium text-muted-foreground">+ <label className="mt-block block text-meta text-muted-foreground">{t("settings_view.wake_word.phrase_label")}</label><input@@ -456,11 +470,11 @@ function WakeWordPanel() {maxLength={64}placeholder={t("settings_view.wake_word.phrase_placeholder")}disabled={loading}- className="mt-1 w-full rounded-md border border-input bg-background px-3 py-2 text-sm focus:outline-none focus:ring-1 focus:ring-primary disabled:opacity-50"+ className={settingsInputCls + " mt-1.5 disabled:opacity-50"}/>{derivedName ? (- <p className="mt-1.5 text-xs text-muted-foreground">+ <p className="mt-1.5 text-meta text-muted-foreground">{t("settings_view.wake_word.derived_name").replace("{0}", derivedName)}</p>) : null}@@ -474,17 +488,23 @@ function WakeWordPanel() {word's OWN language pin ([trigger.wake_word] language) — the appdisplay language and the STT recognition language stay untouched,and neither can move this choice. */}- <div className="mt-4 rounded-md border border-primary/50 bg-primary/5 p-3">+ {/* A lift surface inside the card — the step up the ladder that says+ "this one matters", drawn in fill rather than in a tinted rim.+ It used to be --primary at 5 % behind a --primary hairline with a+ --primary heading: white ink on a white wash, which made a piece+ of guidance the loudest mark on the page and read as a status it+ is not. Emphasis is the surface and the ink ceiling now. */}+ <div className="mt-block rounded-md bg-secondary p-4"><div className="flex items-center gap-2">- <Languages className="h-4 w-4 shrink-0 text-primary" />- <span className="text-xs font-semibold">+ <Languages className="h-4 w-4 shrink-0 text-muted-foreground" />+ <span className="text-title font-semibold text-foreground-strong">{t("settings_view.wake_word.language_label")}</span></div>- <p className="mt-1.5 text-xs font-semibold text-primary">+ <p className="mt-1.5 text-body text-foreground">{t("settings_view.wake_word.language_callout_title")}</p>- <div className="mt-2">+ <div className="mt-stack"><LanguageDropdownvalue={wakeLang}options={WAKE_LANGUAGES}@@ -494,13 +514,13 @@ function WakeWordPanel() {disabled={loading}/></div>- <p className="mt-2 text-[11px] leading-snug text-muted-foreground">+ <p className="mt-stack text-meta text-muted-foreground">{t("settings_view.wake_word.language_hint")}</p></div>{/* Engine select */}- <label className="mt-4 block text-xs font-medium text-muted-foreground">+ <label className="mt-block block text-meta text-muted-foreground">{t("settings_view.wake_word.engine_label")}</label><BrandedSelect@@ -518,7 +538,7 @@ function WakeWordPanel() {{/* Custom ONNX model path */}{engine === "custom_onnx" && (<>- <label className="mt-4 block text-xs font-medium text-muted-foreground">+ <label className="mt-block block text-meta text-muted-foreground">{t("settings_view.wake_word.custom_model_path_label")}</label><input@@ -526,7 +546,7 @@ function WakeWordPanel() {onChange={(e) => setCustomModelPath(e.target.value)}placeholder="C:\\Users\\...\\my_wakeword.onnx"disabled={loading}- className="mt-1 w-full rounded-md border border-input bg-background px-3 py-2 font-mono text-xs focus:outline-none focus:ring-1 focus:ring-primary disabled:opacity-50"+ className={settingsInputCls + " mt-1.5 font-mono text-meta disabled:opacity-50"}/></>)}@@ -534,13 +554,15 @@ function WakeWordPanel() {{/* Any-phrase enablement: install the local speech pack in-app soan arbitrary wake word works, instead of silently degrading. */}{showNeedsWhisperHint && (- <div className="mt-3 rounded-md border border-foreground/40 bg-foreground/10 p-3 text-xs text-foreground">- <p>{t("settings_view.wake_word.needs_whisper_hint")}</p>+ <div className="mt-stack rounded-md bg-secondary p-4 text-body text-foreground">+ <p className="text-warning">+ {t("settings_view.wake_word.needs_whisper_hint")}+ </p>{installStatus.state === "idle" && (<Buttonsize="sm"- className="mt-2"+ className="mt-stack"onClick={() => void install()}>{t("settings_view.wake_word.enable_local_button")}@@ -548,23 +570,23 @@ function WakeWordPanel() {)}{installStatus.state === "running" && (- <p className="mt-2 flex items-center gap-2 text-foreground">+ <p className="mt-stack flex items-center gap-2 text-muted-foreground"><Loader2 className="h-3.5 w-3.5 animate-spin" />{t("settings_view.wake_word.enable_local_installing")}</p>)}{installStatus.state === "error" && (- <div className="mt-2 text-destructive">+ <div className="mt-stack text-destructive"><p>{t("settings_view.wake_word.enable_local_error")}</p>{installStatus.message && (- <p className="mt-1 font-mono text-[11px] text-muted-foreground">+ <p className="mt-1 font-mono text-micro text-muted-foreground">{installStatus.message}</p>)}<Buttonsize="sm"- className="mt-2"+ className="mt-stack"onClick={() => void install()}>{t("settings_view.wake_word.enable_local_retry")}@@ -573,15 +595,15 @@ function WakeWordPanel() {)}{installStatus.state === "done" && (- <div className="mt-2 text-foreground">- <p>{t("settings_view.wake_word.enable_local_done")}</p>- </div>+ <p className="mt-stack text-success">+ {t("settings_view.wake_word.enable_local_done")}+ </p>)}</div>)}{/* Save + Test buttons */}- <div className="mt-4 flex items-center gap-3">+ <div className="mt-block flex items-center gap-3"><Buttonsize="sm"onClick={onSave}@@ -611,18 +633,23 @@ function WakeWordPanel() {{/* Self-test result — honest readiness verdict (engine + language +vocabulary + mic), the fast way to see WHY a word won't wake. */}{selfTest.state === "done" && selfTest.data && (- <div- className={`mt-3 rounded-md border p-3 text-xs ${- selfTest.data.ok- ? "border-primary/40 bg-primary/10 text-foreground"- : "border-foreground/40 bg-foreground/10 text-foreground"- }`}- >- <p>{selfTest.data.message}</p>+ /* One surface for both verdicts, the verdict carried by the status+ ink on the sentence. A pass used to be a --primary wash and a+ fail a --foreground wash: two brightness washes standing in for+ a meaning that colour states directly, on a ground where neither+ was legible as a state at all. */+ <div className="mt-stack rounded-md bg-secondary p-4 text-body">+ <p+ className={+ selfTest.data.ok ? "text-success" : "text-destructive"+ }+ >+ {selfTest.data.message}+ </p>{selfTest.data.hint && (<p className="mt-1 text-muted-foreground">{selfTest.data.hint}</p>)}- <p className="mt-1 font-mono text-muted-foreground">+ <p className="mt-1 font-mono text-meta text-muted-foreground">engine: {selfTest.data.engine} · language: {selfTest.data.language}{selfTest.data.phrase_in_vocab === false ? " · not in vocabulary" : ""}{selfTest.data.mic_ok ? "" : " · mic quiet"}@@ -632,19 +659,13 @@ function WakeWordPanel() {{/* Save result */}{result && (- <div- className={`mt-3 rounded-md border p-3 text-xs ${- result.degraded- ? "border-foreground/40 bg-foreground/10 text-foreground"- : "border-primary/40 bg-primary/10 text-foreground"- }`}- >- <p>+ <div className="mt-stack rounded-md bg-secondary p-4 text-body">+ <p className={result.degraded ? "text-warning" : "text-success"}>{result.degraded? t("settings_view.wake_word.degraded_warning"): result.message}</p>- <p className="mt-1 font-mono text-muted-foreground">+ <p className="mt-1 font-mono text-meta text-muted-foreground">engine: {result.resolved_engine}</p>{result.degraded && result.message && (@@ -661,7 +682,7 @@ function WakeWordPanel() {"Download wake model") to a real button instead of aCLI/API-only route. */}{result.degraded && (- <div className="mt-2">+ <div className="mt-stack">{wakeModelDownload.state === "idle" && (<Buttonsize="sm"@@ -672,14 +693,14 @@ function WakeWordPanel() {)}{wakeModelDownload.state === "running" && (- <p className="flex items-center gap-2 text-foreground">+ <p className="flex items-center gap-2 text-muted-foreground"><Loader2 className="h-3.5 w-3.5 animate-spin" />{t("settings_view.wake_word.download_model_downloading")}</p>)}{wakeModelDownload.state === "done" && (- <p className="text-foreground">+ <p className="text-success">{wakeModelDownload.message ||t("settings_view.wake_word.download_model_done")}</p>@@ -693,7 +714,7 @@ function WakeWordPanel() {</p><Buttonsize="sm"- className="mt-2"+ className="mt-stack"onClick={() => void onDownloadWakeModel()}>{t("settings_view.wake_word.download_model_retry")}@@ -740,18 +761,20 @@ export function KeybindsPanel() {const { config, loading, error, saveKeybind } = useKeybinds();return (- <div className="mt-2 rounded-lg border border-border bg-card/60 p-4">+ <div className="rounded-lg border border-border bg-card p-block"><div className="flex items-start gap-3">- <Keyboard className="mt-0.5 h-4 w-4 shrink-0 text-primary" />+ <Keyboard className="mt-0.5 h-5 w-5 shrink-0 text-muted-foreground" /><div className="min-w-0 flex-1">- <h4 className="font-display text-sm font-semibold">+ <h4 className="text-title font-semibold text-foreground-strong">{t("settings_view.keybinds.title")}</h4>- <p className="mt-1 text-xs text-muted-foreground">+ <p className="mt-1 text-meta text-muted-foreground">{t("settings_view.keybinds.description")}</p>- {error && <p className="mt-3 text-xs text-destructive">{error}</p>}- <div className="mt-4 space-y-3">+ {error && (+ <p className="mt-stack text-meta text-destructive">{error}</p>+ )}+ <div className="mt-block space-y-stack">{_KEYBIND_ROWS.map((row) => (<KeybindRowkey={row.action}diff --git a/jarvis/ui/web/frontend/src/views/SkillsView.tsx b/jarvis/ui/web/frontend/src/views/SkillsView.tsxindex 9b773135ed..25d9d2b28e 100644--- a/jarvis/ui/web/frontend/src/views/SkillsView.tsx+++ b/jarvis/ui/web/frontend/src/views/SkillsView.tsx@@ -485,7 +485,7 @@ export function SkillsView() {value={categoryFilter ?? ""}onValueChange={(value) => setCategoryFilter(value || null)}ariaLabel={t("skills_view.all_categories")}- className="w-auto rounded-full px-2 py-0.5 text-[11px]"+ className="w-auto rounded-full px-2 py-0.5 text-micro"options={[{ value: "", label: t("skills_view.all_categories") },...categoryOptions.map((category) => ({@@ -496,7 +496,7 @@ export function SkillsView() {/>)}{searchActive && search.data && (- <span className="ml-auto flex items-center gap-2 text-[11px] text-muted-foreground">+ <span className="ml-auto flex items-center gap-2 text-micro text-muted-foreground">{search.data.total} {t("skills_view.matches")}{search.data.brain_used && (<span className="flex items-center gap-1">@@ -527,7 +527,7 @@ export function SkillsView() {</div>)}{error && (- <div className="rounded-lg border border-destructive/40 bg-destructive/10 p-3 text-sm text-destructive">+ <div className="rounded-lg bg-secondary p-3 text-sm text-destructive">{t("skills_view.load_error")}: {(error as Error).message}</div>)}@@ -540,7 +540,7 @@ export function SkillsView() {</div>)}{searchActive && search.error && (- <div className="m-3 rounded-lg border border-destructive/40 bg-destructive/10 p-3 text-xs text-destructive">+ <div className="m-3 rounded-lg bg-secondary p-3 text-xs text-destructive">{t("skills_view.search_failed")}: {(search.error as Error).message}</div>)}@@ -628,13 +628,13 @@ function SkillRow({)}<Cell><div className="flex items-center gap-2" title={skill.description}>- <span className="truncate text-[15px] font-medium">{skill.name}</span>+ <span className="truncate text-title font-medium">{skill.name}</span>{skill.origin?.source === "marketplace" && (<MarketplaceBadge compact publisher={skill.origin.publisher} />)}{skill.triggers.map((tr, i) => {const Icon = TRIGGER_ICON[tr.type];- return <Icon key={i} className="h-3.5 w-3.5 shrink-0 text-muted-foreground/50" aria-label={tr.type} />;+ return <Icon key={i} className="h-3.5 w-3.5 shrink-0 text-muted-foreground" aria-label={tr.type} />;})}</div>{reason && (@@ -648,7 +648,7 @@ function SkillRow({<Cell align="right" stop>{broken ? (<span- className="flex items-center gap-1 text-[11px] font-medium text-destructive"+ className="flex items-center gap-1 text-micro font-medium text-destructive"title={skill.error ?? undefined}><AlertTriangle className="h-3.5 w-3.5" />@@ -669,7 +669,7 @@ function SkillRow({onClick={onDelete}aria-label={t("skills_view.delete")}title={t("skills_view.delete")}- className="rounded p-1 text-muted-foreground/0 transition-colors hover:bg-destructive/10 hover:text-destructive group-hover:text-muted-foreground/70 focus-visible:text-muted-foreground"+ className="rounded p-1 text-muted-foreground transition-colors hover:bg-secondary hover:text-destructive group-hover:text-muted-foreground focus-visible:text-muted-foreground"><Trash2 className="h-3.5 w-3.5" /></button>@@ -713,7 +713,7 @@ function SelectBox({className={cn("flex h-4 w-4 flex-shrink-0 items-center justify-center rounded border transition-colors",checked- ? "border-primary bg-foreground/70 text-primary-foreground"+ ? "border-border-strong bg-primary text-primary-foreground": "border-muted-foreground/50 hover:border-muted-foreground",disabled && "cursor-not-allowed opacity-40",className,@@ -740,7 +740,7 @@ function SelectionToolbar({const t = useT();const hasSelection = checkedCount > 0;return (- <div className="mt-4 flex items-center gap-2.5 rounded-lg border border-border bg-sheen/[0.04] px-3 py-2">+ <div className="mt-4 flex items-center gap-2.5 rounded-lg bg-secondary px-3 py-2"><SelectBoxchecked={allChecked}onChange={onToggleAll}@@ -801,7 +801,7 @@ function BulkDeleteConfirmDialog({<p className="mt-2 text-sm text-muted-foreground">{t("skills_view.bulk_delete_body")}</p>- <ul className="mt-2 max-h-40 space-y-0.5 overflow-y-auto rounded-md border border-border bg-muted/20 p-2">+ <ul className="mt-2 max-h-40 space-y-0.5 overflow-y-auto rounded-md border border-border bg-muted p-2">{names.map((n) => (<li key={n} className="truncate font-mono text-xs">{n}@@ -1098,7 +1098,7 @@ function SkillDetailPage({)}{data.error && (- <div className="mt-4 rounded-md border border-destructive/40 bg-destructive/10 p-2.5 text-xs text-destructive">+ <div className="mt-4 rounded-md bg-secondary p-2.5 text-xs text-destructive">{t("skills_view.validation_error")}: {data.error}</div>)}@@ -1107,10 +1107,10 @@ function SkillDetailPage({the dropped keys, because the owner of the file has to be able tosee what this app did not read. */}{data.portable && (- <div className="mt-4 rounded-md border border-border bg-muted/40 p-2.5 text-xs text-muted-foreground">+ <div className="mt-4 rounded-md border border-border bg-muted p-2.5 text-xs text-muted-foreground">{t("skills_view.portable_notice")}{data.ignored_fields && data.ignored_fields.length > 0 && (- <span className="mt-1 block font-mono text-[11px]">+ <span className="mt-1 block font-mono text-micro">{t("skills_view.portable_ignored")}{" "}{data.ignored_fields.join(", ")}</span>@@ -1118,7 +1118,7 @@ function SkillDetailPage({</div>)}{saveError && !showAdminDialog && (- <div className="mt-4 rounded-md border border-destructive/40 bg-destructive/10 p-2.5 text-xs text-destructive">+ <div className="mt-4 rounded-md bg-secondary p-2.5 text-xs text-destructive">{saveError}</div>)}@@ -1130,8 +1130,8 @@ function SkillDetailPage({)}<Panel className="mt-4">- <div className="flex items-center gap-3 border-b border-border/70 px-3 py-2">- <span className="inline-flex h-8 min-w-0 items-center gap-2 px-1 font-mono text-[13px] text-foreground">+ <div className="flex items-center gap-3 border-b border-border px-3 py-2">+ <span className="inline-flex h-8 min-w-0 items-center gap-2 px-1 font-mono text-meta text-foreground"><OpenFileIcon className="h-3.5 w-3.5 shrink-0 text-muted-foreground" /><span className="truncate">{openLabel}</span></span>@@ -1140,7 +1140,7 @@ function SkillDetailPage({</span><div className="ml-auto flex items-center gap-1">{data.is_builtin && mode === "source" && (- <span className="mr-2 hidden text-[11px] text-muted-foreground sm:inline">+ <span className="mr-2 hidden text-micro text-muted-foreground sm:inline">{t("skills_view.builtin_admin_needed")}</span>)}@@ -1155,7 +1155,7 @@ function SkillDetailPage({{save.isPending ? t("common.saving") : t("common.save")}</Button>)}- <div className="flex items-center rounded-md bg-sheen/[0.05] p-0.5" role="tablist" aria-label={t("skills_view.view_mode")}>+ <div className="flex items-center rounded-md bg-secondary p-0.5" role="tablist" aria-label={t("skills_view.view_mode")}><ModeButtonactive={mode === "preview"}label={t("skills_view.view_preview")}@@ -1176,7 +1176,7 @@ function SkillDetailPage({<div className="flex min-h-[160px]"><FileTree- className="w-56 shrink-0 border-r border-border/70 py-2"+ className="w-56 shrink-0 border-r border-border py-2"rootLabel={data.name}paths={treePaths}openPath={openLabel}@@ -1227,7 +1227,7 @@ function SkillDetailPage({) : (<textareaclassName={cn(- "block min-h-[420px] w-full resize-y bg-transparent px-6 py-5 font-mono text-[13px] leading-relaxed",+ "block min-h-[420px] w-full resize-y bg-transparent px-6 py-5 font-mono text-meta ","focus:outline-none",)}aria-label="SKILL.md"@@ -1283,7 +1283,7 @@ function TriggerList({ triggers }: { triggers: SkillTrigger[] }) {<Icon className="h-3.5 w-3.5 text-muted-foreground" aria-label={tr.type} /><span className="font-mono text-xs">{detail || tr.type}</span>{tr.language && tr.language.length > 0 && (- <span className="text-[11px] text-muted-foreground">{tr.language.join(", ")}</span>+ <span className="text-micro text-muted-foreground">{tr.language.join(", ")}</span>)}</li>);@@ -1322,7 +1322,7 @@ function ResourceBody({);}return (- <pre className="max-h-[60vh] overflow-auto whitespace-pre-wrap break-words px-6 py-5 font-mono text-[13px] leading-relaxed">+ <pre className="max-h-[60vh] overflow-auto whitespace-pre-wrap break-words px-6 py-5 font-mono text-meta ">{data}</pre>);@@ -1367,7 +1367,7 @@ function AdminPassDialog({if (e.key === "Enter" && passInput) onConfirm(passInput);if (e.key === "Escape") onCancel();}}- className="mt-4 w-full rounded-md border border-border bg-background px-3 py-2 text-sm focus:outline-none focus:ring-1 focus:ring-primary"+ className="mt-4 w-full rounded-md border border-border bg-background px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-border-strong"placeholder="Password"/>{errorHint && (@@ -1546,7 +1546,7 @@ function SkillLinks({href={url}target="_blank"rel="noopener noreferrer"- className="group flex items-center gap-1.5 rounded-md border border-border bg-background/60 px-2 py-1 text-xs text-foreground hover:bg-muted/40"+ className="group flex items-center gap-1.5 rounded-md border border-border bg-background px-2 py-1 text-xs text-foreground hover:bg-muted"title={url}><Icon className="h-3 w-3 text-muted-foreground" />@@ -1600,10 +1600,10 @@ function FilterChip({type="button"onClick={onClick}className={cn(- "rounded-full border px-2 py-0.5 text-[11px] transition-colors",+ "rounded-full border px-2 py-0.5 text-micro transition-colors",active- ? "border-primary/60 bg-primary/10 text-primary"- : "border-border bg-background/60 hover:bg-muted/40",+ ? "bg-secondary text-foreground-strong"+ : "border-border bg-background hover:bg-muted",)}>{label}diff --git a/jarvis/ui/web/frontend/src/views/VoiceHubView.tsx b/jarvis/ui/web/frontend/src/views/VoiceHubView.tsxindex 0369121879..6540ba7edb 100644--- a/jarvis/ui/web/frontend/src/views/VoiceHubView.tsx+++ b/jarvis/ui/web/frontend/src/views/VoiceHubView.tsx@@ -50,8 +50,11 @@ export function VoiceHubView() {return (<div className="flex h-full flex-col">+ {/* --primary is a fill — buttons, marks, focus rings. A header glyph+ painted with it renders brighter than the title beside it, which is+ why every icon in this section is body ink. */}<ViewHeader- icon={<Mic className="h-4 w-4 text-primary" />}+ icon={<Mic className="h-4 w-4 text-foreground" />}title={t("nav.voice")}subtitle={t("voice.hub.subtitle")}/>diff --git a/jarvis/ui/web/frontend/src/views/WikiView.tsx b/jarvis/ui/web/frontend/src/views/WikiView.tsxindex 92d54a4291..f90acfb8fc 100644--- a/jarvis/ui/web/frontend/src/views/WikiView.tsx+++ b/jarvis/ui/web/frontend/src/views/WikiView.tsx@@ -280,7 +280,7 @@ export function WikiView(): JSX.Element {<div className="flex flex-1 items-center justify-center p-6"><divrole="alert"- className="max-w-md rounded-md border border-destructive/40 bg-destructive/10 px-4 py-3 text-sm text-destructive"+ className="max-w-reading text-body text-destructive"data-testid="wiki-tree-error">{t("wiki_view.load_error")}@@ -335,7 +335,7 @@ export function WikiView(): JSX.Element {{centreTab === "graph" && (<buttontype="button"- className="ml-auto mr-2 my-1.5 inline-flex items-center gap-1.5 self-center rounded-md border border-border bg-background/70 px-2.5 py-1.5 text-xs text-muted-foreground transition-colors hover:bg-secondary hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/60"+ className="ml-auto mr-2 my-1.5 inline-flex items-center gap-1.5 self-center rounded-md px-2.5 py-1.5 text-body text-muted-foreground transition-colors hover:bg-secondary hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-strong"onClick={() => setIsGraphExpanded((expanded) => !expanded)}aria-controls="wiki-workspace"aria-expanded={isGraphExpanded}@@ -386,7 +386,7 @@ export function WikiView(): JSX.Element {/>) : (<div- className="px-7 py-10 text-center text-sm text-muted-foreground"+ className="px-7 py-10 text-center text-body text-muted-foreground"data-testid="wiki-page-no-selection">{t("wiki_view.no_selection_hint")}@@ -402,12 +402,10 @@ export function WikiView(): JSX.Element {<BacklinksPanel slug={selectedSlug} onSelect={handleSelect} />) : (<aside- className="flex h-full w-[380px] shrink-0 flex-col border-l border-border p-4"+ className="flex h-full w-[380px] shrink-0 flex-col bg-sidebar p-4"data-testid="wiki-backlinks-placeholder">- <div className="rounded-lg border border-border bg-secondary/30 p-4 text-xs text-muted-foreground">- {t("wiki_view.backlinks_hint")}- </div>+ <p className="text-body text-muted-foreground">{t("wiki_view.backlinks_hint")}</p></aside>))}</div>@@ -415,7 +413,7 @@ export function WikiView(): JSX.Element {{toast && (<div- className="pointer-events-none fixed bottom-12 right-6 z-50 max-w-sm rounded-lg border border-border bg-card px-4 py-3 text-sm text-foreground"+ className="pointer-events-none fixed bottom-12 right-6 z-50 max-w-sm rounded-lg bg-popover px-4 py-3 text-body text-foreground shadow-float"data-testid="wiki-toast"role="status">@@ -428,11 +426,13 @@ export function WikiView(): JSX.Element {type WikiHealthVisual = "green" | "amber" | "red" | "unknown";+// The three status hues and nothing else. "unknown" is the ONLY state allowed+// to be neutral — an "ok" that renders dimmer than an "unknown" inverts the ramp.const HEALTH_DOT_STYLE: Record<WikiHealthVisual, string> = {- green: "bg-[#5bd4a4]",- amber: "bg-[#ffb84d]",+ green: "bg-success",+ amber: "bg-warning",red: "bg-destructive",- unknown: "bg-muted-foreground/40",+ unknown: "bg-faint-foreground",};function classifyWikiHealth(health: WikiHealthSnapshot): WikiHealthVisual {@@ -519,11 +519,11 @@ function WikiHealthStrip({if (isLoading) {return (<div- className="flex items-center gap-2 border-b border-border px-4 py-2 text-xs text-muted-foreground"+ className="flex items-center gap-2 border-b border-border px-4 py-2 text-meta text-muted-foreground"data-testid="wiki-health-strip"><span- className="h-2 w-2 shrink-0 animate-pulse rounded-full bg-muted-foreground/40"+ className="h-2 w-2 shrink-0 animate-pulse rounded-full bg-faint-foreground"data-testid="wiki-health-dot"data-visual="loading"aria-hidden@@ -536,11 +536,11 @@ function WikiHealthStrip({if (!health) {return (<div- className="flex items-center gap-2 border-b border-border px-4 py-2 text-xs text-muted-foreground"+ className="flex items-center gap-2 border-b border-border px-4 py-2 text-meta text-muted-foreground"data-testid="wiki-health-strip"><span- className="h-2 w-2 shrink-0 rounded-full bg-muted-foreground/40"+ className="h-2 w-2 shrink-0 rounded-full bg-faint-foreground"data-testid="wiki-health-dot"data-visual="unknown"aria-hidden@@ -558,7 +558,7 @@ function WikiHealthStrip({return (<div- className="flex flex-wrap items-center gap-x-3 gap-y-1 border-b border-border px-4 py-2 text-xs text-muted-foreground"+ className="flex flex-wrap items-center gap-x-3 gap-y-1 border-b border-border px-4 py-2 text-meta text-muted-foreground"data-testid="wiki-health-strip"><span@@ -580,7 +580,7 @@ function WikiHealthStrip({{health.journal_backlog > 0 && (<spandata-testid="wiki-health-backlog"- className="rounded-full border border-[#ffb84d]/40 bg-[#ffb84d]/10 px-1.5 py-0.5 text-[#ffb84d]"+ className="rounded-full bg-secondary px-2 py-0.5 text-warning">{t("wiki_health.backlog_count").replace("{0}",@@ -592,7 +592,7 @@ function WikiHealthStrip({<><spandata-testid="wiki-health-index-stale"- className="rounded-full border border-[#ffb84d]/40 bg-[#ffb84d]/10 px-1.5 py-0.5 text-[#ffb84d]"+ className="rounded-full bg-secondary px-2 py-0.5 text-warning">{t("wiki_health.index_stale").replace("{0}", String(health.indexed_pages))@@ -603,7 +603,7 @@ function WikiHealthStrip({onClick={onReindex}disabled={isReindexing}data-testid="wiki-health-reindex"- className="inline-flex items-center gap-1 rounded-md border border-border px-1.5 py-0.5 text-foreground hover:bg-muted disabled:opacity-50"+ className="inline-flex items-center gap-1 rounded-md bg-secondary px-2 py-0.5 text-foreground transition-colors hover:bg-popover disabled:opacity-50"><RefreshCw className={cn("h-3 w-3", isReindexing && "animate-spin")} />{t(isReindexing ? "wiki_health.reindexing" : "wiki_health.reindex")}@@ -612,7 +612,7 @@ function WikiHealthStrip({<spanrole="alert"data-testid="wiki-health-reindex-error"- className="font-medium text-destructive"+ className="text-destructive">{t("wiki_health.reindex_failed_detail").replace("{0}", reindexError)}</span>@@ -622,7 +622,7 @@ function WikiHealthStrip({{health.vault_legacy_conflict && (<spandata-testid="wiki-health-legacy-conflict"- className="rounded-full border border-[#ffb84d]/40 bg-[#ffb84d]/10 px-1.5 py-0.5 text-[#ffb84d]"+ className="rounded-full bg-secondary px-2 py-0.5 text-warning">{t("wiki_health.legacy_conflict")}</span>@@ -671,13 +671,13 @@ function WikiCaptureFunnelStrip({return (<sectionaria-label={t("wiki_health.capture_aria").replace("{0}", String(windowHours))}- className="flex flex-wrap items-center gap-x-3 gap-y-1 border-b border-border px-4 py-1.5 text-[11px]"+ className="flex flex-wrap items-center gap-x-3 gap-y-1 border-b border-border px-4 py-1.5 text-meta"data-testid="wiki-capture-funnel">- <span className="font-medium text-foreground">{windowLabel}</span>+ <span className="text-foreground">{windowLabel}</span>{errorText && (<span- className="font-medium text-destructive"+ className="text-destructive"data-testid="wiki-capture-error"role="alert">@@ -686,7 +686,7 @@ function WikiCaptureFunnelStrip({)}{!error && funnel.failed > 0 && (<span- className="font-medium text-destructive"+ className="text-destructive"data-testid="wiki-capture-failed-detail"role="status">@@ -709,10 +709,8 @@ function WikiCaptureFunnelStrip({<dt>{label}</dt><ddclassName={cn(- "font-medium",- key === "failed" && value > 0- ? "text-destructive"- : "text-foreground",+ "tabular-nums",+ key === "failed" && value > 0 ? "text-destructive" : "text-foreground",)}>{value}@@ -743,9 +741,9 @@ function TabButton({onClick={onClick}disabled={disabled}className={cn(- "flex items-center gap-1.5 border-b-2 px-4 py-2.5 text-xs transition-colors",+ "flex items-center gap-1.5 border-b-2 px-4 py-2.5 text-body transition-colors",active- ? "border-primary text-foreground"+ ? "border-primary text-foreground-strong": "border-transparent text-muted-foreground hover:text-foreground",disabled && "cursor-not-allowed opacity-50 hover:text-muted-foreground",)}@@ -764,23 +762,23 @@ function EmptyState() {return (<div className="flex flex-1 items-center justify-center p-6"><div- className="max-w-lg rounded-xl border border-dashed border-border/70 bg-card/30 px-8 py-10 text-center"+ className="max-w-form rounded-lg bg-card px-8 py-10 text-center shadow-rim"data-testid="wiki-empty-state"><Notebook className="mx-auto mb-3 h-8 w-8 text-muted-foreground" />- <h3 className="mb-2 text-base font-semibold text-foreground">+ <h3 className="mb-2 text-page font-semibold text-foreground-strong">{t("wiki_view.empty_title")}</h3>- <p className="mb-2 text-sm text-muted-foreground">+ <p className="mb-2 text-reading text-foreground">{t("wiki_view.empty_body_a")} {assistantName} {t("wiki_view.empty_body_b")}</p>- <p className="text-sm text-muted-foreground">+ <p className="text-reading text-muted-foreground">{t("wiki_view.manual_a")}{" "}- <code className="rounded bg-background px-1 py-0.5 font-mono text-[12px]">+ <code className="rounded-sm bg-secondary px-1 py-0.5 font-mono text-meta text-foreground">.md</code>{t("wiki_view.manual_b")}{" "}- <code className="rounded bg-background px-1 py-0.5 font-mono text-[12px]">+ <code className="rounded-sm bg-secondary px-1 py-0.5 font-mono text-meta text-foreground">wiki/obsidian-vault/entities/</code>{" "}{t("wiki_view.manual_c")}@@ -796,7 +794,7 @@ function GraphSkeleton() {className="flex h-full min-h-[400px] items-center justify-center p-6"data-testid="wiki-graph-skeleton">- <div className="h-full w-full max-w-3xl animate-pulse rounded-xl bg-muted/30" />+ <div className="h-full w-full max-w-page animate-pulse rounded-lg bg-sheen/[0.06]" /></div>);}diff --git a/jarvis/ui/web/frontend/src/views/automations/AutomationsPanel.tsx b/jarvis/ui/web/frontend/src/views/automations/AutomationsPanel.tsxindex 4f55d9cc06..a9c6187484 100644--- a/jarvis/ui/web/frontend/src/views/automations/AutomationsPanel.tsx+++ b/jarvis/ui/web/frontend/src/views/automations/AutomationsPanel.tsx@@ -11,6 +11,7 @@import { Fragment, useState } from "react";import { Loader2, MoreHorizontal, Play, Trash2 } from "lucide-react";import { Switch } from "@/components/ui/switch";+import { PanelSkeleton } from "@/components/layout/PanelSkeleton";import {ActionMenu,Cell,@@ -90,11 +91,22 @@ export function AutomationsPanel({{ id: "actions", label: t("automations_view.col_actions"), width: "36px", align: "right", srOnly: true },];- if (!loading && automations.length === 0) {+ // While the list is in flight the table would otherwise render its header+ // over nothing, which reads as "you have no automations" rather than as+ // "these are on their way". Real rows, real height, no content.+ if (loading) {+ return (+ <div className="px-3">+ <PanelSkeleton rows={4} rowHeight={54} label={t("automations_view.tab_automations")} />+ </div>+ );+ }++ if (automations.length === 0) {return (<EmptyRow><p>{t("automations_view.yours_empty")}</p>- <p className="mx-auto mt-1 max-w-md text-xs text-muted-foreground/80">+ <p className="mx-auto mt-1 max-w-md text-meta text-muted-foreground">{t("automations_view.yours_empty_hint")}</p><div className="mt-4 flex items-center justify-center gap-2">@@ -192,7 +204,9 @@ function AutomationRow({selected={open}ariaLabel={task.title || t("tasks_view.untitled")}className={cn(- highlighted && "bg-primary/5 ring-1 ring-inset ring-primary/40",+ // "I just added this one" — the row is lifted and ringed, the way a+ // focused row is, rather than washed in a --primary tint.+ highlighted && "bg-secondary ring-2 ring-inset ring-border-strong",paused && "opacity-70",)}>@@ -217,7 +231,7 @@ function AutomationRow({</Cell><Cell muted>{running ? (- <span className="text-primary">{t("tasks_view.running_now")}</span>+ <span className="text-success">{t("tasks_view.running_now")}</span>) : paused ? (<span>{stateLabels.paused}</span>) : (@@ -285,7 +299,7 @@ function AutomationSubline({ task, fallback }: { task: TaskSummary; fallback: stconst { data } = useTaskDetail(task.id, needsSpec);const text = fallback || firstLine(promptOfSpec(data?.spec));if (!text) return null;- return <span className="block truncate text-xs text-muted-foreground">{text}</span>;+ return <span className="block truncate text-meta text-muted-foreground">{text}</span>;}/** The one-question delete confirmation, in place under its row. */@@ -302,14 +316,14 @@ function ConfirmDeleteRow({return (<divrole="presentation"- className="flex items-center gap-2 border-b border-border/70 bg-destructive/5 px-3 py-2.5 text-sm last:border-b-0"+ className="flex items-center gap-2 border-b border-border bg-secondary px-3 py-2.5 text-body last:border-b-0">- <span className="flex-1 text-muted-foreground">{t("automations_view.delete_confirm")}</span>+ <span className="flex-1 text-foreground">{t("automations_view.delete_confirm")}</span><buttontype="button"disabled={busy}onClick={onConfirm}- className="inline-flex h-7 items-center gap-1.5 rounded-md bg-destructive px-3 text-xs font-medium text-destructive-foreground transition-colors hover:bg-destructive/90 disabled:opacity-50"+ className="inline-flex h-8 items-center gap-1.5 rounded-md bg-destructive px-3 text-body font-medium text-destructive-foreground transition-opacity hover:opacity-90 disabled:opacity-50">{busy && <Loader2 className="h-3.5 w-3.5 animate-spin" />}{t("tasks_view.delete")}@@ -328,29 +342,31 @@ function AutomationDetail({}) {const t = useT();const { data, isLoading, error } = useTaskDetail(taskId);+ // No fill of its own: the rows around it already answer to the pointer with+ // one, and a second resting surface here leaves them nowhere to travel to.if (isLoading) {return (- <div role="presentation" className="border-b border-border/70 bg-sheen/[0.03] px-4 py-3 text-xs text-muted-foreground last:border-b-0">- {t("tasks_view.loading_details")}+ <div role="presentation" className="border-b border-border px-4 py-4 last:border-b-0">+ <PanelSkeleton rows={3} rowHeight={28} label={t("tasks_view.loading_details")} /></div>);}if (error) {return (- <div role="presentation" className="border-b border-border/70 bg-sheen/[0.03] px-4 py-3 text-xs text-destructive last:border-b-0">+ <div role="presentation" className="border-b border-border px-4 py-3 text-body text-destructive last:border-b-0">{t("common.error")}: {(error as Error).message}</div>);}const steps = data?.steps ?? [];return (- <div role="presentation" className="space-y-3 border-b border-border/70 bg-sheen/[0.03] px-4 py-4 last:border-b-0">+ <div role="presentation" className="space-y-group border-b border-border px-4 py-4 last:border-b-0"><div>- <SectionLabel className="mb-1.5">{t("automations_view.latest_result")}</SectionLabel>+ <SectionLabel className="mb-stack">{t("automations_view.latest_result")}</SectionLabel><ResultText steps={steps} fallback={fallbackResult} /></div><div>- <SectionLabel className="mb-1.5">+ <SectionLabel className="mb-stack">{t("automations_view.timeline")} ({steps.length})</SectionLabel><StepTimeline steps={steps} />diff --git a/jarvis/ui/web/frontend/src/views/automations/CatalogueCard.tsx b/jarvis/ui/web/frontend/src/views/automations/CatalogueCard.tsxindex 6e93206cc6..b570c70c10 100644--- a/jarvis/ui/web/frontend/src/views/automations/CatalogueCard.tsx+++ b/jarvis/ui/web/frontend/src/views/automations/CatalogueCard.tsx@@ -10,7 +10,6 @@*/import { Check, Clock, Plus } from "lucide-react";import { fill, useT } from "@/i18n";-import { cn } from "@/lib/utils";import { templateIcon } from "./automationIcons";import { humanizeMissing, type AutomationTemplate } from "./automationsModel";import { IdentityGlyph } from "./shared";@@ -37,31 +36,32 @@ export function CatalogueCard({return (<articledata-testid={`catalogue-${template.key}`}- className={cn(- "card-outline flex min-h-[148px] flex-col p-4",- installed && "border-primary/40",- )}+ className="card-outline flex min-h-[148px] flex-col p-4 shadow-rim"><div className="flex items-start gap-3"><IdentityGlyph seed={template.key} className="h-9 w-9"><Icon className="h-4 w-4" /></IdentityGlyph><div className="min-w-0 flex-1">- <h3 className="truncate text-sm font-semibold text-foreground">{template.name}</h3>- <p className="mt-1 line-clamp-2 text-xs leading-relaxed text-muted-foreground">+ <h3 className="truncate text-title font-semibold text-foreground-strong">+ {template.name}+ </h3>+ <p className="mt-1 line-clamp-2 text-meta text-muted-foreground">{template.description}</p></div></div>+ {/* "needs Gmail" is a degraded state, not a headline: it used to be the+ brightest line on the card at --foreground. */}{needsSomething && (- <p className="mt-2 truncate text-[11px] text-foreground/90">+ <p className="mt-2 truncate text-micro text-warning">{fill(t("automations_view.needs"), { tools: humanizeMissing(template.missing) })}</p>)}<div className="mt-auto flex items-center gap-2 pt-3">- <span className="inline-flex min-w-0 items-center gap-1.5 text-[11px] text-muted-foreground">+ <span className="inline-flex min-w-0 items-center gap-1.5 text-micro text-muted-foreground"><Clock className="h-3 w-3 shrink-0" /><span className="truncate">{template.schedule_label}</span></span>@@ -71,7 +71,7 @@ export function CatalogueCard({type="button"onClick={() => onShowInstalled(installedTaskId)}title={t("automations_view.show_installed")}- className="inline-flex h-7 items-center gap-1.5 rounded-md border border-primary/40 px-2.5 text-xs font-medium text-primary transition-colors hover:bg-primary/10"+ className="inline-flex h-8 items-center gap-1.5 rounded-md bg-secondary px-2.5 text-meta font-medium text-foreground transition-colors hover:bg-popover"><Check className="h-3.5 w-3.5" />{t("automations_view.added")}@@ -80,7 +80,7 @@ export function CatalogueCard({<buttontype="button"onClick={() => onAdd(template)}- className="inline-flex h-7 items-center gap-1.5 rounded-md bg-sheen/[0.08] px-2.5 text-xs font-medium text-foreground transition-colors hover:bg-sheen/[0.16]"+ className="inline-flex h-8 items-center gap-1.5 rounded-md bg-secondary px-2.5 text-meta font-medium text-foreground transition-colors hover:bg-popover"><Plus className="h-3.5 w-3.5" />{t("automations_view.add")}diff --git a/jarvis/ui/web/frontend/src/views/automations/CataloguePanel.tsx b/jarvis/ui/web/frontend/src/views/automations/CataloguePanel.tsxindex bc06fe1098..26f1408623 100644--- a/jarvis/ui/web/frontend/src/views/automations/CataloguePanel.tsx+++ b/jarvis/ui/web/frontend/src/views/automations/CataloguePanel.tsx@@ -65,14 +65,14 @@ export function CataloguePanel({);return (- <div className="space-y-3">+ <div className="space-y-group"><SegmentedFilter<CategoryFilter>label={t("automations_view.category_label")}value={category}onChange={setCategory}options={options}/>- <div className="grid grid-cols-1 gap-3 sm:grid-cols-2 xl:grid-cols-3">+ <div className="grid grid-cols-1 gap-stack sm:grid-cols-2 xl:grid-cols-3">{category === "all" && <CustomTile onClick={onCreateCustom} />}{shown.map((tpl) => (<CatalogueCard@@ -88,7 +88,14 @@ export function CataloguePanel({);}-/** "Build your own" — the same size as a template card, drawn as an offer. */+/**+ * "Build your own" — the same size as a template card, drawn as an offer.+ *+ * A real card with a dashed rim (the one thing that says "not a template+ * yet"), lifting on hover like every other row in the app. The wand used to+ * be painted --primary inside a --primary-tinted tile, which made the ONE+ * tile in the grid that holds no automation the brightest object in it.+ */function CustomTile({ onClick }: { onClick: () => void }) {const t = useT();return (@@ -96,18 +103,18 @@ function CustomTile({ onClick }: { onClick: () => void }) {type="button"onClick={onClick}data-testid="catalogue-custom"- className="flex min-h-[148px] flex-col items-start gap-2 rounded-2xl border border-dashed border-border p-4 text-left transition-colors hover:border-primary/50 hover:bg-sheen/[0.04]"+ className="flex min-h-[148px] flex-col items-start gap-2 rounded-lg border border-dashed border-border-strong bg-card p-4 text-left shadow-rim transition-colors hover:bg-secondary">- <span className="grid h-9 w-9 place-items-center rounded-lg border border-primary/30 bg-primary/10">- <Wand2 className="h-4 w-4 text-primary" />+ <span className="grid h-9 w-9 place-items-center rounded-md bg-secondary">+ <Wand2 className="h-4 w-4 text-muted-foreground" /></span>- <span className="text-sm font-semibold text-foreground">+ <span className="text-title font-semibold text-foreground-strong">{t("automations_view.custom_title")}</span>- <span className="text-xs leading-relaxed text-muted-foreground">+ <span className="text-meta text-muted-foreground">{t("automations_view.custom_description")}</span>- <span className="mt-auto inline-flex items-center gap-1 text-xs font-medium text-primary">+ <span className="mt-auto inline-flex items-center gap-1 text-meta font-medium text-foreground"><Plus className="h-3.5 w-3.5" />{t("automations_view.new_button")}</span>diff --git a/jarvis/ui/web/frontend/src/views/automations/RunsPanel.tsx b/jarvis/ui/web/frontend/src/views/automations/RunsPanel.tsxindex 1757d3d6a2..d1afeaaef3 100644--- a/jarvis/ui/web/frontend/src/views/automations/RunsPanel.tsx+++ b/jarvis/ui/web/frontend/src/views/automations/RunsPanel.tsx@@ -9,6 +9,7 @@*/import { Fragment, useMemo, useState } from "react";import { Loader2, MoreHorizontal, Trash2, X } from "lucide-react";+import { PanelSkeleton } from "@/components/layout/PanelSkeleton";import {ActionMenu,Cell,@@ -98,7 +99,7 @@ export function RunsPanel({ tasks, filter, onNotice }: RunsPanelProps) {<span className="block truncate font-medium text-foreground">{run.title || t("tasks_view.untitled")}</span>- <span className="block truncate text-xs text-muted-foreground">+ <span className="block truncate text-meta text-muted-foreground">{stateLabels[state]}</span></span>@@ -108,7 +109,7 @@ export function RunsPanel({ tasks, filter, onNotice }: RunsPanelProps) {<spanclassName={cn("block truncate",- run.last_error && !run.last_result && "text-destructive/90",+ run.last_error && !run.last_result && "text-destructive",)}>{run.last_result || run.last_error || "—"}@@ -119,7 +120,7 @@ export function RunsPanel({ tasks, filter, onNotice }: RunsPanelProps) {run.finished_at_ns ?? run.started_at_ns ?? run.due_at_ns ?? run.created_at_ns,)}</Cell>- <Cell muted align="right" className="font-mono">+ <Cell muted align="right" className="font-mono tabular-nums">{duration ?? "—"}</Cell><Cell align="right" stop>@@ -195,29 +196,32 @@ export function RunsPanel({ tasks, filter, onNotice }: RunsPanelProps) {function RunDetail({ taskId, fallbackResult }: { taskId: string; fallbackResult?: string | null }) {const t = useT();const { data, isLoading, error } = useTaskDetail(taskId);+ // The opened row's detail. No fill of its own: the rows above and below+ // already answer to the pointer with one, and a second resting surface here+ // would give them nowhere left to travel to.if (isLoading) {return (- <div role="presentation" className="border-b border-border/70 bg-sheen/[0.03] px-4 py-3 text-xs text-muted-foreground last:border-b-0">- {t("tasks_view.loading_details")}+ <div role="presentation" className="border-b border-border px-4 py-4 last:border-b-0">+ <PanelSkeleton rows={3} rowHeight={28} label={t("tasks_view.loading_details")} /></div>);}if (error) {return (- <div role="presentation" className="border-b border-border/70 bg-sheen/[0.03] px-4 py-3 text-xs text-destructive last:border-b-0">+ <div role="presentation" className="border-b border-border px-4 py-3 text-body text-destructive last:border-b-0">{t("common.error")}: {(error as Error).message}</div>);}const steps = data?.steps ?? [];return (- <div role="presentation" className="space-y-3 border-b border-border/70 bg-sheen/[0.03] px-4 py-4 last:border-b-0">+ <div role="presentation" className="space-y-group border-b border-border px-4 py-4 last:border-b-0"><div>- <SectionLabel className="mb-1.5">{t("automations_view.result")}</SectionLabel>+ <SectionLabel className="mb-stack">{t("automations_view.result")}</SectionLabel><ResultText steps={steps} fallback={fallbackResult} /></div><div>- <SectionLabel className="mb-1.5">+ <SectionLabel className="mb-stack">{t("automations_view.timeline")} ({steps.length})</SectionLabel><StepTimeline steps={steps} />diff --git a/jarvis/ui/web/frontend/src/views/automations/SchedulesPanel.tsx b/jarvis/ui/web/frontend/src/views/automations/SchedulesPanel.tsxindex 7da9959200..578603cffd 100644--- a/jarvis/ui/web/frontend/src/views/automations/SchedulesPanel.tsx+++ b/jarvis/ui/web/frontend/src/views/automations/SchedulesPanel.tsx@@ -6,6 +6,7 @@* sorted forwards, with the moment written out and a countdown beside it.*/import { Loader2, MoreHorizontal, Play, Trash2 } from "lucide-react";+import { PanelSkeleton } from "@/components/layout/PanelSkeleton";import {ActionMenu,Cell,@@ -50,11 +51,21 @@ export function SchedulesPanel({{ id: "actions", label: t("automations_view.col_actions"), width: "36px", align: "right", srOnly: true },];- if (!loading && schedules.length === 0) {+ // Real rows at real height while the list is in flight — a bare table head+ // over nothing reads as "you have no schedules".+ if (loading) {+ return (+ <div className="px-3">+ <PanelSkeleton rows={3} rowHeight={54} label={t("automations_view.tab_schedules")} />+ </div>+ );+ }++ if (schedules.length === 0) {return (<EmptyRow><p>{t("automations_view.schedules_empty")}</p>- <p className="mx-auto mt-1 max-w-md text-xs text-muted-foreground/80">+ <p className="mx-auto mt-1 max-w-md text-meta text-muted-foreground">{t("automations_view.schedules_empty_hint")}</p><div className="mt-4 flex justify-center">diff --git a/jarvis/ui/web/frontend/src/views/automations/TemplateAddDialog.tsx b/jarvis/ui/web/frontend/src/views/automations/TemplateAddDialog.tsxindex e524283183..a2cbcfa49c 100644--- a/jarvis/ui/web/frontend/src/views/automations/TemplateAddDialog.tsx+++ b/jarvis/ui/web/frontend/src/views/automations/TemplateAddDialog.tsx@@ -20,9 +20,18 @@ import {} from "./automationsModel";import { SectionLabel } from "./shared";+/*+ * A field inside a dialog.+ *+ * The dialog IS the floating layer, so there is no surface left above it to+ * fill a field with — a child darker than its parent is the one nesting error+ * this system calls hard. So the field is described by a rim instead, the way+ * the composer is, and focus thickens that same rim rather than inventing a+ * third colour.+ */const inputCls =- "w-full rounded-lg border border-border bg-background/60 px-3 py-2 text-sm text-foreground " +- "placeholder:text-muted-foreground/60 focus:border-primary/60 focus:outline-none focus:ring-1 focus:ring-primary/40";+ "w-full rounded-md border border-border-strong bg-transparent px-3 py-2 text-body text-foreground " ++ "placeholder:text-faint-foreground focus:outline-none focus:ring-2 focus:ring-border-strong";const KINDS: ScheduleKind[] = ["hourly", "daily", "weekly"];@@ -89,19 +98,19 @@ export function TemplateAddDialog({ template, onClose, onAdded }: TemplateAddDia<divrole="dialog"aria-label={fill(t("automations_view.add_dialog_title"), { title: template.name })}- className="flex max-h-[90vh] w-full max-w-lg flex-col overflow-hidden rounded-2xl border border-border bg-card"+ className="flex max-h-[90vh] w-full max-w-lg flex-col overflow-hidden rounded-lg bg-popover shadow-float"onClick={(e) => e.stopPropagation()}><div className="flex items-center justify-between border-b border-border px-5 py-4"><div className="flex items-center gap-2.5">- <div className="flex h-8 w-8 items-center justify-center rounded-lg border border-primary/30 bg-primary/10">- <Icon className="h-4 w-4 text-primary" />- </div>+ <Icon className="h-5 w-5 shrink-0 text-muted-foreground" /><div className="min-w-0">- <h2 className="truncate text-sm font-semibold">+ <h2 className="truncate text-title font-semibold text-foreground-strong">{fill(t("automations_view.add_dialog_title"), { title: template.name })}</h2>- <p className="truncate text-[11px] text-muted-foreground">{template.description}</p>+ <p className="truncate text-meta text-muted-foreground">+ {template.description}+ </p></div></div><Button size="sm" variant="ghost" onClick={onClose} aria-label={t("tasks_view.create.cancel")}>@@ -110,9 +119,10 @@ export function TemplateAddDialog({ template, onClose, onAdded }: TemplateAddDia</div><div className="min-h-0 flex-1 overflow-y-auto scrollbar-jarvis">- <div className="space-y-4 px-5 py-4">+ <div className="space-y-group px-5 py-4">+ {/* Missing prerequisites are a degraded state, not a headline. */}{!template.ready && template.missing.length > 0 && (- <p className="flex items-start gap-1.5 rounded-lg border border-foreground/40 px-3 py-2 text-[11px] leading-relaxed text-foreground/90">+ <p className="flex items-start gap-1.5 rounded-md border border-border-strong px-3 py-2 text-meta text-warning"><AlertTriangle className="mt-0.5 h-3.5 w-3.5 shrink-0" />{fill(t("automations_view.needs_warning"), { tools: humanizeMissing(template.missing) })}</p>@@ -134,10 +144,12 @@ export function TemplateAddDialog({ template, onClose, onAdded }: TemplateAddDia<label key={input.key} className="block space-y-1.5"><SectionLabel>{input.label}- {input.required && <span className="ml-1 text-primary">*</span>}+ {input.required && (+ <span className="ml-1 text-muted-foreground">*</span>+ )}</SectionLabel><input- className={cn(inputCls, invalid && "border-destructive/70")}+ className={cn(inputCls, invalid && "border-destructive")}value={values[input.key] ?? ""}placeholder={input.placeholder || undefined}onChange={(e) => setValues((prev) => ({ ...prev, [input.key]: e.target.value }))}@@ -145,23 +157,30 @@ export function TemplateAddDialog({ template, onClose, onAdded }: TemplateAddDiamaxLength={2048}/>{invalid && (- <span className="text-[11px] text-destructive">{t("automations_view.required")}</span>+ <span className="text-meta text-destructive">+ {t("automations_view.required")}+ </span>)}</label>);})}- <div className="space-y-3 rounded-xl border border-border/70 p-4">+ <div className="space-y-stack rounded-lg border border-border p-4"><SectionLabel>{t("tasks_view.create.schedule_label")}</SectionLabel>- <div className="inline-flex rounded-lg border border-border p-0.5">+ {/* On the floating layer the surface ladder has run out, so the+ chosen segment is an --primary FILL (an active indicator, the+ one job that token has) rather than a fourth grey. */}+ <div className="inline-flex rounded-md border border-border-strong p-0.5">{KINDS.map((k) => (<buttonkey={k}type="button"onClick={() => setKind(k)}className={cn(- "rounded-md px-3 py-1.5 text-xs font-medium transition-colors",- kind === k ? "bg-primary/15 text-primary" : "text-muted-foreground hover:text-foreground",+ "rounded-md px-3 py-1.5 text-meta font-medium transition-colors",+ kind === k+ ? "bg-primary text-primary-foreground"+ : "text-muted-foreground hover:text-foreground",)}>{t(`automations_view.kind.${k}`)}@@ -182,7 +201,9 @@ export function TemplateAddDialog({ template, onClose, onAdded }: TemplateAddDia}))}/>)}- <span className="text-xs text-muted-foreground">{t("tasks_view.create.at")}</span>+ <span className="text-body text-muted-foreground">+ {t("tasks_view.create.at")}+ </span><inputtype="time"className={cn(inputCls, "w-32")}@@ -197,7 +218,9 @@ export function TemplateAddDialog({ template, onClose, onAdded }: TemplateAddDia</div><div className="flex items-center justify-end gap-2 border-t border-border px-5 py-3">- {errorText && <span className="mr-auto text-xs text-destructive">{errorText}</span>}+ {errorText && (+ <span className="mr-auto text-meta text-destructive">{errorText}</span>+ )}<Button variant="ghost" size="sm" onClick={onClose}>{t("tasks_view.create.cancel")}</Button>diff --git a/jarvis/ui/web/frontend/src/views/automations/shared.tsx b/jarvis/ui/web/frontend/src/views/automations/shared.tsxindex 9a377c0f07..868493cf9f 100644--- a/jarvis/ui/web/frontend/src/views/automations/shared.tsx+++ b/jarvis/ui/web/frontend/src/views/automations/shared.tsx@@ -1,9 +1,12 @@/*** Small building blocks shared by the Automations cards and the Runs tab:* the state dot, the live countdown, the schedule words, the step timeline- * and the readable result block. All colours come from theme tokens (plus- * the two semantic tailwind hues the rest of the app already uses for- * "good" and "attention"), so light mode keeps its ink-outline look.+ * and the readable result block.+ *+ * Every colour is a named token. Status is the only thing here that carries+ * hue, and it carries exactly three: life, degraded, fault. The one documented+ * exception is `identityTint`, which derives a stable avatar hue from a name —+ * an identity mark, never a state.*/import { useEffect, useMemo, useState, type ReactNode } from "react";import { useT } from "@/i18n";@@ -58,15 +61,23 @@ export function useStateLabels(): Record<TaskState, string> {);}+/**+ * The state ramp. Anything alive or finished well is `life`; anything that+ * needs a person is `degraded`; a failure is `fault`; and the three states+ * that mean "nothing is happening" recede to the faint step.+ *+ * `interrupted` used to be painted --foreground, which made the one state+ * nobody acts on the brightest mark in a list of running automations.+ */const DOT_CLASS: Record<TaskState, string> = {- pending: "bg-muted-foreground/50",+ pending: "bg-faint-foreground",scheduled: "bg-success",running: "bg-success animate-pulse",- paused: "bg-muted-foreground/50",+ paused: "bg-faint-foreground",completed: "bg-success",failed: "bg-destructive",- cancelled: "bg-muted-foreground/50",- interrupted: "bg-foreground",+ cancelled: "bg-faint-foreground",+ interrupted: "bg-warning",};/**@@ -201,12 +212,16 @@ export function ResultText({ steps, fallback }: { steps: TaskStep[] | undefined;const t = useT();const text = extractAgentResult(steps) ?? fallback ?? null;if (!text) {- return <p className="text-xs text-muted-foreground">{t("automations_view.no_result_yet")}</p>;+ return (+ <p className="text-body text-muted-foreground">+ {t("automations_view.no_result_yet")}+ </p>+ );}return (<divdata-testid="run-result"- className="whitespace-pre-wrap rounded-xl border border-border/70 bg-background/30 px-4 py-3 text-sm leading-relaxed text-foreground"+ className="max-w-reading whitespace-pre-wrap rounded-lg bg-secondary px-4 py-3 text-reading text-foreground">{text}</div>@@ -217,21 +232,23 @@ export function ResultText({ steps, fallback }: { steps: TaskStep[] | undefined;export function StepTimeline({ steps }: { steps: TaskStep[] }) {const t = useT();if (steps.length === 0) {- return <div className="text-xs text-muted-foreground">{t("tasks_view.no_steps")}</div>;+ return <div className="text-body text-muted-foreground">{t("tasks_view.no_steps")}</div>;}return (- <ol className="space-y-1">+ <ol>{steps.map((s) => (<likey={s.seq}- className="flex items-start gap-3 rounded-md border border-border/60 px-2.5 py-1.5 text-[11px]"+ className="flex items-start gap-3 rounded-md px-2.5 py-1.5 text-micro transition-colors hover:bg-secondary">- <span className="w-5 shrink-0 font-mono text-muted-foreground">{s.seq}</span>- <span className="w-20 shrink-0 text-primary">{s.kind}</span>+ <span className="w-5 shrink-0 font-mono tabular-nums text-muted-foreground">+ {s.seq}+ </span>+ <span className="w-20 shrink-0 text-foreground">{s.kind}</span><span className="min-w-0 flex-1 break-words text-muted-foreground">{summarizePayload(s.payload)}</span>- <span className="shrink-0 font-mono text-muted-foreground/70">+ <span className="shrink-0 font-mono tabular-nums text-muted-foreground">{formatWhen(s.timestamp_ns)}</span></li>@@ -240,10 +257,17 @@ export function StepTimeline({ steps }: { steps: TaskStep[] }) {);}-/** Section label — small caps, the way the rest of the app labels groups. */+/**+ * A group's name inside a panel.+ *+ * Was an 11px letter-spaced all-caps line — the construction that makes an+ * interface read as an admin panel, and the one this design system bans+ * outright. A group label is a title: sentence case, one weight up, in the+ * ink ceiling.+ */export function SectionLabel({ children, className }: { children: React.ReactNode; className?: string }) {return (- <div className={cn("text-[11px] font-medium uppercase tracking-wider text-muted-foreground", className)}>+ <div className={cn("text-title font-semibold text-foreground-strong", className)}>{children}</div>);diff --git a/jarvis/ui/web/frontend/src/views/contacts/ContactDetail.tsx b/jarvis/ui/web/frontend/src/views/contacts/ContactDetail.tsxindex 7d2d850c91..a38d667642 100644--- a/jarvis/ui/web/frontend/src/views/contacts/ContactDetail.tsx+++ b/jarvis/ui/web/frontend/src/views/contacts/ContactDetail.tsx@@ -22,8 +22,9 @@ import remarkGfm from "remark-gfm";import { useT } from "@/i18n";import { cn } from "@/lib/utils";import { useEventStore } from "@/store/events";+import { IdentityAvatar } from "@/components/identity/IdentityAvatar";+import { PROSE_BASE } from "@/components/outputs/MarkdownProse";import { relationshipLabel } from "./constants";-import { contactAvatarStyle, contactInitials } from "./avatar";import { updateContact, type Contact } from "./api";/**@@ -130,7 +131,7 @@ export function ContactDetail({}return (- <div className="flex h-full flex-col overflow-y-auto scrollbar-jarvis">+ <div className="flex h-full flex-col overflow-y-auto bg-background scrollbar-jarvis"><div className="border-b border-border p-6"><div className="flex items-start gap-4">{onBack && (@@ -138,36 +139,30 @@ export function ContactDetail({type="button"onClick={onBack}aria-label={t("contacts.back")}- className="mt-1 shrink-0 rounded-md border border-border p-1.5 text-muted-foreground hover:border-primary/40 hover:text-foreground"+ className="mt-1 shrink-0 rounded-md p-1.5 text-muted-foreground transition-colors hover:bg-secondary hover:text-foreground"><ArrowLeft className="h-4 w-4" /></button>)}- <span- aria-hidden- style={contactAvatarStyle(contact.name)}- className="flex h-14 w-14 shrink-0 items-center justify-center rounded-full text-xl font-semibold"- >- {contactInitials(contact.name)}- </span>+ <IdentityAvatar name={contact.name} size="lg" /><div className="min-w-0 flex-1">- <h3 className="font-display text-lg font-semibold tracking-tight">{contact.name}</h3>- {orgLine && (- <p className="truncate text-xs text-muted-foreground">{orgLine}</p>- )}+ <h3 className="font-display text-page font-semibold text-foreground-strong">+ {contact.name}+ </h3>+ {orgLine && <p className="truncate text-meta text-muted-foreground">{orgLine}</p>}{contact.aliases.length > 0 && (- <p className="truncate text-xs text-muted-foreground">+ <p className="truncate text-meta text-muted-foreground">{t("contacts.aliases")}: {contact.aliases.join(", ")}</p>)}<div className="mt-1 flex flex-wrap items-center gap-2">{rel && (- <span className="inline-block rounded-full bg-primary/15 px-2 py-0.5 text-[11px] font-medium text-primary">+ <span className="inline-block rounded-full bg-secondary px-2 py-0.5 text-micro text-muted-foreground">{rel}</span>)}{updated && (- <span className="text-[11px] text-muted-foreground">+ <span className="text-meta text-muted-foreground">{t("contacts.lastUpdated")}: {updated}</span>)}@@ -181,10 +176,10 @@ export function ContactDetail({title={t("contacts.favorite")}disabled={togglingFav}className={cn(- "rounded-md border border-border p-1.5 transition-colors disabled:opacity-50",+ "rounded-md p-1.5 transition-colors disabled:opacity-50",contact.favorite- ? "border-primary/40 text-primary"- : "text-muted-foreground hover:border-primary/40 hover:text-foreground",+ ? "bg-secondary text-foreground-strong"+ : "text-muted-foreground hover:bg-secondary hover:text-foreground",)}><Star className={cn("h-3.5 w-3.5", contact.favorite && "fill-current")} />@@ -193,7 +188,7 @@ export function ContactDetail({type="button"onClick={onEdit}aria-label={t("contacts.edit")}- className="inline-flex items-center gap-1.5 rounded-md border border-border px-2.5 py-1.5 text-xs text-muted-foreground transition-colors hover:border-primary/40 hover:text-foreground"+ className="inline-flex items-center gap-1.5 rounded-md px-2.5 py-1.5 text-body text-muted-foreground transition-colors hover:bg-secondary hover:text-foreground"><Pencil className="h-3.5 w-3.5" />{t("contacts.edit")}@@ -202,7 +197,7 @@ export function ContactDetail({type="button"onClick={onDelete}aria-label={t("contacts.delete")}- className="inline-flex items-center gap-1.5 rounded-md border border-border px-2.5 py-1.5 text-xs text-muted-foreground transition-colors hover:border-destructive/50 hover:text-destructive"+ className="inline-flex items-center gap-1.5 rounded-md px-2.5 py-1.5 text-body text-muted-foreground transition-colors hover:bg-secondary hover:text-destructive"><Trash2 className="h-3.5 w-3.5" />{t("contacts.delete")}@@ -216,7 +211,7 @@ export function ContactDetail({<buttontype="button"onClick={() => setConfirmCall(callPhone)}- className="inline-flex items-center gap-1.5 rounded-md border border-primary/40 bg-primary/10 px-3 py-1.5 text-xs font-medium text-primary hover:bg-primary/20"+ className="inline-flex items-center gap-1.5 rounded-md bg-primary px-3 py-1.5 text-body font-medium text-primary-foreground transition-opacity hover:opacity-90"><PhoneCall className="h-3.5 w-3.5" />{t("contacts.call")}@@ -225,7 +220,7 @@ export function ContactDetail({<buttontype="button"onClick={() => requestWikiPage(contact.slug)}- className="inline-flex items-center gap-1.5 rounded-md border border-border px-3 py-1.5 text-xs text-muted-foreground hover:border-primary/40 hover:text-foreground"+ className="inline-flex items-center gap-1.5 rounded-md bg-secondary px-3 py-1.5 text-body text-foreground transition-colors hover:bg-popover"><BookOpen className="h-3.5 w-3.5" />{t("contacts.openWiki")}@@ -233,7 +228,7 @@ export function ContactDetail({</div></div>- <div className="space-y-6 p-6">+ <div className="max-w-reading space-y-group p-6">{contact.emails.length > 0 && (<Field icon={<Mail className="h-4 w-4" />} label={t("contacts.emails")}><ul className="space-y-1">@@ -241,7 +236,7 @@ export function ContactDetail({<li key={e} className="flex items-center gap-1.5"><ahref={`mailto:${e}`}- className="text-sm text-primary hover:underline"+ className="text-body text-foreground underline decoration-border-strong underline-offset-2 hover:decoration-foreground">{e}</a>@@ -257,7 +252,7 @@ export function ContactDetail({<ul className="space-y-1">{contact.phones.map((p) => (<li key={p} className="flex items-center gap-1.5">- <a href={`tel:${p}`} className="text-sm text-primary hover:underline">+ <a href={`tel:${p}`} className="text-body text-foreground underline decoration-border-strong underline-offset-2 hover:decoration-foreground">{p}</a><CopyButton value={p} label={t("contacts.copy")} />@@ -269,7 +264,7 @@ export function ContactDetail({{contact.birthday && (<Field icon={<Cake className="h-4 w-4" />} label={t("contacts.birthday")}>- <p className="text-sm text-foreground">{formatBirthday(contact.birthday)}</p>+ <p className="text-body text-foreground">{formatBirthday(contact.birthday)}</p></Field>)}@@ -282,7 +277,7 @@ export function ContactDetail({href={u.includes("://") ? u : `https://${u}`}target="_blank"rel="noreferrer"- className="truncate text-sm text-primary hover:underline"+ className="truncate text-body text-foreground underline decoration-border-strong underline-offset-2 hover:decoration-foreground">{u}</a>@@ -296,7 +291,7 @@ export function ContactDetail({{addr && (<Field icon={<MapPin className="h-4 w-4" />} label={t("contacts.address")}><div className="flex items-start gap-1.5">- <p className="whitespace-pre-line text-sm text-foreground">{addr}</p>+ <p className="whitespace-pre-line text-body text-foreground">{addr}</p><CopyButton value={addr.replace(/\n/g, ", ")} label={t("contacts.copy")} /></div></Field>@@ -308,7 +303,7 @@ export function ContactDetail({{contact.tags.map((tag) => (<spankey={tag}- className="rounded-full border border-border px-2 py-0.5 text-xs text-muted-foreground"+ className="rounded-full bg-secondary px-2 py-0.5 text-meta text-muted-foreground">#{tag}</span>@@ -319,7 +314,11 @@ export function ContactDetail({{contact.note.trim() && (<Field label={t("contacts.readme")}>- <article className="prose prose-neutral max-w-none text-sm dark:prose-invert prose-a:text-primary prose-code:text-foreground prose-pre:border prose-pre:border-border prose-pre:bg-card/80">+ <article className={cn(+ PROSE_BASE,+ "max-w-reading text-reading text-foreground",+ "prose-headings:text-foreground-strong prose-p:text-foreground prose-li:text-foreground",+ )}><ReactMarkdown remarkPlugins={[remarkGfm]}>{contact.note.trim()}</ReactMarkdown></article></Field>@@ -332,24 +331,24 @@ export function ContactDetail({onClick={() => !calling && setConfirmCall(null)}><div- className="w-full max-w-sm rounded-xl border border-border bg-card p-6"+ className="w-full max-w-sm rounded-lg bg-popover p-6 shadow-float"onClick={(e) => e.stopPropagation()}>- <h3 className="font-display text-base font-semibold">+ <h3 className="font-display text-page font-semibold text-foreground-strong">{t("contacts.callTitle")}</h3>- <p className="mt-2 text-sm text-muted-foreground">+ <p className="mt-2 text-body text-foreground">{t("contacts.callConfirm").replace("{0}", contact.name).replace("{1}", confirmCall)}</p>- <p className="mt-1 text-xs text-muted-foreground">{t("contacts.callNote")}</p>+ <p className="mt-1 text-meta text-muted-foreground">{t("contacts.callNote")}</p><div className="mt-5 flex justify-end gap-2"><buttontype="button"disabled={calling}onClick={() => setConfirmCall(null)}- className="rounded-md border border-border px-3 py-1.5 text-xs text-muted-foreground hover:text-foreground disabled:opacity-50"+ className="rounded-md px-3 py-1.5 text-body text-muted-foreground transition-colors hover:bg-secondary hover:text-foreground disabled:opacity-50">{t("contacts.cancel")}</button>@@ -357,7 +356,7 @@ export function ContactDetail({type="button"disabled={calling}onClick={() => void placeCall(confirmCall)}- className="inline-flex items-center gap-2 rounded-md border border-primary/40 bg-primary/10 px-3 py-1.5 text-xs font-medium text-primary hover:bg-primary/20 disabled:opacity-50"+ className="inline-flex items-center gap-2 rounded-md bg-primary px-3 py-1.5 text-body font-medium text-primary-foreground transition-opacity hover:opacity-90 disabled:opacity-50">{calling && <Loader2 className="h-3 w-3 animate-spin" />}{t("contacts.call")}@@ -384,10 +383,10 @@ function CopyButton({ value, label }: { value: string; label: string }) {window.setTimeout(() => setCopied(false), 1500);});}}- className="rounded p-1 text-muted-foreground/60 transition-colors hover:bg-background/60 hover:text-foreground"+ className="rounded-md p-1 text-muted-foreground transition-colors hover:bg-secondary hover:text-foreground">{copied ? (- <Check className="h-3.5 w-3.5 text-primary" />+ <Check className="h-3.5 w-3.5 text-success" />) : (<Copy className="h-3.5 w-3.5" />)}@@ -404,9 +403,12 @@ function Field({label: string;children: React.ReactNode;}) {+ // Was a 10px all-caps label — below the type floor and the exact+ // construction that makes a screen read as an admin form. It is now a plain+ // meta label, and the 32px between fields does the separating.return (<section>- <div className="mb-1.5 flex items-center gap-2 text-[10px] uppercase tracking-wider text-muted-foreground">+ <div className="mb-1.5 flex items-center gap-2 text-meta text-muted-foreground">{icon}{label}</div>diff --git a/jarvis/ui/web/frontend/src/views/contacts/ContactEditDialog.tsx b/jarvis/ui/web/frontend/src/views/contacts/ContactEditDialog.tsxindex 3511f8485d..e4299e3a8c 100644--- a/jarvis/ui/web/frontend/src/views/contacts/ContactEditDialog.tsx+++ b/jarvis/ui/web/frontend/src/views/contacts/ContactEditDialog.tsx@@ -184,7 +184,7 @@ export function ContactEditDialog({onClick={requestClose}><div- className="max-h-[90vh] w-full max-w-lg overflow-y-auto scrollbar-jarvis rounded-xl border border-border bg-card p-6"+ className="max-h-[90vh] w-full max-w-lg overflow-y-auto scrollbar-jarvis rounded-lg bg-popover shadow-float p-6"onClick={(e) => e.stopPropagation()}><header className="mb-4 flex items-center gap-3">@@ -368,7 +368,7 @@ export function ContactEditDialog({type="button"onClick={() => void handleSave()}disabled={saving || hasInvalidField}- className="inline-flex items-center gap-2 rounded-md border border-primary/40 bg-primary/10 px-3 py-1.5 text-xs font-medium text-primary hover:bg-primary/20 disabled:opacity-50"+ className="inline-flex items-center gap-2 rounded-md bg-primary px-3 py-1.5 text-body font-medium text-primary-foreground transition-opacity hover:opacity-90 disabled:opacity-50">{saving && <Loader2 className="h-3 w-3 animate-spin" />}{t("contacts.save")}@@ -381,7 +381,7 @@ export function ContactEditDialog({className="fixed inset-0 z-[60] flex items-center justify-center bg-scrim/60 backdrop-blur-sm"onClick={(e) => e.stopPropagation()}>- <div className="w-full max-w-xs rounded-xl border border-border bg-card p-5">+ <div className="w-full max-w-xs rounded-lg bg-popover shadow-float p-5"><h4 className="font-display text-sm font-semibold">{t("contacts.discardTitle")}</h4>@@ -413,12 +413,12 @@ export function ContactEditDialog({}const inputClass =- "w-full rounded-md border border-border bg-background/40 px-3 py-1.5 text-sm outline-none focus:border-primary/40";+ "w-full rounded-md bg-input px-3 py-1.5 text-body text-foreground outline-none placeholder:text-faint-foreground focus:ring-2 focus:ring-border-strong";function Labeled({ label, children }: { label: string; children: React.ReactNode }) {return (<label className="block space-y-1">- <span className="text-[10px] uppercase tracking-wider text-muted-foreground">+ <span className="text-meta text-muted-foreground">{label}</span>{children}@@ -454,7 +454,7 @@ function ChipsField({}return (<div className="space-y-1">- <span className="text-[10px] uppercase tracking-wider text-muted-foreground">+ <span className="text-meta text-muted-foreground">{label}</span><div@@ -466,14 +466,14 @@ function ChipsField({{values.map((value) => (<spankey={value}- className="inline-flex items-center gap-1 rounded-full bg-primary/15 px-2 py-0.5 text-xs text-primary"+ className="inline-flex items-center gap-1 rounded-full bg-secondary px-2 py-0.5 text-meta text-foreground">{value}<buttontype="button"aria-label={`${removeLabel} ${value}`}onClick={() => onChange(values.filter((v) => v !== value))}- className="text-primary/70 hover:text-primary"+ className="text-muted-foreground hover:text-destructive"><X className="h-3 w-3" /></button>@@ -537,7 +537,7 @@ function ListField({}) {return (<div className="space-y-1">- <span className="text-[10px] uppercase tracking-wider text-muted-foreground">+ <span className="text-meta text-muted-foreground">{label}</span><div className="space-y-2">@@ -568,9 +568,9 @@ function ListField({</button></div>{errors?.[i] ? (- <p className="mt-0.5 text-[11px] text-destructive">{errors[i]}</p>+ <p className="mt-0.5 text-meta text-destructive">{errors[i]}</p>) : hints?.[i] ? (- <p className="mt-0.5 text-[11px] text-muted-foreground">{hints[i]}</p>+ <p className="mt-0.5 text-meta text-muted-foreground">{hints[i]}</p>) : null}</div>))}diff --git a/jarvis/ui/web/frontend/src/views/contacts/ContactRow.tsx b/jarvis/ui/web/frontend/src/views/contacts/ContactRow.tsxindex 050e8c775a..1c5db3b720 100644--- a/jarvis/ui/web/frontend/src/views/contacts/ContactRow.tsx+++ b/jarvis/ui/web/frontend/src/views/contacts/ContactRow.tsx@@ -2,8 +2,8 @@ import { Star } from "lucide-react";import { cn } from "@/lib/utils";import { useT } from "@/i18n";+import { IdentityAvatar } from "@/components/identity/IdentityAvatar";import { relationshipLabel } from "./constants";-import { contactAvatarStyle, contactInitials } from "./avatar";import type { ContactSummary } from "./api";/** One row in the master (left) list of the Contacts master–detail view. */@@ -21,34 +21,36 @@ export function ContactRow({const subtitle = contact.primary_email ?? contact.primary_phone ?? "";return (<li>+ {/* Selection is a full-width fill on the whole row, one step UP the+ ladder. The old pair — a --background fill (darker than the rail it+ sits in) plus a hover that darkened further — inverted both rules. */}<buttontype="button"onClick={onClick}className={cn(- "group flex w-full items-center gap-3 rounded-lg px-3 py-2 text-left transition-colors",- active- ? "bg-background text-foreground shadow-[inset_2px_0_0_hsl(var(--primary))]"- : "text-muted-foreground hover:bg-background/60 hover:text-foreground",+ "group flex w-full items-center gap-row rounded-md px-3 py-2 text-left transition-colors",+ active ? "bg-secondary" : "hover:bg-secondary",)}>- <span- aria-hidden- style={contactAvatarStyle(contact.name)}- className="flex h-8 w-8 shrink-0 items-center justify-center rounded-full text-xs font-semibold"- >- {contactInitials(contact.name)}- </span>+ <IdentityAvatar name={contact.name} /><span className="flex min-w-0 flex-1 flex-col">- <span className="truncate text-sm font-medium text-foreground">{contact.name}</span>+ <span+ className={cn(+ "truncate text-body",+ active ? "text-foreground-strong" : "text-foreground",+ )}+ >+ {contact.name}+ </span>{subtitle && (- <span className="truncate text-xs text-muted-foreground">{subtitle}</span>+ <span className="truncate text-meta text-muted-foreground">{subtitle}</span>)}</span>{contact.favorite && (- <Star aria-hidden className="h-3 w-3 shrink-0 fill-current text-primary/70" />+ <Star aria-hidden className="h-3.5 w-3.5 shrink-0 fill-current text-foreground" />)}{rel && (- <span className="rounded-full bg-primary/15 px-2 py-0.5 text-[10px] font-medium text-primary">+ <span className="rounded-full bg-popover px-2 py-0.5 text-micro text-muted-foreground">{rel}</span>)}diff --git a/jarvis/ui/web/frontend/src/views/contacts/ContactsView.tsx b/jarvis/ui/web/frontend/src/views/contacts/ContactsView.tsxindex 9151058d08..de181c0199 100644--- a/jarvis/ui/web/frontend/src/views/contacts/ContactsView.tsx+++ b/jarvis/ui/web/frontend/src/views/contacts/ContactsView.tsx@@ -273,7 +273,7 @@ export function ContactsView() {return (<div ref={rootRef} className="flex h-full flex-col"><ViewHeader- icon={<ContactIcon className="h-4 w-4 text-primary" />}+ icon={<ContactIcon className="h-4 w-4" />}title={t("nav.contacts")}subtitle={t("contacts.subtitle")}right={@@ -295,7 +295,7 @@ export function ContactsView() {disabled={importing}aria-label={t("contacts.import")}title={t("contacts.import")}- className="rounded-md border border-border p-1.5 text-muted-foreground hover:border-primary/40 hover:text-foreground disabled:opacity-50"+ className="rounded-md p-1.5 text-muted-foreground transition-colors hover:bg-secondary hover:text-foreground disabled:opacity-50">{importing ? (<Loader2 className="h-3.5 w-3.5 animate-spin" />@@ -309,14 +309,17 @@ export function ContactsView() {disabled={!hasContacts}aria-label={t("contacts.export")}title={t("contacts.export")}- className="rounded-md border border-border p-1.5 text-muted-foreground hover:border-primary/40 hover:text-foreground disabled:opacity-50"+ className="rounded-md p-1.5 text-muted-foreground transition-colors hover:bg-secondary hover:text-foreground disabled:opacity-50"><Download className="h-3.5 w-3.5" /></button>+ {/* --primary is a fill, so the one affirmative action on this+ screen is a filled button rather than primary-coloured text on+ a primary-coloured wash. */}<buttontype="button"onClick={() => setDialog("create")}- className="inline-flex items-center gap-1.5 rounded-md border border-primary/40 bg-primary/10 px-3 py-1.5 text-xs font-medium text-primary hover:bg-primary/20"+ className="inline-flex items-center gap-1.5 rounded-md bg-primary px-3 py-1.5 text-body font-medium text-primary-foreground transition-opacity hover:opacity-90"><Plus className="h-3.5 w-3.5" />{t("contacts.add")}@@ -328,20 +331,21 @@ export function ContactsView() {<div className="flex min-h-0 flex-1">{/* Master list */}{showList && (+ // A standing column the full height of the section: far too wide to+ // earn --card, so it separates from the detail pane by taking the+ // rail's own ground. The hairline it used to rely on was the "three+ // columns separated by nothing" complaint.<div- className={cn(- "flex shrink-0 flex-col",- narrow ? "w-full" : "w-[320px] border-r border-border",- )}+ className={cn("flex shrink-0 flex-col bg-sidebar", narrow ? "w-full" : "w-[320px]")}>- <div className="space-y-2 border-b border-border p-3">- <div className="flex items-center gap-2 rounded-md border border-border bg-background/40 px-2.5 py-1.5">+ <div className="space-y-stack border-b border-border p-3">+ <div className="flex items-center gap-2 rounded-md bg-secondary px-2.5 py-1.5"><Search className="h-3.5 w-3.5 text-muted-foreground" /><inputvalue={query}onChange={(e) => setQuery(e.target.value)}placeholder={t("contacts.search")}- className="w-full bg-transparent text-sm outline-none placeholder:text-muted-foreground/60"+ className="w-full bg-transparent text-body text-foreground outline-none placeholder:text-faint-foreground"/></div>{hasContacts && (@@ -384,38 +388,49 @@ export function ContactsView() {</div><nav className="flex-1 overflow-y-auto scrollbar-jarvis p-2">{loading ? (- <div className="flex items-center justify-center py-10 text-muted-foreground">- <Loader2 className="h-5 w-5 animate-spin" />- </div>+ // Real rows at real height, not a spinner in a void.+ <ul className="space-y-1 p-1" aria-busy="true" role="status">+ {[0, 1, 2, 3, 4, 5].map((i) => (+ <li key={i} className="flex items-center gap-row px-3 py-2">+ <div className="h-9 w-9 shrink-0 animate-pulse rounded-full bg-sheen/[0.06]" />+ <div className="min-w-0 flex-1 space-y-1.5">+ <div className="h-3 w-2/5 animate-pulse rounded-full bg-sheen/[0.06]" />+ <div className="h-2.5 w-3/5 animate-pulse rounded-full bg-sheen/[0.06]" />+ </div>+ </li>+ ))}+ </ul>) : error ? (- <p className="px-3 py-6 text-center text-sm text-destructive">{error}</p>+ <p className="px-3 py-6 text-center text-body text-destructive">{error}</p>) : !hasContacts ? (<div className="flex flex-col items-center gap-3 px-3 py-8 text-center">- <ContactIcon className="h-8 w-8 text-muted-foreground/40" />- <p className="text-sm text-muted-foreground">{t("contacts.empty")}</p>+ <ContactIcon className="h-8 w-8 text-muted-foreground" />+ <p className="text-body text-foreground">{t("contacts.empty")}</p><buttontype="button"onClick={() => setDialog("create")}- className="inline-flex items-center gap-1.5 rounded-md border border-primary/40 bg-primary/10 px-3 py-1.5 text-xs font-medium text-primary hover:bg-primary/20"+ className="inline-flex items-center gap-1.5 rounded-md bg-primary px-3 py-1.5 text-body font-medium text-primary-foreground transition-opacity hover:opacity-90"><Plus className="h-3.5 w-3.5" />{t("contacts.add")}</button>- <p className="flex items-start gap-1.5 text-xs text-muted-foreground/80">+ <p className="flex items-start gap-1.5 text-meta text-muted-foreground"><Mic className="mt-0.5 h-3.5 w-3.5 shrink-0" />{t("contacts.voiceHint")}</p></div>) : filtered.length === 0 ? (- <p className="px-3 py-6 text-center text-sm text-muted-foreground">+ <p className="px-3 py-6 text-center text-body text-muted-foreground">{t("contacts.noMatches")}</p>) : (- <div className="space-y-1">+ <div className="space-y-stack">{groups.map((group) => (<div key={group.key}>- <div className="flex items-center gap-1 px-3 pb-0.5 pt-2 text-[10px] font-semibold uppercase tracking-wider text-muted-foreground/70">- {group.starred && <Star className="h-3 w-3 fill-current text-primary/70" />}+ <div className="flex items-center gap-1 px-3 pb-1 pt-2 text-meta text-muted-foreground">+ {group.starred && (+ <Star className="h-3 w-3 fill-current text-foreground" />+ )}{group.label}</div><ul className="space-y-0.5">@@ -451,9 +466,9 @@ export function ContactsView() {}}/>) : (- <div className="flex h-full flex-col items-center justify-center gap-3 text-center text-muted-foreground">- <ContactIcon className="h-8 w-8 text-muted-foreground/40" />- <p className="text-sm">{t("contacts.selectHint")}</p>+ <div className="flex h-full flex-col items-center justify-center gap-3 bg-background text-center text-muted-foreground">+ <ContactIcon className="h-8 w-8" />+ <p className="text-body">{t("contacts.selectHint")}</p></div>)}</div>@@ -474,27 +489,27 @@ export function ContactsView() {onClick={() => setConfirmingDelete(false)}><div- className="w-full max-w-sm rounded-xl border border-border bg-card p-6"+ className="w-full max-w-sm rounded-lg bg-popover shadow-float p-6"onClick={(e) => e.stopPropagation()}>- <h3 className="font-display text-base font-semibold">+ <h3 className="font-display text-page font-semibold text-foreground-strong">{t("contacts.deleteTitle")}</h3>- <p className="mt-2 text-sm text-muted-foreground">+ <p className="mt-2 text-body text-foreground">{t("contacts.deleteConfirm")} <strong>{selected.name}</strong>?</p><div className="mt-5 flex justify-end gap-2"><buttontype="button"onClick={() => setConfirmingDelete(false)}- className="rounded-md border border-border px-3 py-1.5 text-xs text-muted-foreground hover:text-foreground"+ className="rounded-md px-3 py-1.5 text-body text-muted-foreground transition-colors hover:bg-secondary hover:text-foreground">{t("contacts.cancel")}</button><buttontype="button"onClick={() => void handleConfirmDelete()}- className="rounded-md border border-destructive/50 bg-destructive/10 px-3 py-1.5 text-xs font-medium text-destructive hover:bg-destructive/20"+ className="rounded-md bg-destructive px-3 py-1.5 text-body font-medium text-destructive-foreground transition-opacity hover:opacity-90">{t("contacts.delete")}</button>@@ -520,10 +535,10 @@ function FilterChip({type="button"onClick={onClick}className={cn(- "rounded-full border px-2 py-0.5 text-[10px] font-medium transition-colors",+ "rounded-full px-2.5 py-0.5 text-micro font-medium transition-colors",active- ? "border-primary/40 bg-primary/15 text-primary"- : "border-border text-muted-foreground hover:border-primary/30 hover:text-foreground",+ ? "bg-primary text-primary-foreground"+ : "bg-secondary text-muted-foreground hover:text-foreground",)}>{label}diff --git a/jarvis/ui/web/frontend/src/views/contacts/avatar.ts b/jarvis/ui/web/frontend/src/views/contacts/avatar.tsindex 536ffe336a..d5d9e5868c 100644--- a/jarvis/ui/web/frontend/src/views/contacts/avatar.ts+++ b/jarvis/ui/web/frontend/src/views/contacts/avatar.ts@@ -1,32 +1,13 @@/**- * Deterministic identity color + initials for contact avatars.+ * Contacts' view of the shared identity mark.*- * Same name → same hue, every session: the color carries recognition, not- * meaning. A solid mid-lightness background with a white glyph stays readable- * on both themes, so no per-theme variant is needed.+ * The implementation moved to `@/lib/identityAvatar` when the coloured avatar+ * became the app-wide rule (Design.md: colour has three jobs — life, fault,+ * identity) rather than a Contacts-only flourish. These aliases stay so the+ * Contacts call sites keep reading in their own vocabulary; there is exactly+ * one hash, so a person is the same colour everywhere.*/-import type { CSSProperties } from "react";--/** Stable djb2-xor string hash — platform-independent, no Math.random. */-function hashString(value: string): number {- let hash = 5381;- for (let i = 0; i < value.length; i++) {- hash = (Math.imul(hash, 33) ^ value.charCodeAt(i)) >>> 0;- }- return hash;-}--/** Up to two initials: first letter of the first and of the last word. */-export function contactInitials(name: string): string {- const words = name.trim().split(/\s+/).filter(Boolean);- if (words.length === 0) return "?";- const first = words[0]![0]!;- const last = words.length > 1 ? words[words.length - 1]![0]! : "";- return (first + last).toUpperCase();-}--/** Inline style for the avatar circle: hue from the name, fixed S/L. */-export function contactAvatarStyle(name: string): CSSProperties {- const hue = hashString(name.trim().toLowerCase()) % 360;- return { backgroundColor: `hsl(${hue} 42% 46%)`, color: "#fff" };-}+export {+ identityAvatarStyle as contactAvatarStyle,+ identityInitials as contactInitials,+} from "@/lib/identityAvatar";diff --git a/jarvis/ui/web/frontend/src/views/friends/ChatTab.tsx b/jarvis/ui/web/frontend/src/views/friends/ChatTab.tsxindex 9c591b3b3c..17e1fc5555 100644--- a/jarvis/ui/web/frontend/src/views/friends/ChatTab.tsx+++ b/jarvis/ui/web/frontend/src/views/friends/ChatTab.tsx@@ -25,7 +25,9 @@ export function ChatTab() {return (<div className="flex h-full min-h-0 gap-4">- <aside className="flex w-72 flex-shrink-0 flex-col rounded-xl border border-border bg-card/30 p-2">+ {/* The friends rail is a standing column, not a card — it takes the rail+ ground and separates from the stage by fill alone. */}+ <aside className="flex w-72 flex-shrink-0 flex-col rounded-lg bg-sidebar p-2">{friends.isLoading && (<div className="flex items-center justify-center py-6 text-sm text-muted-foreground"><Loader2 className="mr-2 h-4 w-4 animate-spin" /> {t("chat_tab.loading_friends")}@@ -55,7 +57,9 @@ export function ChatTab() {</div></aside>- <section className="flex-1 min-w-0 rounded-xl border border-border bg-card/20">+ {/* The conversation stage fills the rest of the section, so it stays on+ the page's own ground; the rim is what draws its edge now. */}+ <section className="min-w-0 flex-1 rounded-lg border border-border bg-background">{selectedId === null && (<div className="flex h-full items-center justify-center text-sm text-muted-foreground">{t("chat_tab.select_hint")}diff --git a/jarvis/ui/web/frontend/src/views/local-models/CataloguePanel.tsx b/jarvis/ui/web/frontend/src/views/local-models/CataloguePanel.tsxindex 0f3bab5fad..2c21a71fdc 100644--- a/jarvis/ui/web/frontend/src/views/local-models/CataloguePanel.tsx+++ b/jarvis/ui/web/frontend/src/views/local-models/CataloguePanel.tsx@@ -96,7 +96,7 @@ interface PullState {function Eyebrow({ children }: { children: ReactNode }) {return (- <div className="text-[11px] uppercase tracking-[0.18em] text-muted-foreground">+ <div className="text-micro text-muted-foreground">{children}</div>);@@ -104,7 +104,7 @@ function Eyebrow({ children }: { children: ReactNode }) {function CapabilityBadge({ label }: { label: string }) {return (- <span className="rounded border border-border px-1.5 py-0.5 text-[10px] uppercase tracking-wide text-muted-foreground">+ <span className="rounded border border-border px-1.5 py-0.5 text-micro text-muted-foreground">{label}</span>);@@ -283,9 +283,9 @@ function PullLine({ pull, t }: { pull: PullState | null; t: Translate }) {})}{p?.message ? ` — ${p.message}` : ""}</p>- <div className="h-1 w-full overflow-hidden rounded-full bg-sheen/[0.08]">+ <div className="h-1 w-full overflow-hidden rounded-full bg-secondary"><div- className="h-full bg-foreground/70 transition-[width]"+ className="h-full bg-secondary transition-[width]"style={{ width: `${percent}%` }}/></div>@@ -383,7 +383,7 @@ function RecommendedList({{groups.map((g) => (<section key={g.role} className="space-y-2"><Eyebrow>{t(`local_models.catalogue.group_${g.role}`)}</Eyebrow>- <div className="divide-y divide-border/70 overflow-hidden rounded-xl border border-border bg-card/60">+ <div className="divide-y divide-border/70 overflow-hidden rounded-xl border border-border bg-card">{g.rows.map((m) => (<divkey={m.id}@@ -412,7 +412,7 @@ function RecommendedList({/>)}{m.recommended_for.length > 0 && (- <span className="rounded-full bg-primary/10 px-1.5 py-0.5 text-[10px] font-medium text-primary">+ <span className="rounded-full bg-secondary px-1.5 py-0.5 text-micro font-medium text-foreground-strong">{fill(t("local_models.catalogue.recommended_badge"), {roles: m.recommended_for.map((r) => t(`local_models.catalogue.group_${r}`))@@ -535,7 +535,7 @@ function TagLedger({return (<div- className="rounded-lg border border-border/70 bg-background/40"+ className="rounded-lg border border-border bg-background"data-testid={`catalogue-tags-${model}`}><Table label={fill(t("local_models.catalogue.tags_label"), { model })}>@@ -668,7 +668,7 @@ function LibraryList({<EmptyRow>{t("local_models.catalogue.loading")}</EmptyRow>)}{models.length > 0 && (- <div className="overflow-hidden rounded-xl border border-border bg-card/60">+ <div className="overflow-hidden rounded-xl border border-border bg-card"><Table label={t("local_models.catalogue.library_label")}><TableHead columns={columns} />{models.map((m) => {@@ -687,7 +687,7 @@ function LibraryList({{m.name}</span>{m.installed && (- <span className="inline-flex items-center gap-1 text-[10px] text-muted-foreground">+ <span className="inline-flex items-center gap-1 text-micro text-muted-foreground"><Check className="h-3 w-3" />{t("local_models.catalogue.installed")}</span>@@ -727,7 +727,7 @@ function LibraryList({</Cell></TableRow>{open && (- <div className="border-b border-border/70 px-3 pb-3 pt-1 last:border-b-0">+ <div className="border-b border-border px-3 pb-3 pt-1 last:border-b-0"><TagLedgerproviderId={providerId}model={m.name}@@ -892,7 +892,7 @@ export function CataloguePanel({ providerId }: { providerId: string }) {className={cn("inline-flex h-7 items-center rounded-md border px-2.5 text-xs transition-colors",active- ? "border-primary/40 bg-primary/10 text-foreground"+ ? "bg-secondary text-foreground": "border-border text-muted-foreground hover:text-foreground",)}>@@ -943,7 +943,7 @@ export function CataloguePanel({ providerId }: { providerId: string }) {</p>)}- <section className="space-y-2 border-t border-border/70 pt-4">+ <section className="space-y-2 border-t border-border pt-4"><Eyebrow>{t("local_models.catalogue.exact_title")}</Eyebrow><div className="flex items-center gap-2"><InlineSearchdiff --git a/jarvis/ui/web/frontend/src/views/local-models/HuggingFacePanel.tsx b/jarvis/ui/web/frontend/src/views/local-models/HuggingFacePanel.tsxindex 406e2191fb..9c93819782 100644--- a/jarvis/ui/web/frontend/src/views/local-models/HuggingFacePanel.tsx+++ b/jarvis/ui/web/frontend/src/views/local-models/HuggingFacePanel.tsx@@ -53,7 +53,7 @@ const HF_REPO_URL = "https://huggingface.co/";const SEARCH_DEBOUNCE_MS = 350;const PULL_POLL_MS = 2500;-const EYEBROW = "text-[11px] uppercase tracking-[0.18em] text-muted-foreground";+const EYEBROW = "text-micro text-muted-foreground";/** "8.03B" / "27B" / "540M" — the way Hugging Face itself abbreviates. */export function formatParams(total: number | null): string {@@ -226,7 +226,7 @@ export function HuggingFacePanel({ providerId }: { providerId: string }) {return (<div className="space-y-4" data-testid="huggingface-panel">{/* Enable row */}- <div className="flex items-start justify-between gap-4 rounded-xl border border-border bg-card/60 px-4 py-3">+ <div className="flex items-start justify-between gap-4 rounded-xl border border-border bg-card px-4 py-3"><div className="min-w-0"><div className={EYEBROW}>{t("local_models.huggingface.toggle_label")}@@ -284,7 +284,7 @@ export function HuggingFacePanel({ providerId }: { providerId: string }) {<EmptyRow>{t("local_models.huggingface.no_results")}</EmptyRow>) : (<div- className="divide-y divide-border/70 overflow-hidden rounded-xl border border-border bg-card/60"+ className="divide-y divide-border/70 overflow-hidden rounded-xl border border-border bg-card"data-testid="hf-repo-list">{repos.map((repo) => (@@ -306,7 +306,7 @@ export function HuggingFacePanel({ providerId }: { providerId: string }) {)}{/* Token note + private-repo hint */}- <div className="space-y-2 rounded-xl border border-border bg-card/60 px-4 py-3">+ <div className="space-y-2 rounded-xl border border-border bg-card px-4 py-3"><div className={EYEBROW}>{t("local_models.huggingface.notes_label")}</div>@@ -315,7 +315,7 @@ export function HuggingFacePanel({ providerId }: { providerId: string }) {<buttontype="button"onClick={() => setActiveSection("apikeys")}- className="inline-flex items-center gap-1 text-foreground/90 underline-offset-2 hover:underline"+ className="inline-flex items-center gap-1 text-foreground underline-offset-2 hover:underline"><KeyRound className="h-3 w-3" />{t("local_models.huggingface.token_link")}@@ -326,7 +326,7 @@ export function HuggingFacePanel({ providerId }: { providerId: string }) {<buttontype="button"onClick={() => void openExternalUrl(HF_KEYS_URL)}- className="inline-flex items-center gap-1 text-foreground/90 underline-offset-2 hover:underline"+ className="inline-flex items-center gap-1 text-foreground underline-offset-2 hover:underline"><ExternalLink className="h-3 w-3" />hf.co/settings/keys@@ -365,7 +365,7 @@ function RepoRow({type="button"onClick={onToggle}aria-expanded={open}- className="flex w-full items-center gap-3 px-3.5 py-3 text-left transition-colors hover:bg-sheen/[0.05]"+ className="flex w-full items-center gap-3 px-3.5 py-3 text-left transition-colors hover:bg-secondary"><ChevronDownclassName={cn(@@ -440,7 +440,7 @@ function FileList({return (<div- className="border-t border-border/70 bg-background/40 px-3.5 py-2"+ className="border-t border-border bg-background px-3.5 py-2"data-testid="hf-file-list">{files.isLoading ? (@@ -468,7 +468,7 @@ function FileList({))}</div>)}- <p className="pt-2 text-[11px] text-muted-foreground">+ <p className="pt-2 text-micro text-muted-foreground"><buttontype="button"onClick={() => void openExternalUrl(`${HF_REPO_URL}${user}/${repo}`)}@@ -530,11 +530,11 @@ function FileRow({{t(`local_models.huggingface.fit_${file.fit}`)}</span></div>- <div className="truncate text-[11px] text-muted-foreground">+ <div className="truncate text-micro text-muted-foreground">{file.filename}</div>{file.fit === "tight" && file.fit_note && (- <div className="text-[11px] text-foreground">+ <div className="text-micro text-foreground">{file.fit_note}</div>)}@@ -542,11 +542,11 @@ function FileRow({<div className="mt-1 flex items-center gap-2"><div className="h-1 w-40 overflow-hidden rounded-full bg-muted-foreground/20"><div- className="h-full bg-foreground/70 transition-[width]"+ className="h-full bg-secondary transition-[width]"style={{ width: `${percent ?? 5}%` }}/></div>- <span className="text-[11px] text-muted-foreground tabular-nums">+ <span className="text-micro text-muted-foreground tabular-nums">{percent !== null? `${percent}%`: t("local_models.huggingface.pull_starting")}@@ -565,7 +565,7 @@ function FileRow({</div>)}{failed && (- <div className="mt-1 text-[11px] text-destructive" role="alert">+ <div className="mt-1 text-micro text-destructive" role="alert">{state?.error ??progress?.message ??t("local_models.huggingface.pull_failed")}diff --git a/jarvis/ui/web/frontend/src/views/local-models/InstalledPanel.tsx b/jarvis/ui/web/frontend/src/views/local-models/InstalledPanel.tsxindex dfaffa4468..7cfd05258a 100644--- a/jarvis/ui/web/frontend/src/views/local-models/InstalledPanel.tsx+++ b/jarvis/ui/web/frontend/src/views/local-models/InstalledPanel.tsx@@ -59,10 +59,10 @@ function Chip({return (<spanclassName={cn(- "inline-flex shrink-0 items-center rounded-full px-1.5 py-0.5 text-[10px] font-medium",+ "inline-flex shrink-0 items-center rounded-full px-1.5 py-0.5 text-micro font-medium",tone === "primary"- ? "bg-primary/10 text-primary"- : "bg-sheen/[0.08] text-muted-foreground",+ ? "bg-secondary text-foreground-strong"+ : "bg-secondary text-muted-foreground",)}>{children}@@ -158,7 +158,7 @@ export function InstalledPanel({{sorted.length > 0 && (<ularia-label={k("list_label")}- className="divide-y divide-border/70 overflow-hidden rounded-xl border border-border bg-card/60"+ className="divide-y divide-border/70 overflow-hidden rounded-xl border border-border bg-card">{sorted.map((row) => {const caps = row.probed@@ -182,8 +182,8 @@ export function InstalledPanel({</span>}/>- <div className="ml-4 mt-0.5 text-[11px] text-muted-foreground">- <span className="font-mono text-foreground/70">{row.name}</span>+ <div className="ml-4 mt-0.5 text-micro text-muted-foreground">+ <span className="font-mono text-foreground">{row.name}</span>{[row.quant_label || row.quantization_level,formatGb(row.size_bytes),@@ -210,7 +210,7 @@ export function InstalledPanel({))}{picks.length > 0 && (<span- className="text-[11px] text-muted-foreground"+ className="text-micro text-muted-foreground"data-testid={`installed-recommended-${row.name}`}>{fill(k("recommended_for"), {diff --git a/jarvis/ui/web/frontend/src/views/local-models/InventoryPanel.tsx b/jarvis/ui/web/frontend/src/views/local-models/InventoryPanel.tsxindex 80659c6be3..71fa95e071 100644--- a/jarvis/ui/web/frontend/src/views/local-models/InventoryPanel.tsx+++ b/jarvis/ui/web/frontend/src/views/local-models/InventoryPanel.tsx@@ -84,10 +84,10 @@ function Badge({return (<spanclassName={cn(- "inline-flex shrink-0 items-center rounded-full px-1.5 py-0.5 text-[10px] font-medium",+ "inline-flex shrink-0 items-center rounded-full px-1.5 py-0.5 text-micro font-medium",tone === "primary"- ? "bg-primary/10 text-primary"- : "bg-sheen/[0.08] text-muted-foreground",+ ? "bg-secondary text-foreground-strong"+ : "bg-secondary text-muted-foreground",)}>{children}@@ -110,7 +110,7 @@ function DetailsDrawer({const template = detail.data?.template ?? "";return (<div- className="space-y-4 rounded-xl border border-border bg-card/60 p-4"+ className="space-y-4 rounded-xl border border-border bg-card p-4"data-testid={`details-${row.name}`}><DetailHeader@@ -182,7 +182,7 @@ function DeleteDrawer({const used = row.used_by.length > 0;return (<div- className="space-y-3 rounded-xl border border-destructive/40 bg-card/60 p-4"+ className="space-y-3 rounded-xl border border-destructive/40 bg-card p-4"data-testid={`delete-${row.name}`}><p className="text-sm text-foreground">@@ -415,7 +415,7 @@ export function InventoryPanel({ providerId }: InventoryPanelProps) {</p>)}- <div className="overflow-x-auto rounded-xl border border-border bg-card/60">+ <div className="overflow-x-auto rounded-xl border border-border bg-card"><div className="min-w-[1040px]"><Table label={k("table_label")}><TableHead columns={columns} />@@ -521,7 +521,7 @@ export function InventoryPanel({ providerId }: InventoryPanelProps) {</Cell></TableRow>{open && (- <div className="border-b border-border/70 px-3 py-3 last:border-b-0">+ <div className="border-b border-border px-3 py-3 last:border-b-0">{open === "details" && (<DetailsDrawerproviderId={providerId}diff --git a/jarvis/ui/web/frontend/src/views/local-models/MemoryStrip.tsx b/jarvis/ui/web/frontend/src/views/local-models/MemoryStrip.tsxindex f301fd8a4b..1791ea58e3 100644--- a/jarvis/ui/web/frontend/src/views/local-models/MemoryStrip.tsx+++ b/jarvis/ui/web/frontend/src/views/local-models/MemoryStrip.tsx@@ -42,7 +42,7 @@ export function MemoryStrip({ resident, roleLabel }: MemoryStripProps) {return (<section- className="rounded-2xl border border-border bg-card/40 px-4 py-3"+ className="rounded-2xl border border-border bg-card px-4 py-3"data-testid="memory-strip"data-over={resident.over ? "true" : "false"}aria-label={k("resident_title")}@@ -60,19 +60,19 @@ export function MemoryStrip({ resident, roleLabel }: MemoryStripProps) {</p></div><div- className="mt-2 flex h-2.5 overflow-hidden rounded-full bg-sheen/[0.08]"+ className="mt-2 flex h-2.5 overflow-hidden rounded-full bg-secondary"role="img"aria-label={headline}>{resident.items.map((item, i) => (<span key={item.tag} className="contents"><span- className={cn("h-full bg-foreground/70", i % 2 === 1 && "opacity-75")}+ className={cn("h-full bg-secondary", i % 2 === 1 && "opacity-75")}style={{ width: width(item.weights_gb) }}title={`${item.display_label || item.tag} · ${gb(item.weights_gb)}`}/><span- className="h-full bg-primary/40"+ className="h-full bg-secondary"style={{ width: width(item.context_gb) }}title={`${k("resident_context")} · ${gb(item.context_gb)}`}/>@@ -80,16 +80,16 @@ export function MemoryStrip({ resident, roleLabel }: MemoryStripProps) {))}{resident.reserve_gb > 0 && (<span- className="h-full bg-sheen/25"+ className="h-full bg-secondary"style={{ width: width(resident.reserve_gb) }}title={`${k("resident_reserve")} · ${gb(resident.reserve_gb)}`}/>)}</div>- <ul className="mt-2 flex flex-wrap gap-x-4 gap-y-1 text-[11px] text-muted-foreground">+ <ul className="mt-2 flex flex-wrap gap-x-4 gap-y-1 text-micro text-muted-foreground">{resident.items.map((item) => (<li key={item.tag} className="flex items-center gap-1.5" data-testid={`memory-strip-${item.tag}`}>- <i className="inline-block h-2 w-2 rounded-[2px] bg-foreground/70" aria-hidden />+ <i className="inline-block h-2 w-2 rounded-[2px] bg-secondary" aria-hidden /><span className="text-foreground/90">{item.display_label || item.tag}</span><span>{item.roles.map(roleLabel).join(" · ")} · {gb(item.weights_gb)}@@ -100,7 +100,7 @@ export function MemoryStrip({ resident, roleLabel }: MemoryStripProps) {))}{resident.reserve_gb > 0 && (<li className="flex items-center gap-1.5">- <i className="inline-block h-2 w-2 rounded-[2px] bg-sheen/25" aria-hidden />+ <i className="inline-block h-2 w-2 rounded-[2px] bg-secondary" aria-hidden /><span>{k("resident_reserve")} · {gb(resident.reserve_gb)}</span>diff --git a/jarvis/ui/web/frontend/src/views/local-models/ModelCard.tsx b/jarvis/ui/web/frontend/src/views/local-models/ModelCard.tsxindex b58b1e6237..a23b9797fd 100644--- a/jarvis/ui/web/frontend/src/views/local-models/ModelCard.tsx+++ b/jarvis/ui/web/frontend/src/views/local-models/ModelCard.tsx@@ -121,8 +121,8 @@ function Chip({ children, on = false }: { children: React.ReactNode; on?: booleareturn (<spanclassName={cn(- "inline-flex shrink-0 items-center rounded border px-1.5 py-px text-[10px] tabular-nums",- on ? "border-border text-foreground/90" : "border-border/70 text-muted-foreground",+ "inline-flex shrink-0 items-center rounded border px-1.5 py-px text-micro tabular-nums",+ on ? "border-border text-foreground" : "border-border text-muted-foreground",)}>{children}@@ -243,7 +243,7 @@ export function ModelCard({return (<articleclassName={cn(- "flex flex-col rounded-2xl border bg-card/50 p-4 transition-colors",+ "flex flex-col rounded-2xl border bg-card p-4 transition-colors",RING[state],)}data-testid={`model-card-${row.id}`}@@ -253,10 +253,10 @@ export function ModelCard({{/* The job: an eyebrow, because the job is the category and the modelbelow it is the value — not the other way round. */}<div className="flex items-baseline justify-between gap-2">- <p className="text-[11px] font-medium uppercase tracking-[0.18em] text-muted-foreground">+ <p className="text-micro font-medium text-muted-foreground">{t(row.label_key)}</p>- <p className="truncate text-[11px] text-muted-foreground/80">+ <p className="truncate text-micro text-muted-foreground">{t(`local_models.jobs.${row.id}_purpose`)}</p></div>@@ -274,7 +274,7 @@ export function ModelCard({{modelLabel(current, row.current)}</span><span- className="truncate font-mono text-[11px] text-muted-foreground"+ className="truncate font-mono text-micro text-muted-foreground"title={row.current}data-testid={`model-card-tag-${row.id}`}>@@ -290,7 +290,7 @@ export function ModelCard({))}</p>) : (- <p className="mt-1 text-[11px] text-muted-foreground">+ <p className="mt-1 text-micro text-muted-foreground">{state === "missing"? t("local_models.jobs.not_on_disk"): t("local_models.jobs.no_facts")}@@ -319,7 +319,7 @@ export function ModelCard({{state !== "blocked" && state !== "empty" && (<div className="mt-2.5" data-testid={`model-card-memory-${row.id}`}><div- className="flex h-1.5 overflow-hidden rounded-full bg-sheen/[0.08]"+ className="flex h-1.5 overflow-hidden rounded-full bg-secondary"role="img"aria-label={share > 0@@ -345,14 +345,14 @@ export function ModelCard({/>{reserveGb > 0 && (<div- className="h-full bg-sheen/25"+ className="h-full bg-secondary"style={{width: `${Math.min(100, Math.round((reserveGb / Math.max(acceleratorGb, totalGb, 0.01)) * 100))}%`,}}/>)}</div>- <p className="mt-1 text-[10px] tabular-nums text-muted-foreground">{memoryText}</p>+ <p className="mt-1 text-micro tabular-nums text-muted-foreground">{memoryText}</p></div>)}@@ -405,7 +405,7 @@ export function ModelCard({{/* The plumbing, one click away: where the pick lives, what the jobasks for, what the recommendation would be and why. */}- <details className="mt-3 border-t border-dashed border-border/70 pt-2 text-[11px] text-muted-foreground">+ <details className="mt-3 border-t border-dashed border-border pt-2 text-micro text-muted-foreground"><summary className="cursor-pointer select-none">{t("local_models.jobs.details")}</summary><dl className="mt-1.5 grid grid-cols-[auto_minmax(0,1fr)] gap-x-3 gap-y-1"><dt>{t("local_models.jobs.details_config")}</dt>@@ -475,7 +475,7 @@ function CardProgress({text = `${t("local_models.roles.progress_error")} ${progress.message ?? ""}`.trim();}return (- <p className={cn("mt-2.5 text-[11px] leading-snug", tone)} data-testid="role-progress">+ <p className={cn("mt-2.5 text-micro ", tone)} data-testid="role-progress">{text}</p>);diff --git a/jarvis/ui/web/frontend/src/views/local-models/OverviewPanel.tsx b/jarvis/ui/web/frontend/src/views/local-models/OverviewPanel.tsxindex 3266e82a95..01f2820ae9 100644--- a/jarvis/ui/web/frontend/src/views/local-models/OverviewPanel.tsx+++ b/jarvis/ui/web/frontend/src/views/local-models/OverviewPanel.tsx@@ -194,7 +194,7 @@ export function OverviewPanel({<buttontype="button"onClick={onOpenApiKeys}- className="font-medium text-primary hover:underline"+ className="font-medium text-foreground-strong hover:underline">{t("local_models.roles.other_brain_link")}</button>@@ -295,7 +295,7 @@ export function OverviewPanel({function CardSkeleton() {return (<div- className="h-[17rem] animate-pulse rounded-2xl border border-dashed border-border bg-card/30"+ className="h-[17rem] animate-pulse rounded-2xl border border-dashed border-border bg-card"data-testid="model-card-skeleton"/>);@@ -331,17 +331,17 @@ function SideJobRow({const current = findModel(models, row.current);return (<div- className="grid gap-3 rounded-xl border border-border/70 bg-card/40 px-4 py-3 lg:grid-cols-[minmax(0,1fr)_minmax(0,22rem)_auto] lg:items-center"+ className="grid gap-3 rounded-xl border border-border bg-card px-4 py-3 lg:grid-cols-[minmax(0,1fr)_minmax(0,22rem)_auto] lg:items-center"data-testid={`side-job-${row.id}`}><div className="min-w-0">- <p className="text-[11px] font-medium uppercase tracking-[0.18em] text-muted-foreground">+ <p className="text-micro font-medium text-muted-foreground">{t(row.label_key)}</p><p className="mt-0.5 text-xs text-muted-foreground">{row.note || t(`local_models.jobs.${row.id}_purpose`)}{current && (- <span className="ml-2 text-foreground/80">+ <span className="ml-2 text-foreground">{modelLabel(current)} · {formatGigabytes(current.size_bytes)}</span>)}@@ -540,7 +540,7 @@ function SetupProgress({return (<div- className="mt-3 space-y-1 border-t border-border/70 pt-3 text-xs"+ className="mt-3 space-y-1 border-t border-border pt-3 text-xs"data-testid="setup-progress"><StatusDot tone={tone} pulse={tone === "busy"} label={text} />diff --git a/jarvis/ui/web/frontend/src/views/local-models/RolePicker.tsx b/jarvis/ui/web/frontend/src/views/local-models/RolePicker.tsxindex c0e9168af8..1b689a09be 100644--- a/jarvis/ui/web/frontend/src/views/local-models/RolePicker.tsx+++ b/jarvis/ui/web/frontend/src/views/local-models/RolePicker.tsx@@ -256,8 +256,8 @@ export function RolePicker({data-testid={`role-picker-${row.id}`}data-value={row.current}className={cn(- "flex h-9 w-full items-center justify-between gap-2 rounded-lg border border-border bg-background/60 px-2.5 text-left text-sm text-foreground",- "transition-colors hover:border-border/80 focus:outline-none focus:ring-1 focus:ring-primary",+ "flex h-9 w-full items-center justify-between gap-2 rounded-lg border border-border bg-background px-2.5 text-left text-sm text-foreground",+ "transition-colors hover:border-border focus:outline-none focus:ring-2 focus:ring-border-strong","disabled:cursor-not-allowed disabled:opacity-50",)}>@@ -267,7 +267,7 @@ export function RolePicker({{open && (<div- className="absolute left-0 right-0 top-full z-30 mt-1 overflow-hidden rounded-xl border border-border bg-card"+ className="absolute left-0 right-0 top-full z-30 mt-1 overflow-hidden rounded-lg bg-popover shadow-float"data-testid={`role-picker-popover-${row.id}`}><label className="flex items-center gap-2 border-b border-border px-3 py-2 text-xs text-muted-foreground">@@ -278,7 +278,7 @@ export function RolePicker({onChange={(e) => setQuery(e.target.value)}placeholder={t("local_models.roles.pick_search")}aria-label={t("local_models.roles.pick_search")}- className="w-full bg-transparent text-sm text-foreground placeholder:text-muted-foreground/70 focus:outline-none"+ className="w-full bg-transparent text-sm text-foreground placeholder:text-faint-foreground focus:outline-none"data-testid={`role-picker-search-${row.id}`}/></label>@@ -297,7 +297,7 @@ export function RolePicker({<span className="text-sm text-foreground">{t("local_models.roles.pick_discovery")}</span>- <span className="text-[11px] text-muted-foreground">+ <span className="text-micro text-muted-foreground">{t("local_models.roles.discovery")}</span></Option>@@ -309,7 +309,7 @@ export function RolePicker({)}{groups.map((group) => (<li key={group.id} role="presentation" data-testid={`role-picker-group-${group.id}`}>- <p className="px-3 pb-0.5 pt-2 text-[10px] font-semibold uppercase tracking-[0.12em] text-muted-foreground">+ <p className="px-3 pb-0.5 pt-2 text-micro font-semibold text-muted-foreground">{groupLabel(group.id)}</p><ul role="group" aria-label={groupLabel(group.id)}>@@ -336,22 +336,22 @@ export function RolePicker({><span className="flex min-w-0 items-baseline gap-2"><span className="truncate text-sm text-foreground">{entry.label}</span>- <span className="truncate font-mono text-[10px] text-muted-foreground/80">+ <span className="truncate font-mono text-micro text-muted-foreground">{entry.tag}</span>{!entry.installed && !isDownload && (- <span className="text-[10px] text-muted-foreground">+ <span className="text-micro text-muted-foreground">{t("local_models.roles.pick_missing_suffix")}</span>)}</span><span className="flex items-center justify-between gap-2">- <span className="truncate text-[11px] text-muted-foreground">+ <span className="truncate text-micro text-muted-foreground">{entry.facts}</span><spanclassName={cn(- "shrink-0 text-[11px]",+ "shrink-0 text-micro",isDownload ? "text-primary" : TONE_TEXT[tone],)}data-testid={`role-option-verdict-${entry.tag}`}@@ -422,7 +422,7 @@ function Option({"grid gap-0.5 px-3 py-1.5 outline-none",disabled? "cursor-not-allowed opacity-50"- : "cursor-pointer hover:bg-sheen/[0.05] focus-visible:bg-sheen/[0.07]",+ : "cursor-pointer hover:bg-secondary focus-visible:bg-secondary",selected && "bg-primary/[0.06]",)}>diff --git a/jarvis/ui/web/frontend/src/views/local-models/ServerLaunch.tsx b/jarvis/ui/web/frontend/src/views/local-models/ServerLaunch.tsxindex 523ddced12..f990b156f2 100644--- a/jarvis/ui/web/frontend/src/views/local-models/ServerLaunch.tsx+++ b/jarvis/ui/web/frontend/src/views/local-models/ServerLaunch.tsx@@ -103,13 +103,13 @@ export function ServerLaunch({return (<section- className="rounded-2xl border border-border bg-card/50 p-4"+ className="rounded-2xl border border-border bg-card p-4"data-testid="server-launch"aria-label={k("aria")}><div className="flex flex-wrap items-start justify-between gap-x-6 gap-y-3"><div className="min-w-0">- <p className="font-display text-[15px] font-semibold tracking-tight text-foreground">+ <p className="font-display text-title font-semibold tracking-tight text-foreground">{headline}</p>{facts.length > 0 && (diff --git a/jarvis/ui/web/frontend/src/views/local-models/ServerPanel.tsx b/jarvis/ui/web/frontend/src/views/local-models/ServerPanel.tsxindex 0a10c9cce3..73914533c8 100644--- a/jarvis/ui/web/frontend/src/views/local-models/ServerPanel.tsx+++ b/jarvis/ui/web/frontend/src/views/local-models/ServerPanel.tsx@@ -71,7 +71,7 @@ const KEEP_ALIVE_DEFAULT = "5m";const LOG_LINES = 40;const EYEBROW =- "text-[11px] font-semibold uppercase tracking-[0.18em] text-muted-foreground";+ "text-micro font-semibold text-muted-foreground";/** "18.2 GB" from a byte count; "—" for nothing loaded. */export function formatGb(bytes: number | null | undefined): string {@@ -717,7 +717,7 @@ export function ServerPanel({)}{guide.data && guide.data.rows.length > 0 && (<ul- className="divide-y divide-border/70 rounded-xl border border-border bg-card/60"+ className="divide-y divide-border/70 rounded-xl border border-border bg-card"data-testid="env-guide">{guide.data.rows.map((row) => (@@ -732,11 +732,11 @@ export function ServerPanel({<div className="text-xs text-muted-foreground">{row.purpose}</div>- <code className="mt-1 block truncate rounded bg-sheen/[0.06] px-2 py-1 font-mono text-xs text-foreground">+ <code className="mt-1 block truncate rounded bg-secondary px-2 py-1 font-mono text-xs text-foreground">{row.command}</code>{row.restart ? (- <div className="mt-1 text-[11px] text-muted-foreground">+ <div className="mt-1 text-micro text-muted-foreground">{row.restart}</div>) : null}@@ -763,7 +763,7 @@ export function ServerPanel({type="button"onClick={() => setLogOpen((v) => !v)}aria-expanded={logOpen}- className="inline-flex items-center gap-1.5 text-sm font-medium text-foreground/90 hover:text-foreground"+ className="inline-flex items-center gap-1.5 text-sm font-medium text-foreground hover:text-foreground">{logOpen ? (<ChevronDown className="h-4 w-4" />@@ -785,7 +785,7 @@ export function ServerPanel({{logOpen &&(log.data && log.data.lines.length > 0 ? (<pre- className="max-h-72 overflow-auto rounded-lg border border-border bg-sheen/[0.04] p-3 font-mono text-[11px] leading-5 text-foreground"+ className="max-h-72 overflow-auto rounded-lg bg-secondary p-3 font-mono text-micro text-foreground"data-testid="server-log">{log.data.lines.join("\n")}diff --git a/jarvis/ui/web/frontend/src/views/local-models/TuneSheet.tsx b/jarvis/ui/web/frontend/src/views/local-models/TuneSheet.tsxindex 6dfc48c2b9..8ac8bd124b 100644--- a/jarvis/ui/web/frontend/src/views/local-models/TuneSheet.tsx+++ b/jarvis/ui/web/frontend/src/views/local-models/TuneSheet.tsx@@ -85,13 +85,13 @@ function Chip({className={cn("inline-flex h-7 items-center gap-1.5 rounded-md border px-2.5 text-xs tabular-nums transition-colors",active- ? "border-primary/50 bg-primary/10 font-medium text-foreground"+ ? "bg-secondary font-medium text-foreground": "border-border text-muted-foreground hover:border-border hover:text-foreground",)}>{children}{hint ? (- <span className="text-[10px] text-muted-foreground">{hint}</span>+ <span className="text-micro text-muted-foreground">{hint}</span>) : null}</button>);@@ -99,7 +99,7 @@ function Chip({function Eyebrow({ children }: { children: React.ReactNode }) {return (- <div className="text-[11px] uppercase tracking-[0.18em] text-muted-foreground">+ <div className="text-micro text-muted-foreground">{children}</div>);@@ -158,7 +158,7 @@ function NumberField({const n = Number(raw);onChange(Number.isFinite(n) ? n : null);}}- className="h-7 w-28 rounded-md border border-border bg-background/60 px-2 text-xs tabular-nums placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-primary"+ className="h-7 w-28 rounded-md border border-border bg-background px-2 text-xs tabular-nums placeholder:text-faint-foreground focus:outline-none focus:ring-2 focus:ring-border-strong"/>);}@@ -288,7 +288,7 @@ export function TuneSheet({ providerId, model, onClose }: TuneSheetProps) {<sectiondata-testid={`tune-sheet-${model.name}`}aria-label={fill(k("aria"), { model: model.name })}- className="space-y-5 rounded-xl border border-border bg-card/60 p-4"+ className="space-y-5 rounded-xl border border-border bg-card p-4"><div className="flex items-start justify-between gap-4"><div className="min-w-0">@@ -311,10 +311,10 @@ export function TuneSheet({ providerId, model, onClose }: TuneSheetProps) {</div>{/* Suggested for this machine */}- <div className="rounded-lg border border-border/70 bg-background/40 p-3">+ <div className="rounded-lg border border-border bg-background p-3"><div className="flex items-center justify-between gap-3"><div className="flex items-center gap-2 text-sm font-medium text-foreground">- <Sparkles className="h-4 w-4 text-primary" />+ <Sparkles className="h-4 w-4 text-muted-foreground" />{k("suggested_title")}</div><SoftButton@@ -478,7 +478,7 @@ export function TuneSheet({ providerId, model, onClose }: TuneSheetProps) {type="button"onClick={() => setSamplingOpen((v) => !v)}aria-expanded={samplingOpen}- className="flex items-center gap-1.5 text-[11px] uppercase tracking-[0.18em] text-muted-foreground hover:text-foreground"+ className="flex items-center gap-1.5 text-micro text-muted-foreground hover:text-foreground">{k("group_sampling")}<ChevronDown@@ -572,7 +572,7 @@ export function TuneSheet({ providerId, model, onClose }: TuneSheetProps) {.filter((l) => l.length > 0);set("stop", lines.length ? lines : null);}}- className="w-full rounded-md border border-border bg-background/60 px-2 py-1 text-xs placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-primary"+ className="w-full rounded-md border border-border bg-background px-2 py-1 text-xs placeholder:text-faint-foreground focus:outline-none focus:ring-2 focus:ring-border-strong"/></Knob></div>@@ -580,7 +580,7 @@ export function TuneSheet({ providerId, model, onClose }: TuneSheetProps) {</div>{/* Footer */}- <div className="space-y-2 border-t border-border/70 pt-3">+ <div className="space-y-2 border-t border-border pt-3"><div className="flex flex-wrap items-center gap-2"><SoftButtonprimarydiff --git a/jarvis/ui/web/frontend/src/views/local-models/verifyLines.ts b/jarvis/ui/web/frontend/src/views/local-models/verifyLines.tsindex c90d808cf4..96bed34e06 100644--- a/jarvis/ui/web/frontend/src/views/local-models/verifyLines.ts+++ b/jarvis/ui/web/frontend/src/views/local-models/verifyLines.ts@@ -49,7 +49,7 @@ export function verifyLines(verify: VerifyResponse | undefined, t: T): string[]step.ok === true ? "" : step.detail,].filter(Boolean);return `${stepLabel(step, t)} — ${verdict}${- parts.length > 0 ? ` · ${parts.join(" · ")}` : ""+ parts.length > 0 ?}` · ${parts.join(" · ")}` : ""}`;});}diff --git a/jarvis/ui/web/frontend/src/views/settings/AppSettingsGroup.tsx b/jarvis/ui/web/frontend/src/views/settings/AppSettingsGroup.tsxindex 5bb2b332c4..c870bdb647 100644--- a/jarvis/ui/web/frontend/src/views/settings/AppSettingsGroup.tsx+++ b/jarvis/ui/web/frontend/src/views/settings/AppSettingsGroup.tsx@@ -24,7 +24,7 @@ export function AppSettingsGroup() {return (<div className="mt-8 space-y-4">- <h3 className="font-display text-xs font-semibold uppercase tracking-wide text-muted-foreground">+ <h3 className="font-display text-xs font-semibold text-muted-foreground">{t("settings_view.app_settings_group_title")}</h3><AppearanceRow />@@ -57,12 +57,12 @@ function AppearanceRow() {const { preference, theme, setPreference } = useTheme();return (- <div className="rounded-lg border border-border bg-card/60 p-4">+ <div className="rounded-lg border border-border bg-card p-4"><div className="flex items-start gap-3">{theme === "dark" ? (- <Moon className="mt-0.5 h-4 w-4 shrink-0 text-primary" />+ <Moon className="mt-0.5 h-4 w-4 shrink-0 text-muted-foreground" />) : (- <Sun className="mt-0.5 h-4 w-4 shrink-0 text-primary" />+ <Sun className="mt-0.5 h-4 w-4 shrink-0 text-muted-foreground" />)}<div className="min-w-0 flex-1"><div className="flex flex-wrap items-center justify-between gap-3">@@ -70,7 +70,7 @@ function AppearanceRow() {<divrole="radiogroup"aria-label={t("settings_view.appearance.title")}- className="inline-flex rounded-lg border border-border bg-background/60 p-0.5"+ className="inline-flex rounded-lg border border-border bg-background p-0.5">{THEME_OPTIONS.map(({ value, icon: Icon, labelKey }) => {const active = preference === value;@@ -84,7 +84,7 @@ function AppearanceRow() {className={"inline-flex items-center gap-1.5 rounded-md px-2.5 py-1.5 text-xs font-medium transition-colors " +(active- ? "bg-foreground/70 text-primary-foreground"+ ? "bg-primary text-primary-foreground": "text-muted-foreground hover:bg-secondary hover:text-foreground")}>@@ -173,9 +173,9 @@ function AutostartRow() {}return (- <div className="rounded-lg border border-border bg-card/60 p-4">+ <div className="rounded-lg border border-border bg-card p-4"><div className="flex items-start gap-3">- <Power className="mt-0.5 h-4 w-4 shrink-0 text-primary" />+ <Power className="mt-0.5 h-4 w-4 shrink-0 text-muted-foreground" /><div className="min-w-0 flex-1"><div className="flex items-center justify-between gap-4"><h4 className="font-medium">{t("settings_view.autostart.title")}</h4>@@ -205,7 +205,7 @@ function AutostartRow() {)}{canUpgradeInstantStart && (- <div className="mt-3 rounded-md border border-border bg-background/50 p-3">+ <div className="mt-3 rounded-md border border-border bg-background p-3"><p className="text-xs text-muted-foreground">{t("settings_view.autostart.instant_start_hint")}</p>@@ -213,7 +213,7 @@ function AutostartRow() {type="button"disabled={saving}onClick={onEnableInstantStart}- className="mt-2 inline-flex items-center gap-1.5 rounded-md bg-foreground/70 px-3 py-1.5 text-xs font-medium text-primary-foreground hover:bg-primary/90 disabled:opacity-50"+ className="mt-2 inline-flex items-center gap-1.5 rounded-md bg-primary px-3 py-1.5 text-xs font-medium text-primary-foreground hover:bg-primary/90 disabled:opacity-50"><Zap className="h-3.5 w-3.5" />{t("settings_view.autostart.enable_instant_start")}@@ -222,7 +222,7 @@ function AutostartRow() {)}{supported && config?.entry_path && (- <p className="mt-2 break-all font-mono text-[11px] text-muted-foreground">+ <p className="mt-2 break-all font-mono text-micro text-muted-foreground">{config.entry_path}</p>)}diff --git a/jarvis/ui/web/frontend/src/views/settings/AudioDevicesGroup.tsx b/jarvis/ui/web/frontend/src/views/settings/AudioDevicesGroup.tsxindex 6e9ba2d016..97f3a2124f 100644--- a/jarvis/ui/web/frontend/src/views/settings/AudioDevicesGroup.tsx+++ b/jarvis/ui/web/frontend/src/views/settings/AudioDevicesGroup.tsx@@ -50,9 +50,9 @@ export function AudioDevicesGroup() {const autoValue = config?.auto_value ?? "auto-headset";return (- <div className="mt-2 rounded-lg border border-border bg-card/60 p-4">+ <div className="mt-2 rounded-lg border border-border bg-card p-4"><div className="flex items-start gap-3">- <Headphones className="mt-0.5 h-4 w-4 shrink-0 text-primary" />+ <Headphones className="mt-0.5 h-4 w-4 shrink-0 text-muted-foreground" /><div className="min-w-0 flex-1"><div className="flex items-center justify-between gap-4"><h4 className="font-display text-sm font-semibold">@@ -84,7 +84,7 @@ export function AudioDevicesGroup() {) : (<><DevicePicker- icon={<Volume2 className="h-3.5 w-3.5 text-primary" />}+ icon={<Volume2 className="h-3.5 w-3.5 text-muted-foreground" />}label={t("settings_view.audio_devices.output_label")}testId="audio-output-select"devices={config?.outputs ?? []}@@ -96,7 +96,7 @@ export function AudioDevicesGroup() {onSelect={(device) => void onSelect("output", device)}/><DevicePicker- icon={<Mic className="h-3.5 w-3.5 text-primary" />}+ icon={<Mic className="h-3.5 w-3.5 text-muted-foreground" />}label={t("settings_view.audio_devices.input_label")}testId="audio-input-select"devices={config?.inputs ?? []}diff --git a/jarvis/ui/web/frontend/src/views/settings/BarSizeGroup.tsx b/jarvis/ui/web/frontend/src/views/settings/BarSizeGroup.tsxindex 898c2f416f..0a0a6ad0fe 100644--- a/jarvis/ui/web/frontend/src/views/settings/BarSizeGroup.tsx+++ b/jarvis/ui/web/frontend/src/views/settings/BarSizeGroup.tsx@@ -119,15 +119,15 @@ export function BarSizeGroup() {const showReset = pct !== def;return (- <div className="mt-2 rounded-lg border border-border bg-card/60 p-4">+ <div className="mt-2 rounded-lg border border-border bg-card p-4"><div className="flex items-start gap-3">- <Maximize2 className="mt-0.5 h-4 w-4 shrink-0 text-primary" />+ <Maximize2 className="mt-0.5 h-4 w-4 shrink-0 text-muted-foreground" /><div className="min-w-0 flex-1"><div className="flex items-center justify-between gap-4"><h4 className="font-display text-sm font-semibold">{t("settings_view.bar_size.title")}</h4>- <span className="font-mono text-sm text-primary">{`${pct}%`}</span>+ <span className="font-mono text-sm text-foreground-strong">{`${pct}%`}</span></div><p className="mt-1 text-xs text-muted-foreground">{t("settings_view.bar_size.description")}@@ -152,7 +152,7 @@ export function BarSizeGroup() {type="button"onClick={onReset}disabled={saving}- className="mt-3 text-[11px] text-muted-foreground underline hover:text-foreground disabled:opacity-50"+ className="mt-3 text-micro text-muted-foreground underline hover:text-foreground disabled:opacity-50">{t("settings_view.bar_size.reset")}</button>diff --git a/jarvis/ui/web/frontend/src/views/settings/JarvisApiGroup.tsx b/jarvis/ui/web/frontend/src/views/settings/JarvisApiGroup.tsxindex cb3be58bad..b0e90aada4 100644--- a/jarvis/ui/web/frontend/src/views/settings/JarvisApiGroup.tsx+++ b/jarvis/ui/web/frontend/src/views/settings/JarvisApiGroup.tsx@@ -199,8 +199,8 @@ export function JarvisApiGroup() {{t("settings_view.jarvis_api.unlock_hint")}</p>- <div className="flex items-start gap-3 rounded-lg border border-border bg-card/60 p-4">- <Lock className="mt-0.5 h-4 w-4 shrink-0 text-primary" />+ <div className="flex items-start gap-3 rounded-lg border border-border bg-card p-4">+ <Lock className="mt-0.5 h-4 w-4 shrink-0 text-muted-foreground" /><div className="min-w-0 flex-1"><div className="text-sm font-medium">{t("settings_view.jarvis_api.browser_lock_title")}@@ -243,7 +243,7 @@ export function JarvisApiGroup() {{formOpen && (<form- className="space-y-3 rounded-xl border border-border bg-background/60 p-4"+ className="space-y-3 rounded-xl border border-border bg-background p-4"onSubmit={onSubmitCustomKey}><p className="text-xs text-muted-foreground">@@ -304,10 +304,10 @@ export function JarvisApiGroup() {if (e.target === e.currentTarget) setConfirmLock(false);}}>- <div className="card-outline mx-4 w-full max-w-md rounded-xl border border-border bg-card p-5">+ <div className="mx-4 w-full max-w-md rounded-lg bg-popover shadow-float p-5"><div className="flex items-start gap-3">- <div className="flex h-9 w-9 shrink-0 items-center justify-center rounded-md border border-primary/40 bg-primary/10">- <Lock className="h-5 w-5 text-primary" />+ <div className="flex h-9 w-9 shrink-0 items-center justify-center rounded-md bg-secondary">+ <Lock className="h-5 w-5 text-muted-foreground" /></div><div className="min-w-0 flex-1"><h3 className="text-base font-semibold">@@ -360,9 +360,9 @@ export function JarvisApiGroup() {if (e.target === e.currentTarget) setConfirmRotate(false);}}>- <div className="card-outline mx-4 w-full max-w-md rounded-xl border border-border bg-card p-5">+ <div className="mx-4 w-full max-w-md rounded-lg bg-popover shadow-float p-5"><div className="flex items-start gap-3">- <div className="flex h-9 w-9 shrink-0 items-center justify-center rounded-md border border-destructive/40 bg-destructive/10">+ <div className="flex h-9 w-9 shrink-0 items-center justify-center rounded-md bg-secondary"><AlertTriangle className="h-5 w-5 text-destructive" /></div><div className="min-w-0 flex-1">diff --git a/jarvis/ui/web/frontend/src/views/settings/KeybindRow.tsx b/jarvis/ui/web/frontend/src/views/settings/KeybindRow.tsxindex 7873bbb5c3..c1afb156a2 100644--- a/jarvis/ui/web/frontend/src/views/settings/KeybindRow.tsx+++ b/jarvis/ui/web/frontend/src/views/settings/KeybindRow.tsx@@ -159,7 +159,7 @@ export function ComboChips({ combo }: { combo: string }) {{parts.map((p, i) => (<Fragment key={`${p}-${i}`}>{i > 0 && <span className="text-muted-foreground/50">+</span>}- <kbd className="rounded border border-border bg-muted/70 px-1.5 py-0.5 font-mono text-[11px] leading-none text-foreground shadow-[inset_0_-1px_0_rgba(0,0,0,0.35)]">+ <kbd className="rounded border border-border bg-muted px-1.5 py-0.5 font-mono text-micro text-foreground shadow-[inset_0_-1px_0_rgba(0,0,0,0.35)]">{p}</kbd></Fragment>@@ -695,14 +695,14 @@ export function KeybindRow({data-testid={`combo-field-${action}`}onClick={() => setCapturing((c) => !c)}disabled={loading}- className={`flex min-h-[34px] flex-wrap items-center gap-1 rounded-md border px-3 py-1.5 text-left text-sm transition-colors focus:outline-none focus:ring-1 focus:ring-primary disabled:opacity-50 ${+ className={`flex min-h-[34px] flex-wrap items-center gap-1 rounded-md border px-3 py-1.5 text-left text-sm transition-colors focus:outline-none focus:ring-2 focus:ring-border-strong disabled:opacity-50 ${variant === "voice" ? "" : "flex-1"- } ${capturing ? "border-primary bg-primary/10" : "border-input bg-background"}`}+ } ${capturing ? "bg-secondary" : "border-input bg-background"}`}>{capturing && (<span className="relative mr-1 flex h-2 w-2 shrink-0">- <span className="absolute inline-flex h-full w-full animate-ping rounded-full bg-foreground/70 opacity-75" />- <span className="relative inline-flex h-2 w-2 rounded-full bg-foreground/70" />+ <span className="absolute inline-flex h-full w-full animate-ping rounded-full bg-secondary opacity-75" />+ <span className="relative inline-flex h-2 w-2 rounded-full bg-secondary" /></span>)}{combo ? (@@ -744,7 +744,7 @@ export function KeybindRow({const statusLine = statusText && (<pdata-testid={showValidation ? `keybind-validation-${action}` : undefined}- className={`mt-2 text-[11px] ${+ className={`mt-2 text-micro ${showValidation? isError? "text-destructive"@@ -770,14 +770,14 @@ export function KeybindRow({);const restartHint = saved && (- <p className="mt-2 text-[11px] text-muted-foreground">+ <p className="mt-2 text-micro text-muted-foreground">{t("settings_view.keybinds.restart_required")}</p>);if (variant === "voice") {return (- <div className="rounded-lg border border-border bg-card/60 p-4">+ <div className="rounded-lg border border-border bg-card p-4"><div className="flex flex-wrap items-start justify-between gap-3"><div className="min-w-0 flex-1"><p className="text-sm font-semibold text-foreground">{label}</p>@@ -836,7 +836,7 @@ export function KeybindRow({{freeSuggestions.length > 0 && (<div className="mt-3 flex flex-wrap items-center gap-2">- <span className="text-[11px] text-muted-foreground">+ <span className="text-micro text-muted-foreground">{t("voice.shortcuts.suggestions_title")}</span>{freeSuggestions.map((s) => (@@ -845,7 +845,7 @@ export function KeybindRow({type="button"data-testid={`suggestion-${action}-${s}`}onClick={() => assign(s)}- className="rounded-full border border-border bg-background px-2 py-0.5 font-mono text-[11px] text-muted-foreground transition-colors hover:border-primary/60 hover:text-foreground"+ className="rounded-full border border-border bg-background px-2 py-0.5 font-mono text-micro text-muted-foreground transition-colors hover:border-border-strong hover:text-foreground">{formatCombo(s)}</button>@@ -861,7 +861,7 @@ export function KeybindRow({<div className="mt-3 flex flex-wrap items-center gap-2"><buttontype="button"- className="text-[11px] text-muted-foreground underline hover:text-foreground"+ className="text-micro text-muted-foreground underline hover:text-foreground"onClick={() => {if (def) assign(def);}}@@ -878,13 +878,13 @@ export function KeybindRow({}return (- <div className="rounded-md border border-border/60 bg-background/40 p-3">+ <div className="rounded-md border border-border bg-background p-3"><div className="flex items-center justify-between gap-2"><span className="text-xs font-semibold text-foreground">{label}</span>{showReset && (<buttontype="button"- className="text-[11px] text-muted-foreground underline hover:text-foreground"+ className="text-micro text-muted-foreground underline hover:text-foreground"onClick={() => {if (def) assign(def);}}diff --git a/jarvis/ui/web/frontend/src/views/settings/KeyboardMap.tsx b/jarvis/ui/web/frontend/src/views/settings/KeyboardMap.tsxindex 8c3ccbbfd4..cd8caac5ae 100644--- a/jarvis/ui/web/frontend/src/views/settings/KeyboardMap.tsx+++ b/jarvis/ui/web/frontend/src/views/settings/KeyboardMap.tsx@@ -68,16 +68,16 @@ function Key({// Visual precedence: a live press always wins (you must SEE the key you hit),// then the in-combo selection, then the "used by another action" marker.const cls = pressed- ? "border-primary bg-foreground/70 text-primary-foreground"+ ? "border-border-strong bg-primary text-primary-foreground": selected- ? "border-primary bg-primary/20 text-primary"+ ? "bg-secondary text-foreground-strong": boundLabel- ? "border-foreground/50 bg-foreground/10 text-foreground"+ ? "bg-secondary text-foreground": bindable? // Hover stays clearly weaker than the "pressed" fill — a full// bg-accent hover read as "this key is pressed" in live testing.- "border-input bg-background text-foreground hover:border-primary/60 hover:bg-accent/40"- : "border-transparent bg-muted/30 text-muted-foreground/50";+ "border-input bg-background text-foreground hover:border-border-strong hover:bg-secondary"+ : "border-transparent bg-muted text-muted-foreground";return (<button@@ -89,7 +89,7 @@ function Key({disabled={!bindable}onClick={bindable ? () => onToggleToken(token) : undefined}style={{ flexGrow: cap.width ?? 1, flexBasis: 0 }}- className={`relative flex h-7 min-w-0 items-center justify-center rounded border px-0.5 font-mono text-[10px] leading-none transition-colors ${cls} ${+ className={`relative flex h-7 min-w-0 items-center justify-center rounded border px-0.5 font-mono text-micro transition-colors ${cls} ${bindable ? "cursor-pointer" : "cursor-default"}`}>@@ -143,7 +143,7 @@ export function KeyboardMap({const rows = useMemo(() => mainRows(platform), [platform]);return (- <div className="mt-3 rounded-md border border-border/60 bg-background/40 p-2">+ <div className="mt-3 rounded-md border border-border bg-background p-2"><div className="flex flex-wrap items-start gap-3">{/* Main alpha block */}<div className="flex min-w-[280px] flex-1 flex-col gap-1">@@ -197,7 +197,7 @@ export function KeyboardMap({mouseReason && (<pdata-testid="mouse-unavailable"- className="max-w-[10rem] text-[10px] leading-snug text-muted-foreground"+ className="max-w-[10rem] text-micro text-muted-foreground">{mouseReason}</p>@@ -207,13 +207,13 @@ export function KeyboardMap({</div>{/* Legend */}- <div className="mt-2 flex flex-wrap items-center gap-x-3 gap-y-1 text-[10px] text-muted-foreground">+ <div className="mt-2 flex flex-wrap items-center gap-x-3 gap-y-1 text-micro text-muted-foreground"><span className="flex items-center gap-1">- <span className="inline-block h-2.5 w-2.5 rounded-sm bg-foreground/70" />+ <span className="inline-block h-2.5 w-2.5 rounded-sm bg-secondary" />{t("settings_view.keybinds.keyboard.legend_pressed")}</span><span className="flex items-center gap-1">- <span className="inline-block h-2.5 w-2.5 rounded-sm border border-primary bg-primary/20" />+ <span className="inline-block h-2.5 w-2.5 rounded-sm bg-secondary" />{t("settings_view.keybinds.keyboard.legend_selected")}</span><span className="flex items-center gap-1">diff --git a/jarvis/ui/web/frontend/src/views/settings/LanguagesGroup.tsx b/jarvis/ui/web/frontend/src/views/settings/LanguagesGroup.tsxindex b5451800a0..5bc361a3bd 100644--- a/jarvis/ui/web/frontend/src/views/settings/LanguagesGroup.tsx+++ b/jarvis/ui/web/frontend/src/views/settings/LanguagesGroup.tsx@@ -50,7 +50,7 @@ export function LanguagesGroup() {return (<div className="mb-8 space-y-4">- <h3 className="font-display text-xs font-semibold uppercase tracking-wide text-muted-foreground">+ <h3 className="font-display text-xs font-semibold text-muted-foreground">{t("settings_view.languages_group_title")}</h3>@@ -125,7 +125,7 @@ function Section({}) {return (<div>- <div className="mb-1 text-[10px] uppercase tracking-wider text-muted-foreground">+ <div className="mb-1 text-micro text-muted-foreground">{title}</div><div className="mb-3 text-xs text-muted-foreground">{hint}</div>@@ -154,15 +154,15 @@ function LanguageRow({className={cn("flex w-full items-center gap-3 rounded-lg border px-4 py-3 text-left text-sm transition-colors",active- ? "border-primary/40 bg-primary/5 shadow-[0_0_0_1px_hsl(var(--primary)/0.15)]"- : "border-border bg-card/60 hover:border-primary/30 hover:bg-card/80",+ ? "bg-secondary shadow-[0_0_0_1px_hsl(var(--primary)/0.15)]"+ : "border-border bg-card hover:border-border-strong hover:bg-secondary",)}><div className="flex-1"><div className="font-medium">{label}</div><div className="mt-0.5 text-xs text-muted-foreground">{description}</div></div>- {active && <Check className="h-4 w-4 shrink-0 text-primary" />}+ {active && <Check className="h-4 w-4 shrink-0 text-muted-foreground" />}</button></li>);diff --git a/jarvis/ui/web/frontend/src/views/settings/MusicGroup.tsx b/jarvis/ui/web/frontend/src/views/settings/MusicGroup.tsxindex dd24ec18c6..1f8dd52921 100644--- a/jarvis/ui/web/frontend/src/views/settings/MusicGroup.tsx+++ b/jarvis/ui/web/frontend/src/views/settings/MusicGroup.tsx@@ -45,7 +45,7 @@ export function MusicGroup() {const state = connected.has(service)? t("settings_view.music.connected"): t("settings_view.music.not_connected");- return `${t(`settings_view.music.service_options.${service}`)} — ${state}`;+ return `${t}`settings_view.music.service_options.${service}`)} — ${state}`;};const playbackDescription = (mode: MusicPlaybackMode): string => {@@ -58,7 +58,7 @@ export function MusicGroup() {return (<div className="mb-8 space-y-4">- <h3 className="font-display text-xs font-semibold uppercase tracking-wide text-muted-foreground">+ <h3 className="font-display text-xs font-semibold text-muted-foreground">{t("settings_view.music_group_title")}</h3>@@ -108,7 +108,7 @@ function Section({}) {return (<div>- <div className="mb-1 text-[10px] uppercase tracking-wider text-muted-foreground">+ <div className="mb-1 text-micro text-muted-foreground">{title}</div><div className="mb-3 text-xs text-muted-foreground">{hint}</div>@@ -140,15 +140,15 @@ function ChoiceRow({className={cn("flex w-full items-center gap-3 rounded-lg border px-4 py-3 text-left text-sm transition-colors disabled:opacity-60",active- ? "border-primary/40 bg-primary/5 shadow-[0_0_0_1px_hsl(var(--primary)/0.15)]"- : "border-border bg-card/60 hover:border-primary/30 hover:bg-card/80",+ ? "bg-secondary shadow-[0_0_0_1px_hsl(var(--primary)/0.15)]"+ : "border-border bg-card hover:border-border-strong hover:bg-secondary",)}><div className="flex-1"><div className="font-medium">{label}</div><div className="mt-0.5 text-xs text-muted-foreground">{description}</div></div>- {active && <Check className="h-4 w-4 shrink-0 text-primary" />}+ {active && <Check className="h-4 w-4 shrink-0 text-muted-foreground" />}</button></li>);diff --git a/jarvis/ui/web/frontend/src/views/settings/OverlayTaskbarGroup.tsx b/jarvis/ui/web/frontend/src/views/settings/OverlayTaskbarGroup.tsxindex dc9e4804fa..3f1188eec5 100644--- a/jarvis/ui/web/frontend/src/views/settings/OverlayTaskbarGroup.tsx+++ b/jarvis/ui/web/frontend/src/views/settings/OverlayTaskbarGroup.tsx@@ -28,12 +28,12 @@ export function OverlayTaskbarGroup() {return (<div className="mt-8 space-y-4">- <h3 className="font-display text-xs font-semibold uppercase tracking-wide text-muted-foreground">+ <h3 className="font-display text-xs font-semibold text-muted-foreground">{t("settings_view.overlay_taskbar_group_title")}</h3><section>- <h4 className="mb-2 font-display text-xs font-semibold uppercase tracking-wide text-muted-foreground">+ <h4 className="mb-2 font-display text-xs font-semibold text-muted-foreground">{t("taskbar_view.appearance_title")}</h4><OverlayStylePanel />@@ -41,16 +41,16 @@ export function OverlayTaskbarGroup() {</section><section>- <h4 className="mb-2 font-display text-xs font-semibold uppercase tracking-wide text-muted-foreground">+ <h4 className="mb-2 font-display text-xs font-semibold text-muted-foreground">{t("taskbar_view.behavior_title")}</h4>- <div className="overflow-hidden rounded-lg border border-border bg-card/60">+ <div className="overflow-hidden rounded-lg border border-border bg-card"><BarPersistentRow />- <div className="mx-4 border-t border-border/60" />+ <div className="mx-4 border-t border-border" /><FollowCursorRow />- <div className="mx-4 border-t border-border/60" />+ <div className="mx-4 border-t border-border" /><MuteMusicRow />- <div className="mx-4 border-t border-border/60" />+ <div className="mx-4 border-t border-border" /><SoundEffectsRow /></div></section>@@ -76,7 +76,7 @@ function ToggleRow({}) {return (<div className="flex items-start gap-3 p-4">- <Icon className="mt-0.5 h-4 w-4 shrink-0 text-primary" />+ <Icon className="mt-0.5 h-4 w-4 shrink-0 text-muted-foreground" /><div className="min-w-0 flex-1"><div className="font-medium">{title}</div><p className="mt-0.5 text-xs text-muted-foreground">{description}</p>@@ -307,9 +307,9 @@ function OverlayStylePanel() {}return (- <div className="rounded-lg border border-border bg-card/60 p-4">+ <div className="rounded-lg border border-border bg-card p-4"><div className="flex items-start gap-3">- <Monitor className="mt-0.5 h-4 w-4 shrink-0 text-primary" />+ <Monitor className="mt-0.5 h-4 w-4 shrink-0 text-muted-foreground" /><div className="min-w-0 flex-1"><h4 className="font-display text-sm font-semibold">{t("settings_view.overlay_style.title")}@@ -332,11 +332,11 @@ function OverlayStylePanel() {className={cn("flex flex-col items-center gap-2 rounded-lg border p-3 transition-all disabled:opacity-60",opt === style- ? "border-primary bg-primary/5 ring-1 ring-primary/50"- : "border-border bg-background/40 hover:border-primary/50",+ ? "bg-secondary ring-1 ring-primary/50"+ : "border-border bg-background hover:border-border-strong",)}>- <div className="flex h-16 w-full items-center justify-center overflow-hidden rounded-md bg-card/80">+ <div className="flex h-16 w-full items-center justify-center overflow-hidden rounded-md bg-card"><StylePreview style={opt} /></div><span@@ -360,7 +360,7 @@ function OverlayStylePanel() {type="button"onClick={() => onRestartNow(forceArmed)}disabled={restarting}- className="rounded-md border border-primary/50 bg-primary/10 px-3 py-1.5 text-xs font-medium text-primary transition-colors hover:bg-primary/20 disabled:opacity-60"+ className="rounded-md bg-secondary px-3 py-1.5 text-xs font-medium text-foreground-strong transition-colors hover:bg-popover disabled:opacity-60">{restarting? t("taskbar_view.restarting")diff --git a/jarvis/ui/web/frontend/src/views/settings/PermissionsPanel.tsx b/jarvis/ui/web/frontend/src/views/settings/PermissionsPanel.tsxindex ddb033b33f..5a295ff48e 100644--- a/jarvis/ui/web/frontend/src/views/settings/PermissionsPanel.tsx+++ b/jarvis/ui/web/frontend/src/views/settings/PermissionsPanel.tsx@@ -109,7 +109,7 @@ export function PermissionRows({const items = snapshot?.permissions ?? [];if (items.length === 0 || snapshot?.platform !== "darwin") {return (- <div className="flex items-start gap-2 rounded-lg border border-border bg-background/40 p-3 text-xs text-muted-foreground">+ <div className="flex items-start gap-2 rounded-lg border border-border bg-background p-3 text-xs text-muted-foreground"><CheckCircle2 className="mt-0.5 h-4 w-4 shrink-0 text-muted-foreground" />{t("permissions.not_required")}</div>@@ -119,7 +119,7 @@ export function PermissionRows({return (<div className="space-y-2">{snapshot?.app_identity.stable === false && (- <div className="flex items-start gap-2 rounded-lg border border-foreground/40 bg-foreground/5 p-3 text-xs text-foreground">+ <div className="flex items-start gap-2 rounded-lg bg-secondary p-3 text-xs text-foreground"><CircleAlert className="mt-0.5 h-4 w-4 shrink-0" />{t("permissions.identity_warning")}</div>@@ -127,7 +127,7 @@ export function PermissionRows({{/* A rebuild changed the app's signature, so macOS discarded everyrecorded grant. Without this the app just looks amnesic. */}{snapshot?.identity_reset && (- <div className="flex items-start gap-2 rounded-lg border border-foreground/40 bg-foreground/5 p-3 text-xs text-foreground">+ <div className="flex items-start gap-2 rounded-lg bg-secondary p-3 text-xs text-foreground"><CircleAlert className="mt-0.5 h-4 w-4 shrink-0" />{t("permissions.identity_reset")}</div>@@ -149,7 +149,7 @@ export function PermissionRows({</p>)}{snapshot?.restart_required && !deferRestartNote && (- <div className="flex flex-wrap items-center justify-between gap-2 rounded-lg border border-foreground/40 bg-foreground/5 p-3">+ <div className="flex flex-wrap items-center justify-between gap-2 rounded-lg bg-secondary p-3"><p className="text-xs text-foreground">{t("permissions.restart_required")}</p><Button size="sm" disabled={restarting} onClick={() => void restartApp()}>{restarting && <Loader2 className="mr-1.5 h-3.5 w-3.5 animate-spin" />}@@ -207,9 +207,9 @@ function PermissionRow({: item.status;return (- <div className={`rounded-lg border border-border bg-background/40 ${compact ? "p-3" : "p-4"}`}>+ <div className={`rounded-lg border border-border bg-background ${compact ? "p-3" : "p-4"}`}><div className="flex flex-wrap items-center gap-3">- <Icon className="h-4 w-4 shrink-0 text-primary" />+ <Icon className="h-4 w-4 shrink-0 text-muted-foreground" /><div className="min-w-[12rem] flex-1"><div className="text-sm font-medium">{t(`permissions.items.${item.id}.title`)}</div>{/* Compact rows drop descriptions to stay scannable — except when@@ -222,10 +222,10 @@ function PermissionRow({)}</div><span- className={`rounded-full px-2 py-1 text-[10px] font-medium uppercase tracking-wide ${+ className={`rounded-full px-2 py-1 text-micro font-medium ${ready? "bg-muted-foreground/10 text-muted-foreground"- : "bg-foreground/10 text-foreground"+ : "bg-secondary text-foreground"}`}>{t(`permissions.status.${statusKey}`)}@@ -260,7 +260,7 @@ export function PermissionsPanel() {const t = useT();return (<div className="mt-8 space-y-4">- <h3 className="font-display text-xs font-semibold uppercase tracking-wide text-muted-foreground">+ <h3 className="font-display text-xs font-semibold text-muted-foreground">{t("permissions.group_title")}</h3><SettingsBlockdiff --git a/jarvis/ui/web/frontend/src/views/settings/RealtimeVoiceGroup.tsx b/jarvis/ui/web/frontend/src/views/settings/RealtimeVoiceGroup.tsxindex 810bf0bebe..8230931f6d 100644--- a/jarvis/ui/web/frontend/src/views/settings/RealtimeVoiceGroup.tsx+++ b/jarvis/ui/web/frontend/src/views/settings/RealtimeVoiceGroup.tsx@@ -47,7 +47,7 @@ export function RealtimeVoiceGroup() {: transitioning? t("apikeys_view.runtime_switching"): sessionActive && activeSessionMode === "realtime"- ? `${t("apikeys_view.runtime_realtime")}${runtimeDetail ? ` · ${runtimeDetail}` : ""}`+ ? `${t("apikeys_view.runtime_realtime")}${runtimeDetail ?}` · ${runtimeDetail}` : ""}`: sessionActive && activeSessionMode === "pipeline" && on? t("apikeys_view.runtime_fallback_pipeline"): sessionActive@@ -64,9 +64,9 @@ export function RealtimeVoiceGroup() {? t(realtimeTransportIssueKey(transportIssue)): transportOfferDetail;return (- <div className="mt-2 rounded-lg border border-border bg-card/60 p-4">+ <div className="mt-2 rounded-lg border border-border bg-card p-4"><div className="flex items-start gap-3">- <Radio className="mt-0.5 h-4 w-4 shrink-0 text-primary" />+ <Radio className="mt-0.5 h-4 w-4 shrink-0 text-muted-foreground" /><div className="min-w-0 flex-1"><div className="flex items-center justify-between gap-4"><h4 className="font-medium">{t("settings_view.realtime_voice.title")}</h4>@@ -82,13 +82,13 @@ export function RealtimeVoiceGroup() {? t("settings_view.realtime_voice.description"): t("settings_view.realtime_voice.unavailable")}</p>- <p className="mt-1.5 text-[11px] text-muted-foreground" aria-live="polite">+ <p className="mt-1.5 text-micro text-muted-foreground" aria-live="polite">{runtimeText}</p>{on && lastStartError && (<pdata-testid="realtime-last-start-error"- className="mt-1 text-[11px] leading-snug text-foreground"+ className="mt-1 text-micro text-foreground"aria-live="polite">{t("voice_state.connect_failed")@@ -99,7 +99,7 @@ export function RealtimeVoiceGroup() {{offerDetail && (<pdata-testid="realtime-transport-offer-detail"- className="mt-1 text-[11px] leading-snug text-foreground"+ className="mt-1 text-micro text-foreground"aria-live="polite">{offerDetail}diff --git a/jarvis/ui/web/frontend/src/views/settings/ScreenContextGroup.tsx b/jarvis/ui/web/frontend/src/views/settings/ScreenContextGroup.tsxindex e87dc6caf4..9393ad47b2 100644--- a/jarvis/ui/web/frontend/src/views/settings/ScreenContextGroup.tsx+++ b/jarvis/ui/web/frontend/src/views/settings/ScreenContextGroup.tsx@@ -104,9 +104,9 @@ export function ScreenContextGroup() {// mismatch that only became visible once the card got short. Do not// reintroduce a width cap here; the settings column owns the width.return (- <div className="mt-2 rounded-lg border border-border bg-card/60 p-4">+ <div className="mt-2 rounded-lg border border-border bg-card p-4"><div className="flex items-start gap-3">- <Eye className="mt-0.5 h-4 w-4 shrink-0 text-primary" />+ <Eye className="mt-0.5 h-4 w-4 shrink-0 text-muted-foreground" /><div className="min-w-0 flex-1"><div className="flex items-center justify-between gap-4"><h4 className="font-medium">@@ -128,7 +128,7 @@ export function ScreenContextGroup() {</p>{settings?.enabled && status && (<p- className={`mt-1.5 text-[11px] ${+ className={`mt-1.5 text-micro ${status.available ? "text-muted-foreground" : "text-foreground"}`}aria-live="polite"diff --git a/jarvis/ui/web/frontend/src/views/settings/SettingsBlock.tsx b/jarvis/ui/web/frontend/src/views/settings/SettingsBlock.tsxindex 073862d6de..aafbd819fc 100644--- a/jarvis/ui/web/frontend/src/views/settings/SettingsBlock.tsx+++ b/jarvis/ui/web/frontend/src/views/settings/SettingsBlock.tsx@@ -4,9 +4,18 @@ import type { LucideIcon } from "lucide-react";/*** The one shared shell every "Advanced" block (Jarvis-API key, Team mode,* Telephony, Wiki) is built from, so the zone reads as a single consistent list- * of optional integrations instead of four hand-rolled sections. A tinted icon- * tile + title + description on the left, an optional control (a switch, a- * status badge) on the right, and the block's own body below.+ * of optional integrations instead of four hand-rolled sections.+ *+ * A block is an OBJECT: a card sized to its content, capped at the form measure+ * so it never becomes a full-width wall (rule 1 — lift scales inversely with+ * area). Separation is fill first: --card carries it, the hairline only+ * finishes the edge, and there is no shadow because a block does not float.+ *+ * The icon used to sit inside a 36px tinted disc. The disc was a wrapper around+ * one glyph and nothing else, and it made the icon the brightest mark in a row+ * whose heading is the actual subject — so it is gone. What remains is a fixed+ * sizing box in secondary ink, the same construction the shared SectionHeader+ * uses, so a glyph can never out-shout its own title.*/export function SettingsBlock({icon: Icon,@@ -23,29 +32,39 @@ export function SettingsBlock({children?: ReactNode;}) {return (- <section className="jarvis-quiet-panel p-5">+ <section className="max-w-form overflow-hidden rounded-lg border border-border bg-card p-block"><div className="flex items-start gap-3">- <div className="flex h-9 w-9 shrink-0 items-center justify-center rounded-full bg-sheen/[0.08] text-foreground">- <Icon className="h-4 w-4" />- </div>+ <span+ aria-hidden+ className="mt-0.5 flex h-5 w-5 shrink-0 items-center justify-center text-muted-foreground"+ >+ <Icon className="h-5 w-5" />+ </span><div className="min-w-0 flex-1">- <h3 className="text-sm font-medium">{title}</h3>+ <h3 className="text-title font-semibold text-foreground-strong">+ {title}+ </h3>{description && (- <p className="mt-0.5 text-xs leading-relaxed text-muted-foreground">- {description}- </p>+ <p className="mt-1 text-meta text-muted-foreground">{description}</p>)}</div>{headerRight && (<div className="flex shrink-0 items-center pl-2">{headerRight}</div>)}</div>- {children && <div className="mt-4">{children}</div>}+ {children && <div className="mt-block">{children}</div>}</section>);}-/** A labelled form field with the shared uppercase micro-label. */+/**+ * A labelled form field.+ *+ * The label was a 10px uppercase micro-label — below the 11px floor and the+ * exact construction that makes an interface read as an admin panel. It is+ * sentence-case `meta` ink now: a field's label is a quiet caption, not a+ * heading, and it reads as one at 13px without shouting.+ */export function SettingsField({label,children,@@ -55,7 +74,7 @@ export function SettingsField({}) {return (<label className="block">- <span className="mb-1.5 block text-[10px] uppercase tracking-wider text-muted-foreground">+ <span className="mb-1.5 block text-meta text-muted-foreground">{label}</span>{children}@@ -63,6 +82,15 @@ export function SettingsField({);}-/** The shared text-input styling used across the settings blocks. */+/**+ * The shared text-input styling used across the settings blocks.+ *+ * A field is a LIFT surface (`--input`), not the room. It used to be painted+ * `bg-background` with a `--border` hairline: inside a card that is a child+ * darker than its parent, and on near-black the outline had nothing behind it,+ * so a text field read as an empty wireframe rather than as somewhere to type.+ * Fill carries it now and the border is gone. Focus is the shared 2px+ * --border-strong ring, never a coloured hairline.+ */export const settingsInputCls =- "w-full rounded-lg border border-border bg-background px-3 py-2 text-sm text-foreground placeholder:text-muted-foreground/70 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary/40";+ "w-full rounded-md bg-input px-3 py-2 text-body text-foreground placeholder:text-faint-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-strong";diff --git a/jarvis/ui/web/frontend/src/views/settings/SettingsGroupBoundary.tsx b/jarvis/ui/web/frontend/src/views/settings/SettingsGroupBoundary.tsxindex 4ed937c395..10084b3192 100644--- a/jarvis/ui/web/frontend/src/views/settings/SettingsGroupBoundary.tsx+++ b/jarvis/ui/web/frontend/src/views/settings/SettingsGroupBoundary.tsx@@ -74,9 +74,9 @@ export class SettingsGroupBoundary extends Component<}return (- <div className="mt-2 rounded-lg border border-destructive/30 bg-card/60 p-4">+ <div className="mt-2 rounded-lg border border-destructive/30 bg-card p-4"><div className="flex items-start gap-3">- <div className="rounded-md bg-destructive/10 p-2 text-destructive">+ <div className="rounded-md bg-secondary p-2 text-destructive"><AlertTriangle className="h-4 w-4" /></div><div className="min-w-0 flex-1">@@ -87,7 +87,7 @@ export class SettingsGroupBoundary extends Component<{translate("view_error_boundary.group_hint")}</p>{this.state.message && (- <pre className="mt-2 max-h-24 overflow-auto rounded-md border border-border bg-background/80 p-2 text-[11px] text-muted-foreground">+ <pre className="mt-2 max-h-24 overflow-auto rounded-md border border-border bg-background p-2 text-micro text-muted-foreground">{this.state.message}</pre>)}diff --git a/jarvis/ui/web/frontend/src/views/settings/SilenceWindowGroup.tsx b/jarvis/ui/web/frontend/src/views/settings/SilenceWindowGroup.tsxindex 9f9f8ea388..bb56e42663 100644--- a/jarvis/ui/web/frontend/src/views/settings/SilenceWindowGroup.tsx+++ b/jarvis/ui/web/frontend/src/views/settings/SilenceWindowGroup.tsx@@ -96,15 +96,15 @@ export function SilenceWindowGroup() {const showReset = ms !== defaultMs;return (- <div className="mt-2 rounded-lg border border-border bg-card/60 p-4">+ <div className="mt-2 rounded-lg border border-border bg-card p-4"><div className="flex items-start gap-3">- <Timer className="mt-0.5 h-4 w-4 shrink-0 text-primary" />+ <Timer className="mt-0.5 h-4 w-4 shrink-0 text-muted-foreground" /><div className="min-w-0 flex-1"><div className="flex items-center justify-between gap-4"><h4 className="font-display text-sm font-semibold">{t("settings_view.silence_window.title")}</h4>- <span className="font-mono text-sm text-primary">{describe(ms)}</span>+ <span className="font-mono text-sm text-foreground-strong">{describe(ms)}</span></div><p className="mt-1 text-xs text-muted-foreground">{t("settings_view.silence_window.description")}@@ -125,7 +125,7 @@ export function SilenceWindowGroup() {/>{isAutomatic && (- <p className="mt-2 text-[11px] text-muted-foreground">+ <p className="mt-2 text-micro text-muted-foreground">{t("settings_view.silence_window.automatic_caption")}</p>)}@@ -135,7 +135,7 @@ export function SilenceWindowGroup() {type="button"onClick={onReset}disabled={saving}- className="mt-3 text-[11px] text-muted-foreground underline hover:text-foreground disabled:opacity-50"+ className="mt-3 text-micro text-muted-foreground underline hover:text-foreground disabled:opacity-50">{t("settings_view.silence_window.reset")}</button>diff --git a/jarvis/ui/web/frontend/src/views/settings/SystemPromptGroup.tsx b/jarvis/ui/web/frontend/src/views/settings/SystemPromptGroup.tsxindex 9107645b15..dc59d0e493 100644--- a/jarvis/ui/web/frontend/src/views/settings/SystemPromptGroup.tsx+++ b/jarvis/ui/web/frontend/src/views/settings/SystemPromptGroup.tsx@@ -61,19 +61,19 @@ export function SystemPromptGroup() {}return (- <div className="mt-2 rounded-lg border border-border bg-card/60 p-4">+ <div className="mt-2 rounded-lg border border-border bg-card p-4"><div className="flex items-start gap-3">- <FileText className="mt-0.5 h-4 w-4 shrink-0 text-primary" />+ <FileText className="mt-0.5 h-4 w-4 shrink-0 text-muted-foreground" /><div className="min-w-0 flex-1"><div className="flex items-center gap-2"><h4 className="font-display text-sm font-semibold">{t("settings_view.system_prompt.title")}</h4><span- className={`rounded-full px-2 py-0.5 text-[10px] font-medium uppercase tracking-wide ${+ className={`rounded-full px-2 py-0.5 text-micro font-medium ${isCustom- ? "border border-primary/40 bg-primary/10 text-primary"- : "border border-border bg-muted/60 text-muted-foreground"+ ? "bg-secondary text-foreground-strong"+ : "border border-border bg-muted text-muted-foreground"}`}>{isCustom@@ -98,15 +98,15 @@ export function SystemPromptGroup() {spellCheck={false}rows={14}placeholder={t("settings_view.system_prompt.placeholder")}- className="jarvis-input-surface mt-1 w-full resize-y rounded-md border border-input px-3 py-2 font-mono text-xs leading-relaxed focus:outline-none focus:ring-1 focus:ring-primary disabled:opacity-50"+ className="jarvis-input-surface mt-1 w-full resize-y rounded-md border border-input px-3 py-2 font-mono text-xs leading-relaxed focus:outline-none focus:ring-2 focus:ring-border-strong disabled:opacity-50"/><div className="mt-1.5 flex items-center justify-between">- <span className="font-mono text-[11px] text-muted-foreground">+ <span className="font-mono text-micro text-muted-foreground">{t("settings_view.system_prompt.chars").replace("{0}", String(draft.length))}</span>{trimmedEmpty && (- <span className="text-[11px] text-foreground">+ <span className="text-micro text-foreground">{t("settings_view.system_prompt.empty_hint")}</span>)}@@ -134,7 +134,7 @@ export function SystemPromptGroup() {</Button></div>- <p className="mt-3 text-[11px] text-muted-foreground">+ <p className="mt-3 text-micro text-muted-foreground">{t("settings_view.system_prompt.applies_next_turn")}</p></div>diff --git a/jarvis/ui/web/frontend/src/views/settings/TeamProxyGroup.tsx b/jarvis/ui/web/frontend/src/views/settings/TeamProxyGroup.tsxindex 60bde06827..2732b7792e 100644--- a/jarvis/ui/web/frontend/src/views/settings/TeamProxyGroup.tsx+++ b/jarvis/ui/web/frontend/src/views/settings/TeamProxyGroup.tsx@@ -159,7 +159,7 @@ export function TeamProxyGroup() {</div><div>- <div className="mb-2 text-[10px] uppercase tracking-wider text-muted-foreground">+ <div className="mb-2 text-micro text-muted-foreground">{t("settings_view.team_proxy.local_label")}</div><div className="flex flex-wrap gap-2">@@ -174,7 +174,7 @@ export function TeamProxyGroup() {className={cn("inline-flex items-center gap-2 rounded-full border px-3 py-1.5 text-xs transition-colors",on- ? "border-primary/50 bg-primary/10 text-primary"+ ? "bg-secondary text-foreground-strong": "border-border text-muted-foreground hover:text-foreground",)}>@@ -182,7 +182,7 @@ export function TeamProxyGroup() {className={cn("flex h-3.5 w-3.5 items-center justify-center rounded border",on- ? "border-primary bg-foreground/70 text-primary-foreground"+ ? "border-border-strong bg-primary text-primary-foreground": "border-muted-foreground/50",)}>diff --git a/jarvis/ui/web/frontend/src/views/settings/VolumeGroup.tsx b/jarvis/ui/web/frontend/src/views/settings/VolumeGroup.tsxindex 5cc10592f8..27e414c439 100644--- a/jarvis/ui/web/frontend/src/views/settings/VolumeGroup.tsx+++ b/jarvis/ui/web/frontend/src/views/settings/VolumeGroup.tsx@@ -69,15 +69,15 @@ export function VolumeGroup() {const showReset = pct !== Math.round((config?.default ?? 1) * 100);return (- <div className="mt-2 rounded-lg border border-border bg-card/60 p-4">+ <div className="mt-2 rounded-lg border border-border bg-card p-4"><div className="flex items-start gap-3">- <Volume2 className="mt-0.5 h-4 w-4 shrink-0 text-primary" />+ <Volume2 className="mt-0.5 h-4 w-4 shrink-0 text-muted-foreground" /><div className="min-w-0 flex-1"><div className="flex items-center justify-between gap-4"><h4 className="font-display text-sm font-semibold">{t("settings_view.volume.title")}</h4>- <span className="font-mono text-sm text-primary">{`${pct}%`}</span>+ <span className="font-mono text-sm text-foreground-strong">{`${pct}%`}</span></div><p className="mt-1 text-xs text-muted-foreground">{t("settings_view.volume.description")}@@ -102,7 +102,7 @@ export function VolumeGroup() {type="button"onClick={onReset}disabled={saving}- className="mt-3 text-[11px] text-muted-foreground underline hover:text-foreground disabled:opacity-50"+ className="mt-3 text-micro text-muted-foreground underline hover:text-foreground disabled:opacity-50">{t("settings_view.volume.reset")}</button>diff --git a/jarvis/ui/web/frontend/src/views/settings/WikiProviderCard.tsx b/jarvis/ui/web/frontend/src/views/settings/WikiProviderCard.tsxindex d2cb99139f..e030780a65 100644--- a/jarvis/ui/web/frontend/src/views/settings/WikiProviderCard.tsx+++ b/jarvis/ui/web/frontend/src/views/settings/WikiProviderCard.tsx@@ -64,7 +64,7 @@ export function WikiProviderCard() {pushToast("success",next.provider- ? `Wiki → ${next.provider}${next.model ? ` · ${next.model}` : ""}`+ ? `Wiki → ${next.provider}${next.model ?}` · ${next.model}` : ""}`: t("wiki_provider.follow_primary"),);} catch (e) {@@ -135,7 +135,7 @@ export function WikiProviderCard() {{!loading && data && (<div className="space-y-4">{/* "How does this work?" — native <details>, the app's collapsible idiom. */}- <details className="group rounded-md border border-border/60 bg-muted/20 px-3 py-2">+ <details className="group rounded-md border border-border bg-muted px-3 py-2"><summary className="flex cursor-pointer select-none list-none items-center gap-1.5 text-xs font-medium text-muted-foreground hover:text-foreground [&::-webkit-details-marker]:hidden"><Info className="h-3.5 w-3.5 shrink-0" />{t("wiki_provider.how_title")}@@ -197,7 +197,7 @@ export function WikiProviderCard() {type="button"onClick={() => void handleModelReset()}disabled={pending}- className="text-[11px] text-muted-foreground underline-offset-2 hover:text-foreground hover:underline"+ className="text-micro text-muted-foreground underline-offset-2 hover:text-foreground hover:underline">{t("wiki_provider.model_reset")}</button>@@ -209,23 +209,23 @@ export function WikiProviderCard() {{/* Honest ground truth: what the next maintenance run will actually use. */}{resolved && resolved.provider && (<div className="space-y-1">- <p className="text-[11px] text-muted-foreground">+ <p className="text-micro text-muted-foreground">{t("wiki_provider.resolved_label")}{" "}- <span className="font-mono text-foreground/80">+ <span className="font-mono text-foreground">{resolved.provider}{" · "}{resolved.model || t("wiki_provider.provider_default_model")}</span></p>{resolved.ready === false && (- <p className="text-[11px] text-foreground">+ <p className="text-micro text-foreground">{t("wiki_provider.resolved_fallback_warning")}</p>)}</div>)}- <p className="text-[11px] text-muted-foreground">+ <p className="text-micro text-muted-foreground">{t("wiki_provider.model_hint")}</p>diff --git a/jarvis/ui/web/frontend/src/views/tasks/TaskCreateDialog.tsx b/jarvis/ui/web/frontend/src/views/tasks/TaskCreateDialog.tsxindex 0ce84f6dba..2c933dcbb0 100644--- a/jarvis/ui/web/frontend/src/views/tasks/TaskCreateDialog.tsx+++ b/jarvis/ui/web/frontend/src/views/tasks/TaskCreateDialog.tsx@@ -248,7 +248,7 @@ export function TaskCreateDialog({ onClose, initialDraft }: TaskCreateDialogProponClick={onClose}><div- className="flex max-h-[90vh] w-full max-w-2xl flex-col overflow-hidden rounded-2xl border border-border bg-card"+ className="flex max-h-[90vh] w-full max-w-2xl flex-col overflow-hidden rounded-lg bg-popover shadow-float"onClick={(e) => e.stopPropagation()}>{/* Header */}diff --git a/jarvis/ui/web/frontend/src/views/voice/DictationHistoryGroup.tsx b/jarvis/ui/web/frontend/src/views/voice/DictationHistoryGroup.tsxindex 4d7555a5d1..99ad61ce51 100644--- a/jarvis/ui/web/frontend/src/views/voice/DictationHistoryGroup.tsx+++ b/jarvis/ui/web/frontend/src/views/voice/DictationHistoryGroup.tsx@@ -1,6 +1,7 @@-import { useState } from "react";+import { useState, type ReactNode } from "react";import { Check, Copy, RotateCcw, Trash2, Volume2 } from "lucide-react";+import { Badge } from "@/components/ui/badge";import {cleanupReasonLabel,DICTATION_OUTCOMES,@@ -11,7 +12,7 @@ import {import { useT } from "@/i18n";/**- * One day's worth of dictations — a sticky date header plus its rows.+ * One day's worth of dictations — a date header plus its rows.** Grouping by day is what turns a flat list into something you can actually* read back: "what did I dictate this morning" is a question about a day, not@@ -42,14 +43,21 @@ export function DictationHistoryGroup({copiedId,}: DictationHistoryGroupProps) {return (- <section className="mt-4 first:mt-0" data-testid="dictation-history-group">+ <section className="mt-group first:mt-0" data-testid="dictation-history-group">+ {/* A quiet date divider, not a heading. It used to be an 11px uppercase+ label with letter-spacing — the one construction that makes a screen+ read as an admin panel, and it competed with the card title two lines+ above it for no reason. */}<h5- className="text-[11px] font-semibold uppercase tracking-wide text-muted-foreground"+ className="text-meta text-muted-foreground"data-testid="dictation-history-group-label">{label}</h5>- <ul className="mt-1 divide-y divide-border/60">+ {/* No dividers. Separation between rows is the hover fill and the+ padding, the way both reference apps do it; a rule under every row+ drew a table over what is meant to read as a transcript. */}+ <ul className="mt-1">{entries.map((entry) => (<HistoryRowkey={entry.id}@@ -67,6 +75,24 @@ export function DictationHistoryGroup({);}+/**+ * Which status hue an outcome earns.+ *+ * Only two outcomes carry colour at all. A failure is a fault; the three that+ * mean "some of this did not arrive" are degraded. Everything that worked+ * stays neutral — a green chip on every successful row would put hue on 90 %+ * of the list and leave the two rows that need looking at with nowhere louder+ * to go. "Cancelled" in particular stays quiet: a bright chip on the one+ * outcome the user caused themselves inverts the whole ramp.+ */+function outcomeVariant(outcome: string): "fault" | "degraded" | "secondary" {+ if (outcome === "failed") return "fault";+ if (outcome === "unavailable" || outcome === "partial" || outcome === "empty") {+ return "degraded";+ }+ return "secondary";+}+function HistoryRow({entry,busy,@@ -120,66 +146,58 @@ function HistoryRow({return (<li- className="group flex items-start gap-2 py-2.5"+ // The hover fill is drawn on the WHOLE row, inset from the card's own+ // padding rather than on any one control inside it.+ className="group -mx-2 flex items-start gap-2 rounded-md px-3 py-3 transition-colors hover:bg-secondary"data-testid="dictation-history-row"data-entry-id={entry.id}><div className="min-w-0 flex-1">+ {/* The transcript is the reason this screen exists, so it is set as+ prose — 15/1.6 in body ink — instead of as another 14px interface+ label. Its measure is bounded by the column, not by the window. */}<p- className={`break-words text-sm ${- entry.discarded ? "text-muted-foreground line-through" : ""+ className={`break-words text-reading ${+ entry.discarded+ ? "text-muted-foreground line-through"+ : "text-foreground"}`}>{entry.text || entry.raw_text}</p>{cleaned && (- <p className="mt-0.5 break-words text-[11px] text-muted-foreground">+ <p className="mt-1 break-words text-meta text-muted-foreground">{t("dictation.raw_prefix")} {entry.raw_text}</p>)}{entry.error && (<p- className="mt-0.5 break-words text-[11px] text-destructive"+ className="mt-1 break-words text-meta text-destructive"data-testid="dictation-failure-reason">{failureLabel(t, entry.error)}</p>)}- <div className="mt-1 flex flex-wrap items-center gap-2 text-[10px] text-muted-foreground">+ <div className="mt-2 flex flex-wrap items-center gap-2 text-meta text-muted-foreground"><span>{new Date(entry.created_at).toLocaleTimeString()}</span>{entry.outcome && (- <span- className={`rounded-full border px-1.5 py-0.5 ${- entry.outcome === "failed"- ? "border-destructive/40 bg-destructive/10 text-destructive"- : "border-border bg-muted/60"- }`}+ <Badge+ variant={outcomeVariant(entry.outcome)}data-testid="dictation-outcome-badge">{outcomeLabel(t, entry.outcome)}- </span>+ </Badge>)}{entry.discarded && (- <span- className="rounded-full border border-border bg-muted/60 px-1.5 py-0.5"- data-testid="dictation-discarded-badge"- >+ <Badge variant="secondary" data-testid="dictation-discarded-badge">{t("dictation.discarded_badge")}- </span>+ </Badge>)}{entry.audio_available && (- <span className="flex items-center gap-1">- <Volume2 className="h-3 w-3" />+ <Badge variant="secondary" className="gap-1">+ <Volume2 aria-hidden="true" className="h-3 w-3" />{t("dictation.audio_kept")}- </span>- )}- {entry.removed_words > 0 && (- <span>- {t("dictation.removed_words").replace(- "{0}",- String(entry.removed_words),- )}- </span>+ </Badge>)}{/* What the wording pass did to this row. "off" is the one valueworth hiding — the feature being switched off is not an event,@@ -188,13 +206,13 @@ function HistoryRow({why", and both are things the person who spoke deserves to seenext to their own words. */}{polishBadge && (- <span- className="rounded-full border border-border bg-muted/60 px-1.5 py-0.5"+ <Badge+ variant="secondary"data-testid="dictation-polish-badge"title={polishTitle || undefined}>{polishStatusLabel(t, polishBadge)}- </span>+ </Badge>)}{/* The filler cleanup's own verdict, and the reason this badgeexists at all: outside its three rule languages the cleanup is a@@ -202,16 +220,16 @@ function HistoryRow({switch sitting ON while nothing ever happened. "disabled" isskipped — that one the user did themselves. */}{cleanupBadge && (- <span- className="rounded-full border border-border bg-muted/60 px-1.5 py-0.5"+ <Badge+ variant="secondary"data-testid="dictation-cleanup-reason-badge">{cleanupReasonLabel(t, cleanupBadge)}- </span>+ </Badge>)}</div>{entry.discarded && (- <div className="mt-1.5">+ <div className="mt-2"><buttontype="button"disabled={busy}@@ -223,7 +241,7 @@ function HistoryRow({onDelete();}}data-testid="dictation-delete-permanently"- className="rounded px-1.5 py-0.5 text-[10px] font-medium text-muted-foreground transition hover:text-destructive disabled:opacity-50"+ className="rounded-md text-meta text-muted-foreground transition-colors hover:text-destructive focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-strong disabled:opacity-50">{confirmDelete? `${t("dictation.delete_permanently")} ?`@@ -232,52 +250,90 @@ function HistoryRow({</div>)}</div>- <div className="flex shrink-0 items-center gap-0.5">- <button- type="button"+ {/* Row actions appear when the row does. They are still in the document+ and still reachable by keyboard — focus inside the row reveals them+ the same way the pointer does. */}+ <div className="flex shrink-0 items-center gap-1 opacity-0 transition-opacity group-hover:opacity-100 group-focus-within:opacity-100">+ <RowActiononClick={onCopy}- aria-label={copied ? t("dictation.copied") : t("dictation.copy")}- title={copied ? t("dictation.copied") : t("dictation.copy")}- data-testid="dictation-copy-entry"- className="rounded p-1 text-muted-foreground transition hover:text-foreground"+ label={copied ? t("dictation.copied") : t("dictation.copy")}+ testId="dictation-copy-entry">{copied ? (- <Check className="h-3.5 w-3.5 text-muted-foreground" />+ <Check aria-hidden="true" className="h-3.5 w-3.5" />) : (- <Copy className="h-3.5 w-3.5" />+ <Copy aria-hidden="true" className="h-3.5 w-3.5" />)}- </button>+ </RowAction>{canRestore && (- <button- type="button"+ <RowActiondisabled={busy}onClick={onRestore}- aria-label={t("dictation.restore")}+ label={t("dictation.restore")}title={t("dictation.restore_hint")}- data-testid="dictation-restore-entry"- className="rounded p-1 text-muted-foreground transition hover:text-primary disabled:opacity-50"+ testId="dictation-restore-entry">- <RotateCcw className="h-3.5 w-3.5" />- </button>+ <RotateCcw aria-hidden="true" className="h-3.5 w-3.5" />+ </RowAction>)}{!entry.discarded && (- <button- type="button"+ <RowActiondisabled={busy}onClick={onDiscard}- aria-label={t("dictation.discard")}- title={t("dictation.discard")}- data-testid="dictation-discard-entry"- className="rounded p-1 text-muted-foreground opacity-0 transition group-hover:opacity-100 hover:text-destructive disabled:opacity-50"+ label={t("dictation.discard")}+ testId="dictation-discard-entry"+ destructive>- <Trash2 className="h-3.5 w-3.5" />- </button>+ <Trash2 aria-hidden="true" className="h-3.5 w-3.5" />+ </RowAction>)}</div></li>);}+/**+ * One icon button in a row's action strip.+ *+ * The three used to hover to three different inks — foreground, --primary and+ * --destructive — which made the same gesture mean three things. Now they all+ * answer the pointer the way every other control in the app does: one step up+ * the surface ladder. Only discarding, which changes something, keeps a hue.+ */+function RowAction({+ children,+ label,+ title,+ testId,+ onClick,+ disabled,+ destructive,+}: {+ children: ReactNode;+ label: string;+ title?: string;+ testId: string;+ onClick: () => void;+ disabled?: boolean;+ destructive?: boolean;+}) {+ return (+ <button+ type="button"+ disabled={disabled}+ onClick={onClick}+ aria-label={label}+ title={title ?? label}+ data-testid={testId}+ className={`rounded-md p-1.5 text-muted-foreground transition-colors hover:bg-popover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-strong disabled:opacity-50 ${+ destructive ? "hover:text-destructive" : "hover:text-foreground"+ }`}+ >+ {children}+ </button>+ );+}+const KNOWN_OUTCOMES: ReadonlySet<string> = new Set(DICTATION_OUTCOMES);const KNOWN_FAILURES: ReadonlySet<string> = new Set(STT_FAILURE_REASONS);diff --git a/jarvis/ui/web/frontend/src/views/voice/DictationStatsBar.tsx b/jarvis/ui/web/frontend/src/views/voice/DictationStatsBar.tsxindex 2c2e1ee7d4..9d3a3d5fff 100644--- a/jarvis/ui/web/frontend/src/views/voice/DictationStatsBar.tsx+++ b/jarvis/ui/web/frontend/src/views/voice/DictationStatsBar.tsx@@ -1,5 +1,4 @@-import { Flame, Gauge, Type } from "lucide-react";-+import { Card } from "@/components/ui/card";import type { DictationStats } from "@/hooks/useDictation";import { useT } from "@/i18n";@@ -14,6 +13,13 @@ import { useT } from "@/i18n";* N days" instead — a 30-day slice labelled "All time" would quietly understate* every long-time user's numbers.*+ * That window line now stands where the card's own title used to. Three+ * numbers labelled "Words", "Words per minute" and "Day streak" do not need a+ * heading saying "Your dictation" above them — it repeated what the tiles+ * already said — while the window they cover is the one fact nothing else on+ * the screen carries. The three decorative icons went for the same reason: at+ * --primary they rendered brighter than the numbers they decorated.+ ** Informational only. No goal, no nag, no popup.*/export function DictationStatsBar({ stats }: { stats: DictationStats }) {@@ -28,68 +34,60 @@ export function DictationStatsBar({ stats }: { stats: DictationStats }) {);return (- <div- className="rounded-lg border border-border bg-card/60 p-4"- data-testid="dictation-stats"- >- <div className="flex items-center justify-between gap-3">- <h4 className="font-display text-sm font-semibold">- {t("dictation.stats.title")}- </h4>- <span- className="rounded-full border border-border bg-muted/60 px-2 py-0.5 text-[10px] font-medium text-muted-foreground"- data-testid="dictation-stats-window"- >- {windowLabel}- </span>- </div>- <div className="mt-3 grid gap-3 sm:grid-cols-3">+ <Card className="p-5" data-testid="dictation-stats">+ <p+ className="text-meta text-muted-foreground"+ data-testid="dictation-stats-window"+ >+ {windowLabel}+ </p>+ <div className="mt-stack grid gap-stack sm:grid-cols-3"><StatTile- icon={<Type className="h-3.5 w-3.5 text-primary" />}label={t("dictation.stats.words")}value={formatCount(stats.totals.words)}testId="dictation-stat-words"/><StatTile- icon={<Gauge className="h-3.5 w-3.5 text-primary" />}label={t("dictation.stats.wpm")}value={formatWpm(stats.totals.wpm)}testId="dictation-stat-wpm"/><StatTile- icon={<Flame className="h-3.5 w-3.5 text-primary" />}label={t("dictation.stats.streak")}value={formatCount(stats.streak.current_days)}testId="dictation-stat-streak"/></div>- </div>+ </Card>);}+/**+ * One tile: the number first, its name under it.+ *+ * --secondary, one step ABOVE the card it sits in. It used to be+ * `bg-background/40` inside `bg-card/60`, which rendered the three headline+ * numbers darker than their own container — a child below its parent, and on+ * exactly the elements someone opens this screen to read.+ */function StatTile({- icon,label,value,testId,}: {- icon: React.ReactNode;label: string;value: string;testId: string;}) {return (- <div className="rounded-md border border-border/60 bg-background/40 p-3">- <div className="flex items-center gap-1.5 text-[11px] text-muted-foreground">- {icon}- <span className="truncate">{label}</span>- </div>+ <div className="rounded-md bg-secondary p-4"><p- className="mt-1 font-display text-xl font-semibold tabular-nums"+ className="text-display tabular-nums text-foreground-strong"data-testid={testId}>{value}</p>+ <p className="mt-1 text-meta text-muted-foreground">{label}</p></div>);}diff --git a/jarvis/ui/web/frontend/src/views/voice/LanguageTab.tsx b/jarvis/ui/web/frontend/src/views/voice/LanguageTab.tsxindex b93a6e3ce6..45dea5c10a 100644--- a/jarvis/ui/web/frontend/src/views/voice/LanguageTab.tsx+++ b/jarvis/ui/web/frontend/src/views/voice/LanguageTab.tsx@@ -1,18 +1,14 @@import { useState } from "react";-import {- ArrowRightLeft,- Info,- Languages,- Loader2,- MessageSquare,- PlugZap,- Scissors,- Sparkles,- Wand2,-} from "lucide-react";+// Five decorative glyphs left this file — one per card heading, plus two on+// the sub-rows. Every one of them was --primary, which is a FILL: they+// rendered brighter than the headings they were decorating and inverted the+// ink ramp on a screen that is otherwise all reading. Nothing was lost with+// them, because each sat beside a heading that already said the same word.+import { Info, Languages, Loader2, PlugZap } from "lucide-react";import { ViewHeader } from "@/views/ChatsView";import { Button } from "@/components/ui/button";+import { Card } from "@/components/ui/card";import { Switch } from "@/components/ui/switch";import {polishStatusLabel,@@ -22,6 +18,7 @@ import {} from "@/hooks/useDictation";import { Combobox } from "@/components/ui/combobox";import { LanguageSelect } from "@/components/ui/language-select";+import { SkeletonBar } from "@/components/layout/PanelSkeleton";import { ApiKeyForm } from "@/components/ApiKeyForm";import { useProviders } from "@/hooks/useProviders";import { useEventStore } from "@/store/events";@@ -254,7 +251,7 @@ export function LanguageTab({ hideHeader = false }: LanguageTabProps = {}) {<div className="flex h-full flex-col">{!hideHeader && (<ViewHeader- icon={<Languages className="h-4 w-4 text-primary" />}+ icon={<Languages className="h-4 w-4 text-foreground" />}title={t("voice.language.title")}subtitle={t("voice.language.description")}/>@@ -263,24 +260,26 @@ export function LanguageTab({ hideHeader = false }: LanguageTabProps = {}) {className="flex-1 overflow-y-auto scrollbar-jarvis p-6"data-testid="voice-language-tab">- <div className="mx-auto flex max-w-3xl flex-col gap-4">- {error && <p className="text-xs text-destructive">{error}</p>}-- <div className="rounded-lg border border-border bg-card/60 p-4">- <h4 className="font-display text-sm font-semibold">+ {/* Four settings groups at the form measure, 32px apart. They used to+ run together at 16px inside cards painted with an opacity, which is+ what made this tab read as one long undifferentiated mesh. */}+ <div className="mx-auto flex max-w-form flex-col gap-group">+ {error && <p className="text-meta text-destructive">{error}</p>}++ <Card className="p-5">+ <h4 className="text-title font-semibold text-foreground-strong">{t("voice.language.title")}</h4>- <p className="mt-1 text-xs text-muted-foreground">+ <p className="mt-1 text-meta text-muted-foreground">{t("voice.language.description")}</p>{loading ? (- <div className="mt-3 flex items-center gap-2 text-xs text-muted-foreground">- <Loader2 className="h-3.5 w-3.5 animate-spin" />- {t("dictation.loading")}+ <div className="mt-block max-w-xs">+ <SkeletonBar className="h-9 w-full" /></div>) : (- <div className="mt-3 max-w-xs">+ <div className="mt-block max-w-xs"><LanguageSelectvalue={value}codes={languageCodes}@@ -292,25 +291,27 @@ export function LanguageTab({ hideHeader = false }: LanguageTabProps = {}) {</div>)}- <div className="mt-4 flex items-start gap-2 rounded-md border border-border/60 bg-background/40 p-3">- <Info className="mt-0.5 h-3.5 w-3.5 shrink-0 text-primary" />+ {/* A well inside a card steps UP to --secondary. It used to be+ --background at 40 %, which rendered the note darker than the+ card holding it. */}+ <div className="mt-block flex items-start gap-2 rounded-md bg-secondary p-3">+ <Info+ aria-hidden="true"+ className="mt-0.5 h-3.5 w-3.5 shrink-0 text-muted-foreground"+ /><p- className="text-[11px] text-muted-foreground"+ className="text-meta text-muted-foreground"data-testid="dictation-language-hint">{t("voice.language.auto_hint")}</p></div>- </div>+ </Card>- <div- className="rounded-lg border border-border bg-card/60 p-4"- data-testid="dictation-polish-card"- >+ <Card className="p-5" data-testid="dictation-polish-card"><div className="flex items-start justify-between gap-4"><div className="min-w-0">- <h4 className="flex items-center gap-2 font-display text-sm font-semibold">- <Wand2 aria-hidden="true" className="h-3.5 w-3.5 text-primary" />+ <h4 className="text-title font-semibold text-foreground-strong">{t("voice.polish.title")}</h4>{/* The honest trade, in one line: what it changes, what it does@@ -318,7 +319,7 @@ export function LanguageTab({ hideHeader = false }: LanguageTabProps = {}) {a model rewrite their own words deserves to read that beforethe switch, not after. */}<p- className="mt-1 text-xs text-muted-foreground"+ className="mt-1 text-meta text-muted-foreground"data-testid="dictation-polish-description">{t("voice.polish.description")}@@ -331,7 +332,7 @@ export function LanguageTab({ hideHeader = false }: LanguageTabProps = {}) {whether the switch is on or off, because someone decidingto turn it ON is exactly who needs it. */}<p- className="mt-1.5 text-[11px] text-muted-foreground"+ className="mt-1 text-meta text-muted-foreground"data-testid="dictation-polish-sends-text">{t("voice.polish.sends_text")}@@ -351,16 +352,17 @@ export function LanguageTab({ hideHeader = false }: LanguageTabProps = {}) {switched off — hiding the switch there would leave it silentlyin force with no way to see or reach it (AP-31). */}<div- className="mt-3 flex items-start justify-between gap-4 border-t border-border/60 pt-3"+ className="mt-block flex items-start justify-between gap-4 border-t border-border pt-block"data-testid="dictation-precision-row"><div className="min-w-0">- <h5 className="flex items-center gap-2 text-xs font-semibold">- <Scissors aria-hidden="true" className="h-3 w-3 text-primary" />+ {/* A row title inside a card is ink, not ink-strong — the+ card's own heading keeps that step to itself. */}+ <h5 className="text-title font-semibold text-foreground">{t("voice.polish.precision_title")}</h5><p- className="mt-1 text-[11px] text-muted-foreground"+ className="mt-1 text-meta text-muted-foreground"data-testid="dictation-precision-description">{t("voice.polish.precision_description")}@@ -371,7 +373,7 @@ export function LanguageTab({ hideHeader = false }: LanguageTabProps = {}) {is the difference between "off by default" and "on bydefault" for everything else on this card. */}<p- className="mt-1.5 text-[11px] text-muted-foreground"+ className="mt-1 text-meta text-muted-foreground"data-testid="dictation-precision-tradeoff">{t("voice.polish.precision_tradeoff")}@@ -394,19 +396,15 @@ export function LanguageTab({ hideHeader = false }: LanguageTabProps = {}) {own. Showing it while the formatter is off would be a switchthat saves, reads as on, and does nothing (AP-31). */}<div- className="mt-3 flex items-start justify-between gap-4 border-t border-border/60 pt-3"+ className="mt-block flex items-start justify-between gap-4 border-t border-border pt-block"data-testid="dictation-conversation-row"><div className="min-w-0">- <h5 className="flex items-center gap-2 text-xs font-semibold">- <MessageSquare- aria-hidden="true"- className="h-3 w-3 text-primary"- />+ <h5 className="text-title font-semibold text-foreground">{t("voice.polish.conversation_title")}</h5><p- className="mt-1 text-[11px] text-muted-foreground"+ className="mt-1 text-meta text-muted-foreground"data-testid="dictation-conversation-description">{t("voice.polish.conversation_description")}@@ -415,7 +413,7 @@ export function LanguageTab({ hideHeader = false }: LanguageTabProps = {}) {path, answered before it is asked. It runs beside thereply, never in front of it. */}<p- className="mt-1.5 text-[11px] text-muted-foreground"+ className="mt-1 text-meta text-muted-foreground"data-testid="dictation-conversation-latency">{t("voice.polish.conversation_latency")}@@ -434,8 +432,12 @@ export function LanguageTab({ hideHeader = false }: LanguageTabProps = {}) {a native <select> sitting right beside one would put theoperating system's own grey list back on the card. Nosearch field: this list is six entries, not a hundred. */}- <div className="mt-3 flex max-w-xs flex-col gap-1">- <span className="text-[10px] uppercase tracking-wider text-muted-foreground">+ {/* Sentence case, 13px. The 10px uppercase label it replaced+ was below the type floor twice over — under 11px, and the+ one construction that makes a screen read as an admin+ panel. */}+ <div className="mt-block flex max-w-xs flex-col gap-2">+ <span className="text-meta text-muted-foreground">{t("voice.polish.provider_label")}</span><Combobox@@ -457,38 +459,46 @@ export function LanguageTab({ hideHeader = false }: LanguageTabProps = {}) {]}/></div>- <p className="mt-1.5 text-[11px] text-muted-foreground">+ <p className="mt-2 text-meta text-muted-foreground">{t("voice.polish.provider_hint")}</p>- <div className="mt-3 flex flex-wrap items-center gap-2 border-t border-border/60 pt-3">+ <div className="mt-block flex flex-wrap items-center gap-2 border-t border-border pt-block"><Buttonsize="sm"variant="outline"onClick={() => void runPolishTest()}disabled={testing}data-testid="dictation-polish-test"- className="h-7 gap-1.5 text-xs"+ className="gap-2">{testing ? (- <Loader2 className="h-3.5 w-3.5 animate-spin" />+ <Loader2+ aria-hidden="true"+ className="h-3.5 w-3.5 animate-spin motion-reduce:animate-none"+ />) : (- <PlugZap className="h-3.5 w-3.5" />+ <PlugZap aria-hidden="true" className="h-3.5 w-3.5" />)}{testing ? t("voice.polish.testing") : t("voice.polish.test")}</Button>- <span className="text-[11px] text-muted-foreground">+ <span className="text-meta text-muted-foreground">{t("voice.polish.test_hint")}</span></div>+ {/* The dry run's own result: what answered, and the same+ sentence before and after it. A lift panel inside the card,+ with the two samples set as prose rather than as two more+ 12px interface labels — reading them side by side IS the+ point of the button. */}{testResult && (<div- className="mt-3 space-y-2 rounded-md border border-border/60 bg-background/40 p-3"+ className="mt-block space-y-stack rounded-md bg-secondary p-3"data-testid="dictation-polish-test-result">- <p className="text-[11px] text-muted-foreground">- <span className="font-medium text-foreground">+ <p className="text-meta text-muted-foreground">+ <span className="text-foreground">{polishStatusLabel(t, testResult.status)}</span>{testResult.provider ? ` · ${testResult.provider}` : ""}@@ -499,22 +509,22 @@ export function LanguageTab({ hideHeader = false }: LanguageTabProps = {}) {{testResult.reason ? ` · ${testResult.reason}` : ""}</p><div>- <p className="text-[10px] uppercase tracking-wider text-muted-foreground">+ <p className="text-meta text-muted-foreground">{t("voice.polish.sample_before")}</p><p- className="break-words text-xs text-muted-foreground"+ className="mt-1 break-words text-reading text-muted-foreground"data-testid="dictation-polish-sample-in">{testResult.sample_in}</p></div><div>- <p className="text-[10px] uppercase tracking-wider text-muted-foreground">+ <p className="text-meta text-muted-foreground">{t("voice.polish.sample_after")}</p><p- className="break-words text-xs"+ className="mt-1 break-words text-reading text-foreground"data-testid="dictation-polish-sample-out">{testResult.sample_out}@@ -524,31 +534,27 @@ export function LanguageTab({ hideHeader = false }: LanguageTabProps = {}) {)}</>)}- </div>+ </Card>{/* Prompt Mode sits between the wording pass and the translationbecause it outranks both: while it is on, the dictation isrewritten into an English brief for a coding agent by theAgentic IDE's own writer, and neither pass has anything left todo. The card says so, and says where the words go. */}- <div- className="rounded-lg border border-border bg-card/60 p-4"- data-testid="dictation-prompt-mode-card"- >+ <Card className="p-5" data-testid="dictation-prompt-mode-card"><div className="flex items-start justify-between gap-4"><div className="min-w-0">- <h4 className="flex items-center gap-2 font-display text-sm font-semibold">- <Sparkles aria-hidden="true" className="h-3.5 w-3.5 text-primary" />+ <h4 className="text-title font-semibold text-foreground-strong">{t("voice.prompt_mode.title")}</h4><p- className="mt-1 text-xs text-muted-foreground"+ className="mt-1 text-meta text-muted-foreground"data-testid="dictation-prompt-mode-description">{t("voice.prompt_mode.description")}</p><p- className="mt-1.5 text-[11px] text-muted-foreground"+ className="mt-1 text-meta text-muted-foreground"data-testid="dictation-prompt-mode-sends-text">{t("voice.prompt_mode.sends_text")}@@ -569,44 +575,40 @@ export function LanguageTab({ hideHeader = false }: LanguageTabProps = {}) {other two passes step back, and where the writer is chosen.Shown only while on — while off they describe nothing. */}<div- className="mt-3 flex items-start gap-2 rounded-md border border-border/60 bg-background/40 p-3"+ className="mt-block flex items-start gap-2 rounded-md bg-secondary p-3"data-testid="dictation-prompt-mode-outranks">- <Info className="mt-0.5 h-3.5 w-3.5 shrink-0 text-primary" />- <p className="text-[11px] text-muted-foreground">+ <Info+ aria-hidden="true"+ className="mt-0.5 h-3.5 w-3.5 shrink-0 text-muted-foreground"+ />+ <p className="text-meta text-muted-foreground">{t("voice.prompt_mode.outranks")}</p></div><p- className="mt-1.5 text-[11px] text-muted-foreground"+ className="mt-2 text-meta text-muted-foreground"data-testid="dictation-prompt-mode-writer-hint">{t("voice.prompt_mode.writer_hint")}</p></>)}- </div>+ </Card>{/* Translation sits below the wording pass because it IS the wordingpass, pointed at a different language: one model call does both,and the provider chosen above is the one that answers. Putting iton its own screen would hide that the two share a budget, aprovider and a failure mode. */}- <div- className="rounded-lg border border-border bg-card/60 p-4"- data-testid="dictation-translate-card"- >+ <Card className="p-5" data-testid="dictation-translate-card"><div className="flex items-start justify-between gap-4"><div className="min-w-0">- <h4 className="flex items-center gap-2 font-display text-sm font-semibold">- <ArrowRightLeft- aria-hidden="true"- className="h-3.5 w-3.5 text-primary"- />+ <h4 className="text-title font-semibold text-foreground-strong">{t("voice.translate.title")}</h4><p- className="mt-1 text-xs text-muted-foreground"+ className="mt-1 text-meta text-muted-foreground"data-testid="dictation-translate-description">{t("voice.translate.description")}@@ -617,7 +619,7 @@ export function LanguageTab({ hideHeader = false }: LanguageTabProps = {}) {wrong language — so saying it up front is the differencebetween a known limit and a bug report. */}<p- className="mt-1.5 text-[11px] text-muted-foreground"+ className="mt-1 text-meta text-muted-foreground"data-testid="dictation-translate-sends-text">{t("voice.translate.sends_text")}@@ -640,15 +642,15 @@ export function LanguageTab({ hideHeader = false }: LanguageTabProps = {}) {off had nowhere to choose a provider or add a key at all:the only picker lived inside the formatter's own block. */}<div- className="mt-3 rounded-md border border-border/60 bg-background/40 p-3"+ className="mt-block rounded-md bg-secondary p-3"data-testid="dictation-translate-provider">- <span className="text-[10px] uppercase tracking-wider text-muted-foreground">+ <span className="text-meta text-muted-foreground">{t("voice.translate.answers_label")}</span>{wordingProvider?.ready ? (<p- className="mt-1 text-xs font-medium"+ className="mt-1 text-title font-semibold text-foreground"data-testid="dictation-translate-provider-name">{POLISH_PROVIDER_LABELS[wordingProvider.family] ??@@ -656,8 +658,10 @@ export function LanguageTab({ hideHeader = false }: LanguageTabProps = {}) {wordingProvider.family}</p>) : (+ /* Nothing can answer, so the translation silently does+ nothing — degraded, and named as such. */<p- className="mt-1 text-[11px] text-muted-foreground"+ className="mt-1 text-meta text-warning"data-testid="dictation-translate-no-provider">{t("voice.translate.no_provider")}@@ -665,8 +669,8 @@ export function LanguageTab({ hideHeader = false }: LanguageTabProps = {}) {)}{showTranslateProvider && (- <div className="mt-3 flex max-w-xs flex-col gap-1">- <span className="text-[10px] uppercase tracking-wider text-muted-foreground">+ <div className="mt-block flex max-w-xs flex-col gap-2">+ <span className="text-meta text-muted-foreground">{t("voice.polish.provider_label")}</span><Combobox@@ -691,7 +695,7 @@ export function LanguageTab({ hideHeader = false }: LanguageTabProps = {}) {)}{wordingNeedsKey && wordingProvider && (- <div className="mt-3" data-testid="dictation-translate-key">+ <div className="mt-block" data-testid="dictation-translate-key"><ApiKeyFormsecretKey={wordingProvider.secret_key}dashboardUrl={wordingCard?.dashboard_url ?? null}@@ -706,15 +710,15 @@ export function LanguageTab({ hideHeader = false }: LanguageTabProps = {}) {}onChanged={() => void refetchProviders()}/>- <p className="mt-1.5 text-[10px] text-muted-foreground">+ <p className="mt-2 text-meta text-muted-foreground">{t("voice.translate.key_saved_hint")}</p></div>)}</div>- <div className="mt-3 flex max-w-xs flex-col gap-1">- <span className="text-[10px] uppercase tracking-wider text-muted-foreground">+ <div className="mt-block flex max-w-xs flex-col gap-2">+ <span className="text-meta text-muted-foreground">{t("voice.translate.target_label")}</span><LanguageSelect@@ -727,24 +731,27 @@ export function LanguageTab({ hideHeader = false }: LanguageTabProps = {}) {testId="dictation-translate-target"/></div>- <p className="mt-1.5 text-[11px] text-muted-foreground">+ <p className="mt-2 text-meta text-muted-foreground">{t("voice.translate.target_hint")}</p>{targetEqualsSource && (<div- className="mt-3 flex items-start gap-2 rounded-md border border-border/60 bg-background/40 p-3"+ className="mt-block flex items-start gap-2 rounded-md bg-secondary p-3"data-testid="dictation-translate-same-language">- <Info className="mt-0.5 h-3.5 w-3.5 shrink-0 text-primary" />- <p className="text-[11px] text-muted-foreground">+ <Info+ aria-hidden="true"+ className="mt-0.5 h-3.5 w-3.5 shrink-0 text-muted-foreground"+ />+ <p className="text-meta text-muted-foreground">{t("voice.translate.same_language_notice")}</p></div>)}</>)}- </div>+ </Card></div></div></div>diff --git a/jarvis/ui/web/frontend/src/views/voice/ShortcutsTab.tsx b/jarvis/ui/web/frontend/src/views/voice/ShortcutsTab.tsxindex 8c09b2c3c0..af83c46fb5 100644--- a/jarvis/ui/web/frontend/src/views/voice/ShortcutsTab.tsx+++ b/jarvis/ui/web/frontend/src/views/voice/ShortcutsTab.tsx@@ -3,6 +3,7 @@ import { AlertTriangle, Keyboard } from "lucide-react";import { ViewHeader } from "@/views/ChatsView";import { Button } from "@/components/ui/button";+import { Card } from "@/components/ui/card";import { KeybindRow } from "@/views/settings/KeybindRow";import { useKeybinds, type KeybindAction } from "@/hooks/useHotkey";import { useEventStore } from "@/store/events";@@ -123,7 +124,7 @@ export function ShortcutsTab({ hideHeader = false }: ShortcutsTabProps = {}) {<div className="flex h-full flex-col">{!hideHeader && (<ViewHeader- icon={<Keyboard className="h-4 w-4 text-primary" />}+ icon={<Keyboard className="h-4 w-4 text-foreground" />}title={t("voice.shortcuts.title")}subtitle={t("voice.shortcuts.description")}/>@@ -132,62 +133,75 @@ export function ShortcutsTab({ hideHeader = false }: ShortcutsTabProps = {}) {className="flex-1 overflow-y-auto scrollbar-jarvis p-6"data-testid="voice-shortcuts-tab">- <div className="mx-auto flex max-w-3xl flex-col gap-4">+ {/* Three key rows are a form, so they take the form measure rather+ than stretching a 60-character hint across a desktop window. */}+ <div className="mx-auto flex max-w-form flex-col gap-group">{/* Embedded, the band above carries the section brand rather thanthis tab's purpose — so the purpose is stated here instead. */}{hideHeader && (- <p className="text-xs text-muted-foreground">+ <p className="text-meta text-muted-foreground">{t("voice.shortcuts.description")}</p>)}- {error && <p className="text-xs text-destructive">{error}</p>}+ {error && <p className="text-meta text-destructive">{error}</p>}+ {/* A setting that contradicts its own label is degraded, not+ broken — so a --warning glyph on an ordinary card, never the+ near-white wash this used to be. */}{pttIsToggle && (- <div- className="flex items-start gap-3 rounded-lg border border-foreground/40 bg-foreground/10 p-3"+ <Card+ className="flex items-start gap-3 p-5"data-testid="shortcuts-mode-notice">- <AlertTriangle className="mt-0.5 h-4 w-4 shrink-0 text-foreground" />+ <AlertTriangle+ aria-hidden="true"+ className="mt-0.5 h-4 w-4 shrink-0 text-warning"+ /><div className="min-w-0 flex-1">- <p className="text-xs text-muted-foreground">+ <p className="text-meta text-muted-foreground">{t("voice.shortcuts.mode_notice")}</p><Buttonsize="sm"variant="outline"- className="mt-2"+ className="mt-stack"data-testid="shortcuts-mode-fix"onClick={() => void pinHoldMode()}>{t("voice.shortcuts.mode_notice_fix")}</Button></div>- </div>+ </Card>)}- {ROWS.map((row) => (- <div key={row.action} className="flex flex-col gap-1">- <KeybindRow- action={row.action}- variant="voice"- label={t(row.labelKey)}- hint={t(row.hintKey)}- config={config}- loading={loading}- onSave={saveKeybind}- suggestions={config?.suggestions}- onSaved={row.action === "dictate" ? pinHoldMode : undefined}- />- {row.action === "paste_last" && insertionBlocked && (- <p- className="text-[11px] text-foreground"- data-testid="shortcuts-paste-last-blocked"- >- {t("voice.shortcuts.paste_last_blocked")}- </p>- )}- </div>- ))}+ <div className="flex flex-col gap-stack">+ {ROWS.map((row) => (+ <div key={row.action} className="flex flex-col gap-1">+ <KeybindRow+ action={row.action}+ variant="voice"+ label={t(row.labelKey)}+ hint={t(row.hintKey)}+ config={config}+ loading={loading}+ onSave={saveKeybind}+ suggestions={config?.suggestions}+ onSaved={row.action === "dictate" ? pinHoldMode : undefined}+ />+ {/* "The key works, the paste does not" is the degraded case+ this whole line exists to name, so it wears the degraded+ hue instead of the same ink as the label above it. */}+ {row.action === "paste_last" && insertionBlocked && (+ <p+ className="text-meta text-warning"+ data-testid="shortcuts-paste-last-blocked"+ >+ {t("voice.shortcuts.paste_last_blocked")}+ </p>+ )}+ </div>+ ))}+ </div></div></div></div>diff --git a/jarvis/ui/web/frontend/src/views/voice/VoiceApiKeysTab.tsx b/jarvis/ui/web/frontend/src/views/voice/VoiceApiKeysTab.tsxindex 1673b8c7d8..bdffb21dce 100644--- a/jarvis/ui/web/frontend/src/views/voice/VoiceApiKeysTab.tsx+++ b/jarvis/ui/web/frontend/src/views/voice/VoiceApiKeysTab.tsx@@ -50,16 +50,20 @@ export function VoiceApiKeysTab({ hideHeader = false }: VoiceApiKeysTabProps = {<div className="flex h-full min-h-0 flex-col">{!hideHeader && (<ViewHeader- icon={<KeyRound className="h-4 w-4 text-primary" />}+ icon={<KeyRound className="h-4 w-4 text-foreground" />}title={t("voice.api_keys.title")}subtitle={t("voice.api_keys.description")}/>)}<div- className="min-h-0 flex-1 overflow-y-auto scrollbar-jarvis px-4 py-4"+ className="min-h-0 flex-1 overflow-y-auto scrollbar-jarvis p-6"data-testid="voice-api-keys-tab">- <div className="mx-auto flex w-full max-w-4xl flex-col gap-4">+ {/* Two provider groups, 32px apart, at the page measure — the named+ width for a card stack. `max-w-4xl` was an arbitrary step off the+ scale, and 16px between two groups is what made every settings+ screen read as one undifferentiated mesh. */}+ <div className="mx-auto flex w-full max-w-page flex-col gap-group"><ProviderCategorymeta={categories.stt}tier="stt"diff --git a/jarvis/ui/web/frontend/tailwind.config.ts b/jarvis/ui/web/frontend/tailwind.config.tsindex 9a9c85b4d0..f6b7ce6a47 100644--- a/jarvis/ui/web/frontend/tailwind.config.ts+++ b/jarvis/ui/web/frontend/tailwind.config.ts@@ -33,6 +33,14 @@ const config: Config = {foreground: "hsl(var(--destructive-foreground))",},success: "hsl(var(--success))",+ /*+ * "Degraded" — the third and last status hue, beside --success (life)+ * and --destructive (fault). It exists because a partially-working+ * thing used to be painted with --foreground or a raw amber literal,+ * which reads either as "fine" or as decoration. Status is the only+ * place hue is allowed to appear, so it needs its own token.+ */+ warning: "hsl(var(--warning))",muted: {DEFAULT: "hsl(var(--muted))",foreground: "hsl(var(--muted-foreground))",@@ -67,6 +75,163 @@ const config: Config = {*/sheen: "rgb(var(--sheen-rgb) / <alpha-value>)",scrim: "rgb(var(--scrim-rgb) / <alpha-value>)",+ /*+ * The three ends of the scale that were previously reached for with an+ * alpha instead of a name.+ *+ * border-strong the rim of something that FLOATS or is focused+ * — a composer outline, a popover edge, a focus+ * ring. --border stays the structural hairline.+ * foreground-strong headings and headline numbers. The ink ceiling+ * sits BELOW pure white, so a title can be louder+ * than body text without --primary, which is a+ * fill and never an ink.+ * faint-foreground placeholder and disabled text ONLY. Everything+ * dimmer than meta used to be written as+ * `text-foreground/40`, which is an alpha doing+ * a hierarchy's job and lands differently on+ * every ground it happens to sit on.+ */+ "border-strong": "hsl(var(--border-strong))",+ "foreground-strong": "hsl(var(--foreground-strong))",+ "faint-foreground": "hsl(var(--faint-foreground))",+ },+ /*+ * The three families, restated here so the utility layer and the base+ * layer cannot disagree.+ *+ * index.css declares `body`, `.font-display` and `.font-mono` directly.+ * Tailwind generated no `font-sans` / `font-display` / `font-mono`+ * utility of its own, so `font-sans` fell through to Tailwind's default+ * system stack — a different typeface from the one the page was already+ * rendering in. These mirror index.css exactly; the base layer keeps its+ * feature-settings and tracking, which are different properties and so+ * survive the utility.+ */+ fontFamily: {+ sans: [+ "Inter",+ "ui-sans-serif",+ "system-ui",+ "-apple-system",+ "Segoe UI",+ "sans-serif",+ ],+ display: [+ "Space Grotesk",+ "Inter",+ "ui-sans-serif",+ "system-ui",+ "sans-serif",+ ],+ mono: [+ "JetBrains Mono",+ "ui-monospace",+ "SF Mono",+ "Menlo",+ "monospace",+ ],+ },+ /*+ * The seven-step type scale, each step carrying its own line height and+ * tracking so a size cannot be picked without the leading that goes with+ * it.+ *+ * No named scale existed, so authors reached for arbitrary values: of+ * ~2,956 explicit size classes, 2,181 are 12px or under, bottoming out at+ * a single `text-[7px]`. Named steps give the seven sizes the design+ * actually has, and 11px (`text-micro`) is the hard floor — there is no+ * step below it to reach for.+ *+ * Tailwind's own xs/sm/base/lg/... entries are deliberately left intact:+ * thousands of call sites use them and this wave does not migrate them.+ *+ * display 24/1.2 section headline, the largest thing on a screen+ * page 20/1.3 the title of a view+ * title 15/1.4 card and row titles (600)+ * reading 15/1.6 running prose — chat, docs, descriptions+ * body 14/1.5 the default for everything else+ * meta 13/1.45 timestamps, table heads, secondary detail+ * micro 11/1.4 badges and dense labels. THE FLOOR.+ */+ fontSize: {+ display: [+ "24px",+ { lineHeight: "1.2", letterSpacing: "-0.02em", fontWeight: "600" },+ ],+ page: ["20px", { lineHeight: "1.3", letterSpacing: "-0.015em" }],+ title: ["15px", { lineHeight: "1.4" }],+ reading: ["15px", { lineHeight: "1.6" }],+ body: ["14px", { lineHeight: "1.5" }],+ meta: ["13px", { lineHeight: "1.45" }],+ micro: ["11px", { lineHeight: "1.4", letterSpacing: "0.01em" }],+ },+ /*+ * Two elevations, and nothing else.+ *+ * There was no boxShadow scale at all, so the ~60 components applying a+ * bare `shadow` got Tailwind's default `rgb(0 0 0 / 0.1)` — black at ten+ * percent on a #0A0A0A ground, which is mathematically invisible. The+ * separation those components were asking for has to come from the+ * theme's own channels instead:+ *+ * rim an inset top highlight. What a resting object gets — a card,+ * a bubble, a tile. It lifts without casting anything.+ * float a real cast shadow plus a --border-strong rim. ONLY for+ * things that genuinely hover over the page: popover, dialog,+ * menu, tooltip.+ *+ * Both are built from --sheen-rgb / --scrim-rgb, so they invert with the+ * theme instead of assuming a dark ground. Tailwind's own steps are+ * re-pointed at these two rather than removed, so every existing bare+ * `shadow` becomes visible without being edited: the small steps resolve+ * to `rim`, the large ones to `float`.+ */+ boxShadow: {+ rim: "inset 0 1px 0 rgb(var(--sheen-rgb) / 0.05)",+ float:+ "0 12px 32px -8px rgb(var(--scrim-rgb) / 0.55), 0 0 0 1px hsl(var(--border-strong))",+ none: "none",+ sm: "inset 0 1px 0 rgb(var(--sheen-rgb) / 0.05)",+ DEFAULT: "inset 0 1px 0 rgb(var(--sheen-rgb) / 0.05)",+ inner: "inset 0 1px 0 rgb(var(--sheen-rgb) / 0.05)",+ md: "0 12px 32px -8px rgb(var(--scrim-rgb) / 0.55), 0 0 0 1px hsl(var(--border-strong))",+ lg: "0 12px 32px -8px rgb(var(--scrim-rgb) / 0.55), 0 0 0 1px hsl(var(--border-strong))",+ xl: "0 12px 32px -8px rgb(var(--scrim-rgb) / 0.55), 0 0 0 1px hsl(var(--border-strong))",+ "2xl":+ "0 12px 32px -8px rgb(var(--scrim-rgb) / 0.55), 0 0 0 1px hsl(var(--border-strong))",+ },+ /*+ * The four spacing steps, named for what they separate.+ *+ * Additive only — Tailwind's numeric scale is untouched. The names exist+ * because the rhythm is a decision, not an arithmetic: `gap-2` says+ * "eight pixels", `gap-row` says "these two things belong to the same+ * row". The step that is actually missing across the app is `group`:+ * sections currently run their groups together at 12–16px, which is why+ * a screen reads as one undifferentiated list.+ *+ * row 8px items inside one row+ * stack 12px rows inside one group+ * block 20px padding inside a card or panel+ * group 32px between two groups in a section+ */+ spacing: {+ row: "8px",+ stack: "12px",+ block: "20px",+ group: "32px",+ },+ /*+ * The three measures. Rule 1 — lift scales inversely with area — needs a+ * cap to point at: a surface only earns --card while it stays sized to+ * its content, and these are the widths that keep it there. `reading`+ * is also the line length prose stops growing at.+ */+ maxWidth: {+ reading: "720px",+ form: "640px",+ page: "1080px",},/** The radius scale, stated outright rather than derived from --radius.