The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.
TypeScript agentai-chatai-studioall-in-onecoding-agentdesktop-appfluximage-generationlinuxllmlocal-ailocal-llmopen-sourceprivacyself-hostedstable-diffusionuncensoreduncensored-aivideo-generationwindows
design(§5 D-T04..D-T11, D-W3-6): das Token-System hat einen Aufrufer je Stufe — und 20 Sperrklinken auf dem erreichten Wert
David0b25be20a97c
diff --git a/src/components/__tests__/die-typo-leiter-und-ihre-umgehung.test.ts b/src/components/__tests__/die-typo-leiter-und-ihre-umgehung.test.tsindex b2ad96f0..787e69d0 100644--- a/src/components/__tests__/die-typo-leiter-und-ihre-umgehung.test.ts+++ b/src/components/__tests__/die-typo-leiter-und-ihre-umgehung.test.ts@@ -78,18 +78,28 @@ const FUNDSTELLEN = [...WERTE.values()].reduce((a, b) => a + b, 0)// ── Die Sperrklinke ────────────────────────────────────────────────────//-// Ist-Werte am 01.09.2026 NACH dieser Aenderung, gemessen mit genau dem-// Zaehler oben:+// Ist-Werte, gemessen mit genau dem Zaehler oben://-// vorher 30 Werte / 1026 Fundstellen-// nachher 25 Werte / 1009 Fundstellen+// Welle 1 (Klasse gebaut) 30 Werte / 1026 Fundstellen+// 25 Werte / 1009 Fundstellen+// Welle 2 (Klasse gezogen) 23 Werte / 826 Fundstellen//-// Verschwunden sind: `#7c3aed` und `#a78bfa` (jetzt Tokens, siehe-// zwei-akzente-und-eine-leinwand.test.ts), `8px` (identisch zu 0.5rem),-// `0.75rem` (identisch zu 12px) und `0.63rem` (die einzige Fundstelle-// eines Wertes, den niemand entschieden hatte).-const SCHRANKE_WERTE = 25-const SCHRANKE_FUNDSTELLEN = 1009+// Welle 1 hat `#7c3aed`/`#a78bfa` (jetzt Tokens), `8px` (identisch zu+// 0.5rem), `0.75rem` (identisch zu 12px) und `0.63rem` abgebaut.+//+// Welle 2 hat 181 Fundstellen in chat/ models/ ui/ agents/ import/ auf+// `.t-micro` gezogen und dabei zwei weitere Werte ganz beseitigt:+// `0.58rem` (9,28px — im Band) und `0.4rem` (6,4px, 3 Fundstellen, 0,8px+// neben `0.45rem`, das dieselbe Rolle traegt).+//+// Die Grenze ist eine Rechnung, keine Ermuedung: `.t-micro` nimmt das+// Band, das auf ihre 10px rundet, ± 1 CSS-Pixel. Was ausserhalb liegt,+// bleibt stehen — mit Grund, nachzulesen im `.t-micro`-Kommentar von+// index.css. Der groesste Rest ist `0.55rem` (8,8px) und `0.5rem` (8px):+// dorthin zu ziehen waere +14 bzw. +25 %, also ein Entwurf und keine+// Zusammenfuehrung.+const SCHRANKE_WERTE = 23+const SCHRANKE_FUNDSTELLEN = 826describe('die Umgehung ist gedeckelt und darf nur schrumpfen', () => {it(`hoechstens ${SCHRANKE_WERTE} verschiedene arbitraere Schriftgroessen`, () => {@@ -102,8 +112,8 @@ describe('die Umgehung ist gedeckelt und darf nur schrumpfen', () => {expect(FUNDSTELLEN).toBeLessThanOrEqual(SCHRANKE_FUNDSTELLEN)})- it('die fuenf abgebauten Werte sind wirklich weg', () => {- for (const weg of ['text-[8px]', 'text-[0.75rem]', 'text-[0.63rem]', 'text-[#7c3aed]', 'text-[#a78bfa]']) {+ it('die sieben abgebauten Werte sind wirklich weg', () => {+ for (const weg of ['text-[8px]', 'text-[0.75rem]', 'text-[0.63rem]', 'text-[#7c3aed]', 'text-[#a78bfa]', 'text-[0.58rem]', 'text-[0.4rem]']) {const treffer = DATEIEN.filter(([, s]) => s.includes(weg)).map(([n]) => n)expect(treffer, weg).toEqual([])}@@ -146,11 +156,41 @@ describe('die neue Stufe ist keine neue Zahl', () => {})it('und sie wird wirklich benutzt, nicht nur definiert', () => {+ // Welle 1 hat sie gebaut und auf 9 Call-Sites gebracht; Welle 2 hat die+ // 179 Fundstellen des Bandes daraufgezogen. Diese Schranke ist die+ // GEGENRICHTUNG zu den beiden oben: dort darf die Umgehung nur sinken,+ // hier darf der Gebrauch der Leiter nur steigen. Ohne diese Haelfte+ // waere ein Ersatz von `text-[0.6rem]` durch gar nichts auch gruen.const n = DATEIEN.reduce((a, [, s]) => a + (s.match(/(?<![\w-])t-micro(?![\w-])/g) ?? []).length,0,)- expect(n).toBeGreaterThanOrEqual(9)+ expect(n).toBeGreaterThanOrEqual(190)+ })++ it('das Band, das `.t-micro` nimmt, ist in MEINEN Verzeichnissen wirklich leer', () => {+ // Die Regel ausgeschrieben: alles, was auf 10px ± 1 CSS-Pixel rundet,+ // heisst `.t-micro`. In chat/ models/ ui/ agents/ import/ ist das+ // vollstaendig durchgezogen; anderswo steht es noch, dort arbeiten+ // andere.+ const MEIN = (n: string) =>+ /^components\/(chat\/|models\/|ui\/|agents\/|import\/)/.test(n)+ && n !== 'components/chat/ChatView.tsx'+ const band = (roh: string): number | null => {+ const rem = roh.match(/^([\d.]+)rem$/)+ if (rem) return parseFloat(rem[1]) * 16+ const px = roh.match(/^([\d.]+)px$/)+ return px ? parseFloat(px[1]) : null+ }+ const treffer: string[] = []+ for (const [name, src] of DATEIEN) {+ if (!MEIN(name)) continue+ for (const m of src.matchAll(/(?<![\w-])(?:[a-z-]+:)*text-\[([^\]]+)\]/g)) {+ const px = band(m[1])+ if (px !== null && px >= 9 && px <= 11) treffer.push(`${name}: ${m[0]}`)+ }+ }+ expect(treffer, 'im t-micro-Band und trotzdem in eckigen Klammern').toEqual([])})it('die drei alten Kleinstufen sind wirklich keine schlichten Stufen', () => {diff --git a/src/components/__tests__/icon-leiter.test.ts b/src/components/__tests__/icon-leiter.test.tsindex 63182b70..08021448 100644--- a/src/components/__tests__/icon-leiter.test.ts+++ b/src/components/__tests__/icon-leiter.test.ts@@ -177,13 +177,33 @@ describe('die Leiter ist angewandt, wo dieses Paket hinreicht — und nur da', (// sie auch nicht darauf — 655 Call-Sites umzustellen ist ein eigenes// Paket mit eigenem Sichttermin, nicht ein Nebensatz in einem anderen.//- // Was das Paket erreicht hat: die 19 Groessen unterscheiden sich nicht+ // Was Welle 1 erreicht hat: die 19 Groessen unterscheiden sich nicht// mehr im GEWICHT (das rechnen die Bloecke oben nach), nur noch in der// Groesse. Der Faktor 2,5 zwischen dem kleinsten und dem groessten// Strich ist weg, ohne dass eine dieser 655 Zeilen angefasst wurde.//+ // ── Welle 2, 01.09.2026: 19 → 15 ──+ //+ // Vier Groessen sind ersatzlos verschwunden, weil sie ihre einzigen+ // Fundstellen in chat/ models/ ui/ agents/ hatten:+ //+ // 7 → 8 zwei Mini-Glyphen (Stop-Quadrat, Schloss); 8 gab es+ // daneben schon 28 Mal.+ // 22 → 28 drei Leerzustands-Glyphen in models/ModelManager.tsx+ // 24 → 28 der Leerzustand in chat/CodexView.tsx …+ // 32 → 28 … und der in chat/RAGPanel.tsx+ //+ // Das ist keine Rundung, sondern eine ROLLE: die Leerzustaende dieser+ // App hatten vier verschiedene Glyphengroessen (22 / 24 / 32 und die+ // 28 des Absturzschirms) fuer denselben Satz „hier ist noch nichts".+ // Jetzt haben sie eine. 28 steht bewusst NICHT auf der Leiter — ein+ // Leerzustands-Glyph ist keine Bedienflaeche, und ICON_LG (20) waere+ // fuer ein Bild in der Mitte einer leeren Flaeche zu klein. Die zweite+ // 24er-Fundstelle (der Warnkreis in ui/ErrorBoundary.tsx, inline neben+ // Text) ist dagegen auf ICON_LG gegangen, weil sie eine ist.+ //// Die Zahl hier ist eine Sperrklinke: sie darf sinken, nicht steigen.- // Wer eine ZWANZIGSTE Groesse erfindet, faellt hier durch und nimmt+ // Wer eine SECHZEHNTE Groesse erfindet, faellt hier durch und nimmt// eine Leiterstufe.const sizes = new Set<number>()for (const [name, src] of FILES) {@@ -193,9 +213,33 @@ describe('die Leiter ist angewandt, wo dieses Paket hinreicht — und nur da', (if (name.includes('three/')) continue // three.js `size` ist keine Icon-Groessefor (const m of src.matchAll(/\bsize=\{(\d+)\}/g)) sizes.add(Number(m[1]))}- expect(sizes.size).toBeLessThanOrEqual(19)+ expect([...sizes].sort((a, b) => a - b).join(' ')).toBe('8 9 10 11 12 13 14 15 16 18 20 26 28 30 36')+ expect(sizes.size).toBeLessThanOrEqual(15)// Und die Leiter ist wirklich in Gebrauch, nicht nur definiert.const onLadder = (ALL.match(/\bsize=\{ICON_(?:SM|MD|LG)\}/g) ?? []).length- expect(onLadder).toBeGreaterThanOrEqual(11)+ expect(onLadder).toBeGreaterThanOrEqual(34)+ })++ it('die vier abgebauten Groessen sind wirklich weg, nicht nur seltener', () => {+ // Ohne diese Haelfte waere die Schranke oben auch dann gruen, wenn+ // jemand eine 7 gegen eine 21 tauscht.+ for (const weg of [7, 22, 24, 32]) {+ const orte = FILES+ .filter(([name, src]) => !name.includes('three/') && new RegExp(`\\bsize=\\{${weg}\\}`).test(src))+ .map(([n]) => n)+ expect(orte, `size={${weg}} ist zurueck`).toEqual([])+ }+ })++ it('die Leerzustaende dieser Verzeichnisse tragen EINE Groesse', () => {+ // Das ist der eigentliche Fix hinter der Zahl. Er darf sich nicht+ // still aufloesen, indem jemand eine der vier Stellen zurueckdreht.+ for (const f of [+ 'components/models/ModelManager.tsx',+ 'components/chat/CodexView.tsx',+ 'components/chat/RAGPanel.tsx',+ ]) {+ expect(quelltext(FILES, f), `${f} hat keinen 28er-Leerzustand mehr`).toContain('size={28}')+ }})})diff --git a/src/components/__tests__/radius-schatten-hoehe-und-bewegung.test.ts b/src/components/__tests__/radius-schatten-hoehe-und-bewegung.test.tsindex 0a1c1767..8cdd2e74 100644--- a/src/components/__tests__/radius-schatten-hoehe-und-bewegung.test.ts+++ b/src/components/__tests__/radius-schatten-hoehe-und-bewegung.test.ts@@ -56,6 +56,18 @@ const CSS_CODE = nurCode(CSS)const DATEIEN = quelldateien(SRC)const ALL = DATEIEN.map(([, s]) => s).join('\n')+/** Derselbe Text ohne Kommentare — sonst zaehlt eine Notiz als Call-Site. */+const CODE = DATEIEN.map(([, s]) => nurCode(s)).join('\n')++/**+ * Die Verzeichnisse, die dieses Paket anfassen darf. Alles andere wird hier+ * GEZAEHLT und nicht geaendert — eine Schranke, die fremde Dateien mitregelt,+ * waere in einem Baum mit mehreren Haenden nur eine Quelle falscher roter+ * Laeufe.+ */+const MEIN = (n: string) =>+ /^components\/(chat\/|models\/|ui\/|agents\/|import\/)/.test(n)+ && n !== 'components/chat/ChatView.tsx'// ── Die Radiusleiter, aufgeloest wie der Browser sie aufloest ──────────@@ -248,22 +260,256 @@ describe('die Reiter der Kopfzeile stehen auf einer benannten Stufe', () => {// ── D-T11: transition-all ist gezaehlt und gedeckelt ───────────────────describe('transition-all darf nur schrumpfen', () => {- // Gemessen am 01.09.2026: 54 Fundstellen vorher, 42 nachher. Migriert- // wurden nur die, deren Zustandswechsel BEWEISBAR ausschliesslich- // Farbwerte betrifft (Rand immer vorhanden, nur Farbe wechselt).+ // Gemessen: 54 vorher (Welle 1) → 42 → 33 (Welle 2). Migriert wird nur,+ // wo der Zustandswechsel BEWEISBAR eng ist:+ // · nur Farbwerte → `transition-colors`+ // · Farbe + Deckkraft → `transition` (Tailwinds+ // kuratierte Liste; sie enthaelt opacity, aber KEINE Layoutmasse)+ // · nur eine Laenge, die wirklich laeuft → `transition-[width]`+ // (die drei Fortschrittsbalken) bzw. `transition-[width,height]`+ // (der Vorschau-Rahmen, dessen Kasten sich beim Umschalten aendert)// Ausdruecklich NICHT migriert: Stellen mit ring-Wechsel (box-shadow),- // mit Randbreite 0→1, mit opacity, und `.lu-primary`, dessen- // :disabled-Zustand `filter` und `opacity` animiert.- const SCHRANKE = 42+ // mit Randbreite 0→1 und `.lu-primary`, dessen :disabled-Zustand+ // `filter` und `opacity` animiert. In chat/ models/ ui/ agents/ import/+ // bleibt genau EINE stehen: models/ModelCard.tsx wechselt `ring-1`.+ const SCHRANKE = 33it(`hoechstens ${SCHRANKE} Fundstellen`, () => {const n = (ALL.match(/(?<![\w-])transition-all(?![\w-])/g) ?? []).lengthexpect(n).toBeLessThanOrEqual(SCHRANKE)})+ it('in den Verzeichnissen dieses Pakets ist genau eine uebrig, und sie ist benannt', () => {+ const rest: string[] = []+ for (const [name, src] of DATEIEN) {+ if (!MEIN(name)) continue+ for (const _ of src.matchAll(/(?<![\w-])transition-all(?![\w-])/g)) rest.push(name)+ }+ expect(rest).toEqual(['components/models/ModelCard.tsx'])+ })+it('die Motion-Leiter ist da, an die die naechste Stelle gehen kann', () => {for (const t of ['--motion-fast', '--motion-base', '--motion-slow', '--motion-ease']) {expect(CSS_CODE).toContain(t)}})++ it('und die JS-Seite der Leiter wird wirklich aufgerufen, nicht nur exportiert', () => {+ // DAS war der eigentliche D-T11-Befund im JS: `MOTION_S` existierte+ // seit Welle 1 in ui/motion.ts und hatte NULL Aufrufer — nur die+ // beiden Federn wurden benutzt. Achtzehn Zahlenliterale standen+ // daneben. Eine Leiter, die niemand betritt, ist keine Leiter.+ const n = (CODE.match(/MOTION_S\./g) ?? []).length+ expect(n).toBeGreaterThanOrEqual(23)+ })++ it('in diesen Verzeichnissen steht keine nackte Dauer mehr — ausser der einen, die keine ist', () => {+ // Was uebrig bleibt, ist `duration: 1.5` an einer Endlosdrehung in+ // chat/RAGPanel.tsx. Die Leiter beschreibt ZUSTANDSWECHSEL (120 / 150+ // / 300 ms); ein Dauerlauf mit `repeat: Infinity` ist kein+ // Zustandswechsel und gehoert nicht darauf.+ const rest: string[] = []+ for (const [name, src] of DATEIEN) {+ if (!MEIN(name)) continue+ for (const m of nurCode(src).matchAll(/duration:\s*([0-9.]+)/g)) {+ rest.push(`${name}: ${m[1]}`)+ }+ }+ expect(rest).toEqual(['components/chat/RAGPanel.tsx: 1.5'])+ })++ it('und keine nackte `duration-N`-Klasse — die Zahlen zeigen aufs Token', () => {+ const rest: string[] = []+ for (const [name, src] of DATEIEN) {+ if (!MEIN(name)) continue+ for (const m of nurCode(src).matchAll(/(?<![\w-])(?:[a-z-]+:)*duration-(\d+)(?![\w-])/g)) {+ rest.push(`${name}: ${m[0]}`)+ }+ }+ expect(rest).toEqual([])+ })+})++// ── D-T07 (Fortsetzung): das Control-Band gehoert den drei Tokens ──────++describe('was die Hoehe eines Bedienelements hat, nennt eine Stufe', () => {+ /** `h-7` → 28, `h-[26px]` → 26, `h-[var(...)]`/`h-[90vh]` → null. */+ function alsPx(klasse: string): number | null {+ const px = klasse.match(/^h-\[(\d+(?:\.\d+)?)px\]$/)+ if (px) return parseFloat(px[1])+ const n = klasse.match(/^h-(\d+(?:\.\d+)?)$/)+ return n ? parseFloat(n[1]) * 4 : null+ }++ /** Die drei Stufen, aus index.css gelesen statt abgeschrieben. */+ const STUFEN = (() => {+ const m = new Map<string, number>()+ for (const t of CSS_CODE.matchAll(/--control-h-(sm|md|lg):\s*(\d+)px/g)) m.set(t[1], Number(t[2]))+ return m+ })()++ it('es sind genau drei, und sie steigen', () => {+ expect([...STUFEN.keys()].sort()).toEqual(['lg', 'md', 'sm'])+ const v = ['sm', 'md', 'lg'].map((k) => STUFEN.get(k) as number)+ expect(v).toEqual([26, 32, 40])+ })++ it('im Band 24–48px steht in diesen Verzeichnissen nur noch EIN Nicht-Token', () => {+ // Das Band ist der Bereich, in dem ein Knopf, ein Feld oder ein+ // Aufklapper wohnt — 24px ist unter der kleinsten Stufe, 48px ueber+ // der groessten. Alles darin, was keine Stufe nennt, ist eine+ // vierte Hoehe.+ //+ // Ist-Stand nach diesem Paket: ZWEI, und beide sind namentlich+ // begruendet, nicht uebersehen.+ // · agents/WorkflowList.tsx `w-7 h-7` (28px) — eine gerundete+ // Kachel, in der ein Icon sitzt. Kein Bedienelement.+ // · chat/avatar-slot.ts `w-6 h-6` (24px) — der Platzhalter neben+ // einer Nachricht, dessen feste Grundflaeche eine eigene Wache+ // hat (chat/__tests__/eine-nachricht-eine-leiste.test.ts). Er+ // richtet sich an der Textzeile aus, nicht an der Controlleiter.+ // Der Vorschau-Knopf in chat/HtmlPreviewFrame.tsx stand daneben auf+ // denselben 28px und ist gezogen worden, weil er ein Knopf IST.+ const treffer: string[] = []+ for (const [name, src] of DATEIEN) {+ if (!MEIN(name)) continue+ for (const m of nurCode(src).matchAll(/(?<![\w-])(?:[a-z-]+:)*(h-\[[^\]]+\]|h-\d+(?:\.\d+)?)(?![\w-])/g)) {+ const px = alsPx(m[1])+ if (px !== null && px >= 24 && px <= 48) treffer.push(`${name}: ${m[1]}`)+ }+ }+ expect(treffer.sort()).toEqual([+ 'components/agents/WorkflowList.tsx: h-7',+ 'components/chat/avatar-slot.ts: h-6',+ ])+ })++ it('die Tokens werden wirklich aufgerufen, und zwar oft', () => {+ const n = (CODE.match(/--control-h-(sm|md|lg)/g) ?? []).length+ expect(n).toBeGreaterThanOrEqual(42)+ })+})++// ── D-T08 (Fortsetzung): die 5px sind entschieden ──────────────────────++describe('die 5px bekommen keine Stufe, sondern ein Ziel', () => {+ it('die Leiter hat keine Sprosse zwischen 4 und 6', () => {+ // Drei Stufen in zwei Pixeln waeren bei --ui-scale 1,15 rund ein+ // Geraetepixel auseinander — dieselbe Aufloesung, in der D-T04 die+ // vierzehn Schriftgroessen als Rauschen verworfen hat.+ const leiter = effektiveLeiter()+ const zwischen = [...leiter.values()].filter((v) => v > 4 && v < 6)+ expect(zwischen).toEqual([])+ expect(hausRadien().has('5')).toBe(false)+ })++ it('und in diesen Verzeichnissen steht keine rohe Pixel-Ecke mehr', () => {+ // Was bleibt, ist `rounded-[calc(var(--radius-control)+2px)]` in+ // chat/ChatInput.tsx: die Aussenecke des Composers, die aus der+ // Innenecke ABGELEITET ist (konzentrische Radien). Das ist keine+ // zweite Zahl, das ist dieselbe Zahl plus die Randstaerke.+ const treffer: string[] = []+ for (const [name, src] of DATEIEN) {+ if (!MEIN(name)) continue+ for (const m of nurCode(src).matchAll(/(?<![\w-])(?:[a-z-]+:)*rounded(?:-[a-z]+)?-\[([^\]]+)\]/g)) {+ if (/^\d/.test(m[1])) treffer.push(`${name}: ${m[0]}`)+ }+ }+ expect(treffer).toEqual([])+ })++ it('die 20 unerreichbaren 5px sind gedeckelt, nicht uebersehen', () => {+ // components/layout/Sidebar.tsx gehoert in diesem Durchgang einem+ // anderen Agenten. Die Entscheidung, wohin sie gehen (`rounded-md`,+ // 6px), steht im D-T08-Kommentar von index.css; hier steht nur, dass+ // die Zahl nicht wachsen darf.+ const orte = DATEIEN+ .filter(([, s]) => s.includes('rounded-[5px]'))+ .map(([n]) => n)+ .sort()+ expect(orte).toEqual(['components/layout/Sidebar.tsx'])+ const n = (ALL.match(/rounded-\[5px\]/g) ?? []).length+ expect(n).toBeLessThanOrEqual(20)+ // Und die Entscheidung steht wirklich da, statt nur hier behauptet zu sein.+ expect(CSS).toContain('5px bekommt KEINE Stufe')+ })+})++// ── D-T09 (Fortsetzung): EIN Aufrufer fuer „dieses Blatt schwebt" ──────++describe('das Schwebeblatt kommt aus einem Rezept, nicht aus einer Kette', () => {+ /** Jede Schattenstufe, die die App im CODE schreibt. */+ const STUFEN = (() => {+ const m = new Map<string, number>()+ for (const [, src] of DATEIEN) {+ for (const t of nurCode(src).matchAll(/(?<![\w-])(?:[a-z-]+:)*shadow-(2xs|xs|sm|md|lg|xl|2xl|none)(?![\w-])/g)) {+ m.set(t[1], (m.get(t[1]) ?? 0) + 1)+ }+ }+ return m+ })()++ it('die App schreibt hoechstens vier der sieben Tailwind-Stufen', () => {+ expect([...STUFEN.keys()].sort()).toEqual(['2xl', 'lg', 'sm', 'xl'])+ })++ it('und keine Stufe, die dem Haus nicht gehoert', () => {+ // `shadow-md`/`xs`/`2xs` sind Werkseinstellung: wer sie schriebe,+ // bekaeme ohne Vorwarnung Tailwinds Hellmodus-Wert auf einer dunklen+ // Flaeche. Genau dieser stille Halbbesitz ist der Befund.+ for (const werk of ['md', 'xs', '2xs']) {+ expect(STUFEN.has(werk), `shadow-${werk} ist Werkseinstellung und hat eine Call-Site`).toBe(false)+ }+ // Umgekehrt: jede Stufe, die geschrieben wird, ist im @theme-Block+ // ueberschrieben — bis auf `sm`, das die Hausregel `.dark .shadow-sm`+ // im Dunkeln abschaltet statt es zu ueberschreiben.+ for (const stufe of STUFEN.keys()) {+ if (stufe === 'sm') continue+ expect(CSS_CODE, `--shadow-${stufe} wird geschrieben, aber nicht ueberschrieben`)+ .toMatch(new RegExp(`--shadow-${stufe}:`))+ }+ })++ it('`.lu-elevated` ist wirklich in Gebrauch und bringt Flaeche, Kante UND Schatten mit', () => {+ const regel = CSS_CODE.match(/\.lu-elevated\s*\{([^}]*)\}/)?.[1] ?? ''+ expect(regel, 'es gibt keine .lu-elevated-Regel').not.toBe('')+ expect(regel).toContain('var(--color-lu-overlay)')+ expect(regel).toContain('border:')+ expect(regel).toContain('var(--shadow-xl)')+ expect(CSS_CODE).toMatch(/\.light\s+\.lu-elevated/)+ const n = (CODE.match(/(?<![\w-])lu-elevated(?![\w-])/g) ?? []).length+ expect(n).toBeGreaterThanOrEqual(15)+ })++ it('kein Schwebeblatt dieser Verzeichnisse schreibt sich noch seine eigene Kette', () => {+ // Der Befund in einer Zahl: zehn Blaetter, sechs Flaechen, drei+ // Schatten, zwei Kanten. Jetzt: ein Rezept. Was uebrig bleibt, ist der+ // Warn-Aufklapper mit eigener roter Kante — die Regel wuerde sie+ // ueberschreiben, deshalb nimmt er nur das Flaechentoken.+ const rest: string[] = []+ for (const [name, src] of DATEIEN) {+ if (!MEIN(name)) continue+ for (const m of nurCode(src).matchAll(/(?<![\w-])(?:[a-z-]+:)*shadow-(xl|2xl)(?![\w-])/g)) {+ rest.push(`${name}: ${m[0]}`)+ }+ }+ expect(rest).toEqual(['components/chat/ContextDropdown.tsx: shadow-xl'])+ })++ it('und keine Call-Site laesst neben dem Rezept eine wirkungslose Klasse stehen', () => {+ // `.lu-elevated` ist ungeschichtet und schlaegt jede Utility. Ein+ // `bg-white` oder `shadow-xl` daneben waere eine Klasse ohne Wirkung —+ // und beim naechsten Leser eine Falschaussage darueber, was die+ // Flaeche traegt.+ const tot: string[] = []+ for (const [name, src] of DATEIEN) {+ for (const zeile of nurCode(src).split('\n')) {+ if (!/(?<![\w-])lu-elevated(?![\w-])/.test(zeile)) continue+ for (const m of zeile.matchAll(/(?<![\w-])(?:dark:)?(bg-white(?![\w/-])|shadow-(?:sm|md|lg|xl|2xl))(?![\w-])/g)) {+ tot.push(`${name}: ${m[0]}`)+ }+ }+ }+ expect(tot).toEqual([])+ })})diff --git a/src/components/__tests__/zwei-akzente-und-eine-leinwand.test.ts b/src/components/__tests__/zwei-akzente-und-eine-leinwand.test.tsindex 38666b7b..e9b679e0 100644--- a/src/components/__tests__/zwei-akzente-und-eine-leinwand.test.ts+++ b/src/components/__tests__/zwei-akzente-und-eine-leinwand.test.ts@@ -125,6 +125,25 @@ describe('der Cloud-Akzent ist eine Rolle, keine zweite Marke', () => {expect(ALL).toContain('dark:text-lu-cloud-lift')})+ it('auch der HAUS-Akzent steht nirgends mehr als Zahl', () => {+ // Die Cloud-Haelfte war Welle 1. Diese hier ist die andere: #a094f8+ // (Ruhe), #b1a6ff (Hover), #8b7cf0 (Hellmodus-Kante). Der Audit+ // zaehlte 23 Fundstellen von #a094f8. Im CODE — Kommentare+ // abgeschnitten, sonst zaehlt man die Kontrastrechnungen mit, die+ // ueber diese Farben GESCHRIEBEN wurden — ist es null.+ const orte: string[] = []+ for (const [name, src] of DATEIEN) {+ for (const m of nurCode(src).matchAll(/#(?:a094f8|b1a6ff|8b7cf0)/gi)) {+ orte.push(`${name}: ${m[0]}`)+ }+ }+ expect(orte).toEqual([])+ // Und die Tokens gibt es wirklich, sie sind nicht mitgeloescht worden.+ for (const t of ['lu-accent', 'lu-accent-hover', 'lu-accent-edge']) {+ expect(CSS_CODE, `--color-${t} fehlt`).toMatch(new RegExp(`--color-${t}:`))+ }+ })+it('das Brand-Kit-Violett kommt weiterhin nirgends vor', () => {// Der Audit fuehrte es als „die eigentliche Wahrheit". Es hat in// dieser App nie eine Call-Site gehabt, und es bekommt hier keine.@@ -146,7 +165,6 @@ describe('die Leinwand hat einen Namen bekommen', () => {'components/layout/Header.tsx','components/layout/Titlebar.tsx','components/layout/ViewSkeletons.tsx',- 'components/ui/ContextMenu.tsx',]for (const f of erwartet) {const src = quelltext(DATEIEN, f)@@ -158,6 +176,18 @@ describe('die Leinwand hat einen Namen bekommen', () => {expect((tb.match(/dark:bg-lu-canvas/g) ?? []).length).toBe(2)})+ it('das Kontextmenue ist aus dieser Liste RAUS — und zwar nach oben', () => {+ // Es stand hier als sechste Call-Site von `--color-lu-canvas`. Das war+ // die richtige Antwort auf „welches Literal?" und die falsche auf+ // „welche Rolle?": ein Menue, das ueber der Leinwand schwebt, in der+ // FARBE der Leinwand liest sich nicht als schwebend. Seit D-T09 traegt+ // es dasselbe Rezept wie die uebrigen neun Schwebeblaetter der App.+ const cm = quelltext(DATEIEN, 'components/ui/ContextMenu.tsx')+ expect(cm).toContain('lu-elevated')+ expect(cm).not.toContain('dark:bg-lu-canvas')+ expect(cm).not.toContain('dark:bg-[#141414]')+ })+it('jede Call-Site behaelt ihr eigenes Hell-Gegenstueck — der Tausch ist folgenlos', () => {// DAS ist der Grund, warum der Tausch keine Farbe bewegt: die dunkle// Seite wechselt die Schreibweise, die helle bleibt unangetastet.@@ -184,6 +214,44 @@ describe('die Leinwand hat einen Namen bekommen', () => {])})+ it('die dunklen Graustufen im CODE sind gedeckelt — und meine Ecke ist leer', () => {+ // Der Audit: „16 Graustufen". Gezaehlt werden hier alle Hex-Literale,+ // deren drei Kanaele unter 0x40 liegen — also echte Flaechenfarben,+ // keine Textfarben und keine Marken-Blaus. Kommentare sind+ // abgeschnitten: eine Farbe, ueber die jemand SCHREIBT, ist keine+ // Call-Site (genau dieser Fehler hat die erste Messung dieses Pakets+ // um vier Werte danebenliegen lassen).+ //+ // vorher 15 #000000 #0e0e0e #141414 #161616 #161719 #171717+ // #17171c #1a1a1a #1b1b1b #1e1e1e #1f1f1f #202020+ // #232323 #262626 #363636+ // nachher 11 die vier Schwebeblatt-Flaechen #161719 #17171c+ // #1f1f1f #262626 sind weg (siehe .lu-elevated)+ const grau = new Map<string, string[]>()+ for (const [name, src] of DATEIEN) {+ for (const m of nurCode(src).matchAll(/#[0-9a-fA-F]{6}\b/g)) {+ const h = m[0].toLowerCase()+ const k = [1, 3, 5].map((i) => parseInt(h.slice(i, i + 2), 16))+ if (k.every((c) => c < 0x40)) grau.set(h, [...(grau.get(h) ?? []), name])+ }+ }+ expect(grau.size, `Graustufen: ${[...grau.keys()].sort().join(' ')}`).toBeLessThanOrEqual(11)++ // In den Verzeichnissen dieses Pakets bleibt genau EINE, und sie ist+ // begruendet: der Absturzschirm in ui/ErrorBoundary.tsx malt mit+ // `style={{...}}`, nicht mit Klassen. Er muss auch dann lesbar sein,+ // wenn das Stylesheet der Grund des Absturzes war — ein `var(--…)`+ // waere dort genau die Abhaengigkeit, die er nicht haben darf.+ const meine: string[] = []+ for (const [name, treffer] of grau) {+ for (const datei of treffer) {+ if (/^components\/(chat\/|models\/|ui\/|agents\/|import\/)/.test(datei)+ && datei !== 'components/chat/ChatView.tsx') meine.push(`${datei}: ${name}`)+ }+ }+ expect([...new Set(meine)].sort()).toEqual(['components/ui/ErrorBoundary.tsx: #171717'])+ })+it('es gibt bewusst KEINE gespiegelte Hell-Leiter', () => {// Der Vorschlag lautete, `--color-lu-*` im `.light`-Block zu spiegeln.// Nachgezaehlt zerfaellt #141414 im Hellmodus in zwei Rollen — die@@ -201,13 +269,44 @@ describe('die Leinwand hat einen Namen bekommen', () => {expect(CSS_CODE).not.toMatch(/\.light\s*\{[^}]*--color-lu-(canvas|base|panel|raised|overlay)/)})- it('das tote Token steht als tot da', () => {- // --color-lu-raised hat 0 Call-Sites. Es zu entfernen waere eine- // eigene Entscheidung; es unbeschriftet stehen zu lassen war der- // Zustand, aus dem der Befund entstand.+ it('das tote Token ist WEG, nicht als tot beschriftet', () => {+ // Vorfassung: „es steht jetzt dran, dass es tot ist" — geprueft wurde,+ // dass die Zeile `--color-lu-raised: #2d2d2d;` den Vermerk `0 Call-Sites`+ // traegt. Das war die halbe Antwort. Ein Farbtoken ohne Aufrufer gibt+ // Tailwind gar nicht erst aus (im Fenster als LEERE Variable gemessen):+ // wer `bg-lu-raised` schreibt, bekommt keine Farbe UND keinen Fehler.+ // Eine Stufe, die beim ersten Gebrauch still danebengreift, gehoert+ // nicht beschriftet, sondern geloescht.+ expect(CSS_CODE).not.toContain('--color-lu-raised')+ expect(CSS_CODE).not.toContain('#2d2d2d')expect(ALL).not.toMatch(/(?<![\w-])(?:[a-z-]+:)*(?:bg|text|border|ring)-lu-raised(?![\w-])/)- const zeile = CSS.split('\n').find((z) => /^\s*--color-lu-raised:/.test(z)) ?? ''- expect(zeile, 'keine Deklarationszeile gefunden').not.toBe('')- expect(zeile).toContain('0 Call-Sites')+ })++ it('die Leiter geht in BEIDE Richtungen auf: jede Stufe hat einen Aufrufer', () => {+ // Das ist die Sperrklinke hinter der Loeschung. Sie faellt, wenn jemand+ // eine sechste Stufe erfindet, ohne sie zu benutzen — und ebenso, wenn+ // jemand `bg-lu-irgendwas` schreibt, das es nicht gibt.+ const stufen = [...CSS_CODE.matchAll(/--color-lu-(canvas|base|panel|raised|overlay|pane):/g)]+ .map((m) => m[1])+ .sort()+ expect(stufen, 'die Flaechenleiter hat sich veraendert').toEqual(['base', 'canvas', 'overlay', 'panel'])++ for (const stufe of stufen) {+ const direkt = new RegExp(`(?<![\\w-])(?:[a-z-]+:)*(?:bg|text|border|ring)-lu-${stufe}(?![\\w-])`)+ const ueberRezept = new RegExp(`var\\(--color-lu-${stufe}\\)`)+ const genutzt = direkt.test(ALL) || ueberRezept.test(CSS_CODE)+ expect(genutzt, `--color-lu-${stufe} hat keinen einzigen Aufrufer`).toBe(true)+ }++ // Und umgekehrt: keine Call-Site auf einer Stufe, die es nicht gibt.+ const erfunden = new Set<string>()+ for (const [, src] of DATEIEN) {+ for (const m of src.matchAll(/(?<![\w-])(?:[a-z-]+:)*(?:bg|text|border|ring)-lu-([a-z]+)(?![\w-])/g)) {+ // `lu-cloud`/`lu-accent`/`lu-on` sind Akzente, keine Flaechenstufen.+ if (['cloud', 'accent', 'on', 'control', 'primary', 'elevated'].includes(m[1])) continue+ if (!stufen.includes(m[1])) erfunden.add(m[1])+ }+ }+ expect([...erfunden], 'Call-Site auf einer Flaechenstufe, die index.css nicht kennt').toEqual([])})})diff --git a/src/components/agents/AgentLog.tsx b/src/components/agents/AgentLog.tsxindex 72aeba77..68d734fb 100644--- a/src/components/agents/AgentLog.tsx+++ b/src/components/agents/AgentLog.tsx@@ -3,6 +3,7 @@ import { motion, AnimatePresence } from 'framer-motion'import { ScrollText } from 'lucide-react'import { ToolCallCard } from './ToolCallCard'import type { AgentLogEntry } from '../../types/agents'+import { MOTION_S } from '../ui/motion'const typeStyles: Record<AgentLogEntry['type'], { badge: string; bg: string; text: string }> = {thought: { badge: 'bg-indigo-500/20 text-indigo-300', bg: 'border-l-indigo-500/40', text: 'text-indigo-200' },@@ -54,14 +55,14 @@ export function AgentLog({ entries, onApprove, onReject }: Props) {key={entry.id}initial={{ opacity: 0, y: 8 }}animate={{ opacity: 1, y: 0 }}- transition={{ duration: 0.15 }}+ transition={{ duration: MOTION_S.base }}className={`border-l-2 ${style.bg} pl-3 py-1.5`}><div className="flex items-center gap-2 mb-0.5">- <span className={`text-[0.6rem] px-1.5 py-0.5 rounded-full font-medium ${style.badge}`}>+ <span className={`t-micro px-1.5 py-0.5 rounded-full font-medium ${style.badge}`}>{typeLabels[entry.type]}</span>- <span className="text-[0.6rem] text-gray-500">+ <span className="t-micro text-gray-500">{formatTimestamp(entry.timestamp)}</span></div>diff --git a/src/components/agents/TaskBreakdown.tsx b/src/components/agents/TaskBreakdown.tsxindex 76a73361..2b08e1e7 100644--- a/src/components/agents/TaskBreakdown.tsx+++ b/src/components/agents/TaskBreakdown.tsx@@ -3,6 +3,7 @@ import { motion, AnimatePresence } from 'framer-motion'import { Circle, Loader2, CheckCircle2, XCircle, ChevronDown, ChevronRight, Wrench } from 'lucide-react'import { ToolCallCard } from './ToolCallCard'import type { AgentTask, TaskStatus } from '../../types/agents'+import { MOTION_S } from '../ui/motion'function StatusIcon({ status }: { status: TaskStatus }) {switch (status) {@@ -63,7 +64,7 @@ export function TaskBreakdown({ tasks }: Props) {initial={{ opacity: 0, height: 0 }}animate={{ opacity: 1, height: 'auto' }}exit={{ opacity: 0, height: 0 }}- transition={{ duration: 0.2 }}+ transition={{ duration: MOTION_S.base }}><divonClick={() => task.toolCalls.length > 0 && toggle(task.id)}@@ -83,7 +84,7 @@ export function TaskBreakdown({ tasks }: Props) {)}</div>{task.toolCalls.length > 0 && (- <div className="flex items-center gap-1 text-[0.65rem] text-gray-500 flex-shrink-0">+ <div className="flex items-center gap-1 t-micro text-gray-500 flex-shrink-0"><span>{task.toolCalls.length} call{task.toolCalls.length !== 1 ? 's' : ''}</span>{expanded.has(task.id) ? (<ChevronDown size={12} />@@ -100,7 +101,7 @@ export function TaskBreakdown({ tasks }: Props) {initial={{ opacity: 0, height: 0 }}animate={{ opacity: 1, height: 'auto' }}exit={{ opacity: 0, height: 0 }}- transition={{ duration: 0.15 }}+ transition={{ duration: MOTION_S.base }}className="ml-6 space-y-1.5 pb-1">{task.toolCalls.map((tc) => (diff --git a/src/components/agents/ToolCallCard.tsx b/src/components/agents/ToolCallCard.tsxindex 5a2daf76..51604a8a 100644--- a/src/components/agents/ToolCallCard.tsx+++ b/src/components/agents/ToolCallCard.tsx@@ -3,6 +3,7 @@ import { Loader2, Check, X } from 'lucide-react'import { GlowButton } from '../ui/GlowButton'import type { ToolCall } from '../../types/agents'import type { ToolArgs } from '../../api/mcp/types'+import { MOTION_S } from '../ui/motion'interface Props {toolCall: ToolCall@@ -31,8 +32,8 @@ export function ToolCallCard({ toolCall, onApprove, onReject }: Props) {<motion.divinitial={{ opacity: 0, scale: 0.97 }}animate={{ opacity: 1, scale: 1 }}- transition={{ duration: 0.15 }}- className="glass-card rounded-lg p-3 dark:bg-[#363636] border border-white/5"+ transition={{ duration: MOTION_S.base }}+ className="glass-card rounded-lg p-3 dark:bg-lu-overlay border border-white/5">{/* Tool Name */}<div className="flex items-center justify-between mb-2">@@ -43,17 +44,17 @@ export function ToolCallCard({ toolCall, onApprove, onReject }: Props) {<Loader2 size={14} className="text-blue-400 animate-spin" />)}{isCompleted && (- <span className="text-[0.65rem] text-green-400 bg-green-500/10 px-1.5 py-0.5 rounded-full">+ <span className="t-micro text-green-400 bg-green-500/10 px-1.5 py-0.5 rounded-full">completed</span>)}{isFailed && (- <span className="text-[0.65rem] text-red-400 bg-red-500/10 px-1.5 py-0.5 rounded-full">+ <span className="t-micro text-red-400 bg-red-500/10 px-1.5 py-0.5 rounded-full">{toolCall.status === 'rejected' ? 'rejected' : 'failed'}</span>)}{isPending && (- <span className="text-[0.65rem] text-amber-400 bg-amber-500/10 px-1.5 py-0.5 rounded-full">+ <span className="t-micro text-amber-400 bg-amber-500/10 px-1.5 py-0.5 rounded-full">awaiting approval</span>)}@@ -82,7 +83,7 @@ export function ToolCallCard({ toolCall, onApprove, onReject }: Props) {{/* Duration */}{toolCall.duration !== undefined && (- <div className="text-[0.6rem] text-gray-500 mt-1">+ <div className="t-micro text-gray-500 mt-1">{(toolCall.duration / 1000).toFixed(1)}s</div>)}diff --git a/src/components/agents/WorkflowBuilder.tsx b/src/components/agents/WorkflowBuilder.tsxindex 08d87eff..9f8847e0 100644--- a/src/components/agents/WorkflowBuilder.tsx+++ b/src/components/agents/WorkflowBuilder.tsx@@ -124,20 +124,20 @@ export function WorkflowBuilder({ workflowId, onSave, onCancel }: WorkflowBuilde{/* Steps */}<div className="space-y-1.5">- <p className="text-[0.6rem] text-gray-500 uppercase tracking-wider">Steps</p>+ <p className="t-micro text-gray-500 uppercase tracking-wider">Steps</p>{steps.map((step, index) => (- <div key={step.id} className={`rounded-lg border ${STEP_TYPE_COLORS[step.type]} transition-all`}>+ <div key={step.id} className={`rounded-lg border ${STEP_TYPE_COLORS[step.type]} transition-colors`}>{/* Step header */}<divclassName="flex items-center gap-2 px-2.5 py-1.5 cursor-pointer"onClick={() => setExpandedStep(expandedStep === step.id ? null : step.id)}>- <span className="text-[0.6rem] text-gray-500 w-4 text-center">{index + 1}</span>+ <span className="t-micro text-gray-500 w-4 text-center">{index + 1}</span><span className="text-[0.55rem] px-1.5 py-0.5 rounded bg-white/5 text-gray-400">{STEP_TYPE_LABELS[step.type]}</span>- <span className="text-[0.65rem] text-gray-300 flex-1 truncate">{step.label}</span>+ <span className="t-micro text-gray-300 flex-1 truncate">{step.label}</span><div className="flex items-center gap-0.5"><button onClick={(e) => { e.stopPropagation(); moveStep(index, -1) }} className="p-0.5 rounded hover:bg-white/10 text-gray-600" disabled={index === 0}><ChevronUp size={10} />@@ -158,7 +158,7 @@ export function WorkflowBuilder({ workflowId, onSave, onCancel }: WorkflowBuildevalue={step.label}onChange={(e) => updateStep(step.id, { label: e.target.value })}placeholder="Step label"- className="w-full px-2 py-1 rounded bg-white/5 border border-white/10 text-[0.65rem] text-gray-300 placeholder-gray-600 focus:outline-none mt-2"+ className="w-full px-2 py-1 rounded bg-white/5 border border-white/10 t-micro text-gray-300 placeholder-gray-600 focus:outline-none mt-2"/>{/* Type-specific fields */}@@ -168,7 +168,7 @@ export function WorkflowBuilder({ workflowId, onSave, onCancel }: WorkflowBuildeonChange={(e) => updateStep(step.id, { prompt: e.target.value })}placeholder="Prompt text (use {{variable}} for interpolation)"rows={3}- className="w-full px-2 py-1 rounded bg-white/5 border border-white/10 text-[0.65rem] text-gray-300 placeholder-gray-600 focus:outline-none resize-none"+ className="w-full px-2 py-1 rounded bg-white/5 border border-white/10 t-micro text-gray-300 placeholder-gray-600 focus:outline-none resize-none"/>)}@@ -177,7 +177,7 @@ export function WorkflowBuilder({ workflowId, onSave, onCancel }: WorkflowBuilde<selectvalue={step.toolName || ''}onChange={(e) => updateStep(step.id, { toolName: e.target.value })}- className="w-full px-2 py-1 rounded bg-white/5 border border-white/10 text-[0.65rem] text-gray-300 focus:outline-none"+ className="w-full px-2 py-1 rounded bg-white/5 border border-white/10 t-micro text-gray-300 focus:outline-none"><option value="">Select tool...</option>{AGENT_TOOL_DEFS.map(t => (@@ -196,7 +196,7 @@ export function WorkflowBuilder({ workflowId, onSave, onCancel }: WorkflowBuildetry { updateStep(step.id, { toolArgTemplates: JSON.parse(e.target.value) }) } catch { /* siehe oben */ }}}placeholder='Args JSON: {"query": "{{user_input}}"}'- className="w-full px-2 py-1 rounded bg-white/5 border border-white/10 text-[0.65rem] text-gray-300 placeholder-gray-600 focus:outline-none"+ className="w-full px-2 py-1 rounded bg-white/5 border border-white/10 t-micro text-gray-300 placeholder-gray-600 focus:outline-none"/></>)}@@ -206,7 +206,7 @@ export function WorkflowBuilder({ workflowId, onSave, onCancel }: WorkflowBuildevalue={step.userInputPrompt || ''}onChange={(e) => updateStep(step.id, { userInputPrompt: e.target.value })}placeholder="Prompt shown to user"- className="w-full px-2 py-1 rounded bg-white/5 border border-white/10 text-[0.65rem] text-gray-300 placeholder-gray-600 focus:outline-none"+ className="w-full px-2 py-1 rounded bg-white/5 border border-white/10 t-micro text-gray-300 placeholder-gray-600 focus:outline-none"/>)}@@ -215,7 +215,7 @@ export function WorkflowBuilder({ workflowId, onSave, onCancel }: WorkflowBuilde<selectvalue={step.memorySave?.type || 'reference'}onChange={(e) => updateStep(step.id, { memorySave: { ...step.memorySave!, type: e.target.value as MemoryType } })}- className="w-full px-2 py-1 rounded bg-white/5 border border-white/10 text-[0.65rem] text-gray-300 focus:outline-none"+ className="w-full px-2 py-1 rounded bg-white/5 border border-white/10 t-micro text-gray-300 focus:outline-none"><option value="user">User</option><option value="feedback">Feedback</option>@@ -226,7 +226,7 @@ export function WorkflowBuilder({ workflowId, onSave, onCancel }: WorkflowBuildevalue={step.memorySave?.titleTemplate || ''}onChange={(e) => updateStep(step.id, { memorySave: { ...step.memorySave!, titleTemplate: e.target.value } })}placeholder="Title template: Research: {{user_input}}"- className="w-full px-2 py-1 rounded bg-white/5 border border-white/10 text-[0.65rem] text-gray-300 placeholder-gray-600 focus:outline-none"+ className="w-full px-2 py-1 rounded bg-white/5 border border-white/10 t-micro text-gray-300 placeholder-gray-600 focus:outline-none"/></>)}@@ -241,7 +241,7 @@ export function WorkflowBuilder({ workflowId, onSave, onCancel }: WorkflowBuilde<buttonkey={type}onClick={() => addStep(type)}- className="text-[0.6rem] px-2 py-0.5 rounded border border-white/10 text-gray-500 hover:text-gray-300 hover:border-white/20 transition-colors"+ className="t-micro px-2 py-0.5 rounded border border-white/10 text-gray-500 hover:text-gray-300 hover:border-white/20 transition-colors"><Plus size={8} className="inline mr-0.5" />{STEP_TYPE_LABELS[type]}diff --git a/src/components/agents/WorkflowList.tsx b/src/components/agents/WorkflowList.tsxindex ca4d7b81..39379b26 100644--- a/src/components/agents/WorkflowList.tsx+++ b/src/components/agents/WorkflowList.tsx@@ -43,7 +43,7 @@ export function WorkflowList({ onRun, onEdit, onCreate }: WorkflowListProps) {</div><div className="flex-1 min-w-0"><p className="text-[0.7rem] font-medium text-gray-200 truncate">{workflow.name}</p>- <p className="text-[0.6rem] text-gray-500 truncate">{workflow.description}</p>+ <p className="t-micro text-gray-500 truncate">{workflow.description}</p><p className="text-[0.55rem] text-gray-600">{workflow.steps.length} steps</p></div><div className="flex items-center gap-0.5 opacity-0 group-hover:opacity-100 transition-opacity shrink-0">@@ -89,7 +89,7 @@ export function WorkflowList({ onRun, onEdit, onCreate }: WorkflowListProps) {{/* Built-in workflows */}{builtIn.length > 0 && (<div className="space-y-1">- <p className="text-[0.6rem] text-gray-500 uppercase tracking-wider px-1">Built-in</p>+ <p className="t-micro text-gray-500 uppercase tracking-wider px-1">Built-in</p>{builtIn.map(renderWorkflow)}</div>)}@@ -97,7 +97,7 @@ export function WorkflowList({ onRun, onEdit, onCreate }: WorkflowListProps) {{/* Custom workflows */}{custom.length > 0 && (<div className="space-y-1">- <p className="text-[0.6rem] text-gray-500 uppercase tracking-wider px-1">Custom</p>+ <p className="t-micro text-gray-500 uppercase tracking-wider px-1">Custom</p>{custom.map(renderWorkflow)}</div>)}@@ -109,7 +109,7 @@ export function WorkflowList({ onRun, onEdit, onCreate }: WorkflowListProps) {{/* Create button */}<buttononClick={onCreate}- className="w-full flex items-center justify-center gap-1 py-1.5 rounded-lg bg-white/[0.03] border border-white/10 text-[0.65rem] text-gray-500 hover:text-gray-300 hover:border-white/20 transition-colors"+ className="w-full flex items-center justify-center gap-1 py-1.5 rounded-lg bg-white/[0.03] border border-white/10 t-micro text-gray-500 hover:text-gray-300 hover:border-white/20 transition-colors"><Plus size={10} /> Create Workflow</button>diff --git a/src/components/agents/WorkflowRunner.tsx b/src/components/agents/WorkflowRunner.tsxindex 507936c9..6c8e28d7 100644--- a/src/components/agents/WorkflowRunner.tsx+++ b/src/components/agents/WorkflowRunner.tsx@@ -70,7 +70,7 @@ export function WorkflowRunner({<div className="flex items-center justify-between"><div><p className="text-[0.7rem] font-medium text-gray-200">{execution.workflowName}</p>- <p className="text-[0.6rem] text-gray-500">+ <p className="t-micro text-gray-500">{execution.status === 'running' || execution.status === 'waiting_input'? `Running... ${elapsed}s`: execution.status === 'completed'@@ -112,16 +112,16 @@ export function WorkflowRunner({<div key={step.id} className="flex items-start gap-2"><Icon size={11} className={`mt-0.5 shrink-0 ${STATUS_COLORS[status]}`} /><div className="flex-1 min-w-0">- <p className={`text-[0.65rem] ${status === 'completed' || status === 'running' || status === 'waiting' ? 'text-gray-300' : 'text-gray-500'}`}>+ <p className={`t-micro ${status === 'completed' || status === 'running' || status === 'waiting' ? 'text-gray-300' : 'text-gray-500'}`}>{step.label}</p>{result?.output && status === 'completed' && (- <p className="text-[0.6rem] text-gray-500 truncate mt-0.5">+ <p className="t-micro text-gray-500 truncate mt-0.5">{result.output.substring(0, 100)}</p>)}{result?.error && (- <p className="text-[0.6rem] text-red-400/70 mt-0.5">{result.error}</p>+ <p className="t-micro text-red-400/70 mt-0.5">{result.error}</p>)}</div></div>@@ -132,7 +132,7 @@ export function WorkflowRunner({{/* User input prompt */}{waitingForInput && (<div className="space-y-1.5 pt-1 border-t border-white/5">- <p className="text-[0.65rem] text-amber-400">{waitingForInput}</p>+ <p className="t-micro text-amber-400">{waitingForInput}</p><div className="flex gap-1.5"><inputvalue={inputValue}@@ -154,7 +154,7 @@ export function WorkflowRunner({{/* Error */}{execution.error && (- <p className="text-[0.65rem] text-red-400 bg-red-500/5 rounded px-2 py-1 border border-red-500/20">+ <p className="t-micro text-red-400 bg-red-500/5 rounded px-2 py-1 border border-red-500/20">{execution.error}</p>)}diff --git a/src/components/chat/ABCompare.tsx b/src/components/chat/ABCompare.tsxindex 206aa159..2bde7585 100644--- a/src/components/chat/ABCompare.tsx+++ b/src/components/chat/ABCompare.tsx@@ -74,18 +74,18 @@ export function ABCompare() {<selectvalue={modelA}onChange={(e) => setModelA(e.target.value)}- className="px-2 py-1 rounded-lg bg-red-500/10 border border-red-500/30 text-[0.6rem] text-red-300 focus:outline-none"+ className="px-2 py-1 rounded-lg bg-red-500/10 border border-red-500/30 t-micro text-red-300 focus:outline-none"><option value="">Model A</option>{textModels.map(m => (<option key={m.name} value={m.name}>{m.name}</option>))}</select>- <span className="text-[0.6rem] text-gray-500 font-bold">VS</span>+ <span className="t-micro text-gray-500 font-bold">VS</span><selectvalue={modelB}onChange={(e) => setModelB(e.target.value)}- className="px-2 py-1 rounded-lg bg-blue-500/10 border border-blue-500/30 text-[0.6rem] text-blue-300 focus:outline-none"+ className="px-2 py-1 rounded-lg bg-blue-500/10 border border-blue-500/30 t-micro text-blue-300 focus:outline-none"><option value="">Model B</option>{textModels.map(m => (@@ -101,7 +101,7 @@ export function ABCompare() {{/* Model A column */}<div className="flex-1 flex flex-col border-r border-white/5"><div className="px-3 py-1.5 border-b border-white/5 flex items-center justify-between">- <span className="text-[0.6rem] font-medium text-red-400">{modelA || 'Select Model A'}</span>+ <span className="t-micro font-medium text-red-400">{modelA || 'Select Model A'}</span>{statsA && (<div className="flex items-center gap-2 text-[0.5rem] text-gray-500 lu-hud-num"><span className="flex items-center gap-0.5"><Zap size={8} />{statsA.tokensPerSec.toFixed(1)} t/s</span>@@ -126,7 +126,7 @@ export function ABCompare() {{/* Model B column */}<div className="flex-1 flex flex-col"><div className="px-3 py-1.5 border-b border-white/5 flex items-center justify-between">- <span className="text-[0.6rem] font-medium text-blue-400">{modelB || 'Select Model B'}</span>+ <span className="t-micro font-medium text-blue-400">{modelB || 'Select Model B'}</span>{statsB && (<div className="flex items-center gap-2 text-[0.5rem] text-gray-500 lu-hud-num"><span className="flex items-center gap-0.5"><Zap size={8} />{statsB.tokensPerSec.toFixed(1)} t/s</span>diff --git a/src/components/chat/AgentModeToggle.tsx b/src/components/chat/AgentModeToggle.tsxindex 116a2e2f..f614f1c4 100644--- a/src/components/chat/AgentModeToggle.tsx+++ b/src/components/chat/AgentModeToggle.tsx@@ -10,6 +10,7 @@ import { canUseTools } from '../../lib/tool-support'import { FEATURE_FLAGS } from '../../lib/constants'import { AgentWorkspaceDialog } from './AgentWorkspaceDialog'import type { AgentWorkspace } from '../../types/agent-workspace'+import { MOTION_S } from '../ui/motion'export function AgentModeToggle() {const [showNewChatModal, setShowNewChatModal] = useState(false)@@ -158,7 +159,7 @@ export function AgentModeToggle() {<motion.divinitial={{ opacity: 0, y: 10 }}animate={{ opacity: 1, y: 0 }}- transition={{ duration: 0.2 }}+ transition={{ duration: MOTION_S.base }}className="text-center space-y-3"><div className="flex justify-center">@@ -182,7 +183,7 @@ export function AgentModeToggle() {onChange={(e) => setNeverShowChecked(e.target.checked)}className="w-3.5 h-3.5 rounded border-white/20 bg-white/5 text-green-500 focus:ring-green-500/30 focus:ring-offset-0 cursor-pointer"/>- <span className="text-[0.65rem] text-gray-500 group-hover:text-gray-400 transition-colors select-none">+ <span className="t-micro text-gray-500 group-hover:text-gray-400 transition-colors select-none">Don't show this again</span></label>diff --git a/src/components/chat/AgentWorkspaceDialog.tsx b/src/components/chat/AgentWorkspaceDialog.tsxindex 0d7c52a2..ec39d063 100644--- a/src/components/chat/AgentWorkspaceDialog.tsx+++ b/src/components/chat/AgentWorkspaceDialog.tsx@@ -220,7 +220,7 @@ export function AgentWorkspaceDialog({className="w-3 h-3"data-testid="agent-workspace-remember-default"/>- <span className="text-[0.65rem] text-gray-600 dark:text-gray-400">+ <span className="t-micro text-gray-600 dark:text-gray-400">Remember as default. Future chats open here without asking.</span></label>@@ -228,7 +228,7 @@ export function AgentWorkspaceDialog({)}{error && (- <p className="text-[0.65rem] text-red-500 text-center">{error}</p>+ <p className="t-micro text-red-500 text-center">{error}</p>)}<div className="flex items-center justify-end gap-2 pt-1">@@ -276,7 +276,7 @@ function WorkspaceOption({ icon, title, body, monoBody, onClick, disabled }: Opt{title}</span><span- className={`block text-[0.65rem] text-gray-500 truncate ${+ className={`block t-micro text-gray-500 truncate ${monoBody ? 'font-mono' : ''}`}>diff --git a/src/components/chat/ApprovalDialog.tsx b/src/components/chat/ApprovalDialog.tsxindex 188d45f6..f28dc9b8 100644--- a/src/components/chat/ApprovalDialog.tsx+++ b/src/components/chat/ApprovalDialog.tsx@@ -2,6 +2,7 @@ import { motion, AnimatePresence } from 'framer-motion'import { useState } from 'react'import { ChevronDown } from 'lucide-react'import type { AgentToolCall } from '../../types/agent-mode'+import { MOTION_S } from '../ui/motion'interface Props {toolCall: AgentToolCall@@ -36,14 +37,14 @@ export function ApprovalDialog({ toolCall, onApprove, onReject }: Props) {initial={{ opacity: 0, y: 4 }}animate={{ opacity: 1, y: 0 }}exit={{ opacity: 0, y: 4 }}- transition={{ duration: 0.12 }}+ transition={{ duration: MOTION_S.fast }}className="mb-1.5 rounded-md border border-gray-200 dark:border-white/[0.08] bg-gray-50 dark:bg-white/[0.025] overflow-hidden"><div className="flex items-center gap-2 px-2.5 py-1.5"><span className="text-[0.55rem] uppercase tracking-wider text-gray-500 dark:text-gray-500 font-medium">Approve</span>- <code className="text-[0.65rem] text-gray-700 dark:text-gray-300 font-medium truncate flex-1 min-w-0">+ <code className="t-micro text-gray-700 dark:text-gray-300 font-medium truncate flex-1 min-w-0">{toolCall.toolName}</code><button@@ -59,13 +60,13 @@ export function ApprovalDialog({ toolCall, onApprove, onReject }: Props) {<div className="shrink-0 flex items-center gap-1 ml-1"><buttononClick={onReject}- className="px-2 py-0.5 rounded text-[0.6rem] text-gray-600 dark:text-gray-400 hover:bg-black/5 dark:hover:bg-white/5 border border-gray-200 dark:border-white/10 transition-colors"+ className="px-2 py-0.5 rounded t-micro text-gray-600 dark:text-gray-400 hover:bg-black/5 dark:hover:bg-white/5 border border-gray-200 dark:border-white/10 transition-colors">Reject</button><buttononClick={onApprove}- className="px-2 py-0.5 rounded text-[0.6rem] text-gray-800 dark:text-gray-100 bg-gray-100 dark:bg-white/10 hover:bg-gray-200 dark:hover:bg-white/15 border border-gray-300 dark:border-white/15 transition-colors font-medium"+ className="px-2 py-0.5 rounded t-micro text-gray-800 dark:text-gray-100 bg-gray-100 dark:bg-white/10 hover:bg-gray-200 dark:hover:bg-white/15 border border-gray-300 dark:border-white/15 transition-colors font-medium">Approve</button>@@ -81,7 +82,7 @@ export function ApprovalDialog({ toolCall, onApprove, onReject }: Props) {initial={{ height: 0, opacity: 0 }}animate={{ height: 'auto', opacity: 1 }}exit={{ height: 0, opacity: 0 }}- transition={{ duration: 0.15 }}+ transition={{ duration: MOTION_S.base }}className="overflow-hidden border-t border-gray-200 dark:border-white/[0.06]"><pre className="text-[0.55rem] leading-relaxed text-gray-600 dark:text-gray-400 px-2.5 py-1.5 max-h-[180px] overflow-auto scrollbar-thin whitespace-pre-wrap break-words">diff --git a/src/components/chat/ChatArtifactCard.tsx b/src/components/chat/ChatArtifactCard.tsxindex 5b748aa0..b3664890 100644--- a/src/components/chat/ChatArtifactCard.tsx+++ b/src/components/chat/ChatArtifactCard.tsx@@ -81,14 +81,14 @@ export function ChatArtifactCard({ artifact }: { artifact: ChatArtifact }) {onClick={handleDownload}disabled={saveState === 'saving'}title="Download / Save as…"- className="flex items-center gap-1 px-1.5 py-0.5 rounded text-[0.6rem] font-medium bg-blue-500/15 text-blue-500 hover:bg-blue-500/25 border border-blue-500/30 transition-colors disabled:opacity-50 shrink-0"+ className="flex items-center gap-1 px-1.5 py-0.5 rounded t-micro font-medium bg-blue-500/15 text-blue-500 hover:bg-blue-500/25 border border-blue-500/30 transition-colors disabled:opacity-50 shrink-0">{saveState === 'done' ? <Check size={11} /> : <Download size={11} />}<span>{saveState === 'done' ? 'Saved' : saveState === 'saving' ? '…' : 'Download'}</span></button></div>{/* Scrollable preview */}- <pre className="px-2.5 py-1.5 text-[0.65rem] leading-snug text-gray-700 dark:text-gray-300 font-mono overflow-auto max-h-64 scrollbar-thin whitespace-pre">+ <pre className="px-2.5 py-1.5 t-micro leading-snug text-gray-700 dark:text-gray-300 font-mono overflow-auto max-h-64 scrollbar-thin whitespace-pre">{preview}{hiddenLines > 0 ? `\n\n… ${hiddenLines} more line${hiddenLines === 1 ? '' : 's'}. Download for the full file` : ''}</pre>diff --git a/src/components/chat/ChatInput.tsx b/src/components/chat/ChatInput.tsxindex cb0e2825..861c1152 100644--- a/src/components/chat/ChatInput.tsx+++ b/src/components/chat/ChatInput.tsx@@ -293,7 +293,7 @@ export function ChatInput({ onSend, onStop, isGenerating, pendingApproval, onApp>{/* Slash-command autocomplete — floats above the composer */}{cmdMenu.length > 0 && (- <div className="absolute bottom-full left-0 right-0 mb-1.5 z-50 max-h-64 overflow-y-auto scrollbar-thin rounded-lg border border-gray-200 dark:border-white/10 bg-white dark:bg-[#1f1f1f] shadow-xl py-1">+ <div className="absolute bottom-full left-0 right-0 mb-1.5 z-50 max-h-64 overflow-y-auto scrollbar-thin rounded-lg lu-elevated py-1"><div className="px-2.5 py-1 flex items-center gap-1 text-[0.5rem] uppercase tracking-widest text-gray-400 dark:text-gray-600"><Terminal size={9} /> Agent commands</div>@@ -307,8 +307,8 @@ export function ChatInput({ onSend, onStop, isGenerating, pendingApproval, onApp}`}><span className="text-[0.72rem] font-medium text-gray-800 dark:text-gray-100 shrink-0">/{cmd.name}</span>- {cmd.argHint && <span className="text-[0.6rem] text-gray-400 dark:text-gray-500 shrink-0">{cmd.argHint}</span>}- <span className="text-[0.6rem] text-gray-500 dark:text-gray-400 truncate ml-auto">{cmd.summary}</span>+ {cmd.argHint && <span className="t-micro text-gray-400 dark:text-gray-500 shrink-0">{cmd.argHint}</span>}+ <span className="t-micro text-gray-500 dark:text-gray-400 truncate ml-auto">{cmd.summary}</span></button>))}</div>@@ -335,7 +335,7 @@ export function ChatInput({ onSend, onStop, isGenerating, pendingApproval, onApp{/* Non-image attach hint (GH #69) — the clip is images-only; PDFs, Word,and text files go through the Documents panel so the model can read them. */}{docHint && (- <div className="flex items-center gap-2 mb-1.5 px-2 py-1 rounded-md bg-amber-500/10 border border-amber-500/20 text-[0.62rem] text-amber-700 dark:text-amber-300">+ <div className="flex items-center gap-2 mb-1.5 px-2 py-1 rounded-md bg-amber-500/10 border border-amber-500/20 t-micro text-amber-700 dark:text-amber-300"><span className="flex-1">The clip attaches images. To ask about a PDF, Word, or text file, add it in the Documents panel.</span>{onAttachDocs && (<button@@ -371,7 +371,7 @@ export function ChatInput({ onSend, onStop, isGenerating, pendingApproval, onApp><X size={8} /></button>- <span className="absolute bottom-0 left-0 right-0 bg-black/60 text-[0.4rem] text-gray-300 text-center rounded-b-lg truncate px-0.5">+ <span className="absolute bottom-0 left-0 right-0 bg-black/60 text-[0.45rem] text-gray-300 text-center rounded-b-lg truncate px-0.5">{img.name}</span></div>@@ -486,7 +486,7 @@ export function ChatInput({ onSend, onStop, isGenerating, pendingApproval, onApp<spandata-testid="composer-cloud-state"title="Cloud mode: this message runs on LU's hosted GPUs and is billed to your lu-labs.ai credits. The Cloud switch up in the header turns it off."- className="flex items-center gap-1 px-1.5 py-1.5 rounded-md shrink-0 text-[0.6rem] font-medium bg-lu-cloud/15 text-lu-cloud dark:text-lu-cloud-lift border border-lu-cloud/30"+ className="flex items-center gap-1 px-1.5 py-1.5 rounded-md shrink-0 t-micro font-medium bg-lu-cloud/15 text-lu-cloud dark:text-lu-cloud-lift border border-lu-cloud/30"><imgsrc={MONOGRAM}@@ -515,7 +515,7 @@ export function ChatInput({ onSend, onStop, isGenerating, pendingApproval, onAppDruck steht jetzt als eine Regel in index.css und laeuft ueberdie `transition` von `.lu-control` weich aus; die beidenKnoepfe brauchen framer-motion dafuer nicht mehr. */}- <div className="shrink-0 w-[26px] h-[26px]" data-testid="composer-send-slot">+ <div className="shrink-0 w-[var(--control-h-sm)] h-[var(--control-h-sm)]" data-testid="composer-send-slot">{isGenerating ? (<buttononClick={onStop}diff --git a/src/components/chat/ChatModeTabs.tsx b/src/components/chat/ChatModeTabs.tsxindex f9ac8012..5de52285 100644--- a/src/components/chat/ChatModeTabs.tsx+++ b/src/components/chat/ChatModeTabs.tsx@@ -21,7 +21,7 @@ export function ChatModeTabs() {key={mode}onClick={() => !disabled && setChatMode(mode)}disabled={disabled}- className={`flex items-center gap-1 px-2 py-0.5 rounded text-[0.55rem] font-medium transition-all ${+ className={`flex items-center gap-1 px-2 py-0.5 rounded text-[0.55rem] font-medium transition-colors ${isActive? 'bg-white/10 text-white border border-white/15': disabled@@ -31,7 +31,7 @@ export function ChatModeTabs() {><Icon size={9} /><span>{label}</span>- {tag && <span className="text-[0.4rem] text-gray-600 ml-0.5">{tag}</span>}+ {tag && <span className="text-[0.45rem] text-gray-600 ml-0.5">{tag}</span>}</button>)})}diff --git a/src/components/chat/CodeBlock.tsx b/src/components/chat/CodeBlock.tsxindex 9e8efe21..8fdf7efe 100644--- a/src/components/chat/CodeBlock.tsx+++ b/src/components/chat/CodeBlock.tsx@@ -183,10 +183,10 @@ export function CodeBlock({ code, language }: Props) {return (<div className="relative group rounded-lg overflow-hidden my-1.5 border border-gray-200 dark:border-white/5"><div className="flex items-center justify-between px-3 py-1 bg-gray-50 dark:bg-white/5 border-b border-gray-200 dark:border-white/5">- <span className="text-[0.6rem] text-gray-400 font-mono">{language || 'code'}</span>+ <span className="t-micro text-gray-400 font-mono">{language || 'code'}</span><buttononClick={handleCopy}- className="flex items-center gap-1 text-[0.6rem] text-gray-400 hover:text-gray-700 dark:hover:text-white transition-colors"+ className="flex items-center gap-1 t-micro text-gray-400 hover:text-gray-700 dark:hover:text-white transition-colors"aria-label="Copy code">{copied ? <Check size={11} /> : <Copy size={11} />}diff --git a/src/components/chat/CodexConfirmDialog.tsx b/src/components/chat/CodexConfirmDialog.tsxindex 807b75e7..5cf8fb25 100644--- a/src/components/chat/CodexConfirmDialog.tsx+++ b/src/components/chat/CodexConfirmDialog.tsx@@ -34,7 +34,7 @@ export function CodexConfirmDialog() {return (<div className="px-1 py-0.5" data-codex-confirm><div className="rounded-lg border border-purple-500/20 bg-purple-500/[0.04] px-2 py-1.5">- <div className="flex items-center gap-1.5 text-[0.65rem] text-gray-700 dark:text-gray-300">+ <div className="flex items-center gap-1.5 t-micro text-gray-700 dark:text-gray-300"><Terminal size={10} className="text-purple-400 shrink-0" /><span className="font-mono">{pending.toolName}</span><span className="text-gray-500">needs your ok</span>@@ -48,13 +48,13 @@ export function CodexConfirmDialog() {<buttononClick={() => answer(true)}autoFocus- className="px-2 py-0.5 rounded text-[0.62rem] font-medium bg-emerald-500/15 text-emerald-700 dark:text-emerald-300 hover:bg-emerald-500/25 transition-colors"+ className="px-2 py-0.5 rounded t-micro font-medium bg-emerald-500/15 text-emerald-700 dark:text-emerald-300 hover:bg-emerald-500/25 transition-colors">Run</button><buttononClick={() => answer(false)}- className="px-2 py-0.5 rounded text-[0.62rem] text-gray-600 dark:text-gray-400 hover:bg-gray-200/60 dark:hover:bg-white/5 transition-colors"+ className="px-2 py-0.5 rounded t-micro text-gray-600 dark:text-gray-400 hover:bg-gray-200/60 dark:hover:bg-white/5 transition-colors">No</button>@@ -65,7 +65,7 @@ export function CodexConfirmDialog() {<buttononClick={stopAsking}title="Run this and every later command in this session without asking"- className="text-[0.58rem] text-gray-500 hover:text-gray-800 dark:hover:text-gray-200 transition-colors"+ className="t-micro text-gray-500 hover:text-gray-800 dark:hover:text-gray-200 transition-colors">Accept without asking</button>diff --git a/src/components/chat/CodexEventBlock.tsx b/src/components/chat/CodexEventBlock.tsxindex 26f30afd..ffffefaa 100644--- a/src/components/chat/CodexEventBlock.tsx+++ b/src/components/chat/CodexEventBlock.tsx@@ -49,7 +49,7 @@ function CodexEventBlockImpl({ event }: Props) {className="flex items-center gap-1.5 py-0.5 text-left hover:opacity-80 transition-opacity w-full"><Icon size={10} className={color} />- <span className={`text-[0.6rem] ${color}`}>{label}</span>+ <span className={`t-micro ${color}`}>{label}</span><ChevronDown size={8} className={`text-gray-600 ml-auto transition-transform ${open ? 'rotate-180' : ''}`} /></button>@@ -58,7 +58,7 @@ function CodexEventBlockImpl({ event }: Props) {{hasDiff ? (<DiffView diff={event.diff!} />) : (- <pre className={`text-[0.58rem] leading-relaxed rounded px-2 py-1 overflow-auto scrollbar-thin max-h-[250px] ${+ <pre className={`t-micro leading-relaxed rounded px-2 py-1 overflow-auto scrollbar-thin max-h-[250px] ${event.type === 'terminal_output'? 'bg-black/20 text-green-300/70': event.type === 'error'diff --git a/src/components/chat/CodexModeDropdown.tsx b/src/components/chat/CodexModeDropdown.tsxindex 0735dd2e..7b3604fa 100644--- a/src/components/chat/CodexModeDropdown.tsx+++ b/src/components/chat/CodexModeDropdown.tsx@@ -101,7 +101,7 @@ export function CodexModeDropdown({ openUpward = false }: { openUpward?: boolean{open && (<><div className="fixed inset-0 z-40" onClick={() => setOpen(false)} />- <div className={`absolute right-0 z-50 w-60 rounded-lg bg-white dark:bg-[#262626] border border-gray-200 dark:border-white/10 shadow-xl py-1.5 ${openUpward ? 'bottom-full mb-1' : 'top-full mt-1'}`}>+ <div className={`absolute right-0 z-50 w-60 rounded-lg lu-elevated py-1.5 ${openUpward ? 'bottom-full mb-1' : 'top-full mt-1'}`}>{!activeConvId ? (<p className="px-3 py-1.5 text-[0.5rem] text-gray-400">Open a coding chat first, the mode lives on the conversation.diff --git a/src/components/chat/CodexView.tsx b/src/components/chat/CodexView.tsxindex 5a9c73f4..b4c12f70 100644--- a/src/components/chat/CodexView.tsx+++ b/src/components/chat/CodexView.tsx@@ -178,12 +178,12 @@ export function CodexView() {{gitStatus && !gitStatus.installed && (<div className="flex items-center gap-2 px-3 py-1.5 border-b border-amber-500/20 bg-amber-500/[0.06]"><GitBranch size={12} className="text-amber-500 shrink-0" />- <span className="text-[0.6rem] text-amber-600 dark:text-amber-400/90 flex-1 leading-tight">+ <span className="t-micro text-amber-600 dark:text-amber-400/90 flex-1 leading-tight">Git isn't installed. The coding agent needs it for diffs, commits and history.</span><buttononClick={() => openExternal(gitStatus.download_url)}- className="flex items-center gap-1 px-2 py-0.5 rounded text-[0.6rem] font-medium bg-amber-500/15 text-amber-600 dark:text-amber-300 hover:bg-amber-500/25 border border-amber-500/30 transition-colors"+ className="flex items-center gap-1 px-2 py-0.5 rounded t-micro font-medium bg-amber-500/15 text-amber-600 dark:text-amber-300 hover:bg-amber-500/25 border border-amber-500/30 transition-colors"><Download size={11} /> Install Git</button>@@ -191,7 +191,7 @@ export function CodexView() {onClick={recheckGit}disabled={gitChecking}title="Re-check after installing Git"- className="flex items-center gap-1 px-1.5 py-0.5 rounded text-[0.6rem] text-gray-500 hover:text-gray-700 dark:hover:text-gray-300 hover:bg-gray-100 dark:hover:bg-white/5 transition-colors disabled:opacity-50"+ className="flex items-center gap-1 px-1.5 py-0.5 rounded t-micro text-gray-500 hover:text-gray-700 dark:hover:text-gray-300 hover:bg-gray-100 dark:hover:bg-white/5 transition-colors disabled:opacity-50"><RefreshCw size={11} className={gitChecking ? 'animate-spin' : ''} /></button>@@ -207,7 +207,7 @@ export function CodexView() {<div ref={scrollRef} className="flex-1 overflow-y-auto scrollbar-thin">{messages.length === 0 ? (<div className="flex flex-col items-center justify-center h-full text-center">- <Code size={24} className="text-gray-300 dark:text-gray-700 mb-2" />+ <Code size={28} className="text-gray-300 dark:text-gray-700 mb-2" /><p className="text-[0.7rem] text-gray-500 font-medium">Coding Agent</p><p className="text-[0.55rem] text-gray-400 dark:text-gray-600 mt-0.5 max-w-[300px]">Send a coding instruction. The coding agent will read your codebase, write code, and run commands.@@ -230,7 +230,7 @@ export function CodexView() {const warn = msg.notice === 'warn'return (<div key={msg.id} className="px-3 py-1" data-testid="codex-notice">- <div className={`flex items-start gap-1.5 px-2 py-1 rounded border text-[0.6rem] leading-snug ${+ <div className={`flex items-start gap-1.5 px-2 py-1 rounded border t-micro leading-snug ${warn? 'border-amber-300/70 dark:border-amber-500/30 bg-amber-50 dark:bg-amber-500/10 text-amber-900 dark:text-amber-200': 'border-gray-200 dark:border-white/10 bg-gray-50/60 dark:bg-white/[0.02] text-gray-500 dark:text-gray-400'diff --git a/src/components/chat/ContextDropdown.tsx b/src/components/chat/ContextDropdown.tsxindex cc6e56ae..1a20f1f7 100644--- a/src/components/chat/ContextDropdown.tsx+++ b/src/components/chat/ContextDropdown.tsx@@ -142,7 +142,7 @@ export function ContextDropdown({ children }: { children?: ReactNode }) {}const rowCls = (selected: boolean) =>- `flex items-center justify-between gap-3 text-left px-2 py-1 rounded-md text-[0.6rem] transition-colors ${+ `flex items-center justify-between gap-3 text-left px-2 py-1 rounded-md t-micro transition-colors ${selected? 'bg-gray-100 dark:bg-white/[0.08] text-gray-900 dark:text-white font-medium': 'text-gray-500 hover:bg-gray-50 dark:hover:bg-white/[0.04] hover:text-gray-700 dark:hover:text-gray-200'@@ -195,7 +195,7 @@ export function ContextDropdown({ children }: { children?: ReactNode }) {<divonClick={() => setApplyError(null)}title="Click to dismiss"- className="absolute right-0 top-full mt-1 z-50 w-64 p-2 rounded-md border border-red-500/25 bg-white dark:bg-[#1a1a1a] shadow-xl cursor-pointer"+ className="absolute right-0 top-full mt-1 z-50 w-64 p-2 rounded-md border border-red-500/25 bg-white dark:bg-lu-overlay shadow-xl cursor-pointer"><div className="flex items-start gap-1.5 text-red-500 dark:text-red-300"><AlertTriangle size={10} className="mt-0.5 shrink-0" />@@ -208,7 +208,7 @@ export function ContextDropdown({ children }: { children?: ReactNode }) {{open && (<><div className="fixed inset-0 z-40" onClick={() => setOpen(false)} />- <div className="absolute right-0 top-full mt-1 z-50 min-w-[140px] rounded-lg bg-white dark:bg-[#1a1a1a] border border-gray-200 dark:border-white/10 shadow-xl p-1 flex flex-col gap-0.5">+ <div className="absolute right-0 top-full mt-1 z-50 min-w-[140px] rounded-lg lu-elevated p-1 flex flex-col gap-0.5"><button onClick={() => apply(0)} className={rowCls(selected === 0)}><span>Auto{ctx.provider === 'ollama' ? ` · ${fmt(effectiveContextWindow(ctx.modelMax, 0))}` : ctx.provider === 'builtin' ? ' · 8K' : ''}</span>{selected === 0 && <Check size={10} />}diff --git a/src/components/chat/ConversationModelNote.tsx b/src/components/chat/ConversationModelNote.tsxindex 5c745f5f..d761b699 100644--- a/src/components/chat/ConversationModelNote.tsx+++ b/src/components/chat/ConversationModelNote.tsx@@ -31,7 +31,7 @@ export function ConversationModelNote() {return (<span- className="hidden sm:flex items-center gap-1 h-[26px] px-2 rounded-md border border-white/[0.06] text-[0.6rem] text-gray-500 dark:text-gray-400 shrink-0"+ className="hidden sm:flex items-center gap-1 h-[var(--control-h-sm)] px-2 rounded-md border border-white/[0.06] t-micro text-gray-500 dark:text-gray-400 shrink-0"title={`The answers in this chat were written by ${ran}. The picker beside this is what the next answer would run on.`}><span className="opacity-70">answers:</span>diff --git a/src/components/chat/DiffView.tsx b/src/components/chat/DiffView.tsxindex eb86f16d..52ae1c9a 100644--- a/src/components/chat/DiffView.tsx+++ b/src/components/chat/DiffView.tsx@@ -38,7 +38,7 @@ export function DiffView({ diff, maxLines = 200 }: Props) {</span></div>)}- <pre className="text-[0.58rem] leading-relaxed font-mono overflow-auto scrollbar-thin max-h-[300px]">+ <pre className="t-micro leading-relaxed font-mono overflow-auto scrollbar-thin max-h-[300px]">{lines.map((l, i) => {if (l.kind === 'header') {return (diff --git a/src/components/chat/GoalBar.tsx b/src/components/chat/GoalBar.tsxindex 42ef517f..a8e78277 100644--- a/src/components/chat/GoalBar.tsx+++ b/src/components/chat/GoalBar.tsx@@ -22,7 +22,7 @@ export function GoalBar() {<Target size={9} className="text-purple-400 shrink-0" /><span className="text-[0.55rem] uppercase tracking-wider text-gray-500 shrink-0">goal</span><span- className="flex-1 min-w-0 truncate text-[0.6rem] text-gray-700 dark:text-gray-300"+ className="flex-1 min-w-0 truncate t-micro text-gray-700 dark:text-gray-300"title={goal.text}>{goal.text}diff --git a/src/components/chat/GroupCostHint.tsx b/src/components/chat/GroupCostHint.tsxindex ee8dc740..463aea70 100644--- a/src/components/chat/GroupCostHint.tsx+++ b/src/components/chat/GroupCostHint.tsx@@ -56,7 +56,7 @@ export function GroupCostHint() {<Users size={9} className="text-amber-400 shrink-0" /><span className="text-[0.55rem] uppercase tracking-wider text-gray-500 shrink-0">group</span><span- className="flex-1 min-w-0 truncate text-[0.6rem] text-gray-700 dark:text-gray-300"+ className="flex-1 min-w-0 truncate t-micro text-gray-700 dark:text-gray-300"title={groupModels.join(', ')}>{groupCostHintText(groupModels.length, builtinSpeakers)}diff --git a/src/components/chat/HtmlPreviewFrame.tsx b/src/components/chat/HtmlPreviewFrame.tsxindex f98e12a7..55dbee9b 100644--- a/src/components/chat/HtmlPreviewFrame.tsx+++ b/src/components/chat/HtmlPreviewFrame.tsx@@ -41,7 +41,7 @@ export function HtmlPreviewFrame({title={title}className={className ??- 'bg-white border border-gray-200 dark:border-white/10 shadow-lg rounded transition-all'+ 'bg-white border border-gray-200 dark:border-white/10 shadow-lg rounded transition-[width,height]'}style={{width: viewport === 'desktop' ? '100%' : `${dims.width}px`,@@ -83,7 +83,12 @@ function ViewportBtn({ icon: Icon, active, onClick, label, compact }: ViewportBt<buttononClick={onClick}className={- `flex items-center justify-center ${compact ? 'w-5 h-5' : 'w-7 h-7'} rounded transition-colors ` ++ // D-T07: der normale Knopf stand auf `w-7 h-7` (28px) — zwei Pixel neben+ // `--control-h-sm`, der Hoehe, auf der `.lu-control` und der+ // Modellwaehler schon stehen. Die kompakte Variante bleibt bei 20px:+ // sie sitzt in einer Leiste, die selbst nur 26px hoch ist, und hat+ // unterhalb der kleinsten Stufe bewusst keine Sprosse.+ `flex items-center justify-center ${compact ? 'w-5 h-5' : 'w-[var(--control-h-sm)] h-[var(--control-h-sm)]'} rounded transition-colors ` +(active? 'bg-white dark:bg-white/10 text-gray-900 dark:text-white shadow-sm': 'text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-white')diff --git a/src/components/chat/HtmlPreviewModal.tsx b/src/components/chat/HtmlPreviewModal.tsxindex 74a520fe..4ddeb014 100644--- a/src/components/chat/HtmlPreviewModal.tsx+++ b/src/components/chat/HtmlPreviewModal.tsx@@ -4,6 +4,7 @@ import { X, ExternalLink, RotateCw } from 'lucide-react'import { openExternal } from '../../api/backend'import { buildDocument, type Viewport } from '../../lib/html-preview'import { HtmlPreviewFrame, ViewportSwitcher } from './HtmlPreviewFrame'+import { MOTION_S } from '../ui/motion'interface Props {code: string@@ -48,15 +49,15 @@ export function HtmlPreviewModal({ code, language, onClose }: Props) {initial={{ opacity: 0 }}animate={{ opacity: 1 }}exit={{ opacity: 0 }}- transition={{ duration: 0.15 }}+ transition={{ duration: MOTION_S.base }}onClick={(e) => { if (e.target === e.currentTarget) onClose() }}><motion.div- className="bg-white dark:bg-gray-900 border border-gray-200 dark:border-white/10 rounded-lg shadow-2xl flex flex-col overflow-hidden w-full max-w-[95vw] h-[90vh] max-h-[900px]"+ className="lu-elevated rounded-lg flex flex-col overflow-hidden w-full max-w-[95vw] h-[90vh] max-h-[900px]"initial={{ scale: 0.96, opacity: 0 }}animate={{ scale: 1, opacity: 1 }}exit={{ scale: 0.96, opacity: 0 }}- transition={{ duration: 0.15 }}+ transition={{ duration: MOTION_S.base }}>{/* Header */}<div className="flex items-center justify-between gap-3 px-4 py-2.5 border-b border-gray-200 dark:border-white/10 bg-gray-50 dark:bg-white/[0.02]">@@ -64,7 +65,7 @@ export function HtmlPreviewModal({ code, language, onClose }: Props) {<span className="text-xs font-semibold tracking-wider uppercase text-gray-500 dark:text-gray-400">HTML Preview</span>- <span className="text-[0.6rem] text-gray-400 dark:text-gray-500 font-mono">+ <span className="t-micro text-gray-400 dark:text-gray-500 font-mono">{language || 'html'}</span></div>diff --git a/src/components/chat/LoopBar.tsx b/src/components/chat/LoopBar.tsxindex f71fcced..bbfc5af0 100644--- a/src/components/chat/LoopBar.tsx+++ b/src/components/chat/LoopBar.tsx@@ -38,8 +38,8 @@ export function LoopBar({ onStop }: Props) {<div className="w-full flex items-center gap-1.5 px-2 py-1 rounded-md border border-blue-500/25 bg-blue-500/[0.05]"><RefreshCw size={9} className="text-blue-400 shrink-0 animate-spin" style={{ animationDuration: '3s' }} /><span className="text-[0.55rem] uppercase tracking-wider text-gray-500 shrink-0">loop</span>- <span className="text-[0.6rem] text-gray-700 dark:text-gray-300 shrink-0">{passLabel}</span>- <span className="flex-1 min-w-0 truncate text-[0.6rem] text-gray-500" title={loop.task}>+ <span className="t-micro text-gray-700 dark:text-gray-300 shrink-0">{passLabel}</span>+ <span className="flex-1 min-w-0 truncate t-micro text-gray-500" title={loop.task}>{loop.task}</span><span className="text-[0.55rem] text-gray-500 shrink-0 tabular-nums">@@ -50,7 +50,7 @@ export function LoopBar({ onStop }: Props) {title="Stop the loop"className="flex items-center gap-1 px-1.5 py-0.5 rounded text-[0.55rem] text-gray-600 dark:text-gray-300 hover:bg-gray-200/60 dark:hover:bg-white/10 transition-colors shrink-0">- <Square size={7} /> stop+ <Square size={8} /> stop</button></div></div>diff --git a/src/components/chat/MemoryDebugPanel.tsx b/src/components/chat/MemoryDebugPanel.tsxindex 4f837c56..e572bb67 100644--- a/src/components/chat/MemoryDebugPanel.tsx+++ b/src/components/chat/MemoryDebugPanel.tsx@@ -21,7 +21,7 @@ export function MemoryDebugToggle() {onClick={() => setOpen(!open)}title="Memory: view, add or delete the context injected into prompts"className={- 'relative flex items-center justify-center h-[26px] w-[26px] rounded-md border transition-colors ' ++ 'relative flex items-center justify-center h-[var(--control-h-sm)] w-[var(--control-h-sm)] rounded-md border transition-colors ' +(open? 'border-purple-400/50 text-purple-500 dark:text-purple-300 bg-purple-500/[0.08]': 'border-gray-300 dark:border-white/[0.08] text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-200 hover:border-gray-400 dark:hover:border-white/15')@@ -102,14 +102,14 @@ function MemoryPopover({ onClose }: { onClose: () => void }) {onClick={onClose}><div- className="w-[420px] max-h-[68vh] bg-white dark:bg-[#262626] border border-gray-200 dark:border-white/10 rounded-xl shadow-2xl overflow-hidden flex flex-col"+ className="w-[420px] max-h-[68vh] lu-elevated rounded-xl overflow-hidden flex flex-col"onClick={(e) => e.stopPropagation()}>{/* Header */}<div className="flex items-center justify-between px-3 py-2 border-b border-gray-100 dark:border-white/[0.06] shrink-0"><div className="flex items-center gap-2"><Brain size={12} className="text-purple-400" />- <span className="text-[0.65rem] font-semibold text-gray-700 dark:text-gray-300">Memory ({entries.length})</span>+ <span className="t-micro font-semibold text-gray-700 dark:text-gray-300">Memory ({entries.length})</span></div><div className="flex items-center gap-1"><button@@ -130,18 +130,18 @@ function MemoryPopover({ onClose }: { onClose: () => void }) {value={newTitle}onChange={(e) => setNewTitle(e.target.value)}placeholder="Title (optional)"- className="w-full px-2 py-1 rounded bg-black/20 border border-white/10 text-[0.62rem] text-gray-200 placeholder-gray-600 focus:outline-none focus:border-purple-500/40"+ className="w-full px-2 py-1 rounded bg-black/20 border border-white/10 t-micro text-gray-200 placeholder-gray-600 focus:outline-none focus:border-purple-500/40"/><textareavalue={newContent}onChange={(e) => setNewContent(e.target.value)}placeholder="What should the model always remember? (injected into every prompt)"rows={3}- className="w-full px-2 py-1 rounded bg-black/20 border border-white/10 text-[0.62rem] text-gray-200 placeholder-gray-600 focus:outline-none focus:border-purple-500/40 resize-none"+ className="w-full px-2 py-1 rounded bg-black/20 border border-white/10 t-micro text-gray-200 placeholder-gray-600 focus:outline-none focus:border-purple-500/40 resize-none"/><div className="flex justify-end gap-1.5">- <button onClick={() => { setAdding(false); setNewTitle(''); setNewContent('') }} className="px-2 py-1 rounded text-[0.58rem] text-gray-400 hover:text-gray-200 hover:bg-white/10">Cancel</button>- <button onClick={handleAdd} disabled={!newContent.trim()} className="flex items-center gap-1 px-2.5 py-1 rounded text-[0.58rem] font-medium bg-purple-500/20 border border-purple-500/30 text-purple-200 hover:bg-purple-500/30 disabled:opacity-40">+ <button onClick={() => { setAdding(false); setNewTitle(''); setNewContent('') }} className="px-2 py-1 rounded t-micro text-gray-400 hover:text-gray-200 hover:bg-white/10">Cancel</button>+ <button onClick={handleAdd} disabled={!newContent.trim()} className="flex items-center gap-1 px-2.5 py-1 rounded t-micro font-medium bg-purple-500/20 border border-purple-500/30 text-purple-200 hover:bg-purple-500/30 disabled:opacity-40"><Plus size={10} /> Save memory</button></div>@@ -151,7 +151,7 @@ function MemoryPopover({ onClose }: { onClose: () => void }) {{/* Memory list — each row deletable on hover */}<div className="overflow-y-auto flex-1 scrollbar-thin">{entries.length === 0 ? (- <p className="text-[0.6rem] text-gray-600 px-3 py-5 text-center">No memories yet, click <span className="text-purple-400">Add</span> to write one.</p>+ <p className="t-micro text-gray-600 px-3 py-5 text-center">No memories yet, click <span className="text-purple-400">Add</span> to write one.</p>) : (entries.slice(0, 50).map((entry) => {const stale = entry.stale === true || typeof entry.supersededBy === 'string'@@ -159,14 +159,14 @@ function MemoryPopover({ onClose }: { onClose: () => void }) {<div key={entry.id} className={`group px-3 py-1.5 border-b border-white/[0.03] hover:bg-white/[0.02] ${stale ? 'opacity-50' : ''}`}><div className="flex items-center gap-1.5"><span className={`text-[0.5rem] uppercase font-bold tracking-wider ${typeColors[entry.type] || 'text-gray-500'}`}>{entry.type}</span>- <span className="text-[0.6rem] text-gray-300 font-medium truncate flex-1">{entry.title}</span>+ <span className="t-micro text-gray-300 font-medium truncate flex-1">{entry.title}</span>{stale && (<span className="flex items-center gap-0.5 text-[0.45rem] uppercase tracking-wider text-gray-500 shrink-0" title="Outdated, not injected"><Archive size={8} /> outdated</span>)}<buttononClick={() => removeMemory(entry.id)}title="Delete this memory"- className="shrink-0 p-0.5 rounded text-gray-600 opacity-0 group-hover:opacity-100 hover:text-red-400 hover:bg-red-500/10 transition-all"+ className="shrink-0 p-0.5 rounded text-gray-600 opacity-0 group-hover:opacity-100 hover:text-red-400 hover:bg-red-500/10 transition"><Trash2 size={11} /></button>diff --git a/src/components/chat/MessageBubble.tsx b/src/components/chat/MessageBubble.tsxindex 14ec8491..7c52b319 100644--- a/src/components/chat/MessageBubble.tsx+++ b/src/components/chat/MessageBubble.tsx@@ -23,6 +23,7 @@ import { ContextMenu } from '../ui/ContextMenu'import { buildMessageMenu, type MessageMenuHandlers } from '../ui/menu-actions'import { MONOGRAM, MONOGRAM_INVERT } from '../layout/brand'import { AVATAR_SLOT } from './avatar-slot'+import { MOTION_S } from '../ui/motion'interface Props {message: Message@@ -263,7 +264,7 @@ function MessageBubbleImpl({ message, onRegenerate, onEdit, pendingApprovalId, o}}initial={{ opacity: 0, y: 6 }}animate={{ opacity: 1, y: 0 }}- transition={{ duration: 0.15 }}+ transition={{ duration: MOTION_S.base }}>{/* Avatar — EIN Slot, zwei Inhalte (Audit §4, „Zwei Avatar-Systeme:Assistent rahmenlos, User als gerahmte Box").@@ -466,7 +467,7 @@ function MessageBubbleImpl({ message, onRegenerate, onEdit, pendingApprovalId, oscreen has always flagged cut-offs; the chat did not, so atruncated answer read as complete (David 2026-08-08). */}{truncationNotice(message.finishReason) && (- <div className="mt-1 inline-flex items-center gap-1 text-[0.6rem] text-amber-600/80 dark:text-amber-300/70">+ <div className="mt-1 inline-flex items-center gap-1 t-micro text-amber-600/80 dark:text-amber-300/70"><Scissors size={9} className="shrink-0" /><span>{truncationNotice(message.finishReason)}</span></div>@@ -476,7 +477,7 @@ function MessageBubbleImpl({ message, onRegenerate, onEdit, pendingApprovalId, oit is the model's text (G14-2); this labelled app noticenames the links that came from nowhere. */}{unbackedLinksNotice(message.unbackedLinks) && (- <div className="mt-1 flex items-start gap-1 text-[0.6rem] text-amber-600/80 dark:text-amber-300/70">+ <div className="mt-1 flex items-start gap-1 t-micro text-amber-600/80 dark:text-amber-300/70"><Unlink size={9} className="mt-0.5 shrink-0" /><span>{unbackedLinksNotice(message.unbackedLinks)}</span></div>@@ -490,7 +491,7 @@ function MessageBubbleImpl({ message, onRegenerate, onEdit, pendingApprovalId, oThe amber card below survives because it is a labelledapp hint with an action, not prose posing as an answer. */}{thoughtOnly && thoughtOnlyToolIntent && activeModel && isAgentCompatible(activeModel) && (- <div className="mt-1 flex items-start gap-2 px-2 py-1.5 rounded-md border border-amber-400/30 bg-amber-500/10 text-[0.65rem] text-amber-700 dark:text-amber-200">+ <div className="mt-1 flex items-start gap-2 px-2 py-1.5 rounded-md border border-amber-400/30 bg-amber-500/10 t-micro text-amber-700 dark:text-amber-200"><Wrench size={11} className="mt-0.5 shrink-0" /><div className="flex-1"><p className="font-medium">The model spent its whole reply deciding to call a tool, but Agent Mode is off, so it never said anything.</p>@@ -505,7 +506,7 @@ function MessageBubbleImpl({ message, onRegenerate, onEdit, pendingApprovalId, o</div>)}{suggestAgent && (- <div className="mt-2 flex items-start gap-2 px-2 py-1.5 rounded-md border border-amber-400/30 bg-amber-500/10 text-[0.65rem] text-amber-700 dark:text-amber-200">+ <div className="mt-2 flex items-start gap-2 px-2 py-1.5 rounded-md border border-amber-400/30 bg-amber-500/10 t-micro text-amber-700 dark:text-amber-200"><Wrench size={11} className="mt-0.5 shrink-0" /><div className="flex-1"><p className="font-medium">This model tried to call a tool, but Agent Mode is off for this chat.</p>diff --git a/src/components/chat/ModelPickerCard.tsx b/src/components/chat/ModelPickerCard.tsxindex 61a1231f..1cb4c2ff 100644--- a/src/components/chat/ModelPickerCard.tsx+++ b/src/components/chat/ModelPickerCard.tsx@@ -62,7 +62,7 @@ function ModelList({ models, selected, onPick }: { models: string[]; selected: skey={m}type="button"onClick={(e) => { e.stopPropagation(); onPick(m) }}- className={`w-full text-left px-2 py-1 rounded border text-[0.6rem] transition-colors truncate ${+ className={`w-full text-left px-2 py-1 rounded border t-micro transition-colors truncate ${m === selected? 'border-blue-400/40 bg-blue-500/10 text-gray-900 dark:text-gray-100': 'border-gray-200 dark:border-white/10 bg-gray-50 dark:bg-white/[0.03] text-gray-600 dark:text-gray-400 hover:border-gray-300 dark:hover:border-white/20'@@ -109,7 +109,7 @@ export function ModelPickerCard({ request }: { request: ModelPickRequest }) {return (<div className="mt-1 ml-5 rounded-md border border-blue-400/25 bg-blue-500/[0.04] px-2.5 py-2 space-y-1.5" data-testid="model-picker-card">- <div className="text-[0.6rem] font-medium text-gray-700 dark:text-gray-300">+ <div className="t-micro font-medium text-gray-700 dark:text-gray-300">Pick the {PICK_KIND_LABEL[request.kind]}<span className="ml-1 font-normal text-gray-500 dark:text-gray-500">runs before the VRAM swap</span></div>@@ -118,7 +118,7 @@ export function ModelPickerCard({ request }: { request: ModelPickRequest }) {<buttontype="button"onClick={(e) => { e.stopPropagation(); choose({ model: selected, save }) }}- className="flex items-center gap-1 px-2.5 py-1 rounded text-[0.6rem] font-medium text-blue-700 dark:text-blue-300 bg-blue-500/10 hover:bg-blue-500/15 border border-blue-500/25 transition-colors"+ className="flex items-center gap-1 px-2.5 py-1 rounded t-micro font-medium text-blue-700 dark:text-blue-300 bg-blue-500/10 hover:bg-blue-500/15 border border-blue-500/25 transition-colors"><Check size={10} /> Continue</button>diff --git a/src/components/chat/PermissionOverrideBar.tsx b/src/components/chat/PermissionOverrideBar.tsxindex 8f34b8a7..82124ff2 100644--- a/src/components/chat/PermissionOverrideBar.tsx+++ b/src/components/chat/PermissionOverrideBar.tsx@@ -63,13 +63,13 @@ export function PermissionOverrideBar() {}`}>{isLocked ? (- <Lock size={7} className="text-gray-700" />+ <Lock size={8} className="text-gray-700" />) : (<Icon size={8} className={isOn ? 'text-green-400' : 'text-gray-600'} />)}<span className={`flex-1 text-left ${isLocked ? 'line-through' : ''}`}>{label}</span>{isLocked ? (- <span className="text-[0.4rem] text-gray-700">soon</span>+ <span className="text-[0.45rem] text-gray-700">soon</span>) : (<div className={`w-1 h-1 rounded-full ${isOn ? 'bg-green-400' : 'bg-gray-700'}`} />)}diff --git a/src/components/chat/PlanBar.tsx b/src/components/chat/PlanBar.tsxindex 5c9ba5c5..14085e99 100644--- a/src/components/chat/PlanBar.tsx+++ b/src/components/chat/PlanBar.tsx@@ -91,7 +91,7 @@ export function PlanBar({ variant = 'header' }: Props) {</span>{!expanded && (<span- className="flex-1 min-w-0 truncate text-[0.6rem] text-gray-700 dark:text-gray-300"+ className="flex-1 min-w-0 truncate t-micro text-gray-700 dark:text-gray-300"title={headline.content}>{headline.content}@@ -122,7 +122,7 @@ export function PlanBar({ variant = 'header' }: Props) {<Circle size={10} className="text-gray-600 shrink-0 mt-[1px]" />)}<span- className={`text-[0.6rem] leading-snug ${+ className={`t-micro leading-snug ${t.status === 'completed'? 'text-gray-500 line-through': t.status === 'in_progress'diff --git a/src/components/chat/PluginsDropdown.tsx b/src/components/chat/PluginsDropdown.tsxindex e27c2e73..7c36aa0c 100644--- a/src/components/chat/PluginsDropdown.tsx+++ b/src/components/chat/PluginsDropdown.tsx@@ -119,14 +119,14 @@ export function PluginsDropdown({{open && (<><div className="fixed inset-0 z-40" onClick={() => setOpen(false)} />- <div className={`absolute right-0 z-50 w-56 rounded-lg bg-white dark:bg-[#262626] border border-gray-200 dark:border-white/10 shadow-xl py-1.5 ${openUpward ? 'bottom-full mb-1' : 'top-full mt-1'}`}>+ <div className={`absolute right-0 z-50 w-56 rounded-lg lu-elevated py-1.5 ${openUpward ? 'bottom-full mb-1' : 'top-full mt-1'}`}>{/* ── Chat Tools toggle (v2.5.3) ──────────────── */}<div className="px-2.5"><div className="w-full flex items-center justify-between py-1.5 gap-2"><div className="flex items-center gap-1.5 min-w-0"><Wrench size={10} className={chatToolsEnabled ? 'text-blue-400' : 'text-gray-400'} />- <span className="text-[0.6rem] font-medium text-gray-600 dark:text-gray-300">Chat Tools</span>+ <span className="t-micro font-medium text-gray-600 dark:text-gray-300">Chat Tools</span><span className="text-[0.5rem] text-gray-400 truncate">web · file · image · video</span></div><button@@ -162,7 +162,7 @@ export function PluginsDropdown({><div className="flex items-center gap-1.5"><Bone size={10} className={isCavemanActive ? 'text-amber-400' : 'text-gray-400'} />- <span className="text-[0.6rem] font-medium text-gray-600 dark:text-gray-300">Caveman Mode</span>+ <span className="t-micro font-medium text-gray-600 dark:text-gray-300">Caveman Mode</span></div><div className="flex items-center gap-1"><span className={`text-[0.55rem] ${isCavemanActive ? 'text-amber-400' : 'text-gray-500'}`}>@@ -210,7 +210,7 @@ export function PluginsDropdown({className="flex items-center gap-1.5 flex-1 min-w-0 text-left"><User size={10} className={isPersonaActive ? 'text-green-400' : 'text-gray-400'} />- <span className="text-[0.6rem] font-medium text-gray-600 dark:text-gray-300">Persona</span>+ <span className="t-micro font-medium text-gray-600 dark:text-gray-300">Persona</span><span className={`text-[0.55rem] truncate ${isPersonaActive ? 'text-green-400' : 'text-gray-500'}`}>{activePersona?.name || 'Unrestricted'}</span>@@ -273,7 +273,7 @@ export function PluginsDropdown({><div className="flex items-center gap-1.5"><Users size={10} className={isGroupActive ? 'text-purple-400' : 'text-gray-400'} />- <span className="text-[0.6rem] font-medium text-gray-600 dark:text-gray-300">Group chat</span>+ <span className="t-micro font-medium text-gray-600 dark:text-gray-300">Group chat</span><span className={`text-[0.55rem] ${isGroupActive ? 'text-purple-400' : 'text-gray-500'}`}>{isGroupActive ? `${groupModels.length} models` : 'Off'}</span>diff --git a/src/components/chat/RAGPanel.tsx b/src/components/chat/RAGPanel.tsxindex 73a6a9a5..c2ebd089 100644--- a/src/components/chat/RAGPanel.tsx+++ b/src/components/chat/RAGPanel.tsx@@ -21,6 +21,7 @@ import { useShallow } from 'zustand/react/shallow'import { useRAG } from '../../hooks/useRAG'import { useRAGStore } from '../../stores/ragStore'import { formatBytes } from '../../lib/formatters'+import { MOTION_S } from '../ui/motion'interface Props {conversationId: string | null@@ -51,11 +52,11 @@ export function RAGPanel({ conversationId, onClose }: Props) {if (!conversationId) {return (<motion.div- className="w-[280px] shrink-0 h-full border-l border-gray-200 dark:border-white/5 bg-white dark:bg-[#363636] flex flex-col"+ className="w-[280px] shrink-0 h-full border-l border-gray-200 dark:border-white/5 bg-white dark:bg-lu-overlay flex flex-col"initial={{ width: 0, opacity: 0 }}animate={{ width: 280, opacity: 1 }}exit={{ width: 0, opacity: 0 }}- transition={{ duration: 0.2 }}+ transition={{ duration: MOTION_S.base }}><div className="px-3 py-2.5 border-b border-gray-200 dark:border-white/5 flex items-center justify-between"><span className="text-xs font-medium text-gray-700 dark:text-gray-200">Document Chat</span>@@ -71,11 +72,11 @@ export function RAGPanel({ conversationId, onClose }: Props) {)}</div><div className="flex-1 flex flex-col items-center justify-center">- <MessageSquarePlus size={32} className="text-gray-300 dark:text-gray-600 mb-3" />+ <MessageSquarePlus size={28} className="text-gray-300 dark:text-gray-600 mb-3" /><p className="text-sm text-gray-400 dark:text-gray-500 text-center px-6">Start a conversation first</p>- <p className="text-[0.6rem] text-gray-300 dark:text-gray-600 text-center px-6 mt-1">+ <p className="t-micro text-gray-300 dark:text-gray-600 text-center px-6 mt-1">Document chat will be available once a conversation is active.</p></div>@@ -221,11 +222,11 @@ function RAGPanelInner({ conversationId, onClose }: { conversationId: string; onreturn (<motion.div- className="w-[280px] shrink-0 h-full border-l border-gray-200 dark:border-white/5 bg-white dark:bg-[#363636] flex flex-col"+ className="w-[280px] shrink-0 h-full border-l border-gray-200 dark:border-white/5 bg-white dark:bg-lu-overlay flex flex-col"initial={{ width: 0, opacity: 0 }}animate={{ width: 280, opacity: 1 }}exit={{ width: 0, opacity: 0 }}- transition={{ duration: 0.2 }}+ transition={{ duration: MOTION_S.base }}>{/* Header: Title + on/off toggle + Clear-all + Collapse */}<div className="px-3 py-2.5 border-b border-gray-200 dark:border-white/5 flex items-center justify-between gap-2">@@ -279,7 +280,7 @@ function RAGPanelInner({ conversationId, onClose }: { conversationId: string; on><div className="flex items-start gap-1.5 p-2 rounded-lg bg-yellow-500/10 border border-yellow-500/20"><AlertTriangle size={12} className="text-yellow-500 shrink-0 mt-0.5" />- <span className="text-[0.6rem] text-yellow-400 leading-tight">+ <span className="t-micro text-yellow-400 leading-tight">{contextWarning}</span></div>@@ -309,9 +310,9 @@ function RAGPanelInner({ conversationId, onClose }: { conversationId: string; on<div className="p-2.5 rounded-lg bg-gray-50 dark:bg-white/[0.03] border border-gray-200 dark:border-white/10 space-y-1.5"><div className="flex items-center gap-1.5"><Download size={12} className="text-gray-500 dark:text-gray-300 shrink-0" />- <span className="text-[0.65rem] font-medium text-gray-700 dark:text-gray-200">Embedding model needed</span>+ <span className="t-micro font-medium text-gray-700 dark:text-gray-200">Embedding model needed</span></div>- <p className="text-[0.6rem] text-gray-500 dark:text-gray-400 leading-snug">+ <p className="t-micro text-gray-500 dark:text-gray-400 leading-snug">Document Chat needs <code className="font-mono px-1 rounded bg-gray-200 dark:bg-white/5">{embeddingModelReactive ?? 'nomic-embed-text'}</code> (274 MB). One-time download.{embeddingQueuedCount > 0 && (<span className="block mt-0.5 text-gray-400 dark:text-gray-500">@@ -322,13 +323,13 @@ function RAGPanelInner({ conversationId, onClose }: { conversationId: string; on<div className="flex gap-1.5 pt-0.5"><buttononClick={() => installEmbeddingAndDrainQueue()}- className="flex-1 px-2 py-1 rounded text-[0.6rem] font-medium bg-gray-200 hover:bg-gray-300 dark:bg-white/10 dark:hover:bg-white/15 text-gray-800 dark:text-gray-100 transition-colors flex items-center justify-center gap-1"+ className="flex-1 px-2 py-1 rounded t-micro font-medium bg-gray-200 hover:bg-gray-300 dark:bg-white/10 dark:hover:bg-white/15 text-gray-800 dark:text-gray-100 transition-colors flex items-center justify-center gap-1"><Download size={11} /> Download</button><buttononClick={() => cancelEmbeddingInstall()}- className="px-2 py-1 rounded text-[0.6rem] font-medium text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-200 hover:bg-gray-100 dark:hover:bg-white/5 transition-colors"+ className="px-2 py-1 rounded t-micro font-medium text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-200 hover:bg-gray-100 dark:hover:bg-white/5 transition-colors">Cancel</button>@@ -353,7 +354,7 @@ function RAGPanelInner({ conversationId, onClose }: { conversationId: string; on<div className="p-2.5 rounded-lg bg-gray-50 dark:bg-white/[0.03] border border-gray-200 dark:border-white/10 space-y-1.5"><div className="flex items-center gap-1.5"><Loader2 size={12} className="text-gray-500 dark:text-gray-300 animate-spin shrink-0" />- <span className="text-[0.6rem] text-gray-600 dark:text-gray-300 leading-tight truncate">+ <span className="t-micro text-gray-600 dark:text-gray-300 leading-tight truncate">{embeddingPullProgress?.status?.startsWith('downloading')? 'Downloading nomic-embed-text…': embeddingPullProgress?.status === 'success'@@ -370,7 +371,7 @@ function RAGPanelInner({ conversationId, onClose }: { conversationId: string; onanimate={{width: `${Math.min(100, (embeddingPullProgress.completed / embeddingPullProgress.total) * 100)}%`,}}- transition={{ duration: 0.2 }}+ transition={{ duration: MOTION_S.base }}/></div><p className="text-[0.55rem] text-gray-500 dark:text-gray-400 font-mono">@@ -395,7 +396,7 @@ function RAGPanelInner({ conversationId, onClose }: { conversationId: string; on{!isEnabled && documents.length === 0 && (<div className="px-3 pt-2"><div className="p-2 rounded-lg bg-gray-50 dark:bg-white/5 border border-gray-200 dark:border-white/10">- <p className="text-[0.6rem] text-gray-500 dark:text-gray-400 leading-relaxed">+ <p className="t-micro text-gray-500 dark:text-gray-400 leading-relaxed">Upload documents and enable the toggle to chat with your files. The AI will use document content to answer your questions.</p></div>@@ -407,7 +408,7 @@ function RAGPanelInner({ conversationId, onClose }: { conversationId: string; on<div className="px-3 py-2"><div className="flex items-center gap-1.5 p-2 rounded-lg bg-blue-500/10 border border-blue-500/20"><Loader2 size={12} className="text-blue-400 animate-spin" />- <span className="text-[0.6rem] text-blue-400">Loading indexed documents...</span>+ <span className="t-micro text-blue-400">Loading indexed documents...</span></div></div>)}@@ -427,7 +428,7 @@ function RAGPanelInner({ conversationId, onClose }: { conversationId: string; on}><Upload size={18} className={isDragging ? 'text-green-500' : 'text-gray-400'} />- <span className="text-[0.65rem] text-gray-500 dark:text-gray-400 text-center">+ <span className="t-micro text-gray-500 dark:text-gray-400 text-center">Drop files here or click to upload</span><span className="text-[0.55rem] text-gray-400 dark:text-gray-500">@@ -455,7 +456,7 @@ function RAGPanelInner({ conversationId, onClose }: { conversationId: string; on><div className="flex items-center gap-1.5 mb-1"><Loader2 size={12} className="text-green-500 animate-spin" />- <span className="text-[0.6rem] text-gray-500 dark:text-gray-400">+ <span className="t-micro text-gray-500 dark:text-gray-400">Indexing... {indexingProgress.current}/{indexingProgress.total}</span></div>@@ -464,7 +465,7 @@ function RAGPanelInner({ conversationId, onClose }: { conversationId: string; onclassName="h-full bg-green-500 rounded-full"initial={{ width: 0 }}animate={{ width: progressPercent }}- transition={{ duration: 0.3 }}+ transition={{ duration: MOTION_S.slow }}/></div></motion.div>@@ -480,7 +481,7 @@ function RAGPanelInner({ conversationId, onClose }: { conversationId: string; onanimate={{ opacity: 1 }}exit={{ opacity: 0 }}>- <div className="flex items-center gap-1.5 text-[0.6rem] text-red-500">+ <div className="flex items-center gap-1.5 t-micro text-red-500"><AlertCircle size={11} /><span>{error}</span></div>@@ -498,11 +499,11 @@ function RAGPanelInner({ conversationId, onClose }: { conversationId: string; oninitial={{ opacity: 0, x: 20 }}animate={{ opacity: 1, x: 0 }}exit={{ opacity: 0, x: -20 }}- transition={{ duration: 0.15 }}+ transition={{ duration: MOTION_S.base }}>{typeIcon(doc.type)}<div className="flex-1 min-w-0">- <p className="text-[0.65rem] text-gray-700 dark:text-gray-200 truncate">+ <p className="t-micro text-gray-700 dark:text-gray-200 truncate">{doc.name}</p><p className="text-[0.55rem] text-gray-400">@@ -511,7 +512,7 @@ function RAGPanelInner({ conversationId, onClose }: { conversationId: string; on</div><buttononClick={() => removeDocument(doc.id)}- className="p-0.5 rounded opacity-0 group-hover:opacity-100 hover:bg-red-100 dark:hover:bg-red-500/15 text-gray-400 hover:text-red-500 transition-all"+ className="p-0.5 rounded opacity-0 group-hover:opacity-100 hover:bg-red-100 dark:hover:bg-red-500/15 text-gray-400 hover:text-red-500 transition"aria-label="Remove document"><Trash2 size={12} />@@ -521,7 +522,7 @@ function RAGPanelInner({ conversationId, onClose }: { conversationId: string; on</AnimatePresence>{documents.length === 0 && !isIndexing && (- <p className="text-[0.6rem] text-gray-400 text-center py-4">+ <p className="t-micro text-gray-400 text-center py-4">No documents added yet</p>)}@@ -540,7 +541,7 @@ function RAGPanelInner({ conversationId, onClose }: { conversationId: string; on) : (<ChevronRight size={12} className="text-gray-400" />)}- <span className="text-[0.6rem] font-medium text-gray-600 dark:text-gray-300">+ <span className="t-micro font-medium text-gray-600 dark:text-gray-300">Retrieved Chunks ({safeChunks.length})</span></button>diff --git a/src/components/chat/ReflectionBlock.tsx b/src/components/chat/ReflectionBlock.tsxindex f04a51c5..52593710 100644--- a/src/components/chat/ReflectionBlock.tsx+++ b/src/components/chat/ReflectionBlock.tsx@@ -3,6 +3,7 @@ import { motion, AnimatePresence } from 'framer-motion'import { ChevronDown, MessageSquare } from 'lucide-react'import { MarkdownRenderer } from './MarkdownRenderer'import { stripModelNoise } from '../../lib/strip-model-noise'+import { MOTION_S } from '../ui/motion'interface Props {content: string@@ -34,7 +35,7 @@ export function ReflectionBlock({ content }: Props) {className="flex items-center gap-1.5 py-0.5 text-left hover:opacity-80 transition-opacity w-full"><MessageSquare size={10} className="text-gray-500 dark:text-gray-500 shrink-0" />- <span className="text-[0.65rem] text-gray-600 dark:text-gray-400">notes</span>+ <span className="t-micro text-gray-600 dark:text-gray-400">notes</span><span className="text-[0.55rem] text-gray-500 dark:text-gray-600 truncate flex-1">{preview}</span><ChevronDownsize={9}@@ -48,7 +49,7 @@ export function ReflectionBlock({ content }: Props) {initial={{ height: 0, opacity: 0 }}animate={{ height: 'auto', opacity: 1 }}exit={{ height: 0, opacity: 0 }}- transition={{ duration: 0.15 }}+ transition={{ duration: MOTION_S.base }}className="overflow-hidden"><div className="pl-5 pb-1.5 pr-1 text-[0.7rem] leading-relaxed text-gray-600 dark:text-gray-400">diff --git a/src/components/chat/SlashStepsBlock.tsx b/src/components/chat/SlashStepsBlock.tsxindex b3ee7cf9..3fd8ddd2 100644--- a/src/components/chat/SlashStepsBlock.tsx+++ b/src/components/chat/SlashStepsBlock.tsx@@ -46,7 +46,7 @@ export function SlashStepsBlock({ command, stepCount, running, children }: PropsclassName="flex items-center gap-1.5 w-full px-2 py-1 text-left hover:bg-gray-100/60 dark:hover:bg-white/[0.03] transition-colors"><Terminal size={10} className="text-gray-500 shrink-0" />- <span className="text-[0.65rem] font-mono text-gray-600 dark:text-gray-300">/{command}</span>+ <span className="t-micro font-mono text-gray-600 dark:text-gray-300">/{command}</span><span className="text-[0.5rem] text-gray-400 dark:text-gray-600">{stepCount} {stepCount === 1 ? 'step' : 'steps'}</span>diff --git a/src/components/chat/StagedChangesPanel.tsx b/src/components/chat/StagedChangesPanel.tsxindex a8ef2e3f..5204b805 100644--- a/src/components/chat/StagedChangesPanel.tsx+++ b/src/components/chat/StagedChangesPanel.tsx@@ -106,7 +106,7 @@ export function StagedChangesPanel({ chatId }: Props) {<ChevronRight size={11} className="text-amber-700 dark:text-amber-400" />)}<FileText size={10} className="text-amber-700 dark:text-amber-400" />- <span className="text-[0.6rem] font-semibold text-amber-900 dark:text-amber-300">+ <span className="t-micro font-semibold text-amber-900 dark:text-amber-300">Pending ({changes.length})</span></span>diff --git a/src/components/chat/ThinkingBlock.tsx b/src/components/chat/ThinkingBlock.tsxindex b7343c6d..ac924e05 100644--- a/src/components/chat/ThinkingBlock.tsx+++ b/src/components/chat/ThinkingBlock.tsx@@ -3,6 +3,7 @@ import { motion, AnimatePresence } from 'framer-motion'import { ChevronDown, Brain } from 'lucide-react'import { MarkdownRenderer } from './MarkdownRenderer'import { stripModelNoise } from '../../lib/strip-model-noise'+import { MOTION_S } from '../ui/motion'interface Props {thinking: string@@ -46,10 +47,10 @@ export function ThinkingBlock({ thinking, streaming }: Props) {aria-label="Toggle thinking details"><Brain size={10} className="text-blue-400/70 shrink-0" />- <span className={`text-[0.6rem] text-blue-400/70 ${streaming ? 'lu-tool-shimmer' : ''}`}>Thinking</span>+ <span className={`t-micro text-blue-400/70 ${streaming ? 'lu-tool-shimmer' : ''}`}>Thinking</span><ChevronDownsize={9}- className={`text-blue-400/50 transition-transform duration-200 ${open ? 'rotate-180' : ''}`}+ className={`text-blue-400/50 transition-transform duration-[var(--motion-base)] ${open ? 'rotate-180' : ''}`}/></button>@@ -61,7 +62,7 @@ export function ThinkingBlock({ thinking, streaming }: Props) {ref={previewRef}className={`pl-4 pb-1 pt-0.5 ${PREVIEW_MAX_H} overflow-hidden pointer-events-none [mask-image:linear-gradient(to_bottom,transparent,#000_20px)]`}>- <div className="text-[0.65rem] leading-relaxed italic text-blue-200/40">+ <div className="t-micro leading-relaxed italic text-blue-200/40"><MarkdownRenderer content={cleaned} /></div></div>@@ -73,11 +74,11 @@ export function ThinkingBlock({ thinking, streaming }: Props) {initial={{ height: 0, opacity: 0 }}animate={{ height: 'auto', opacity: 1 }}exit={{ height: 0, opacity: 0 }}- transition={{ duration: 0.15 }}+ transition={{ duration: MOTION_S.base }}className="overflow-hidden"><div className="pl-4 pb-1 pt-0.5">- <div className="text-[0.65rem] leading-relaxed italic text-blue-200/40">+ <div className="t-micro leading-relaxed italic text-blue-200/40"><MarkdownRenderer content={cleaned} /></div></div>diff --git a/src/components/chat/TokenCounter.tsx b/src/components/chat/TokenCounter.tsxindex 9dc60e4f..005b466c 100644--- a/src/components/chat/TokenCounter.tsx+++ b/src/components/chat/TokenCounter.tsx@@ -87,7 +87,7 @@ export function TokenCounter() {<span className={`inline-flex items-center gap-1.5 ${color}`} title={title}><span className="block w-12 h-1 rounded-full bg-gray-200 dark:bg-white/10 overflow-hidden"><span- className={`block h-full rounded-full transition-all duration-300 ${barColor}`}+ className={`block h-full rounded-full transition-[width] duration-[var(--motion-slow)] ${barColor}`}style={{ width: `${Math.min(ratio * 100, 100)}%` }}/></span>diff --git a/src/components/chat/ToolCallBand.tsx b/src/components/chat/ToolCallBand.tsxindex c497b126..b2feafa5 100644--- a/src/components/chat/ToolCallBand.tsx+++ b/src/components/chat/ToolCallBand.tsx@@ -13,6 +13,7 @@ import {groupIsLive,type BandNote,} from '../../lib/tool-call-groups'+import { MOTION_S } from '../ui/motion'interface Props {calls: AgentToolCall[]@@ -103,7 +104,7 @@ export function ToolCallBand({ calls, notes, renderNote, pendingApprovalId, onApinitial={{ opacity: 0, y: 6 }}animate={{ opacity: 1, y: 0 }}exit={{ opacity: 0, y: -6 }}- transition={{ duration: 0.16 }}+ transition={{ duration: MOTION_S.base }}>{blockFor(active)}</motion.div>@@ -149,7 +150,7 @@ function BandHeader({className="flex items-center gap-1.5 py-0.5 text-left hover:opacity-80 transition-opacity min-w-0"><Wrench size={10} className="text-gray-500 dark:text-gray-500 shrink-0" />- <span className="text-[0.65rem] text-gray-600 dark:text-gray-400">+ <span className="t-micro text-gray-600 dark:text-gray-400">{calls.length} steps</span>{!live &&diff --git a/src/components/chat/ToolCallBlock.tsx b/src/components/chat/ToolCallBlock.tsxindex 6c30e64c..ce7dc6d3 100644--- a/src/components/chat/ToolCallBlock.tsx+++ b/src/components/chat/ToolCallBlock.tsx@@ -11,6 +11,7 @@ import { commandIcon } from '../../lib/shell-command-classify'import { requestGenerationCancel } from '../../api/vram-handoff'import { fileUrlToPath, readLocalFileAsBlobUrl, displayableMedia, type MediaRead } from '../../lib/local-media-url'import { hiddenFromTranscript } from '../../lib/transcript-visibility'+import { MOTION_S } from '../ui/motion'// F1 (konata3602 commitment 2026-05-23) + render fix (konata3602 bug 2026-06-07)// — when image_generate / video_generate / screenshot produce a ComfyUI output,@@ -298,7 +299,7 @@ function ToolCallBlockImpl({ toolCall, onApprove, onReject }: Props) {className="flex items-center gap-1.5 py-0.5 text-left hover:opacity-80 transition-opacity flex-1 min-w-0"><ToolIcon size={10} className="text-gray-500 dark:text-gray-500 shrink-0" />- <span className={`text-[0.65rem] ${isRunning ? 'lu-tool-shimmer' : 'text-gray-600 dark:text-gray-400'}`}>{toolCall.toolName}</span>+ <span className={`t-micro ${isRunning ? 'lu-tool-shimmer' : 'text-gray-600 dark:text-gray-400'}`}>{toolCall.toolName}</span>{isRunning && (<span className="flex items-center gap-[3px] shrink-0" aria-hidden>{[0, 1, 2].map((i) => (@@ -366,7 +367,7 @@ function ToolCallBlockImpl({ toolCall, onApprove, onReject }: Props) {honest line beats a broken picture frame. */}{localMediaMissing && (<div className="pl-5 pt-0.5">- <span className="text-[0.6rem] text-gray-500 dark:text-gray-500">+ <span className="t-micro text-gray-500 dark:text-gray-500">This render is no longer on disk.</span></div>@@ -404,7 +405,7 @@ function ToolCallBlockImpl({ toolCall, onApprove, onReject }: Props) {<buttononClick={() => { void downloadComfyFile(p.filename, p.subfolder, p.type) }}title="Download"- className="inline-flex items-center gap-1 px-1.5 py-0.5 rounded text-[0.6rem] font-medium bg-blue-500/15 text-blue-500 hover:bg-blue-500/25 border border-blue-500/30 transition-colors"+ className="inline-flex items-center gap-1 px-1.5 py-0.5 rounded t-micro font-medium bg-blue-500/15 text-blue-500 hover:bg-blue-500/25 border border-blue-500/30 transition-colors"><Download size={11} /> Download</button>@@ -417,7 +418,7 @@ function ToolCallBlockImpl({ toolCall, onApprove, onReject }: Props) {href={effectivePreviewUrl}download={filename}title="Download"- className="inline-flex items-center gap-1 px-1.5 py-0.5 rounded text-[0.6rem] font-medium bg-blue-500/15 text-blue-500 hover:bg-blue-500/25 border border-blue-500/30 transition-colors"+ className="inline-flex items-center gap-1 px-1.5 py-0.5 rounded t-micro font-medium bg-blue-500/15 text-blue-500 hover:bg-blue-500/25 border border-blue-500/30 transition-colors"><Download size={11} /> Download</a>@@ -433,7 +434,7 @@ function ToolCallBlockImpl({ toolCall, onApprove, onReject }: Props) {initial={{ height: 0, opacity: 0 }}animate={{ height: 'auto', opacity: 1 }}exit={{ height: 0, opacity: 0 }}- transition={{ duration: 0.15 }}+ transition={{ duration: MOTION_S.base }}className="overflow-hidden"><div className="pl-5 pb-1.5 space-y-1">@@ -475,13 +476,13 @@ function ToolCallBlockImpl({ toolCall, onApprove, onReject }: Props) {<div className="flex items-center gap-1.5 pt-1"><buttononClick={(e) => { e.stopPropagation(); onApprove() }}- className="flex items-center gap-1 px-2.5 py-1 rounded text-[0.6rem] font-medium text-emerald-700 dark:text-emerald-300 bg-emerald-500/10 dark:bg-emerald-500/10 hover:bg-emerald-500/15 dark:hover:bg-emerald-500/15 border border-emerald-500/20 dark:border-emerald-500/25 transition-colors"+ className="flex items-center gap-1 px-2.5 py-1 rounded t-micro font-medium text-emerald-700 dark:text-emerald-300 bg-emerald-500/10 dark:bg-emerald-500/10 hover:bg-emerald-500/15 dark:hover:bg-emerald-500/15 border border-emerald-500/20 dark:border-emerald-500/25 transition-colors"><Check size={10} /> Approve</button><buttononClick={(e) => { e.stopPropagation(); onReject() }}- className="flex items-center gap-1 px-2.5 py-1 rounded text-[0.6rem] font-medium text-red-700 dark:text-red-300 bg-red-500/10 dark:bg-red-500/10 hover:bg-red-500/15 dark:hover:bg-red-500/15 border border-red-500/20 dark:border-red-500/25 transition-colors"+ className="flex items-center gap-1 px-2.5 py-1 rounded t-micro font-medium text-red-700 dark:text-red-300 bg-red-500/10 dark:bg-red-500/10 hover:bg-red-500/15 dark:hover:bg-red-500/15 border border-red-500/20 dark:border-red-500/25 transition-colors"><X size={10} /> Reject</button>diff --git a/src/components/chat/VoiceButton.tsx b/src/components/chat/VoiceButton.tsxindex 04d9da8d..962bdfce 100644--- a/src/components/chat/VoiceButton.tsx+++ b/src/components/chat/VoiceButton.tsx@@ -126,7 +126,7 @@ export function VoiceButton({ onTranscript, onInterim, onRecordingChange, disabl><MicOff size={14} /></button>- <div className="absolute bottom-full left-1/2 -translate-x-1/2 mb-2 px-2 py-1 w-max max-w-[240px] bg-gray-800 dark:bg-gray-700 text-white text-[0.6rem] leading-snug rounded text-center opacity-0 group-hover/mic:opacity-100 transition-opacity pointer-events-none">+ <div className="absolute bottom-full left-1/2 -translate-x-1/2 mb-2 px-2 py-1 w-max max-w-[240px] bg-gray-800 dark:bg-gray-700 text-white t-micro leading-snug rounded text-center opacity-0 group-hover/mic:opacity-100 transition-opacity pointer-events-none">{hint}</div></div>@@ -173,7 +173,7 @@ export function VoiceButton({ onTranscript, onInterim, onRecordingChange, disabl{sttError && (<divrole="alert"- className="absolute bottom-full left-1/2 -translate-x-1/2 mb-2 px-2 py-1 w-max max-w-[240px] bg-red-600/95 dark:bg-red-500/90 text-white text-[0.6rem] leading-snug rounded text-center pointer-events-none z-10"+ className="absolute bottom-full left-1/2 -translate-x-1/2 mb-2 px-2 py-1 w-max max-w-[240px] bg-red-600/95 dark:bg-red-500/90 text-white t-micro leading-snug rounded text-center pointer-events-none z-10">{sttError}</div>diff --git a/src/components/chat/VramSwitchCard.tsx b/src/components/chat/VramSwitchCard.tsxindex d48b7452..d9f8696b 100644--- a/src/components/chat/VramSwitchCard.tsx+++ b/src/components/chat/VramSwitchCard.tsx@@ -21,6 +21,7 @@ import { motion, AnimatePresence } from 'framer-motion'import { Loader2, Cpu, Check } from 'lucide-react'import { useVramHandoff } from '../../hooks/useVramHandoff'import type { HandoffPhase } from '../../api/vram-handoff'+import { MOTION_S } from '../ui/motion'function copyFor(phase: HandoffPhase | null, kind: 'image' | 'video' | null, detail: string | null, evicted: boolean): { text: string; sub?: string; done?: boolean } {const what = kind === 'video' ? 'video' : 'image'@@ -76,8 +77,8 @@ export function VramSwitchCard() {initial={{ opacity: 0, y: 4 }}animate={{ opacity: 1, y: 0 }}exit={{ opacity: 0, y: -4 }}- transition={{ duration: 0.15 }}- className="flex items-start gap-2 px-2.5 py-1.5 rounded-md border border-gray-200 dark:border-white/10 bg-gray-50 dark:bg-white/[0.05] text-[0.65rem] text-gray-700 dark:text-gray-200"+ transition={{ duration: MOTION_S.base }}+ className="flex items-start gap-2 px-2.5 py-1.5 rounded-md border border-gray-200 dark:border-white/10 bg-gray-50 dark:bg-white/[0.05] t-micro text-gray-700 dark:text-gray-200"><span className="mt-0.5 shrink-0">{done ? <Check size={12} className="text-emerald-500" /> : <Loader2 size={12} className="animate-spin" />}diff --git a/src/components/chat/WorkingAnchor.tsx b/src/components/chat/WorkingAnchor.tsxindex 333a9dc1..d5b1ae3d 100644--- a/src/components/chat/WorkingAnchor.tsx+++ b/src/components/chat/WorkingAnchor.tsx@@ -87,7 +87,7 @@ export function WorkingAnchor({ isRunning, label }: Props) {/><span className="lu-tool-shimmer t-control">{label ?? 'Working'}</span>{elapsed >= 1 && (- <span aria-hidden="true" className="lu-hud-num text-[0.6rem] text-gray-500 dark:text-gray-500">+ <span aria-hidden="true" className="lu-hud-num t-micro text-gray-500 dark:text-gray-500">{formatElapsed(elapsed)}</span>)}diff --git a/src/components/chat/__tests__/the-code-composer-is-one-quiet-row.test.ts b/src/components/chat/__tests__/the-code-composer-is-one-quiet-row.test.tsindex 4f6d93b0..1e7aa57d 100644--- a/src/components/chat/__tests__/the-code-composer-is-one-quiet-row.test.ts+++ b/src/components/chat/__tests__/the-code-composer-is-one-quiet-row.test.ts@@ -125,7 +125,14 @@ describe('Stop never opens a second line', () => {})it('the slot has a fixed footprint, so the two states cannot differ in size', () => {- expect(INPUT).toMatch(/className="shrink-0 w-\[26px\] h-\[26px\]" data-testid="composer-send-slot"/)+ // D-T07: the footprint is still fixed, but it is no longer a loose `26px`+ // twice — it names `--control-h-sm`, the same rung `.lu-control` stands on.+ // A literal here would drift the moment the rung moves, which is exactly+ // the finding the audit filed under "11-15 control heights per screen".+ expect(INPUT).toMatch(+ /className="shrink-0 w-\[var\(--control-h-sm\)\] h-\[var\(--control-h-sm\)\]" data-testid="composer-send-slot"/,+ )+ expect(INPUT, 'the slot fell back to a raw pixel height').not.toMatch(/(?<![\w-])[wh]-\[26px\]/)// Both buttons fill the slot instead of sizing themselves by padding.const both = INPUT.slice(slot)expect(both.slice(0, both.indexOf('</div>')).match(/w-full h-full/g)).toHaveLength(2)diff --git a/src/components/import/ChatbotImporter.tsx b/src/components/import/ChatbotImporter.tsxindex 8502c377..f2f3b596 100644--- a/src/components/import/ChatbotImporter.tsx+++ b/src/components/import/ChatbotImporter.tsx@@ -115,7 +115,7 @@ export function ChatbotImporter() {<div className="space-y-3"><div className="flex items-start gap-2.5 p-2.5 rounded-lg border border-blue-200 dark:border-blue-500/20 bg-blue-50 dark:bg-blue-500/[0.08] text-blue-900 dark:text-blue-200"><Upload size={14} className="mt-0.5 shrink-0" />- <div className="text-[0.65rem] leading-relaxed">+ <div className="t-micro leading-relaxed"><strong>Import past conversations</strong> from ChatGPT, Claude, or Gemini exports. Each conversation lands in the active chat's RAG store, your local model can reference past turns just like any other document you upload. Stays on your machine.</div></div>@@ -148,14 +148,14 @@ export function ChatbotImporter() {{error && (<div className="flex items-start gap-2 p-2 rounded border border-red-500/20 bg-red-500/[0.06] text-red-300"><AlertTriangle size={12} className="mt-0.5 shrink-0" />- <span className="text-[0.6rem] whitespace-pre-wrap">{error}</span>+ <span className="t-micro whitespace-pre-wrap">{error}</span><button onClick={() => setError(null)} className="text-red-400 hover:text-red-200 ml-auto"><X size={10} /></button></div>)}{conversations.length > 0 && (<>- <div className="flex items-center justify-between text-[0.6rem]">+ <div className="flex items-center justify-between t-micro"><span className="text-gray-400">Detected: <strong>{PLATFORM_LABEL[detectedPlatform]}</strong>{' · '}@@ -193,7 +193,7 @@ export function ChatbotImporter() {className="mt-0.5"/><div className="flex-1 min-w-0">- <div className="text-[0.65rem] text-gray-200 truncate">{c.title}</div>+ <div className="t-micro text-gray-200 truncate">{c.title}</div><div className="text-[0.55rem] text-gray-500">{c.messageCount} message{c.messageCount === 1 ? '' : 's'}{c.timestamp ? ` · ${new Date(c.timestamp).toLocaleDateString()}` : ''}@@ -214,18 +214,18 @@ export function ChatbotImporter() {Import {selected.size} → RAG</button>{importProgress && (- <span className="text-[0.6rem] text-gray-400">+ <span className="t-micro text-gray-400">{importProgress.current} / {importProgress.total}</span>)}{!importing && doneCount > 0 && !error && (- <span className="text-[0.6rem] text-green-400 inline-flex items-center gap-1">+ <span className="t-micro text-green-400 inline-flex items-center gap-1"><CheckCircle2 size={10} /> {doneCount} imported</span>)}</div>{!conversationId && (- <div className="text-[0.6rem] text-amber-300 italic">+ <div className="t-micro text-amber-300 italic">Open or create a chat first, imports attach to the active conversation's RAG store.</div>)}diff --git a/src/components/models/BenchmarkView.tsx b/src/components/models/BenchmarkView.tsxindex a244b968..a9326fcf 100644--- a/src/components/models/BenchmarkView.tsx+++ b/src/components/models/BenchmarkView.tsx@@ -59,7 +59,7 @@ export function BenchmarkView() {<div className="h-full overflow-y-auto scrollbar-thin"><div className="max-w-2xl mx-auto px-4 py-4">{benchError && (- <div className="mb-3 px-3 py-2 rounded-md bg-red-500/10 border border-red-500/25 text-[0.6rem] text-red-300 flex items-start gap-2">+ <div className="mb-3 px-3 py-2 rounded-md bg-red-500/10 border border-red-500/25 t-micro text-red-300 flex items-start gap-2"><span className="flex-1">{benchError}</span><buttononClick={() => useBenchmarkStore.getState().setError(null)}@@ -82,7 +82,7 @@ export function BenchmarkView() {onClick={runPending}disabled={isRunning}title={`Benchmark the ${pending.length} model(s) with no result yet, one after another`}- className="flex items-center gap-1 px-2 py-1 rounded-md bg-gray-100 dark:bg-white/5 text-gray-600 dark:text-gray-400 text-[0.6rem] hover:bg-gray-200 dark:hover:bg-white/10 transition-colors disabled:opacity-30"+ className="flex items-center gap-1 px-2 py-1 rounded-md bg-gray-100 dark:bg-white/5 text-gray-600 dark:text-gray-400 t-micro hover:bg-gray-200 dark:hover:bg-white/10 transition-colors disabled:opacity-30"><ListChecks size={11} />Benchmark {pending.length} remaining@@ -92,7 +92,7 @@ export function BenchmarkView() {<buttononClick={exportReport}title="Download the table as Markdown"- className="flex items-center gap-1 px-2 py-1 rounded-md bg-gray-100 dark:bg-white/5 text-gray-600 dark:text-gray-400 text-[0.6rem] hover:bg-gray-200 dark:hover:bg-white/10 transition-colors"+ className="flex items-center gap-1 px-2 py-1 rounded-md bg-gray-100 dark:bg-white/5 text-gray-600 dark:text-gray-400 t-micro hover:bg-gray-200 dark:hover:bg-white/10 transition-colors"><Download size={11} />Export@@ -103,7 +103,7 @@ export function BenchmarkView() {onClick={() => { if (confirmClear) { clearResults(); setConfirmClear(false) } else setConfirmClear(true) }}onBlur={() => setConfirmClear(false)}title="Delete every recorded benchmark run"- className={`flex items-center gap-1 px-2 py-1 rounded-md text-[0.6rem] transition-colors ${+ className={`flex items-center gap-1 px-2 py-1 rounded-md t-micro transition-colors ${confirmClear? 'bg-red-500/20 text-red-500': 'bg-gray-100 dark:bg-white/5 text-gray-600 dark:text-gray-400 hover:bg-red-500/15 hover:text-red-500'@@ -119,13 +119,13 @@ export function BenchmarkView() {{/* Results whose model is gone — the "out of whack" state from D#21. */}{stale.length > 0 && (<div className="mb-4 flex items-center justify-between gap-3 px-3 py-2 rounded-lg bg-amber-500/10 border border-amber-500/20">- <p className="text-[0.65rem] text-amber-600 dark:text-amber-400">+ <p className="t-micro text-amber-600 dark:text-amber-400">{stale.length} model{stale.length === 1 ? '' : 's'} in this table {stale.length === 1 ? 'is' : 'are'} no longer installed:{' '}{stale.slice(0, 3).join(', ')}{stale.length > 3 ? ` and ${stale.length - 3} more` : ''}.</p><buttononClick={() => pruneMissing(names)}- className="shrink-0 px-2 py-1 rounded-md bg-amber-500/15 text-amber-600 dark:text-amber-400 text-[0.6rem] hover:bg-amber-500/25 transition-colors"+ className="shrink-0 px-2 py-1 rounded-md bg-amber-500/15 text-amber-600 dark:text-amber-400 t-micro hover:bg-amber-500/25 transition-colors">Remove them</button>@@ -155,7 +155,7 @@ export function BenchmarkView() {<div className="flex-1 min-w-0"><div className="flex items-center justify-between mb-1"><span className="text-[0.7rem] text-gray-800 dark:text-gray-200 truncate font-medium">{entry.model}</span>- <span className="text-[0.65rem] text-gray-600 dark:text-gray-400 font-mono shrink-0 ml-2 flex items-center gap-1">+ <span className="t-micro text-gray-600 dark:text-gray-400 font-mono shrink-0 ml-2 flex items-center gap-1"><Zap size={10} className="text-amber-400" /><span title="Useful throughput: the average rate multiplied by how often the answer was right. This is what the board is ordered by.">{entry.score} t/s useful@@ -169,7 +169,7 @@ export function BenchmarkView() {</div><div className="w-full h-1.5 rounded-full bg-gray-200 dark:bg-white/5 overflow-hidden"><div- className={`h-full rounded-full transition-all duration-500 ${i === 0 ? 'bg-amber-400' : 'bg-gray-400 dark:bg-gray-500/60'}`}+ className={`h-full rounded-full transition-[width] duration-[var(--motion-slow)] ${i === 0 ? 'bg-amber-400' : 'bg-gray-400 dark:bg-gray-500/60'}`}style={{ width: `${barWidth}%` }}/></div>@@ -220,7 +220,7 @@ export function BenchmarkView() {{/* Model List with Bench Buttons */}<div className="space-y-1">- <h2 className="text-[0.65rem] font-semibold uppercase tracking-widest text-gray-500 mb-2">+ <h2 className="t-micro font-semibold uppercase tracking-widest text-gray-500 mb-2">{textModels.length} Text Models</h2>{textModels.map((model) => {@@ -245,7 +245,7 @@ export function BenchmarkView() {{isThisRunning ? (<buttononClick={stopBenchmark}- className="flex items-center gap-1 px-2 py-1 rounded-md bg-red-500/15 text-red-500 text-[0.6rem] hover:bg-red-500/25 transition-colors"+ className="flex items-center gap-1 px-2 py-1 rounded-md bg-red-500/15 text-red-500 t-micro hover:bg-red-500/25 transition-colors"><Square size={10} />{currentStep}/{totalSteps}@@ -254,7 +254,7 @@ export function BenchmarkView() {<buttononClick={() => runBenchmark(model.name)}disabled={isRunning}- className="flex items-center gap-1 px-2 py-1 rounded-md bg-gray-100 dark:bg-white/5 text-gray-600 dark:text-gray-400 text-[0.6rem] hover:bg-gray-200 dark:hover:bg-white/10 hover:text-gray-900 dark:hover:text-gray-200 transition-colors disabled:opacity-30"+ className="flex items-center gap-1 px-2 py-1 rounded-md bg-gray-100 dark:bg-white/5 text-gray-600 dark:text-gray-400 t-micro hover:bg-gray-200 dark:hover:bg-white/10 hover:text-gray-900 dark:hover:text-gray-200 transition-colors disabled:opacity-30"><Play size={10} />Run Benchmarkdiff --git a/src/components/models/DiscoverModels.tsx b/src/components/models/DiscoverModels.tsxindex 749d915f..cfa404f2 100644--- a/src/components/models/DiscoverModels.tsx+++ b/src/components/models/DiscoverModels.tsx@@ -1032,7 +1032,7 @@ export function DiscoverModels({ category, search = '', searchSubmitToken = 0 }:<span className="text-sm font-medium text-gray-900 dark:text-white truncate">{model.name}</span>{model.sizeGB && <span className="t-micro text-gray-400 flex-shrink-0">{model.sizeGB} GB</span>}</div>- {model.description && <p className="text-[11px] text-gray-500 line-clamp-1 mt-0.5">{model.description}</p>}+ {model.description && <p className="t-micro text-gray-500 line-clamp-1 mt-0.5">{model.description}</p>}{isDl && dlState && dlState.total > 0 && (<div className="mt-1.5"><ProgressBar progress={(dlState.progress / dlState.total) * 100} />@@ -1064,7 +1064,7 @@ export function DiscoverModels({ category, search = '', searchSubmitToken = 0 }:weiter oben, nur mit der Zeilengeometrie der Trefferliste. */}{civitaiSearching && <CivitaiResultsSkeleton />}{!civitaiSearching && civitaiSearched && civitaiResults.length === 0 && (- <div className="text-center py-4 text-[11px] text-gray-500 leading-relaxed">+ <div className="text-center py-4 t-micro text-gray-500 leading-relaxed">No matches for "{civitaiQuery}". Try a broader query, or add your CivitAI API keyin the Workflow finder for the full catalog.</div>@@ -1124,7 +1124,7 @@ export function DiscoverModels({ category, search = '', searchSubmitToken = 0 }:<div className="space-y-1.5"><div className="flex items-center gap-1.5 px-1"><Sparkles size={11} className="text-gray-400 dark:text-gray-500" />- <h3 className="text-[0.62rem] font-semibold uppercase tracking-[0.12em] text-gray-700 dark:text-gray-300">Start here</h3>+ <h3 className="t-micro font-semibold uppercase tracking-[0.12em] text-gray-700 dark:text-gray-300">Start here</h3><span className="text-[0.55rem] text-gray-400 dark:text-gray-500">picked for your PC</span><div className="flex-1 h-px bg-gray-200 dark:bg-white/[0.06]" /></div>@@ -1137,7 +1137,7 @@ export function DiscoverModels({ category, search = '', searchSubmitToken = 0 }:<div className="space-y-1.5">{topPicks.length >= 2 && (<div className="flex items-center gap-1.5 px-1 pt-1">- <h3 className="text-[0.62rem] font-semibold uppercase tracking-[0.12em] text-gray-700 dark:text-gray-300">+ <h3 className="t-micro font-semibold uppercase tracking-[0.12em] text-gray-700 dark:text-gray-300">{subTab === 'uncensored' ? 'All unfiltered models' : 'All mainstream models'}</h3><div className="flex-1 h-px bg-gray-200 dark:bg-white/[0.06]" />@@ -1158,7 +1158,7 @@ export function DiscoverModels({ category, search = '', searchSubmitToken = 0 }:<div className="space-y-1.5 mt-6"><div className="flex items-center gap-1.5 px-1"><Search size={10} className="text-gray-400" />- <h3 className="text-[0.62rem] font-semibold uppercase tracking-[0.12em] text-gray-500">HuggingFace results</h3>+ <h3 className="t-micro font-semibold uppercase tracking-[0.12em] text-gray-500">HuggingFace results</h3><div className="flex-1 h-px bg-gray-200 dark:bg-white/[0.06]" /></div><div className="grid grid-cols-1 lg:grid-cols-2 xl:grid-cols-3 gap-2.5">@@ -1201,7 +1201,7 @@ export function DiscoverModels({ category, search = '', searchSubmitToken = 0 }:{infoRepoUrl(infoModel) && (<buttononClick={() => openExternal(infoRepoUrl(infoModel)!)}- className="flex items-center gap-1.5 text-[0.65rem] text-gray-600 dark:text-gray-300 hover:text-gray-900 dark:hover:text-white transition-colors"+ className="flex items-center gap-1.5 t-micro text-gray-600 dark:text-gray-300 hover:text-gray-900 dark:hover:text-white transition-colors"><ExternalLink size={11} /> View on HuggingFace</button>diff --git a/src/components/models/ModelBenchmark.tsx b/src/components/models/ModelBenchmark.tsxindex 8d3beb04..0ce0f89c 100644--- a/src/components/models/ModelBenchmark.tsx+++ b/src/components/models/ModelBenchmark.tsx@@ -74,15 +74,15 @@ export function BenchmarkLeaderboard() {return (<div key={entry.model} className="flex items-center gap-2">- <span className="text-[0.6rem] text-gray-500 w-4 text-right font-mono">{i + 1}.</span>+ <span className="t-micro text-gray-500 w-4 text-right font-mono">{i + 1}.</span><div className="flex-1 min-w-0"><div className="flex items-center justify-between mb-0.5">- <span className="text-[0.6rem] text-gray-300 truncate">{entry.model}</span>+ <span className="t-micro text-gray-300 truncate">{entry.model}</span><span className="text-[0.55rem] text-gray-400 lu-hud-num shrink-0 ml-2">{entry.avgTps} t/s</span></div><div className="w-full h-1 rounded-full bg-white/5 overflow-hidden"><div- className="h-full rounded-full bg-gray-500/60 transition-all duration-500"+ className="h-full rounded-full bg-gray-500/60 transition-[width] duration-[var(--motion-slow)]"style={{ width: `${barWidth}%` }}/></div>diff --git a/src/components/models/ModelCard.tsx b/src/components/models/ModelCard.tsxindex c6667e64..b93e6672 100644--- a/src/components/models/ModelCard.tsx+++ b/src/components/models/ModelCard.tsx@@ -54,7 +54,7 @@ export function ModelCard({ model, isActive, onSelect, onDelete, onInfo, canDele{isActive && <span className="shrink-0 text-[0.5rem] text-blue-400 font-medium uppercase">Active</span>}{/* Compact meta — size · params · quant, dot-separated, mono figures */}- <span className="hidden md:flex items-center gap-1.5 shrink-0 text-[0.58rem] text-gray-500 lu-hud-num">+ <span className="hidden md:flex items-center gap-1.5 shrink-0 t-micro text-gray-500 lu-hud-num">{model.size > 0 && <span>{formatBytes(model.size)}</span>}{model.type === 'text' && 'details' in model && model.details?.parameter_size && (<><span className="opacity-40">·</span><span>{model.details.parameter_size}</span></>diff --git a/src/components/models/ModelManager.tsx b/src/components/models/ModelManager.tsxindex f7991a54..cc68d937 100644--- a/src/components/models/ModelManager.tsx+++ b/src/components/models/ModelManager.tsx@@ -197,7 +197,7 @@ export function ModelManager() {}`}><Icon size={15} className={active ? 'text-gray-800 dark:text-gray-100' : 'text-gray-400 dark:text-gray-500'} />- <span className={`hidden lg:block text-[0.68rem] font-medium ${active ? 'text-gray-900 dark:text-white' : 'text-gray-500 dark:text-gray-400'}`}>+ <span className={`hidden lg:block t-micro font-medium ${active ? 'text-gray-900 dark:text-white' : 'text-gray-500 dark:text-gray-400'}`}>{label}</span>{badge.kind === 'loading' ? (@@ -237,7 +237,7 @@ export function ModelManager() {<buttononClick={() => setTab('discover')}aria-pressed={tab === 'discover'}- className={`flex items-center gap-1.5 px-2.5 py-1 rounded-md text-[0.62rem] font-semibold transition-colors ${+ className={`flex items-center gap-1.5 px-2.5 py-1 rounded-md t-micro font-semibold transition-colors ${tab === 'discover'? 'bg-white dark:bg-white/10 text-gray-900 dark:text-white shadow-sm': 'text-gray-500 hover:text-gray-700 dark:hover:text-gray-300'@@ -248,7 +248,7 @@ export function ModelManager() {<buttononClick={() => setTab('installed')}aria-pressed={tab === 'installed'}- className={`flex items-center gap-1.5 px-2.5 py-1 rounded-md text-[0.62rem] font-semibold transition-colors ${+ className={`flex items-center gap-1.5 px-2.5 py-1 rounded-md t-micro font-semibold transition-colors ${tab === 'installed'? 'bg-white dark:bg-white/10 text-gray-900 dark:text-white shadow-sm': 'text-gray-500 hover:text-gray-700 dark:hover:text-gray-300'@@ -280,7 +280,7 @@ export function ModelManager() {else if (e.key === 'Escape') setSearchQuery('')}}placeholder="Search models…"- className="w-full pl-7 pr-6 py-1.5 rounded-lg bg-gray-100 dark:bg-white/5 border border-gray-200 dark:border-white/10 text-[0.65rem] text-gray-900 dark:text-white placeholder-gray-500 focus:outline-none focus:border-gray-400 dark:focus:border-white/20"+ className="w-full pl-7 pr-6 py-1.5 rounded-lg bg-gray-100 dark:bg-white/5 border border-gray-200 dark:border-white/10 t-micro text-gray-900 dark:text-white placeholder-gray-500 focus:outline-none focus:border-gray-400 dark:focus:border-white/20"/>{searchQuery && (<button@@ -300,7 +300,7 @@ export function ModelManager() {{ollamaEnabled && (<buttononClick={() => setPullOpen(true)}- className="flex items-center gap-1.5 px-2.5 py-1.5 rounded-lg bg-gray-100 dark:bg-white/5 border border-gray-200 dark:border-white/10 text-[0.62rem] text-gray-600 dark:text-gray-300 hover:bg-gray-200 dark:hover:bg-white/10 transition-colors"+ className="flex items-center gap-1.5 px-2.5 py-1.5 rounded-lg bg-gray-100 dark:bg-white/5 border border-gray-200 dark:border-white/10 t-micro text-gray-600 dark:text-gray-300 hover:bg-gray-200 dark:hover:bg-white/10 transition-colors"title="Pull any Ollama model by name"><Download size={11} /> Pull@@ -337,11 +337,11 @@ export function ModelManager() {) : (<div className="flex flex-col items-center justify-center text-center py-16 px-6 gap-3"><div className="w-14 h-14 rounded-full bg-gray-100 dark:bg-white/[0.04] border border-gray-200 dark:border-white/[0.06] flex items-center justify-center">- {mode === 'video' ? <VideoIcon size={22} className="text-gray-400 dark:text-gray-500" /> : <ImageIcon size={22} className="text-gray-400 dark:text-gray-500" />}+ {mode === 'video' ? <VideoIcon size={28} className="text-gray-400 dark:text-gray-500" /> : <ImageIcon size={28} className="text-gray-400 dark:text-gray-500" />}</div><div className="space-y-1"><p className="text-[12px] font-medium text-gray-800 dark:text-gray-200">Start ComfyUI to see your {mode} models</p>- <p className="text-[0.6rem] text-gray-500 max-w-[300px] leading-relaxed">+ <p className="t-micro text-gray-500 max-w-[300px] leading-relaxed">{mode === 'image' ? 'Image' : 'Video'} models are served by ComfyUI, which isn't running right now, so the ones you've downloaded can't be listed yet. Open Settings, go to AI Backends, and press Start under ComfyUI (Image & Video), then come back.</p></div>@@ -352,7 +352,7 @@ export function ModelManager() {Backends tab, the ComfyUI section open. */}<buttononClick={() => openSettingsAt({ tab: 'backends', section: 'comfyui' })}- className="flex items-center gap-1.5 mt-1 px-3 py-1.5 rounded-md bg-gray-900 dark:bg-white/10 hover:bg-gray-800 dark:hover:bg-white/15 text-white text-[0.65rem] font-medium transition-colors"+ className="flex items-center gap-1.5 mt-1 px-3 py-1.5 rounded-md bg-gray-900 dark:bg-white/10 hover:bg-gray-800 dark:hover:bg-white/15 text-white t-micro font-medium transition-colors"><SettingsIcon size={11} /> Open Settings</button>@@ -361,17 +361,17 @@ export function ModelManager() {) : models.length === 0 ? (<div className="flex flex-col items-center justify-center text-center py-16 px-6 gap-3"><div className="w-14 h-14 rounded-full bg-gray-100 dark:bg-white/[0.04] border border-gray-200 dark:border-white/[0.06] flex items-center justify-center">- <PackageOpen size={22} className="text-gray-400 dark:text-gray-500" />+ <PackageOpen size={28} className="text-gray-400 dark:text-gray-500" /></div><div className="space-y-1"><p className="text-[12px] font-medium text-gray-800 dark:text-gray-200">No models installed yet</p>- <p className="text-[0.6rem] text-gray-500 max-w-[280px] leading-relaxed">+ <p className="t-micro text-gray-500 max-w-[280px] leading-relaxed">Browse curated chat, image and video models and install them with one click.</p></div><buttononClick={() => setTab('discover')}- className="flex items-center gap-1.5 mt-1 px-3 py-1.5 rounded-md bg-gray-900 dark:bg-white/10 hover:bg-gray-800 dark:hover:bg-white/15 text-white text-[0.65rem] font-medium transition-colors"+ className="flex items-center gap-1.5 mt-1 px-3 py-1.5 rounded-md bg-gray-900 dark:bg-white/10 hover:bg-gray-800 dark:hover:bg-white/15 text-white t-micro font-medium transition-colors"><Sparkles size={11} /> Discover models</button>@@ -383,7 +383,7 @@ export function ModelManager() {</p><buttononClick={() => setTab('discover')}- className="inline-flex items-center gap-1.5 px-3 py-1.5 rounded-md bg-gray-100 dark:bg-white/5 border border-gray-200 dark:border-white/10 text-[0.65rem] text-gray-700 dark:text-gray-300 hover:bg-gray-200 dark:hover:bg-white/10 transition-colors"+ className="inline-flex items-center gap-1.5 px-3 py-1.5 rounded-md bg-gray-100 dark:bg-white/5 border border-gray-200 dark:border-white/10 t-micro text-gray-700 dark:text-gray-300 hover:bg-gray-200 dark:hover:bg-white/10 transition-colors"><Sparkles size={11} /> Discover {modeMeta.label.toLowerCase()} models</button>@@ -398,7 +398,7 @@ export function ModelManager() {<section className="space-y-1.5"><div className="flex items-center gap-2 px-1"><SectionIcon size={11} />- <h2 className="text-[0.62rem] font-semibold uppercase tracking-[0.12em] text-gray-700 dark:text-gray-300">+ <h2 className="t-micro font-semibold uppercase tracking-[0.12em] text-gray-700 dark:text-gray-300">{modeMeta.label}</h2><span className="text-[0.55rem] text-gray-400 dark:text-gray-500 tabular-nums">{shown.length}</span>@@ -428,7 +428,7 @@ export function ModelManager() {</motion.div>))}{shown.length === 0 && (- <p className="text-center text-[0.65rem] text-gray-500 py-6">No installed {modeMeta.label.toLowerCase()} models match "{searchQuery}"</p>+ <p className="text-center t-micro text-gray-500 py-6">No installed {modeMeta.label.toLowerCase()} models match "{searchQuery}"</p>)}</div></section>@@ -474,7 +474,7 @@ export function ModelManager() {<Modal open={infoOpen} onClose={() => setInfoOpen(false)} title={modelInfo?.name || 'Model Info'}>{modelInfo && (- <pre className="text-[0.6rem] text-gray-600 dark:text-gray-300 bg-gray-100 dark:bg-black/30 rounded-lg p-3 overflow-auto max-h-80 scrollbar-thin font-mono">+ <pre className="t-micro text-gray-600 dark:text-gray-300 bg-gray-100 dark:bg-black/30 rounded-lg p-3 overflow-auto max-h-80 scrollbar-thin font-mono">{JSON.stringify(modelInfo, null, 2)}</pre>)}diff --git a/src/components/models/ModelSelector.tsx b/src/components/models/ModelSelector.tsxindex 2b02790d..c99d25cd 100644--- a/src/components/models/ModelSelector.tsx+++ b/src/components/models/ModelSelector.tsx@@ -21,6 +21,7 @@ import { noChatBackendEnabled } from '../../lib/provider-visibility'import { cloudTeaserModels } from '../../lib/cloud-teaser-models'import { ModelPickerSkeleton } from '../layout/ViewSkeletons'import type { AIModel } from '../../types/models'+import { MOTION_S } from '../ui/motion'// ── Local-mode cloud discovery (2.5.8): an "LU Cloud" section at the list's// tail. Signed-in accounts show their real hosted chat models (the appMode@@ -73,7 +74,7 @@ function CloudTeaserSection({ onOpen }: { onOpen: () => void }) {title="Runs on LU Cloud, tap to see plans"><Cloud size={10} className="text-violet-500 dark:text-violet-200 shrink-0" />- <span className="text-[0.68rem] text-gray-400 truncate">+ <span className="t-micro text-gray-400 truncate">{('displayName' in m && m.displayName) || displayModelName(m.name)}</span><span className="ml-auto text-[0.5rem] text-violet-500 dark:text-violet-200">Cloud</span>@@ -85,7 +86,7 @@ function CloudTeaserSection({ onOpen }: { onOpen: () => void }) {className="w-full flex items-center gap-2 px-2.5 py-1.5 text-left hover:bg-white/[0.04] transition-colors"title="See the whole hosted catalogue">- <span className="text-[0.62rem] text-gray-500">+ <span className="t-micro text-gray-500">{cloudMore} more cloud {cloudMore === 1 ? 'model' : 'models'}, see them all</span></button>@@ -97,7 +98,7 @@ function CloudTeaserSection({ onOpen }: { onOpen: () => void }) {title="Runs on LU Cloud, tap to see plans"><Cloud size={10} className="text-violet-500 dark:text-violet-200 shrink-0" />- <span className="text-[0.68rem] text-gray-400">+ <span className="t-micro text-gray-400">Frontier chat models, no GPU needed</span><span className="ml-auto text-[0.5rem] text-violet-500 dark:text-violet-200">Cloud</span>@@ -236,13 +237,13 @@ function LmStudioServerHint({ onStarted }: { onStarted: () => void }) {><X size={10} /></button>- <p className="text-[0.6rem] text-gray-600 dark:text-gray-300 leading-snug mb-1.5 pr-5">+ <p className="t-micro text-gray-600 dark:text-gray-300 leading-snug mb-1.5 pr-5">LM Studio is installed ({status.model_count} model{status.model_count === 1 ? '' : 's'} on disk) but its server isn't running. Start it to pick LM Studio models here.</p><buttononClick={handleStart}disabled={starting}- className="w-full flex items-center justify-center gap-1.5 px-2 py-1 rounded text-[0.62rem] bg-black/[0.06] dark:bg-white/[0.06] hover:bg-black/[0.1] dark:hover:bg-white/[0.12] text-gray-700 dark:text-gray-200 transition-colors disabled:opacity-50"+ className="w-full flex items-center justify-center gap-1.5 px-2 py-1 rounded t-micro bg-black/[0.06] dark:bg-white/[0.06] hover:bg-black/[0.1] dark:hover:bg-white/[0.12] text-gray-700 dark:text-gray-200 transition-colors disabled:opacity-50">{starting ? <Loader2 size={10} className="animate-spin" /> : <PlayCircle size={10} />}<span>{starting ? 'Starting LM Studio server…' : 'Start LM Studio Server'}</span>@@ -879,13 +880,13 @@ export function ModelSelector({ openUpward = false, surface = 'chat' }: ModelSel<AnimatePresence>{open && (<motion.div- className={`absolute w-72 rounded-lg overflow-hidden z-50 bg-white dark:bg-[#363636] border border-black/10 dark:border-white/[0.08] shadow-2xl shadow-black/20 dark:shadow-black/50 ${+ className={`absolute w-72 rounded-lg overflow-hidden z-50 lu-elevated ${openUpward ? 'bottom-full mb-1.5 right-0' : 'top-full mt-1.5 left-1/2 -translate-x-1/2'}`}initial={{ opacity: 0, y: openUpward ? 6 : -6, scale: 0.98 }}animate={{ opacity: 1, y: 0, scale: 1 }}exit={{ opacity: 0, y: openUpward ? 6 : -6, scale: 0.98 }}- transition={{ duration: 0.12, ease: 'easeOut' }}+ transition={{ duration: MOTION_S.fast, ease: 'easeOut' }}>{/* Bug Q v2.4.7 — surface "Start LM Studio Server" inline whenLM Studio is on disk but its server is off. wakeywakeynow's@@ -912,7 +913,7 @@ export function ModelSelector({ openUpward = false, surface = 'chat' }: ModelSel{/* §18 — surfaced when an LM Studio auto-load (on select) failed,so the user isn't left wondering why the model didn't switch. */}{selectError && (- <div className="mx-2 mt-2 px-2 py-1.5 rounded bg-red-500/10 border border-red-500/20 text-[0.6rem] text-red-600/90 dark:text-red-300/90 leading-snug">+ <div className="mx-2 mt-2 px-2 py-1.5 rounded bg-red-500/10 border border-red-500/20 t-micro text-red-600/90 dark:text-red-300/90 leading-snug">{selectError}</div>)}@@ -922,25 +923,25 @@ export function ModelSelector({ openUpward = false, surface = 'chat' }: ModelSel{!inventoryLoaded && textModels.length === 0 && <ModelPickerSkeleton />}{inventoryLoaded && textModels.length === 0 && (<div className="px-2.5 py-3 text-center">- <p className="text-[0.65rem] text-gray-600">No models available</p>+ <p className="t-micro text-gray-600">No models available</p>{/* An empty picker after the user switched the last backendoff in Settings used to say only that, which reads like amachine with nothing installed (Nebenbefund 1, R9re-measure). The reason and the way back belong here. */}{noBackendEnabled ? (<>- <p className="mt-1 text-[0.6rem] text-amber-300/90 leading-snug text-left">+ <p className="mt-1 t-micro text-amber-300/90 leading-snug text-left">No AI backend is enabled, so there is nothing to list. Open Settings, go to AI Backends, and press Enable on the backend you switched off, or Add Provider.</p><buttononClick={() => { setOpen(false); openSettingsAt({ tab: 'backends' }) }}- className="mt-2 inline-flex items-center gap-1 px-2 py-1 rounded bg-white/5 border border-white/10 text-[0.6rem] text-gray-300 hover:bg-white/10 transition-colors"+ className="mt-2 inline-flex items-center gap-1 px-2 py-1 rounded bg-white/5 border border-white/10 t-micro text-gray-300 hover:bg-white/10 transition-colors"><SettingsIcon size={10} /> Open Settings</button></>) : emptyReason && (- <p className="mt-1 text-[0.6rem] text-amber-300/90 leading-snug text-left">{emptyReason}</p>+ <p className="mt-1 t-micro text-amber-300/90 leading-snug text-left">{emptyReason}</p>)}</div>)}@@ -1138,7 +1139,7 @@ export function ModelSelector({ openUpward = false, surface = 'chat' }: ModelSelfinally { setUnloading(false) }}}disabled={unloading}- className="w-full flex items-center justify-center gap-1.5 px-2 py-[5px] rounded text-[0.6rem] text-red-600/70 dark:text-red-500/60 hover:text-red-500 dark:hover:text-red-400 hover:bg-red-500/[0.06] transition-colors disabled:opacity-40"+ className="w-full flex items-center justify-center gap-1.5 px-2 py-[5px] rounded t-micro text-red-600/70 dark:text-red-500/60 hover:text-red-500 dark:hover:text-red-400 hover:bg-red-500/[0.06] transition-colors disabled:opacity-40">{unloading ? <Loader2 size={10} className="animate-spin" /> : <Power size={10} />}<span>{unloadDone ? 'Unloaded' : unloading ? 'Unloading...' : 'Unload all models'}</span>diff --git a/src/components/models/ModelTiles.tsx b/src/components/models/ModelTiles.tsxindex c4fbf2b0..e12e8f7b 100644--- a/src/components/models/ModelTiles.tsx+++ b/src/components/models/ModelTiles.tsx@@ -61,7 +61,7 @@ export function FitHint({ fit, compact = false }: { fit: Fit; compact?: boolean<span className="inline-flex items-center gap-1" title={meta.title}><span className={`w-1.5 h-1.5 rounded-full ${meta.dot}`} />{!compact && (- <span className="text-[0.58rem] text-gray-500 dark:text-gray-400">+ <span className="t-micro text-gray-500 dark:text-gray-400">{meta.label}</span>)}@@ -109,18 +109,19 @@ export function FitHint({ fit, compact = false }: { fit: Fit; compact?: boolean* hat, aber jede Kachel bezahlt hat. Getragen wird die Erhebung vom Rand,* den der Knopf ohnehin hat (Hairline-Elevation, wie es der Token-Diff des* Audits fuer genau diese Stelle vorschlaegt). Echte Schatten bleiben den- * Flaechen, die wirklich schweben — das Aufklappmenue traegt weiter- * `shadow-xl`. */+ * Flaechen, die wirklich schweben — das Aufklappmenue nimmt dafuer seit+ * D-T06/D-T09 das Hausrezept `.lu-elevated` (Flaeche + Kante + Schatten+ * aus einer Quelle) statt einer eigenen Kette. */const TILE_ACTION =- 'flex items-center gap-1 h-[var(--control-h-sm)] px-2.5 rounded-[var(--radius-control)] '+ 'flex items-center gap-1 h-[var(--control-h-sm)] px-2.5 rounded-lg '+ 'bg-white dark:bg-white/10 hover:bg-gray-200 dark:hover:bg-white/[0.16] '+ 'border border-gray-200 dark:border-white/[0.08] text-gray-800 dark:text-gray-100 '- + 'text-[0.62rem] font-semibold transition-colors'+ + 't-micro font-semibold transition-colors'/** ANZEIGE — ein Zustand, den man lesen und nicht druecken kann. */const TILE_STATE =- 'flex items-center gap-1 h-[var(--control-h-sm)] px-2 rounded-[var(--radius-control)] '- + 'bg-gray-100 dark:bg-white/[0.06] text-gray-600 dark:text-gray-300 text-[0.62rem] font-medium'+ 'flex items-center gap-1 h-[var(--control-h-sm)] px-2 rounded-lg '+ + 'bg-gray-100 dark:bg-white/[0.06] text-gray-600 dark:text-gray-300 t-micro font-medium'// ─── Small chips ────────────────────────────────────────────────────@@ -130,7 +131,7 @@ const TILE_STATE =export function SizePill({ sizeGB }: { sizeGB?: number }) {if (!sizeGB) return nullreturn (- <span className="text-[0.58rem] px-1.5 py-0.5 rounded-md bg-gray-100 dark:bg-white/[0.06] text-gray-600 dark:text-gray-300 font-medium tabular-nums">+ <span className="t-micro px-1.5 py-0.5 rounded-md bg-gray-100 dark:bg-white/[0.06] text-gray-600 dark:text-gray-300 font-medium tabular-nums">{sizeGB} GB</span>)@@ -363,7 +364,7 @@ export function ModelTile({ variants, vramGb, isInstalled, dlState, onDownload,<h3 className="text-[0.78rem] font-semibold text-gray-900 dark:text-white truncate">{groupTitle}</h3><CapIcons model={sel} /></div>- <p className="text-[0.62rem] text-gray-500 dark:text-gray-400 leading-snug mt-0.5 line-clamp-2">{shortBlurb(sel)}</p>+ <p className="t-micro text-gray-500 dark:text-gray-400 leading-snug mt-0.5 line-clamp-2">{shortBlurb(sel)}</p></div><buttononClick={() => onInfo(sel)}@@ -394,7 +395,7 @@ export function ModelTile({ variants, vramGb, isInstalled, dlState, onDownload,<divrole="listbox"aria-label={`Size and quality for ${groupTitle}`}- className="absolute z-30 left-0 top-full mt-1 w-56 rounded-lg border border-gray-200 dark:border-white/10 bg-white dark:bg-[#17171c] shadow-xl p-1"+ className="absolute z-30 left-0 top-full mt-1 w-56 rounded-lg lu-elevated p-1">{variants.map(v => {const vFit = computeFit(v.sizeGB, vramGb)@@ -408,8 +409,8 @@ export function ModelTile({ variants, vramGb, isInstalled, dlState, onDownload,className={`w-full flex items-center gap-2 px-2 py-1.5 rounded-md text-left transition-colors hover:bg-gray-100 dark:hover:bg-white/[0.06] ${v.name === sel.name ? 'bg-gray-100 dark:bg-white/[0.06]' : ''}`}><FitHint fit={vFit} compact />- <span className="flex-1 text-[0.62rem] text-gray-800 dark:text-gray-200">{variantLabel(v)}</span>- <span className="text-[0.58rem] text-gray-400 tabular-nums">{v.sizeGB} GB</span>+ <span className="flex-1 t-micro text-gray-800 dark:text-gray-200">{variantLabel(v)}</span>+ <span className="t-micro text-gray-400 tabular-nums">{v.sizeGB} GB</span>{vInst && <Check size={ICON_SM} className="text-emerald-500/80" />}</button>)@@ -442,7 +443,7 @@ export function ModelTile({ variants, vramGb, isInstalled, dlState, onDownload,<Check size={ICON_SM} className="text-emerald-500/80" /> Installed</span>) : downloading ? (- <span className="flex items-center gap-1.5 h-[var(--control-h-sm)] px-2 text-[0.62rem] text-gray-500 dark:text-gray-400">+ <span className="flex items-center gap-1.5 h-[var(--control-h-sm)] px-2 t-micro text-gray-500 dark:text-gray-400"><Loader2 size={ICON_SM} className="animate-spin" /> Downloading…</span>) : (@@ -517,7 +518,7 @@ export function BundleTile({ bundle, vramGb, complete, downloading, hasErrors, o{bundle.hot && !complete && <HotMark />}</div>{bundle.description && (- <p className="text-[0.62rem] text-gray-500 dark:text-gray-400 leading-snug mt-0.5 line-clamp-2">{bundle.description}</p>+ <p className="t-micro text-gray-500 dark:text-gray-400 leading-snug mt-0.5 line-clamp-2">{bundle.description}</p>)}</div>{bundle.url && (@@ -543,7 +544,7 @@ export function BundleTile({ bundle, vramGb, complete, downloading, hasErrors, o<Check size={ICON_SM} className="text-emerald-500/80" /> Installed</span>) : downloading ? (- <span className="flex items-center gap-1.5 h-[var(--control-h-sm)] px-2 text-[0.62rem] text-gray-500 dark:text-gray-400">+ <span className="flex items-center gap-1.5 h-[var(--control-h-sm)] px-2 t-micro text-gray-500 dark:text-gray-400"><Loader2 size={ICON_SM} className="animate-spin" /> Installing…</span>) : hasErrors ? (@@ -554,7 +555,7 @@ export function BundleTile({ bundle, vramGb, complete, downloading, hasErrors, o<><buttononClick={onRetry}- className="flex items-center gap-1 h-[var(--control-h-sm)] px-2 rounded-[var(--radius-control)] bg-red-100 dark:bg-red-500/15 hover:bg-red-200 dark:hover:bg-red-500/25 text-red-700 dark:text-red-400 text-[0.62rem] font-medium transition-colors"+ className="flex items-center gap-1 h-[var(--control-h-sm)] px-2 rounded-lg bg-red-100 dark:bg-red-500/15 hover:bg-red-200 dark:hover:bg-red-500/25 text-red-700 dark:text-red-400 t-micro font-medium transition-colors"title="Retry failed downloads"><RefreshCw size={ICON_SM} /> Retry@@ -588,7 +589,7 @@ export function HardwareChip({ vramGb, ramGb }: { vramGb: number | null; ramGb:if (!vramGb && !ramGb) return nullreturn (<span- className="inline-flex items-center gap-1.5 px-2 py-1 rounded-lg bg-gray-100 dark:bg-white/[0.04] border border-gray-200 dark:border-white/[0.06] text-[0.6rem] text-gray-600 dark:text-gray-300"+ className="inline-flex items-center gap-1.5 px-2 py-1 rounded-lg bg-gray-100 dark:bg-white/[0.04] border border-gray-200 dark:border-white/[0.06] t-micro text-gray-600 dark:text-gray-300"title="Detected hardware. Used for the 'runs on your PC' hints. Models are never hidden because of it."><HardDrive size={ICON_SM} className="text-gray-400" />diff --git a/src/components/models/PullModelDialog.tsx b/src/components/models/PullModelDialog.tsxindex 62ecf7c2..9835aef2 100644--- a/src/components/models/PullModelDialog.tsx+++ b/src/components/models/PullModelDialog.tsx@@ -31,7 +31,7 @@ export function PullModelDialog({ open, onClose }: Props) {placeholder="e.g. llama3.1:8b or mannix/llama3.1-8b-abliterated"className="w-full px-3 py-2 rounded-lg bg-white/5 border border-white/10 text-white placeholder-gray-500 focus:outline-none focus:border-white/20 text-sm"/>- <p className="text-[0.6rem] text-gray-500 mt-1">Progress appears in the download icon in the header.</p>+ <p className="t-micro text-gray-500 mt-1">Progress appears in the download icon in the header.</p></div><GlowButton onClick={handlePull} disabled={!modelName.trim()} className="w-full flex items-center justify-center gap-2">diff --git a/src/components/models/__tests__/vier-glyphen-ein-chip-ein-schatten.test.ts b/src/components/models/__tests__/vier-glyphen-ein-chip-ein-schatten.test.tsindex fb6d8262..9a7bd937 100644--- a/src/components/models/__tests__/vier-glyphen-ein-chip-ein-schatten.test.ts+++ b/src/components/models/__tests__/vier-glyphen-ein-chip-ein-schatten.test.ts@@ -185,7 +185,7 @@ describe('D-S23 · ein Bedienelement, das aussah wie eine Anzeige', () => {// Der Befund in einem Satz: gleiche Klassen, gleiche Stelle. Der Chip// traegt seine Flaeche, das Control traegt ein Rezept — kein einziges// gemeinsames Erscheinungsmerkmal ausser der Zeile, in der sie stehen.- const chip = TILES.match(/text-\[0\.58rem\] px-1\.5 py-0\.5 rounded-md bg-gray-100[^"]*/)?.[0] ?? ''+ const chip = TILES.match(/t-micro px-1\.5 py-0\.5 rounded-md bg-gray-100[^"]*/)?.[0] ?? ''expect(chip).not.toBe('')expect(chip).not.toContain('lu-control')expect(TILES).not.toMatch(/className="flex items-center gap-1 px-1\.5 py-0\.5 rounded-md bg-gray-100/)@@ -233,10 +233,20 @@ describe('D-S24 · der Schatten, den niemand je gesehen hat', () => {expect((TILES.match(/className=\{TILE_ACTION\}/g) ?? []).length).toBe(2)})- it('echte Erhebung bleibt, wo wirklich etwas schwebt', () => {+ it('echte Erhebung bleibt, wo wirklich etwas schwebt — und kommt aus dem Rezept', () => {// Das Aufklappmenue liegt ueber der Kachel darunter — dort ist ein- // Schatten kein Dekor, sondern die Aussage.- expect(TILES).toContain('shadow-xl')+ // Schatten kein Dekor, sondern die Aussage. Seit D-T06/D-T09 kommt sie+ // nicht mehr aus einer handgeschriebenen Kette (`bg-[#17171c] border+ // border-white/10 shadow-xl`), sondern aus `.lu-elevated`.+ //+ // `ohneKommentar` ist hier keine Kosmetik: die Vorfassung dieser+ // Zusicherung las `expect(TILES).toContain('shadow-xl')` — und die+ // Klasse stand ausser im Menue auch im Kommentar ueber TILE_ACTION.+ // Sie waere gruen geblieben, haette man das Menue ersatzlos gestrichen.+ const code = ohneKommentar(TILES)+ expect(code).toContain('lu-elevated')+ expect(code).not.toContain('shadow-xl')+ expect(code).not.toContain('#17171c')})})diff --git a/src/components/ui/ContextMenu.tsx b/src/components/ui/ContextMenu.tsxindex 938f9cf9..423e79f4 100644--- a/src/components/ui/ContextMenu.tsx+++ b/src/components/ui/ContextMenu.tsx@@ -174,7 +174,7 @@ export function ContextMenu({ items, x, y, label, onClose }: ContextMenuProps) {ref={menuRef}role="menu"aria-label={label}- className="absolute min-w-[9rem] py-1 rounded-md bg-white dark:bg-lu-canvas border border-gray-200 dark:border-white/10 shadow-lg text-[0.7rem]"+ className="absolute min-w-[9rem] py-1 rounded-md lu-elevated text-[0.7rem]"style={{ left: pos.left, top: pos.top }}onClick={(e) => e.stopPropagation()}onKeyDown={onKeyDown}diff --git a/src/components/ui/ErrorBoundary.tsx b/src/components/ui/ErrorBoundary.tsxindex b090fa06..094f9f68 100644--- a/src/components/ui/ErrorBoundary.tsx+++ b/src/components/ui/ErrorBoundary.tsx@@ -2,6 +2,7 @@ import { Component, type ReactNode } from 'react'import { AlertCircle, RefreshCw } from 'lucide-react'import { log } from '../../lib/logger'import { forceShowWindow, resetSettingsAndReload } from '../../lib/fatal-error'+import { ICON_LG } from './icon-size'interface Props {children: ReactNode@@ -87,7 +88,7 @@ export class ErrorBoundary extends Component<Props, State> {}return (<div className={this.props.fallbackClassName || 'flex flex-col items-center justify-center p-6 gap-3'}>- <AlertCircle size={24} className="text-red-400" />+ <AlertCircle size={ICON_LG} className="text-red-400" /><p className="text-sm text-red-400 text-center">Something went wrong</p><p className="text-xs text-gray-500 text-center max-w-[200px] break-words">{this.state.error?.message || 'Unknown error'}diff --git a/src/components/ui/GlassCard.tsx b/src/components/ui/GlassCard.tsxindex 3f884c3d..e677d2bf 100644--- a/src/components/ui/GlassCard.tsx+++ b/src/components/ui/GlassCard.tsx@@ -1,5 +1,6 @@import { motion } from 'framer-motion'import type { ReactNode } from 'react'+import { MOTION_S } from './motion'interface Props {children: ReactNode@@ -12,7 +13,7 @@ export function GlassCard({ children, className = '', hover = false }: Props) {<motion.divclassName={`glass-card rounded-xl p-4 ${className}`}whileHover={hover ? { scale: 1.02, borderColor: 'rgba(0, 240, 255, 0.3)' } : undefined}- transition={{ duration: 0.2 }}+ transition={{ duration: MOTION_S.base }}>{children}</motion.div>diff --git a/src/components/ui/GlowButton.tsx b/src/components/ui/GlowButton.tsxindex e0cce2ba..4259bf28 100644--- a/src/components/ui/GlowButton.tsx+++ b/src/components/ui/GlowButton.tsx@@ -14,7 +14,7 @@ const variants = {export function GlowButton({ children, variant = 'primary', className = '', ...props }: Props) {return (<button- className={`px-4 py-2 rounded-lg border font-medium transition-all duration-300 cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed ${variants[variant]} ${className}`}+ className={`px-4 py-2 rounded-lg border font-medium transition-colors duration-[var(--motion-fast)] cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed ${variants[variant]} ${className}`}{...props}>{children}diff --git a/src/components/ui/Modal.tsx b/src/components/ui/Modal.tsxindex 1fc9d4c6..c5abc3d8 100644--- a/src/components/ui/Modal.tsx+++ b/src/components/ui/Modal.tsx@@ -178,8 +178,7 @@ export function Modal({ open, onClose, title, children, hideHeader, maxWidth = ': { 'aria-label': ariaLabel || title || 'Dialog' })}tabIndex={-1}className={- `relative z-10 w-full outline-none ${panelRadius} ${panelPad} border border-gray-200 dark:border-white/10 ` +- 'bg-white dark:bg-[#161719] shadow-2xl shadow-black/30 ' + maxWidth+ `relative z-10 w-full outline-none ${panelRadius} ${panelPad} lu-elevated ` + maxWidth}initial={{ scale: 0.9, opacity: 0 }}animate={{ scale: 1, opacity: 1 }}diff --git a/src/components/ui/ProgressBar.tsx b/src/components/ui/ProgressBar.tsxindex e1ccc65b..7cc9d271 100644--- a/src/components/ui/ProgressBar.tsx+++ b/src/components/ui/ProgressBar.tsx@@ -1,4 +1,5 @@import { motion } from 'framer-motion'+import { MOTION_S } from './motion'interface Props {progress: number // 0-100@@ -15,7 +16,7 @@ export function ProgressBar({ progress, label }: Props) {style={{}}initial={{ width: 0 }}animate={{ width: `${Math.min(progress, 100)}%` }}- transition={{ duration: 0.3 }}+ transition={{ duration: MOTION_S.slow }}/></div><p className="text-xs text-gray-500 mt-1 text-right">{Math.round(progress)}%</p>diff --git a/src/components/ui/ToggleSwitch.tsx b/src/components/ui/ToggleSwitch.tsxindex 2f852e41..f924b1f8 100644--- a/src/components/ui/ToggleSwitch.tsx+++ b/src/components/ui/ToggleSwitch.tsx@@ -26,7 +26,7 @@ export function ToggleSwitch({ enabled, onChange, label, disabled = false, size<span className="text-[0.7rem] text-gray-500 dark:text-gray-400 select-none">{label}</span>)}<div- className={`${trackSize} rounded-full relative transition-colors duration-200 ${+ className={`${trackSize} rounded-full relative transition-colors duration-[var(--motion-base)] ${enabled? 'bg-green-500/30 border border-green-500/50': 'bg-gray-300 dark:bg-white/10 border border-gray-400 dark:border-white/15'diff --git a/src/index.css b/src/index.cssindex d623ad7d..2ab7074d 100644--- a/src/index.css+++ b/src/index.css@@ -109,23 +109,37 @@aufruft. Das Token existiert nur hier.--color-lu-overlay #363636 6 Fundstellen- Neu ist deshalb nur EINE Stufe, und zwar die meistbenutzte Flaeche der- App, die als einzige gar keinen Namen hatte. `--color-lu-raised`- bleibt vorerst stehen (Entfernen waere eine eigene Entscheidung), aber- es steht jetzt dran, dass es tot ist.+ Neu war deshalb nur EINE Stufe, und zwar die meistbenutzte Flaeche der+ App, die als einzige gar keinen Namen hatte.++ ── Zweiter Durchgang, 01.09.2026 abends ──++ `--color-lu-raised` ist jetzt GELOESCHT. Es stand hier mit dem+ Vermerk „TOT: 0 Call-Sites", und ein Token, dessen einzige Aufgabe+ es ist, sein eigenes Totsein zu dokumentieren, ist genau die Sorte+ Stufe, die der Audit unter „16 Graustufen" zaehlt. Die Leiter hat+ jetzt vier Stufen, und JEDE hat mindestens eine Call-Site — das+ rechnet zwei-akzente-und-eine-leinwand.test.ts nach, in beide+ Richtungen: keine Stufe ohne Aufruf, kein Aufruf ohne Stufe.++ Nachgezaehlt am selben Tag, nachdem die Schwebeblaetter der App auf+ `.lu-elevated` gezogen waren (siehe dort): im CODE — also mit+ abgeschnittenen Kommentaren, sonst zaehlt man Prosa mit — standen+ davor 15 dunkle Graustufen als Literal, danach 11. Verschwunden sind+ #161719, #17171c, #1f1f1f und #262626 (dazu #2d2d2d hier oben): fuenf+ Namen fuer EINE Rolle, naemlich „dieses Blatt schwebt".Diese Leiter ist DUNKEL. Es gibt bewusst kein `.light`-Gegenstueck:im Hellmodus zerfaellt #141414 in ZWEI Rollen, die dieselbe dunkleZahl teilen — Fensterrahmen (`bg-gray-200`: Titlebar, Header,- AppShell) und Vollflaeche (`bg-white`: ViewSkeletons, Kontextmenues,+ AppShell) und Vollflaeche (`bg-white`: ViewSkeletons,Create-Wurzel). Eine gespiegelte Leiter muesste sich fuer eine derbeiden entscheiden und faerbte die andere falsch. Deshalb tragen alleCall-Sites weiterhin `dark:` und ihr eigenes Hell-Pendant. ── */--color-lu-canvas: #141414; /* Leinwand, Titelleiste, Header */--color-lu-base: #202020; /* zwei Modalflaechen, NICHT die Leinwand */--color-lu-panel: #262626; /* sidebar, panels */- --color-lu-raised: #2d2d2d; /* TOT: 0 Call-Sites (Stand 01.09.2026) */- --color-lu-overlay: #363636; /* dropdowns, modals, popovers */+ --color-lu-overlay: #363636; /* Schwebeblatt — siehe .lu-elevated *//* ── Form: EINE Radiusleiter ────────────────────────────────────────D-T08. Vorher liefen zwei Systeme nebeneinander: die rem-abgeleitete@@ -163,12 +177,74 @@daneben zu liegen.`--radius-3xl` ist geloescht: 0 Fundstellen, und im Browser als leere- Variable gemessen — die Klasse haette 0px ergeben. ── */+ Variable gemessen — die Klasse haette 0px ergeben.++ ── Und die 5px? Entschieden, nicht aufgezaehlt (Nachtrag 01.09.2026) ──++ Der Absatz oben zaehlte `rounded-[5px]` (20x, alle in der Sidebar) als+ Symptom auf und liess offen, wohin sie gehen. Das war eine Luecke: eine+ Leiter, die eine Zahl nennt, ohne ihr eine Stufe oder ein Ziel zu geben,+ laedt zur naechsten eckigen Klammer ein.++ 5px bekommt KEINE Stufe. Zwischen `rounded-sm` (4) und `rounded-md` (6)+ liegen bei --ui-scale 1,15 genau 4,6 und 6,9 gerenderte Pixel; eine+ Stufe dazwischen waere 5,75px und damit von beiden Nachbarn rund einen+ Geraetepixel entfernt. Das ist dieselbe Aufloesung, in der D-T04 die+ vierzehn Schriftgroessen in einem 4px-Band als Rauschen verworfen hat.+ Drei Stufen in zwei Pixeln sind keine Leiter, sie sind ein Zittern.++ Die 20 gehen auf `rounded-md` (6px), nicht auf `rounded-sm` (4px):+ · Es sind Listenzeilen und Knoepfe, keine Punkte und Abzeichen — und+ 4px ist in dieser Leiter ausdruecklich die Nagelstufe fuer Letztere.+ · Dieselbe Datei schreibt daneben `rounded-[8px]` (8x) und+ `rounded-[10px]` (3x), also `rounded-lg` und `rounded-xl` unter+ anderem Namen. Sie fuehrt eine private px-Leiter 5/8/10, von der+ nur die 5 keinen Namen im Haus hat.+ · Aufwaerts statt abwaerts, weil die Zeile im Pane mit 10px sitzt: 6+ bleibt klar kleiner als der Rahmen und klar groesser als die+ Nagelstufe.++ `src/components/layout/Sidebar.tsx` gehoert in diesem Durchgang einem+ anderen Agenten; die Zahl ist deshalb gedeckelt und nicht gezogen —+ die Sperrklinke steht in radius-schatten-hoehe-und-bewegung.test.ts+ auf 20 und darf nur sinken. ── */--radius-lg: var(--radius-control);--radius-xl: 10px;--radius-2xl: var(--radius-panel);- /* ── Depth: shadows tuned to be visible on dark backgrounds ── */+ /* ── Tiefe: die Schattenleiter und was sie wirklich traegt (D-T09) ──+ Tailwind liefert SIEBEN Stufen (2xs xs sm md lg xl 2xl). Dieses Haus+ stimmt drei davon auf dunkle Flaechen ab — und genau daraus bestand+ der Befund: eine Leiter, die zur Haelfte dem Haus und zur Haelfte der+ Werkseinstellung gehoert, ohne dass man einer Call-Site ansieht,+ welche Haelfte sie gerade erwischt.++ Am 01.09.2026 im CODE nachgezaehlt (Kommentare abgeschnitten, sonst+ zaehlt man Prosa mit):++ shadow-sm 12x WERK — und im Dunkeln per Hausregel abgeschaltet,+ siehe `.dark .shadow-sm` weiter unten+ shadow-lg 3x Haus+ shadow-xl 6x Haus+ shadow-2xl 6x Haus+ shadow-md 0x WERK — niemand ruft sie; wer es taete, bekaeme+ ohne Vorwarnung Tailwinds Hellmodus-Wert+ 2xs/xs 0x dito++ Die Antwort ist NICHT eine vierte Zahl, sondern EIN Aufrufer: fuer+ „dieses Blatt schwebt" gibt es `.lu-elevated` (Flaeche + Kante ++ Schatten aus einer Quelle, hell wie dunkel). Zehn Schwebeblaetter in+ chat/ models/ ui/ agents/ sind darauf gezogen worden; vorher trugen+ sie acht handgeschriebene Ketten mit sechs verschiedenen Flaechen und+ drei verschiedenen Schattenstufen.++ `--shadow-2xl` bleibt vorerst stehen, obwohl kein `var()` es aufruft+ und alle sechs Utility-Call-Sites Schwebeblaetter sind, die auf+ `.lu-elevated` gehoeren. Grund: die Zeile hier zu LOESCHEN entfernt+ den Schatten nicht, sie faellt auf Tailwinds Werkswert zurueck — also+ genau der stille Halbbesitz, den dieser Absatz beseitigt. Die Stufe+ geht, wenn ihre letzte Call-Site geht, nicht vorher.+ Bewacht von radius-schatten-hoehe-und-bewegung.test.ts. ── */--shadow-lg: 0 8px 24px -6px rgba(0, 0, 0, 0.6), 0 2px 6px -2px rgba(0, 0, 0, 0.4);--shadow-xl: 0 16px 48px -12px rgba(0, 0, 0, 0.7), 0 4px 12px -4px rgba(0, 0, 0, 0.5);--shadow-2xl: 0 24px 64px -16px rgba(0, 0, 0, 0.8);@@ -782,8 +858,42 @@ input[type="range"]::-webkit-slider-thumb {letter-spacing: 0.01em;}-/* Elevated surfaces — modals, dropdowns, popovers. Pairs the overlay bg- with a real shadow so floating layers actually float on dark. */+/* ─────────────────────────────────────────────────────────────────────+ `.lu-elevated` — DAS Schwebeblatt. Flaeche, Kante und Schatten aus einer+ Quelle, hell wie dunkel (D-T06 + D-T09).++ Der Befund war nicht „die Dropdowns sehen verschieden aus", sondern:+ jedes Schwebeblatt schrieb sich seine eigene Kette. Am 01.09.2026 in+ chat/ models/ ui/ agents/ nachgezaehlt — zehn Blaetter, und darin++ sechs Flaechen #161719 (Dialog) · #17171c (Menue) · #1a1a1a (2x+ Aufklapper) · #1f1f1f (Aufklapper) · #262626 (3x) ·+ #363636 (Aufklapper)+ drei Schatten shadow-lg · shadow-xl (5x) · shadow-2xl (2x)+ zwei Kanten border-gray-200/white-10 · black-10/white-[0.08]++ Keine dieser Zahlen war eine Entscheidung; sie sind zu verschiedenen+ Zeiten abgeschrieben worden. Das Kontextmenue stand sogar auf+ `--color-lu-canvas`, also in der Farbe der LEINWAND — ein Blatt, das+ ueber der Flaeche schwebt, in der Farbe der Flaeche darunter.++ Jetzt tragen alle zehn diese eine Klasse. Warum die Flaeche HELLER wird+ statt dunkler: im Dunkelmodus kommt Erhebung aus der Flaeche, nicht aus+ dem Schatten — die Rechnung dazu steht unten bei `.dark .shadow-sm`+ (ein Schatten schafft auf #141414 hoechstens 1,14:1, und das ist keine+ Einstellungs-, sondern eine Arithmetikgrenze).++ Was die Klasse NICHT setzt: den Radius. Der gehoert der Call-Site, weil+ ein Dialog (`rounded-2xl`) und ein Menue (`rounded-md`) verschieden+ gross sind. Und sie ist ungeschichtet — wer daneben `bg-white` oder+ `shadow-xl` stehen laesst, schreibt eine Klasse ohne Wirkung; die+ Sperrklinke in zwei-akzente-und-eine-leinwand.test.ts sucht genau das.++ EINE dokumentierte Ausnahme in diesem Durchgang: der Warn-Aufklapper in+ chat/ContextDropdown.tsx traegt `border-red-500/25` als Aussage („dieser+ Kontext ist voll"). Diese Regel wuerde die Kante ueberschreiben, also+ nimmt die Stelle nur das Flaechentoken und behaelt ihre eigene Kante.+ ───────────────────────────────────────────────────────────────────── */.lu-elevated {background: var(--color-lu-overlay);border: 1px solid rgba(255, 255, 255, 0.08);@@ -1025,6 +1135,49 @@ input[type="range"]::-webkit-slider-thumb {15px; `.t-micro` aendert daran nichts und rendert ebenfalls 15px.Ein `line-height` hier wuerde genau den Fehler wiederholen, der dieanderen fuenf Klassen unbrauchbar macht.++ ── Wie weit die Klasse gezogen wurde, und wo die Grenze liegt ──+ (zweiter Durchgang, 01.09.2026 abends)++ Der erste Durchgang hat die Klasse GEBAUT und neun Call-Sites gehabt.+ Dieser hat sie GEZOGEN: 1008 -> 826 Fundstellen ueber src/, 25 -> 23+ verschiedene Werte, `.t-*` von 152 auf 333 Nutzungen, davon 190 auf+ `.t-micro`. Alles davon in chat/ models/ ui/ agents/ import/ — die+ uebrigen Verzeichnisse gehoeren in diesem Durchgang anderen.++ Die Grenze ist eine RECHNUNG und keine Ermuedung: `.t-micro` nimmt+ genau das Band, das auf ihre 10px rundet, ± 1 CSS-Pixel —++ 0.58rem 9,28px 0.62rem 9,92px 0.68rem 10,88px+ 0.60rem 9,60px 0.65rem 10,40px 10px / 9px++ — also hoechstens 1,15 gerenderte Pixel Unterschied. Was ausserhalb+ liegt, BLEIBT stehen, und zwar mit Grund, nicht aus Nachlaessigkeit:++ text-[0.55rem] 8,80px 96x } kein Name unter 10; sie dorthin zu+ text-[0.50rem] 8,00px 53x } ziehen waere +14 bzw. +25 % — eine+ } Entwurfsaenderung, keine Zusammen-+ } fuehrung.+ text-[0.70rem] 11,20px 50x } 11 heisst `--text-mono` und wechselt+ } die Schriftfamilie; 12 heisst+ } `--text-control` und setzt lh 1.+ text-[12px] 15x } `.t-control` FRISST das+ } `leading-relaxed`/`font-medium` der+ } Call-Site (ungeschichtet, siehe+ } oben). Der Tausch waere nicht+ } folgenlos, sondern still.+ text-[0.78rem] 12,48px 5x } die Fliesstextgroesse der Antwort+ } (MessageBubble, `.lu-caret` rechnet+ } mit ihr) plus zwei Ueberschriften+ } mit `font-semibold`.++ Das ist der zweite Teil des Befunds und er ist NICHT behoben: die+ fuenf Rezeptklassen stehen ungeschichtet und schlagen jede Utility der+ Call-Site. Sie in `@layer components` zu heben waere die Reparatur —+ im Baum nachgemessen betrifft sie genau drei Call-Sites (`t-control+ font-medium`, `t-body leading-relaxed`, `t-body tracking-wide`, alle+ in create/) und ist damit klein, aber sie ist eine eigene Aenderung+ mit eigenem Sichttermin, nicht ein Nebensatz in diesem Paket.───────────────────────────────────────────────────────────────────── */.t-micro { font-size: var(--text-micro); }