Commit 16daf82ee for llama.cpp

commit 16daf82ee2e909d2432a1fecbe294f9d764991e3
Author: Aleksander Grygier <aleksander.grygier@gmail.com>
Date:   Fri Dec 4 20:23:25 2026 +0100

    ui: open settings on the essentials, with the rest under Advanced (#32929)

    Settings open on the few settings most people change: the theme, sending on
    Enter, the generation statistics, the system message, Enable MCP and the
    Hugging Face account. Everything else sits one level down under Advanced,
    sorted by topic (Composer, Messages, Models, Sampling & Penalties, Tools,
    Agent, Voice, Developer): a menu beside the settings on a desktop, a row per
    topic on a phone. The Agent section shows only on a server that runs agents.
    The MCP servers get a section of their own while Enable MCP is on, and
    Import/Export keeps its own.

    The API key field hides once the server is known to answer without a key.
    Enable Discover Models goes: Use the Hugging Face Hub API turns Discover on,
    with the models manager. Show Models is now Enable models manager, and the
    Agentic section is called Agent. The switch is blue when on and can be
    dragged.

    The sidebar keeps its actions in one list at its top: New, Search, Models
    while the models manager is on, and Settings. The footer goes.

    Any setting can be found by name: the search dialog lists the matching
    settings and opens one on its page, scrolled into view, and Settings has a
    search field of its own that shows the matching settings ready to change.
    Show message generation statistics is now Show statistics.

    A plain chat, without llama-server's agentic features, still gets the tools
    that run in the browser, so the + menu always has Tools, and while Enable MCP
    is on it has MCP Servers too: a switch per connected server, or what to do
    when none has tools yet. Tools opens the tools settings in a panel under the
    chat form, as wide as it (above it where there is no room). With Enable MCP
    off, no MCP server's tools are offered.

    Assisted-by: Claude (Opus 5.5 Medium)

diff --git a/ui/apps/chat/DESIGN.md b/ui/apps/chat/DESIGN.md
index 0a36be8ee..b8eda0dae 100644
--- a/ui/apps/chat/DESIGN.md
+++ b/ui/apps/chat/DESIGN.md
@@ -519,9 +519,9 @@ components:
   switch-track-dark:
     backgroundColor: '{colors.surface-muted-dark}'
   switch-track-on:
-    backgroundColor: '{colors.action-primary}'
+    backgroundColor: '{colors.fill-info}'
   switch-track-on-dark:
-    backgroundColor: '{colors.action-primary-dark}'
+    backgroundColor: '{colors.fill-info-dark}'
   switch-thumb:
     backgroundColor: '{colors.surface-lifted}'
     rounded: '{rounded.full}'
@@ -529,9 +529,7 @@ components:
   switch-thumb-dark:
     backgroundColor: '{colors.surface-lifted-dark}'
   switch-thumb-on:
-    backgroundColor: '{colors.surface-lifted}'
-  switch-thumb-on-dark:
-    backgroundColor: '{colors.surface-raised-dark}'
+    backgroundColor: '{colors.fg-on-danger}'
   copy-feedback:
     backgroundColor: '{colors.surface-page}'
     textColor: '{colors.fg-success}'
@@ -1079,7 +1077,8 @@ screens. Status lamps, avatars and the round icon buttons in the chat form are f
   underlines the active tab instead. The chip or underline slides between tabs in 300ms on a
   plain ease-out, with a stretch of at most 5% along the move that is gone by the time it
   lands; with reduced motion it jumps instead. The switch is the same track with a raised
-  thumb; switched on, the track takes the primary colour. The message statistics view switcher
+  thumb; switched on, the track takes the info blue (`fill-info`) and the thumb turns white in both
+  themes: the one control that shows its state in colour, so on reads apart from off at a glance. The message statistics view switcher
   uses the tabs tokens.
 - **Toggle groups:** a row of keys, like an old stereo's, not a track. At rest the group is
   a secondary button, the same glass fill, border and shadow as a select trigger, with a
@@ -1095,8 +1094,8 @@ screens. Status lamps, avatars and the round icon buttons in the chat form are f
 - **Sidebar:** `sidebar-surface`, the muted fill at 60% with no inner highlight and the
   ambient edge. On small screens it keeps a plain `shadow-md` instead.
 - **Inset groups:** `inset-group-surface` gathers rows inside a glass panel, like the
-  sidebar footer's Models, MCP and Settings, instead of a rule between them and the rows
-  above. In light mode it is a soft white (`surface-raised` at 85%) on the grey glass; in dark
+  rows of a phone's settings sheet, instead of a rule between them and the rows above. In
+  light mode it is a soft white (`surface-raised` at 85%) on the grey glass; in dark
   mode a raised fill would be darker than the glass, so it is a 3% tint of the text colour. It
   takes the sidebar's ambient edge, no inner highlight and only a faint, wide shade under it
   (`0 2px 8px -4px`, 8% black in light, 40% in dark), with the card radius. It reads as part of
diff --git a/ui/apps/chat/README.md b/ui/apps/chat/README.md
index ed783db1d..842a6707f 100644
--- a/ui/apps/chat/README.md
+++ b/ui/apps/chat/README.md
@@ -163,7 +163,7 @@ llama-server serves the UI with `Cross-Origin-Embedder-Policy: require-corp` and

 llama-server embeds it: when llama-server is built, `scripts/ui-assets.cmake` takes `ui/apps/chat/dist` if it exists, runs `npm run build` if `LLAMA_BUILD_UI` is on, or downloads the release's prebuilt `dist.tar.gz` from Hugging Face, and compiles every file into the binary. The same `dist` is what `npx @ggml-org/llama-chat` serves.

-**Plain chat and agent mode.** Llama Chat is a plain chat, a message and its reply with reasoning when the model gives it, unless llama-server offers the agentic features: its built-in tools or its proxy, which `llama-server --agent` turns on together. `llama-server --ui-agent` turns agent mode on with neither: the model gets only the tools that run in the browser, and MCP servers the browser reaches itself. The app reads this from `/props` and `/tools`. With them it shows the tools menu, the working folder, MCP and the Tools and Agentic settings, and runs the agentic loop; without them it shows none of these and sends the classic request. Tool calls in earlier conversations still display.
+**Plain chat and agent mode.** Llama Chat is a plain chat, a message and its reply with reasoning when the model gives it, unless llama-server offers the agentic features: its built-in tools or its proxy, which `llama-server --agent` turns on together. `llama-server --ui-agent` turns agent mode on with neither: the model gets only the tools that run in the browser, and MCP servers the browser reaches itself. The app reads this from `/props` and `/tools`. With them it adds llama-server's tools, the working folder and the Agent settings. A plain chat still runs the agentic loop for the tools that run in the browser, and for the MCP servers' while Enable MCP is on, with the tools menu and the Tools settings for them. Tool calls in earlier conversations still display.

 **Chat-only build.** `VITE_PUBLIC_AGENTIC=false npm run build` builds an app that is a plain chat for every server, and `npm run dev:chat-only` runs the dev server the same way. Llama Harness's loop is left out of its bundle.

diff --git a/ui/apps/chat/src/app.css b/ui/apps/chat/src/app.css
index b6bd589a5..911a7ffd9 100644
--- a/ui/apps/chat/src/app.css
+++ b/ui/apps/chat/src/app.css
@@ -49,14 +49,13 @@
 	--chat-form-area-offset: 2rem;
 	--chat-form-padding-top: 6rem;

-	/* Nested surfaces, outermost first: the page, the sidebar on it, a group inset in the
-	   sidebar (its footer) and a row in the group. A row keeps its corners concentric with the
-	   group's: its radius is the group's less the padding between their edges. The sidebar's
-	   actions above the footer share the row radius, so every action row rounds alike. See "Nested
-	   surfaces" in the README; tests/client/nested-surfaces.svelte.test.ts holds the rule */
-	--surface-group-radius: var(--inset-group-radius);
-	--surface-group-padding: 0.25rem;
-	--surface-row-radius: calc(var(--surface-group-radius) - var(--surface-group-padding));
+	/* Nested surfaces, outermost first: the page, the sidebar on it, and an action row inset in the
+	   sidebar. A row keeps its corners concentric with the sidebar's: its radius is the sidebar's less
+	   the 0.5rem (px-2) between their edges, so the rows read as the panel turned under rather than as
+	   tiles laid on it. See "Nested surfaces" in the README;
+	   tests/client/nested-surfaces.svelte.test.ts holds the rule */
+	--surface-sidebar-radius: 1rem;
+	--surface-row-radius: calc(var(--surface-sidebar-radius) - 0.5rem);

 	/* the chat form card holding one line of text, as it rests on a new chat */
 	--chat-form-collapsed-height: 6.375rem;
diff --git a/ui/apps/chat/src/lib/components/app/chat/ChatAttachments/ChatAttachmentsList/ChatAttachmentsListItem/ChatAttachmentsListItemVoice.svelte b/ui/apps/chat/src/lib/components/app/chat/ChatAttachments/ChatAttachmentsList/ChatAttachmentsListItem/ChatAttachmentsListItemVoice.svelte
index 9da8a28db..755f04c5d 100644
--- a/ui/apps/chat/src/lib/components/app/chat/ChatAttachments/ChatAttachmentsList/ChatAttachmentsListItem/ChatAttachmentsListItemVoice.svelte
+++ b/ui/apps/chat/src/lib/components/app/chat/ChatAttachments/ChatAttachmentsList/ChatAttachmentsListItem/ChatAttachmentsListItemVoice.svelte
@@ -1,7 +1,6 @@
 <!--
 	An audio attachment drawn as a clip: a playable waveform, and for a voice message its transcript under it, open while
-	it comes in and after, unless the Collapse transcripts setting folds it (then it opens on hover, keyboard focus or a
-	tap). `sm` is the chip in the chat form, `md` the clip in a sent message. A clip
+	it comes in and after. `sm` is the chip in the chat form, `md` the clip in a sent message. A clip
 	stored without peaks (an older message, an uploaded file) gets them computed from its audio.
 -->
 <script lang="ts">
@@ -13,8 +12,8 @@
 	} from '@ggml-org/llama-ui/voice';
 	import { X } from '@lucide/svelte';
 	import { ActionIcon } from '#lib/components/app/index.ts';
-	import { SETTINGS_KEYS, VOICE_MESSAGE_LABEL } from '#lib/constants/index.ts';
-	import { settingsStore, voiceTranscriptsStore } from '#lib/stores/index.ts';
+	import { VOICE_MESSAGE_LABEL } from '#lib/constants/index.ts';
+	import { voiceTranscriptsStore } from '#lib/stores/index.ts';
 	import type { ChatAttachmentDisplayItem } from '#lib/types/index.ts';
 	import { audioUrl, lazyPeaks, voiceAttachmentSource } from '#lib/utils/voice-attachment.ts';

@@ -51,7 +50,6 @@
 			? spokenLength(transcript, peaks, source.durationMs, playbackMs)
 			: null
 	);
-	let collapsed = $derived(settingsStore.config[SETTINGS_KEYS.VOICE_COLLAPSE_TRANSCRIPTS] === true);

 	// an object URL lives as long as the clip is on screen
 	$effect(() => {
@@ -102,11 +100,9 @@
 	data-slot="chat-attachment-voice"
 	data-voice={source.voice || undefined}
 >
-	{#key collapsed}
-		<VoiceTranscriptReveal defaultOpen={!collapsed} {errorReason} {spoken} {status} {transcript}>
-			<VoiceWaveform bind:playbackMs durationMs={source.durationMs} {label} {peaks} {size} {src} />
-		</VoiceTranscriptReveal>
-	{/key}
+	<VoiceTranscriptReveal defaultOpen {errorReason} {spoken} {status} {transcript}>
+		<VoiceWaveform bind:playbackMs durationMs={source.durationMs} {label} {peaks} {size} {src} />
+	</VoiceTranscriptReveal>

 	{#if !source.voice}
 		<p class="mt-1 truncate px-1 text-caption text-muted-foreground">{source.name}</p>
diff --git a/ui/apps/chat/src/lib/components/app/chat/ChatForm/ChatForm.svelte b/ui/apps/chat/src/lib/components/app/chat/ChatForm/ChatForm.svelte
index 2312183f7..f5055540c 100644
--- a/ui/apps/chat/src/lib/components/app/chat/ChatForm/ChatForm.svelte
+++ b/ui/apps/chat/src/lib/components/app/chat/ChatForm/ChatForm.svelte
@@ -16,6 +16,7 @@
 		ChatFormPickers,
 		ChatFormSystemMessageAttachment,
 		ChatFormSystemMessageChip,
+		ChatFormToolsPopover,
 		DialogMcpResourcesBrowser
 	} from '#lib/components/app/index.ts';
 	import {
@@ -157,6 +158,9 @@
 	let pickerAnchor: HTMLDivElement | null = $state(null);
 	let pickerAnchorBox = $state({ height: 1, top: 0 });

+	// the tools panel the + menu's Tools row opens under the form
+	let isToolsPanelOpen = $state(false);
+
 	let cwd = $derived(
 		conversationsStore.activeConversation?.cwd ?? conversationsStore.preferences.pendingCwd
 	);
@@ -954,6 +958,7 @@
 						{onStop}
 						onSystemPromptClick={() =>
 							onSystemPromptClick?.({ files: uploadedFiles, message: value })}
+						onToolsClick={() => (isToolsPanelOpen = true)}
 						onWorkingDirectoryClick={isWorkingDirectoryInAddMenu
 							? pickers.handleWorkingDirectoryOpen
 							: undefined}
@@ -990,6 +995,8 @@
 		></div>
 	{/if}

+	<ChatFormToolsPopover bind:open={isToolsPanelOpen} anchor={cardEl} />
+
 	<!-- The chips sit under the card. On a new chat, where the page centres the form, they
 	     hang below it and take no room: the card stays where it is as they come and go -->
 	<div
diff --git a/ui/apps/chat/src/lib/components/app/chat/ChatForm/ChatFormActions/ChatFormActionAdd/ChatFormActionAddButton.svelte b/ui/apps/chat/src/lib/components/app/chat/ChatForm/ChatFormActions/ChatFormActionAdd/ChatFormActionAddButton.svelte
index 11c8a1954..452e5e127 100644
--- a/ui/apps/chat/src/lib/components/app/chat/ChatForm/ChatFormActions/ChatFormActionAdd/ChatFormActionAddButton.svelte
+++ b/ui/apps/chat/src/lib/components/app/chat/ChatForm/ChatFormActions/ChatFormActionAdd/ChatFormActionAddButton.svelte
@@ -3,7 +3,7 @@
 	import * as Tooltip from '@ggml-org/llama-ui/ui/tooltip';
 	import { Plus } from '@lucide/svelte';
 	import { attachmentTooltipText, ICON_CLASS_DEFAULT } from '#lib/constants/index.ts';
-	import { agenticMode } from '#lib/stores/agentic-mode.svelte.ts';
+	import { mcpStore, toolsStore } from '#lib/stores/index.ts';

 	interface Props {
 		disabled?: boolean;
@@ -22,13 +22,15 @@
 			type="button"
 			variant="ghost"
 		>
-			<span class="sr-only">{attachmentTooltipText(agenticMode.enabled)}</span>
+			<span class="sr-only"
+				>{attachmentTooltipText(toolsStore.isAvailable, mcpStore.isFeatureEnabled)}</span
+			>

 			<Plus class={ICON_CLASS_DEFAULT} />
 		</Button>
 	</Tooltip.Trigger>

 	<Tooltip.Content>
-		<p>{attachmentTooltipText(agenticMode.enabled)}</p>
+		<p>{attachmentTooltipText(toolsStore.isAvailable, mcpStore.isFeatureEnabled)}</p>
 	</Tooltip.Content>
 </Tooltip.Root>
diff --git a/ui/apps/chat/src/lib/components/app/chat/ChatForm/ChatFormActions/ChatFormActionAdd/ChatFormActionAddDrawer.svelte b/ui/apps/chat/src/lib/components/app/chat/ChatForm/ChatFormActions/ChatFormActionAdd/ChatFormActionAddDrawer.svelte
index 8cd81d674..bdf23b367 100644
--- a/ui/apps/chat/src/lib/components/app/chat/ChatForm/ChatFormActions/ChatFormActionAdd/ChatFormActionAddDrawer.svelte
+++ b/ui/apps/chat/src/lib/components/app/chat/ChatForm/ChatFormActions/ChatFormActionAdd/ChatFormActionAddDrawer.svelte
@@ -35,7 +35,6 @@
 	import { AddSheetPage, ModelModality, ToolSource } from '#lib/enums/index.ts';
 	import { useAttachmentMenu } from '#lib/hooks/use-attachment-menu.svelte.ts';
 	import { useToolsPanel } from '#lib/hooks/use-tools-panel.svelte.ts';
-	import { agenticMode } from '#lib/stores/agentic-mode.svelte.ts';
 	import { toolsStore } from '#lib/stores/index.ts';
 	import type { ToolGroup } from '#lib/types/index.ts';
 	import type { Component, Snippet } from 'svelte';
@@ -250,8 +249,8 @@
 			</InsetListRow>
 		{/if}

-		<!-- a plain chat has no tools to pick -->
-		{#if agenticMode.enabled}
+		<!-- a chat without tools has none to pick -->
+		{#if toolsStore.isAvailable}
 			<InsetListRow chevron icon={PencilRuler} onclick={() => push({ id: AddSheetPage.TOOLS })}>
 				<span class="flex-1">{ATTACHMENT_MENU_TEXT.TOOLS}</span>

diff --git a/ui/apps/chat/src/lib/components/app/chat/ChatForm/ChatFormActions/ChatFormActionAdd/ChatFormActionAddDropdown.svelte b/ui/apps/chat/src/lib/components/app/chat/ChatForm/ChatFormActions/ChatFormActionAdd/ChatFormActionAddDropdown.svelte
index d86d663f3..5685d4fd4 100644
--- a/ui/apps/chat/src/lib/components/app/chat/ChatForm/ChatFormActions/ChatFormActionAdd/ChatFormActionAddDropdown.svelte
+++ b/ui/apps/chat/src/lib/components/app/chat/ChatForm/ChatFormActions/ChatFormActionAdd/ChatFormActionAddDropdown.svelte
@@ -4,7 +4,10 @@
 	import * as Tooltip from '@ggml-org/llama-ui/ui/tooltip';
 	import { cn } from '@ggml-org/llama-ui/utils';
 	import { File, Folder, MessageSquare, Plus } from '@lucide/svelte';
-	import { ChatFormActionAddToolsSubmenu } from '#lib/components/app/index.ts';
+	import {
+		ChatFormActionAddMcpServersSubmenu,
+		ChatFormActionAddToolsSubmenu
+	} from '#lib/components/app/index.ts';
 	import {
 		ATTACHMENT_FILE_ITEMS,
 		ATTACHMENT_MENU_TEXT,
@@ -16,7 +19,7 @@
 	import { getChatFormActionsContext } from '#lib/contexts/index.ts';
 	import { AttachmentAction, AttachmentItemEnabledWhen, ModelModality } from '#lib/enums/index.ts';
 	import { useAttachmentMenu } from '#lib/hooks/use-attachment-menu.svelte.ts';
-	import { agenticMode } from '#lib/stores/agentic-mode.svelte.ts';
+	import { mcpStore, toolsStore } from '#lib/stores/index.ts';
 	import type { Component } from 'svelte';

 	interface Props {
@@ -85,7 +88,9 @@
 						)}
 						disabled={chatFormActions.disabled}
 					>
-						<span class="sr-only">{attachmentTooltipText(agenticMode.enabled)}</span>
+						<span class="sr-only"
+							>{attachmentTooltipText(toolsStore.isAvailable, mcpStore.isFeatureEnabled)}</span
+						>

 						<Plus class={ICON_CLASS_DEFAULT} />
 					</DropdownMenu.Trigger>
@@ -93,7 +98,7 @@
 			</Tooltip.Trigger>

 			<Tooltip.Content>
-				<p>{attachmentTooltipText(agenticMode.enabled)}</p>
+				<p>{attachmentTooltipText(toolsStore.isAvailable, mcpStore.isFeatureEnabled)}</p>
 			</Tooltip.Content>
 		</Tooltip.Root>

@@ -161,8 +166,20 @@
 				</DropdownMenu.Item>
 			{/if}

-			{#if agenticMode.enabled}
-				<ChatFormActionAddToolsSubmenu />
+			<!-- every chat has the browser's tools, a plain one too -->
+			{#if toolsStore.isAvailable}
+				<ChatFormActionAddToolsSubmenu
+					onTools={() => {
+						// the panel takes the focus, not the menu's trigger
+						suppressCloseAutoFocus = true;
+						chatFormActions.onToolsClick?.();
+					}}
+				/>
+			{/if}
+
+			<!-- the MCP servers while Enable MCP is on, with or without llama-server's agentic features -->
+			{#if toolsStore.isAvailable && mcpStore.isFeatureEnabled}
+				<ChatFormActionAddMcpServersSubmenu />
 			{/if}
 		</DropdownMenu.Content>
 	</DropdownMenu.Root>
diff --git a/ui/apps/chat/src/lib/components/app/chat/ChatForm/ChatFormActions/ChatFormActionAdd/ChatFormActionAddMcpServersSubmenu.svelte b/ui/apps/chat/src/lib/components/app/chat/ChatForm/ChatFormActions/ChatFormActionAdd/ChatFormActionAddMcpServersSubmenu.svelte
new file mode 100644
index 000000000..67ebd5d85
--- /dev/null
+++ b/ui/apps/chat/src/lib/components/app/chat/ChatForm/ChatFormActions/ChatFormActionAdd/ChatFormActionAddMcpServersSubmenu.svelte
@@ -0,0 +1,76 @@
+<!--
+	The + menu's MCP servers row while Enable MCP is on, in a plain chat too: a switch per MCP
+	server whose tools the chat can reach.
+-->
+<script lang="ts">
+	import * as DropdownMenu from '@ggml-org/llama-ui/ui/dropdown-menu';
+	import { Switch } from '@ggml-org/llama-ui/ui/switch';
+	import { Info } from '@lucide/svelte';
+	import { McpLogo } from '#lib/components/app/mcp/index.ts';
+	import { ATTACHMENT_MENU_TEXT, ICON_CLASS_DEFAULT } from '#lib/constants/index.ts';
+	import { useToolsPanel } from '#lib/hooks/use-tools-panel.svelte.ts';
+	import { mcpStore } from '#lib/stores/index.ts';
+
+	const toolsPanel = useToolsPanel();
+	const servers = $derived(mcpStore.getServers());
+	// with no row to show: none added, none switched on, or the ones on still without tools
+	// (connecting, failed, or offering none)
+	const emptyHint = $derived(
+		servers.length === 0
+			? ATTACHMENT_MENU_TEXT.NO_MCP_SERVERS
+			: servers.some((server) => server.enabled)
+				? ATTACHMENT_MENU_TEXT.NO_MCP_TOOLS
+				: ATTACHMENT_MENU_TEXT.NO_ENABLED_MCP_SERVERS
+	);
+</script>
+
+<DropdownMenu.Sub onOpenChange={(open) => open && toolsPanel.handleOpen()}>
+	<DropdownMenu.SubTrigger class="flex cursor-pointer items-center gap-2">
+		<McpLogo class={ICON_CLASS_DEFAULT} />
+
+		<span>{ATTACHMENT_MENU_TEXT.MCP_SERVERS}</span>
+	</DropdownMenu.SubTrigger>
+
+	<DropdownMenu.SubContent class="max-h-80 w-60 overflow-y-auto">
+		{#each toolsPanel.mcpGroups as group (group.key)}
+			{@const favicon = toolsPanel.getFavicon(group)}
+			<DropdownMenu.Item
+				class="flex cursor-pointer items-center gap-2"
+				disabled={toolsPanel.isGroupDisabled(group)}
+				onSelect={(event) => {
+					// the menu stays open, as a switch is flipped in place
+					event.preventDefault();
+					toolsPanel.toggleGroupByKey(group.key);
+				}}
+			>
+				{#if favicon}
+					<img
+						alt=""
+						class="{ICON_CLASS_DEFAULT} shrink-0 rounded-sm"
+						onerror={(e) => {
+							(e.currentTarget as HTMLImageElement).style.display = 'none';
+						}}
+						src={favicon}
+					/>
+				{:else}
+					<McpLogo class="{ICON_CLASS_DEFAULT} shrink-0" />
+				{/if}
+
+				<span class="min-w-0 flex-1 truncate">{group.label}</span>
+
+				<Switch
+					checked={toolsPanel.getGroupCheckState(group).checked}
+					class="pointer-events-none"
+					tabindex={-1}
+				/>
+			</DropdownMenu.Item>
+		{:else}
+			<!-- none with tools yet: they are added and switched on in Settings -->
+			<div class="flex gap-2 px-2 py-1.5 text-body-sm text-muted-foreground">
+				<Info class="mt-0.5 {ICON_CLASS_DEFAULT} shrink-0" />
+
+				<span>{emptyHint}</span>
+			</div>
+		{/each}
+	</DropdownMenu.SubContent>
+</DropdownMenu.Sub>
diff --git a/ui/apps/chat/src/lib/components/app/chat/ChatForm/ChatFormActions/ChatFormActionAdd/ChatFormActionAddToolsSubmenu.svelte b/ui/apps/chat/src/lib/components/app/chat/ChatForm/ChatFormActions/ChatFormActionAdd/ChatFormActionAddToolsSubmenu.svelte
index d2dff9f82..34e865641 100644
--- a/ui/apps/chat/src/lib/components/app/chat/ChatForm/ChatFormActions/ChatFormActionAdd/ChatFormActionAddToolsSubmenu.svelte
+++ b/ui/apps/chat/src/lib/components/app/chat/ChatForm/ChatFormActions/ChatFormActionAdd/ChatFormActionAddToolsSubmenu.svelte
@@ -1,177 +1,39 @@
 <script lang="ts">
-	import { Checkbox } from '@ggml-org/llama-ui/ui/checkbox';
-	import * as Collapsible from '@ggml-org/llama-ui/ui/collapsible';
 	import * as DropdownMenu from '@ggml-org/llama-ui/ui/dropdown-menu';
-	import * as Tooltip from '@ggml-org/llama-ui/ui/tooltip';
-	import { Check, ChevronDown, ChevronRight, Info, Loader2, PencilRuler } from '@lucide/svelte';
-	import { ATTACHMENT_MENU_TEXT, CLI_FLAGS, ICON_CLASS_DEFAULT } from '#lib/constants/index.ts';
+	import { PencilRuler } from '@lucide/svelte';
+	import { ATTACHMENT_MENU_TEXT, ICON_CLASS_DEFAULT } from '#lib/constants/index.ts';
 	import { useToolsPanel } from '#lib/hooks/use-tools-panel.svelte.ts';
-	import { mcpStore, toolsStore } from '#lib/stores/index.ts';
-	import type { ToolGroup } from '#lib/types/index.ts';

-	const toolsPanel = useToolsPanel();
-	const hasMcpServersAvailable = $derived(mcpStore.getServers().length > 0);
-</script>
-
-<DropdownMenu.Sub onOpenChange={(open) => open && toolsPanel.handleOpen()}>
-	<DropdownMenu.SubTrigger class="flex cursor-pointer items-center gap-2">
-		<PencilRuler class={ICON_CLASS_DEFAULT} />
-
-		<span>{ATTACHMENT_MENU_TEXT.TOOLS}</span>
-	</DropdownMenu.SubTrigger>
-
-	<DropdownMenu.SubContent class="w-72 p-0">
-		{#if toolsPanel.totalToolCount === 0}
-			{#if toolsStore.loading}
-				<div class="px-3 py-4 text-center text-body-sm text-muted-foreground">
-					<Loader2 class="mx-auto mb-1 {ICON_CLASS_DEFAULT} animate-spin" />
-
-					{ATTACHMENT_MENU_TEXT.LOADING_TOOLS}
-				</div>
-			{:else if toolsStore.isToolsEndpointUnreachable}
-				<div class="grid gap-2.5 px-3 py-4 text-body-sm text-muted-foreground">
-					<span class="flex gap-2">
-						<Info class="mt-0.5 {ICON_CLASS_DEFAULT} shrink-0" />
-
-						<span>
-							Run llama-server with <code>{CLI_FLAGS.TOOLS}</code> flag to enable
-
-							<strong>Server Tools</strong>.
-						</span>
-					</span>
-
-					<!-- only while MCP is on -->
-					{#if mcpStore.isFeatureEnabled}
-						<span class="flex gap-2">
-							<Info class="mt-0.5 {ICON_CLASS_DEFAULT} shrink-0" />
-
-							<span>
-								{hasMcpServersAvailable ? 'Enable' : 'Add'} MCP Server(s) to access
+	interface Props {
+		/** Opens the tools panel under the chat form. */
+		onTools?: () => void;
+	}

-								<strong>MCP Tools</strong>.
-							</span>
-						</span>
-					{/if}
-				</div>
-			{:else if toolsStore.error}
-				<div class="px-3 py-4 text-center text-body-sm text-muted-foreground">
-					{ATTACHMENT_MENU_TEXT.TOOLS_FAILED}
-				</div>
-			{:else if toolsPanel.noToolsInfoMessage}
-				<div class="flex gap-2 px-3 py-4 text-body-sm text-muted-foreground">
-					<Info class="mt-0.5 {ICON_CLASS_DEFAULT} shrink-0" />
+	let { onTools }: Props = $props();

-					<span>{toolsPanel.noToolsInfoMessage}</span>
-				</div>
-			{:else}
-				<div class="px-3 py-4 text-center text-body-sm text-muted-foreground">
-					{ATTACHMENT_MENU_TEXT.NO_TOOLS}
-				</div>
-			{/if}
-		{:else}
-			<div class="max-h-80 overflow-y-auto p-2 pr-1">
-				{#each toolsPanel.categoryGroups as group (group.key)}
-					{@render groupRow(group)}
-				{/each}
-
-				{#each toolsPanel.mcpGroups as group (group.key)}
-					{@render groupRow(group)}
-				{/each}
-			</div>
-		{/if}
-	</DropdownMenu.SubContent>
-</DropdownMenu.Sub>
-
-{#snippet groupRow(group: ToolGroup)}
-	{@const isExpanded = toolsPanel.expandedGroups.has(group.key)}
-	{@const checkState = toolsPanel.getGroupCheckState(group)}
-	{@const favicon = toolsPanel.getFavicon(group)}
-	{@const groupDisabled = toolsPanel.isGroupDisabled(group)}
-
-	<Collapsible.Root
-		onOpenChange={() => toolsPanel.toggleGroupExpanded(group.key)}
-		open={isExpanded}
-	>
-		<div class="flex items-center gap-1 {groupDisabled ? 'pointer-events-none opacity-50' : ''}">
-			<Collapsible.Trigger
-				class="flex min-w-0 flex-1 items-center gap-2 rounded px-2 py-1.5 text-body-sm hover:bg-muted/50"
-			>
-				{#if isExpanded}
-					<ChevronDown class="size-icon-sm shrink-0" />
-				{:else}
-					<ChevronRight class="size-icon-sm shrink-0" />
-				{/if}
-
-				<span class="inline-flex min-w-0 items-center gap-1.5 font-medium">
-					{#if favicon}
-						<img
-							alt=""
-							class="{ICON_CLASS_DEFAULT} shrink-0 rounded-sm"
-							onerror={(e) => {
-								(e.currentTarget as HTMLImageElement).style.display = 'none';
-							}}
-							src={favicon}
-						/>
-					{/if}
-
-					<span class="truncate">{group.label}</span>
-				</span>
-
-				<span class="ml-auto shrink-0 text-caption text-muted-foreground">
-					{toolsPanel.getEnabledToolCount(group)}/{group.tools.length}
-				</span>
-			</Collapsible.Trigger>
-
-			<Tooltip.Root>
-				<Tooltip.Trigger>
-					{#snippet child({ props })}
-						<Checkbox
-							{...props}
-							checked={checkState.checked}
-							class="mr-2 {ICON_CLASS_DEFAULT} shrink-0"
-							indeterminate={checkState.indeterminate}
-							onCheckedChange={() => toolsPanel.toggleGroupByKey(group.key)}
-						/>
-					{/snippet}
-				</Tooltip.Trigger>
-
-				<Tooltip.Content side="right">
-					<p>
-						{checkState.checked ? 'Disable' : 'Enable'}
-						{group.tools.length} tool{group.tools.length !== 1 ? 's' : ''}
-					</p>
-				</Tooltip.Content>
-			</Tooltip.Root>
-		</div>
+	const toolsPanel = useToolsPanel();

-		<Collapsible.Content>
-			<div class="ml-4 flex flex-col gap-0.5 border-l border-border/50 pl-2">
-				{#each group.tools as entry (entry.key)}
-					{@const enabled = toolsPanel.isToolEnabled(entry)}
-					{@const parentDisabled = toolsPanel.isToolParentDisabled(entry)}
-					<button
-						class="flex w-full items-center gap-2 rounded px-2 py-1.5 text-left text-body-sm transition-colors hover:bg-muted/50 {parentDisabled
-							? 'opacity-50'
-							: ''}"
-						onclick={() => toolsPanel.toggleTool(entry)}
-						type="button"
-					>
-						<span
-							class="flex size-4 shrink-0 items-center justify-center rounded-[4px] border border-input data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground"
-							data-slot="checkbox"
-							data-state={enabled ? 'checked' : 'unchecked'}
-						>
-							{#if enabled}
-								<Check class="size-3.5" />
-							{/if}
-						</span>
+	const groups = $derived([...toolsPanel.categoryGroups, ...toolsPanel.mcpGroups]);
+	const enabledCount = $derived(
+		groups.reduce((count, group) => count + toolsPanel.getEnabledToolCount(group), 0)
+	);
+</script>

-						<span class="min-w-0 flex-1 truncate font-mono text-caption">
-							{entry.definition.function.name}
-						</span>
-					</button>
-				{/each}
-			</div>
-		</Collapsible.Content>
-	</Collapsible.Root>
-{/snippet}
+<!-- the tools open in a panel under the chat form, as wide as it -->
+<DropdownMenu.Item
+	class="flex cursor-pointer items-center gap-2"
+	onclick={() => {
+		toolsPanel.handleOpen();
+		onTools?.();
+	}}
+>
+	<PencilRuler class={ICON_CLASS_DEFAULT} />
+
+	<span class="flex-1">{ATTACHMENT_MENU_TEXT.TOOLS}</span>
+
+	{#if toolsPanel.totalToolCount > 0}
+		<span class="text-caption text-muted-foreground tabular-nums">
+			{enabledCount}/{toolsPanel.totalToolCount}
+		</span>
+	{/if}
+</DropdownMenu.Item>
diff --git a/ui/apps/chat/src/lib/components/app/chat/ChatForm/ChatFormActions/ChatFormActions.svelte b/ui/apps/chat/src/lib/components/app/chat/ChatForm/ChatFormActions/ChatFormActions.svelte
index 7db0cdf78..e766cd7f7 100644
--- a/ui/apps/chat/src/lib/components/app/chat/ChatForm/ChatFormActions/ChatFormActions.svelte
+++ b/ui/apps/chat/src/lib/components/app/chat/ChatForm/ChatFormActions/ChatFormActions.svelte
@@ -54,6 +54,7 @@
 		onMicClick?: () => void;
 		onStop?: () => void;
 		onSystemPromptClick?: () => void;
+		onToolsClick?: () => void;
 		onWorkingDirectoryClick?: () => void;
 	}

@@ -72,6 +73,7 @@
 		onMicClick,
 		onStop,
 		onSystemPromptClick,
+		onToolsClick,
 		onWorkingDirectoryClick,
 		showAddButton = true,
 		showModelSelector = true,
@@ -143,6 +145,9 @@
 		get onSystemPromptClick() {
 			return onSystemPromptClick;
 		},
+		get onToolsClick() {
+			return onToolsClick;
+		},
 		get onWorkingDirectoryClick() {
 			return onWorkingDirectoryClick;
 		},
diff --git a/ui/apps/chat/src/lib/components/app/chat/ChatForm/ChatFormTools/ChatFormToolsPopover.svelte b/ui/apps/chat/src/lib/components/app/chat/ChatForm/ChatFormTools/ChatFormToolsPopover.svelte
new file mode 100644
index 000000000..8db35e82c
--- /dev/null
+++ b/ui/apps/chat/src/lib/components/app/chat/ChatForm/ChatFormTools/ChatFormToolsPopover.svelte
@@ -0,0 +1,32 @@
+<script lang="ts">
+	import * as Popover from '@ggml-org/llama-ui/ui/popover';
+	import SettingsChatToolsTab from '#lib/components/app/settings/SettingsChat/SettingsChatToolsTab.svelte';
+	import { ATTACHMENT_MENU_TEXT, CHAT_FORM_PANEL_OFFSET } from '#lib/constants/index.ts';
+
+	interface Props {
+		/** The chat form's card: the panel opens under it, as wide as it is. */
+		anchor: HTMLElement | null | undefined;
+		open: boolean;
+	}
+
+	let { anchor, open = $bindable(false) }: Props = $props();
+</script>
+
+<!-- the tools a chat may use, their approvals and what a call's line shows: opened from the +
+     menu's Tools row, under the chat form and as wide as it (above it where there is no room) -->
+<Popover.Root bind:open>
+	<Popover.Trigger aria-hidden="true" class="pointer-events-none absolute opacity-0" tabindex={-1}>
+		<span class="sr-only">{ATTACHMENT_MENU_TEXT.TOOLS}</span>
+	</Popover.Trigger>
+
+	<Popover.Content
+		align="start"
+		aria-label={ATTACHMENT_MENU_TEXT.TOOLS}
+		class="max-h-(--bits-popover-content-available-height) w-(--bits-popover-anchor-width) overflow-y-auto rounded-xl p-3"
+		customAnchor={anchor}
+		side="bottom"
+		sideOffset={CHAT_FORM_PANEL_OFFSET}
+	>
+		<SettingsChatToolsTab />
+	</Popover.Content>
+</Popover.Root>
diff --git a/ui/apps/chat/src/lib/components/app/chat/index.ts b/ui/apps/chat/src/lib/components/app/chat/index.ts
index fa4ad1800..edc8e6e7d 100644
--- a/ui/apps/chat/src/lib/components/app/chat/index.ts
+++ b/ui/apps/chat/src/lib/components/app/chat/index.ts
@@ -217,27 +217,15 @@ export { default as ChatFormActionSubmit } from './ChatForm/ChatFormActions/Chat
 export { default as ChatFormActionReasoning } from './ChatForm/ChatFormActions/ChatFormActionReasoning.svelte';

 /**
- * Dropdown submenu for managing tool permissions in the chat form.
+ * **ChatFormActionAddToolsSubmenu** - The + menu's Tools row
  *
- * Displays a collapsible list of available tools organized by group (Built-in / JSON Schema).
- * Each group can be expanded to show individual tools with checkboxes for enabling/disabling.
- * Provides bulk enable/disable controls per group and shows enabled/total tool counts.
- * Opens the tools panel on the server when the menu opens.
- *
- * Features:
- * - Grouped tools with collapsible sections
- * - Group favicon display (MCP server icons)
- * - Per-group and per-tool toggle checkboxes
- * - Loading/error states for tool discovery
- * - Integration with toolsPanel for state management
- *
- * @example
- * ```svelte
- * <ChatFormActionAddToolsSubmenu />
- * ```
+ * Shows how many tools are on and opens the tools panel under the chat form.
  */
 export { default as ChatFormActionAddToolsSubmenu } from './ChatForm/ChatFormActions/ChatFormActionAdd/ChatFormActionAddToolsSubmenu.svelte';

+/** The + menu's MCP Servers row: a switch per connected server, while Enable MCP is on. */
+export { default as ChatFormActionAddMcpServersSubmenu } from './ChatForm/ChatFormActions/ChatFormActionAdd/ChatFormActionAddMcpServersSubmenu.svelte';
+
 /**
  * Compact context-usage gauge with per-turn and cumulative breakdown in the tooltip.
  */
@@ -273,6 +261,9 @@ export { default as ChatFormInput } from './ChatForm/ChatFormInput/ChatFormInput
 export { default as ChatFormBackgroundTasks } from './ChatForm/ChatFormBackgroundTasks/ChatFormBackgroundTasks.svelte';
 export { default as ChatFormCurrentWorkingDirectory } from './ChatForm/ChatFormCurrentWorkingDirectory/ChatFormCurrentWorkingDirectory.svelte';

+/** The tools panel the + menu's Tools row opens under the chat form, as wide as it. */
+export { default as ChatFormToolsPopover } from './ChatForm/ChatFormTools/ChatFormToolsPopover.svelte';
+
 /**
  * **ChatFormPickerMcpPrompts** - MCP prompt selection interface
  *
diff --git a/ui/apps/chat/src/lib/components/app/dialogs/DialogSearch.svelte b/ui/apps/chat/src/lib/components/app/dialogs/DialogSearch.svelte
index 3dd874373..ba7efcaee 100644
--- a/ui/apps/chat/src/lib/components/app/dialogs/DialogSearch.svelte
+++ b/ui/apps/chat/src/lib/components/app/dialogs/DialogSearch.svelte
@@ -12,6 +12,7 @@
 	} from '@lucide/svelte';
 	import { ActionIcon, KeyboardShortcutInfo, ModelOrgAvatar } from '#lib/components/app/index.ts';
 	import { ModelsDiscoverDetailsContainer } from '#lib/components/app/models/discover/index.ts';
+	import type { SettingsAdvancedSection } from '#lib/constants/index.ts';
 	import {
 		CONVERSATION_SEARCH_CONTENT_DEBOUNCE_MS,
 		CONVERSATION_SEARCH_CONTENT_LIMIT,
@@ -23,8 +24,12 @@
 		ICON_CLASS_DEFAULT,
 		ICON_CLASS_SM,
 		ICON_CLASS_XS,
-		SIDEBAR_ACTIONS_ITEMS,
-		SIDEBAR_FOOTER_ITEMS
+		SETTINGS_KEYS,
+		SETTINGS_SEARCH_TEXT,
+		SETTINGS_SECTION_SLUGS,
+		settingsChatSections,
+		settingsSearchSections,
+		SIDEBAR_ACTIONS_ITEMS
 	} from '#lib/constants/index.ts';
 	import { KeyboardKey, SidebarAction } from '#lib/enums/index.ts';
 	import { useDebouncedSearch } from '#lib/hooks/use-debounced-search.svelte.ts';
@@ -34,16 +39,26 @@
 		HuggingFaceService
 	} from '#lib/services/index.ts';
 	import { RouterService } from '#lib/services/router.service.ts';
+	import { agenticMode } from '#lib/stores/agentic-mode.svelte.ts';
 	import {
 		conversationsStore,
 		deviceStore,
 		modelsDiscoverStore,
+		serverStore,
+		settingsStore,
+		toolsStore,
 		uiStore
 	} from '#lib/stores/index.ts';
 	import type { DatabaseConversation } from '#lib/types/database.js';
 	import type { HfModelInfo } from '#lib/types/huggingface.js';
+	import type { SettingsTarget } from '#lib/types/index.ts';
 	import type { ConversationSearchSnippet } from '#lib/utils/conversation-search.ts';
-	import { formatRelativeTime, isIMEComposing, orgOf } from '#lib/utils/index.ts';
+	import {
+		formatRelativeTime,
+		isIMEComposing,
+		orgOf,
+		searchSettingsSections
+	} from '#lib/utils/index.ts';
 	import { goto } from '#lib/utils/navigation.ts';
 	import { type Component, untrack } from 'svelte';
 	import { SvelteMap } from 'svelte/reactivity';
@@ -52,9 +67,18 @@
 		open: boolean;
 		/** Runs a sidebar action picked from the actions section. */
 		onAction?: (action: SidebarAction) => void;
+		/** Opens the settings on a setting picked from the settings section. */
+		onOpenSetting?: (target: SettingsTarget) => void;
 	}

-	let { onAction, open = $bindable() }: Props = $props();
+	let { onAction, onOpenSetting, open = $bindable() }: Props = $props();
+
+	/** A setting the search found, the section it sits in and where it opens. */
+	interface SettingHit {
+		label: string;
+		section: SettingsAdvancedSection;
+		target: SettingsTarget;
+	}

 	interface SearchEntry {
 		icon: Component;
@@ -304,14 +328,13 @@
 	const actionEntries = $derived.by((): SearchEntry[] =>
 		// every sidebar action the sidebar shows but Search itself, which is what opened this
 		// dialog, and the models manager on a phone, which picks its models in the selector
-		[...SIDEBAR_ACTIONS_ITEMS, ...SIDEBAR_FOOTER_ITEMS]
-			.filter(
-				(item) =>
-					item.action &&
-					item.action !== SidebarAction.SEARCH &&
-					uiStore.isSidebarActionShown(item.action) &&
-					(item.action !== SidebarAction.MANAGE_MODELS || !deviceStore.isMobile)
-			)
+		SIDEBAR_ACTIONS_ITEMS.filter(
+			(item) =>
+				item.action &&
+				item.action !== SidebarAction.SEARCH &&
+				uiStore.isSidebarActionShown(item.action) &&
+				(item.action !== SidebarAction.MANAGE_MODELS || !deviceStore.isMobile)
+		)
 			.map((item) => ({
 				icon: item.icon,
 				id: `action-${item.action}`,
@@ -322,6 +345,45 @@
 			.filter((entry) => matches(entry.label))
 	);

+	// the settings a query finds, as the settings show them for this server: those named by it
+	// first, then those it finds in their help or their section
+	const settingEntries = $derived.by((): SearchEntry[] => {
+		if (!needle) return [];
+
+		const found = searchSettingsSections(
+			settingsSearchSections({
+				apiKeyRequired: serverStore.asksForApiKey !== false,
+				chatsGetTools: toolsStore.isAvailable,
+				mcpServersShown: settingsChatSections(
+					agenticMode.enabled,
+					settingsStore.config[SETTINGS_KEYS.ENABLE_MCP] !== false,
+					false
+				).some((section) => section.slug === SETTINGS_SECTION_SLUGS.EXTENSIONS),
+				serverRunsAgents: agenticMode.enabled
+			}),
+			query,
+			deviceStore.isMobile
+		).flatMap((section): SettingHit[] =>
+			section.hasOwnPage
+				? [{ label: section.title, section, target: { slug: section.slug } }]
+				: (section.fields ?? []).map((field) => ({
+						label: field.label,
+						section,
+						target: { key: field.key, slug: section.slug }
+					}))
+		);
+		const named = found.filter((entry) => matches(entry.label));
+		const rest = found.filter((entry) => !matches(entry.label));
+
+		return [...named, ...rest].slice(0, limit).map(({ label, section, target }) => ({
+			icon: section.icon,
+			id: `setting-${target.key ?? target.slug}`,
+			label,
+			meta: section.title,
+			run: () => close(() => onOpenSetting?.(target))
+		}));
+	});
+
 	// your own chats first; the Hub answers last, so it comes last and never moves a row above it
 	const sections = $derived<SearchSection[]>(
 		[
@@ -338,6 +400,7 @@
 			},
 			{ entries: suggestedEntries, title: 'Suggested models' },
 			{ entries: actionEntries, title: 'Actions' },
+			{ entries: settingEntries, title: SETTINGS_SEARCH_TEXT.SECTION },
 			{
 				entries: hubEntries,
 				loading: hubSearch.isSearching && !!needle,
diff --git a/ui/apps/chat/src/lib/components/app/dialogs/DialogSettingsChat.svelte b/ui/apps/chat/src/lib/components/app/dialogs/DialogSettingsChat.svelte
index 55092b90f..ac0f1013d 100644
--- a/ui/apps/chat/src/lib/components/app/dialogs/DialogSettingsChat.svelte
+++ b/ui/apps/chat/src/lib/components/app/dialogs/DialogSettingsChat.svelte
@@ -1,6 +1,6 @@
 <script lang="ts">
 	import * as Dialog from '@ggml-org/llama-ui/ui/dialog';
-	import { Settings, X } from '@lucide/svelte';
+	import { X } from '@lucide/svelte';
 	import { SettingsChat } from '#lib/components/app/settings/index.ts';
 	import { PANEL_CLOSE_MOBILE_CLASS } from '#lib/constants/index.ts';
 	import { deviceStore } from '#lib/stores/index.ts';
@@ -9,9 +9,11 @@
 		open?: boolean;
 		onOpenChange?: (open: boolean) => void;
 		initialSection?: string;
+		/** The setting to bring into view in that section. */
+		initialKey?: string;
 	}

-	let { initialSection, onOpenChange, open = $bindable(false) }: Props = $props();
+	let { initialKey, initialSection, onOpenChange, open = $bindable(false) }: Props = $props();

 	function handleOpenChange(value: boolean) {
 		open = value;
@@ -22,14 +24,13 @@
 <Dialog.Root onOpenChange={handleOpenChange} {open}>
 	<Dialog.Content
 		class="md:h-[calc(100vh-4rem)]! md:max-h-240! md:w-[calc(100vw-4rem)]! md:max-w-6xl! flex flex-col p-0 md:p-6 gap-0"
-		onOpenAutoFocus={(event) => deviceStore.isMobile && event.preventDefault()}
+		onOpenAutoFocus={(event) => {
+			// a phone keeps its keyboard down; a setting picked in the search takes the focus itself
+			if (deviceStore.isMobile || initialKey) event.preventDefault();
+		}}
 	>
 		<Dialog.Header class="md:p-0 p-4" showCloseButton={false}>
-			<Dialog.Title class="flex items-center gap-2">
-				<Settings class="size-icon-lg" />
-
-				<span>Settings</span>
-			</Dialog.Title>
+			<Dialog.Title>Settings</Dialog.Title>

 			<!-- the body is flush with the dialog, so the corner close needs its own inset -->
 			<Dialog.Close
@@ -41,6 +42,11 @@
 			</Dialog.Close>
 		</Dialog.Header>

-		<SettingsChat {initialSection} onClose={() => (open = false)} onSectionChange={() => {}} />
+		<SettingsChat
+			{initialKey}
+			{initialSection}
+			onClose={() => (open = false)}
+			onSectionChange={() => {}}
+		/>
 	</Dialog.Content>
 </Dialog.Root>
diff --git a/ui/apps/chat/src/lib/components/app/mcp/McpServerCard/McpServerCard.svelte b/ui/apps/chat/src/lib/components/app/mcp/McpServerCard/McpServerCard.svelte
index 5aeb6b3f8..a7513b82f 100644
--- a/ui/apps/chat/src/lib/components/app/mcp/McpServerCard/McpServerCard.svelte
+++ b/ui/apps/chat/src/lib/components/app/mcp/McpServerCard/McpServerCard.svelte
@@ -10,7 +10,7 @@
 		McpServerCardToolsList,
 		McpServerInfo
 	} from '#lib/components/app/mcp/index.ts';
-	import { ICON_CLASS_DEFAULT } from '#lib/constants/index.ts';
+	import { ICON_CLASS_DEFAULT, MCP_SERVER_CARD_SURFACE_CLASS } from '#lib/constants/index.ts';
 	import { HealthCheckStatus } from '#lib/enums/index.ts';
 	import { mcpStore } from '#lib/stores/index.ts';
 	import type { HealthCheckState, MCPServerSettingsEntry } from '#lib/types/index.ts';
@@ -108,7 +108,7 @@
 	}
 </script>

-<Card.Root class="!gap-3 bg-muted/30 p-4">
+<Card.Root class={['!gap-3 bg-muted/30 p-4', MCP_SERVER_CARD_SURFACE_CLASS]}>
 	{#if isEditing}
 		<McpServerCardEditForm
 			bind:this={editFormRef}
diff --git a/ui/apps/chat/src/lib/components/app/mcp/McpServerCardSkeleton.svelte b/ui/apps/chat/src/lib/components/app/mcp/McpServerCardSkeleton.svelte
index 1554dd4f2..ea6b6a30b 100644
--- a/ui/apps/chat/src/lib/components/app/mcp/McpServerCardSkeleton.svelte
+++ b/ui/apps/chat/src/lib/components/app/mcp/McpServerCardSkeleton.svelte
@@ -1,9 +1,10 @@
 <script lang="ts">
 	import * as Card from '@ggml-org/llama-ui/ui/card';
 	import { Skeleton } from '@ggml-org/llama-ui/ui/skeleton';
+	import { MCP_SERVER_CARD_SURFACE_CLASS } from '#lib/constants/index.ts';
 </script>

-<Card.Root class="grid gap-3 p-4">
+<Card.Root class={['grid gap-3 p-4', MCP_SERVER_CARD_SURFACE_CLASS]}>
 	<div class="flex items-center justify-between gap-4">
 		<div class="flex items-center gap-2">
 			<Skeleton class="size-5 rounded" />
diff --git a/ui/apps/chat/src/lib/components/app/navigation/SidebarNavigation/SidebarNavigation.svelte b/ui/apps/chat/src/lib/components/app/navigation/SidebarNavigation/SidebarNavigation.svelte
index 6db82046f..318253441 100644
--- a/ui/apps/chat/src/lib/components/app/navigation/SidebarNavigation/SidebarNavigation.svelte
+++ b/ui/apps/chat/src/lib/components/app/navigation/SidebarNavigation/SidebarNavigation.svelte
@@ -17,8 +17,7 @@
 		ModelsManagerModelDrawer,
 		SettingsSheet,
 		SidebarNavigationActions,
-		SidebarNavigationConversationList,
-		SidebarNavigationFooter
+		SidebarNavigationConversationList
 	} from '#lib/components/app/index.ts';
 	import {
 		ROUTES,
@@ -44,6 +43,7 @@
 		settingsStore,
 		uiStore
 	} from '#lib/stores/index.ts';
+	import type { SettingsTarget } from '#lib/types/index.ts';
 	import { buildConversationTree, hapticTap, remToPx } from '#lib/utils/index.ts';
 	import { goto } from '#lib/utils/navigation.ts';
 	import { resolve } from '$app/paths';
@@ -176,6 +176,8 @@
 	let selectedIds = new SvelteSet<string>();

 	let settingsDialogOpen = $state(false);
+	// where the settings open: a setting picked in the search, or their first page
+	let settingsTarget = $state<SettingsTarget | null>(null);
 	// a phone's settings: a sheet over the page, where a desktop or tablet opens the dialog
 	let settingsSheetOpen = $state(false);
 	let renameDraft = $state('');
@@ -577,13 +579,20 @@
 				break;
 			// a dialog on a desktop or tablet; on a phone, a sheet
 			case SidebarAction.SETTINGS:
-				// the sheet rises over the sidebar, which stays open behind it
-				if (isOnMobile) settingsSheetOpen = true;
-				else openDialog(() => (settingsDialogOpen = true));
+				openSettingsAt(null);

 				break;
 		}
 	}
+
+	/** Opens the settings on a section and a setting in it, or on their first page. */
+	function openSettingsAt(target: SettingsTarget | null): void {
+		settingsTarget = target;
+
+		// the sheet rises over the sidebar, which stays open behind it
+		if (isOnMobile) settingsSheetOpen = true;
+		else openDialog(() => (settingsDialogOpen = true));
+	}
 </script>

 <svelte:window bind:innerWidth onkeydown={handleKeydown} />
@@ -689,7 +698,7 @@
 			<div
 				in:fade={{ duration: SIDEBAR_CONTENT_FADE_MS }}
 				out:fade={{ duration: SIDEBAR_CONTENT_FADE_MS }}
-				class="mt-2 flex min-h-0 flex-1 flex-col gap-7 max-md:mt-6 md:gap-1 md:transition-opacity md:duration-150 md:ease-out {isStripHidden
+				class="flex min-h-0 flex-1 flex-col gap-7 max-md:mt-6 md:gap-1 md:transition-opacity md:duration-150 md:ease-out {isStripHidden
 					? 'md:opacity-0 md:invisible'
 					: ''}"
 				inert={isStripHidden}
@@ -735,11 +744,10 @@
 					/>
 				</div>

-				<!-- the footer, at the bottom of the sidebar and of its collapsed strip alike; a
-				     phone pins Settings to its left corner and New chat to its right -->
-				{#if !isOnMobile}
-					<SidebarNavigationFooter onAction={handleSidebarAction} />
-				{:else}
+				<!-- a phone keeps its own keys pinned under the conversations: Settings to the left
+				     corner, New chat to the right; on a wider screen those actions sit at the top of the
+				     sidebar with the rest -->
+				{#if isOnMobile}
 					<div class="flex shrink-0 items-center justify-between px-2 pb-safe-3">
 						<ActionIcon
 							ariaLabel={SIDEBAR_KEYS_TEXT.SETTINGS}
@@ -820,13 +828,21 @@
 	onConfirm={handleDeleteConfirm}
 />

-<DialogSettingsChat bind:open={settingsDialogOpen} />
+<DialogSettingsChat
+	bind:open={settingsDialogOpen}
+	initialKey={settingsTarget?.key}
+	initialSection={settingsTarget?.slug}
+/>

 {#if isOnMobile}
-	<SettingsSheet bind:open={settingsSheetOpen} />
+	<SettingsSheet bind:open={settingsSheetOpen} target={settingsTarget} />
 {/if}

-<DialogSearch bind:open={searchOpen} onAction={handleSidebarAction} />
+<DialogSearch
+	bind:open={searchOpen}
+	onAction={handleSidebarAction}
+	onOpenSetting={openSettingsAt}
+/>

 <DialogMcpServers bind:open={uiStore.mcpServersOpen} />

diff --git a/ui/apps/chat/src/lib/components/app/navigation/SidebarNavigation/SidebarNavigationActions.svelte b/ui/apps/chat/src/lib/components/app/navigation/SidebarNavigation/SidebarNavigationActions.svelte
index 103345eb9..43fe0edbf 100644
--- a/ui/apps/chat/src/lib/components/app/navigation/SidebarNavigation/SidebarNavigationActions.svelte
+++ b/ui/apps/chat/src/lib/components/app/navigation/SidebarNavigation/SidebarNavigationActions.svelte
@@ -20,7 +20,7 @@

 	interface Props {
 		class: string;
-		/** The items to show: the sidebar's top actions unless given, e.g. its footer's. */
+		/** The items to show: the sidebar's own actions unless given. */
 		items?: DesktopIconStripItem[];
 		onAction?: (action: SidebarAction) => void;
 		/** Follows a route item, so a phone can open its page behind the sidebar and then close it. */
@@ -30,8 +30,8 @@
 	let { class: className, items = SIDEBAR_ACTIONS_ITEMS, onAction, onNavigate }: Props = $props();

 	// the models manager stays desktop-only: a phone picks its models in the selector; a phone
-	// reaches search from the round key at the top of the sidebar instead. Models and MCP
-	// wait behind their settings
+	// reaches search from the round key at the top of the sidebar instead. Models and Settings wait
+	// behind their settings
 	const actions = $derived(
 		items.filter(
 			(item) =>
diff --git a/ui/apps/chat/src/lib/components/app/navigation/SidebarNavigation/SidebarNavigationFooter.svelte b/ui/apps/chat/src/lib/components/app/navigation/SidebarNavigation/SidebarNavigationFooter.svelte
deleted file mode 100644
index c65c8e920..000000000
--- a/ui/apps/chat/src/lib/components/app/navigation/SidebarNavigation/SidebarNavigationFooter.svelte
+++ /dev/null
@@ -1,26 +0,0 @@
-<script lang="ts">
-	import SidebarNavigationActions from './SidebarNavigationActions.svelte';
-	import { SIDEBAR_FOOTER_ITEMS } from '#lib/constants/index.ts';
-	import type { SidebarAction } from '#lib/enums/index.ts';
-	import { uiStore } from '#lib/stores/index.ts';
-
-	interface Props {
-		onAction?: (action: SidebarAction) => void;
-	}
-
-	let { onAction }: Props = $props();
-
-	// a lone row needs no group around it
-	let isGrouped = $derived(
-		SIDEBAR_FOOTER_ITEMS.filter((item) => uiStore.isSidebarActionShown(item.action)).length > 1
-	);
-</script>
-
-<!-- the footer: managing the app around the chats. Two or more rows are a group inset in the
-     sidebar, rounded concentric with it (see the nested surfaces in app.css); a single row sits
-     on the sidebar as the top actions do -->
-<SidebarNavigationActions
-	class={isGrouped ? 'inset-group-surface mx-2 mb-2 p-(--surface-group-padding)' : 'mb-2 px-2'}
-	items={SIDEBAR_FOOTER_ITEMS}
-	{onAction}
-/>
diff --git a/ui/apps/chat/src/lib/components/app/navigation/index.ts b/ui/apps/chat/src/lib/components/app/navigation/index.ts
index c21afa564..f228fb4f5 100644
--- a/ui/apps/chat/src/lib/components/app/navigation/index.ts
+++ b/ui/apps/chat/src/lib/components/app/navigation/index.ts
@@ -182,9 +182,6 @@ export { default as SidebarNavigationSelectionBar } from './SidebarNavigation/Si
 export { default as SidebarNavigationConversationList } from './SidebarNavigation/SidebarNavigationConversationList.svelte';
 export { default as SidebarNavigationActions } from './SidebarNavigation/SidebarNavigationActions.svelte';

-/** The sidebar's footer: Models and Settings in a group inset in the sidebar. */
-export { default as SidebarNavigationFooter } from './SidebarNavigation/SidebarNavigationFooter.svelte';
-
 /**
  * **ConversationActions** - The actions a conversation's menus offer
  *
diff --git a/ui/apps/chat/src/lib/components/app/settings/SettingsChat/SettingsChat.svelte b/ui/apps/chat/src/lib/components/app/settings/SettingsChat/SettingsChat.svelte
index 664f0c8ce..e83e0de9b 100644
--- a/ui/apps/chat/src/lib/components/app/settings/SettingsChat/SettingsChat.svelte
+++ b/ui/apps/chat/src/lib/components/app/settings/SettingsChat/SettingsChat.svelte
@@ -1,10 +1,13 @@
 <script lang="ts">
 	import { Button } from '@ggml-org/llama-ui/ui/button';
-	import { RefreshCw } from '@lucide/svelte';
+	import { ChevronLeft, ChevronRight, RefreshCw, SlidersHorizontal } from '@lucide/svelte';
+	import { SearchInput } from '#lib/components/app/index.ts';
 	import {
 		SettingsChatDesktopSidebar,
+		SettingsChatEssentials,
 		SettingsChatFields,
 		SettingsChatImportExportTab,
+		SettingsChatMcpServersTab,
 		SettingsChatMobileHeader,
 		SettingsChatToolsTab,
 		SettingsChatVoiceTab,
@@ -12,38 +15,84 @@
 		SettingsHuggingFaceAccount,
 		SettingsResetButton
 	} from '#lib/components/app/settings/index.ts';
+	import SettingsGroup from '#lib/components/app/settings/SettingsGroup.svelte';
+	import type { SettingsFieldGroup } from '#lib/constants/index.ts';
 	import {
+		AGENTIC_ENABLED,
+		ICON_CLASS_SM,
 		NUMERIC_FIELDS,
 		POSITIVE_INTEGER_FIELDS,
+		SETTINGS_API_KEY_FIELDS,
+		SETTINGS_CHAT_SECTIONS,
+		SETTINGS_ESSENTIAL_FIELDS,
+		SETTINGS_FEATURE_FIELDS,
 		SETTINGS_KEYS,
+		SETTINGS_SEARCH_TEXT,
 		SETTINGS_SECTION_SLUGS,
-		settingsChatSections
+		SETTINGS_SECTION_TITLES,
+		settingsAdvancedSections,
+		settingsChatSections,
+		settingsSearchSections
 	} from '#lib/constants/index.ts';
+	import { SettingsFieldType } from '#lib/enums/settings.enums.ts';
 	import { ColorMode } from '#lib/enums/ui.enums.ts';
 	import { agenticMode } from '#lib/stores/agentic-mode.svelte.ts';
-	import { deviceStore, modelsStore, serverStore, settingsStore } from '#lib/stores/index.ts';
+	import {
+		deviceStore,
+		modelsStore,
+		serverStore,
+		settingsStore,
+		toolsStore
+	} from '#lib/stores/index.ts';
 	import type { SettingsSection, SettingsSectionTitle } from '#lib/types/index.ts';
-	import { isSettingShownOn } from '#lib/utils/index.ts';
+	import { isSettingShownOn, revealSetting, searchSettingsSections } from '#lib/utils/index.ts';
 	import { setMode } from 'mode-watcher';
-	import { tick } from 'svelte';
+	import { tick, untrack } from 'svelte';
 	import { fade } from 'svelte/transition';
+
+	const TEXT = {
+		BACK: 'Back to settings',
+		FEATURES: 'Features',
+		SYSTEM_MESSAGE: 'System message'
+	} as const;
+
+	/** The plain chat's two levels: its short menu, and the advanced settings one step in. */
+	const SettingsLevel = { ADVANCED: 'advanced', MAIN: 'main' } as const;
+
+	type SettingsLevel = (typeof SettingsLevel)[keyof typeof SettingsLevel];
+
+	const FADE_MS = 150;
+
+	/** The plain chat's menu entry that opens the advanced settings. */
+	const ADVANCED_ENTRY: SettingsSection = {
+		icon: SlidersHorizontal,
+		slug: SETTINGS_SECTION_SLUGS.ADVANCED,
+		title: SETTINGS_SECTION_TITLES.ADVANCED
+	};
+
 	interface Props {
 		initialSection?: string;
+		/** The setting to bring into view in that section, e.g. one picked in the app's search. */
+		initialKey?: string;
 		/** Where the phone's section tabs pin, see SettingsChatMobileHeader */
 		mobileHeaderClass?: string;
 		onSectionChange?: (section: SettingsSectionTitle) => void;
 		onClose?: () => void;
 	}

-	let { initialSection, mobileHeaderClass, onClose, onSectionChange }: Props = $props();
-
-	const sections = $derived(settingsChatSections(agenticMode.enabled));
-
-	let activeSlug = $derived(initialSection ?? SETTINGS_SECTION_SLUGS.GENERAL);
+	let { initialKey, initialSection, mobileHeaderClass, onClose, onSectionChange }: Props = $props();

+	let level = $state<SettingsLevel>(SettingsLevel.MAIN);
 	let contentEl = $state<HTMLDivElement>();

-	// a new section starts at its top, whether the dialog, the drawer or the page scrolls
+	function showLevel(next: SettingsLevel) {
+		level = next;
+		// each level opens on its first section
+		activeSlug = undefined;
+		void tick().then(scrollToTop);
+	}
+
+	// a section starts at its top, whether the dialog, the drawer or the page scrolls
 	function scrollToTop() {
 		let el: HTMLElement | null = contentEl ?? null;

@@ -59,40 +108,159 @@
 		(el ?? document.scrollingElement)?.scrollTo({ top: 0 });
 	}

-	function handleSectionChange(section: SettingsSectionTitle) {
-		const found = sections.find((s) => s.title === section);
+	let localConfig: SettingsConfigType = $state({ ...settingsStore.config });
+	// the config as the form last read it: Save writes only what was changed since, so settings
+	// saved elsewhere meanwhile (an MCP server added, say) are not written back over
+	let baseline: SettingsConfigType = { ...settingsStore.config };
+
+	// the MCP servers show while Enable MCP is on, for a plain chat too
+	const mcpEnabled = $derived(localConfig[SETTINGS_KEYS.ENABLE_MCP] !== false);
+	const showMcpServers = $derived(
+		settingsChatSections(agenticMode.enabled, mcpEnabled, false).some(
+			(section) => section.slug === SETTINGS_SECTION_SLUGS.EXTENSIONS
+		)
+	);

-		if (found && found.slug !== activeSlug) {
-			activeSlug = found.slug;
-			void tick().then(scrollToTop);
-		}
+	// the API key's field shows but for a server known to answer without one
+	const apiKeyRequired = $derived(serverStore.asksForApiKey !== false);
+
+	// every other setting, in sections by topic with a menu beside them; the agent's only on a
+	// server that runs agents, the tools' in a plain chat too
+	const advancedSections = $derived(
+		settingsAdvancedSections(agenticMode.enabled, toolsStore.isAvailable).map((section) => ({
+			...section,
+			groups: section.groups.map(shownOnThisDevice).filter(hasFields)
+		}))
+	);
+
+	// one short menu for a plain chat and an agent alike: the basics, then Advanced, with the
+	// topics one level in
+	const simpleSections = $derived<SettingsSection[]>([
+		...registrySections(SETTINGS_SECTION_SLUGS.GENERAL),
+		...(showMcpServers ? registrySections(SETTINGS_SECTION_SLUGS.EXTENSIONS) : []),
+		...registrySections(SETTINGS_SECTION_SLUGS.IMPORT_EXPORT),
+		ADVANCED_ENTRY
+	]);
+
+	// the short menu, while it is not inside the advanced settings
+	const isSimpleMenu = $derived(level === SettingsLevel.MAIN);
+
+	const isAdvancedLevel = $derived(level === SettingsLevel.ADVANCED);

-		onSectionChange?.(section);
+	const menuSections = $derived(isSimpleMenu ? simpleSections : advancedSections);
+
+	let activeSlug = $derived<string | undefined>(initialSection);
+
+	// asked for a section of the advanced settings, the menu opens one level in
+	$effect(() => {
+		const slug = initialSection;
+
+		untrack(() => {
+			if (!slug) return;
+
+			if (simpleSections.some((section) => section.slug === slug)) return;
+
+			if (advancedSections.some((section) => section.slug === slug)) level = SettingsLevel.ADVANCED;
+		});
+	});
+	// the opening setting comes into view once its section is drawn
+	$effect(() => {
+		const key = initialKey;
+
+		untrack(() => {
+			if (key) void tick().then(() => revealSetting(key));
+		});
+	});
+	let activeSection = $derived(
+		menuSections.find((section) => section.slug === activeSlug) ?? menuSections[0]
+	);
+
+	// a search shows the settings it finds in place of a section, ready to change there
+	let searchQuery = $state('');
+	const isSearching = $derived(searchQuery.trim() !== '');
+	const searchResults = $derived(
+		searchSettingsSections(
+			settingsSearchSections({
+				apiKeyRequired,
+				chatsGetTools: toolsStore.isAvailable,
+				mcpServersShown: showMcpServers,
+				serverRunsAgents: agenticMode.enabled
+			}),
+			searchQuery,
+			deviceStore.isMobile
+		)
+	);
+
+	/** Opens a section found by the search, and brings a setting of it into view. */
+	function openFound(slug: string, key?: string) {
+		searchQuery = '';
+
+		const inMain = simpleSections.some((section) => section.slug === slug);
+
+		level = inMain ? SettingsLevel.MAIN : SettingsLevel.ADVANCED;
+		activeSlug = slug;
+		void tick().then(() => (key ? revealSetting(key) : scrollToTop()));
 	}

-	let currentSection = $derived(
-		sections.find((section) => section.slug === activeSlug) || sections[0]
+	let activeGroups = $derived(
+		advancedSections.find((section) => section.slug === activeSection?.slug)?.groups ?? []
 	);

-	let localConfig: SettingsConfigType = $state({ ...settingsStore.config });
+	function registrySections(slug: string): SettingsSection[] {
+		return SETTINGS_CHAT_SECTIONS.filter((section) => section.slug === slug);
+	}
+
+	function shownOnThisDevice(group: SettingsFieldGroup): SettingsFieldGroup {
+		return {
+			...group,
+			fields: group.fields.filter((field) => isSettingShownOn(field, deviceStore.isMobile))
+		};
+	}
+
+	function hasFields(group: SettingsFieldGroup): boolean {
+		return group.fields.length > 0;
+	}
+
+	function showSection(title: SettingsSectionTitle) {
+		searchQuery = '';
+
+		if (isSimpleMenu && title === ADVANCED_ENTRY.title) {
+			showLevel(SettingsLevel.ADVANCED);
+
+			return;
+		}
+
+		const found = menuSections.find((section) => section.title === title);
+
+		if (found && found.slug !== activeSection?.slug) {
+			activeSlug = found.slug;
+			void tick().then(scrollToTop);
+		}
+
+		onSectionChange?.(title);
+	}

 	// a setting for another kind of device is left out
 	let sectionFields = $derived(
-		(currentSection.fields ?? []).filter((field) => isSettingShownOn(field, deviceStore.isMobile))
+		SETTINGS_ESSENTIAL_FIELDS.filter((field) => isSettingShownOn(field, deviceStore.isMobile))
+	);
+	// General shows the look first, then the texts, and the features last
+	let displayFields = $derived(
+		sectionFields.filter((field) => field.type !== SettingsFieldType.TEXTAREA)
+	);
+	let textFields = $derived(
+		sectionFields.filter((field) => field.type === SettingsFieldType.TEXTAREA)
+	);
+	// the feature switches, for any server: MCP works in a plain chat too
+	let featureFields = $derived(
+		AGENTIC_ENABLED
+			? SETTINGS_FEATURE_FIELDS.filter((field) => isSettingShownOn(field, deviceStore.isMobile))
+			: []
 	);

 	// inputs hand back strings for numeric fields, so compare stringified values
 	let hasChanges = $derived.by(() => {
-		const saved = settingsStore.config;
-		const keys = new Set([...Object.keys(saved), ...Object.keys(localConfig)]);
-
-		for (const key of keys) {
-			if (String(localConfig[key] ?? '') !== String(saved[key] ?? '')) {
-				return true;
-			}
-		}
-
-		return false;
+		return changedKeys().length > 0;
 	});

 	let mobileHeader: { updateCarousel: () => void } | undefined;
@@ -100,7 +268,7 @@
 	let fetchInitiated = false;

 	$effect(() => {
-		if (serverStore.isRouterMode && currentSection.fields?.length && !fetchInitiated) {
+		if (serverStore.isRouterMode && !fetchInitiated) {
 			fetchInitiated = true;

 			void modelsStore
@@ -118,20 +286,25 @@

 	function handleConfigChange(key: string, value: string | boolean) {
 		localConfig[key] = value;
+	}

-		// discover needs the hub metadata reads: checking it turns the hub on,
-		// unchecking it turns the hub back off, so the checkbox never lies
-		if (key === SETTINGS_KEYS.ENABLE_DISCOVER_MODELS) {
-			localConfig[SETTINGS_KEYS.USE_HUGGING_FACE_HUB] = value === true;
+	/** The keys the form changed since it last read the config. */
+	function changedKeys(): string[] {
+		const keys = new Set([...Object.keys(baseline), ...Object.keys(localConfig)]);

-			// it opens from the Models page, so checking it shows Models too; unchecking it
-			// leaves Models as it is, since Models is useful without it
-			if (value === true) localConfig[SETTINGS_KEYS.SHOW_MODELS_MANAGER] = true;
-		}
+		return [...keys].filter(
+			(key) => String(localConfig[key] ?? '') !== String(baseline[key] ?? '')
+		);
+	}
+
+	/** Reads the config afresh into the form. */
+	function readConfig() {
+		baseline = { ...settingsStore.config };
+		localConfig = { ...baseline };
 	}

 	function handleReset() {
-		localConfig = { ...settingsStore.config };
+		readConfig();
 		setMode(localConfig.theme as ColorMode);
 		mobileHeader?.updateCarousel();
 	}
@@ -152,7 +325,9 @@
 			}
 		}

-		const processedConfig = { ...localConfig };
+		const processedConfig: Partial<SettingsConfigType> = Object.fromEntries(
+			changedKeys().map((key) => [key, localConfig[key]])
+		);

 		for (const field of NUMERIC_FIELDS) {
 			if (processedConfig[field] !== undefined && processedConfig[field] !== '') {
@@ -160,9 +335,9 @@

 				if (!isNaN(numValue)) {
 					if ((POSITIVE_INTEGER_FIELDS as readonly string[]).includes(field)) {
-						const entryByMinMax = sections
-							.flatMap((section) => section.fields ?? [])
-							.find((entry) => entry.key === field);
+						const entryByMinMax = SETTINGS_CHAT_SECTIONS.flatMap(
+							(section) => section.fields ?? []
+						).find((entry) => entry.key === field);
 						const lo = entryByMinMax?.min ?? 1;
 						const hi = entryByMinMax?.max ?? Number.POSITIVE_INFINITY;

@@ -179,67 +354,55 @@
 		}

 		settingsStore.updateMultipleConfig(processedConfig);
+		readConfig();
 		onClose?.();
 	}

 	export function reset() {
-		localConfig = { ...settingsStore.config };
+		readConfig();
 	}
 </script>

-<div in:fade={{ duration: 150 }} class="mx-auto flex size-full flex-col">
+<div in:fade={{ duration: FADE_MS }} class="mx-auto flex size-full flex-col">
 	<div class="flex flex-1 flex-col md:flex-row md:gap-4">
 		<SettingsChatDesktopSidebar
-			isActive={(section: SettingsSection) => section.slug === activeSlug}
-			onSectionChange={handleSectionChange}
-			{sections}
-		/>
+			back={isAdvancedLevel
+				? { label: TEXT.BACK, onclick: () => showLevel(SettingsLevel.MAIN) }
+				: undefined}
+			isActive={(section) => !isSearching && section.slug === activeSection?.slug}
+			onSectionChange={showSection}
+			sections={menuSections}
+		>
+			{#snippet header()}
+				{@render search()}
+			{/snippet}
+		</SettingsChatDesktopSidebar>
+
+		<div class="px-4 pb-2 md:hidden">
+			{@render search()}
+		</div>
+
+		{#if isAdvancedLevel}
+			<div class="px-4 md:hidden">
+				{@render backToSettings()}
+			</div>
+		{/if}

 		<SettingsChatMobileHeader
 			bind:this={mobileHeader}
 			class={mobileHeaderClass}
-			isActive={(section: SettingsSection) => section.slug === activeSlug}
-			onSectionChange={handleSectionChange}
-			{sections}
+			isActive={(section) => !isSearching && section.slug === activeSection?.slug}
+			onSectionChange={showSection}
+			sections={menuSections}
 		/>

-		<div bind:this={contentEl} class="mx-auto max-w-2xl px-4 flex-1 md:mt-4">
+		<div bind:this={contentEl} class="mx-auto max-w-2xl flex-1 px-4 md:mt-4">
 			<div class="space-y-6 pt-3">
-				<div class="grid">
-					{#if currentSection.slug === SETTINGS_SECTION_SLUGS.TOOLS}
-						<SettingsChatToolsTab />
-					{:else if currentSection.slug === SETTINGS_SECTION_SLUGS.IMPORT_EXPORT}
-						<SettingsChatImportExportTab />
-					{:else if currentSection.slug === SETTINGS_SECTION_SLUGS.VOICE && currentSection.fields}
-						<SettingsChatVoiceTab
-							fields={sectionFields}
-							{localConfig}
-							onConfigChange={handleConfigChange}
-						/>
-					{:else if currentSection.fields}
-						<div class="space-y-6">
-							<SettingsChatFields
-								fields={sectionFields}
-								{localConfig}
-								onConfigChange={handleConfigChange}
-								onThemeChange={handleThemeChange}
-							/>
-
-							{#if currentSection.slug === SETTINGS_SECTION_SLUGS.GENERAL}
-								<SettingsHuggingFaceAccount />
-
-								<div class="flex justify-end gap-2">
-									<SettingsResetButton onReset={handleReset} />
-
-									<Button onclick={() => window.location.reload()} variant="outline">
-										<RefreshCw class="size-icon-md" />
-										Reload app
-									</Button>
-								</div>
-							{/if}
-						</div>
-					{/if}
-				</div>
+				{#if isSearching}
+					{@render searchResultsContent()}
+				{:else}
+					{@render sectionContent()}
+				{/if}

 				<div class="mt-8 border-t border-border/30 pt-6 pb-6">
 					<p class="text-caption text-muted-foreground">
@@ -252,3 +415,155 @@
 		</div>
 	</div>
 </div>
+
+{#snippet search()}
+	<SearchInput bind:value={searchQuery} placeholder={SETTINGS_SEARCH_TEXT.PLACEHOLDER} size="sm" />
+{/snippet}
+
+{#snippet searchResultsContent()}
+	<div class="min-w-0 space-y-10">
+		{#each searchResults as section (section.slug)}
+			<div class="space-y-4">
+				<!-- the section's name leads to the section itself -->
+				<button
+					class="flex cursor-pointer items-center gap-2 text-label text-muted-foreground transition-colors hover:text-foreground"
+					onclick={() => openFound(section.slug)}
+					type="button"
+				>
+					<section.icon class={ICON_CLASS_SM} />
+
+					{section.title}
+
+					<ChevronRight class={ICON_CLASS_SM} />
+				</button>
+
+				{#each section.groups as group (group.title)}
+					<SettingsGroup sub title={group.title}>
+						{@render foundFields(group.fields, section.slug)}
+					</SettingsGroup>
+				{/each}
+			</div>
+		{:else}
+			<p class="py-12 text-center text-body-sm text-muted-foreground">
+				{SETTINGS_SEARCH_TEXT.NO_RESULTS}
+			</p>
+		{/each}
+	</div>
+{/snippet}
+
+<!-- a found setting is drawn as its section draws it: the first page's look, the voice tab's
+     pickers, or a plain field -->
+{#snippet foundFields(fields: SettingsFieldConfig[], slug: string)}
+	{@const firstPage = fields.filter((field) => field.isEssential)}
+	{@const others = fields.filter((field) => !field.isEssential)}
+
+	{#if firstPage.length > 0}
+		{@render essentials(firstPage)}
+	{/if}
+
+	{#if others.length > 0}
+		{#if slug === SETTINGS_SECTION_SLUGS.VOICE}
+			<SettingsChatVoiceTab fields={others} {localConfig} onConfigChange={handleConfigChange} />
+		{:else}
+			<SettingsChatFields fields={others} {localConfig} onConfigChange={handleConfigChange} />
+		{/if}
+	{/if}
+{/snippet}
+
+{#snippet backToSettings()}
+	<Button class="mb-2 justify-start" onclick={() => showLevel(SettingsLevel.MAIN)} variant="ghost">
+		<ChevronLeft class="size-icon-md" />
+
+		{TEXT.BACK}
+	</Button>
+{/snippet}
+
+{#snippet essentials(fields: SettingsFieldConfig[])}
+	<SettingsChatEssentials
+		{fields}
+		{localConfig}
+		onConfigChange={handleConfigChange}
+		onThemeChange={handleThemeChange}
+	/>
+{/snippet}
+
+{#snippet features()}
+	<SettingsChatEssentials
+		fields={featureFields}
+		{localConfig}
+		onConfigChange={handleConfigChange}
+	/>
+{/snippet}
+
+{#snippet sectionContent()}
+	{#if activeSection}
+		<div class="min-w-0 space-y-10">
+			{#if activeSection.slug === SETTINGS_SECTION_SLUGS.GENERAL}
+				<SettingsGroup sub title={SETTINGS_SECTION_TITLES.DISPLAY}>
+					{@render essentials(displayFields)}
+
+					{#if apiKeyRequired}
+						<SettingsChatFields
+							fields={SETTINGS_API_KEY_FIELDS}
+							{localConfig}
+							onConfigChange={handleConfigChange}
+						/>
+					{/if}
+				</SettingsGroup>
+
+				{#if textFields.length > 0}
+					<SettingsGroup sub title={TEXT.SYSTEM_MESSAGE}>
+						{@render essentials(textFields)}
+					</SettingsGroup>
+				{/if}
+
+				{#if featureFields.length > 0}
+					<SettingsGroup sub title={TEXT.FEATURES}>
+						{@render features()}
+					</SettingsGroup>
+				{/if}
+
+				<SettingsHuggingFaceAccount />
+			{:else if activeSection.slug === SETTINGS_SECTION_SLUGS.EXTENSIONS}
+				<SettingsChatMcpServersTab enabled={mcpEnabled} />
+			{:else if activeSection.slug === SETTINGS_SECTION_SLUGS.IMPORT_EXPORT}
+				<SettingsChatImportExportTab />
+			{:else if activeSection.slug === SETTINGS_SECTION_SLUGS.TOOLS}
+				<SettingsChatToolsTab />
+			{:else}
+				{@render groups(activeGroups, activeSection.slug)}
+
+				{#if activeSection.slug === SETTINGS_SECTION_SLUGS.DEVELOPER}
+					<div class="flex justify-end gap-2">
+						<SettingsResetButton onReset={handleReset} />
+
+						<Button onclick={() => window.location.reload()} variant="outline">
+							<RefreshCw class="size-icon-md" />
+							Reload app
+						</Button>
+					</div>
+				{/if}
+			{/if}
+		</div>
+	{/if}
+{/snippet}
+
+{#snippet groups(entries: SettingsFieldGroup[], slug: string)}
+	{#each entries as group (group.title)}
+		<SettingsGroup sub title={group.title}>
+			{#if slug === SETTINGS_SECTION_SLUGS.VOICE}
+				<SettingsChatVoiceTab
+					fields={group.fields}
+					{localConfig}
+					onConfigChange={handleConfigChange}
+				/>
+			{:else}
+				<SettingsChatFields
+					fields={group.fields}
+					{localConfig}
+					onConfigChange={handleConfigChange}
+				/>
+			{/if}
+		</SettingsGroup>
+	{/each}
+{/snippet}
diff --git a/ui/apps/chat/src/lib/components/app/settings/SettingsChat/SettingsChatEssentials.svelte b/ui/apps/chat/src/lib/components/app/settings/SettingsChat/SettingsChatEssentials.svelte
new file mode 100644
index 000000000..7a0a4617e
--- /dev/null
+++ b/ui/apps/chat/src/lib/components/app/settings/SettingsChat/SettingsChatEssentials.svelte
@@ -0,0 +1,96 @@
+<!--
+	The few settings most people change, as rows: a choice as a toggle group and a switch at the
+	row's end, a text under its label. The dialog's Save applies them, as every other field's.
+-->
+<script lang="ts">
+	import { Label } from '@ggml-org/llama-ui/ui/label';
+	import { Switch } from '@ggml-org/llama-ui/ui/switch';
+	import { Textarea } from '@ggml-org/llama-ui/ui/textarea';
+	import * as ToggleGroup from '@ggml-org/llama-ui/ui/toggle-group';
+	import { ICON_CLASS_DEFAULT, SETTINGS_KEYS } from '#lib/constants/index.ts';
+	import { SettingsFieldType } from '#lib/enums/settings.enums.ts';
+	import { useSettingsFieldDefaults } from '#lib/hooks/use-settings-field-defaults.svelte.ts';
+
+	interface Props {
+		fields: SettingsFieldConfig[];
+		localConfig: SettingsConfigType;
+		onConfigChange: (key: string, value: string | boolean) => void;
+		onThemeChange?: (theme: string) => void;
+	}
+
+	let { fields, localConfig, onConfigChange, onThemeChange }: Props = $props();
+
+	const fieldDefaults = useSettingsFieldDefaults(() => localConfig);
+
+	function handleChoice(key: string, value: string) {
+		// a toggle group lets its pressed key be released; a setting keeps its value
+		if (!value) return;
+
+		if (key === SETTINGS_KEYS.THEME && onThemeChange) onThemeChange(value);
+		else onConfigChange(key, value);
+	}
+</script>
+
+<div class="flex flex-col gap-6">
+	{#each fields as field (field.key)}
+		{#if field.type === SettingsFieldType.SELECT}
+			<div class="flex items-center justify-between gap-6">
+				<Label class="text-label" for={field.key}>{field.label}</Label>
+
+				<ToggleGroup.Root
+					class="w-fit"
+					id={field.key}
+					onValueChange={(value) => handleChoice(field.key, value)}
+					type="single"
+					value={String(localConfig[field.key] ?? '')}
+				>
+					{#each field.options ?? [] as option (option.value)}
+						<ToggleGroup.Item aria-label={option.label} title={option.label} value={option.value}>
+							{#if option.icon}
+								<option.icon class={ICON_CLASS_DEFAULT} />
+							{:else}
+								{option.label}
+							{/if}
+						</ToggleGroup.Item>
+					{/each}
+				</ToggleGroup.Root>
+			</div>
+		{:else if field.type === SettingsFieldType.CHECKBOX}
+			<div class="flex items-center justify-between gap-12">
+				<div class="grid gap-1.5">
+					<Label class="text-label" for={field.key}>{field.label}</Label>
+
+					{#if fieldDefaults.helpOf(field)}
+						<p class="text-caption text-muted-foreground">{fieldDefaults.helpOf(field)}</p>
+					{/if}
+				</div>
+
+				<Switch
+					checked={Boolean(localConfig[field.key])}
+					disabled={fieldDefaults.isLocked(field)}
+					id={field.key}
+					onCheckedChange={(checked) => onConfigChange(field.key, checked)}
+					size="md"
+				/>
+			</div>
+		{:else if field.type === SettingsFieldType.TEXTAREA}
+			<div class="grid gap-2">
+				<div class="grid gap-1.5">
+					<Label class="text-label" for={field.key}>{field.label}</Label>
+
+					{#if field.help}
+						<p class="text-caption text-muted-foreground">{field.help}</p>
+					{/if}
+				</div>
+
+				<Textarea
+					class="min-h-24 w-full"
+					id={field.key}
+					oninput={(event) => onConfigChange(field.key, event.currentTarget.value)}
+					placeholder={field.placeholder ?? ''}
+					value={String(localConfig[field.key] ?? '')}
+				/>
+			</div>
+		{/if}
+	{/each}
+</div>
diff --git a/ui/apps/chat/src/lib/components/app/settings/SettingsChat/SettingsChatFields.svelte b/ui/apps/chat/src/lib/components/app/settings/SettingsChat/SettingsChatFields.svelte
index c320d7229..044cf5a0f 100644
--- a/ui/apps/chat/src/lib/components/app/settings/SettingsChat/SettingsChatFields.svelte
+++ b/ui/apps/chat/src/lib/components/app/settings/SettingsChat/SettingsChatFields.svelte
@@ -1,24 +1,24 @@
 <script lang="ts">
-	import { Button } from '@ggml-org/llama-ui/ui/button';
-	import { Checkbox } from '@ggml-org/llama-ui/ui/checkbox';
 	import { Input } from '@ggml-org/llama-ui/ui/input';
 	import { Label } from '@ggml-org/llama-ui/ui/label';
 	import * as RadioGroup from '@ggml-org/llama-ui/ui/radio-group';
 	import * as Select from '@ggml-org/llama-ui/ui/select';
+	import { Switch } from '@ggml-org/llama-ui/ui/switch';
 	import { Textarea } from '@ggml-org/llama-ui/ui/textarea';
 	import { FlaskConical, RotateCcw } from '@lucide/svelte';
-	import McpLogo from '#lib/components/app/mcp/McpLogo.svelte';
-	import { SettingsChatParameterSourceIndicator } from '#lib/components/app/settings/index.ts';
+	import {
+		SettingsChatParameterSourceIndicator,
+		SettingsInfoTooltip
+	} from '#lib/components/app/settings/index.ts';
 	import {
 		ICON_CLASS_DEFAULT,
 		ICON_CLASS_SM,
-		MANAGE_MCP_SERVERS_LABEL,
 		SETTING_CONFIG_INFO,
 		SETTINGS_KEYS
 	} from '#lib/constants/index.ts';
 	import { SettingsFieldType } from '#lib/enums/settings.enums.ts';
 	import { useSettingsFieldDefaults } from '#lib/hooks/use-settings-field-defaults.svelte.ts';
-	import { settingsStore, uiStore } from '#lib/stores/index.ts';
+	import { settingsStore } from '#lib/stores/index.ts';
 	import { normalizeFloatingPoint } from '#lib/utils/precision.ts';
 	import type { Component } from 'svelte';

@@ -51,6 +51,10 @@
 						{/if}
 					</Label>

+					{#if field.details}
+						<SettingsInfoTooltip text={field.details} />
+					{/if}
+
 					{#if isCustomRealTime}
 						<SettingsChatParameterSourceIndicator />
 					{/if}
@@ -123,17 +127,18 @@
 				{/if}

 				{#if field.key === SETTINGS_KEYS.SYSTEM_MESSAGE}
-					<div class="mt-3 flex items-center gap-2">
-						<Checkbox
+					<div class="mt-3 flex items-center justify-between gap-12">
+						<Label class="cursor-pointer text-body-sm font-normal" for="showSystemMessage">
+							Show in conversations
+						</Label>
+
+						<Switch
 							checked={Boolean(localConfig.showSystemMessage ?? true)}
 							id="showSystemMessage"
 							onCheckedChange={(checked) =>
 								onConfigChange(SETTINGS_KEYS.SHOW_SYSTEM_MESSAGE, Boolean(checked))}
+							size="md"
 						/>
-
-						<Label class="cursor-pointer text-body-sm font-normal" for="showSystemMessage">
-							Show system message in conversations
-						</Label>
 					</div>
 				{/if}
 			{:else if field.type === SettingsFieldType.SELECT}
@@ -153,6 +158,10 @@
 						{/if}
 					</Label>

+					{#if field.details}
+						<SettingsInfoTooltip text={field.details} />
+					{/if}
+
 					{#if isCustomRealTime}
 						<SettingsChatParameterSourceIndicator />
 					{/if}
@@ -267,19 +276,11 @@
 					</p>
 				{/if}
 			{:else if field.type === SettingsFieldType.CHECKBOX}
-				<div class="flex items-start space-x-3">
-					<Checkbox
-						checked={Boolean(localConfig[field.key])}
-						class="mt-1"
-						disabled={fieldDefaults.isLocked(field.key)}
-						id={field.key}
-						onCheckedChange={(checked) => onConfigChange(field.key, checked)}
-					/>
-
-					<div class="space-y-1">
+				<div class="flex items-center justify-between gap-12">
+					<div class="space-y-1.5">
 						<label
-							class="flex items-center gap-1.5 pt-1 pb-0.5 text-label leading-none {fieldDefaults.isLocked(
-								field.key
+							class="flex items-center gap-1.5 text-label leading-none {fieldDefaults.isLocked(
+								field
 							)
 								? 'cursor-default opacity-80'
 								: 'cursor-pointer'}"
@@ -292,25 +293,20 @@
 							{/if}
 						</label>

-						{#if field.help || SETTING_CONFIG_INFO[field.key]}
+						{#if fieldDefaults.helpOf(field)}
 							<p class="text-caption text-muted-foreground">
-								{field.help || SETTING_CONFIG_INFO[field.key]}
+								{fieldDefaults.helpOf(field)}
 							</p>
 						{/if}
-
-						{#if field.key === SETTINGS_KEYS.ENABLE_MCP && Boolean(localConfig[field.key])}
-							<Button
-								class="mt-2"
-								onclick={() => uiStore.openMcpServers()}
-								size="sm"
-								variant="outline"
-							>
-								<McpLogo class="size-icon-md" />
-
-								{MANAGE_MCP_SERVERS_LABEL}
-							</Button>
-						{/if}
 					</div>
+
+					<Switch
+						checked={Boolean(localConfig[field.key])}
+						disabled={fieldDefaults.isLocked(field)}
+						id={field.key}
+						onCheckedChange={(checked) => onConfigChange(field.key, checked)}
+						size="md"
+					/>
 				</div>
 			{/if}
 		</div>
diff --git a/ui/apps/chat/src/lib/components/app/settings/SettingsChat/SettingsChatFieldsInset.svelte b/ui/apps/chat/src/lib/components/app/settings/SettingsChat/SettingsChatFieldsInset.svelte
index 049b74a7a..20d1ef6a6 100644
--- a/ui/apps/chat/src/lib/components/app/settings/SettingsChat/SettingsChatFieldsInset.svelte
+++ b/ui/apps/chat/src/lib/components/app/settings/SettingsChat/SettingsChatFieldsInset.svelte
@@ -2,6 +2,7 @@
 	The settings fields as a phone's native inset list: switches, pickers and numbers as rows of
 	one group, prompts and choices of one as groups of their own, each help text under its label.
 	A change is handed on when it is made: a switch or a pick at once, typed text once it is left.
+	Rows given as children close the last group, a feature's own page beside its switch for one.
 -->
 <script lang="ts">
 	import { NativeSelect } from '@ggml-org/llama-ui/app/forms';
@@ -9,33 +10,26 @@
 	import { Switch } from '@ggml-org/llama-ui/ui/switch';
 	import { Textarea } from '@ggml-org/llama-ui/ui/textarea';
 	import { Check, FlaskConical, RotateCcw } from '@lucide/svelte';
-	import McpLogo from '#lib/components/app/mcp/McpLogo.svelte';
-	import {
-		MANAGE_MCP_SERVERS_LABEL,
-		NUMERIC_FIELDS,
-		SETTING_CONFIG_INFO,
-		SETTINGS_KEYS,
-		SETTINGS_SHEET_TEXT
-	} from '#lib/constants/index.ts';
+	import { NUMERIC_FIELDS, SETTINGS_KEYS, SETTINGS_SHEET_TEXT } from '#lib/constants/index.ts';
 	import { SettingsFieldBlock, SettingsFieldType } from '#lib/enums/settings.enums.ts';
 	import { useSettingsFieldDefaults } from '#lib/hooks/use-settings-field-defaults.svelte.ts';
-	import { settingsStore, uiStore } from '#lib/stores/index.ts';
+	import { settingsStore } from '#lib/stores/index.ts';
 	import { normalizeFloatingPoint } from '#lib/utils/precision.ts';
-	import { tick } from 'svelte';
+	import { SETTING_ROW_ATTRIBUTE } from '#lib/utils/settings-search.ts';
+	import { type Snippet, tick } from 'svelte';

 	interface Props {
+		/** Rows of the caller's, at the end of the last group, or in one of their own after a prompt. */
+		children?: Snippet;
 		/** The subgroup's title, shown above its first group of rows. */
 		title?: string;
 		fields: SettingsFieldConfig[];
 		localConfig: SettingsConfigType;
 		onConfigChange: (key: string, value: string | boolean) => void;
-		/** Opens the MCP servers as a page of the sheet; without it, they open in their dialog */
-		onManageMcpServers?: () => void;
 		onThemeChange?: (theme: string) => void;
 	}

-	let { fields, localConfig, onConfigChange, onManageMcpServers, onThemeChange, title }: Props =
-		$props();
+	let { children, fields, localConfig, onConfigChange, onThemeChange, title }: Props = $props();

 	/** Rows share a group; a prompt or a choice of one gets a group of its own. */
 	type Block =
@@ -81,9 +75,7 @@
 		return title && field.label.toLowerCase() === title.toLowerCase() ? null : field.label;
 	}

-	function helpOf(field: SettingsFieldConfig): string | undefined {
-		return field.help || SETTING_CONFIG_INFO[field.key] || undefined;
-	}
+	const helpOf = fieldDefaults.helpOf;

 	function valueOf(key: string): string {
 		return String(localConfig[key] ?? '');
@@ -125,28 +117,18 @@
 							{:else}
 								{@render numberRow(field)}
 							{/if}
-
-							{#if field.key === SETTINGS_KEYS.ENABLE_MCP && Boolean(localConfig[field.key])}
-								<InsetListRow
-									chevron
-									onclick={() =>
-										onManageMcpServers ? onManageMcpServers() : uiStore.openMcpServers()}
-								>
-									{#snippet leading()}
-										<McpLogo class="size-icon-md shrink-0" />
-									{/snippet}
-
-									<span class="flex-1">{MANAGE_MCP_SERVERS_LABEL}</span>
-								</InsetListRow>
-							{/if}
 						{/each}
+
+						{#if index === blocks.length - 1}
+							{@render children?.()}
+						{/if}
 					</InsetList>
 				{:else}
 					{@const field = block.field}
 					{@const help = helpOf(field)}
 					{@const showCaption = index > 0 || ownCaption(field) !== null}

-					<div class="flex flex-col gap-1.5">
+					<div class="flex flex-col gap-1.5" {...{ [SETTING_ROW_ATTRIBUTE]: field.key }}>
 						{#if showCaption}
 							<h3
 								class={[
@@ -174,7 +156,7 @@
 								/>

 								{#if field.key === SETTINGS_KEYS.SYSTEM_MESSAGE}
-									<InsetListRow as="label" bodyClass="gap-4 py-3">
+									<InsetListRow as="label" bodyClass="gap-8 py-3">
 										<span class="flex-1">{SETTINGS_SHEET_TEXT.SHOW_SYSTEM_MESSAGE}</span>

 										<Switch
@@ -237,6 +219,10 @@
 					</div>
 				{/if}
 			{/each}
+
+			{#if children && blocks[blocks.length - 1].kind !== SettingsFieldBlock.ROWS}
+				<InsetList>{@render children()}</InsetList>
+			{/if}
 		</div>
 	</div>
 {/if}
@@ -261,11 +247,12 @@
 {/snippet}

 {#snippet switchRow(field: SettingsFieldConfig)}
-	{@const locked = fieldDefaults.isLocked(field.key)}
+	{@const locked = fieldDefaults.isLocked(field)}

 	<InsetListRow
+		{...{ [SETTING_ROW_ATTRIBUTE]: field.key }}
 		as="label"
-		bodyClass={['gap-4', field.dependsOn && 'pl-4']}
+		bodyClass={['gap-8', field.dependsOn && 'pl-4']}
 		class={locked ? 'cursor-default opacity-60' : undefined}
 	>
 		{@render rowLabel(field)}
@@ -280,7 +267,7 @@
 {/snippet}

 {#snippet selectRow(field: SettingsFieldConfig)}
-	<InsetListRow as="div" bodyClass="gap-4">
+	<InsetListRow {...{ [SETTING_ROW_ATTRIBUTE]: field.key }} as="div" bodyClass="gap-4">
 		{@render rowLabel(field)}

 		<NativeSelect
@@ -303,7 +290,7 @@
 	{@const custom = fieldDefaults.isCustom(field)}
 	{@const serverDefault = fieldDefaults.serverDefaults[field.key]}

-	<InsetListRow as="div" bodyClass="gap-3">
+	<InsetListRow {...{ [SETTING_ROW_ATTRIBUTE]: field.key }} as="div" bodyClass="gap-3">
 		{@render rowLabel(field)}

 		{#if custom}
diff --git a/ui/apps/chat/src/lib/components/app/settings/SettingsChat/SettingsChatImportExportSection.svelte b/ui/apps/chat/src/lib/components/app/settings/SettingsChat/SettingsChatImportExportSection.svelte
index 2763f8c17..c680c446d 100644
--- a/ui/apps/chat/src/lib/components/app/settings/SettingsChat/SettingsChatImportExportSection.svelte
+++ b/ui/apps/chat/src/lib/components/app/settings/SettingsChat/SettingsChatImportExportSection.svelte
@@ -17,7 +17,8 @@
 		titleClass,
 		wrapperClass
 	}: {
-		title: string;
+		/** Left out where the group around it already names the action. */
+		title?: string;
 		description: string;
 		IconComponent: Component;
 		/** Draw it as a row of a phone's inset list, its action as the row's name. */
@@ -70,7 +71,9 @@
 	</InsetListRow>
 {:else}
 	<div class="grid gap-1 {wrapperClass ?? ''}">
-		<h4 class="mt-0 mb-2 text-label {titleClass ?? ''}">{title}</h4>
+		{#if title}
+			<h4 class="mt-0 mb-2 text-label {titleClass ?? ''}">{title}</h4>
+		{/if}

 		<p class="mb-4 text-body-sm text-muted-foreground">{description}</p>

diff --git a/ui/apps/chat/src/lib/components/app/settings/SettingsChat/SettingsChatImportExportTab.svelte b/ui/apps/chat/src/lib/components/app/settings/SettingsChat/SettingsChatImportExportTab.svelte
index 6b5e8b0eb..6847a7de3 100644
--- a/ui/apps/chat/src/lib/components/app/settings/SettingsChat/SettingsChatImportExportTab.svelte
+++ b/ui/apps/chat/src/lib/components/app/settings/SettingsChat/SettingsChatImportExportTab.svelte
@@ -3,7 +3,6 @@
 	import SettingsChatImportExportSection from './SettingsChatImportExportSection.svelte';
 	import { InsetList, InsetListRow } from '@ggml-org/llama-ui/app/sheets';
 	import { Button } from '@ggml-org/llama-ui/ui/button';
-	import { Checkbox } from '@ggml-org/llama-ui/ui/checkbox';
 	import { Label } from '@ggml-org/llama-ui/ui/label';
 	import * as RadioGroup from '@ggml-org/llama-ui/ui/radio-group';
 	import { Switch } from '@ggml-org/llama-ui/ui/switch';
@@ -242,8 +241,8 @@
 		</InsetList>
 	</div>
 {:else}
-	<div in:fade={{ duration: FADE_MS }} class="space-y-12">
-		<SettingsGroup title={TEXT.IMPORT}>
+	<div in:fade={{ duration: FADE_MS }} class="space-y-10">
+		<SettingsGroup sub title={TEXT.IMPORT}>
 			<p class="text-body-sm text-muted-foreground">
 				{TEXT.IMPORT_NOTE}
 			</p>
@@ -251,37 +250,44 @@
 			<SettingsChatImportDropZone />
 		</SettingsGroup>

-		<SettingsGroup title={TEXT.EXPORT}>
+		<SettingsGroup sub title={TEXT.EXPORT}>
+			<!-- three tiles in a row, a radio group under the hood: the radio is its tile's corner mark -->
 			<RadioGroup.Root
-				class="gap-3"
+				class="grid grid-cols-1 gap-3 sm:grid-cols-3"
 				onValueChange={(value) => (exportScope = value as DataExportScope)}
 				value={exportScope}
 			>
 				{#each EXPORT_OPTIONS as option (option.value)}
 					{@const id = `export-${option.value}`}

-					<div class="flex items-start gap-3">
-						<RadioGroup.Item class="mt-0.5" {id} value={option.value} />
-
-						<Label class="grid cursor-pointer gap-0.5" for={id}>
+					<Label
+						class={[
+							'flex cursor-pointer flex-col items-start gap-1 rounded-lg border p-3 transition-colors',
+							exportScope === option.value
+								? 'border-(--action-primary) bg-accent'
+								: 'border-border hover:bg-muted/50'
+						]}
+						for={id}
+					>
+						<span class="flex w-full items-center justify-between gap-2">
 							<span class="text-label">{option.label}</span>

-							<span class="text-caption font-normal text-muted-foreground"
-								>{option.description}</span
-							>
-						</Label>
-					</div>
+							<RadioGroup.Item {id} value={option.value} />
+						</span>
+
+						<span class="text-caption font-normal text-muted-foreground">{option.description}</span>
+					</Label>
 				{/each}
 			</RadioGroup.Root>

 			{#if exportsSettings}
 				<div transition:fade={{ duration: FADE_MS }} class="grid gap-1">
-					<div class="flex items-center gap-2">
-						<Checkbox bind:checked={includeSensitiveData} id="export-sensitive" />
-
+					<div class="flex items-center justify-between gap-12">
 						<Label class="text-body-sm font-normal" for="export-sensitive">
 							{TEXT.INCLUDE_SENSITIVE}
 						</Label>
+
+						<Switch bind:checked={includeSensitiveData} id="export-sensitive" size="md" />
 					</div>

 					<p
@@ -301,7 +307,7 @@
 			</Button>
 		</SettingsGroup>

-		<SettingsGroup title={TEXT.DELETE}>
+		<SettingsGroup destructive sub title={TEXT.DELETE}>
 			<SettingsChatImportExportSection
 				IconComponent={Trash2}
 				buttonClass="justify-start justify-self-start md:w-auto"
@@ -309,8 +315,6 @@
 				buttonVariant="destructive"
 				description={TEXT.DELETE_ALL_NOTE}
 				onclick={handleDeleteAllClick}
-				title={TEXT.DELETE_ALL_TITLE}
-				titleClass="text-destructive"
 			/>
 		</SettingsGroup>
 	</div>
diff --git a/ui/apps/chat/src/lib/components/app/settings/SettingsChat/SettingsChatMcpServersTab.svelte b/ui/apps/chat/src/lib/components/app/settings/SettingsChat/SettingsChatMcpServersTab.svelte
new file mode 100644
index 000000000..0a1ef0413
--- /dev/null
+++ b/ui/apps/chat/src/lib/components/app/settings/SettingsChat/SettingsChatMcpServersTab.svelte
@@ -0,0 +1,23 @@
+<script lang="ts">
+	import { SettingsMcpServers } from '#lib/components/app/settings/index.ts';
+	import { mcpStore } from '#lib/stores/index.ts';
+
+	interface Props {
+		/** Enable MCP as the settings show it, before it is saved; the saved setting by default. */
+		enabled?: boolean;
+	}
+
+	let { enabled }: Props = $props();
+</script>
+
+<div class="flex h-full flex-col gap-6">
+	{#if enabled ?? mcpStore.isFeatureEnabled}
+		<section class="flex flex-1 flex-col" data-slot="settings-action-page">
+			<SettingsMcpServers />
+		</section>
+	{:else}
+		<p class="text-body-sm text-muted-foreground">
+			MCP is off. Turn on Enable MCP in General to add and use MCP servers.
+		</p>
+	{/if}
+</div>
diff --git a/ui/apps/chat/src/lib/components/app/settings/SettingsChat/SettingsChatToolsTab.svelte b/ui/apps/chat/src/lib/components/app/settings/SettingsChat/SettingsChatToolsTab.svelte
index cc04df1e6..820e00484 100644
--- a/ui/apps/chat/src/lib/components/app/settings/SettingsChat/SettingsChatToolsTab.svelte
+++ b/ui/apps/chat/src/lib/components/app/settings/SettingsChat/SettingsChatToolsTab.svelte
@@ -2,6 +2,7 @@
 	import { Checkbox } from '@ggml-org/llama-ui/ui/checkbox';
 	import * as Collapsible from '@ggml-org/llama-ui/ui/collapsible';
 	import * as Select from '@ggml-org/llama-ui/ui/select';
+	import { Switch } from '@ggml-org/llama-ui/ui/switch';
 	import { ChevronDown, ChevronRight } from '@lucide/svelte';
 	import { McpServerIdentity, TruncatedText } from '#lib/components/app/index.ts';
 	import {
@@ -50,12 +51,6 @@
 						<ChevronRight class="size-icon-sm shrink-0" />
 					{/if}

-					<Checkbox
-						checked={conversationsStore.preferences.isGroupChecked(group)}
-						onCheckedChange={() => void conversationsStore.preferences.toggleGroup(group)}
-						onclick={(e) => e.stopPropagation()}
-					/>
-
 					{@const faviconUrl = group.serverId ? mcpStore.getServerFavicon(group.serverId) : null}

 					<span class="inline-flex min-w-0 items-center gap-1.5 font-medium">
@@ -75,6 +70,14 @@
 					<span class="ml-auto shrink-0 text-caption text-muted-foreground">
 						{group.tools.length} tool{group.tools.length !== 1 ? 's' : ''}
 					</span>
+
+					<!-- the category is switched on and off as a whole; its tools keep their checkboxes -->
+					<Switch
+						aria-label="Enable {group.label}"
+						checked={conversationsStore.preferences.isGroupChecked(group)}
+						onCheckedChange={() => void conversationsStore.preferences.toggleGroup(group)}
+						onclick={(event) => event.stopPropagation()}
+					/>
 				</Collapsible.Trigger>

 				<Collapsible.Content>
diff --git a/ui/apps/chat/src/lib/components/app/settings/SettingsChat/SettingsChatVoiceTab.svelte b/ui/apps/chat/src/lib/components/app/settings/SettingsChat/SettingsChatVoiceTab.svelte
index 6c48dc8b7..5ac1df39d 100644
--- a/ui/apps/chat/src/lib/components/app/settings/SettingsChat/SettingsChatVoiceTab.svelte
+++ b/ui/apps/chat/src/lib/components/app/settings/SettingsChat/SettingsChatVoiceTab.svelte
@@ -16,9 +16,11 @@
 	} from '@ggml-org/llama-voice';
 	import {
 		SettingsChatFields,
-		SettingsChatFieldsInset
+		SettingsChatFieldsInset,
+		SettingsInfoTooltip
 	} from '#lib/components/app/settings/index.ts';
 	import {
+		SETTING_CONFIG_DETAILS,
 		SETTING_CONFIG_INFO,
 		SETTINGS_KEYS,
 		VOICE_GGUF_EXTENSION_PATTERN,
@@ -53,15 +55,14 @@
 		NO_AUDIO: 'It has no audio input, so voice input is not available on this server.',
 		ONE_MODEL: 'This server runs one model, which transcribes your voice when it has audio input.',
 		ONE_MODEL_NAMED: 'This server runs one model,',
-		TRANSCRIPTION_MODEL: 'Transcription model',
-		TRANSCRIPTION_NOTE:
-			"Only models with audio input are listed. A model you pick here is loaded on the server when you dictate, if it isn't loaded already."
+		TRANSCRIPTION_MODEL: 'Transcription model'
 	} as const;

 	const KEY = SETTINGS_KEYS.VOICE_TRANSCRIPTION_MODEL;

-	// the pickers sit right after the Voice input field
+	// the pickers sit right after the Voice input field, or first where there is none
 	let splitAt = $derived(fields.findIndex((f) => f.key === SETTINGS_KEYS.VOICE_INPUT_MODE) + 1);
+	let showPickers = $derived(splitAt > 0);
 	let isRouter = $derived(serverStore.isRouterMode);
 	let current = $derived(String(localConfig[KEY] ?? VOICE_TRANSCRIPTION_MODEL_AUTO));

@@ -131,6 +132,12 @@
 			...list.filter((option) => option.value)
 		];
 	});
+	// why the names are missing goes with the rest of the explanation
+	let micDetails = $derived(
+		micNamesHidden
+			? `${SETTING_CONFIG_DETAILS[MIC_KEY]} ${VOICE_TAB_TEXT.MIC_NAMES_HIDDEN}`
+			: SETTING_CONFIG_DETAILS[MIC_KEY]
+	);
 	let micLabel = $derived(
 		micOptions.find((option) => option.value === micCurrent)?.label ??
 			VOICE_SETTINGS_LABEL.automatic
@@ -175,7 +182,11 @@

 {#snippet microphonePicker()}
 	<div class="space-y-2" data-slot={VOICE_TAB_SLOTS.MICROPHONE}>
-		<Label class="text-label" for={MIC_KEY}>{VOICE_TAB_TEXT.MICROPHONE}</Label>
+		<div class="flex items-center gap-2">
+			<Label class="text-label" for={MIC_KEY}>{VOICE_TAB_TEXT.MICROPHONE}</Label>
+
+			<SettingsInfoTooltip text={micDetails} />
+		</div>

 		<Select.Root
 			onValueChange={(value) => onConfigChange(MIC_KEY, value)}
@@ -192,16 +203,18 @@
 		</Select.Root>

 		<p class="mt-1 text-caption text-muted-foreground">{SETTING_CONFIG_INFO[MIC_KEY]}</p>
-
-		{#if micNamesHidden}
-			<p class="text-caption text-muted-foreground">{VOICE_TAB_TEXT.MIC_NAMES_HIDDEN}</p>
-		{/if}
 	</div>
 {/snippet}

 {#snippet transcriptionModelPicker()}
 	<div class="space-y-2" data-slot={VOICE_TAB_SLOTS.TRANSCRIPTION_MODEL}>
-		<Label class="text-label" for={KEY}>{VOICE_TAB_TEXT.TRANSCRIPTION_MODEL}</Label>
+		<div class="flex items-center gap-2">
+			<Label class="text-label" for={KEY}>{VOICE_TAB_TEXT.TRANSCRIPTION_MODEL}</Label>
+
+			{#if isRouter}
+				<SettingsInfoTooltip text={SETTING_CONFIG_DETAILS[KEY]} />
+			{/if}
+		</div>

 		{#if isRouter}
 			<Select.Root
@@ -231,15 +244,7 @@
 				</Select.Content>
 			</Select.Root>

-			<p class="mt-1 text-caption text-muted-foreground">
-				{SETTING_CONFIG_INFO[KEY]} Only models with audio input are listed.
-			</p>
-
-			<p class="text-caption text-muted-foreground">
-				A model you pick here is loaded on the server when you dictate, alongside the chat model, if
-				it isn't loaded already. A server that keeps one model at a time (<code>--models-max 1</code
-				>) unloads the chat model to do it.
-			</p>
+			<p class="mt-1 text-caption text-muted-foreground">{SETTING_CONFIG_INFO[KEY]}</p>
 		{:else}
 			<p class="text-body-sm text-muted-foreground">{@render singleModelNote()}</p>
 		{/if}
@@ -275,47 +280,44 @@

 {#snippet microphoneNote()}
 	{SETTING_CONFIG_INFO[MIC_KEY]}
-
-	{#if micNamesHidden}
-		{VOICE_TAB_TEXT.MIC_NAMES_HIDDEN}
-	{/if}
 {/snippet}

 {#snippet transcriptionNote()}
 	{SETTING_CONFIG_INFO[KEY]}
-	{VOICE_TAB_TEXT.TRANSCRIPTION_NOTE}
 {/snippet}

 {#if inset}
 	<div class="flex flex-col gap-8">
 		<SettingsChatFieldsInset fields={fields.slice(0, splitAt)} {localConfig} {onConfigChange} />

-		{@render insetPicker(
-			VOICE_TAB_TEXT.MICROPHONE,
-			micCurrent,
-			micLabel,
-			(value) => onConfigChange(MIC_KEY, value),
-			micOptions,
-			[],
-			microphoneNote,
-			VOICE_TAB_SLOTS.MICROPHONE
-		)}
-
-		{#if isRouter}
+		{#if showPickers}
 			{@render insetPicker(
-				VOICE_TAB_TEXT.TRANSCRIPTION_MODEL,
-				current,
-				selectedLabel,
-				(value) => onConfigChange(KEY, value),
-				[{ label: VOICE_SETTINGS_LABEL.automatic, value: VOICE_TRANSCRIPTION_MODEL_AUTO }],
-				optionGroups,
-				transcriptionNote,
-				VOICE_TAB_SLOTS.TRANSCRIPTION_MODEL
+				VOICE_TAB_TEXT.MICROPHONE,
+				micCurrent,
+				micLabel,
+				(value) => onConfigChange(MIC_KEY, value),
+				micOptions,
+				[],
+				microphoneNote,
+				VOICE_TAB_SLOTS.MICROPHONE
 			)}
-		{:else}
-			<p class="inset-list-caption" data-slot={VOICE_TAB_SLOTS.TRANSCRIPTION_MODEL}>
-				{@render singleModelNote()}
-			</p>
+
+			{#if isRouter}
+				{@render insetPicker(
+					VOICE_TAB_TEXT.TRANSCRIPTION_MODEL,
+					current,
+					selectedLabel,
+					(value) => onConfigChange(KEY, value),
+					[{ label: VOICE_SETTINGS_LABEL.automatic, value: VOICE_TRANSCRIPTION_MODEL_AUTO }],
+					optionGroups,
+					transcriptionNote,
+					VOICE_TAB_SLOTS.TRANSCRIPTION_MODEL
+				)}
+			{:else}
+				<p class="inset-list-caption" data-slot={VOICE_TAB_SLOTS.TRANSCRIPTION_MODEL}>
+					{@render singleModelNote()}
+				</p>
+			{/if}
 		{/if}

 		<SettingsChatFieldsInset fields={fields.slice(splitAt)} {localConfig} {onConfigChange} />
@@ -324,9 +326,11 @@
 	<div class="space-y-6">
 		<SettingsChatFields fields={fields.slice(0, splitAt)} {localConfig} {onConfigChange} />

-		{@render microphonePicker()}
+		{#if showPickers}
+			{@render microphonePicker()}

-		{@render transcriptionModelPicker()}
+			{@render transcriptionModelPicker()}
+		{/if}

 		<SettingsChatFields fields={fields.slice(splitAt)} {localConfig} {onConfigChange} />
 	</div>
diff --git a/ui/apps/chat/src/lib/components/app/settings/SettingsChatDesktopSidebar.svelte b/ui/apps/chat/src/lib/components/app/settings/SettingsChatDesktopSidebar.svelte
index b7f527dd8..42aaa99ed 100644
--- a/ui/apps/chat/src/lib/components/app/settings/SettingsChatDesktopSidebar.svelte
+++ b/ui/apps/chat/src/lib/components/app/settings/SettingsChatDesktopSidebar.svelte
@@ -1,25 +1,43 @@
 <script lang="ts">
+	import { ChevronLeft } from '@lucide/svelte';
 	import { ICON_CLASS_DEFAULT } from '#lib/constants/index.ts';
 	import type { SettingsSection, SettingsSectionTitle } from '#lib/types/index.ts';
+	import type { Snippet } from 'svelte';

 	interface Props {
+		/** The way back out of a nested level, a row above the menu that looks like its items. */
+		back?: { label: string; onclick: () => void };
 		sections: SettingsSection[];
 		isActive: (section: SettingsSection) => boolean;
 		onSectionChange?: (section: SettingsSectionTitle) => void;
+		/** Above the menu, e.g. the search for settings. */
+		header?: Snippet;
 	}

-	let { isActive, onSectionChange, sections }: Props = $props();
+	let { back, header, isActive, onSectionChange, sections }: Props = $props();
+
+	const ITEM_CLASS =
+		'flex w-full cursor-pointer items-center gap-3 rounded-lg px-3 py-2 text-left text-body-sm transition-colors hover:bg-accent';
 </script>

-<div class="sticky top-12 hidden w-64 flex-col gap-6 self-start md:flex">
+<div class="sticky top-12 hidden w-64 flex-col gap-4 self-start md:flex">
+	{@render header?.()}
+
 	<nav class="space-y-1">
+		{#if back}
+			<button class="{ITEM_CLASS} mb-2 text-muted-foreground" onclick={back.onclick} type="button">
+				<ChevronLeft class={ICON_CLASS_DEFAULT} />
+
+				<span class="ml-2">{back.label}</span>
+			</button>
+		{/if}
+
 		{#each sections as section (section.title)}
 			<button
-				class="flex w-full cursor-pointer items-center gap-3 rounded-lg px-3 py-2 text-left text-body-sm transition-colors hover:bg-accent {isActive(
-					section
-				)
-					? 'bg-accent text-accent-foreground'
-					: 'text-muted-foreground'}"
+				class={[
+					ITEM_CLASS,
+					isActive(section) ? 'bg-accent text-accent-foreground' : 'text-muted-foreground'
+				]}
 				onclick={() => onSectionChange?.(section.title)}
 			>
 				<section.icon class={ICON_CLASS_DEFAULT} />
diff --git a/ui/apps/chat/src/lib/components/app/settings/SettingsGroup.svelte b/ui/apps/chat/src/lib/components/app/settings/SettingsGroup.svelte
index 7d77a474a..c54067405 100644
--- a/ui/apps/chat/src/lib/components/app/settings/SettingsGroup.svelte
+++ b/ui/apps/chat/src/lib/components/app/settings/SettingsGroup.svelte
@@ -3,16 +3,26 @@

 	interface Props {
 		title: string;
+		/** A group inside a section: a quieter heading, one level below the section's. */
+		sub?: boolean;
+		/** Heads something that cannot be undone, in the danger colour. */
+		destructive?: boolean;
 		children: Snippet;
 	}

-	let { children, title }: Props = $props();
+	let { children, destructive = false, sub = false, title }: Props = $props();
 </script>

 <div>
-	<h3 class="mb-6 text-body font-semibold">{title}</h3>
+	{#if sub}
+		<h4 class={['mb-4 text-body', destructive ? 'text-destructive' : 'text-muted-foreground']}>
+			{title}
+		</h4>
+	{:else}
+		<h3 class={['mb-6 text-body font-semibold', destructive && 'text-destructive']}>{title}</h3>
+	{/if}

-	<div class="space-y-8">
+	<div class="space-y-6">
 		{@render children()}
 	</div>
 </div>
diff --git a/ui/apps/chat/src/lib/components/app/settings/SettingsInfoTooltip.svelte b/ui/apps/chat/src/lib/components/app/settings/SettingsInfoTooltip.svelte
new file mode 100644
index 000000000..af1a4ada0
--- /dev/null
+++ b/ui/apps/chat/src/lib/components/app/settings/SettingsInfoTooltip.svelte
@@ -0,0 +1,28 @@
+<!--
+	An info icon beside a setting's title, whose tooltip holds the longer explanation, so the caption
+	under the field can stay short.
+-->
+<script lang="ts">
+	import * as Tooltip from '@ggml-org/llama-ui/ui/tooltip';
+	import { Info } from '@lucide/svelte';
+
+	interface Props {
+		text: string;
+	}
+
+	let { text }: Props = $props();
+</script>
+
+<Tooltip.Root>
+	<Tooltip.Trigger
+		aria-label={text}
+		class="inline-flex text-muted-foreground hover:text-foreground"
+		type="button"
+	>
+		<Info class="size-icon-sm" />
+	</Tooltip.Trigger>
+
+	<Tooltip.Content class="max-w-80">
+		<p>{text}</p>
+	</Tooltip.Content>
+</Tooltip.Root>
diff --git a/ui/apps/chat/src/lib/components/app/settings/SettingsSheet/SettingsSheet.svelte b/ui/apps/chat/src/lib/components/app/settings/SettingsSheet/SettingsSheet.svelte
index 22ee24b9a..926e23c80 100644
--- a/ui/apps/chat/src/lib/components/app/settings/SettingsSheet/SettingsSheet.svelte
+++ b/ui/apps/chat/src/lib/components/app/settings/SettingsSheet/SettingsSheet.svelte
@@ -1,7 +1,10 @@
 <!--
-	A phone's settings: a full-height sheet. Its first page has the theme and a row per section; a row
-	pushes the section's page, and the Tools row the tools. A change applies as it is made, the native
-	way, so there is nothing to save.
+	A phone's settings: a full-height sheet, laid out as the settings dialog is. Its first page has
+	the theme, the few settings most people change, the feature switches with a row for the MCP
+	servers under Enable MCP, and a row for the data. The other settings sit behind an Advanced
+	settings row, which pushes a page with a row per topic; the Tools row pushes the tools' own
+	pages. A search on the first page shows the settings it finds in place of it. A change applies
+	as it is made, the native way, so there is nothing to save.
 -->
 <script lang="ts">
 	import SettingsSheetTools, { type SettingsToolsView } from './SettingsSheetTools.svelte';
@@ -15,51 +18,69 @@
 	import { SHEET_CONTENT_CLASS } from '@ggml-org/llama-ui/constants';
 	import * as AlertDialog from '@ggml-org/llama-ui/ui/alert-dialog';
 	import * as Drawer from '@ggml-org/llama-ui/ui/drawer';
-	import { RefreshCw, RotateCcw } from '@lucide/svelte';
+	import { RefreshCw, RotateCcw, SlidersHorizontal } from '@lucide/svelte';
+	import { SearchInput } from '#lib/components/app/index.ts';
 	import {
 		SettingsChatFieldsInset,
 		SettingsChatImportExportTab,
+		SettingsChatMcpServersTab,
 		SettingsChatVoiceTab,
-		SettingsHuggingFaceAccount,
-		SettingsMcpServers
+		SettingsHuggingFaceAccount
 	} from '#lib/components/app/settings/index.ts';
 	import {
+		AGENTIC_ENABLED,
 		NUMERIC_FIELDS,
 		POSITIVE_INTEGER_FIELDS,
+		SETTINGS_API_KEY_FIELDS,
 		SETTINGS_CHAT_SECTIONS,
+		SETTINGS_ESSENTIAL_FIELDS,
+		SETTINGS_FEATURE_FIELDS,
 		SETTINGS_KEYS,
+		SETTINGS_SEARCH_TEXT,
 		SETTINGS_SECTION_SLUGS,
 		SETTINGS_SHEET_TEXT,
 		SETTINGS_SHEET_THEMES,
+		settingsAdvancedSections,
 		settingsChatSections,
+		settingsSearchSections,
 		SHEET_FULL_HEIGHT_CLASS
 	} from '#lib/constants/index.ts';
 	import { SettingsSheetPage } from '#lib/enums/index.ts';
+	import { SettingsFieldType } from '#lib/enums/settings.enums.ts';
 	import { ColorMode } from '#lib/enums/ui.enums.ts';
 	import { useToolsPanel } from '#lib/hooks/use-tools-panel.svelte.ts';
 	import { agenticMode } from '#lib/stores/agentic-mode.svelte.ts';
 	import {
 		deviceStore,
+		mcpStore,
 		modelsStore,
 		serverStore,
 		settingsStore,
 		toolsStore
 	} from '#lib/stores/index.ts';
-	import { getToolDisplay, isSettingShownOn } from '#lib/utils/index.ts';
+	import type { SettingsSection, SettingsTarget } from '#lib/types/index.ts';
+	import {
+		getToolDisplay,
+		isSettingShownOn,
+		revealSetting,
+		searchSettingsSections
+	} from '#lib/utils/index.ts';
 	import { setMode } from 'mode-watcher';
-	import { tick } from 'svelte';
+	import { tick, untrack } from 'svelte';
 	import { toast } from 'svelte-sonner';

 	interface Props {
 		open?: boolean;
+		/** Where it opens, e.g. on a setting picked in the app's search; its first page if not set. */
+		target?: SettingsTarget | null;
 	}

-	let { open = $bindable(false) }: Props = $props();
+	let { open = $bindable(false), target = null }: Props = $props();

 	type Page =
 		| { id: SettingsSheetPage.ROOT }
+		| { id: SettingsSheetPage.ADVANCED }
 		| { id: SettingsSheetPage.SECTION; slug: string }
-		| { id: SettingsSheetPage.MCP_SERVERS }
 		| SettingsToolsView;

 	/** The smallest value a positive whole number setting takes when its field names none. */
@@ -70,32 +91,67 @@

 	const toolsPanel = useToolsPanel();

-	// a plain chat has no Agent section, as in the settings dialog
-	const sections = $derived(settingsChatSections(agenticMode.enabled));
+	// the first page's own settings: the essential ones, but for the theme, which has the tiles
+	const essentialFields = $derived(
+		SETTINGS_ESSENTIAL_FIELDS.filter(
+			(field) => field.key !== SETTINGS_KEYS.THEME && isSettingShownOn(field, deviceStore.isMobile)
+		)
+	);
+	// as in the settings dialog's General: the look first, the texts, then the features
+	const displayFields = $derived(
+		essentialFields.filter((field) => field.type !== SettingsFieldType.TEXTAREA)
+	);
+	const textFields = $derived(
+		essentialFields.filter((field) => field.type === SettingsFieldType.TEXTAREA)
+	);
+
+	// the sections with a page of their own on the first level, as in the settings dialog: the
+	// MCP servers, on a server that runs agents while Enable MCP is on, beside that switch, and
+	// the data in a group of its own
+	const mcpSections = $derived(
+		settingsChatSections(agenticMode.enabled, mcpStore.isFeatureEnabled, false).filter(
+			(entry) => entry.slug === SETTINGS_SECTION_SLUGS.EXTENSIONS
+		)
+	);
+	const dataSections = SETTINGS_CHAT_SECTIONS.filter(
+		(entry) => entry.slug === SETTINGS_SECTION_SLUGS.IMPORT_EXPORT
+	);
+	const mainSections = $derived([...mcpSections, ...dataSections]);
+
+	// the API key's field shows but for a server known to answer without one
+	const apiKeyRequired = $derived(serverStore.asksForApiKey !== false);
+
+	// every other setting, in sections by topic: the agent's only on a server that runs agents, the
+	// tools' in a plain chat too; a setting for another kind of device is left out
+	const advancedSections = $derived(
+		settingsAdvancedSections(agenticMode.enabled, toolsStore.isAvailable)
+			.map((entry) => ({
+				...entry,
+				groups: entry.groups
+					.map((group) => ({
+						...group,
+						fields: group.fields.filter((field) => isSettingShownOn(field, deviceStore.isMobile))
+					}))
+					.filter((group) => group.fields.length > 0)
+			}))
+			.filter((entry) => entry.hasOwnPage || entry.groups.length > 0)
+	);
+
 	const allFields = SETTINGS_CHAT_SECTIONS.flatMap((entry) => entry.fields ?? []);

 	let config = $derived(settingsStore.config);
 	let showResetDialog = $state(false);

-	let section = $derived(
-		page.id === SettingsSheetPage.SECTION
-			? SETTINGS_CHAT_SECTIONS.find((entry) => entry.slug === page.slug)
-			: undefined
-	);
-
-	// the theme has the first page's tiles, so a section does not list it again
-	let sectionFields = $derived(
-		(section?.fields ?? []).filter(
-			(field) => field.key !== SETTINGS_KEYS.THEME && isSettingShownOn(field, deviceStore.isMobile)
-		)
-	);
+	let slug = $derived(page.id === SettingsSheetPage.SECTION ? page.slug : undefined);
+	let advancedSection = $derived(advancedSections.find((entry) => entry.slug === slug));
+	let section = $derived(advancedSection ?? mainSections.find((entry) => entry.slug === slug));

 	const title = $derived.by(() => {
 		switch (page.id) {
+			case SettingsSheetPage.ADVANCED:
+				return SETTINGS_SHEET_TEXT.ADVANCED;
 			case SettingsSheetPage.SECTION:
 				return section?.title ?? SETTINGS_SHEET_TEXT.TITLE;
-			case SettingsSheetPage.MCP_SERVERS:
-				return SETTINGS_SHEET_TEXT.MCP_SERVERS;
 			case SettingsSheetPage.TOOLS:
 				return SETTINGS_SHEET_TEXT.TOOLS;
 			case SettingsSheetPage.TOOL_GROUP:
@@ -119,7 +175,7 @@
 	let fetchInitiated = false;

 	$effect(() => {
-		if (open && serverStore.isRouterMode && section?.fields?.length && !fetchInitiated) {
+		if (open && serverStore.isRouterMode && advancedSection && !fetchInitiated) {
 			fetchInitiated = true;

 			void modelsStore
@@ -134,14 +190,51 @@
 	// where each page below the top one was scrolled, to come back to it
 	let scrollStack: number[] = [];

-	// each opening starts on the first page
+	// each opening starts on the first page, or on the setting it was opened for
 	$effect(() => {
 		if (open) {
-			pages.reset();
-			scrollStack = [];
+			untrack(() => {
+				pages.reset();
+				scrollStack = [];
+				searchQuery = '';
+
+				if (target) openFound(target.slug, target.key);
+			});
 		}
 	});

+	// a search shows the settings it finds in place of the first page, ready to change there
+	let searchQuery = $state('');
+	const searchResults = $derived(
+		searchSettingsSections(
+			settingsSearchSections({
+				apiKeyRequired,
+				chatsGetTools: toolsStore.isAvailable,
+				mcpServersShown: mcpSections.length > 0,
+				serverRunsAgents: agenticMode.enabled
+			}),
+			searchQuery,
+			deviceStore.isMobile
+		)
+	);
+
+	/** Opens the page a section found by the search draws on, and brings a setting into view. */
+	function openFound(slug: string, key?: string) {
+		searchQuery = '';
+
+		if (slug === SETTINGS_SECTION_SLUGS.TOOLS) {
+			openPage({ id: SettingsSheetPage.ADVANCED });
+			openPage({ id: SettingsSheetPage.TOOLS });
+		} else if (advancedSections.some((entry) => entry.slug === slug)) {
+			openPage({ id: SettingsSheetPage.ADVANCED });
+			openPage({ id: SettingsSheetPage.SECTION, slug });
+		} else if (mainSections.some((entry) => entry.slug === slug)) {
+			openPage({ id: SettingsSheetPage.SECTION, slug });
+		}
+
+		if (key) void tick().then(() => revealSetting(key, false));
+	}
+
 	function scrollTo(top: number) {
 		void tick().then(() => scrollEl?.scrollTo({ top }));
 	}
@@ -194,13 +287,6 @@
 			}
 		}

-		// discover needs the hub metadata reads and opens from the Models page, as on the desktop
-		if (key === SETTINGS_KEYS.ENABLE_DISCOVER_MODELS) {
-			updates[SETTINGS_KEYS.USE_HUGGING_FACE_HUB] = value === true;
-
-			if (value === true) updates[SETTINGS_KEYS.SHOW_MODELS_MANAGER] = true;
-		}
-
 		settingsStore.updateMultipleConfig(updates);
 	}

@@ -234,14 +320,12 @@
 		>
 			{#if page.id === SettingsSheetPage.ROOT}
 				{@render rootPage()}
-			{:else if page.id === SettingsSheetPage.SECTION}
-				{#if section}
-					{@render sectionPage(section.slug)}
-				{/if}
-			{:else if page.id === SettingsSheetPage.MCP_SERVERS}
-				<SettingsMcpServers />
-			{:else}
+			{:else if page.id === SettingsSheetPage.ADVANCED}
+				{@render sectionRows(advancedSections)}
+			{:else if page.id !== SettingsSheetPage.SECTION}
 				<SettingsSheetTools onOpen={openPage} view={page} />
+			{:else if section}
+				{@render sectionPage(section.slug)}
 			{/if}
 		</SheetPages>
 	</Drawer.Content>
@@ -293,6 +377,50 @@
 {/snippet}

 {#snippet rootPage()}
+	<SearchInput bind:value={searchQuery} placeholder={SETTINGS_SEARCH_TEXT.PLACEHOLDER} />
+
+	{#if searchQuery.trim()}
+		{@render searchResultsPage()}
+	{:else}
+		{@render firstPage()}
+	{/if}
+{/snippet}
+
+{#snippet searchResultsPage()}
+	{#each searchResults as entry (entry.slug)}
+		{#if entry.hasOwnPage}
+			{@render sectionRows([entry])}
+		{:else}
+			{#each entry.groups as group (group.title)}
+				{@const title =
+					group.title === entry.title ? entry.title : `${entry.title} · ${group.title}`}
+
+				{#if entry.slug === SETTINGS_SECTION_SLUGS.VOICE}
+					<SettingsChatVoiceTab
+						fields={group.fields}
+						inset
+						localConfig={config}
+						onConfigChange={commit}
+					/>
+				{:else}
+					<SettingsChatFieldsInset
+						fields={group.fields}
+						localConfig={config}
+						onConfigChange={commit}
+						onThemeChange={setTheme}
+						{title}
+					/>
+				{/if}
+			{/each}
+		{/if}
+	{:else}
+		<p class="py-12 text-center text-body-sm text-muted-foreground">
+			{SETTINGS_SEARCH_TEXT.NO_RESULTS}
+		</p>
+	{/each}
+{/snippet}
+
+{#snippet firstPage()}
 	<InsetList class="grid grid-cols-3 gap-3 p-3" title={SETTINGS_SHEET_TEXT.APPEARANCE}>
 		{#each SETTINGS_SHEET_THEMES as theme (theme.value)}
 			{@const selected = config.theme === theme.value}
@@ -319,46 +447,106 @@
 		{/each}
 	</InsetList>

+	<SettingsChatFieldsInset
+		fields={displayFields}
+		localConfig={config}
+		onConfigChange={commit}
+		onThemeChange={setTheme}
+	/>
+
+	{#if apiKeyRequired}
+		<SettingsChatFieldsInset
+			fields={SETTINGS_API_KEY_FIELDS}
+			localConfig={config}
+			onConfigChange={commit}
+		/>
+	{/if}
+
+	{#if textFields.length > 0}
+		<SettingsChatFieldsInset
+			fields={textFields}
+			localConfig={config}
+			onConfigChange={commit}
+			title={SETTINGS_SHEET_TEXT.SYSTEM_MESSAGE}
+		/>
+	{/if}
+
+	{#if AGENTIC_ENABLED}
+		<SettingsChatFieldsInset
+			fields={SETTINGS_FEATURE_FIELDS}
+			localConfig={config}
+			onConfigChange={commit}
+			title={SETTINGS_SHEET_TEXT.MCP}
+		>
+			{#each mcpSections as entry (entry.slug)}
+				{@render sectionRow(entry, SETTINGS_SHEET_TEXT.MANAGE_MCP_SERVERS)}
+			{/each}
+		</SettingsChatFieldsInset>
+	{/if}
+
+	<SettingsHuggingFaceAccount inset />
+
+	{@render sectionRows(dataSections)}
+
 	<InsetList caption={SETTINGS_SHEET_TEXT.SAVED_NOTE}>
-		{#each sections as entry (entry.slug)}
-			<InsetListRow
-				chevron
-				icon={entry.icon}
-				onclick={() =>
-					openPage(
-						entry.slug === SETTINGS_SECTION_SLUGS.TOOLS
-							? { id: SettingsSheetPage.TOOLS }
-							: { id: SettingsSheetPage.SECTION, slug: entry.slug }
-					)}
-			>
-				<span class="flex-1">{entry.title}</span>
-			</InsetListRow>
+		<InsetListRow
+			chevron
+			icon={SlidersHorizontal}
+			onclick={() => openPage({ id: SettingsSheetPage.ADVANCED })}
+		>
+			<span class="flex-1">{SETTINGS_SHEET_TEXT.ADVANCED}</span>
+		</InsetListRow>
+	</InsetList>
+{/snippet}
+
+{#snippet sectionRow(entry: SettingsSection, label: string = entry.title)}
+	<InsetListRow
+		chevron
+		icon={entry.icon}
+		onclick={() =>
+			openPage(
+				entry.slug === SETTINGS_SECTION_SLUGS.TOOLS
+					? { id: SettingsSheetPage.TOOLS }
+					: { id: SettingsSheetPage.SECTION, slug: entry.slug }
+			)}
+	>
+		<span class="flex-1">{label}</span>
+	</InsetListRow>
+{/snippet}
+
+{#snippet sectionRows(entries: SettingsSection[], caption?: string)}
+	<InsetList {caption}>
+		{#each entries as entry (entry.slug)}
+			{@render sectionRow(entry)}
 		{/each}
 	</InsetList>
 {/snippet}

 {#snippet sectionPage(slug: string)}
-	{#if slug === SETTINGS_SECTION_SLUGS.IMPORT_EXPORT}
+	{#if slug === SETTINGS_SECTION_SLUGS.EXTENSIONS}
+		<!-- the list comes from the extension registry, not from settings fields; its cards are the
+		     sheet's groups themselves, so no group surface wraps them -->
+		<SettingsChatMcpServersTab />
+	{:else if slug === SETTINGS_SECTION_SLUGS.IMPORT_EXPORT}
 		<SettingsChatImportExportTab inset />
 	{:else if slug === SETTINGS_SECTION_SLUGS.VOICE}
 		<SettingsChatVoiceTab
-			fields={sectionFields}
+			fields={advancedSection?.fields ?? []}
 			inset
 			localConfig={config}
 			onConfigChange={commit}
 		/>
 	{:else}
-		<SettingsChatFieldsInset
-			fields={sectionFields}
-			localConfig={config}
-			onConfigChange={commit}
-			onManageMcpServers={() => openPage({ id: SettingsSheetPage.MCP_SERVERS })}
-			onThemeChange={setTheme}
-		/>
-
-		{#if slug === SETTINGS_SECTION_SLUGS.GENERAL}
-			<SettingsHuggingFaceAccount inset />
+		{#each advancedSection?.groups ?? [] as group (group.title)}
+			<SettingsChatFieldsInset
+				fields={group.fields}
+				localConfig={config}
+				onConfigChange={commit}
+				title={group.title}
+			/>
+		{/each}

+		{#if slug === SETTINGS_SECTION_SLUGS.DEVELOPER}
 			<InsetList title={SETTINGS_SHEET_TEXT.APP}>
 				<InsetListRow icon={RefreshCw} onclick={() => window.location.reload()}>
 					{SETTINGS_SHEET_TEXT.RELOAD_APP}
diff --git a/ui/apps/chat/src/lib/components/app/settings/index.ts b/ui/apps/chat/src/lib/components/app/settings/index.ts
index 12f87417d..3ae2a3597 100644
--- a/ui/apps/chat/src/lib/components/app/settings/index.ts
+++ b/ui/apps/chat/src/lib/components/app/settings/index.ts
@@ -34,6 +34,9 @@ export { default as SettingsChatParameterSourceIndicator } from './SettingsChat/
  */
 export { default as SettingsGroup } from './SettingsGroup.svelte';

+/** **SettingsInfoTooltip** - info icon beside a setting's title, with its longer explanation. */
+export { default as SettingsInfoTooltip } from './SettingsInfoTooltip.svelte';
+
 /**
  * The Hugging Face account the app is signed in with, and its Sign out. Shows nothing until
  * a share has signed the app in.
@@ -58,6 +61,14 @@ export { default as SettingsResetButton } from './SettingsResetButton.svelte';
  */
 export { default as SettingsChatImportExportTab } from './SettingsChat/SettingsChatImportExportTab.svelte';

+/**
+ * **SettingsChatMcpServersTab** - MCP section of the settings
+ *
+ * Lists the MCP servers, with an empty state until a server is added. While
+ * Enable MCP (General) is off it says so instead.
+ */
+export { default as SettingsChatMcpServersTab } from './SettingsChat/SettingsChatMcpServersTab.svelte';
+
 /**
  * **SettingsChatVoiceTab** - Voice section of the settings
  *
@@ -79,6 +90,11 @@ export { default as SettingsChatImportExportSection } from './SettingsChat/Setti
  */
 export { default as SettingsMcpServers } from './SettingsMcpServers.svelte';

+/**
+ * The few settings most people change, as rows with a toggle group, a switch or a text.
+ */
+export { default as SettingsChatEssentials } from './SettingsChat/SettingsChatEssentials.svelte';
+
 /**
  * Form fields renderer for individual settings. Generates appropriate input
  * components based on field type (text, number, select, checkbox, textarea).
diff --git a/ui/apps/chat/src/lib/constants/attachment-menu.constants.ts b/ui/apps/chat/src/lib/constants/attachment-menu.constants.ts
index 95abd7331..96cdda613 100644
--- a/ui/apps/chat/src/lib/constants/attachment-menu.constants.ts
+++ b/ui/apps/chat/src/lib/constants/attachment-menu.constants.ts
@@ -56,9 +56,14 @@ export const ATTACHMENT_FILE_ITEMS: AttachmentMenuItem[] = [
 	}
 ];

-/** What the add button offers: tools and MCP servers only with the agentic features on. */
-export function attachmentTooltipText(agentic: boolean): string {
-	return agentic ? 'Add files, prompts, tools or MCP Servers' : 'Add files or prompts';
+/**
+ * What the add button offers: tools only while chats get tools, and MCP servers only while
+ * Enable MCP is on too.
+ */
+export function attachmentTooltipText(tools: boolean, mcp = tools): string {
+	if (!tools) return 'Add files or prompts';
+
+	return mcp ? 'Add files, prompts, tools or MCP Servers' : 'Add files, prompts or tools';
 }

 /** Text shared by the add menu's two surfaces: the desktop dropdown and the mobile drawer. */
@@ -74,6 +79,9 @@ export const ATTACHMENT_MENU_TEXT = {
 	ENABLE_GROUP: (group: string) => `Enable ${group}`,
 	LOADING_TOOLS: 'Loading tools...',
 	MCP_SERVERS: 'MCP Servers',
+	NO_ENABLED_MCP_SERVERS: 'Enable MCP Servers in Settings to use their tools',
+	NO_MCP_SERVERS: 'Add MCP Servers in Settings to use their tools',
+	NO_MCP_TOOLS: 'Your MCP Servers have no tools to offer yet: check them in Settings',
 	NO_TOOLS: 'No tools available',
 	NONE: 'None',
 	SYSTEM_MESSAGE: 'System Message',
diff --git a/ui/apps/chat/src/lib/constants/chat-form.constants.ts b/ui/apps/chat/src/lib/constants/chat-form.constants.ts
index 75e5351e4..7061ab3ec 100644
--- a/ui/apps/chat/src/lib/constants/chat-form.constants.ts
+++ b/ui/apps/chat/src/lib/constants/chat-form.constants.ts
@@ -25,6 +25,9 @@ export const CHAT_FORM_EXPAND_MIN_LINES = 4;
 /** Below this text height (a line and change) the main chat form keeps to one row. */
 export const CHAT_FORM_SINGLE_ROW_MAX_TEXT_LINES = 1.5;

+/** The gap between the chat form and a panel it opens, such as the tools panel, in px. */
+export const CHAT_FORM_PANEL_OFFSET = 12;
+
 /**
  * How far the chat form floats above the bottom of the screen: a phone browser's toolbar is
  * already a margin below it (iOS Safari's most of all), and the installed app keeps it clear
diff --git a/ui/apps/chat/src/lib/constants/index.ts b/ui/apps/chat/src/lib/constants/index.ts
index bc482b596..3f02b2927 100644
--- a/ui/apps/chat/src/lib/constants/index.ts
+++ b/ui/apps/chat/src/lib/constants/index.ts
@@ -63,6 +63,7 @@ export * from './routes.constants';
 export * from './sandbox.constants';
 export * from './settings-keys.constants';
 export * from './settings.constants';
+export * from './settings-advanced-layout.constants';
 export * from './special-characters.constants';
 export * from './stream.constants';
 export * from './supported-file-types.constants';
diff --git a/ui/apps/chat/src/lib/constants/mcp.constants.ts b/ui/apps/chat/src/lib/constants/mcp.constants.ts
index fffbdc9de..2905e0a1b 100644
--- a/ui/apps/chat/src/lib/constants/mcp.constants.ts
+++ b/ui/apps/chat/src/lib/constants/mcp.constants.ts
@@ -81,3 +81,9 @@ export const MCP_TRANSPORT_ICONS: Record<MCPTransportType, Component> = {
 	[MCPTransportType.STREAMABLE_HTTP]: Globe,
 	[MCPTransportType.WEBSOCKET]: Zap
 };
+
+/**
+ * The surface an MCP server's card sits on: a card of its own in Settings, and on a phone, where
+ * the cards sit straight in a sheet, the inset group surface every other sheet group has.
+ */
+export const MCP_SERVER_CARD_SURFACE_CLASS = 'max-md:inset-group-surface';
diff --git a/ui/apps/chat/src/lib/constants/settings-advanced-layout.constants.ts b/ui/apps/chat/src/lib/constants/settings-advanced-layout.constants.ts
new file mode 100644
index 000000000..fa32ad987
--- /dev/null
+++ b/ui/apps/chat/src/lib/constants/settings-advanced-layout.constants.ts
@@ -0,0 +1,407 @@
+/**
+ * How the advanced settings are laid out: sections by topic, each with titled groups. The settings
+ * themselves are the registry's (settings.constants.ts); this only says where each one goes.
+ * The settings of the first level (the essential ones) are left out here.
+ */
+import { AGENTIC_ENABLED } from './app.constants';
+import {
+	SETTINGS_CHAT_SECTIONS,
+	SETTINGS_ESSENTIAL_FIELDS,
+	SETTINGS_FEATURE_FIELDS,
+	SETTINGS_SECTION_SLUGS,
+	SETTINGS_SECTION_TITLES
+} from './settings.constants';
+import { SETTINGS_KEYS } from './settings-keys.constants';
+import Bot from '@lucide/svelte/icons/bot';
+import Box from '@lucide/svelte/icons/box';
+import Code from '@lucide/svelte/icons/code';
+import Funnel from '@lucide/svelte/icons/funnel';
+import MessageSquare from '@lucide/svelte/icons/message-square';
+import Mic from '@lucide/svelte/icons/mic';
+import PencilRuler from '@lucide/svelte/icons/pencil-ruler';
+import SquarePen from '@lucide/svelte/icons/square-pen';
+import { SettingsFieldType } from '#lib/enums/settings.enums.ts';
+import type {
+	SettingsFieldConfig,
+	SettingsSection,
+	SettingsSectionTitle
+} from '#lib/types/index.ts';
+import type { Component } from 'svelte';
+
+interface SettingsLayoutGroup {
+	title: string;
+	/** Rarely changed: where the sections show at once, it waits folded under Advanced. */
+	isAdvanced?: boolean;
+	keys?: string[];
+	/** Settings listed after them, only on a server that runs agents. */
+	agentKeys?: string[];
+}
+
+interface SettingsLayoutSection {
+	icon: Component;
+	slug: string;
+	title: SettingsSectionTitle;
+	/** Only on a server that runs agents. */
+	requiresAgent?: boolean;
+	/** Only while chats get tools. */
+	requiresTools?: boolean;
+	/** Drawn by its own tab rather than from settings fields, so it is kept without any. */
+	hasOwnPage?: boolean;
+	/** Every setting of this registry section, drawn by that section's own tab. */
+	registrySlug?: string;
+	groups: SettingsLayoutGroup[];
+}
+
+export interface SettingsFieldGroup {
+	title: string;
+	isAdvanced?: boolean;
+	fields: SettingsFieldConfig[];
+}
+
+/** A section of the advanced settings, with its fields resolved from the registry. */
+export interface SettingsAdvancedSection extends SettingsSection {
+	groups: SettingsFieldGroup[];
+	/** Drawn by its own tab, the tools' for one, with no groups of fields. */
+	hasOwnPage?: boolean;
+}
+
+/** Where a registry setting that no group names ends up, so none is lost. */
+const OTHER_GROUP_TITLE = 'Other';
+const SETTINGS_ADVANCED_LAYOUT: SettingsLayoutSection[] = [
+	{
+		groups: [
+			{
+				keys: [
+					SETTINGS_KEYS.LIVE_MARKDOWN_PREVIEW,
+					SETTINGS_KEYS.AUTO_MIC_ON_EMPTY,
+					SETTINGS_KEYS.PASTE_LONG_TEXT_TO_FILE_LEN
+				],
+				title: 'Input'
+			},
+			{
+				keys: [
+					SETTINGS_KEYS.PDF_AS_IMAGE,
+					SETTINGS_KEYS.PDF_DPI,
+					SETTINGS_KEYS.MAX_IMAGE_RESOLUTION,
+					SETTINGS_KEYS.COPY_TEXT_ATTACHMENTS_AS_PLAIN_TEXT
+				],
+				title: 'Attachments'
+			},
+			{
+				agentKeys: [SETTINGS_KEYS.MENTION_SEARCH_MAX_DEPTH],
+				isAdvanced: true,
+				keys: [SETTINGS_KEYS.SHOW_FULL_PATH_IN_MENTIONS],
+				title: 'File mentions'
+			}
+		],
+		icon: SquarePen,
+		slug: SETTINGS_SECTION_SLUGS.COMPOSER,
+		title: SETTINGS_SECTION_TITLES.COMPOSER
+	},
+	{
+		groups: [
+			{
+				keys: [
+					SETTINGS_KEYS.ALWAYS_SHOW_SIDEBAR_ON_DESKTOP,
+					SETTINGS_KEYS.CONVERSATION_TABS,
+					SETTINGS_KEYS.SINGLE_ROW_CHAT_FORM
+				],
+				title: 'Layout'
+			},
+			{
+				keys: [
+					SETTINGS_KEYS.RENDER_USER_CONTENT_AS_MARKDOWN,
+					SETTINGS_KEYS.RENDER_THINKING_AS_MARKDOWN,
+					SETTINGS_KEYS.FULL_HEIGHT_CODE_BLOCKS
+				],
+				title: 'Rendering'
+			},
+			{
+				keys: [
+					SETTINGS_KEYS.SHOW_THOUGHT_IN_PROGRESS,
+					SETTINGS_KEYS.SHOW_TOOL_CALL_IN_PROGRESS,
+					SETTINGS_KEYS.ALWAYS_SHOW_TOOL_CALL_CONTENT,
+					SETTINGS_KEYS.DISABLE_AUTO_SCROLL
+				],
+				title: 'While generating'
+			},
+			{
+				isAdvanced: true,
+				keys: [SETTINGS_KEYS.SHOW_AGENTIC_TURN_STATS, SETTINGS_KEYS.ALWAYS_SHOW_MESSAGE_STATS],
+				title: 'Statistics'
+			},
+			{
+				isAdvanced: true,
+				keys: [
+					SETTINGS_KEYS.TITLE_GENERATION_USE_FIRST_LINE,
+					SETTINGS_KEYS.TITLE_GENERATION_PROMPT
+				],
+				title: 'Titles'
+			}
+		],
+		icon: MessageSquare,
+		slug: SETTINGS_SECTION_SLUGS.MESSAGES,
+		title: SETTINGS_SECTION_TITLES.MESSAGES
+	},
+	{
+		groups: [
+			{
+				keys: [SETTINGS_KEYS.SHOW_MODELS_MANAGER, SETTINGS_KEYS.USE_HUGGING_FACE_HUB],
+				title: 'Models manager'
+			},
+			{
+				keys: [
+					SETTINGS_KEYS.SHOW_MODEL_ORG_NAME,
+					SETTINGS_KEYS.SHOW_MODEL_ORG_NAME_ON_MOBILE,
+					SETTINGS_KEYS.SHOW_RAW_MODEL_NAMES,
+					SETTINGS_KEYS.SHOW_MODEL_QUANTIZATION,
+					SETTINGS_KEYS.SHOW_MODEL_TAGS,
+					SETTINGS_KEYS.SHOW_MODEL_CAPABILITIES_IN_SELECTOR,
+					SETTINGS_KEYS.GROUP_MODELS_BY_FAMILY
+				],
+				title: 'Names'
+			}
+		],
+		icon: Box,
+		slug: SETTINGS_SECTION_SLUGS.MODELS,
+		title: SETTINGS_SECTION_TITLES.MODELS
+	},
+	{
+		groups: [],
+		icon: Funnel,
+		registrySlug: SETTINGS_SECTION_SLUGS.SAMPLING_PENALTIES,
+		slug: SETTINGS_SECTION_SLUGS.SAMPLING_PENALTIES,
+		title: SETTINGS_SECTION_TITLES.SAMPLING_PENALTIES
+	},
+	{
+		groups: [],
+		hasOwnPage: true,
+		icon: PencilRuler,
+		requiresTools: true,
+		slug: SETTINGS_SECTION_SLUGS.TOOLS,
+		title: SETTINGS_SECTION_TITLES.TOOLS
+	},
+	{
+		groups: [
+			{ keys: [SETTINGS_KEYS.AGENTIC_MAX_TURNS], title: 'Agent loop' },
+			{
+				isAdvanced: true,
+				keys: [SETTINGS_KEYS.COMPACTION_PROMPT, SETTINGS_KEYS.COMPACTION_PRESERVED_STEPS],
+				title: 'Compaction'
+			},
+			{
+				isAdvanced: true,
+				keys: [SETTINGS_KEYS.MCP_REQUEST_TIMEOUT_SECONDS],
+				title: 'MCP'
+			},
+			{
+				keys: [SETTINGS_KEYS.TOOL_CALL_SHOWN_ARG, SETTINGS_KEYS.SYMBOLIC_MATH_ENABLED],
+				title: 'Tool calls'
+			}
+		],
+		icon: Bot,
+		requiresAgent: true,
+		slug: SETTINGS_SECTION_SLUGS.AGENTIC,
+		title: SETTINGS_SECTION_TITLES.AGENTIC
+	},
+	{
+		groups: [],
+		icon: Mic,
+		registrySlug: SETTINGS_SECTION_SLUGS.VOICE,
+		slug: SETTINGS_SECTION_SLUGS.VOICE,
+		title: SETTINGS_SECTION_TITLES.VOICE
+	},
+	{
+		groups: [
+			{
+				keys: [SETTINGS_KEYS.SHOW_RAW_OUTPUT_SWITCH, SETTINGS_KEYS.SHOW_BUILD_VERSION],
+				title: 'Debugging'
+			},
+			{
+				isAdvanced: true,
+				keys: [
+					SETTINGS_KEYS.PRE_ENCODE_CONVERSATION,
+					SETTINGS_KEYS.DISABLE_REASONING_PARSING,
+					SETTINGS_KEYS.EXCLUDE_REASONING_FROM_CONTEXT
+				],
+				title: 'Requests'
+			},
+			{
+				isAdvanced: true,
+				keys: [SETTINGS_KEYS.CUSTOM_JSON, SETTINGS_KEYS.CUSTOM_CSS],
+				title: 'Custom JSON and CSS'
+			}
+		],
+		icon: Code,
+		slug: SETTINGS_SECTION_SLUGS.DEVELOPER,
+		title: SETTINGS_SECTION_TITLES.DEVELOPER
+	}
+];
+
+/** The API key's field, which General lists for a server that asks for a key, and nothing else does. */
+export const SETTINGS_API_KEY_FIELDS: SettingsFieldConfig[] = SETTINGS_CHAT_SECTIONS.flatMap(
+	(section) => section.fields ?? []
+).filter((field) => field.key === SETTINGS_KEYS.API_KEY);
+
+/**
+ * The advanced settings' sections with their fields: the agent's only on a server that runs
+ * agents, the tools' while chats get tools (in a plain chat too, the browser's and the MCP
+ * servers'). A section or group left with no field is dropped, unless the section draws its own
+ * page; a registry setting no group names is listed under Other in the first section. The API key
+ * is never here: General lists it for a server that asks for one.
+ * @param serverRunsAgents - The server offers the agentic features
+ * @param chatsGetTools - Chats get tools, the browser's at least
+ */
+export function settingsAdvancedSections(
+	serverRunsAgents: boolean,
+	chatsGetTools = serverRunsAgents
+): SettingsAdvancedSection[] {
+	const offersAgent = AGENTIC_ENABLED && serverRunsAgents;
+	const offersTools = AGENTIC_ENABLED && chatsGetTools;
+	// what the first page already has is left out here
+	const isOnFirstPage = (field: SettingsFieldConfig) =>
+		Boolean(field.isEssential) || field.key === SETTINGS_KEYS.API_KEY;
+	const all = SETTINGS_CHAT_SECTIONS.flatMap((section) => section.fields ?? []).filter(
+		(field) => !isOnFirstPage(field)
+	);
+	const byKey = new Map(all.map((field) => [field.key, field]));
+	const placed = new Set<string>();
+	const resolve = (title: string, keys: string[] = [], isAdvanced = false): SettingsFieldGroup => ({
+		fields: keys.flatMap((key) => {
+			const field = byKey.get(key);
+
+			if (!field) return [];
+
+			placed.add(key);
+
+			return [field];
+		}),
+		isAdvanced,
+		title
+	});
+	const hasFields = (group: SettingsFieldGroup) => group.fields.length > 0;
+	const sections = SETTINGS_ADVANCED_LAYOUT.filter(
+		(section) => (!section.requiresAgent || offersAgent) && (!section.requiresTools || offersTools)
+	).map((section): SettingsAdvancedSection => {
+		const own = section.registrySlug
+			? (SETTINGS_CHAT_SECTIONS.find((entry) => entry.slug === section.registrySlug)?.fields ?? [])
+					.filter((field) => !isOnFirstPage(field))
+					.map((field) => field.key)
+			: [];
+		const groups = [
+			...section.groups.map((group) =>
+				resolve(
+					group.title,
+					[...(group.keys ?? []), ...(offersAgent ? (group.agentKeys ?? []) : [])],
+					group.isAdvanced
+				)
+			),
+			resolve(section.title, own)
+		].filter(hasFields);
+
+		return {
+			fields: groups.flatMap((group) => group.fields),
+			groups,
+			hasOwnPage: section.hasOwnPage,
+			icon: section.icon,
+			slug: section.slug,
+			title: section.title
+		};
+	});
+	// the agent's settings stay out of a plain chat, placed or not
+	const agentKeys = new Set(
+		SETTINGS_ADVANCED_LAYOUT.filter((section) => section.requiresAgent).flatMap((section) =>
+			section.groups.flatMap((group) => group.keys ?? [])
+		)
+	);
+
+	for (const section of SETTINGS_ADVANCED_LAYOUT) {
+		for (const group of section.groups) for (const key of group.agentKeys ?? []) agentKeys.add(key);
+	}
+
+	const others = all.filter((field) => !placed.has(field.key) && !agentKeys.has(field.key));
+
+	if (others.length > 0 && sections[0]) {
+		sections[0].groups.push({ fields: others, title: OTHER_GROUP_TITLE });
+	}
+
+	return sections.filter((section) => section.hasOwnPage || section.groups.length > 0);
+}
+
+/** General's groups, in the order it shows them: the look, the system message, the features. */
+export const SETTINGS_GENERAL_GROUP_TITLES = {
+	DISPLAY: SETTINGS_SECTION_TITLES.DISPLAY,
+	FEATURES: 'Features',
+	SYSTEM_MESSAGE: 'System message'
+} as const;
+
+/** The texts of the search for settings, in the settings, the phone sheet and the app's search. */
+export const SETTINGS_SEARCH_TEXT = {
+	NO_RESULTS: 'No settings match your search',
+	PLACEHOLDER: 'Search settings',
+	SECTION: 'Settings'
+} as const;
+
+/** What the settings show for this server, and so what a search for settings looks through. */
+export interface SettingsSearchScope {
+	/** The API key's field shows: the server is not known to answer without one. */
+	apiKeyRequired: boolean;
+	/** Chats get tools, the browser's at least. */
+	chatsGetTools: boolean;
+	/** The MCP servers have their section. */
+	mcpServersShown: boolean;
+	/** The server offers the agentic features. */
+	serverRunsAgents: boolean;
+}
+
+/**
+ * Every section a search for settings looks through, in the order the settings show them: General
+ * with its groups, the MCP servers and the data, which draw pages of their own, then the advanced
+ * sections. A setting for another kind of device is still here: the search leaves it out.
+ */
+export function settingsSearchSections(scope: SettingsSearchScope): SettingsAdvancedSection[] {
+	const { DISPLAY, FEATURES, SYSTEM_MESSAGE } = SETTINGS_GENERAL_GROUP_TITLES;
+	const isText = (field: SettingsFieldConfig) => field.type === SettingsFieldType.TEXTAREA;
+	const display = SETTINGS_ESSENTIAL_FIELDS.filter((field) => !isText(field));
+	const generalGroups: SettingsFieldGroup[] = [
+		{
+			fields: scope.apiKeyRequired ? [...display, ...SETTINGS_API_KEY_FIELDS] : display,
+			title: DISPLAY
+		},
+		{ fields: SETTINGS_ESSENTIAL_FIELDS.filter(isText), title: SYSTEM_MESSAGE },
+		{ fields: AGENTIC_ENABLED ? SETTINGS_FEATURE_FIELDS : [], title: FEATURES }
+	].filter((group) => group.fields.length > 0);
+	const general = SETTINGS_CHAT_SECTIONS.find(
+		(section) => section.slug === SETTINGS_SECTION_SLUGS.GENERAL
+	);
+	const ownPages = SETTINGS_CHAT_SECTIONS.filter(
+		(section) =>
+			section.slug === SETTINGS_SECTION_SLUGS.IMPORT_EXPORT ||
+			(section.slug === SETTINGS_SECTION_SLUGS.EXTENSIONS && scope.mcpServersShown)
+	).map(
+		(section): SettingsAdvancedSection => ({
+			fields: [],
+			groups: [],
+			hasOwnPage: true,
+			icon: section.icon,
+			slug: section.slug,
+			title: section.title
+		})
+	);
+
+	return [
+		...(general
+			? [
+					{
+						fields: generalGroups.flatMap((group) => group.fields),
+						groups: generalGroups,
+						icon: general.icon,
+						slug: general.slug,
+						title: general.title
+					}
+				]
+			: []),
+		...ownPages,
+		...settingsAdvancedSections(scope.serverRunsAgents, scope.chatsGetTools)
+	];
+}
diff --git a/ui/apps/chat/src/lib/constants/settings-keys.constants.ts b/ui/apps/chat/src/lib/constants/settings-keys.constants.ts
index bd317913d..c5cfce5cd 100644
--- a/ui/apps/chat/src/lib/constants/settings-keys.constants.ts
+++ b/ui/apps/chat/src/lib/constants/settings-keys.constants.ts
@@ -29,7 +29,6 @@ export const SETTINGS_KEYS = {
 	DYNATEMP_EXPONENT: 'dynatemp_exponent',
 	DYNATEMP_RANGE: 'dynatemp_range',
 	ENABLE_CONTINUE_GENERATION: 'enableContinueGeneration',
-	ENABLE_DISCOVER_MODELS: 'enableDiscoverModels',
 	ENABLE_MCP: 'enableMcp',
 	EXCLUDE_REASONING_FROM_CONTEXT: 'excludeReasoningFromContext',
 	FREQUENCY_PENALTY: 'frequency_penalty',
@@ -70,6 +69,7 @@ export const SETTINGS_KEYS = {
 	SHOW_MODELS_MANAGER: 'showModelsManager',
 	SHOW_RAW_MODEL_NAMES: 'showRawModelNames',
 	SHOW_RAW_OUTPUT_SWITCH: 'showRawOutputSwitch',
+	SHOW_SIDEBAR_ROW_DETAILS: 'showSidebarRowDetails',
 	SHOW_SYSTEM_MESSAGE: 'showSystemMessage',
 	SHOW_THOUGHT_IN_PROGRESS: 'showThoughtInProgress',
 	SHOW_TOOL_CALL_IN_PROGRESS: 'showToolCallInProgress',
@@ -93,7 +93,6 @@ export const SETTINGS_KEYS = {
 	// Voice
 	VOICE_AUTO_GAIN: 'voiceAutoGain',
 	VOICE_BOOST: 'voiceBoost',
-	VOICE_COLLAPSE_TRANSCRIPTS: 'voiceCollapseTranscripts',
 	VOICE_ECHO_CANCELLATION: 'voiceEchoCancellation',
 	VOICE_INPUT_MODE: 'voiceInputMode',
 	VOICE_MICROPHONE: 'voiceMicrophone',
diff --git a/ui/apps/chat/src/lib/constants/settings.constants.ts b/ui/apps/chat/src/lib/constants/settings.constants.ts
index 7f8d8c71c..17098b315 100644
--- a/ui/apps/chat/src/lib/constants/settings.constants.ts
+++ b/ui/apps/chat/src/lib/constants/settings.constants.ts
@@ -1,4 +1,5 @@
 import { DEFAULT_AGENTIC_CONFIG } from './agentic.constants';
+import { AGENTIC_ENABLED } from './app.constants';
 import { CLI_FLAGS } from './cli-flags.constants';
 import { COMPACTION } from './compaction.constants';
 import { DEFAULT_MCP_CONFIG } from './mcp.constants';
@@ -21,6 +22,7 @@ import PencilRuler from '@lucide/svelte/icons/pencil-ruler';
 import SlidersVertical from '@lucide/svelte/icons/sliders-vertical';
 import Sun from '@lucide/svelte/icons/sun';
 import TextCursorInput from '@lucide/svelte/icons/text-cursor-input';
+import McpLogo from '#lib/components/app/mcp/McpLogo.svelte';
 import { SettingsPlatform, SyncableParameterType, VoiceInputMode } from '#lib/enums/index.ts';
 import { SettingsFieldType } from '#lib/enums/settings.enums.ts';
 import { ColorMode } from '#lib/enums/ui.enums.ts';
@@ -34,41 +36,55 @@ import type {

 /** Settings sections — slug is the routing identity, title is the display label. */
 export const SETTINGS_SECTIONS = {
-	AGENTIC: { slug: 'agentic', title: 'Agentic' },
+	// the plain chat's way into every other setting; no registry section of its own
+	ADVANCED: { slug: 'advanced', title: 'Advanced' },
+	AGENTIC: { slug: 'agentic', title: 'Agent' },
+	COMPOSER: { slug: 'composer', title: 'Composer' },
 	DEVELOPER: { slug: 'developer', title: 'Developer' },
 	DISPLAY: { slug: 'display', title: 'Display' },
+	// the slug stays: it is the routing identity, the title is what the user reads
+	EXTENSIONS: { slug: 'extensions', title: 'MCP' },
 	GENERAL: { slug: 'general', title: 'General' },
 	IMPORT_EXPORT: { slug: 'import-export', title: 'Import/Export' },
+	MESSAGES: { slug: 'messages', title: 'Messages' },
+	MODELS: { slug: 'models', title: 'Models' },
 	SAMPLING_PENALTIES: { slug: 'sampling-penalties', title: 'Sampling & Penalties' },
 	TOOLS: { slug: 'tools', title: 'Tools' },
 	VOICE: { slug: 'voice', title: 'Voice' }
 } as const;

 export const SETTINGS_SECTION_SLUGS = {
+	ADVANCED: SETTINGS_SECTIONS.ADVANCED.slug,
 	AGENTIC: SETTINGS_SECTIONS.AGENTIC.slug,
+	COMPOSER: SETTINGS_SECTIONS.COMPOSER.slug,
 	DEVELOPER: SETTINGS_SECTIONS.DEVELOPER.slug,
 	DISPLAY: SETTINGS_SECTIONS.DISPLAY.slug,
+	EXTENSIONS: SETTINGS_SECTIONS.EXTENSIONS.slug,
 	GENERAL: SETTINGS_SECTIONS.GENERAL.slug,
 	IMPORT_EXPORT: SETTINGS_SECTIONS.IMPORT_EXPORT.slug,
+	MESSAGES: SETTINGS_SECTIONS.MESSAGES.slug,
+	MODELS: SETTINGS_SECTIONS.MODELS.slug,
 	SAMPLING_PENALTIES: SETTINGS_SECTIONS.SAMPLING_PENALTIES.slug,
 	TOOLS: SETTINGS_SECTIONS.TOOLS.slug,
 	VOICE: SETTINGS_SECTIONS.VOICE.slug
 } as const;

 export const SETTINGS_SECTION_TITLES = {
+	ADVANCED: SETTINGS_SECTIONS.ADVANCED.title,
 	AGENTIC: SETTINGS_SECTIONS.AGENTIC.title,
+	COMPOSER: SETTINGS_SECTIONS.COMPOSER.title,
 	DEVELOPER: SETTINGS_SECTIONS.DEVELOPER.title,
 	DISPLAY: SETTINGS_SECTIONS.DISPLAY.title,
+	EXTENSIONS: SETTINGS_SECTIONS.EXTENSIONS.title,
 	GENERAL: SETTINGS_SECTIONS.GENERAL.title,
 	IMPORT_EXPORT: SETTINGS_SECTIONS.IMPORT_EXPORT.title,
+	MESSAGES: SETTINGS_SECTIONS.MESSAGES.title,
+	MODELS: SETTINGS_SECTIONS.MODELS.title,
 	SAMPLING_PENALTIES: SETTINGS_SECTIONS.SAMPLING_PENALTIES.title,
 	TOOLS: SETTINGS_SECTIONS.TOOLS.title,
 	VOICE: SETTINGS_SECTIONS.VOICE.title
 } as const;

-/** The action that opens the MCP servers, under the Enable MCP setting. */
-export const MANAGE_MCP_SERVERS_LABEL = 'Manage MCP servers';
-
 export const SETTINGS_REGISTRY: SettingsSectionEntry[] = [
 	// General
 	{
@@ -77,6 +93,7 @@ export const SETTINGS_REGISTRY: SettingsSectionEntry[] = [
 			{
 				defaultValue: ColorMode.SYSTEM,
 				help: 'Choose the color theme for the interface. You can choose between System (follows your device settings), Light, or Dark.',
+				isEssential: true,
 				key: SETTINGS_KEYS.THEME,
 				label: 'Theme',
 				options: [
@@ -94,9 +111,24 @@ export const SETTINGS_REGISTRY: SettingsSectionEntry[] = [
 				label: 'API Key',
 				type: SettingsFieldType.INPUT
 			},
+			{
+				defaultValue: false,
+				help: 'Adds Models to the sidebar and "Manage models" to the model selector, to see, load and configure the models on the server.',
+				key: SETTINGS_KEYS.SHOW_MODELS_MANAGER,
+				label: 'Enable models manager',
+				type: SettingsFieldType.CHECKBOX
+			},
+			{
+				defaultValue: false,
+				help: 'Fetch model details (avatars, context length, chat template) from the Hugging Face Hub API, and with the models manager on, let the search find models on the Hub to view and download.',
+				key: SETTINGS_KEYS.USE_HUGGING_FACE_HUB,
+				label: 'Use the Hugging Face Hub API',
+				type: SettingsFieldType.CHECKBOX
+			},
 			{
 				defaultValue: '',
 				help: 'The starting message that defines how model should behave.',
+				isEssential: true,
 				key: SETTINGS_KEYS.SYSTEM_MESSAGE,
 				label: 'System Message',
 				placeholder:
@@ -121,6 +153,7 @@ export const SETTINGS_REGISTRY: SettingsSectionEntry[] = [
 			{
 				defaultValue: true,
 				help: 'Use Enter to send messages, and Shift + Enter or Ctrl/Cmd + Enter for new lines. When disabled, and always on a touch screen, Enter adds a line and Ctrl/Cmd + Enter sends.',
+				isEssential: true,
 				key: SETTINGS_KEYS.SEND_ON_ENTER,
 				label: 'Send message on Enter',
 				platform: SettingsPlatform.DESKTOP,
@@ -148,27 +181,6 @@ export const SETTINGS_REGISTRY: SettingsSectionEntry[] = [
 				label: 'Enable "Continue" button',
 				type: SettingsFieldType.CHECKBOX
 			},
-			{
-				defaultValue: false,
-				help: 'Show Models in the sidebar and "Manage models" in the model selector, to see, load and configure the models on the server.',
-				key: SETTINGS_KEYS.SHOW_MODELS_MANAGER,
-				label: 'Show Models',
-				type: SettingsFieldType.CHECKBOX
-			},
-			{
-				defaultValue: false,
-				help: 'Show Discover Models on the Models page, to browse and download HuggingFace GGUF models. Turns Models and the Hugging Face Hub API on while it is enabled. Only available in router mode.',
-				key: SETTINGS_KEYS.ENABLE_DISCOVER_MODELS,
-				label: 'Enable Discover Models',
-				type: SettingsFieldType.CHECKBOX
-			},
-			{
-				defaultValue: false,
-				help: 'Fetch model display data (avatars, context length, chat template) and everything in the Discover Models view from the Hugging Face Hub API. Locked on while Discover Models is enabled; can be turned on alone for just the display data.',
-				key: SETTINGS_KEYS.USE_HUGGING_FACE_HUB,
-				label: 'Use the Hugging Face Hub API',
-				type: SettingsFieldType.CHECKBOX
-			},
 			{
 				defaultValue: true,
 				help: 'Choose how conversation titles are generated. The first non-empty line uses a fast deterministic rule; the LLM option uses a model-generated title from the first message exchange.',
@@ -228,7 +240,7 @@ export const SETTINGS_REGISTRY: SettingsSectionEntry[] = [
 				type: SettingsFieldType.CHECKBOX
 			},
 			{
-				defaultValue: false,
+				defaultValue: true,
 				help: 'Parse PDF as image instead of text. Automatically falls back to text processing for non-vision models.',
 				key: SETTINGS_KEYS.PDF_AS_IMAGE,
 				label: 'Parse PDF as image',
@@ -263,15 +275,16 @@ export const SETTINGS_REGISTRY: SettingsSectionEntry[] = [
 		settings: [
 			{
 				defaultValue: true,
-				help: 'Display generation statistics (tokens/second, token count, duration) below each assistant message.',
+				help: 'Speed and token counts under each reply.',
+				isEssential: true,
 				key: SETTINGS_KEYS.SHOW_MESSAGE_STATS,
-				label: 'Show message generation statistics',
+				label: 'Show statistics',
 				type: SettingsFieldType.CHECKBOX
 			},
 			{
 				defaultValue: false,
 				dependsOn: SETTINGS_KEYS.SHOW_MESSAGE_STATS,
-				help: 'Display per-turn statistics (tokens, duration) under each turn in agentic responses. Shown only when "Show message generation statistics" is enabled.',
+				help: 'Display per-turn statistics (tokens, duration) under each turn in agentic responses. Shown only when "Show statistics" is on.',
 				key: SETTINGS_KEYS.SHOW_AGENTIC_TURN_STATS,
 				label: 'Show statistics for individual agentic turns',
 				type: SettingsFieldType.CHECKBOX
@@ -373,10 +386,11 @@ export const SETTINGS_REGISTRY: SettingsSectionEntry[] = [
 				type: SettingsFieldType.CHECKBOX
 			},
 			{
-				defaultValue: true,
-				help: 'Display quantization badges (e.g. Q8_0, Q4_K_M) next to model names throughout the interface.',
+				defaultValue: false,
+				help: 'Keep the quantization (e.g. Q8_0, Q4_K_M) on the model shown in the selector button. The models list and the models manager always show it.',
 				key: SETTINGS_KEYS.SHOW_MODEL_QUANTIZATION,
-				label: 'Show model quantization information',
+				label: 'Show quantization in the models selector button',
+				lockedBy: SETTINGS_KEYS.SHOW_RAW_MODEL_NAMES,
 				type: SettingsFieldType.CHECKBOX
 			},
 			{
@@ -384,6 +398,7 @@ export const SETTINGS_REGISTRY: SettingsSectionEntry[] = [
 				help: 'Display model tags (e.g. "vision", "reasoning") next to model names throughout the interface.',
 				key: SETTINGS_KEYS.SHOW_MODEL_TAGS,
 				label: 'Show model tags',
+				lockedBy: SETTINGS_KEYS.SHOW_RAW_MODEL_NAMES,
 				type: SettingsFieldType.CHECKBOX
 			},
 			{
@@ -394,8 +409,8 @@ export const SETTINGS_REGISTRY: SettingsSectionEntry[] = [
 				type: SettingsFieldType.CHECKBOX
 			},
 			{
-				defaultValue: true,
-				help: 'Display the organization name alongside model names in the model selector, in the trigger and in the model rows.',
+				defaultValue: false,
+				help: 'Display the organization name alongside model names in the models selector: its button, and the rows of its dropdown and sheet.',
 				key: SETTINGS_KEYS.SHOW_MODEL_ORG_NAME,
 				label: 'Show organization name in model selector',
 				type: SettingsFieldType.CHECKBOX
@@ -439,7 +454,9 @@ export const SETTINGS_REGISTRY: SettingsSectionEntry[] = [
 		settings: [
 			{
 				defaultValue: VoiceInputMode.AUTO,
-				help: 'Automatic sends your voice to a model that understands audio, as a voice message with its transcript, and turns it into text in the message input for any other model. Always dictate turns it into text for every model, so only the text reaches the chat.',
+				details:
+					'Automatic sends your voice to a model that understands audio, as a voice message with its transcript, and turns it into text in the message input for any other model. Always dictate turns it into text for every model, so only the text reaches the chat.',
+				help: 'How your voice reaches the chat.',
 				key: SETTINGS_KEYS.VOICE_INPUT_MODE,
 				label: 'Voice input',
 				options: [
@@ -450,7 +467,9 @@ export const SETTINGS_REGISTRY: SettingsSectionEntry[] = [
 			},
 			{
 				defaultValue: VOICE_TRANSCRIPTION_MODEL_AUTO,
-				help: 'The model that turns speech into text when the chat model has no audio input. Automatic uses a model with audio input that is already loaded, so dictating loads nothing.',
+				details:
+					'Automatic uses a model with audio input that is already loaded, so dictating loads nothing. Only models with audio input are listed. A model you pick is loaded when you dictate, alongside the chat model; a server that keeps one model at a time (--models-max 1) unloads the chat model to do it.',
+				help: 'Turns speech into text for a chat model without audio input.',
 				key: SETTINGS_KEYS.VOICE_TRANSCRIPTION_MODEL,
 				label: 'Transcription model',
 				standaloneField: false,
@@ -458,7 +477,9 @@ export const SETTINGS_REGISTRY: SettingsSectionEntry[] = [
 			},
 			{
 				defaultValue: VOICE_MICROPHONE_AUTO,
-				help: "The microphone you record from. Automatic takes the system's default one, unless that is a Bluetooth headset's: recording from it switches the headset to its call mode, which plays music in low quality, so the built-in microphone is used instead.",
+				details:
+					"Automatic takes the system's default microphone, unless that is a Bluetooth headset's: recording from it switches the headset to its call mode, which plays music in low quality, so the built-in microphone is used instead.",
+				help: 'The microphone you record from.',
 				key: SETTINGS_KEYS.VOICE_MICROPHONE,
 				label: 'Microphone',
 				standaloneField: false,
@@ -471,13 +492,6 @@ export const SETTINGS_REGISTRY: SettingsSectionEntry[] = [
 				label: 'Transcribe voice messages',
 				type: SettingsFieldType.CHECKBOX
 			},
-			{
-				defaultValue: false,
-				help: 'Show the transcript of a voice message folded under its waveform, to open on hover or with a tap, instead of open.',
-				key: SETTINGS_KEYS.VOICE_COLLAPSE_TRANSCRIPTS,
-				label: 'Collapse transcripts',
-				type: SettingsFieldType.CHECKBOX
-			},
 			{
 				defaultValue: true,
 				help: 'Raise quiet speech to a level the model hears well, up to eight times louder, so a quiet microphone or a voice from afar is still understood. Only speech is measured, never the silence around it, and loud speech is left as it is.',
@@ -524,7 +538,7 @@ export const SETTINGS_REGISTRY: SettingsSectionEntry[] = [
 		settings: [
 			{
 				defaultValue: '[]',
-				help: `Configure MCP servers as a JSON list. Edit them with ${MANAGE_MCP_SERVERS_LABEL}.`,
+				help: `Configure MCP servers as a JSON list. Edit them in the ${SETTINGS_SECTION_TITLES.EXTENSIONS} section.`,
 				key: SETTINGS_KEYS.MCP_SERVERS,
 				label: 'MCP servers',
 				standaloneField: false,
@@ -547,8 +561,9 @@ export const SETTINGS_REGISTRY: SettingsSectionEntry[] = [
 		icon: ListRestart,
 		settings: [
 			{
-				defaultValue: false,
-				help: 'Let chats use the tools, prompts and resources of MCP servers. While it is off, no MCP server is connected.',
+				defaultValue: true,
+				help: 'Use your MCP servers in chats.',
+				isEssential: true,
 				key: SETTINGS_KEYS.ENABLE_MCP,
 				label: 'Enable MCP',
 				type: SettingsFieldType.CHECKBOX
@@ -584,7 +599,15 @@ export const SETTINGS_REGISTRY: SettingsSectionEntry[] = [
 		slug: SETTINGS_SECTION_SLUGS.AGENTIC,
 		title: SETTINGS_SECTION_TITLES.AGENTIC
 	},
-	// Import/Export
+	// MCP: the servers, listed while Enable MCP is on
+	{
+		icon: McpLogo,
+		settings: [],
+		slug: SETTINGS_SECTION_SLUGS.EXTENSIONS,
+		title: SETTINGS_SECTION_TITLES.EXTENSIONS
+	},
+
+	// Data: import and export
 	{
 		icon: Database,
 		settings: [],
@@ -876,6 +899,11 @@ export const SETTING_CONFIG_INFO: Record<string, string> = Object.fromEntries(
 	getAllSettings().map((s) => [s.key, s.help])
 ) as Record<string, string>;

+/** The longer explanation of the settings that have one, for the info tooltip beside the title. */
+export const SETTING_CONFIG_DETAILS: Record<string, string> = Object.fromEntries(
+	getAllSettings().flatMap((s) => (s.details ? [[s.key, s.details]] : []))
+);
+
 /** Sidebar sections + field configs (as consumed by UI). */
 function toSettingsSection(section: SettingsSectionEntry): SettingsSection {
 	return {
@@ -883,12 +911,15 @@ function toSettingsSection(section: SettingsSectionEntry): SettingsSection {
 			.filter((s) => s.standaloneField !== false)
 			.map((s) => ({
 				dependsOn: s.dependsOn,
+				details: s.details,
 				help: s.help,
+				isEssential: s.isEssential,
 				isExperimental: s.isExperimental,
 				isPositiveInteger: s.isPositiveInteger,
 				isPrivate: s.isPrivate,
 				key: s.key,
 				label: s.label,
+				lockedBy: s.lockedBy,
 				max: s.max,
 				min: s.min,
 				options: s.options as SettingsFieldConfig['options'],
@@ -906,15 +937,62 @@ function toSettingsSection(section: SettingsSectionEntry): SettingsSection {
 /** Sidebar sections in custom display order (the registry array order). */
 export const SETTINGS_CHAT_SECTIONS: SettingsSection[] = SETTINGS_REGISTRY.map(toSettingsSection);

-/** The sections to show: without the agentic features there are no tools, no loop and no MCP to set up, which are all in Tools and Agentic. */
-export function settingsChatSections(agentic: boolean): SettingsSection[] {
-	if (agentic) return SETTINGS_CHAT_SECTIONS;
+/**
+ * Sections that show without Advanced settings: General, which then lists the essential
+ * settings of every section and holds the data's import and export, and the MCP servers, which
+ * the Enable MCP switch beside them turns on.
+ */
+const ESSENTIAL_SECTION_SLUGS: readonly string[] = [
+	SETTINGS_SECTION_SLUGS.GENERAL,
+	SETTINGS_SECTION_SLUGS.EXTENSIONS
+];
+/** General lists the essential settings by kind: the choices, the switches, then the texts. */
+const ESSENTIAL_TYPE_ORDER: readonly SettingsFieldType[] = [
+	SettingsFieldType.SELECT,
+	SettingsFieldType.CHECKBOX,
+	SettingsFieldType.TEXTAREA
+];
+/** The switches that turn a whole feature of the app on, kept within easy reach. */
+const FEATURE_KEYS: readonly string[] = [SETTINGS_KEYS.ENABLE_MCP];
+const FIRST_LEVEL_FIELDS: SettingsFieldConfig[] = SETTINGS_CHAT_SECTIONS.flatMap(
+	(section) => section.fields ?? []
+).filter((field) => field.isEssential);
+
+/** The feature switches, as General lists them under the essential settings. */
+export const SETTINGS_FEATURE_FIELDS: SettingsFieldConfig[] = FIRST_LEVEL_FIELDS.filter((field) =>
+	FEATURE_KEYS.includes(field.key)
+);
+
+/** The few settings most people change, from every section, as General lists them. */
+export const SETTINGS_ESSENTIAL_FIELDS: SettingsFieldConfig[] = FIRST_LEVEL_FIELDS.filter(
+	(field) => !FEATURE_KEYS.includes(field.key)
+).sort((a, b) => ESSENTIAL_TYPE_ORDER.indexOf(a.type) - ESSENTIAL_TYPE_ORDER.indexOf(b.type));
+
+/**
+ * The sections to show: without the agentic features there are no server tools and no agent to
+ * set up, which are in Tools and Agent. MCP shows while Enable MCP is on, for a plain chat too.
+ */
+export function settingsChatSections(
+	agentic: boolean,
+	mcpServersEnabled = true,
+	showAdvanced = true
+): SettingsSection[] {
+	return SETTINGS_CHAT_SECTIONS.filter((section) => {
+		if (!showAdvanced && !ESSENTIAL_SECTION_SLUGS.includes(section.slug)) return false;
+
+		if (section.slug === SETTINGS_SECTION_SLUGS.EXTENSIONS) {
+			return AGENTIC_ENABLED && mcpServersEnabled;
+		}
+
+		if (
+			section.slug === SETTINGS_SECTION_SLUGS.TOOLS ||
+			section.slug === SETTINGS_SECTION_SLUGS.AGENTIC
+		) {
+			return agentic;
+		}

-	return SETTINGS_CHAT_SECTIONS.filter(
-		(section) =>
-			section.slug !== SETTINGS_SECTION_SLUGS.TOOLS &&
-			section.slug !== SETTINGS_SECTION_SLUGS.AGENTIC
-	);
+		return true;
+	});
 }

 /** INPUT-type settings whose value is a number. */
diff --git a/ui/apps/chat/src/lib/constants/sheet.constants.ts b/ui/apps/chat/src/lib/constants/sheet.constants.ts
index 9f87d534a..b882269d8 100644
--- a/ui/apps/chat/src/lib/constants/sheet.constants.ts
+++ b/ui/apps/chat/src/lib/constants/sheet.constants.ts
@@ -46,11 +46,14 @@ export const MODELS_SHEET_TEXT = {
 } as const;

 export const SETTINGS_SHEET_TEXT = {
+	ADVANCED: 'Advanced settings',
 	APP: 'App',
 	APPEARANCE: 'Appearance',
 	CANCEL: 'Cancel',
 	CUSTOM_JSON_INVALID: 'Custom JSON is not valid JSON, so it was not saved',
 	DESCRIPTION: 'How the app looks, chats and talks to the server.',
+	MANAGE_MCP_SERVERS: 'Manage MCP servers',
+	MCP: 'MCP',
 	MCP_SERVERS: 'MCP servers',
 	NEEDS_NUMBER: (label: string) => `${label} needs a number`,
 	RELOAD_APP: 'Reload app',
@@ -62,7 +65,8 @@ export const SETTINGS_SHEET_TEXT = {
 	RESET_FIELD: (label: string) => `Reset ${label} to default`,
 	RESET_TITLE: 'Reset Settings to Default',
 	SAVED_NOTE: 'Settings are saved in this browser.',
-	SHOW_SYSTEM_MESSAGE: 'Show system message in conversations',
+	SHOW_SYSTEM_MESSAGE: 'Show in conversations',
+	SYSTEM_MESSAGE: 'System message',
 	TITLE: 'Settings',
 	TOOL: 'Tool',
 	TOOLS: 'Tools'
diff --git a/ui/apps/chat/src/lib/constants/ui.constants.ts b/ui/apps/chat/src/lib/constants/ui.constants.ts
index 60afa36e2..ba7c92e28 100644
--- a/ui/apps/chat/src/lib/constants/ui.constants.ts
+++ b/ui/apps/chat/src/lib/constants/ui.constants.ts
@@ -6,9 +6,9 @@ import {
 	SHORTCUT_SETTINGS
 } from './keyboard-shortcuts.constants';
 import { ROUTES } from './routes.constants';
+import Plus from '@lucide/svelte/icons/plus';
 import Search from '@lucide/svelte/icons/search';
 import Settings from '@lucide/svelte/icons/settings';
-import SquarePen from '@lucide/svelte/icons/square-pen';
 import { SidebarAction, ToolSource } from '#lib/enums/index.ts';
 import type { DesktopIconStripItem } from '#lib/types/index.ts';

@@ -167,19 +167,18 @@ export const ROW_LONG_PRESS_SLOP_PX = 8;
 /** Max height for tool-result code blocks (json / source / diff / streaming code). */
 export const MAX_HEIGHT_CODE_BLOCK = '22rem';

-/** The sidebar's actions at its top: starting, finding and organizing chats. */
+/**
+ * The sidebar's actions, all at its top: a new chat and a search, then the app around the chats -
+ * the models and the settings, each waiting behind its own setting.
+ */
 export const SIDEBAR_ACTIONS_ITEMS: DesktopIconStripItem[] = [
 	{
 		action: SidebarAction.NEW_CHAT,
-		icon: SquarePen,
+		icon: Plus,
 		keys: SHORTCUT_NEW_CHAT,
-		tooltip: 'New chat'
+		tooltip: 'New'
 	},
-	{ action: SidebarAction.SEARCH, icon: Search, keys: SHORTCUT_SEARCH, tooltip: 'Search' }
-];
-
-/** The sidebar's footer: managing the app around the chats. */
-export const SIDEBAR_FOOTER_ITEMS: DesktopIconStripItem[] = [
+	{ action: SidebarAction.SEARCH, icon: Search, keys: SHORTCUT_SEARCH, tooltip: 'Search' },
 	{
 		action: SidebarAction.MANAGE_MODELS,
 		activeRouteId: ROUTES.MODELS,
diff --git a/ui/apps/chat/src/lib/enums/sheet.enums.ts b/ui/apps/chat/src/lib/enums/sheet.enums.ts
index 0077edee1..49468019b 100644
--- a/ui/apps/chat/src/lib/enums/sheet.enums.ts
+++ b/ui/apps/chat/src/lib/enums/sheet.enums.ts
@@ -13,6 +13,7 @@ export enum ModelsSheetPage {

 /** Pages of the phone's settings sheet. */
 export enum SettingsSheetPage {
+	ADVANCED = 'advanced',
 	MCP_SERVERS = 'mcp-servers',
 	ROOT = 'root',
 	SECTION = 'section',
diff --git a/ui/apps/chat/src/lib/hooks/use-settings-field-defaults.svelte.ts b/ui/apps/chat/src/lib/hooks/use-settings-field-defaults.svelte.ts
index 50a76ba7a..e1149afdd 100644
--- a/ui/apps/chat/src/lib/hooks/use-settings-field-defaults.svelte.ts
+++ b/ui/apps/chat/src/lib/hooks/use-settings-field-defaults.svelte.ts
@@ -1,4 +1,4 @@
-import { SETTINGS_KEYS } from '#lib/constants/index.ts';
+import { SETTING_CONFIG_INFO } from '#lib/constants/index.ts';
 import { SettingsFieldType } from '#lib/enums/settings.enums.ts';
 import { modelsStore, serverStore } from '#lib/stores/index.ts';
 import { normalizeFloatingPoint } from '#lib/utils/precision.ts';
@@ -23,10 +23,12 @@ export function useSettingsFieldDefaults(getConfig: () => SettingsConfigType) {

 		return (serverStore.defaultParams ?? {}) as Record<string, unknown>;
 	});
-	// discover needs the hub metadata reads, and opens from the Models page, so both are read-only while it is on
-	const discoverOn = $derived(Boolean(getConfig()[SETTINGS_KEYS.ENABLE_DISCOVER_MODELS]));

 	return {
+		/** The line under a field's label. */
+		helpOf(field: Pick<SettingsFieldConfig, 'key' | 'help'>): string | undefined {
+			return field.help || SETTING_CONFIG_INFO[field.key] || undefined;
+		},
 		/** A value set apart from the server's default for the loaded model. */
 		isCustom(field: Pick<SettingsFieldConfig, 'key' | 'type'>): boolean {
 			const serverDefault = serverDefaults[field.key];
@@ -43,11 +45,9 @@ export function useSettingsFieldDefaults(getConfig: () => SettingsConfigType) {
 				normalizeFloatingPoint(serverDefault)
 			);
 		},
-		isLocked(key: string): boolean {
-			return (
-				discoverOn &&
-				(key === SETTINGS_KEYS.USE_HUGGING_FACE_HUB || key === SETTINGS_KEYS.SHOW_MODELS_MANAGER)
-			);
+		/** Read-only while the setting that overrides it is on, e.g. tags under raw model names. */
+		isLocked(field: Pick<SettingsFieldConfig, 'key' | 'lockedBy'>): boolean {
+			return Boolean(field.lockedBy && getConfig()[field.lockedBy]);
 		},
 		get serverDefaults() {
 			return serverDefaults;
diff --git a/ui/apps/chat/src/lib/stores/agentic-mode.svelte.ts b/ui/apps/chat/src/lib/stores/agentic-mode.svelte.ts
index 0b5d91652..93cc0e55b 100644
--- a/ui/apps/chat/src/lib/stores/agentic-mode.svelte.ts
+++ b/ui/apps/chat/src/lib/stores/agentic-mode.svelte.ts
@@ -5,8 +5,9 @@
  * asks for them: with its built-in tools or its proxy, which `--agent` turns
  * on together, or with `--ui-agent`, which offers neither and leaves the
  * tools that run in the browser and the MCP servers the browser reaches
- * itself. Without them Llama Chat is a plain chat: a message and its reply,
- * with no tools, no MCP and no agentic loop.
+ * itself. Without them Llama Chat is a plain chat: no tools of llama-server's
+ * and no agent settings, but still the tools that run in the browser, and the
+ * MCP servers' while Enable MCP is on (see toolsStore.isAvailable).
  *
  * The server says so in two places: `/props` reports the proxy and
  * `--ui-agent`, and `/tools` lists the built-in tools, which the tools store
diff --git a/ui/apps/chat/src/lib/stores/chat/index.svelte.ts b/ui/apps/chat/src/lib/stores/chat/index.svelte.ts
index 9cbf91372..30a266587 100644
--- a/ui/apps/chat/src/lib/stores/chat/index.svelte.ts
+++ b/ui/apps/chat/src/lib/stores/chat/index.svelte.ts
@@ -27,7 +27,6 @@ import { ChatService } from '#lib/services/chat.service.ts';
 import { DatabaseService } from '#lib/services/database.service.ts';
 import { agenticStore } from '#lib/stores/agentic/index.svelte.ts';
 // direct imports between stores, not via the barrel, to avoid circular deps
-import { agenticMode } from '#lib/stores/agentic-mode.svelte.ts';
 import { chatActivityStore } from '#lib/stores/chat/activity.svelte.ts';
 import { type ChatFlowsHost, ChatMessageFlows } from '#lib/stores/chat/flows.svelte.ts';
 import { chatProcessingStore } from '#lib/stores/chat/processing.svelte.ts';
@@ -1297,8 +1296,8 @@ class ChatStore implements ChatStreamHost, ChatFlowsHost {
 		};
 		const toolPolicy = this.toolPolicy();

-		// a plain chat sends the classic request below
-		if (agenticMode.enabled) {
+		// a chat without tools sends the classic request below
+		if (toolsStore.isAvailable) {
 			const agenticResult = await agenticStore.runAgenticFlow({
 				callbacks: streamCallbacks,
 				conversationId: convId,
diff --git a/ui/apps/chat/src/lib/stores/llama-server.svelte.ts b/ui/apps/chat/src/lib/stores/llama-server.svelte.ts
index 84968528f..56096fd9a 100644
--- a/ui/apps/chat/src/lib/stores/llama-server.svelte.ts
+++ b/ui/apps/chat/src/lib/stores/llama-server.svelte.ts
@@ -13,6 +13,8 @@ import { ApiError } from '#lib/utils/index.ts';
 const LOADING_RETRY_INTERVAL_MS = 1000;

 class ServerStore {
+	/** Whether llama-server turns away a request without an API key (`--api-key`); null until checked. */
+	asksForApiKey = $state<boolean | null>(null);
 	error = $state<string | null>(null);
 	loading = $state(false);
 	props = $state<ApiLlamaCppServerProps | null>(null);
diff --git a/ui/apps/chat/src/lib/stores/mcp/index.svelte.ts b/ui/apps/chat/src/lib/stores/mcp/index.svelte.ts
index 5af682bd5..edb580cf4 100644
--- a/ui/apps/chat/src/lib/stores/mcp/index.svelte.ts
+++ b/ui/apps/chat/src/lib/stores/mcp/index.svelte.ts
@@ -10,7 +10,7 @@
  */

 import type { ListChangedHandlers } from '@modelcontextprotocol/sdk/types.js';
-import { SETTINGS_KEYS } from '#lib/constants/index.ts';
+import { AGENTIC_ENABLED, SETTINGS_KEYS } from '#lib/constants/index.ts';
 import {
 	CACHE,
 	DEFAULT_MCP_CONFIG,
@@ -19,7 +19,6 @@ import {
 } from '#lib/constants/index.ts';
 import { ColorMode, HealthCheckStatus, MCPConnectionPhase, MCPRefType } from '#lib/enums/index.ts';
 import { MCPService } from '#lib/services/mcp.service.ts';
-import { agenticMode } from '#lib/stores/agentic-mode.svelte.ts';
 import { serverStore } from '#lib/stores/llama-server.svelte.ts';
 // direct imports between stores, not via the barrel, to avoid circular deps
 import { MCPHealthCheckManager, type McpHealthHost } from '#lib/stores/mcp/health.svelte.ts';
@@ -742,8 +741,8 @@ class MCPStore implements McpHealthHost {
 	}

 	getServers(): MCPServerSettingsEntry[] {
-		// a plain chat keeps the saved servers and connects to none
-		if (!agenticMode.enabled) return [];
+		// a chat-only build keeps the saved servers and connects to none
+		if (!AGENTIC_ENABLED) return [];

 		const raw = settingsStore.config.mcpServers;

diff --git a/ui/apps/chat/src/lib/stores/settings/index.svelte.ts b/ui/apps/chat/src/lib/stores/settings/index.svelte.ts
index aaf5cad57..bb2d0e526 100644
--- a/ui/apps/chat/src/lib/stores/settings/index.svelte.ts
+++ b/ui/apps/chat/src/lib/stores/settings/index.svelte.ts
@@ -209,8 +209,6 @@ class SettingsStore {
 		// Restore user overrides (derived state — may be stale if server defaults differ)
 		this.userOverrides = new Set(data.userOverrides ?? []);

-		this.enforceDiscoverCoupling();
-
 		// Persist to localStorage
 		this.saveConfig();

@@ -230,7 +228,6 @@ class SettingsStore {
 		try {
 			this.loadConfig();
 			this.migrateLegacyTheme();
-			this.enforceDiscoverCoupling();
 			// Apply the persisted theme from config on initial load
 			setMode(this.config[SETTINGS_KEYS.THEME] as ColorMode);
 			this.isInitialized = true;
@@ -254,7 +251,6 @@ class SettingsStore {
 	resetConfig() {
 		this.config = { ...SETTING_CONFIG_DEFAULT };

-		this.enforceDiscoverCoupling();
 		this.saveConfig();
 	}

@@ -421,23 +417,6 @@ class SettingsStore {
 		setMode(newTheme as ColorMode);
 	}

-	/**
-	 * Discover needs the hub metadata reads and opens from the Models page, so a
-	 * checked Discover Models keeps the hub setting and Models on; call wherever
-	 * stored or reset state may disagree.
-	 */
-	private enforceDiscoverCoupling(): void {
-		if (
-			this.config[SETTINGS_KEYS.ENABLE_DISCOVER_MODELS] &&
-			(!this.config[SETTINGS_KEYS.USE_HUGGING_FACE_HUB] ||
-				!this.config[SETTINGS_KEYS.SHOW_MODELS_MANAGER])
-		) {
-			setConfigValue(this.config, SETTINGS_KEYS.USE_HUGGING_FACE_HUB, true);
-			setConfigValue(this.config, SETTINGS_KEYS.SHOW_MODELS_MANAGER, true);
-			this.saveConfig();
-		}
-	}
-
 	/**
 	 * Values applied by "Reset to Default": admin ui_settings first, then server
 	 * defaults from /props for sampling params, then the factory defaults
diff --git a/ui/apps/chat/src/lib/stores/tools.svelte.ts b/ui/apps/chat/src/lib/stores/tools.svelte.ts
index 87ebfc836..6d528cb62 100644
--- a/ui/apps/chat/src/lib/stores/tools.svelte.ts
+++ b/ui/apps/chat/src/lib/stores/tools.svelte.ts
@@ -59,10 +59,14 @@ class ToolsStore {
 		return this.allTools.map((t) => t.definition);
 	}

-	/** Canonical flat list of tool entries with source metadata and stable keys, deduped by key */
+	/**
+	 * Canonical flat list of tool entries with source metadata and stable keys, deduped by key. A
+	 * plain chat gets the browser's tools and the MCP servers'.
+	 */
 	get allTools(): ToolEntry[] {
-		if (!agenticMode.enabled) return [];
+		if (!this.isAvailable) return [];

+		const agentic = agenticMode.enabled;
 		const entries: ToolEntry[] = [];
 		const seen = new SvelteSet<string>();
 		const push = (entry: ToolEntry) => {
@@ -72,7 +76,7 @@ class ToolsStore {
 			entries.push(entry);
 		};

-		for (const def of this._serverTools) {
+		for (const def of agentic ? this._serverTools : []) {
 			const name = def.function.name;

 			push({
@@ -104,7 +108,7 @@ class ToolsStore {
 			});
 		}

-		for (const def of this.customTools) {
+		for (const def of agentic ? this.customTools : []) {
 			const name = def.function.name;

 			push({
@@ -172,6 +176,14 @@ class ToolsStore {
 		return this._error;
 	}

+	/**
+	 * Whether chats get tools: in a build with the agentic features every chat has the tools that
+	 * run in the browser, a plain one too, and the MCP servers' while Enable MCP is on.
+	 */
+	get isAvailable(): boolean {
+		return AGENTIC_ENABLED;
+	}
+
 	get isToolsEndpointUnreachable(): boolean {
 		return this._toolsEndpointUnreachable;
 	}
@@ -563,6 +575,9 @@ class ToolsStore {
 		serverName: string;
 		definition: OpenAIToolDefinition;
 	}[] {
+		// with Enable MCP off, no server's tools count, not even those a health check listed
+		if (!mcpStore.isFeatureEnabled) return [];
+
 		const out: { serverId: string; serverName: string; definition: OpenAIToolDefinition }[] = [];
 		const connections = mcpStore.getConnections();

diff --git a/ui/apps/chat/src/lib/stores/ui.svelte.ts b/ui/apps/chat/src/lib/stores/ui.svelte.ts
index 6e92d856b..ff7076227 100644
--- a/ui/apps/chat/src/lib/stores/ui.svelte.ts
+++ b/ui/apps/chat/src/lib/stores/ui.svelte.ts
@@ -130,9 +130,16 @@ class UiStore {

 	#isSidebarExpanded = $state(this.loadSidebarExpanded());

-	/** Whether Discover is turned on; every Discover entry point hides without it. */
+	/**
+	 * Whether Discover is available: the Hugging Face Hub API finds the models on the Hub, and the
+	 * models manager is where they are downloaded and loaded. Every Discover entry point hides
+	 * without both.
+	 */
 	get isDiscoverEnabled(): boolean {
-		return Boolean(settingsStore.getConfig(SETTINGS_KEYS.ENABLE_DISCOVER_MODELS));
+		return (
+			Boolean(settingsStore.getConfig(SETTINGS_KEYS.USE_HUGGING_FACE_HUB)) &&
+			this.isModelsManagerShown
+		);
 	}

 	/** Whether the model details drawer is open. */
diff --git a/ui/apps/chat/src/lib/types/chat.d.ts b/ui/apps/chat/src/lib/types/chat.d.ts
index a4d0f3520..2975e6d48 100644
--- a/ui/apps/chat/src/lib/types/chat.d.ts
+++ b/ui/apps/chat/src/lib/types/chat.d.ts
@@ -378,6 +378,8 @@ export interface ChatFormActionsContext {
 	/** Adds files picked outside the form's own file input, such as the camera or photo library. */
 	onFilesSelect?: (files: File[]) => void;
 	onSystemPromptClick?: () => void;
+	/** Opens the tools panel under the chat form. */
+	onToolsClick?: () => void;
 	/** Opens the working directory picker; set where the + menu offers it. */
 	onWorkingDirectoryClick?: () => void;
 	/** The working directory's name in the + menu, or what sets one. */
diff --git a/ui/apps/chat/src/lib/types/index.ts b/ui/apps/chat/src/lib/types/index.ts
index 3c416a960..9a4104d22 100644
--- a/ui/apps/chat/src/lib/types/index.ts
+++ b/ui/apps/chat/src/lib/types/index.ts
@@ -141,7 +141,8 @@ export type {
 	SettingsEntry,
 	SettingsSectionTitle,
 	SettingsSectionEntry,
-	SettingsSection
+	SettingsSection,
+	SettingsTarget
 } from './settings';

 // Common types
diff --git a/ui/apps/chat/src/lib/types/settings.d.ts b/ui/apps/chat/src/lib/types/settings.d.ts
index 2295f63bb..4e1e54dba 100644
--- a/ui/apps/chat/src/lib/types/settings.d.ts
+++ b/ui/apps/chat/src/lib/types/settings.d.ts
@@ -24,6 +24,8 @@ export interface SettingsEntry {
 	key: string;
 	label: string;
 	help: string;
+	/** The longer explanation, in a tooltip beside the title, so `help` can stay one short line. */
+	details?: string;
 	defaultValue: SettingsConfigValue;
 	/** Where the setting applies, and so where it is listed; every device when not set. */
 	platform?: SettingsPlatform;
@@ -37,10 +39,14 @@ export interface SettingsEntry {
 	isPrivate?: boolean;
 	/** When false, the setting is stored/synced but has no standalone field; it is rendered by a sibling control or a dedicated page. */
 	standaloneField?: boolean;
+	/** Shown without Advanced settings: one of the few a person changes. */
+	isEssential?: boolean;
 	placeholder?: string;
 	min?: number;
 	max?: number;
 	dependsOn?: string;
+	/** Another checkbox setting that, while on, makes this one read-only: it has no effect then. */
+	lockedBy?: string;
 	sync?: {
 		serverKey: string;
 		paramType: SyncableParameterType;
@@ -60,19 +66,30 @@ export interface SettingsFieldConfig {
 	label: string;
 	type: SettingsFieldType;
 	isExperimental?: boolean;
+	isEssential?: boolean;
 	isPositiveInteger?: boolean;
 	isPrivate?: boolean;
 	placeholder?: string;
 	min?: number;
 	max?: number;
 	dependsOn?: string;
+	/** Read-only while this other checkbox setting is on. */
+	lockedBy?: string;
 	platform?: SettingsPlatform;
 	help?: string;
+	/** The longer explanation, in a tooltip beside the title. */
+	details?: string;
 	options?: Array<{ value: string; label: string; icon?: typeof Icon }>;
 	/** Options rendered for RADIO fields. Each entry maps a `value` (the radio's selected value) to the underlying config `key` whose boolean state mirrors it. */
 	radioOptions?: Array<{ value: string; label: string; key: string; isExperimental?: boolean }>;
 }

+/** Where to open the settings: a section, and the setting in it to bring into view. */
+export interface SettingsTarget {
+	key?: string;
+	slug: string;
+}
+
 /** Re-exported for backward compatibility. */
 export interface SettingsSection {
 	fields?: SettingsFieldConfig[];
diff --git a/ui/apps/chat/src/lib/utils/api-key-validation.ts b/ui/apps/chat/src/lib/utils/api-key-validation.ts
index f86e64c18..5a2b775f1 100644
--- a/ui/apps/chat/src/lib/utils/api-key-validation.ts
+++ b/ui/apps/chat/src/lib/utils/api-key-validation.ts
@@ -2,9 +2,12 @@ import { serverUrl } from './server-config';
 import { error } from '@sveltejs/kit';
 import { HEADERS } from '#lib/constants/index.ts';
 import { MimeTypeApplication } from '#lib/enums/index.ts';
+import { serverStore } from '#lib/stores/llama-server.svelte.ts';
 import { settingsStore } from '#lib/stores/settings/index.svelte.ts';
 import { browser } from '$app/env';

+const HTTP_UNAUTHORIZED_STATUSES: readonly number[] = [401, 403];
+
 /**
  * Validates API key by making a request to the server props endpoint
  * Throws SvelteKit errors for authentication failures or server issues
@@ -31,7 +34,9 @@ export async function validateApiKey(fetch: typeof globalThis.fetch): Promise<vo
 		const response = await fetch(serverUrl('/props'), { headers });

 		if (!response.ok) {
-			if (response.status === 401 || response.status === 403) {
+			if (HTTP_UNAUTHORIZED_STATUSES.includes(response.status)) {
+				serverStore.asksForApiKey = true;
+
 				throw error(401, 'Access denied');
 			}

@@ -39,6 +44,17 @@ export async function validateApiKey(fetch: typeof globalThis.fetch): Promise<vo

 			return;
 		}
+
+		if (!apiKey) {
+			serverStore.asksForApiKey = false;
+		} else if (serverStore.asksForApiKey === null) {
+			// the stored key got in; whether the server needs one at all takes a request without it, once
+			const open = await fetch(serverUrl('/props'), {
+				headers: { [HEADERS.CONTENT_TYPE]: MimeTypeApplication.JSON }
+			});
+
+			serverStore.asksForApiKey = HTTP_UNAUTHORIZED_STATUSES.includes(open.status);
+		}
 	} catch (err) {
 		// If it's already a SvelteKit error, re-throw it
 		if (err && typeof err === 'object' && 'status' in err) {
diff --git a/ui/apps/chat/src/lib/utils/convert-files-to-extra.ts b/ui/apps/chat/src/lib/utils/convert-files-to-extra.ts
index 0faeb8170..1741cc44d 100644
--- a/ui/apps/chat/src/lib/utils/convert-files-to-extra.ts
+++ b/ui/apps/chat/src/lib/utils/convert-files-to-extra.ts
@@ -3,7 +3,6 @@ import { convertPDFToImage, convertPDFToText } from './pdf-processing';
 import { isSvgMimeType, svgBase64UrlToPngDataURL } from './svg-to-png';
 import { isLikelyTextFile, readFileAsText } from './text-files';
 import { isWebpMimeType, webpBase64UrlToPngDataURL } from './webp-to-png';
-import { SETTINGS_KEYS } from '#lib/constants/index.ts';
 import { AttachmentType, FileTypeCategory, SpecialFileType } from '#lib/enums/index.ts';
 import { modelsStore } from '#lib/stores/models/index.svelte.ts';
 import { settingsStore } from '#lib/stores/settings/index.svelte.ts';
@@ -128,27 +127,8 @@ export async function parseFilesToMessageExtras(
 				const hasVisionSupport = activeModelId
 					? modelsStore.props.modelSupportsVision(activeModelId)
 					: false;
-
-				// Force PDF-to-text for non-vision models
-				let shouldProcessAsImages = Boolean(currentConfig.pdfAsImage) && hasVisionSupport;
-
-				// If user had pdfAsImage enabled but model doesn't support vision, update setting and notify
-				if (currentConfig.pdfAsImage && !hasVisionSupport) {
-					console.log('Non-vision model detected: forcing PDF-to-text mode and updating settings');
-
-					// Update the setting in localStorage
-					settingsStore.updateConfig(SETTINGS_KEYS.PDF_AS_IMAGE, false);
-
-					// Show toast notification to user
-					toast.warning(
-						'PDF setting changed: Non-vision model detected, PDFs will be processed as text instead of images.',
-						{
-							duration: 5000
-						}
-					);
-
-					shouldProcessAsImages = false;
-				}
+				// a model without vision gets the text instead, and the setting stays as it is
+				const shouldProcessAsImages = Boolean(currentConfig.pdfAsImage) && hasVisionSupport;

 				if (shouldProcessAsImages) {
 					// Process PDF as images (only for vision models)
diff --git a/ui/apps/chat/src/lib/utils/index.ts b/ui/apps/chat/src/lib/utils/index.ts
index 68b48a588..1d115bc1b 100644
--- a/ui/apps/chat/src/lib/utils/index.ts
+++ b/ui/apps/chat/src/lib/utils/index.ts
@@ -65,6 +65,9 @@ export {
 	isSettingShownOn
 } from './config-helpers';

+// Settings search
+export { revealSetting, searchSettingsSections, SETTING_ROW_ATTRIBUTE } from './settings-search';
+
 // CORS Proxy
 export { buildProxiedIconUrl, buildProxiedUrl, buildProxiedHeaders } from './cors-proxy';

diff --git a/ui/apps/chat/src/lib/utils/settings-search.ts b/ui/apps/chat/src/lib/utils/settings-search.ts
new file mode 100644
index 000000000..6f9690156
--- /dev/null
+++ b/ui/apps/chat/src/lib/utils/settings-search.ts
@@ -0,0 +1,76 @@
+import { isSettingShownOn } from './config-helpers';
+import type { SettingsAdvancedSection } from '#lib/constants/index.ts';
+
+/** The words a setting must all have to match, lowercased. */
+function queryWords(query: string): string[] {
+	return query.toLowerCase().split(/\s+/).filter(Boolean);
+}
+
+function hasEveryWord(words: string[], texts: (string | undefined)[]): boolean {
+	const haystack = texts.filter(Boolean).join(' ').toLowerCase();
+
+	return words.every((word) => haystack.includes(word));
+}
+
+/**
+ * The sections, groups and settings a query finds, in the order given, or none for an empty query.
+ * A setting matches on its label, its help, its group's title and its section's title, so "voice"
+ * finds every voice setting; a section that draws its own page matches on its title. A setting
+ * for another kind of device is left out.
+ */
+export function searchSettingsSections(
+	sections: SettingsAdvancedSection[],
+	query: string,
+	isMobile: boolean
+): SettingsAdvancedSection[] {
+	const words = queryWords(query);
+
+	if (words.length === 0) return [];
+
+	return sections.flatMap((section): SettingsAdvancedSection[] => {
+		if (section.hasOwnPage) {
+			return hasEveryWord(words, [section.title]) ? [{ ...section, fields: [], groups: [] }] : [];
+		}
+
+		const groups = section.groups
+			.map((group) => ({
+				...group,
+				fields: group.fields.filter(
+					(field) =>
+						isSettingShownOn(field, isMobile) &&
+						hasEveryWord(words, [section.title, group.title, field.label, field.help])
+				)
+			}))
+			.filter((group) => group.fields.length > 0);
+
+		return groups.length > 0
+			? [{ ...section, fields: groups.flatMap((group) => group.fields), groups }]
+			: [];
+	});
+}
+
+/** How long a revealed setting's label stays tinted, fading back to its own colour. */
+const SETTING_REVEAL_TINT_MS = 1600;
+
+/** Marks a phone sheet's row with the setting it holds, the controls there having no ids. */
+export const SETTING_ROW_ATTRIBUTE = 'data-setting';
+
+/**
+ * Brings a setting into view where it is drawn: scrolls it to the middle and tints its label for a
+ * moment, so the eye finds it after a jump. The dialog also gives its control the focus; the phone
+ * sheet doesn't, or the keyboard would cover it.
+ */
+export function revealSetting(key: string, focus = true): void {
+	const escaped = CSS.escape(key);
+	const control = document.getElementById(key);
+	const row = document.querySelector<HTMLElement>(`[${SETTING_ROW_ATTRIBUTE}="${escaped}"]`);
+
+	(control ?? row)?.scrollIntoView({ block: 'center' });
+
+	if (focus) control?.focus({ preventScroll: true });
+
+	(document.querySelector(`label[for="${escaped}"]`) ?? row)?.animate(
+		[{ color: 'var(--action-primary)' }, {}],
+		{ duration: SETTING_REVEAL_TINT_MS, easing: 'ease-out' }
+	);
+}
diff --git a/ui/apps/chat/src/routes/models/+page.svelte b/ui/apps/chat/src/routes/models/+page.svelte
index cfdc62b0a..d8d9be0d9 100644
--- a/ui/apps/chat/src/routes/models/+page.svelte
+++ b/ui/apps/chat/src/routes/models/+page.svelte
@@ -1,8 +1,7 @@
 <script lang="ts">
-	import { Button } from '@ggml-org/llama-ui/ui/button';
 	import ModelsManager from '#lib/components/app/models/ModelsManager/ModelsManager.svelte';
-	import { APP_NAME, DISCOVER_ICON } from '#lib/constants/index.ts';
-	import { modelsStore, uiStore } from '#lib/stores/index.ts';
+	import { APP_NAME } from '#lib/constants/index.ts';
+	import { modelsStore } from '#lib/stores/index.ts';
 	import { onMount } from 'svelte';

 	// a direct load lands here before any chat has listed the models, and the root
@@ -34,19 +33,6 @@
 				Load, configure and remove the models this server can run.
 			</p>
 		</div>
-
-		{#if uiStore.isDiscoverEnabled}
-			<Button
-				class="ml-auto shrink-0 gap-1.5"
-				onclick={() => uiStore.openModelsDiscover()}
-				size="sm"
-				variant="tertiary"
-			>
-				<DISCOVER_ICON class="size-icon-md" />
-
-				Discover Models
-			</Button>
-		{/if}
 	</div>

 	<ModelsManager class="min-h-0" />
diff --git a/ui/apps/chat/tests/client/apikey-splash.svelte.test.ts b/ui/apps/chat/tests/client/apikey-splash.svelte.test.ts
index 9881e4243..5d6d3b7ca 100644
--- a/ui/apps/chat/tests/client/apikey-splash.svelte.test.ts
+++ b/ui/apps/chat/tests/client/apikey-splash.svelte.test.ts
@@ -1,13 +1,19 @@
 import { CONFIG_LOCALSTORAGE_KEY } from '#lib/constants/index.ts';
+import { serverStore } from '#lib/stores/llama-server.svelte.ts';
 import { settingsStore } from '#lib/stores/settings/index.svelte.ts';
 import { validateApiKey } from '#lib/utils/api-key-validation.ts';
 import { beforeEach, describe, expect, it } from 'vitest';

-function fakeFetch(status: number, capture: { auth?: string | null } = {}) {
+/** Answers with `status`, or with `withoutKey` to a request that carries no key. */
+function fakeFetch(status: number, capture: { auth?: string | null } = {}, withoutKey = status) {
 	return (async (_url: RequestInfo | URL, init?: RequestInit) => {
-		capture.auth = (init?.headers as Record<string, string>)?.['Authorization'] ?? null;
+		const auth = (init?.headers as Record<string, string>)?.['Authorization'] ?? null;
+		const answer = auth ? status : withoutKey;

-		return new Response(status === 200 ? '{}' : 'Unauthorized', { status });
+		// the first request is the one the stored key goes out with
+		if (!('auth' in capture)) capture.auth = auth;
+
+		return new Response(answer === 200 ? '{}' : 'Unauthorized', { status: answer });
 	}) as typeof globalThis.fetch;
 }

@@ -18,10 +24,12 @@ describe('api key validation surfaces the splash', () => {
 	beforeEach(() => {
 		localStorage.removeItem(CONFIG_LOCALSTORAGE_KEY);
 		settingsStore.initialize();
+		serverStore.asksForApiKey = null;
 	});

 	it('keyed server, no stored key: throws 401 so the splash shows (onboarding)', async () => {
 		await expect(validateApiKey(fakeFetch(401))).rejects.toSatisfy(is401);
+		expect(serverStore.asksForApiKey).toBe(true);
 	});

 	it('keyed server, wrong stored key: throws 401 so the splash shows', async () => {
@@ -31,6 +39,7 @@ describe('api key validation surfaces the splash', () => {

 	it('open server, no stored key: passes silently', async () => {
 		await expect(validateApiKey(fakeFetch(200))).resolves.toBeUndefined();
+		expect(serverStore.asksForApiKey).toBe(false);
 	});

 	it('valid stored key: passes and sends the bearer header', async () => {
@@ -39,5 +48,13 @@ describe('api key validation surfaces the splash', () => {

 		await expect(validateApiKey(fakeFetch(200, capture))).resolves.toBeUndefined();
 		expect(capture.auth).toBe('Bearer sk-good');
+		expect(serverStore.asksForApiKey).toBe(false);
+	});
+
+	it('keyed server, valid stored key: tells the settings the server asks for one', async () => {
+		settingsStore.updateConfig('apiKey', 'sk-good');
+
+		await expect(validateApiKey(fakeFetch(200, {}, 401))).resolves.toBeUndefined();
+		expect(serverStore.asksForApiKey).toBe(true);
 	});
 });
diff --git a/ui/apps/chat/tests/client/chat-screen-form-single-row.svelte.test.ts b/ui/apps/chat/tests/client/chat-screen-form-single-row.svelte.test.ts
new file mode 100644
index 000000000..a066e4966
--- /dev/null
+++ b/ui/apps/chat/tests/client/chat-screen-form-single-row.svelte.test.ts
@@ -0,0 +1,22 @@
+// Guards the chat screen's form starting on a single row on desktop: there is no setting to turn
+// it off, and a longer message breaks it onto two rows (see chat-form-single-row).
+
+import ChatScreenFormTestWrapper from './components/ChatScreenFormTestWrapper.svelte';
+import { tick } from 'svelte';
+import { describe, expect, it } from 'vitest';
+import { page } from 'vitest/browser';
+import { render } from 'vitest-browser-svelte';
+
+describe('chat screen form', () => {
+	it('starts on a single row on desktop', async () => {
+		await page.viewport(1280, 900);
+
+		const { container } = render(ChatScreenFormTestWrapper);
+
+		await tick();
+
+		expect(
+			container.querySelector('[data-slot="input-area"]')!.hasAttribute('data-single-row')
+		).toBe(true);
+	});
+});
diff --git a/ui/apps/chat/tests/client/mcp-enable-setting.svelte.test.ts b/ui/apps/chat/tests/client/mcp-enable-setting.svelte.test.ts
index 4cea24b67..176620220 100644
--- a/ui/apps/chat/tests/client/mcp-enable-setting.svelte.test.ts
+++ b/ui/apps/chat/tests/client/mcp-enable-setting.svelte.test.ts
@@ -1,10 +1,19 @@
 // Enable MCP is a real switch: while it is off, an added and enabled server is not usable.

 import { SETTINGS_KEYS } from '#lib/constants/index.ts';
+import { HealthCheckStatus, ToolSource } from '#lib/enums/index.ts';
 import { conversationsStore } from '#lib/stores/conversations/index.svelte.ts';
 import { mcpStore } from '#lib/stores/mcp/index.svelte.ts';
 import { settingsStore } from '#lib/stores/settings/index.svelte.ts';
-import { beforeEach, describe, expect, it } from 'vitest';
+import { toolsStore } from '#lib/stores/tools.svelte.ts';
+import type { HealthCheckState } from '#lib/types/index.ts';
+import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
+
+const HEALTH_CHECKED_TOOL = 'lookup';
+const mcpToolNames = () =>
+	toolsStore.allTools
+		.filter((entry) => entry.source === ToolSource.MCP)
+		.map((entry) => entry.definition.function.name);

 describe('Enable MCP setting', () => {
 	beforeEach(() => {
@@ -13,6 +22,10 @@ describe('Enable MCP setting', () => {
 		mcpStore.addServer({ enabled: true, url: 'https://mcp.example.com/a' });
 	});

+	afterEach(() => {
+		vi.restoreAllMocks();
+	});
+
 	it('keeps an enabled server out of use while it is off', () => {
 		expect(mcpStore.isFeatureEnabled).toBe(false);
 		expect(mcpStore.hasEnabledServers()).toBe(false);
@@ -31,4 +44,17 @@ describe('Enable MCP setting', () => {
 	it('keeps the server in the list either way, to manage it', () => {
 		expect(mcpStore.getServers()).toHaveLength(1);
 	});
+
+	it("offers no server's tools while it is off, not even those a health check listed", () => {
+		vi.spyOn(mcpStore, 'getHealthCheckState').mockReturnValue({
+			status: HealthCheckStatus.SUCCESS,
+			tools: [{ name: HEALTH_CHECKED_TOOL }]
+		} as HealthCheckState);
+
+		expect(mcpToolNames()).toEqual([]);
+
+		settingsStore.updateConfig(SETTINGS_KEYS.ENABLE_MCP, true);
+
+		expect(mcpToolNames()).toEqual([HEALTH_CHECKED_TOOL]);
+	});
 });
diff --git a/ui/apps/chat/tests/client/models-selector-mobile.svelte.test.ts b/ui/apps/chat/tests/client/models-selector-mobile.svelte.test.ts
index c2fcce96a..bed6d5998 100644
--- a/ui/apps/chat/tests/client/models-selector-mobile.svelte.test.ts
+++ b/ui/apps/chat/tests/client/models-selector-mobile.svelte.test.ts
@@ -2,10 +2,12 @@
 // desktop menu's search and sections, opening on the models in reach when there are any.

 import ModelsSelector from '#lib/components/app/models/ModelsSelector/ModelsSelector.svelte';
+import { SETTING_CONFIG_DEFAULT, SETTINGS_KEYS } from '#lib/constants/index.ts';
 import { ServerRole } from '#lib/enums/index.ts';
 import { ModelsService } from '#lib/services/models.service.ts';
 import { serverStore } from '#lib/stores/llama-server.svelte.ts';
 import { modelsStore } from '#lib/stores/models/index.svelte.ts';
+import { settingsStore } from '#lib/stores/settings/index.svelte.ts';
 import type { ModelOption } from '#lib/types/models.js';
 import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
 import { page } from 'vitest/browser';
@@ -29,6 +31,8 @@ const other: ModelOption = {
 describe('model picker drawer on a phone', () => {
 	beforeEach(async () => {
 		serverStore.role = ServerRole.ROUTER;
+		// the two models differ only by their quantization, so its badge tells them apart
+		settingsStore.updateConfig(SETTINGS_KEYS.SHOW_MODEL_QUANTIZATION, true);
 		// the picker mounts a fetch of its own: serve it the same two models, so
 		// the list it rebuilds does not clear the seeded one mid-test
 		vi.spyOn(ModelsService, 'list').mockResolvedValue({
@@ -42,6 +46,10 @@ describe('model picker drawer on a phone', () => {
 	afterEach(async () => {
 		modelsStore.models = [];
 		modelsStore.recentModelIds = [];
+		settingsStore.updateConfig(
+			SETTINGS_KEYS.SHOW_MODEL_QUANTIZATION,
+			SETTING_CONFIG_DEFAULT[SETTINGS_KEYS.SHOW_MODEL_QUANTIZATION]
+		);
 		vi.restoreAllMocks();
 		await page.viewport(DESKTOP.width, DESKTOP.height);
 	});
diff --git a/ui/apps/chat/tests/client/nested-surfaces.svelte.test.ts b/ui/apps/chat/tests/client/nested-surfaces.svelte.test.ts
index 88d66f5d1..949c3dd59 100644
--- a/ui/apps/chat/tests/client/nested-surfaces.svelte.test.ts
+++ b/ui/apps/chat/tests/client/nested-surfaces.svelte.test.ts
@@ -1,93 +1,77 @@
-// The sidebar's footer is the third of four nested surfaces: the page, the sidebar on it, a
-// group inset in the sidebar and a row in the group. This holds the rule app.css states for
-// them, on what the browser actually renders: a row's corners are concentric with its
-// group's, so its radius is the group's less the padding between their edges.
+// The sidebar's action rows are the third of three nested surfaces: the page, the sidebar on it
+// and a row inset in the sidebar. This holds the rule app.css states for them, on what the browser
+// actually renders: a row's corners are concentric with the sidebar's, its radius being the
+// sidebar's less the padding between their edges - so the rows read as the panel turned under.
 import '../../src/app.css';
 import SidebarNavigationActions from '#lib/components/app/navigation/SidebarNavigation/SidebarNavigationActions.svelte';
-import SidebarNavigationFooter from '#lib/components/app/navigation/SidebarNavigation/SidebarNavigationFooter.svelte';
-import {
-	SETTINGS_KEYS,
-	SIDEBAR_ACTIONS_ITEMS,
-	SIDEBAR_FOOTER_ITEMS
-} from '#lib/constants/index.ts';
+import { SETTINGS_KEYS, SIDEBAR_ACTIONS_ITEMS } from '#lib/constants/index.ts';
 import { settingsStore } from '#lib/stores/index.ts';
 import { beforeEach, describe, expect, it, vi } from 'vitest';
 import { page } from 'vitest/browser';
 import { render } from 'vitest-browser-svelte';

+// the strip's px-2: the distance between a row's edge and the sidebar's, which the radius gives up
+const ROW_INSET_PX = 8;
+
 function px(value: string): number {
 	return parseFloat(value);
 }

-async function renderFooter() {
-	const screen = render(SidebarNavigationFooter, {});
-	const rows = () => [...screen.container.querySelectorAll<HTMLElement>('[data-slot="button"]')];
+/** The pixels the browser makes of a CSS length: a token, a rem, a calc() of either. */
+function resolvePx(value: string): number {
+	const probe = document.createElement('div');

-	await vi.waitFor(() => expect(rows()).toHaveLength(SIDEBAR_FOOTER_ITEMS.length));
+	probe.style.position = 'absolute';
+	probe.style.width = value;
+	document.body.append(probe);
+	const width = probe.getBoundingClientRect().width;

-	const group = rows()[0].parentElement?.parentElement;
+	probe.remove();

-	if (!group) throw new Error('footer group not rendered');
+	return width;
+}

-	return { group, rows: rows() };
+async function renderActions() {
+	const screen = render(SidebarNavigationActions, { class: 'px-2' });
+	const rows = () => [...screen.container.querySelectorAll<HTMLElement>('[data-slot="button"]')];
+
+	await vi.waitFor(() => expect(rows()).toHaveLength(SIDEBAR_ACTIONS_ITEMS.length));
+
+	return { rows: rows(), strip: screen.container.firstElementChild as HTMLElement };
 }

 describe('nested surfaces', () => {
-	// the footer is a desktop's and a tablet's: a phone lists its items with the sidebar's actions
 	beforeEach(async () => {
 		await page.viewport(1280, 900);

-		// Models and MCP wait behind their settings: show them, so every footer row is measured
+		// Models wait behind their setting: show them, so every action row is measured
 		settingsStore.updateConfig(SETTINGS_KEYS.SHOW_MODELS_MANAGER, true);
-		settingsStore.updateConfig(SETTINGS_KEYS.ENABLE_MCP, true);
 	});

-	it('round the footer group from its tokens', async () => {
-		const { group } = await renderFooter();
+	it('round the action rows from the sidebar radius their tokens state', async () => {
+		const { rows } = await renderActions();
 		const root = getComputedStyle(document.documentElement);
-		const style = getComputedStyle(group);
+		const sidebarRadius = resolvePx(root.getPropertyValue('--surface-sidebar-radius'));

-		// the tokens resolve, so the group is not left square or unpadded
-		expect(px(style.borderTopLeftRadius)).toBeGreaterThan(0);
-		expect(px(style.paddingTop)).toBeGreaterThan(0);
-		expect(root.getPropertyValue('--surface-group-radius').trim()).not.toBe('');
-		expect(root.getPropertyValue('--surface-group-padding').trim()).not.toBe('');
-	});
-
-	it('keep each footer row concentric with its group', async () => {
-		const { group, rows } = await renderFooter();
-		const style = getComputedStyle(group);
-		const expected = px(style.borderTopLeftRadius) - px(style.paddingTop);
+		// the tokens resolve, so a row is not left square
+		expect(sidebarRadius).toBeGreaterThan(0);
+		expect(root.getPropertyValue('--surface-row-radius').trim()).not.toBe('');

 		for (const row of rows) {
-			const radius = getComputedStyle(row).borderTopLeftRadius;
+			const radius = px(getComputedStyle(row).borderTopLeftRadius);

-			expect(px(radius), row.textContent ?? '').toBeCloseTo(expected, 1);
+			expect(radius, row.textContent ?? '').toBeCloseTo(sidebarRadius - ROW_INSET_PX, 1);
 		}
 	});

-	it('inset each footer row by the group padding the radius accounts for', async () => {
-		const { group, rows } = await renderFooter();
-		const style = getComputedStyle(group);
-		const box = group.getBoundingClientRect();
-		// the hairline border sits outside the padding the radius is reduced by
+	it('inset each action row by the padding its radius accounts for', async () => {
+		const { rows, strip } = await renderActions();
+		const style = getComputedStyle(strip);
+		const box = strip.getBoundingClientRect();
 		const inner = box.left + px(style.borderLeftWidth) + px(style.paddingLeft);

 		for (const row of rows) {
-			expect(row.getBoundingClientRect().left).toBeCloseTo(inner, 0);
-		}
-	});
-
-	it('round the top actions of the sidebar like the footer rows', async () => {
-		const { rows: footerRows } = await renderFooter();
-		const expected = getComputedStyle(footerRows[0]).borderTopLeftRadius;
-		const top = render(SidebarNavigationActions, { class: '' });
-		const rows = () => [...top.container.querySelectorAll<HTMLElement>('[data-slot="button"]')];
-
-		await vi.waitFor(() => expect(rows()).toHaveLength(SIDEBAR_ACTIONS_ITEMS.length));
-
-		for (const row of rows()) {
-			expect(getComputedStyle(row).borderTopLeftRadius, row.textContent ?? '').toBe(expected);
+			expect(row.getBoundingClientRect().left, row.textContent ?? '').toBeCloseTo(inner, 0);
 		}
 	});
 });
diff --git a/ui/apps/chat/tests/client/settings-model-org-name-key-migration.svelte.test.ts b/ui/apps/chat/tests/client/settings-model-org-name-key-migration.svelte.test.ts
index 47ff10e14..dc7b492e4 100644
--- a/ui/apps/chat/tests/client/settings-model-org-name-key-migration.svelte.test.ts
+++ b/ui/apps/chat/tests/client/settings-model-org-name-key-migration.svelte.test.ts
@@ -3,7 +3,11 @@
 // over, while a config that already set the new key keeps its own value. The
 // legacy key is removed so it does not stay orphaned in localStorage.

-import { CONFIG_LOCALSTORAGE_KEY } from '#lib/constants/index.ts';
+import {
+	CONFIG_LOCALSTORAGE_KEY,
+	SETTING_CONFIG_DEFAULT,
+	SETTINGS_KEYS
+} from '#lib/constants/index.ts';
 import { MigrationService } from '#lib/services/migration.service.ts';
 import { settingsStore } from '#lib/stores/settings/index.svelte.ts';
 import { beforeEach, describe, expect, it } from 'vitest';
@@ -54,6 +58,8 @@ describe('showModelOrgNameInTrigger rename', () => {

 	it('leaves the selector-wide key on its default when nothing is stored', async () => {
 		await seedConfig({});
-		expect(settingsStore.config.showModelOrgName).toBe(true);
+		expect(settingsStore.config.showModelOrgName).toBe(
+			SETTING_CONFIG_DEFAULT[SETTINGS_KEYS.SHOW_MODEL_ORG_NAME]
+		);
 	});
 });
diff --git a/ui/apps/chat/tests/client/settings-tools-policy.svelte.test.ts b/ui/apps/chat/tests/client/settings-tools-policy.svelte.test.ts
index 0962010ae..fc6e96ca2 100644
--- a/ui/apps/chat/tests/client/settings-tools-policy.svelte.test.ts
+++ b/ui/apps/chat/tests/client/settings-tools-policy.svelte.test.ts
@@ -50,9 +50,12 @@ describe('SettingsChatToolsTab', () => {
 		await trigger.click();
 		await tick();

-		const checkboxes = screen.container.querySelectorAll<HTMLElement>('[role="checkbox"]');
+		// the group has a switch, so the one checkbox is the tool's
+		const toolCheckbox = screen.container.querySelector<HTMLElement>('[role="checkbox"]');

-		await checkboxes[1].click();
+		if (!toolCheckbox) throw new Error('tool checkbox not found');
+
+		await toolCheckbox.click();
 		await tick();

 		expect(conversationsStore.activeConversation?.disabledTools).toEqual([TOOL_KEY]);
diff --git a/ui/apps/chat/tests/client/sidebar-actions.svelte.test.ts b/ui/apps/chat/tests/client/sidebar-actions.svelte.test.ts
new file mode 100644
index 000000000..4aba60111
--- /dev/null
+++ b/ui/apps/chat/tests/client/sidebar-actions.svelte.test.ts
@@ -0,0 +1,38 @@
+// The sidebar's actions are one list at its top: a new chat, a search, the models behind their
+// setting, and the settings - in that order, a chat first and the app around it last.
+import SidebarNavigationActions from '#lib/components/app/navigation/SidebarNavigation/SidebarNavigationActions.svelte';
+import { SETTINGS_KEYS } from '#lib/constants/index.ts';
+import { settingsStore } from '#lib/stores/index.ts';
+import { beforeEach, describe, expect, it, vi } from 'vitest';
+import { page } from 'vitest/browser';
+import { render } from 'vitest-browser-svelte';
+
+function labels(container: HTMLElement): string[] {
+	return [...container.querySelectorAll<HTMLElement>('[data-slot="button"]')].map(
+		(row) => row.querySelector('span.truncate')?.textContent?.trim() ?? ''
+	);
+}
+
+describe('sidebar actions', () => {
+	beforeEach(async () => {
+		await page.viewport(1280, 900);
+	});
+
+	it('list a chat, a search, the models and the settings, in that order', async () => {
+		settingsStore.updateConfig(SETTINGS_KEYS.SHOW_MODELS_MANAGER, true);
+
+		const screen = render(SidebarNavigationActions, { class: '' });
+
+		await vi.waitFor(() =>
+			expect(labels(screen.container)).toEqual(['New', 'Search', 'Models', 'Settings'])
+		);
+	});
+
+	it('drop the models with their setting', async () => {
+		settingsStore.updateConfig(SETTINGS_KEYS.SHOW_MODELS_MANAGER, false);
+
+		const screen = render(SidebarNavigationActions, { class: '' });
+
+		await vi.waitFor(() => expect(labels(screen.container)).toEqual(['New', 'Search', 'Settings']));
+	});
+});
diff --git a/ui/apps/chat/tests/stories/chat/messages/ChatMessageVoice.stories.svelte b/ui/apps/chat/tests/stories/chat/messages/ChatMessageVoice.stories.svelte
index 285a7ccbb..de577cb1d 100644
--- a/ui/apps/chat/tests/stories/chat/messages/ChatMessageVoice.stories.svelte
+++ b/ui/apps/chat/tests/stories/chat/messages/ChatMessageVoice.stories.svelte
@@ -4,7 +4,6 @@
 	import { VoiceTranscriptStatus } from '@ggml-org/llama-ui/voice';
 	import { defineMeta } from '@storybook/addon-svelte-csf';
 	import ChatMessage from '#lib/components/app/chat/ChatMessages/ChatMessage/ChatMessage.svelte';
-	import { SETTINGS_KEYS } from '#lib/constants/index.ts';
 	import { AttachmentType, MessageRole } from '#lib/enums/index.ts';
 	import { voiceTranscriptsStore } from '#lib/stores/index.ts';
 	import type { DatabaseMessageExtraAudioFile, SettingsConfigValue } from '#lib/types/index.ts';
@@ -89,31 +88,6 @@
 	<ChatMessage chatActions={noopChatActions} class={STORY_CLASS} {message} />
 </Story>

-<!-- with Collapse transcripts on: the transcript opens under the clip on hover, keyboard focus or a tap -->
-<Story
-	asChild
-	beforeEach={() =>
-		seedVoice({ transcript: TRANSCRIPT }, '', { [SETTINGS_KEYS.VOICE_COLLAPSE_TRANSCRIPTS]: true })}
-	name="VoiceMessageCollapsed"
-	play={async ({ canvasElement, userEvent }) => {
-		const reveal = await waitFor(() => {
-			const element = canvasElement.querySelector('[data-slot="voice-transcript-reveal"]');
-
-			if (!element) throw new Error('no voice message');
-
-			return element as HTMLElement;
-		});
-
-		await expect(reveal).not.toHaveAttribute('data-revealed');
-		await userEvent.hover(reveal);
-		await waitFor(() => expect(reveal).toHaveAttribute('data-revealed'));
-		// drawn word by word, see VoiceSpokenText
-		await expect(reveal).toHaveTextContent(TRANSCRIPT);
-	}}
->
-	<ChatMessage chatActions={noopChatActions} class={STORY_CLASS} {message} />
-</Story>
-
 <Story
 	asChild
 	beforeEach={() => seedVoice({ transcript: TRANSCRIPT }, 'Answer in two sentences.')}
diff --git a/ui/apps/chat/tests/stories/settings/SettingsSections.stories.svelte b/ui/apps/chat/tests/stories/settings/SettingsSections.stories.svelte
index de2d6b8f9..bf9d91322 100644
--- a/ui/apps/chat/tests/stories/settings/SettingsSections.stories.svelte
+++ b/ui/apps/chat/tests/stories/settings/SettingsSections.stories.svelte
@@ -21,7 +21,7 @@

 <Story args={{ initialSection: SETTINGS_SECTIONS.TOOLS.slug, open: true }} name="Tools" />

-<Story args={{ initialSection: SETTINGS_SECTIONS.AGENTIC.slug, open: true }} name="Agentic" />
+<Story args={{ initialSection: SETTINGS_SECTIONS.AGENTIC.slug, open: true }} name="Agent" />

 <Story
 	args={{ initialSection: SETTINGS_SECTIONS.IMPORT_EXPORT.slug, open: true }}
diff --git a/ui/apps/chat/tests/stories/settings/SettingsSheet.stories.svelte b/ui/apps/chat/tests/stories/settings/SettingsSheet.stories.svelte
index 1189a4220..b8d83bd92 100644
--- a/ui/apps/chat/tests/stories/settings/SettingsSheet.stories.svelte
+++ b/ui/apps/chat/tests/stories/settings/SettingsSheet.stories.svelte
@@ -3,13 +3,15 @@
 	import { SettingsSheet } from '#lib/components/app/settings/index.ts';
 	import {
 		SETTINGS_CHAT_SECTIONS,
+		SETTINGS_SEARCH_TEXT,
 		SETTINGS_SECTION_SLUGS,
 		SETTINGS_SHEET_TEXT
 	} from '#lib/constants/index.ts';
 	import { screen } from 'storybook/test';

-	// a phone's settings: a full-height sheet. Its first page has the theme tiles and a row per
-	// section; a row pushes that section's page, and every change applies as it is made
+	// a phone's settings: a full-height sheet. Its first page has the search, the essentials and a
+	// row for the data and for Advanced, whose page has a row per topic; a row pushes its page, and
+	// every change applies as it is made
 	const { Story } = defineMeta({
 		component: SettingsSheet,
 		globals: { viewport: { isRotated: false, value: 'mobile2' } },
@@ -22,10 +24,20 @@
 	const titleOf = (slug: string) =>
 		SETTINGS_CHAT_SECTIONS.find((section) => section.slug === slug)?.title ?? slug;

-	/** Opens a section's page from the first page, as a tap on its row does. */
-	function openSection(slug: string) {
-		return async ({ userEvent }: { userEvent: { click: (element: Element) => Promise<void> } }) => {
-			await userEvent.click(await screen.findByRole('button', { name: titleOf(slug) }));
+	type PlayContext = {
+		userEvent: {
+			click: (element: Element) => Promise<void>;
+			type: (element: Element, text: string) => Promise<void>;
+		};
+	};
+
+	/** Taps the rows named, one page after another, as a finger does. */
+	function openPages(...rows: string[]) {
+		return async ({ userEvent }: PlayContext) => {
+			for (const name of rows) {
+				await userEvent.click(await screen.findByRole('button', { name }));
+			}
+
 			await screen.findByRole('button', { name: 'Back' });
 		};
 	}
@@ -33,21 +45,37 @@

 <Story args={{ open: true }} name="First page" />

-<Story args={{ open: true }} name="General" play={openSection(SETTINGS_SECTION_SLUGS.GENERAL)} />
+<Story args={{ open: true }} name="Advanced" play={openPages(SETTINGS_SHEET_TEXT.ADVANCED)} />

-<Story args={{ open: true }} name="Voice" play={openSection(SETTINGS_SECTION_SLUGS.VOICE)} />
+<Story
+	args={{ open: true }}
+	name="Voice"
+	play={openPages(SETTINGS_SHEET_TEXT.ADVANCED, titleOf(SETTINGS_SECTION_SLUGS.VOICE))}
+/>

 <Story
 	args={{ open: true }}
 	name="Import and export"
-	play={openSection(SETTINGS_SECTION_SLUGS.IMPORT_EXPORT)}
+	play={openPages(titleOf(SETTINGS_SECTION_SLUGS.IMPORT_EXPORT))}
+/>
+
+<Story
+	args={{ open: true }}
+	name="Search"
+	play={async ({ userEvent }) => {
+		await userEvent.type(
+			await screen.findByPlaceholderText(SETTINGS_SEARCH_TEXT.PLACEHOLDER),
+			'temperature'
+		);
+		await screen.findByText('Temperature');
+	}}
 />

 <Story
 	args={{ open: true }}
 	name="Back to the first page"
 	play={async (context) => {
-		await openSection(SETTINGS_SECTION_SLUGS.GENERAL)(context);
+		await openPages(SETTINGS_SHEET_TEXT.ADVANCED)(context);
 		await context.userEvent.click(screen.getByRole('button', { name: 'Back' }));
 		await screen.findByText(SETTINGS_SHEET_TEXT.APPEARANCE);
 	}}
diff --git a/ui/apps/chat/tests/unit/chat-only-build.test.ts b/ui/apps/chat/tests/unit/chat-only-build.test.ts
index 5eb012e13..a58db9f4d 100644
--- a/ui/apps/chat/tests/unit/chat-only-build.test.ts
+++ b/ui/apps/chat/tests/unit/chat-only-build.test.ts
@@ -1,6 +1,8 @@
 // A chat-only build (VITE_PUBLIC_AGENTIC=false) offers no tools, no MCP and no
-// agentic settings, and a full build offers them only for a server that has
-// them. The flag is read when the constants load, so each case loads them fresh.
+// agentic settings. A full build gives every chat the browser's tools, and the
+// MCP servers' while Enable MCP is on; llama-server's own tools and the agent
+// settings come only from a server that offers them. The flag is read when the
+// constants load, so each case loads them fresh.

 // loaded once up front, so the first case's fresh load is not the cold one
 import '#lib/constants/index.ts';
@@ -37,6 +39,7 @@ describe('chat-only build', () => {
 		agenticMode.serverHasTools = true;

 		expect(agenticMode.enabled).toBe(false);
+		expect(toolsStore.isAvailable).toBe(false);
 		expect(toolsStore.allTools).toEqual([]);
 		expect(toolsStore.getEnabledToolsForLLM()).toEqual([]);
 	});
@@ -47,11 +50,12 @@ describe('agentic mode', () => {
 		vi.resetModules();

 		const { agenticMode } = await import('#lib/stores/agentic-mode.svelte.ts');
+		const { ToolSource } = await import('#lib/enums/index.ts');
 		const { serverStore } = await import('#lib/stores/llama-server.svelte.ts');
 		const { toolsStore } = await import('#lib/stores/tools.svelte.ts');

 		expect(agenticMode.enabled).toBe(false);
-		expect(toolsStore.allTools).toEqual([]);
+		expect(toolsStore.allTools.every((tool) => tool.source === ToolSource.BROWSER)).toBe(true);

 		agenticMode.serverHasTools = true;

@@ -64,6 +68,26 @@ describe('agentic mode', () => {
 		expect(agenticMode.enabled).toBe(true);
 	});

+	it("gives a plain chat the browser's tools, with Enable MCP on or off", async () => {
+		vi.resetModules();
+
+		const { agenticMode } = await import('#lib/stores/agentic-mode.svelte.ts');
+		const { SETTINGS_KEYS } = await import('#lib/constants/index.ts');
+		const { ToolSource } = await import('#lib/enums/index.ts');
+		const { settingsStore } = await import('#lib/stores/settings/index.svelte.ts');
+		const { toolsStore } = await import('#lib/stores/tools.svelte.ts');
+
+		for (const enableMcp of [true, false]) {
+			settingsStore.config[SETTINGS_KEYS.ENABLE_MCP] = enableMcp;
+
+			expect(agenticMode.enabled).toBe(false);
+			expect(toolsStore.isAvailable).toBe(true);
+			// no MCP server is saved: only the browser's tools
+			expect(toolsStore.allTools.length).toBeGreaterThan(0);
+			expect(toolsStore.allTools.every((tool) => tool.source === ToolSource.BROWSER)).toBe(true);
+		}
+	});
+
 	it('is on with the browser tools alone for a server started with --ui-agent', async () => {
 		vi.resetModules();

@@ -79,21 +103,37 @@ describe('agentic mode', () => {
 		expect(toolsStore.allTools.every((tool) => tool.source === ToolSource.BROWSER)).toBe(true);
 	});

-	it('leaves the Tools and Agentic settings, Enable MCP among them, out when it is off', async () => {
+	it('keeps the Agent settings for a server that runs agents, and Tools and Enable MCP for every chat', async () => {
 		const c = await loadConstants();
-		const slugs = (agentic: boolean) => c.settingsChatSections(agentic).map((s) => s.slug);
-		const keys = (agentic: boolean) =>
-			c.settingsChatSections(agentic).flatMap((s) => (s.fields ?? []).map((field) => field.key));
+		const slugs = (agent: boolean, tools: boolean) =>
+			c.settingsAdvancedSections(agent, tools).map((section) => section.slug);
+		const keys = (agent: boolean, tools: boolean) =>
+			c
+				.settingsAdvancedSections(agent, tools)
+				.flatMap((section) => (section.fields ?? []).map((field) => field.key));
 		const { AGENTIC, TOOLS } = c.SETTINGS_SECTION_SLUGS;

-		expect(slugs(true)).toEqual(expect.arrayContaining([TOOLS, AGENTIC]));
-		expect(slugs(false)).not.toContain(TOOLS);
-		expect(slugs(false)).not.toContain(AGENTIC);
-		expect(slugs(false).length).toBeGreaterThan(0);
+		expect(slugs(true, true)).toEqual(expect.arrayContaining([TOOLS, AGENTIC]));
+		// a plain chat: the browser's tools, and no agent to set up
+		expect(slugs(false, true)).toContain(TOOLS);
+		expect(slugs(false, true)).not.toContain(AGENTIC);
+		expect(keys(false, true)).not.toContain(c.SETTINGS_KEYS.AGENTIC_MAX_TURNS);
+		expect(keys(false, true)).not.toContain(c.SETTINGS_KEYS.MENTION_SEARCH_MAX_DEPTH);
+		expect(slugs(false, false)).not.toContain(TOOLS);

-		expect(keys(true)).toContain(c.SETTINGS_KEYS.ENABLE_MCP);
-		expect(keys(false)).not.toContain(c.SETTINGS_KEYS.ENABLE_MCP);
+		expect(c.SETTINGS_FEATURE_FIELDS.map((field) => field.key)).toContain(
+			c.SETTINGS_KEYS.ENABLE_MCP
+		);

 		expect(c.attachmentTooltipText(false)).not.toMatch(/tools|MCP/i);
+		expect(c.attachmentTooltipText(true, false)).not.toMatch(/MCP/i);
+	});
+
+	it('leaves the Tools and Agent settings out of a chat-only build', async () => {
+		const c = await loadConstants('false');
+		const slugs = c.settingsAdvancedSections(true, true).map((section) => section.slug);
+
+		expect(slugs).not.toContain(c.SETTINGS_SECTION_SLUGS.TOOLS);
+		expect(slugs).not.toContain(c.SETTINGS_SECTION_SLUGS.AGENTIC);
 	});
 });
diff --git a/ui/apps/chat/tests/unit/voice-mode.test.ts b/ui/apps/chat/tests/unit/voice-mode.test.ts
index 8b0e0b6be..c5baa245b 100644
--- a/ui/apps/chat/tests/unit/voice-mode.test.ts
+++ b/ui/apps/chat/tests/unit/voice-mode.test.ts
@@ -154,7 +154,6 @@ describe('voice settings', () => {
 	it('default to automatic voice input and transcription model', () => {
 		expect(SETTING_CONFIG_DEFAULT[SETTINGS_KEYS.VOICE_INPUT_MODE]).toBe(VoiceInputMode.AUTO);
 		expect(SETTING_CONFIG_DEFAULT[SETTINGS_KEYS.VOICE_TRANSCRIBE_MESSAGES]).toBe(true);
-		expect(SETTING_CONFIG_DEFAULT[SETTINGS_KEYS.VOICE_COLLAPSE_TRANSCRIPTS]).toBe(false);
 		expect(SETTING_CONFIG_DEFAULT[SETTINGS_KEYS.VOICE_BOOST]).toBe(true);
 		expect(SETTING_CONFIG_DEFAULT[SETTINGS_KEYS.VOICE_NOISE_SUPPRESSION]).toBe(false);
 		expect(SETTING_CONFIG_DEFAULT[SETTINGS_KEYS.VOICE_ECHO_CANCELLATION]).toBe(false);
@@ -171,7 +170,6 @@ describe('voice settings', () => {
 		expect(keys).toEqual([
 			SETTINGS_KEYS.VOICE_INPUT_MODE,
 			SETTINGS_KEYS.VOICE_TRANSCRIBE_MESSAGES,
-			SETTINGS_KEYS.VOICE_COLLAPSE_TRANSCRIPTS,
 			SETTINGS_KEYS.VOICE_BOOST,
 			SETTINGS_KEYS.VOICE_NOISE_SUPPRESSION,
 			SETTINGS_KEYS.VOICE_ECHO_CANCELLATION,
diff --git a/ui/lib/ui/src/lib/components/app/sheets/SheetHeader.svelte b/ui/lib/ui/src/lib/components/app/sheets/SheetHeader.svelte
index 3f8975101..fce72fdee 100644
--- a/ui/lib/ui/src/lib/components/app/sheets/SheetHeader.svelte
+++ b/ui/lib/ui/src/lib/components/app/sheets/SheetHeader.svelte
@@ -8,6 +8,7 @@
 	import * as Drawer from '../../ui/drawer';
 	import { cn } from '../../ui/utils';
 	import { ICON_CLASS_DEFAULT, SHEET_TEXT } from '../../../constants';
+	import { sheetPageFadeIn, sheetPageFadeOut } from './sheet-pages.svelte';

 	interface Props {
 		backLabel?: string;
@@ -30,6 +31,10 @@
 		onBack,
 		title
 	}: Props = $props();
+
+	// the title fades as the page it names does, without the slide
+	const titleIn = (_node: Element) => sheetPageFadeIn();
+	const titleOut = (_node: Element) => sheetPageFadeOut();
 </script>

 <header
@@ -58,7 +63,14 @@
 		</Drawer.Close>
 	{/if}

-	<Drawer.Title class="col-start-2 truncate text-center text-body font-semibold">
-		{title}
+	<!-- a new title fades in with the page it names, once the old one has faded out -->
+	<Drawer.Title
+		class="col-start-2 grid grid-cols-[minmax(0,1fr)] text-center text-body font-semibold"
+	>
+		{#key title}
+			<span in:titleIn out:titleOut class="col-start-1 row-start-1 truncate">
+				{title}
+			</span>
+		{/key}
 	</Drawer.Title>
 </header>
diff --git a/ui/lib/ui/src/lib/components/app/sheets/SheetPages.svelte b/ui/lib/ui/src/lib/components/app/sheets/SheetPages.svelte
index 86cbecfcd..e0cab6e0e 100644
--- a/ui/lib/ui/src/lib/components/app/sheets/SheetPages.svelte
+++ b/ui/lib/ui/src/lib/components/app/sheets/SheetPages.svelte
@@ -1,6 +1,7 @@
 <!--
-	The scrolling body of a sheet with pages: it shows the page on top of a `useSheetPages` stack and
-	slides between pages as they are pushed and popped.
+	The body of a sheet with pages: it shows the page on top of a `useSheetPages` stack and fades from
+	one page to the next as they are pushed and popped. Each page scrolls on its own, so the page
+	coming in can be scrolled into place while the one leaving still shows, without a jump.
 -->
 <script generics="P" lang="ts">
 	import type { Snippet } from 'svelte';
@@ -16,7 +17,7 @@
 		/** Identifies the page shown; a change of it slides to the new page. */
 		pageKey: string;
 		pages: SheetPagesState<P>;
-		/** The scrolling element, to read or set its scroll position. */
+		/** The page shown, which scrolls: to read or set its scroll position. */
 		ref?: HTMLDivElement | null;
 		scrollClass?: string;
 	}
@@ -37,32 +38,41 @@
 		keepFirstPageHeight && pages.canGoBack && firstPageHeight ? `${firstPageHeight}px` : undefined
 	);

-	function slide(node: Element, params: { incoming: boolean }) {
+	function change(node: Element, params: { incoming: boolean }) {
 		return pages.transition(node, params);
 	}
+
+	// the ref follows the page coming in, and is not cleared when the one leaving goes
+	function showPage(node: HTMLDivElement) {
+		ref = node;
+	}
 </script>

 <div
-	bind:this={ref}
 	style:min-height={minHeight}
-	class={cn(
-		'grid min-h-0 flex-1 overflow-x-hidden overflow-y-auto overscroll-contain',
-		scrollClass
-	)}
+	class="grid min-h-0 flex-1 grid-cols-[minmax(0,1fr)] grid-rows-[minmax(0,1fr)] overflow-hidden"
 >
 	{#key pageKey}
 		<div
-			bind:clientHeight={
-				() => firstPageHeight,
-				(height) => {
-					if (!pages.canGoBack && height) firstPageHeight = height;
-				}
-			}
-			in:slide={{ incoming: true }}
-			out:slide={{ incoming: false }}
-			class={cn('col-start-1 row-start-1 flex min-w-0 flex-col', className)}
+			{@attach showPage}
+			in:change={{ incoming: true }}
+			out:change={{ incoming: false }}
+			class={cn(
+				'col-start-1 row-start-1 min-h-0 overflow-x-hidden overflow-y-auto overscroll-contain',
+				scrollClass
+			)}
 		>
-			{@render children()}
+			<div
+				bind:clientHeight={
+					() => firstPageHeight,
+					(height) => {
+						if (!pages.canGoBack && height) firstPageHeight = height;
+					}
+				}
+				class={cn('flex min-w-0 flex-col', className)}
+			>
+				{@render children()}
+			</div>
 		</div>
 	{/key}
 </div>
diff --git a/ui/lib/ui/src/lib/components/app/sheets/sheet-pages.svelte.ts b/ui/lib/ui/src/lib/components/app/sheets/sheet-pages.svelte.ts
index 4d1fcc7ef..bb5c67709 100644
--- a/ui/lib/ui/src/lib/components/app/sheets/sheet-pages.svelte.ts
+++ b/ui/lib/ui/src/lib/components/app/sheets/sheet-pages.svelte.ts
@@ -1,6 +1,11 @@
+import { cubicOut } from 'svelte/easing';
 import { prefersReducedMotion } from 'svelte/motion';
-import { fly, type TransitionConfig } from 'svelte/transition';
-import { SHEET_PAGE_SLIDE_MS, SHEET_PAGE_SLIDE_PX } from '../../../constants';
+import type { TransitionConfig } from 'svelte/transition';
+import {
+	SHEET_PAGE_FADE_IN_MS,
+	SHEET_PAGE_FADE_OUT_MS,
+	SHEET_PAGE_SLIDE_PX
+} from '../../../constants';

 /** A slide to the next page, or back to the previous one. */
 enum SlideDirection {
@@ -18,10 +23,28 @@ export interface SheetPagesState<P> {
 	pop(): void;
 	/** Back to the first page, for each time the sheet opens. */
 	reset(): void;
-	/** The slide between pages: the next one comes in from the right, the previous one from the left. */
+	/**
+	 * The change of page: the one left fades out, then the next fades in, sliding a little from the
+	 * right (the previous one from the left), so the two are never seen at once.
+	 */
 	transition(node: Element, params: { incoming: boolean }): TransitionConfig;
 }

+/** The page a sheet leaves, or its old title, fading out. */
+export function sheetPageFadeOut(): TransitionConfig {
+	return { css: (t) => `opacity: ${t}`, duration: SHEET_PAGE_FADE_OUT_MS };
+}
+
+/** What a sheet goes to fading in once the page it leaves is gone, sliding `x` px into place. */
+export function sheetPageFadeIn(x = 0): TransitionConfig {
+	return {
+		css: (t, u) => `opacity: ${t}; transform: translateX(${u * x}px)`,
+		delay: SHEET_PAGE_FADE_OUT_MS,
+		duration: SHEET_PAGE_FADE_IN_MS,
+		easing: cubicOut
+	};
+}
+
 /**
  * A stack of pages inside a sheet, the native way: tapping a row pushes its page, back pops it.
  */
@@ -49,15 +72,10 @@ export function useSheetPages<P>(root: P): SheetPagesState<P> {
 		reset() {
 			stack = [root];
 		},
-		transition(node: Element, { incoming }: { incoming: boolean }) {
-			const offset = prefersReducedMotion.current ? 0 : SHEET_PAGE_SLIDE_PX;
-			const sign = incoming ? direction : -direction;
-
-			return fly(node, {
-				duration: SHEET_PAGE_SLIDE_MS,
-				opacity: 0,
-				x: sign * offset
-			});
+		transition(_node: Element, { incoming }: { incoming: boolean }) {
+			if (!incoming) return sheetPageFadeOut();
+
+			return sheetPageFadeIn(prefersReducedMotion.current ? 0 : direction * SHEET_PAGE_SLIDE_PX);
 		}
 	};
 }
diff --git a/ui/lib/ui/src/lib/components/ui/switch/switch.svelte b/ui/lib/ui/src/lib/components/ui/switch/switch.svelte
index 01da51c28..61bbda811 100644
--- a/ui/lib/ui/src/lib/components/ui/switch/switch.svelte
+++ b/ui/lib/ui/src/lib/components/ui/switch/switch.svelte
@@ -2,33 +2,146 @@
 	import { cn, type WithoutChildrenOrChild } from '../utils.js';
 	import { Switch as SwitchPrimitive } from 'bits-ui';

+	/** How far the pointer travels before a press counts as a drag, not a click. */
+	const DRAG_THRESHOLD_PX = 3;
+	const PERCENT = 100;
+	/** How long the click a browser sends after a drag is waited for, and swallowed. */
+	const CLICK_AFTER_DRAG_MS = 100;
+
 	let {
 		checked = $bindable(false),
 		class: className,
+		disabled,
 		ref = $bindable(null),
-		size = 'default',
+		size = 'sm',
 		...restProps
 	}: WithoutChildrenOrChild<SwitchPrimitive.RootProps> & {
-		/** `lg` is sized for a finger, for touch screens' settings lists. */
-		size?: 'default' | 'lg';
+		/** `sm` sits in dense rows and menus, `md` in a settings row, `lg` is sized for a finger. */
+		size?: 'sm' | 'md' | 'lg';
 	} = $props();
+
+	let thumbRef = $state<HTMLElement | null>(null);
+
+	// The thumb is a pill inset in its track, wider than tall, so it reads as something to slide.
+	// The thumb can be dragged, by mouse or by finger: it follows the pointer along the track and
+	// the switch takes the side it is let go on. A press that does not move stays a click.
+	let drag = $state.raw<{ pointerId: number; startX: number; travel: number } | null>(null);
+	/** Where the dragged thumb is along the track, in px; null while nothing drags it. */
+	let dragOffset = $state<number | null>(null);
+	/** How far along the track the dragged thumb is, in percent: the colours follow it. */
+	let dragProgress = $derived(
+		drag && dragOffset !== null && drag.travel > 0
+			? Math.round((dragOffset / drag.travel) * PERCENT)
+			: null
+	);
+	// the click the browser sends after a drag would flip the switch again
+	let swallowClick = false;
+	// the click this component sends itself, to flip the switch the way a real one does
+	let isOwnClick = false;
+
+	function handlePointerDown(event: PointerEvent): void {
+		if (disabled || !ref || !thumbRef || (event.pointerType === 'mouse' && event.button !== 0)) {
+			return;
+		}
+
+		const { paddingLeft, paddingRight } = getComputedStyle(ref);
+
+		drag = {
+			pointerId: event.pointerId,
+			startX: event.clientX,
+			// the track's inner width less its inset and the thumb: how far the thumb can go
+			travel:
+				ref.clientWidth - parseFloat(paddingLeft) - parseFloat(paddingRight) - thumbRef.offsetWidth
+		};
+	}
+
+	function handlePointerMove(event: PointerEvent): void {
+		if (!drag || event.pointerId !== drag.pointerId) return;
+
+		const moved = event.clientX - drag.startX;
+
+		if (dragOffset === null) {
+			if (Math.abs(moved) < DRAG_THRESHOLD_PX) return;
+
+			// from here on the moves are the switch's, wherever the pointer goes; a pointer that
+			// is already gone cannot be captured, and the drag goes on without it
+			try {
+				ref?.setPointerCapture(drag.pointerId);
+			} catch {
+				// nothing to capture
+			}
+		}
+
+		const start = checked ? drag.travel : 0;
+
+		dragOffset = Math.min(Math.max(start + moved, 0), drag.travel);
+	}
+
+	function handlePointerEnd(event: PointerEvent): void {
+		if (!drag || event.pointerId !== drag.pointerId) return;
+
+		const { travel } = drag;
+		const offset = dragOffset;
+
+		drag = null;
+		dragOffset = null;
+
+		if (offset === null) return;
+
+		// a drag that was cancelled (a scroll took over) leaves the switch as it was
+		const shouldBeChecked = event.type === 'pointercancel' ? checked : offset > travel / 2;
+
+		swallowClick = true;
+		setTimeout(() => (swallowClick = false), CLICK_AFTER_DRAG_MS);
+
+		if (shouldBeChecked !== checked) {
+			// a click, so the change goes the way every other one does: bound value and callbacks
+			isOwnClick = true;
+			ref?.click();
+			isOwnClick = false;
+		}
+	}
+
+	function handleClickCapture(event: MouseEvent): void {
+		if (!swallowClick || isOwnClick) return;
+
+		swallowClick = false;
+		event.preventDefault();
+		event.stopPropagation();
+	}
 </script>

 <SwitchPrimitive.Root
 	bind:checked
 	bind:ref
 	class={cn(
-		'peer group/switch inline-flex h-[1.15rem] w-8 data-[size=lg]:h-7 data-[size=lg]:w-12 shrink-0 cursor-pointer items-center rounded-full border border-transparent bg-(--surface-muted) shadow-(--elevation-inset) transition-all outline-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-(--action-primary)',
+		'peer group/switch inline-flex h-4.5 w-9 px-[1.5px] data-[size=md]:px-0.5 data-[size=lg]:px-0.75 data-[size=md]:h-5.5 data-[size=md]:w-11 data-[size=lg]:h-7 data-[size=lg]:w-14 shrink-0 cursor-pointer touch-pan-y items-center rounded-full border border-transparent bg-(--surface-muted) shadow-(--elevation-inset) transition-all outline-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-fill-info',
+		dragProgress !== null && 'transition-none',
 		className
 	)}
 	data-size={size}
 	data-slot="switch"
+	style={dragProgress === null
+		? undefined
+		: `background-color: color-mix(in oklab, var(--fill-info) ${dragProgress}%, var(--surface-muted));`}
+	{disabled}
 	{...restProps}
+	onclickcapture={handleClickCapture}
+	onpointercancel={handlePointerEnd}
+	onpointerdown={handlePointerDown}
+	onpointermove={handlePointerMove}
+	onpointerup={handlePointerEnd}
 >
+	<!-- while it is dragged the thumb sits where the pointer put it, with no transition to lag behind -->
 	<SwitchPrimitive.Thumb
+		bind:ref={thumbRef}
 		class={cn(
-			'pointer-events-none block size-4 group-data-[size=lg]/switch:size-6 rounded-full bg-(--surface-lifted) shadow-(--elevation-control) ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=checked]:bg-(--switch-thumb-on) data-[state=unchecked]:translate-x-0'
+			'pointer-events-none block h-3.25 w-4.75 group-data-[size=md]/switch:h-4 group-data-[size=md]/switch:w-5.75 group-data-[size=lg]/switch:h-5 group-data-[size=lg]/switch:w-7.5 rounded-full bg-(--surface-lifted) shadow-(--elevation-control) ring-0 transition-transform data-[state=checked]:translate-x-3 group-data-[size=md]/switch:data-[state=checked]:translate-x-3.75 group-data-[size=lg]/switch:data-[state=checked]:translate-x-4.5 data-[state=checked]:bg-(--switch-thumb-on) data-[state=unchecked]:translate-x-0',
+			dragOffset !== null && 'transition-none'
 		)}
 		data-slot="switch-thumb"
+		style={dragOffset === null || dragProgress === null
+			? undefined
+			: `translate: ${dragOffset}px 0; transform: none; background-color: color-mix(in oklab, var(--switch-thumb-on) ${dragProgress}%, var(--surface-lifted));`}
 	/>
 </SwitchPrimitive.Root>
diff --git a/ui/lib/ui/src/lib/constants/sheet.constants.ts b/ui/lib/ui/src/lib/constants/sheet.constants.ts
index 5c26432ca..f195fc416 100644
--- a/ui/lib/ui/src/lib/constants/sheet.constants.ts
+++ b/ui/lib/ui/src/lib/constants/sheet.constants.ts
@@ -1,8 +1,11 @@
-/** How far (px) a sheet page slides as it comes in or leaves; nothing with reduced motion. */
-export const SHEET_PAGE_SLIDE_PX = 32;
+/** How far (px) a sheet page slides as it fades in; nothing with reduced motion. */
+export const SHEET_PAGE_SLIDE_PX = 12;

-/** How long (ms) the slide between two sheet pages takes. */
-export const SHEET_PAGE_SLIDE_MS = 220;
+/** How long (ms) the page a sheet leaves takes to fade out, before the next one comes in. */
+export const SHEET_PAGE_FADE_OUT_MS = 120;
+
+/** How long (ms) the page a sheet goes to takes to fade and slide in. */
+export const SHEET_PAGE_FADE_IN_MS = 200;

 /** Labels of a sheet's corner key. */
 export const SHEET_TEXT = {
diff --git a/ui/lib/ui/src/lib/styles/tokens/components.css b/ui/lib/ui/src/lib/styles/tokens/components.css
index 6fc55c1b6..29af87b42 100644
--- a/ui/lib/ui/src/lib/styles/tokens/components.css
+++ b/ui/lib/ui/src/lib/styles/tokens/components.css
@@ -64,8 +64,9 @@
 	--toggle-group-key-background-idle: var(--surface-muted);
 	--toggle-group-key-background-idle-hover: var(--surface-emphasis);

-	/* switch: on, the thumb keeps the raised colour in light */
-	--switch-thumb-on: var(--surface-lifted);
+	/* switch: on, the track is the info blue and the thumb the white that sits on a filled
+	   colour, in both themes */
+	--switch-thumb-on: var(--fg-on-danger);

 	/* badges: primary, danger and outline take semantic tokens as they are */
 	--badge-secondary-background: color-mix(in oklch, var(--fg-default) 6%, transparent);
@@ -90,8 +91,6 @@
 	--badge-danger-background-hover: var(--action-danger);
 	--toggle-group-key-background-idle: transparent;
 	--toggle-group-key-background-idle-hover: var(--action-ghost-hover);
-	/* on the near-white track the thumb stays dark and opaque */
-	--switch-thumb-on: var(--surface-raised);
 	--float-panel-background-modal: color-mix(in oklch, var(--surface-page) 86%, transparent);
 	/* the matte finish again, from the dark fills. The danger key is matte glass: a frosted, translucent red over the
 	   page (--action-danger), its edge a soft tint of the red rather than a lighter rim, and no sheen (a lit rim and sheen on red read
diff --git a/ui/lib/ui/tests/stories/components/forms/Switch.stories.svelte b/ui/lib/ui/tests/stories/components/forms/Switch.stories.svelte
index c9cb3453f..b49ee1e9f 100644
--- a/ui/lib/ui/tests/stories/components/forms/Switch.stories.svelte
+++ b/ui/lib/ui/tests/stories/components/forms/Switch.stories.svelte
@@ -33,3 +33,19 @@
 		</StateGalleryItem>
 	</StateGallery>
 </Story>
+
+<Story asChild name="Sizes">
+	<StateGallery columns={3} minItemWidth="9rem">
+		<StateGalleryItem label="Small">
+			<Label class="flex items-center gap-2"><Switch checked size="sm" /> Stream</Label>
+		</StateGalleryItem>
+
+		<StateGalleryItem label="Medium">
+			<Label class="flex items-center gap-2"><Switch checked size="md" /> Stream</Label>
+		</StateGalleryItem>
+
+		<StateGalleryItem label="Large">
+			<Label class="flex items-center gap-2"><Switch checked size="lg" /> Stream</Label>
+		</StateGalleryItem>
+	</StateGallery>
+</Story>