+
+ {DIRECTIONS.map((item) => {
+ const selected = item.id === direction;
+ return (
+ {
+ setDirection(item.id);
+ if (viewport === "combined" && item.id !== "a") setViewport("desktop");
+ }}
+ className={cn(
+ "inline-flex min-h-12 items-center gap-2 rounded-xl border px-4 text-sm font-semibold transition",
+ focusRing,
+ selected
+ ? "border-[color:var(--clinical-accent-border)] bg-[color:var(--clinical-accent-soft)] text-[color:var(--clinical-accent)]"
+ : "border-[color:var(--border)] bg-[color:var(--surface)] text-[color:var(--text-muted)] hover:border-[color:var(--border-strong)] hover:text-[color:var(--text)]",
+ )}
+ >
+ {item.letter}
+ {item.title}
+ {item.title.split(" ")[0]}
+ {item.recommended ? (
+ Pick
+ ) : null}
+
+ );
+ })}
+
+
+
+ {(
+ [
+ ["desktop", "Desktop"],
+ ["phone", "Phone"],
+ ...(direction === "a" ? ([["combined", "A · Desktop + phone"]] as const) : []),
+ ] as Array<[ViewportId, string]>
+ ).map(([id, label]) => {
+ const selected = viewport === id;
+ return (
+ setViewport(id)}
+ className={cn(
+ "inline-flex min-h-12 items-center rounded-lg border px-3 text-xs font-bold transition",
+ focusRing,
+ selected
+ ? "border-[color:var(--border-strong)] bg-[color:var(--surface-raised)] text-[color:var(--text)]"
+ : "border-[color:var(--border)] bg-[color:var(--surface)] text-[color:var(--text-muted)] hover:text-[color:var(--text)]",
+ )}
+ >
+ {label}
+
+ );
+ })}
+
+
+ {active.blurb}
+
+
+
+ Static comps from `public/mockups/mode-page-redesign-2026-07/tools-search/`. Implement A on production
+ `/tools?q=` only — do not redesign Tools home in the same change.
+
+