@php /** * Inline "AI sparkle" mark — three sparkles in the brand gradient. Pure SVG (no * image file) so it stays crisp at any size and follows the theme colours. $gid * keeps the gradient id unique when the mark is rendered more than once on a page. * stop-color is set via a CSS class (.qm-spark-stop-*, not the presentation * attribute) so the brand CSS custom properties actually resolve. * * @var string $gid unique suffix for the gradient id * @var string $class svg class (sizing lives in CSS) * @var bool $mono fill with currentColor instead of the brand gradient (for * contexts that sit on a coloured background or need hover-tint, * e.g. the sidebar nav item and the settings tab) */ $aiMono = !empty($mono); $gradId = 'qmAiSpark-' . preg_replace('/[^a-z0-9_-]/i', '', (string) ($gid ?? 'x')); @endphp