import { customElement } from 'solid-element'; import { ChatConfig } from '../primitives/chat-config'; import { ELEMENT_CSS } from './css'; import { createSignal, onCleanup, onMount, Show, type JSX } from 'solid-js'; /** * Shared constructable stylesheet, built once and adopted by every element's * shadow root. This avoids duplicating the full compiled kit CSS (~77 KB) as an * inline ` {/* display:contents — no layout box; carries the .dark token scope and re-roots the inherited `color` to the active mode's foreground, so text without an explicit color class (e.g. attachment filename labels) follows light/dark instead of inheriting the host page's color. */}