\n\n {/* ── Pill — right-aligned in the constant footprint, so it can shrink\n to the toggle without the toggle ever moving ── */}\n
{\n if (!e.currentTarget.contains(e.relatedTarget as Node)) hideTooltip();\n }}\n className=\"relative z-10 flex h-12 items-center rounded-full border border-border bg-background/95 p-2 shadow-lg backdrop-blur\"\n >\n {/* Icon strip — overflow-clipped; width springs 0 ⇄ measured. Content is\n right-anchored so it reveals/retracts from the toggle side. */}\n
\n \n {iconEntries.map(({ item, index }) => renderButton(item, index))}\n
\n \n\n {/* Pinned toggle — the anchor everything opens/closes from. */}\n {toggleEntries.map(({ item, index }) => (\n
\n {renderButton(item, index)}\n
\n ))}\n