Skip to content

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.

153 KB
Raw Blame
/* ── Was Tailwind nach Klassen durchsucht ──────────────────────────────
   Ohne diese vier Zeilen liest Tailwind 4 das GANZE Projektverzeichnis als
   Text und macht aus jedem Wort, das wie eine Klasse aussieht, eine Regel im
   ausgelieferten Bundle: Markdown im Wurzelverzeichnis, die Website unter
   docs/, die Kommentare des Rust-Backends unter src-tauri/, jede Testdatei.

   Am 01.09.2026 an echten Builds nachgemessen, im A/B/A-Muster gegen
   denselben Quellstand: der Arbeitsbaum bewegte sich unter der Messung, und
   ein Diff aus zwei Laeufen ohne Kontrolllauf haette fremde Aenderungen
   mitgezaehlt — beim ersten Anlauf tat er das auch und schrieb drei Regeln
   dieser Zeile hier zu, die von woanders kamen.

     Automatik    173380 Bytes roh / 23258 gzip · 1865 Regeln · 1426 Klassen
     diese Regel  171517 Bytes roh / 22919 gzip · 1833 Regeln · 1396 Klassen
     ─────────────────────────────────────────────────────────────────────
     weg            1863 Bytes roh (1,07%) / 339 gzip (1,46%) · 30 Klassen

   Verlustkontrolle: keine einzige Klasse kommt hinzu, die Menge ist eine
   echte Teilmenge. Vier der dreissig haben ihre einzige Fundstelle
   ausserhalb von src/, die uebrigen stehen (auch) in einer Testdatei. Die
   Aufteilung haengt an der Reihenfolge der Sonden und ist deshalb keine
   Zuordnung — `active:scale-[0.97]` etwa steht in der Audit-Tabelle UND in
   einem Testkommentar; wer nur eine der beiden Quellen abschaltet, sieht die
   Klasse weiterhin. Das ist der Grund, warum hier keine Ausschlussliste
   steht: zwei Quellen, und man pflegt nur eine.

   (Kein Glob in diesem Kommentar: die Zeichenfolge Stern-Stern-Schraegstrich
   enthaelt das Kommentarende und hat diese Datei beim Aufschreiben genau
   einmal zerlegt. Der Glob selbst steht unten im Code, wo er hingehoert.)

   Keine einzige davon hatte eine Call-Site. `active:scale-[0.97]` stand als
   Beispiel in einer Audit-Tabelle, `max-w-[760px]` ausgerechnet in der
   Beschreibung ihrer eigenen Entfernung, `[hhhh:hhhh]` in einem Kommentar
   ueber GPU-IDs, `isolate` im englischen Fliesstext eines Blogeintrags. Aus
   den Platzhaltern `bg-[#...]` und `text-[…]` in Testkommentaren wurden
   Regeln mit buchstaeblich `#...` und `…` als Wert. Die Zahl ist klein, die
   Regel dahinter nicht: eine Klasse wurde ausgeliefert, weil jemand ueber
   sie GESCHRIEBEN hat.

   Und es war nicht nur totes Gewicht. `.active\:scale-\[0\.97\]:active`
   endet auf dieselbe Zeichenfolge wie die Press-Hausregel weiter unten und
   stand im Bundle VOR ihr — der Test, der die Kaskade prueft, hat vier
   Monate lang die Utility gemessen und die Hausregel gemeldet.

   Keine Ausschlussliste nach Endungen (`@source not "*.md"` muesste jede
   neue Prosa-Endung nachpflegen und uebersieht docs/ und src-tauri/
   ohnehin), sondern die positive Regel und eine Ausnahme, die keine
   Pflegeliste ist, sondern eine Definition:

     · Die App ist `index.html` plus `src/`. Was Klassen traegt, steht dort.
     · `__tests__` sind Pruefungen UEBER die App, nicht die App. Genau so
       zaehlt es dieses Haus schon: `componentFiles()` in
       fokusring-und-press.test.ts ueberspringt `__tests__`, wenn es
       Call-Sites sucht. Der Nebeneffekt ist beabsichtigt: ein Test darf ueber
       eine Klasse schreiben, ohne sie zu erzeugen.

   DIESE Datei steht bewusst nicht in der Ausschlussliste. Tailwind scannt
   das Stylesheet, das es selbst verarbeitet, ohnehin nicht — nachgemessen:
   `@source not "./index.css"` ergab ein BYTE-IDENTISCHES Bundle, und keine
   der oben genannten Klassen aus diesem Kommentar taucht darin auf. Eine
   Zeile, die nichts tut, aber so aussieht, als tue sie etwas, waere genau
   der Fehler, um den es hier geht.

   Wer eine Frontend-Quelle ausserhalb von `src/` anlegt, traegt sie hier
   nach — sonst fehlen ihre Klassen still. NICHT gemeint ist `mobile-client/`:
   die Handy-Seite laedt dieses Bundle nicht, sie bringt ihr eigenes
   `styles.css` mit eigenen Klassennamen mit. Sie hier einzutragen wuerde
   fremde Woerter in unser CSS holen, ohne ihr zu helfen.

   Bewacht von
   keine-klasse-aus-prosa.test.ts: es haelt jede Utility des gebauten
   Bundles gegen genau diese Quellen und wird rot, wenn eine ohne
   Fundstelle dasteht — in beide Richtungen, also auch, wenn der Scan zu
   eng wird.
   ────────────────────────────────────────────────────────────────────── */
@import "tailwindcss" source(none);
@source "../index.html";
@source "./";
@source not "./**/__tests__/**";
/* The mobile shell (src/mobile) brings its own plain CSS with classes m-*
   and uses no utilities. Its files are not scanned, so a word in them can
   never put a class into the desktop stylesheet. */
@source not "./mobile/**";

@custom-variant dark (&:where(.dark, .dark *));

/* Hover without the media query (A27, 3.0.8). Tailwind 4 wraps every `hover:`
   and `group-hover:` in `@media (hover: hover)`. WebKitGTK answers that query
   from the GDK seat, and a seat without a pointer capability (seen as missing
   delete buttons on Linux, liam_2007 on Bazzite/KDE) makes it `hover: none`:
   every control revealed on hover then stays invisible for good, even though
   the mouse moves and `:hover` itself matches. This is a desktop app driven by
   a pointer, so a plain `:hover` is the honest rule here. */
@custom-variant hover (&:hover);

/* ─────────────────────────────────────────────────────────────────────
   Visual layer aligned with the web companion (DD 2026-06-05)
   The previous build collapsed the whole cool-accent family
   (blue/indigo/violet/purple/sky/cyan) onto ONE muted-violet ramp via a
   @theme override, which tinted the entire app lilac. The web companion
   keeps Tailwind's DEFAULT palette + neutral greys and only uses a few
   deliberate purple accents. To match it we drop the colour-family override
   entirely (Tailwind defaults return: blue is blue, green is green, the
   sparse purple accents render as real purple, same classes the web uses)
   and keep only the neutral ramp + structural radius/shadow tokens, which
   carry no colour identity.
   ───────────────────────────────────────────────────────────────────── */
@theme {
  /* ── Neutral ramp — spread for depth (the web app base, widened) ──────────
     D-T06, am 01.09.2026 nachgezaehlt. Der Kommentar, der hier stand, war
     an einer Stelle schlicht falsch: `--color-lu-base` hiess „app canvas",
     aber die Leinwand der App ist #141414, nicht #202020. Gemessen im
     laufenden Fenster (getComputedStyle auf der AppShell-Wurzel):

       Leinwand + Titelleiste + Header   #141414   9 Fundstellen  KEIN Token
       Pane + Sidebar + Create-Panel     #1e1e1e   5 Fundstellen  KEIN Token
       --color-lu-base   #202020   2 Fundstellen (zwei Modale)
       --color-lu-panel  #262626   4 Fundstellen
       --color-lu-raised #2d2d2d   0 Fundstellen — im Browser als LEERE
                                   Variable gemessen: Tailwind gibt ein
                                   Farbtoken nur aus, wenn es jemand
                                   aufruft. Das Token existiert nur hier.
       --color-lu-overlay #363636  6 Fundstellen

     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 dunkle
     Zahl teilen — Fensterrahmen (`bg-gray-200`: Titlebar, Header,
     AppShell) und Vollflaeche (`bg-white`: ViewSkeletons,
     Create-Wurzel). Eine gespiegelte Leiter muesste sich fuer eine der
     beiden entscheiden und faerbte die andere falsch. Deshalb tragen alle
     Call-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-overlay: #363636;  /* raised side panels (documents panel, tool card) */
  --color-lu-sheet: #151515;    /* floating sheet: menus, popovers, tooltips, see .lu-elevated */

  /* ── Form: EINE Radiusleiter ────────────────────────────────────────
     D-T08. Vorher liefen zwei Systeme nebeneinander: die rem-abgeleitete
     Tailwind-Leiter und die px-Tokens `--radius-control/panel/pill` unten
     im `:root`. Das Ergebnis war im Browser nachgemessen (Chromium 149,
     getComputedStyle):

       rounded      4px      rounded-lg   8px
       rounded-sm   4px      rounded-xl   8px   ← DIESELBE Zahl wie lg
       rounded-md   6px      rounded-2xl 10px

     `rounded-lg` und `rounded-xl` waren derselbe Wert: zwei Namen, eine
     Zahl, und keine Moeglichkeit, im Code eine Stufe ueber 8px zu meinen,
     ohne in eckige Klammern auszuweichen. Genau das ist passiert —
     `rounded-[10px]` (3x), `rounded-[8px]` (8x), `rounded-[6px]` (4x)
     und `rounded-[5px]` (20x) sagen Zahlen, fuer die es Namen gibt oder
     geben sollte.

     Jetzt sind die Haus-px-Tokens die Quelle, und jede Stufe ist genau
     einmal da:

       rounded-sm   4px   die Nagelstufe (Badges, Punkte)
       rounded-md   6px
       rounded-lg   8px = --radius-control   Controls, Knoepfe
       rounded-xl  10px                      Panes (die Sidebar steht dort)
       rounded-2xl 12px = --radius-panel     Dialoge, Panels

     Zwei Werte aendern sich sichtbar: `rounded-xl` 8 → 10px (16
     Fundstellen) und `rounded-2xl` 10 → 12px (6 Fundstellen). Beide sind
     kein Zufallssprung, sondern schliessen eine gemessene Luecke: die
     Hauptpane in AppShell trug `rounded-xl` (8px) und stand direkt neben
     der Sidebar mit `rounded-[10px]` — zwei Flaechen derselben Familie,
     nebeneinander, mit verschiedenen Ecken. Und `rounded-2xl` ist der
     Dialogradius, der damit auf `--radius-panel` faellt statt 2px
     daneben zu liegen.

     `--radius-3xl` ist geloescht: 0 Fundstellen, und im Browser als leere
     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);

  /* ── 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` went with the pop-up redesign: its last six call
     sites were floating sheets and dialogs, which now take `.lu-elevated`
     or `.lu-dialog`.
     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);

  /* ── Create surface accent — the disciplined violet promoted from the
     progress-bar rgb(160,148,248). Ported from the lu-labs create tokens
     (the web app). The desktop Create port referenced
     `bg-lu-accent` / `text-lu-accent` but never defined the colour, so the
     progress fill and accents resolved to nothing. ── */
  --color-lu-accent: #a094f8;
  --color-lu-accent-hover: #b1a6ff;
  --color-lu-accent-soft: rgba(160, 148, 248, 0.14);
  --color-lu-accent-ring: rgba(160, 148, 248, 0.55);

  /* ── Primaeraktion: Text auf der Akzentflaeche ──
     Gemessen (WCAG 2.1 relative Luminanz):
       #a094f8 (Ruhe)  gegen #111827 → 6.83:1   (AA Fliesstext, AAA gross)
       #b1a6ff (Hover) gegen #111827 → 8.25:1
       #a094f8          gegen #ffffff → 2.60:1  ← weisser Text faellt durch,
     deshalb traegt die Akzentflaeche DUNKLEN Text, in beiden Modi gleich.
     --color-lu-accent-edge ist die Kante fuer den Hellmodus: die Flaeche
     selbst steht nur 2.60:1 gegen Weiss, die Kante schafft 3.37:1 und
     erfuellt damit 1.4.11 (Nicht-Text-Kontrast) fuer die Buttongrenze. */
  --color-lu-on-accent: #111827;
  --color-lu-accent-edge: #8b7cf0;

  /* ── Accent as TEXT on a light surface (Model Manager, 08.10.2026) ──
     In the dark the accent carries a word by itself: #a094f8 stands 6.42:1
     on the pane (#1e1e1e) and 5.83:1 on a tile. On white it reaches 2.60:1,
     and the light-mode edge #8b7cf0 reaches 3.37:1, which is enough for a
     border (1.4.11) and not for a word. So the light mode gets an ink of
     its own, the same hue taken down until it reads:

       #5746d9 on #ffffff                6.40:1
               on #f9fafb, a tile        6.12:1
               on the tonal fill         5.56:1   (accent at 12 % over a tile)

     Callers pair the two, as the edge is paired above:
     `text-lu-accent-ink dark:text-lu-accent`. The numbers are computed, not
     copied, in models/__tests__/the-accent-leads-to-the-action.test.ts. */
  --color-lu-accent-ink: #5746d9;

  /* ── Die ruhige Fokus-Haarlinie an Texteingaben (21.09.2026) ────────
     Der Inhaber, am Windows-Bau, zuerst fuer das Nachrichtenfeld und dann fuer
     die Preset-Werkstatt, auf Nachfrage fuer die ganze App: „der lila
     balken um das prompt fenster geht garnicht ... nirgends."

     Der Akzentring bleibt, wo er hingehoert: an Knoepfen, Links, Reglern,
     Kaestchen und Menueausloesern, also ueberall, wo die Tastatur sonst
     nicht zu sehen waere. In ein Textfeld schreibt man dagegen, und dass
     man das tut, sagt schon der Schreibzeiger. Dort reicht eine Haarlinie
     in demselben Grau, das `lib/hinweis.ts` dem ruhigen Ton gibt.

     Ruhig heisst nicht unsichtbar: beide Werte halten 1.4.11 (3:1 gegen
     die Flaeche) auf JEDER Flaeche, auf der ein Feld sitzt. Gerechnet:

       dunkel  #9ca3af  gegen #1e1e1e  8.57:1   #363636  4.38:1
       hell    #6b7280  gegen #ffffff  4.89:1   #f3f4f6  4.44:1

     Die schwaechste Paarung ist Grau auf dem Schwebeblatt #363636 mit
     4.38:1, also mit Abstand ueber der Schwelle. Nachgerechnet wird das
     in fokusring-und-press.test.ts, Flaeche fuer Flaeche. */
  --color-lu-focus-quiet: #9ca3af;
  --color-lu-focus-quiet-edge: #6b7280;

  /* ── Der Cloud-Akzent (D-T05) ───────────────────────────────────────
     Der Audit las die Lage als „zwei Akzente nebeneinander": #a094f8
     steht hier als Token, #7c3aed stand an 20 Stellen als Literal, und
     das Brand-Kit-Violett #8b5cf6 kommt in src/ ueberhaupt nicht vor
     (nachgezaehlt: 0 Fundstellen). Der naheliegende Schluss waere, auf
     EINEN Hex zusammenzufallen. Nachgerechnet ist dieser Schluss falsch,
     und zwar deutlich.

     Es sind keine zwei Marken, es sind zwei ROLLEN. #7c3aed steht
     ausschliesslich an der Cloud: der getoente Composer-Rahmen im
     Cloud-Modus, das „Cloud"-Abzeichen ueber dem Eingabefeld, der
     Cloud-Schalter, der Cloud-Gate-Dialog. Cloud ist in dieser App ein
     GELDZUSTAND — die Nachricht laeuft auf gemieteten GPUs und wird
     abgerechnet. Dass dieser Zustand nicht dieselbe Farbe traegt wie die
     Hausmarke, ist die Aussage, nicht der Fehler.

     Die Rechnung (WCAG 2.1, relative Luminanz, alle Halbtransparenzen
     ueber ihren echten Grund gedeckt — #ffffff hell, #1e1e1e dunkel;
     Minimum ueber die sechs Cloud-Textstellen):

       heute   #7c3aed hell / #a78bfa dunkel      4,53:1   ✓ AA
       nur     #a094f8 (Haus-Akzent)              2,29:1   ✗
       nur     #8b5cf6 (Brand-Kit)                3,36:1   ✗
       Paar    #8b7cf0 hell / #a094f8 dunkel      2,87:1   ✗

     Das heutige Paar ist das einzige der vier, das AA haelt. Ein Wechsel
     KOSTET also zwischen 1,2 und 2,2 Kontraststufen und wirft jede
     Cloud-Beschriftung unter die Grenze. Die gefuellte Cloud-Flaeche
     (`bg-lu-cloud text-white`) traegt in beiden Modi dieselbe Farbe und
     kommt auf 5,70:1; unter #a094f8 waere sie 2,60:1.

     Was hier also passiert, ist NICHT „ein Akzent statt zwei", sondern
     „eine Definition statt zwanzig Literalen". Dieselbe Aufteilung wie
     beim Haus-Akzent oben: eine Farbe fuers Helle, eine angehobene
     fuers Dunkle.

       hell   #7c3aed auf #ffffff  5,70:1   (und als Flaeche, beide Modi)
       dunkel #a78bfa auf #1e1e1e  6,13:1
     ── */
  --color-lu-cloud: #7c3aed;
  --color-lu-cloud-lift: #a78bfa;

  /* ── Motion — eine benannte Leiter statt verstreuter Zahlen ──
     Dauer und Kurve standen bisher als Literale in den Komponenten. Erhoben
     wurde, was tatsächlich benutzt wird (framer-motion + Tailwind, Stand 2.6.7):

       0.12s ×12  →  --motion-fast   Mikro-Feedback (Hover, Toggle, Badge)
       0.15s ×21  →  --motion-base   Haus-Standard (Ein-/Ausblenden, Listen)
       0.20s  ×7  →  --motion-base   (auf den Standard gerundet)
       0.30s  ×5  →  --motion-slow   Flächen (Dialog, Panel, Slide-over)

     --motion-ease ist die Kurve, die `ease-out`/`transition-colors` in diesem
     Haus meinen: schnell los, weich aus. Vier Tokens, mehr braucht die App
     nicht — wer eine fünfte Dauer will, nimmt eine dieser Stufen.
     Die JS-Seite (framer-motion liest keine CSS-Variablen) spiegelt die
     gleiche Leiter in src/components/ui/motion.ts. */
  --motion-fast: 120ms;
  --motion-base: 150ms;
  --motion-slow: 300ms;
  --motion-ease: cubic-bezier(0.2, 0, 0, 1);
}

/* ─────────────────────────────────────────────────────────────────────
   Create design tokens — ported verbatim from the lu-labs web companion
   (the web app). The Create surface was ported WITHOUT these
   definitions, so every `t-*` typography class fell back to the raw 18.4px
   root (≈33% oversized vs Chat) and every `h-[var(--control-h-*)]` became an
   invalid/auto height — which is what oversized the Create tab relative to
   Chat and clipped the banner title / gallery / drop-zone. Chat is unaffected
   because it sizes with rem-based `text-*` utilities. Seit dem 16px-Wurzel-
   maß stehen die Typo-Stufen in ganzen px statt in rem-Brüchen — bei
   16px Wurzel bezeichnen beide dieselbe Länge, und die px-Schreibweise
   macht das Raster prüfbar.
   ───────────────────────────────────────────────────────────────────── */
:root {
  /* ── Der EINE Maßstab der App ────────────────────────────────────────
     Bis 2.6.7 liefen vier Maßstäbe gleichzeitig: ein 18,4px-Wurzelmaß,
     `zoom: 1.25` auf der Sidebar, `scale(0.763)` auf der IntentBar und
     `scale(0.7)` auf der Composer-Reglerzeile. Jede Schicht war ein
     Pflaster über eine Größe, die woanders falsch gesetzt war, und keine
     zwei kompensierten sich sauber (0,763 ≈ 1/1,31, aber 1,25 ≠ 1,15).

     Jetzt: Wurzel auf 16px, damit `rem` und `px` DASSELBE Raster meinen
     (0.5rem = 8px = --radius-control, statt 9,2px ≠ 8px), und die +15 %
     genau einmal als `zoom` auf der App-Wurzel. Warum `zoom` und nicht
     `transform: scale()` oder `calc()` — gemessen in Chromium 149:

       calc(16px * 1.15) auf `html`  →  ist wieder 18,4px. Behebt nichts:
         rem-abgeleitete Werte bleiben krumm, px-Werte bleiben unskaliert.
       transform: scale() auf #root  →  nimmt die Wurzel aus dem Layout-
         fluss und macht sie zum umschließenden Block jedes
         `position: fixed`-Kindes (gemessen: ein fixiertes Kind sprang um
         die halbe Seitenhöhe). 15 Modale hängen daran.
       zoom                          →  skaliert das Layout mit, lässt
         `position: fixed; inset: 0` weiterhin exakt das Fenster
         abdecken (gemessen 1440×900 bei --ui-scale 1.15) und hält
         `getComputedStyle` auf dem UNskalierten Entwurfsraster, so dass
         die Quelle in ganzen Pixeln lesbar bleibt.

     Die eine Stelle, die `zoom` NICHT mitnimmt, sind Viewport-Einheiten:
     `100vw` misst innerhalb des gezoomten Baums weiter das ungezoomte
     Fenster und wird danach mitskaliert, überschießt also um genau
     --ui-scale (gemessen: 1656px in einem 1440px-Fenster). Die drei
     Vollbild-Wurzeln der App (AppShell, ViewSkeletons, Onboarding) sind
     alle `h-screen w-screen`; die Regel `#root > *` unten bindet sie an
     #root statt ans Fenster. Sauberer wäre `h-full w-full` in den drei
     Komponenten — das liegt außerhalb dieser Änderung. */
  --ui-scale: 1.15;

  /* Typography scale — sechs Stufen, alle auf ganzen CSS-Pixeln des
     16px-Rasters. Vorher rem-Brüche am 18,4px-Wurzelmaß, die auf 20 /
     17,48 / 14,72 / 13,248 / 11,408 / 12,88px fielen; keine einzige davon
     lag auf einem Pixel. Die Stufen selbst sind unverändert gemeint, nur
     gerundet: 20 / 15 / 13 / 12 / 10 / 11px. */
  --text-display: 20px;      --text-display-lh: 1.2;   --text-display-fw: 500;
  --text-title:   15px;      --text-title-lh:   1.3;   --text-title-fw:   600;
  --text-body:    13px;      --text-body-lh:    1.5;   --text-body-fw:    400;
  --text-control: 12px;      --text-control-lh: 1;     --text-control-fw: 500;
  --text-label:   10px;      --text-label-lh:   1;     --text-label-fw:   600;
  --text-mono:    11px;
  /* --text-micro ist KEINE siebte Zahl: es ist dieselbe 10, die
     --text-label traegt. Siehe die Rechnung bei `.t-micro` unten. */
  --text-micro:   var(--text-label);

  /* ── Die Markenschrift fuer die Displaystufe ────────────────────────
     D-T03 stand als „Display-Schrift fehlt ganz" in der Matrix, mit der
     Begruendung, `public/fonts/lu-fonts.css` enthalte ausschliesslich
     Inter-Faces. Das ist nachgemessen falsch. Die Datei hat 39
     `@font-face`-Bloecke in drei Familien:

       Inter           21 Bloecke  (400/500/600, sieben Unicode-Bereiche)
       JetBrains Mono  12 Bloecke  (500)
       Space Grotesk    6 Bloecke  (500 und 700, latin/latin-ext/vietn.)

     Und sie ist nicht nur deklariert, sie laedt. Im laufenden Fenster
     (Chromium 149) nach `document.fonts.load`:

       [...document.fonts] enthaelt „Space Grotesk" 500 und 700,
       document.fonts.check('500 20px "Space Grotesk"') === true
       Breite von „Locally Uncensored" bei 100px Schriftgrad:
         Inter 600         1103,51px
         Space Grotesk 500 1094,18px   (-0,85 %)
         Space Grotesk 700 1094,34px
         serif (Rueckfall)  972,23px   ← klar unterscheidbar, es faellt
                                          also nichts zurueck

     Die drei woff2-Dateien liegen in public/fonts/woff2/ und sind ueber
     `index.html` schon heute im Bundle. Nichts wird nachgeladen, nichts
     kommt hinzu — der Slot war unbesetzt, obwohl die Schrift ausgeliefert
     wurde.

     Gewicht 500, nicht 600: Space Grotesk hat in dieser Datei genau die
     Schnitte 500 und 700. Bei `font-weight: 600` waehlt Chromium nach der
     CSS-Font-Matching-Regel den naechsthoeheren echten Schnitt, also 700
     — gemessen an der Breite (600 ergab 1094,34 = exakt der 700er-Wert,
     nicht 1094,18 wie 500). Die Displaystufe haette also still fett
     gerendert. --text-display-fw geht deshalb auf 500, den Schnitt, den
     es wirklich gibt. ── */
  --font-display: 'Space Grotesk', 'Inter', system-ui, -apple-system, sans-serif;

  /* Control heights + spacing rhythm */
  --space-unit: 4px;
  --control-h-sm: 26px;
  --control-h-md: 32px;   /* default control height */
  --control-h-lg: 40px;   /* primary Create button */

  /* Chat measure — ONE column for transcript, composer and status anchor.
     They used to be two independent formulas (max-w-[70%] on the composer,
     no max-width at all on the message list), which put the answer text and
     the input box 157px apart at 1600px and let a line run to ~130 chars.

     ACHTUNG, 660 ist kein Tippfehler: dieser Token wird seit der
     --ui-scale-Umstellung MITSKALIERT. Massgeblich ist die GERENDERTE
     Spalte — 660 × 1.15 = 759px. Das ist genau die Breite, die die Spalte
     vor der Umstellung hatte; 760 wuerde heute 874px ergeben.

     Warum: solange die App auf einem 18,4px-Wurzelmass lief, trug dieser
     px-Token die 15 % NICHT, der rem-basierte Fliesstext aber schon. Jetzt
     tragen beide. Die Spalte war also als NEBENWIRKUNG um 15 % gewachsen,
     nicht als Entscheidung — und die 660 stellen den vorherigen Zustand
     wieder her. Wer sie „korrigiert", weil sie zu schmal aussieht, macht
     die Spalte um 15 % breiter, nicht die Zahl richtig.

     Zeichen pro Zeile, gemessen (Inter, 1600×1000, 759px Spalte) — die
     MESSGRUNDLAGE entscheidet, deshalb steht sie dabei:

       Kleinbuchstaben-Alphabet  9,85px/Zeichen  ->  77 Zeichen
       englische Prosa           8,81px/Zeichen  ->  86 Zeichen
       deutsche Prosa            8,63px/Zeichen  ->  88 Zeichen

     Das Kleinbuchstaben-Alphabet ist die typografische Konvention fuer
     „Alphabetlaenge", aber KEINE Aussage ueber Fliesstext: echte Prosa hat
     Leerzeichen und schmale Buchstaben, also eine kleinere mittlere
     Zeichenbreite und damit MEHR Zeichen pro Zeile. Der gueltige Wert fuer
     diese Spalte ist deshalb ~86, nicht 77.

     OFFEN (nicht in diesem Paket entschieden): 86 Zeichen liegen ueber dem
     klassischen Band fuer gut lesbaren Fliesstext (45–75, aeusserstens 80).
     Die 760 gerenderten px sind die Wahl aus Audit-Welle 1; ob sie zu breit
     sind, ist eine eigene, vorbestehende Designfrage.

     Der Test dazu prueft --lu-measure × --ui-scale gegen ~760px, nicht die
     660 und NICHT eine Zeichenzahl:
     src/components/__tests__/ein-massstab.test.ts */
  --lu-measure: 660px;

  /* Radii */
  --radius-control: 8px;
  --radius-panel: 12px;
  --radius-pill: 999px;
}

html {
  /* 16px, nicht 18,4px: das Wurzelmaß ist das Raster, nicht der Regler.
     Der Regler ist --ui-scale weiter unten. */
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* Die +15 % — genau einmal, auf der App-Wurzel.
   Der zweite Selektor ist keine zweite Anwendung: Tooltip, Select und
   MemoryDebugPanel portalieren mit `createPortal(…, document.body)` AUS
   #root heraus, die App hat also mehr als eine Wurzelbox. Die Portale sind
   Geschwister von #root, nie Kinder — kein Element bekommt den Faktor
   zweimal. Ohne die zweite Zeile rendern Dropdowns und Tooltips 13 %
   kleiner als alles andere, also genau der Fehler, den diese Änderung
   beseitigt. */
#root,
body > :not(#root) {
  zoom: var(--ui-scale);
}

#root {
  width: 100%;
  height: 100%;
}

/* Siehe --ui-scale: `100vw`/`100vh` sind die einzigen Längen, die `zoom`
   nicht mitnimmt. Die Vollbild-Wurzel der App (`h-screen w-screen`) füllt
   deshalb #root statt des Fensters. */
#root > * {
  width: 100%;
  height: 100%;
}

/* Glass card — aligned with the web companion: near-invisible (a single
   hairline divider, no filled surface) so panels read as light structure
   instead of stacked cards. */
.light .glass-card {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 0;
  padding-bottom: 0.75rem;
  margin-bottom: 0.25rem;
}

.dark .glass-card {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 0;
  padding-bottom: 0.75rem;
  margin-bottom: 0.25rem;
}

/* Custom scrollbar */
.scrollbar-thin::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.scrollbar-thin::-webkit-scrollbar-track {
  background: transparent;
}

.dark .scrollbar-thin::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.light .scrollbar-thin::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 3px;
}

/* Kill the legacy up/down arrow buttons WebView2 paints on custom-styled
   scrollbars by default — they read as Windows-XP-era chrome and look
   completely wrong against an otherwise modern dark UI. Affects all
   .scrollbar-thin containers including the chat textarea. */
.scrollbar-thin::-webkit-scrollbar-button,
.scrollbar-thin::-webkit-scrollbar-button:start,
.scrollbar-thin::-webkit-scrollbar-button:end,
.scrollbar-thin::-webkit-scrollbar-button:vertical:start,
.scrollbar-thin::-webkit-scrollbar-button:vertical:end,
.scrollbar-thin::-webkit-scrollbar-button:horizontal:start,
.scrollbar-thin::-webkit-scrollbar-button:horizontal:end {
  display: none;
  width: 0;
  height: 0;
}
button:not(:disabled) {
  cursor: pointer;
}

.scrollbar-thin::-webkit-scrollbar-corner {
  background: transparent;
}

/* Global scrollbar (2026-06-02): every scrollable surface — not only
   .scrollbar-thin containers — gets the themed scrollbar so the bare white
   Windows/WebView2 default never shows (it was visible on the coding file-tree
   and other panes). .scrollbar-thin above still wins for the slim 6px variant. */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 5px;
}
.dark ::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.30);
}
.dark ::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.22);
}
::-webkit-scrollbar-button,
::-webkit-scrollbar-button:start,
::-webkit-scrollbar-button:end {
  display: none;
  width: 0;
  height: 0;
}
::-webkit-scrollbar-corner {
  background: transparent;
}

/* ── Themed scrollbars via the STANDARD properties (2026-06-02 r2) ──
   The `::-webkit-scrollbar` rules ABOVE were being IGNORED on every
   `.scrollbar-thin` container: when `scrollbar-width: thin` is active (it is,
   via the scrollbar-thin utility), Chromium/WebView2 (Edge 148) switches to
   the STANDARD scrollbar and drops all -webkit- pseudo styling — falling back
   to `scrollbar-color: auto`, i.e. the bare grey/white Windows scrollbar.
   Setting `scrollbar-color` explicitly is the ONLY thing that themes it here.
   `scrollbar-color` inherits, so the theme-root rules cover every pane. */
.dark {
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}
.light {
  scrollbar-color: rgba(0, 0, 0, 0.24) transparent;
}
/* C79 (3.1.0): a native <select> in LU Dark. Its list is drawn by the
   system, and Windows 10 drew it white while the field's light grey text
   (text-gray-200) went with it: unreadable (Discord, help-chat 11.11.2026).
   `color-scheme` asks for the dark list, the option colours hold where the
   system ignores it. `.lu-field-dark` below sets its own background on top. */
.dark select {
  color-scheme: dark;
}
.dark select option,
.dark select optgroup {
  background-color: var(--color-lu-base);
  color: #e5e7eb;
}
.scrollbar-thin {
  scrollbar-width: thin;
}
.dark .scrollbar-thin {
  scrollbar-color: rgba(255, 255, 255, 0.24) transparent;
}
.light .scrollbar-thin {
  scrollbar-color: rgba(0, 0, 0, 0.28) transparent;
}

/* Range slider */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 2px;
  outline: none;
}

.dark input[type="range"] {
  background: rgba(255, 255, 255, 0.1);
}

.light input[type="range"] {
  background: rgba(0, 0, 0, 0.1);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  cursor: pointer;
}

.dark input[type="range"]::-webkit-slider-thumb {
  background: #ffffff;
}

.light input[type="range"]::-webkit-slider-thumb {
  background: #333333;
}

/* Markdown content */
.markdown-content > *:last-child {
  margin-bottom: 0;
}

/* Titlebar drag region */
[data-tauri-drag-region] {
  -webkit-app-region: drag;
  user-select: none;
}

[data-tauri-drag-region] button {
  -webkit-app-region: no-drag;
}

/* Selection — neutral grey (web companion), no accent tint */
::selection {
  background: rgba(100, 100, 100, 0.3);
}

/* ─────────────────────────────────────────────────────────────────────
   HUD layer — kept from the web companion. Gives the desktop the same
   "alive / tech instrument" character and keeps the two visually consistent.
   ───────────────────────────────────────────────────────────────────── */

/* Faint vertical scan-grid over the app canvas — barely-there texture so
   the large empty dark areas stop reading as a flat void. */
.dark #root {
  background-image: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.012) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 100% 3px;
  background-repeat: repeat-y;
}
.light #root {
  background-image: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.01) 50%,
    rgba(0, 0, 0, 0) 100%
  );
  background-size: 100% 3px;
  background-repeat: repeat-y;
}

/* ─────────────────────────────────────────────────────────────────────
   DER Fokusring. Eine Regel, 2px, Akzentfarbe, auf allem, was Fokus
   bekommen kann — Eingabefelder ausdruecklich eingeschlossen.

   Vorher standen hier drei Aussagen nebeneinander, und alle drei waren
   falsch (Audit §5, Token-Diff „Fokusring"):
     • `1px solid rgba(96,165,250,.6)` — zu duenn fuer WCAG 2.2 SC 2.4.13
       (mindestens 2 CSS-Pixel Staerke) und in einer Fremdfarbe, die die
       App sonst nur als Think-Pill kennt.
     • nur `button, a` — role-basierte Controls (Create, Workflows) blieben
       aussen vor und mussten `.lu-focus-ring` von Hand dazuschreiben.
     • `:is(input, textarea, select) { outline: none }` — der Fokus im
       Eingabefeld haing allein an einer Randfarbe, die 67 Call-Sites mit
       `focus:outline-none` ohnehin selbst gesetzt haben.

   Gerechnet (WCAG 2.1, 1.4.11 verlangt 3:1 gegen die UMGEBUNG; der Ring
   liegt wegen `outline-offset: 2px` auf der Flaeche HINTER dem Control,
   also gegen diese gerechnet). Vorher → nachher, Flaeche fuer Flaeche:

     Flaeche                        alt(1px,#60a5fa/.6)   neu
     dunkel #1e1e1e  App-Grund            3.22:1        6.42:1  (#a094f8)
     dunkel #141414  Fenster/Titlebar     3.36:1        7.09:1
     dunkel #252525  Composer-Leiste      3.08:1        5.90:1
     dunkel #262626  Panel                3.05:1        5.83:1
     dunkel #2d2d2d  Karte/Hover          2.90:1  ✗     5.30:1
     dunkel #363636  Overlay/Dropdown     2.68:1  ✗     4.65:1
     hell   #ffffff  Blatt/Overlay        1.71:1  ✗     3.37:1  (#8b7cf0)
     hell   #f9fafb  Composer-Leiste      1.68:1  ✗     3.22:1
     hell   #f3f4f6  Fenstergrund         1.63:1  ✗     3.06:1

   Der ALTE Ring fiel im gesamten Hellmodus durch (1.63–1.71:1) und auf den
   beiden obersten dunklen Flaechen ebenfalls. Das war kein Schoenheits-,
   sondern ein Barrierefreiheitsfehler.

   Warum im Hellmodus die KANTE und nicht der Akzent: die Akzentflaeche
   selbst steht gegen Weiss nur 2.60:1 (gegen den Fenstergrund #f3f4f6 sogar
   2.36:1) und faellt damit durch 1.4.11. `--color-lu-accent-edge` ist genau
   dafuer da und schafft 3.06–3.37:1. Dieselbe Aufteilung wie beim
   Primaer-Rezept und beim Aufnahme-Puls: Akzent im Dunkeln, Kante im Hellen.

   Warum `:not(.lu-primary)`: DAS ist die Spezifitaetsfalle dieses Hauses.
   `.light :focus-visible:not([tabindex='-1'])` waere 0,3,0 und wuerde
   `.lu-primary:focus-visible` (0,2,0) schlagen — der Senden-Knopf haette
   im Hellmodus still seinen invertierten Ring verloren. Der Akzentring auf
   der Akzentflaeche kommt auf 1.00:1, deshalb traegt `.lu-primary` unten
   den umgekehrten Ring (17.74:1 hell / 16.67:1 dunkel). Die Ausnahme steht
   deshalb AN der Regel, nicht als Gegengewicht mit mehr Spezifitaet.

   Warum `:not([tabindex='-1'])`: der Dialog-Rahmen (`ui/Modal.tsx`) ist
   `tabIndex={-1}` und bekommt beim Oeffnen programmatisch Fokus. Chromium
   laesst `:focus-visible` dort greifen, sobald zuvor die Tastatur im Spiel
   war — ohne diese Klammer bekaeme der ganze Dialog einen Akzentrahmen.
   Programmatischer Fokus ist kein Tastaturfokus; genau das steht hier.

   Die Regel ist UNGESCHICHTET und schlaegt damit jede Tailwind-Utility
   (`@layer utilities`) unabhaengig von der Spezifitaet — auch die 67
   `outline-none`-Fundstellen, die den Ring bisher einzeln abgeschaltet
   haben. Deshalb muss keine davon angefasst werden.

   Warum die Regel ihre drei Werte aus Variablen liest: damit es bei EINER
   Regel bleibt, obwohl es zwei Fokusbilder gibt.

   05.09.2026, am Windows-Bau: „wenn man in das nachrichten feld
   klickt kommt eine starke lila umrandung, die soll komplett weg." Gemessen
   an der fokussierten Textarea des Chat-Composers: `outline: solid 1,739px
   rgb(160,148,248)` mit 1,739px Abstand, also diese Hausregel; das
   `focus:outline-none` der Textarea (0,2,0) verliert gegen sie (0,3,0).
   Am 21.09.2026 hat er denselben Satz fuer die Preset-Werkstatt wiederholt
   und auf Nachfrage auf die ganze App ausgeweitet: „nirgends."

   Die erste Fassung dieser Antwort war ein Attribut (`data-lu-quiet-focus`)
   an jedem betroffenen Feld, zuletzt an sechsen. Das skaliert nicht auf
   „nirgends": die App hat 106 Eingabefelder, 35 davon ohne `type`, und ein
   Attribut, das an 106 Stellen haengen muss, wird an der 107. vergessen.
   Also steht die Entscheidung hier, an einer Stelle, und die Felder tragen
   nichts mehr.

   Was sie unterscheidet, ist nicht Geschmack, sondern die Frage, ob der
   Fokus sonst zu sehen waere. In ein Textfeld schreibt man, und dass der
   Fokus dort steht, sagt der blinkende Schreibzeiger, ohne den das Tippen
   gar nicht ginge. Ein Knopf, ein Link, ein Regler, ein Kaestchen und ein
   Menueausloeser haben nichts dergleichen; nimmt man ihnen den Ring, ist die
   Tastaturbedienung blind. Deshalb behalten die den 2px-Akzentring, und nur
   Texteingaben bekommen die Haarlinie.

   Die Haarlinie ist ruhig, nicht unsichtbar: 1px in demselben Grau, das
   `lib/hinweis.ts` dem ruhigen Ton gibt, ohne Abstand, damit sie dem Radius
   des Feldes folgt statt einen zweiten Rahmen daneben zu setzen. Die
   Kontrastrechnung steht am Token oben (4.38:1 im schlechtesten Fall, also
   ueber der 3:1 von 1.4.11). Was sie NICHT erfuellt, ist die 2px-Staerke aus
   WCAG 2.2 SC 2.4.13. Das ist die Entscheidung des Eigners, hier benannt
   und nicht weggeschwiegen, und sie betrifft nur Felder, in denen ohnehin
   ein Schreibzeiger steht.

   `:not(input)` waere zu grob: `checkbox`, `radio`, `range`, `file`,
   `color`, `button` und `submit` sind Eingabefelder im Sinne des Elements
   und Bedienelemente im Sinne des Auges. Die Liste unten nennt deshalb die
   Typen, in die man schreibt, `:not([type])` inbegriffen (das ist der
   Vorgabefall `text`, und daran haengen 35 der Felder).
   ───────────────────────────────────────────────────────────────────── */
:focus-visible:not([tabindex='-1']):not(.lu-primary) {
  outline: var(--lu-focus-w, 2px) solid var(--lu-focus-c, var(--color-lu-accent));
  outline-offset: var(--lu-focus-o, 2px);
}
.light :focus-visible:not([tabindex='-1']):not(.lu-primary) {
  outline-color: var(--lu-focus-c, var(--color-lu-accent-edge));
}

/* Die eine Ausnahme von der Ausnahme: ein Feld, dessen KASTEN den Fokus
   schon zeichnet.

   Der Chat-Composer und das Promptfeld von Create sitzen in einem Kasten mit
   `focus-within:border-*`: der ganze Rahmen wird heller, sobald der Zeiger im
   Feld steht. Eine Haarlinie zusaetzlich waere dort ein zweiter Rahmen INNEN,
   und genau das war am 21.09.2026 im Bild zu sehen, nachdem der Akzentring
   gefallen war. Zwei Rahmen sind nicht leiser als einer, sie sind zwei.

   Deshalb Breite null, und NUR hier. Die Bedingung, unter der das zulaessig
   ist, prueft fokusring-und-press.test.ts nach: wer diese Klasse traegt, muss
   in einem Kasten sitzen, der `focus-within:border-` setzt. Ohne den Kasten
   naehme sie einem Feld seine einzige Fokusanzeige. */
.lu-fokus-am-kasten {
  --lu-focus-w: 0px;
}

/* Texteingaben: dieselbe eine Regel, nur leiser. Gesetzt wird hier NICHT
   der Umriss, sondern nur, womit die Regel oben ihn zeichnet. */
textarea,
input:is(
  [type='text'], [type='search'], [type='url'], [type='email'],
  [type='password'], [type='tel'], [type='number'], [type='date'],
  [type='time'], [type='datetime-local'], [type='month'], [type='week'],
  :not([type])
) {
  --lu-focus-w: 1px;
  --lu-focus-o: 0px;
  --lu-focus-c: var(--color-lu-focus-quiet);
}
.light textarea,
.light input:is(
  [type='text'], [type='search'], [type='url'], [type='email'],
  [type='password'], [type='tel'], [type='number'], [type='date'],
  [type='time'], [type='datetime-local'], [type='month'], [type='week'],
  :not([type])
) {
  --lu-focus-c: var(--color-lu-focus-quiet-edge);
}

/* ─────────────────────────────────────────────────────────────────────
   Press-Feedback — EINE Regel statt 489 Call-Sites.

   Der Audit zaehlt „6 von 462 Buttons haben Press-Feedback". Nachgezaehlt
   am Stand 3883eaa8: 489 Knoepfe (481 `<button>` + 8 `<motion.button>`),
   davon 6 mit `whileTap` aus framer-motion und 0 mit `active:scale`. Ein
   Knopf ohne Press-Zustand fuehlt sich an, als haette der Klick nicht
   stattgefunden — das ist die haeufigste Rueckmeldung der App und sie fehlt
   an 483 Stellen.

   Warum hier und nicht an den Call-Sites: `active:scale-[0.97]` an 483
   className-Strings ist dieselbe Krankheit, die der Audit diagnostiziert
   (378 verschiedene Button-Klassen bei 462 Knoepfen). Eine ungeschichtete
   Regel sagt dasselbe einmal.

   Warum `scale:` und nicht `transform:` — Tailwind v4 benutzt die
   Einzel-Properties (`scale-[1.04]` baut `scale:1.04`, nicht `transform`).
   Ein `transform` hier wuerde `translate-*`/`rotate-*` an derselben
   Stelle ueberschreiben; `scale` komponiert daneben.

   Warum KEIN Uebergang an dieser Regel: `transition-property` ist EINE
   Liste, kein additives Feld. Eine globale Regel, die `scale` ergaenzt,
   muesste die Liste ersetzen — und damit die bewusst gesetzten
   `transition-colors` / `transition-all` / `duration-*` an allen 489
   Call-Sites gleich mit. Der Druck folgt dem Finger deshalb ohne Verzoegerung
   (genau das tut `active:scale-[0.97]` an den 55 Stellen mit
   `transition-colors` auch, denn die Liste dort kennt `scale` nicht).
   Wo ein Rezept seine eigene `transition` BESITZT — `.lu-control` weiter
   unten —, steht `scale` in dieser Liste und der Druck laeuft weich aus.
   Das ist der Unterschied zwischen einer Regel, die fremde Entscheidungen
   respektieren muss, und einem Rezept, dem die Entscheidung gehoert.

   `:disabled` und `aria-disabled` sind ausgenommen: ein Knopf, der nicht
   reagiert, darf auch nicht so tun.

   Und „Bewegung reduzieren" schaltet den Druck NICHT ab. Die Regel weiter
   unten haelt an, was Dauerbewegung ist (Shimmer, pulsierende Punkte), und
   laesst stehen, was Rueckmeldung ist (Ladekringel, Skelett-Puls). Drei
   Prozent auf der Stelle, nur solange der Finger unten ist, sind
   vestibulaer nichts — abgeschaltet waere der Knopf wieder der, der sich
   anfuehlt, als haette der Klick nicht stattgefunden, und genau fuer die
   Gruppe, die am wenigsten davon hat.
   ───────────────────────────────────────────────────────────────────── */
:is(button, [role='button']):not(:disabled):not([aria-disabled='true']):active {
  scale: 0.97;
}

/* Status readouts (token counters, version strings, t/s, VRAM) in mono
   with tabular figures so digits stop jittering. Opt-in via `.lu-hud-num`. */
.lu-hud-num {
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  letter-spacing: 0.01em;
}

/* ─────────────────────────────────────────────────────────────────────
   `.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.
   ───────────────────────────────────────────────────────────────────── */
/* Since the pop-up redesign the sheet is dark glass, the small sibling of
   `.lu-dialog` below: near black instead of the grey overlay tone, denser
   than the dialog because a menu lies right on top of text. Opaque where
   `backdrop-filter` is missing. */
.lu-elevated {
  background: var(--color-lu-sheet);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), var(--shadow-xl);
}
.light .lu-elevated {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: var(--shadow-lg);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .lu-elevated {
    background: rgba(18, 18, 18, 0.94);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    backdrop-filter: blur(20px) saturate(150%);
  }
  .light .lu-elevated {
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    backdrop-filter: blur(20px) saturate(160%);
  }
}

/* `.lu-dialog`: the dialog sheet. Dark glass instead of the flat grey
   overlay tone: a near black, slightly see-through surface that blurs what
   lies behind it, a hairline edge, a soft light from the top and a deep
   shadow. Where `backdrop-filter` is missing or switched off (older
   WebKitGTK), the surface is simply opaque. The glass itself is dense
   (94 percent): a WebKit that claims support and then does not blur, as
   the Playwright WebKit build does, must not let the page read through. `.lu-dialog-scrim` is the dimmed app
   behind it. */
.lu-dialog {
  background: #121212;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 32px 80px -20px rgba(0, 0, 0, 0.85),
    0 8px 24px -8px rgba(0, 0, 0, 0.6);
}
.light .lu-dialog {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 32px 80px -24px rgba(0, 0, 0, 0.35),
    0 8px 24px -8px rgba(0, 0, 0, 0.12);
}
.lu-dialog-scrim {
  background: rgba(0, 0, 0, 0.55);
}
.light .lu-dialog-scrim {
  background: rgba(20, 20, 20, 0.28);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .lu-dialog {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0) 140px),
      rgba(14, 14, 14, 0.94);
    -webkit-backdrop-filter: blur(28px) saturate(150%);
    backdrop-filter: blur(28px) saturate(150%);
  }
  /* C25 (3.1.0): light stays fully opaque. At 95 percent white the text,
     cards and images of the page behind showed through every dialog, the
     dark glass hides that, white glass does not. */
  .light .lu-dialog {
    background: #ffffff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* The dialog button bar (components/ui/ModalActions). The colours are set
   here for both themes and not through utilities, because the light rescue
   layer below turns a bare `text-white` dark, which would break a solid red
   button. */
.lu-dialog-actions {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.22);
  border-bottom-left-radius: inherit;
  border-bottom-right-radius: inherit;
}
.light .lu-dialog-actions {
  border-top-color: rgba(0, 0, 0, 0.07);
  background: rgba(0, 0, 0, 0.025);
}
.lu-dialog-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 0.7rem;
  line-height: 1.2;
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--motion-fast), border-color var(--motion-fast), color var(--motion-fast);
}
.lu-dialog-btn:disabled { cursor: not-allowed; opacity: 0.45; }
.lu-dialog-btn-secondary { border-color: rgba(255, 255, 255, 0.14); color: #e5e7eb; background: rgba(255, 255, 255, 0.04); }
.lu-dialog-btn-secondary:hover:not(:disabled) { background: rgba(255, 255, 255, 0.1); }
.lu-dialog-btn-quiet { color: #9ca3af; }
.lu-dialog-btn-quiet:hover:not(:disabled) { color: #ffffff; background: rgba(255, 255, 255, 0.08); }
.lu-dialog-btn-danger { background: #dc2626; border-color: #dc2626; color: #ffffff; }
.lu-dialog-btn-danger:hover:not(:disabled) { background: #ef4444; border-color: #ef4444; }
.light .lu-dialog-btn-secondary { border-color: rgba(0, 0, 0, 0.16); color: #1f2937; background: transparent; }
.light .lu-dialog-btn-secondary:hover:not(:disabled) { background: rgba(0, 0, 0, 0.05); }
.light .lu-dialog-btn-quiet { color: #4b5563; }
.light .lu-dialog-btn-quiet:hover:not(:disabled) { color: #111827; background: rgba(0, 0, 0, 0.05); }

/* Model pickers: one row grammar.
   The chat model picker in Cloud mode (components/models/CloudModelPicker)
   and the Create select (components/create/ui/Select) are two components and
   one look: the elevated sheet, a hairline, one-line sticky group heads, a
   24 px row with the accent bar on the selected one, hairline tags. Greys
   plus the one accent, state dots in green, grey and red, no yellow. Both
   themes are set here through variables, so neither component names a colour
   of its own. Same classes and values as the web app (globals.css). */
/* The service line stands in the local list and the rate popover is lifted
   out to the body, so each brings the palette along. So does a tag. */
.lu-picker,
.lu-picker-tag,
.lu-picker-service,
.lu-picker-rate {
  --pk-sheet: var(--color-lu-sheet);
  --pk-edge: rgba(255, 255, 255, 0.08);
  --pk-hair: rgba(255, 255, 255, 0.07);
  --pk-hover: rgba(255, 255, 255, 0.07);
  --pk-t1: #f3f4f6;
  --pk-t2: #d1d5db;
  --pk-t3: #9ca3af;
  --pk-accent: var(--color-lu-accent);
  --pk-ok: #34d399;
  --pk-err: #f87171;
  --pk-off: #6b7280;
}
.lu-picker {
  border-radius: 10px;
  color: var(--pk-t2);
}
.light .lu-picker,
.light .lu-picker-tag,
.light .lu-picker-service,
.light .lu-picker-rate {
  --pk-sheet: #ffffff;
  --pk-edge: rgba(0, 0, 0, 0.1);
  --pk-hair: rgba(0, 0, 0, 0.08);
  --pk-hover: rgba(0, 0, 0, 0.05);
  --pk-t1: #111827;
  --pk-t2: #374151;
  --pk-t3: #6b7280;
  --pk-accent: var(--color-lu-cloud);
  --pk-ok: #059669;
  --pk-err: #dc2626;
  --pk-off: #9ca3af;
}

.lu-picker-search {
  flex: none;
  height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px 0 12px;
  border-bottom: 1px solid var(--pk-hair);
  color: var(--pk-t3);
}
.lu-picker-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  background: none;
  border: 0;
  box-shadow: none;
  color: var(--pk-t1);
  font-size: var(--text-control);
  /* The field has the keyboard for as long as the menu is open, so a ring
     around it says nothing. The house focus rule reads its width here; the
     lens lights up instead, and the cursor row shows where Enter goes. */
  --lu-focus-w: 0px;
}
.lu-picker-search:focus-within { color: var(--pk-t2); }
.lu-picker-search input::placeholder { color: var(--pk-t3); }
.lu-picker-text-btn {
  flex: none;
  padding: 2px 5px;
  border-radius: 4px;
  font-size: var(--text-label);
  font-weight: 600;
  color: var(--pk-t2);
}
.lu-picker-text-btn:hover:not(:disabled) { color: var(--pk-t1); background: var(--pk-hover); }
.lu-picker-text-btn:disabled { opacity: 0.6; }

/* The one line for what needs attention now. No box: a dot and a sentence. */
.lu-picker-note {
  flex: none;
  min-height: 24px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 3px 10px 3px 12px;
  border-bottom: 1px solid var(--pk-hair);
  font-size: var(--text-mono);
  line-height: 1.35;
  color: var(--pk-t2);
}
.lu-picker-note.is-err { color: var(--pk-err); }
.lu-picker-note > span:not(.lu-picker-dot) { flex: 1; min-width: 0; overflow-wrap: anywhere; }

.lu-picker-dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--pk-off); }
.lu-picker-dot.is-accent { background: var(--pk-accent); }
.lu-picker-dot.is-ok { background: var(--pk-ok); }
.lu-picker-dot.is-err { background: var(--pk-err); }

.lu-picker-chips {
  flex: none;
  height: 30px;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.lu-picker-chips::-webkit-scrollbar { display: none; }
.lu-picker-chip {
  flex: none;
  height: 20px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--pk-hair);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-label);
  font-weight: 500;
  color: var(--pk-t3);
  white-space: nowrap;
  transition: background-color 120ms, color 120ms, border-color 120ms;
}
.lu-picker-chip:hover { color: var(--pk-t1); }
.lu-picker-chip[aria-pressed='true'] { background: var(--pk-hover); color: var(--pk-t1); border-color: var(--pk-edge); }
.lu-picker-chip i { font-style: normal; font-variant-numeric: tabular-nums; opacity: 0.7; }

.lu-picker-cap {
  flex: none;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px 0 16px;
  border-bottom: 1px solid var(--pk-hair);
  font-size: var(--text-label);
  font-weight: 500;
  color: var(--pk-t3);
  opacity: 0.8;
}

.lu-picker-list {
  /* Rows measure their place against the list (CloudModelPicker keeps the
     keyboard cursor in view by hand). */
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--pk-edge) transparent;
}
.lu-picker-empty { padding: 18px 16px; font-size: var(--text-mono); color: var(--pk-t3); text-align: center; }

/* Group head: one line of 22 px that sticks to the top while its rows scroll. */
.lu-picker-head {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 22px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px 0 16px;
  background: var(--pk-sheet);
  font-size: var(--text-label);
  color: var(--pk-t3);
}
.lu-picker-head b { font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.lu-picker-head .n { margin-left: auto; font-variant-numeric: tabular-nums; opacity: 0.8; }
div + div > .lu-picker-head { margin-top: 2px; }

/* A local service in one line: state dot, a short sentence, a text button.
   Stands above the local model list, which keeps its own look. */
.lu-picker-service {
  flex: none;
  min-height: 24px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 8px 0 12px;
  border-bottom: 1px solid var(--pk-hair);
  font-size: var(--text-label);
  color: var(--pk-t2);
}
.lu-picker-service .st { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lu-picker-service.is-err .st { color: var(--pk-err); }
.lu-picker-service .lu-picker-text-btn { border: 1px solid var(--pk-edge); color: var(--pk-t1); }

.lu-picker-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  margin: 0 4px;
  padding: 0 6px 0 12px;
  border-radius: 6px;
  font-size: var(--text-control);
  line-height: 1.2;
  color: var(--pk-t2);
  /* The sticky head above must not cover a row the keyboard scrolls to. */
  scroll-margin-top: 24px;
}
.lu-picker-row:hover,
.lu-picker-row[data-cursor='true'] { background: var(--pk-hover); color: var(--pk-t1); }
/* Selected: an option of either picker. */
.lu-picker-row[aria-selected='true'] { color: var(--pk-t1); }
.lu-picker-row[aria-selected='true'] .lu-picker-name { font-weight: 500; }
.lu-picker-row[aria-selected='true']::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  border-radius: 2px;
  background: var(--pk-accent);
}
/* The part of a row that picks the model. A button of its own, because the
   row also carries the rate control, and a button cannot hold another one. */
.lu-picker-pick {
  flex: 1;
  min-width: 0;
  align-self: stretch;
  display: flex;
  align-items: center;
  gap: 6px;
  text-align: left;
  color: inherit;
  font-weight: inherit;
}
.lu-picker-row .lu-picker-pick:focus-visible { outline: 0; }
.lu-picker-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lu-picker-name mark {
  background: none;
  color: var(--pk-t1);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--pk-accent);
  text-underline-offset: 2px;
}
/* Name, marks and the quiet note as one part of the row: the note stands
   after the name where there is room and wraps under it where there is not. */
.lu-picker-lead {
  flex: 0 1 auto;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1px 6px;
  padding: 3px 0;
}
.lu-picker-lead .lu-picker-name { max-width: 100%; }
/* Plain muted text, no frame and no colour: it is a note, not a mark. */
.lu-picker-quiet {
  flex: none;
  font-size: var(--text-micro);
  line-height: 1.2;
  color: var(--pk-t3);
  white-space: nowrap;
}
.lu-picker-sub { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--pk-t3); }
.lu-picker-fill { flex: 1; min-width: 0; }

.lu-picker-tag {
  flex: none;
  display: inline-flex;
  align-items: center;
  height: 14px;
  padding: 0 5px;
  border-radius: 4px;
  border: 1px solid var(--pk-hair);
  font-weight: 500;
  line-height: 1;
  color: var(--pk-t3);
  white-space: nowrap;
}
.lu-picker-tag.is-accent { color: var(--pk-accent); }
.lu-picker-tag.is-bright { color: var(--pk-t1); }
.lu-picker-tag.is-quiet { opacity: 0.7; }
/* The statement: the one tag that carries the accent as text, edge and tint.
   The measured mark next to it in the catalogue is the plain grey tag, so the
   colour alone tells the two apart. */
.lu-picker-tag.is-statement {
  color: var(--pk-accent);
  border-color: color-mix(in srgb, var(--pk-accent) 55%, transparent);
  background: color-mix(in srgb, var(--pk-accent) 9%, transparent);
  font-weight: 600;
}
/* On white the tint eats into the contrast of the word, so it is thinner
   there (measured in e2e/uncensored-mark.spec.ts: at least 4.5 to 1). */
.light .lu-picker-tag.is-statement {
  background: color-mix(in srgb, var(--pk-accent) 5%, transparent);
}

/* The Beta mark (components/ui/BetaMark, the list in lib/beta.ts). One look
   wherever it stands: the word in a full hairline frame, brighter than a
   quiet tag so it is not overlooked next to a switch, and without a colour,
   because Beta is neither a warning nor an error (lib/hinweis.ts). It brings
   its own two greys, so it reads the same on a panel, a dialog and a sheet. */
.lu-beta {
  flex: none;
  display: inline-flex;
  align-items: center;
  height: 14px;
  padding: 0 5px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  font-size: var(--text-micro);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #e5e7eb;
  white-space: nowrap;
  vertical-align: middle;
  cursor: help;
}
.light .lu-beta { border-color: rgba(0, 0, 0, 0.36); color: #1f2937; }

.lu-picker-icons { flex: none; display: grid; grid-template-columns: 14px 14px; column-gap: 4px; color: var(--pk-t3); }
.lu-picker-icons svg { display: block; opacity: 0.85; }
.lu-picker-num {
  flex: none;
  min-width: 38px;
  text-align: right;
  font-size: var(--text-mono);
  font-variant-numeric: tabular-nums;
  color: var(--pk-t3);
  white-space: nowrap;
}
.lu-picker-row:hover .lu-picker-num,
.lu-picker-row[data-cursor='true'] .lu-picker-num,
.lu-picker-row[aria-selected='true'] .lu-picker-num { color: var(--pk-t2); }

/* The tiny question mark at the end of a row: what the model draws. */
/* The slot keeps its width on a row without one, so the context column
   stays in line. */
.lu-picker-rate-anchor { flex: none; width: 14px; height: 14px; display: inline-flex; }
.lu-picker-rate-btn {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid var(--pk-edge);
  display: inline-grid;
  place-items: center;
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
  color: var(--pk-t3);
}
.lu-picker-rate-btn:hover,
.lu-picker-rate-btn[aria-expanded='true'] { color: var(--pk-t1); border-color: var(--pk-t3); }
/* Lifted out to the body and placed by hooks/usePopoverPlatz, which sets the
   coordinates, the width and the height it may take. */
.lu-picker-rate {
  position: fixed;
  z-index: 100;
  overflow-y: auto;
  padding: 7px 10px 8px;
  border-radius: 8px;
  background: var(--pk-sheet);
  border: 1px solid var(--pk-edge);
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.45);
  font-size: var(--text-mono);
  font-weight: 400;
  line-height: 1.4;
  color: var(--pk-t2);
  white-space: normal;
  text-align: left;
}
.lu-picker-rate h4 { margin: 0 0 3px; font-size: var(--text-label); font-weight: 500; color: var(--pk-t3); }
.lu-picker-rate dl { margin: 0; min-width: 146px; display: grid; grid-template-columns: 1fr auto; column-gap: 16px; }
.lu-picker-rate > span { display: block; max-width: 220px; }
.lu-picker-rate dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; color: var(--pk-t1); }

.lu-picker-foot {
  flex: none;
  height: 26px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px 0 16px;
  border-top: 1px solid var(--pk-hair);
  font-size: var(--text-label);
  color: var(--pk-t3);
  white-space: nowrap;
}
.lu-picker-foot > span:not(.lu-picker-keys) { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.lu-picker-keys { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; }
.lu-picker-keys kbd {
  font: inherit;
  font-size: 9px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border-radius: 3px;
  border: 1px solid var(--pk-hair);
  display: inline-grid;
  place-items: center;
}

/* ─────────────────────────────────────────────────────────────────────
   `shadow-sm` ist ein Hellmodus-Rezept — eine Regel statt zwoelf
   Call-Sites (D-T09).

   `--shadow-lg/xl/2xl` hat dieses Haus fuer dunkle Flaechen nachgezogen
   (0,6–0,8 Alpha, grosse Weichzeichnung). `shadow-sm` NICHT: es steht
   weiterhin auf Tailwinds Werkseinstellung, `0 1px 3px rgb(0 0 0/.1)`
   plus `0 1px 2px -1px rgb(0 0 0/.1)`. An zwoelf Stellen der App.

   Nachgerechnet (WCAG 2.1, dunkelster Schattenpixel gegen seinen Grund;
   wo beide Lagen uebereinanderliegen, deckt der Schatten 19 % Schwarz):

     hell   #ffffff Blatt        1,248 … 1,558:1
     hell   #e5e7eb Leinwand     1,247 … 1,554:1
     dunkel #141414 Leinwand     1,017 … 1,033:1
     dunkel #1e1e1e Pane         1,033 … 1,065:1
     dunkel #262626 Panel        1,051 … 1,089:1
     dunkel #363636 Overlay      1,077 … 1,156:1

   Zum Vergleich: die Pane-Kante im Hellmodus stand vor D-S42 bei 1,008:1
   und wurde dort als „keine Kante, das ist Rauschen" verworfen. Die
   dunklen Werte hier liegen in derselben Klasse.

   Und es hilft NICHT, den Schatten dunkler zu stellen. Ein Schatten kann
   eine Flaeche nur abdunkeln, also ist er nach unten durch Schwarz
   begrenzt. Selbst 100 % Schwarz schafft:

     auf #141414   1,140:1        auf #ffffff   21,000:1
     auf #1e1e1e   1,260:1        auf #e5e7eb   16,962:1

   Auf der Leinwand dieser App ist die theoretische Obergrenze eines
   Schattens also 1,14:1. Das ist keine Frage der Einstellung, das ist
   Arithmetik — Erhebung im Dunkeln kommt aus einer Kante, nicht aus
   einem Schatten (so hat es D-S24 an den 53 Modellkacheln schon
   entschieden).

   Im HELLMODUS bleibt er, und dort traegt er wirklich: der weisse
   Schaltknopf der Toggles steht auf seiner hellen Spur
   (`bg-gray-300/30` ueber Weiss = #f1f2f4) bei 1,120:1 — ohne den
   Schatten waere er dort fast unsichtbar.

   Warum `--tw-shadow` und nicht `box-shadow: none`: Tailwind 4 setzt
   `box-shadow` als EINE Liste aus fuenf Variablen zusammen (inset-shadow,
   inset-ring, ring-offset, ring, shadow). `box-shadow: none` haette auch
   jeden `ring-*` auf demselben Element geloescht. Ueberschrieben wird
   deshalb genau die eine Variable, die dem Schatten gehoert — dasselbe,
   was Tailwinds eigenes `shadow-none` tut.
   ───────────────────────────────────────────────────────────────────── */
.dark .shadow-sm {
  --tw-shadow: 0 0 #0000;
}

/* ─────────────────────────────────────────────────────────────────────
   Theme-contrast rescue layer — ported from the web companion.
   Many components were authored dark-first and use raw `text-gray-300/400`,
   `text-white`, `bg-white/N`, `border-white/N` without a `dark:` variant.
   On the darker #1a1a1a base those dim greys nearly vanish; in light mode the
   dark-first whites/white-tints disappear on white. We remap them theme-
   conditionally so the 300+ component call-sites don't each need touching.
   Specificity: `.light .x` / `.dark .x` (0,2,0) beats the plain utility (0,1,0).
   (The web scopes these to `.lu-app-scaled`; the desktop has no landing page,
   so a plain theme-root scope is equivalent and simpler.)
   ───────────────────────────────────────────────────────────────────── */

/* Light mode: too-dim greys turn invisible on white. Darken them. */
.light .text-gray-100 { color: rgb(31 41 55); }   /* → gray-800 (primary/heading text — the Create surface, ported dark-first, uses bare gray-100/200 for its t-title/body) */
.light .text-gray-200 { color: rgb(31 41 55); }   /* → gray-800 */
.light .text-gray-300 { color: rgb(75 85 99); }   /* → gray-600 */
.light .text-gray-400 { color: rgb(55 65 81); }   /* → gray-700 */
.light .text-gray-500 { color: rgb(55 65 81); }   /* → gray-700 — same so 500 isn't dimmer than 400 */
.light .text-gray-600 { color: rgb(31 41 55); }   /* → gray-800 */

/* Dark mode (#1a1a1a bg): too-dim greys turn invisible. Bump them up. */
.dark .text-gray-700 { color: rgb(107 114 128); } /* → gray-500 */
.dark .text-gray-600 { color: rgb(156 163 175); } /* → gray-400 */
.dark .text-gray-500 { color: rgb(156 163 175); } /* → gray-400 — same as 600 so weight is consistent */

/* Placeholders — Tailwind doesn't add a `dark:` for these, also dropped the
   restlichen `placeholder-*`-Klassen der Komponenten: die beiden Regeln hier
   sind ungeschichtet und schlagen damit jede Utility aus @layer, egal ob in
   der v3- (`placeholder-gray-600`) oder v4-Schreibweise
   (`placeholder:text-gray-600`). Sie sind der EINZIGE Platzhalterwert der App.

   Bis 2.6.7 standen hier gray-800 / gray-200 — also praktisch die Textfarbe
   selbst. Die Grundrelation eines Eingabefeldes stand damit verkehrt herum:
   der Platzhalter war so auffaellig wie der Wert oder auffaelliger, ein leeres
   Feld las sich staerker als ein ausgefuelltes. Nachgerechnet am 01.09.2026
   im laufenden Fenster (Chromium 149, WCAG 2.1, Farben aus getComputedStyle,
   nicht aus den Klassennamen):

     hell   Feldtext gray-800 auf #ffffff        14,68:1
            Platzhalter ALT gray-800             14,68:1  ← derselbe Wert
            Platzhalter NEU gray-600              7,56:1  (auf #f5f5f5: 6,93:1)
     dunkel Feldtext gray-100 auf #1b1b1b        15,65:1
            Platzhalter ALT gray-200             13,91:1  ← 89 % des Textes
            Platzhalter NEU gray-400              6,78:1  (auf #292929: 5,73:1)

   Die beiden neuen Werte sind keine neu erfundenen Zahlen: gray-600 ist genau
   das, was die `.light .placeholder-gray-*`-Regel weiter unten fuer die
   v3-Schreibweise ohnehin setzt, und gray-400 ist der Wert, auf den der
   Rescue-Layer drei Zeilen weiter oben `.dark .text-gray-500/600` hebt.
   Untergrenze: kein Platzhalter faellt unter 4,5:1 — auf dem hellsten dunklen
   Feldgrund der App (#1e1e1e + white/5 = #292929) bleiben 5,73:1, auf dem
   dunkelsten hellen (#f5f5f5) 6,93:1. */
.light ::placeholder { color: rgb(75 85 99); }     /* gray-600 */
.dark ::placeholder { color: rgb(156 163 175); }   /* gray-400 */

/* Light-mode rescue for legacy dark-first components that bake in
   `text-white` / `bg-white/N` / `border-white/N` without a `dark:` variant.
   Re-map them to dark-on-light equivalents so modals/tutorials stay legible.
   Tailwind escapes the slash ("/" → "\/") and brackets ("[" → "\["), so the
   selectors below need backslashes to match. */
.light .text-white { color: rgb(17 24 39); }                /* gray-900 */
.light .hover\:text-white:hover { color: rgb(17 24 39); }

.light .bg-white\/5  { background-color: rgba(0, 0, 0, 0.04); }
.light .bg-white\/8  { background-color: rgba(0, 0, 0, 0.05); }
.light .bg-white\/10 { background-color: rgba(0, 0, 0, 0.06); }
.light .bg-white\/12 { background-color: rgba(0, 0, 0, 0.07); }
.light .bg-white\/15 { background-color: rgba(0, 0, 0, 0.08); }
.light .bg-white\/20 { background-color: rgba(0, 0, 0, 0.10); }
.light .bg-white\/\[0\.03\] { background-color: rgba(0, 0, 0, 0.03); }
.light .bg-white\/\[0\.05\] { background-color: rgba(0, 0, 0, 0.04); }
.light .bg-white\/\[0\.06\] { background-color: rgba(0, 0, 0, 0.05); }
.light .bg-white\/\[0\.08\] { background-color: rgba(0, 0, 0, 0.06); }

.light .hover\:bg-white\/5:hover  { background-color: rgba(0, 0, 0, 0.04); }
.light .hover\:bg-white\/8:hover  { background-color: rgba(0, 0, 0, 0.06); }
.light .hover\:bg-white\/10:hover { background-color: rgba(0, 0, 0, 0.07); }
.light .hover\:bg-white\/12:hover { background-color: rgba(0, 0, 0, 0.08); }
.light .hover\:bg-white\/15:hover { background-color: rgba(0, 0, 0, 0.09); }
.light .hover\:bg-white\/20:hover { background-color: rgba(0, 0, 0, 0.10); }

.light .border-white\/5  { border-color: rgba(0, 0, 0, 0.06); }
.light .border-white\/8  { border-color: rgba(0, 0, 0, 0.08); }
.light .border-white\/10 { border-color: rgba(0, 0, 0, 0.10); }
.light .border-white\/15 { border-color: rgba(0, 0, 0, 0.12); }
.light .border-white\/20 { border-color: rgba(0, 0, 0, 0.15); }
.light .border-white\/25 { border-color: rgba(0, 0, 0, 0.18); }
.light .border-white\/\[0\.04\] { border-color: rgba(0, 0, 0, 0.06); }
.light .border-white\/\[0\.06\] { border-color: rgba(0, 0, 0, 0.08); }
.light .border-white\/\[0\.08\] { border-color: rgba(0, 0, 0, 0.10); }
.light .border-white\/\[0\.1\] { border-color: rgba(0, 0, 0, 0.12); }

.light .hover\:border-white\/15:hover { border-color: rgba(0, 0, 0, 0.12); }
.light .hover\:border-white\/20:hover { border-color: rgba(0, 0, 0, 0.15); }
.light .hover\:border-white\/25:hover { border-color: rgba(0, 0, 0, 0.18); }

.light .focus\:border-white\/20:focus { border-color: rgba(0, 0, 0, 0.20); }
.light .focus\:border-white\/25:focus { border-color: rgba(0, 0, 0, 0.22); }

.light .placeholder-gray-500::placeholder,
.light .placeholder-gray-600::placeholder { color: rgb(75 85 99); }

/* Hover-Gegenstueck zur Rettung oben (Discord-Meldung 20.10.2026: Symbole im
   Hellmodus unsichtbar). `.light .hover\:text-white:hover` stand schon hier,
   die grauen Hover-Farben fehlten. Ein Knopf mit `text-gray-500
   hover:text-gray-300` wurde im Hellmodus beim Ueberfahren hellgrau auf
   Weiss, das Symbol verschwand genau in dem Moment, in dem man es treffen
   will. Gut hundert Stellen tragen das Muster ohne `dark:`. Ziel ist
   gray-900 wie bei `hover:text-white`: im Hellen heisst Hervorheben dunkler. */
.light .hover\:text-gray-100:hover,
.light .hover\:text-gray-200:hover,
.light .hover\:text-gray-300:hover,
.light .group:hover .group-hover\:text-gray-300 { color: rgb(17 24 39); }

/* Flaechen, die in BEIDEN Modi dunkel sind: Bedienknoepfe ueber einem Bild
   oder Video (`bg-black/55` auf der Kachel), die schwarze Lightbox. Die
   Rettung oben dreht dort `text-gray-100` und `text-white` auf Dunkelgrau,
   und das Symbol steht dunkel auf Schwarz (gemessen 1,06:1 bis 1,41:1).
   `lu-on-dark` am Element oder an der dunklen Flaeche nimmt die Rettung
   zurueck und setzt genau die Werte, die der Dunkelmodus dort zeigt. Der
   Dunkelmodus selbst bleibt unberuehrt, jede Regel haengt an `.light`. */
.light .lu-on-dark.text-white, .light .lu-on-dark .text-white { color: #fff; }
.light .lu-on-dark.text-gray-100, .light .lu-on-dark .text-gray-100 { color: var(--color-gray-100); }
.light .lu-on-dark.text-gray-200, .light .lu-on-dark .text-gray-200 { color: var(--color-gray-200); }
.light .lu-on-dark.text-gray-300, .light .lu-on-dark .text-gray-300 { color: var(--color-gray-300); }
.light .lu-on-dark.text-gray-400, .light .lu-on-dark .text-gray-400 { color: var(--color-gray-400); }
.light .lu-on-dark:is(.text-gray-500, .text-gray-600),
.light .lu-on-dark :is(.text-gray-500, .text-gray-600) { color: rgb(156 163 175); }
.light .lu-on-dark.hover\:text-white:hover, .light .lu-on-dark .hover\:text-white:hover { color: #fff; }
.light .lu-on-dark.hover\:text-gray-100:hover, .light .lu-on-dark .hover\:text-gray-100:hover { color: var(--color-gray-100); }
.light .lu-on-dark.hover\:text-gray-200:hover, .light .lu-on-dark .hover\:text-gray-200:hover { color: var(--color-gray-200); }
.light .lu-on-dark.hover\:text-gray-300:hover, .light .lu-on-dark .hover\:text-gray-300:hover { color: var(--color-gray-300); }
.light .lu-on-dark .hover\:text-gray-900:hover { color: var(--color-gray-100); }
.light .lu-on-dark.bg-white\/10, .light .lu-on-dark .bg-white\/10 { background-color: rgb(255 255 255 / 0.10); }
.light .lu-on-dark.hover\:bg-white\/20:hover, .light .lu-on-dark .hover\:bg-white\/20:hover { background-color: rgb(255 255 255 / 0.20); }
.light .lu-on-dark .border-white\/\[0\.08\] { border-color: rgb(255 255 255 / 0.08); }

/* ─────────────────────────────────────────────────────────────────────
   Create typography + surface helpers — the classes the Create components
   apply instead of `text-[Npx]`. Ported from lu-labs globals.css. Without
   these every Create label/button/prompt rendered at the raw root size and
   the control-height vars above were undefined. See the token block near the
   top of this file for the full rationale.
   ───────────────────────────────────────────────────────────────────── */
.t-display { font-size: var(--text-display); line-height: var(--text-display-lh); font-weight: var(--text-display-fw); font-family: var(--font-display); letter-spacing: -0.01em; }
.t-title   { font-size: var(--text-title);   line-height: var(--text-title-lh);   font-weight: var(--text-title-fw); }
.t-body    { font-size: var(--text-body);    line-height: var(--text-body-lh);    font-weight: var(--text-body-fw); }
.t-control { font-size: var(--text-control); line-height: var(--text-control-lh); font-weight: var(--text-control-fw); }
.t-label   { font-size: var(--text-label);   line-height: var(--text-label-lh);   font-weight: var(--text-label-fw); letter-spacing: 0.08em; text-transform: uppercase; }
.t-mono    { font-size: var(--text-mono); font-variant-numeric: tabular-nums; font-family: ui-monospace, 'JetBrains Mono', 'SF Mono', Menlo, monospace; }

/* ─────────────────────────────────────────────────────────────────────
   `.t-micro` — die Stufe, deren Fehlen die Leiter umgangen hat (D-T04)

   Gezaehlt am 01.09.2026 ueber src/ ohne __tests__: 1026 Fundstellen
   einer arbitraeren Schriftgroesse in eckigen Klammern, verteilt auf 30
   verschiedene Werte (28 Groessen + 2 Farben). Dagegen 143 Nutzungen der
   `.t-*`-Klassen. Das System existiert und wird umgangen.

   Die Frage war, WARUM. Die Antwort steht in der Verteilung:

     947 von 1026 (92,3 %) liegen zwischen 8 und 11,99 px, also UNTER
     --text-body (13). Nur 65 (6,3 %) sitzen exakt auf einer Stufe.

     Unter 13px hat die Leiter drei Stufen — und keine davon ist
     schlichter Text:
       --text-label (10)  erzwingt uppercase + 0,08em Laufweite
       --text-mono  (11)  wechselt die Schriftfamilie
       --text-control (12) setzt line-height 1 (Controlmass, kein Satz)

     Von den 947 Bandstellen tragen 38 uppercase/tracking, waeren also
     `.t-label`-Kandidaten. Die anderen 909 sind schlichter Kleintext,
     und dafuer gab es keinen Namen.

   Die Luecke ist also KEINE fehlende Zahl. Der haeufigste Umgehungswert
   ist 0.6rem = 9,6px, der gewichtete Mittelwert des ganzen Bandes 9,75px
   — beides einen Viertelpixel neben der 10, die schon da ist. Die
   Leiter hatte die Zahl und hat sie in einem Stilrezept eingesperrt.

   Deshalb bekommt `.t-micro` KEINE eigene Zahl: --text-micro ist
   `var(--text-label)`. Eine Groesse, zwei Rezepte — das Grossbuchstaben-
   Etikett und der schlichte Kleintext.

   Die Auflösung, in der bisher entworfen wurde, ist der zweite Teil des
   Befunds: 14 verschiedene Werte in einem 4px-Band, die engsten 0,08px
   auseinander (0.62rem = 9,92 gegen 0.63rem = 10,08). Bei --ui-scale
   1,15 sind das 0,09 gerenderte Pixel. Das ist keine Entscheidung, das
   ist Rauschen.

   ── Warum diese Klasse NUR die Groesse setzt ──

   Es gibt einen zweiten Grund fuer die Umgehung, und er ist im Browser
   nachgemessen: die sechs Klassen oben stehen UNGESCHICHTET und schlagen
   damit jede Tailwind-Utility, egal mit welcher Spezifitaet (dieselbe
   Mechanik wie beim Fokusring weiter oben). Gemessen mit
   getComputedStyle, Chromium 149:

     class="t-body font-semibold"   → font-weight 400  (nicht 600)
     class="t-control font-bold"    → font-weight 500  (nicht 700)
     class="t-body leading-none"    → line-height 19,5px (nicht 1)
     class="t-label font-normal"    → font-weight 600  (nicht 400)

   Wer `.t-body` nimmt, verliert also still sein `font-semibold`. Ein
   Rezept, das die Entscheidungen der Call-Site frisst, ist kein
   Angebot — es ist ein Grund, in eckige Klammern auszuweichen.

   `.t-micro` macht das ausdruecklich nicht: EINE Eigenschaft, sonst
   nichts. Damit ist der Tausch gegen `text-[10px]` beweisbar
   folgenlos. Nachgemessen: `text-[10px]` erbt line-height 1,5 aus dem
   Preflight (`html { line-height: 1.5 }` vererbt als ZAHL) und rendert
   15px; `.t-micro` aendert daran nichts und rendert ebenfalls 15px.
   Ein `line-height` hier wuerde genau den Fehler wiederholen, der die
   anderen 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); }

/* `.lu-focus-ring` stand hier und ist ersatzlos gestrichen (Audit §5:
   „9 redundante Nutzungen"). Sie war die Kopie der globalen Regel fuer
   Controls, die keine `<button>`/`<a>` sind — seit der Fokusring oben an
   `:focus-visible` haengt statt an einer Elementliste, deckt er genau diese
   Faelle mit ab. Eine Klasse, die nichts hinzufuegt, ist eine Klasse, die
   irgendwann auseinanderlaeuft: die alte Kopie hier trug noch den 1px-Ring,
   als der globale schon 2px gehabt haette. */

/* ──────────────────────────────────────────────────────────────────
   .lu-control — DAS neutrale Control-Rezept der Composer-Leiste.

   Zusammen mit `.lu-primary` weiter unten sind das die ZWEI Formsprachen,
   die die Prompt-Zeile noch kennt. Vorher waren es neun, nebeneinander,
   auf 40 Pixel Hoehe (Audit Welle 2, „Composer-Grammatik"; die Zaehlung
   steht in src/components/chat/__tests__/composer-grammar.test.ts):
   Paperclip `p-1.5 rounded-md`, Think `px-1.5 py-1.5 rounded-md` mit
   blauem Rand nur im Ein-Zustand, Docs dasselbe in Gruen, Tools ganz ohne
   Flaeche, Plugins `px-2 py-0.5 rounded` mit Dauer-Rand und 10,12px
   Schrift, Modellwaehler `h-[26px] rounded-md` mit Dauer-Rand und 12,88px
   Schrift, Stop rot gefuellt, Send violett gefuellt. Vier Hoehen
   (17 / 26 / 27,8 px), drei Radien (4,6 / 6,9 / 9,2 px), drei
   Schriftgroessen.

   Was hier steht, ist ausdruecklich EIN Rezept mit ZUSTAENDEN, nicht
   mehrere Rezepte: Ruhe · Hover · aktiv/offen · disabled · Fokus. Der
   aktive Zustand wird aus ARIA gelesen (`aria-pressed` fuer Umschalter,
   `aria-expanded` fuer Aufklapper), damit die Call-Sites nichts
   dazuschreiben muessen und die Zustandsanzeige zwangslaeufig mit der
   Barrierefreiheit uebereinstimmt statt daneben zu leben.
   `data-active` ist die dritte Tuer, fuer Controls, die weder Umschalter
   noch Aufklapper sind — heute genau eine: Stop.

   Der Rand ist IMMER da, nur im Ruhezustand durchsichtig. Vorher kam er
   erst beim Aktivieren dazu und die Leiste wuchs beim Umschalten um 2px.

   Warum Stop NEUTRAL bleibt und nicht `.lu-primary` traegt: Stop ist der
   Normalabschluss eines Streams und die haeufigste Aktion, waehrend eine
   Antwort laeuft — kein destruktiver Bestaetigungsknopf. Es trug
   `bg-red-500/15 text-red-400`, und bei 94 `text-red-400`-Fundstellen
   heisst Rot in dieser App „kaputt oder wird geloescht" (Audit §4, Chat
   streamend). Auffindbar bleibt es ueber `data-active`, also ueber den
   Behaelter des neutralen Rezepts, nicht ueber Farbe.

   Geometrie aus vorhandenen Tokens, keine neuen Zahlen:
   Hoehe --control-h-sm (26px, die Hoehe, die der Modellwaehler und der
   Send-Slot schon hatten), Radius --radius-control (8px, die Stufe aus
   dem Token-Diff), Uebergang --motion-fast/--motion-ease.

   Farbe: gerechnet, nicht geschaetzt (WCAG 2.1, 11,04px = Fliesstext,
   AA = 4.5:1). Dunkelmodus #9ca3af auf #1e1e1e = 6.57:1, aktiv #f3f4f6
   = 15.15:1. Hellmodus #4b5563 auf #ffffff = 7.56:1, aktiv #111827
   = 17.74:1. composer-grammar.test.ts rechnet diese vier Werte nach UND
   prueft, dass genau sie hier stehen — der Kommentar kann also nicht
   veralten, ohne rot zu werden.
   ───────────────────────────────────────────────────────────────── */
.lu-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 0 0 auto;
  height: var(--control-h-sm);
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  /* Bezugsrahmen fuer alles, was das Rezept UEBER das Control legt — heute
     genau eins: der Aufnahme-Puls des Mikrofons weiter unten. Das ist
     Geometrie, gilt also fuer beide Rezepte und traegt keine Abgrenzung
     gegen das betonte. Die beiden Aufklapper der Leiste (Plugins,
     Modellwaehler) haengen ihre Menues als GESCHWISTER des Knopfes auf,
     nicht darin — sie bekommen davon nichts ab. */
  position: relative;
  background-color: transparent;
  color: rgb(156 163 175);
  font-size: 0.6rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  /* `scale` steht hier, weil dieses Rezept seine `transition` BESITZT — die
     globale Press-Regel weiter oben darf die Liste an 489 fremden
     Call-Sites nicht ersetzen, hier gibt es keine fremde Liste. Ergebnis:
     der Druck in der Prompt-Zeile laeuft weich aus statt zurueckzuspringen.
     Dieselben 120 ms wie Hover und Farbe, keine fuenfte Dauer. */
  transition:
    background-color var(--motion-fast) var(--motion-ease),
    border-color var(--motion-fast) var(--motion-ease),
    color var(--motion-fast) var(--motion-ease),
    scale var(--motion-fast) var(--motion-ease);
}
/* Ueberall dort, wo die neutrale HAUT gesetzt wird, steht `:not(.lu-primary)`.
   Grund: Send traegt beide Klassen (`.lu-control .lu-control--icon
   .lu-primary`) — Geometrie vom neutralen, Farbe vom betonten Rezept. Beide
   sind ungeschichtet, also entscheidet erst die Spezifitaet und dann die
   Reihenfolge. `.light .lu-control:hover:not(:disabled)` ist 0,4,0 und
   schlaegt `.lu-primary:hover:not(:disabled)` mit 0,3,0 — im Hellmodus
   waere der Senden-Knopf beim Ueberfahren grau geworden. Die Ausnahme steht
   deshalb an der Regel, nicht als Gegengewicht mit noch mehr Spezifitaet.
   Geometrie (Hoehe, Radius, Polsterung, Rand-PLATZ) gilt weiterhin fuer
   beide — sie ist ja gerade der gemeinsame Teil. */
.light .lu-control:not(.lu-primary) { color: rgb(75 85 99); }

/* Die quadratische Variante fuer nackte Icons. Gleiche Hoehe, gleicher
   Radius, gleiche Zustaende — nur ohne waagerechtes Padding, damit das
   Icon mittig sitzt. Das ist keine zweite Formsprache, sondern dieselbe
   ohne Beschriftung. */
.lu-control--icon {
  width: var(--control-h-sm);
  padding: 0;
}

/* The variant that shows its edge at rest. In a toolbar the controls stand in
   a row and the row is their container. Alone on a card (Stop, Remove, the
   size picker, Get on a model that does not fit this machine) a control
   without an edge reads as a label, and that was the Model Manager's
   complaint on 08.10.2026: nobody could tell what was there to be pressed.
   The edge is the one the pressed state draws anyway, so no new value. */
.lu-control--outline { border-color: rgba(255, 255, 255, 0.14); }
.light .lu-control--outline { border-color: rgba(0, 0, 0, 0.14); }

/* The light switch of the Voice surface: a wall rocker that stands in the
   "on" position for as long as the voice engine is in memory. Same height,
   radius and timing as the controls next to it. The rocker is the picture,
   the number next to it says how much memory a click gives back. */
.lu-light-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  height: var(--control-h-sm);
  padding: 0 8px 0 5px;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: var(--radius-control);
  background-color: transparent;
  transition:
    background-color var(--motion-fast) var(--motion-ease),
    border-color var(--motion-fast) var(--motion-ease);
}
.light .lu-light-switch { border-color: rgb(0 0 0 / 0.14); }
.lu-light-switch:hover:not(:disabled) { background-color: rgb(255 255 255 / 0.06); }
.light .lu-light-switch:hover:not(:disabled) { background-color: rgb(0 0 0 / 0.05); }
.lu-light-switch:disabled { opacity: 0.6; cursor: default; }
.lu-light-switch__rocker {
  position: relative;
  width: 10px;
  height: 16px;
  border-radius: 3px;
  border: 1px solid rgb(255 255 255 / 0.28);
  background-color: rgb(255 255 255 / 0.06);
}
.light .lu-light-switch__rocker {
  border-color: rgb(0 0 0 / 0.3);
  background-color: rgb(0 0 0 / 0.04);
}
/* The pressed half of the rocker: up means on. */
.lu-light-switch__rocker::after {
  content: '';
  position: absolute;
  left: 1px;
  right: 1px;
  top: 1px;
  height: 6px;
  border-radius: 2px;
  background-color: var(--color-lu-accent);
  transition: top var(--motion-fast) var(--motion-ease), background-color var(--motion-fast) var(--motion-ease);
}
.lu-light-switch:disabled .lu-light-switch__rocker::after {
  top: 7px;
  background-color: rgb(156 163 175);
}

/* Der Aufnahme-Puls. Ein Control, das gerade zuhoert, sagt das lauter als
   „aktiv" — aber nicht in Rot: das Mikrofon nimmt auf, es ist nicht kaputt,
   und Rot heisst in dieser App an rund hundert Stellen „kaputt oder wird
   geloescht" (dieselbe Begruendung, aus der Stop neutral wurde, siehe oben).
   Getragen wird die Aussage ohnehin nicht von diesem Ring allein:
   `aria-pressed` setzt den Behaelter, das aria-label wechselt auf „Stop
   recording", und der Platzhalter im Eingabefeld schreibt „Recording..."
   aus. Trotzdem ist Aufnahme ein Zustand, den man auf einen Blick sehen
   koennen muss — deshalb die VOLLE Akzentkante und nicht der halb
   durchsichtige --color-lu-accent-ring, der hier auf 2.78:1 (dunkel) und
   1.60:1 (hell) gekommen waere. Die Aufteilung ist die des
   Primaer-Rezepts weiter unten: Akzent im Dunkelmodus, --accent-edge im
   Hellmodus, wo die Flaeche selbst zu hell steht.
   Gerechnet auf der Composer-Flaeche (`bg-white/[0.03]` ueber #1e1e1e =
   #252525 / `bg-gray-50` = #f9fafb) und auf dem aktiven Behaelter, den
   `aria-pressed` darunterlegt (#343434 / #edeeee):
     dunkel  #a094f8  5.90:1 auf der Flaeche, 4.79:1 auf dem Behaelter
     hell    #8b7cf0  3.22:1 auf der Flaeche, 2.90:1 auf dem Behaelter
   Der letzte Wert liegt knapp unter den 3:1 aus 1.4.11 — hinnehmbar aus
   demselben Grund, aus dem es der aria-pressed-Rand daneben ist: der Ring
   ist Zugabe, nie das einzige Signal. Vorher lag hier ein 2px-Ring in
   Rot mit 5.54:1 (dunkel) / 3.60:1 (hell); lauter, aber mit der falschen
   Aussage.
   Takt 1200 ms = --motion-slow x 4, genau die Dauer, die vorher als
   framer-motion-Literal im Knopf stand; jetzt CSS, damit
   „Bewegung reduzieren" ihn ueberhaupt erreichen kann. */
@keyframes lu-control-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(1.12); }
}
.lu-control__pulse {
  position: absolute;
  inset: 0;
  border: 1px solid var(--color-lu-accent);
  border-radius: inherit;
  pointer-events: none;
  animation: lu-control-pulse calc(var(--motion-slow) * 4) var(--motion-ease) infinite;
}
.light .lu-control__pulse { border-color: var(--color-lu-accent-edge); }

.lu-control:not(.lu-primary):hover:not(:disabled) {
  background-color: rgba(255, 255, 255, 0.07);
  color: rgb(243 244 246);
}
.light .lu-control:not(.lu-primary):hover:not(:disabled) {
  background-color: rgba(0, 0, 0, 0.05);
  color: rgb(17 24 39);
}

/* Aktiv / offen — der Behaelter erscheint erst hier. Traeger der Aussage
   ist die Textfarbe (6.57:1 → 15.34:1 im Dunkelmodus), nicht der Rand:
   ein 1px-Rand bei 14% Deckung erfuellt 1.4.11 fuer sich genommen nicht
   und ist deshalb bewusst nur die Zugabe, nie das einzige Signal. */
.lu-control:not(.lu-primary)[aria-pressed='true'],
.lu-control:not(.lu-primary)[aria-expanded='true'],
.lu-control:not(.lu-primary)[data-active='true'] {
  background-color: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgb(243 244 246);
}
.light .lu-control:not(.lu-primary)[aria-pressed='true'],
.light .lu-control:not(.lu-primary)[aria-expanded='true'],
.light .lu-control:not(.lu-primary)[data-active='true'] {
  background-color: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.14);
  color: rgb(17 24 39);
}

/* Beschaeftigt — der Modellwaehler waehrend ein Modell laedt. Akzentkante
   statt eines eigenen blauen Rezepts mit Leuchtschatten. */
.lu-control:not(.lu-primary)[aria-busy='true'] {
  border-color: var(--color-lu-accent-ring);
}

/* Der eigene Fokusring dieses Rezepts ist gestrichen. Er trug
   `--color-lu-accent-ring`, also den halbdurchsichtigen Akzent bei 55 %,
   und der kommt ueber der Composer-Leiste auf 2.78:1 (dunkel) und 1.60:1
   (hell) — beides unter den 3:1 aus WCAG 1.4.11. Dieselbe Rechnung, aus der
   weiter oben der Aufnahme-Puls die VOLLE Kante bekommen hat, gilt hier:
   das Rezept nimmt jetzt den Ring des Hauses (6.42:1 / 3.37:1) statt einen
   eigenen, schwaecheren. Ohne Regel greift die globale von oben. */

/* Deaktiviert heisst gedimmt, nicht defekt: Paperclip und Mikrofon standen
   auf `opacity-20` und lasen sich als kaputt (Audit §4, Chat streamend). */
.lu-control:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ──────────────────────────────────────────────────────────────────
   .lu-primary — DAS Primaer-Rezept. Genau einmal definiert, benutzt von
   allen drei Primaeraktionen der App:
     • create/ui/Button.tsx      (Variante `primary`, u.a. Generate)
     • auth/AccountPanel.tsx     (Sign in / Create account)
     • chat/ChatInput.tsx        (Send)
   Vorher waren das drei getrennte Graustufen-Rezepte (`bg-gray-900`,
   `dark:bg-white/10`, `bg-white/8`) — die wichtigste Aktion des Bildschirms
   sah aus wie eine beliebige Nebenaktion.

   Farbe kommt ausschliesslich aus dem @theme-Block, kein Literal hier.
   Der Zustand `disabled` entsaettigt die Flaeche zusaetzlich zum Dimmen,
   damit er nicht als die aktive Variante durchgeht; die Call-Sites bringen
   ihr eigenes `disabled:opacity-*` mit, das sich damit addiert.
   Fokus: 2px Ring mit 2px Abstand, damit er auf dem HINTERGRUND liegt und
   nicht auf der Akzentflaeche — dunkel im Hellmodus, weiss im Dunkelmodus.
   Das ist die EINE dokumentierte Ausnahme vom Hausring: der Akzentring auf
   der Akzentflaeche kaeme auf 1.00:1. Die Ausnahme wird nicht durch mehr
   Spezifitaet erkaempft, sondern steht als `:not(.lu-primary)` an der
   Hausregel selbst (siehe dort) — sonst haette der Hellmodus-Zweig mit
   0,3,0 diese Regel mit 0,2,0 still geschlagen.
   Gemessen: #111827 auf Weiss = 17.74:1, Weiss auf #1e1e1e = 16.67:1.
   ───────────────────────────────────────────────────────────────── */
.lu-primary {
  background-color: var(--color-lu-accent);
  color: var(--color-lu-on-accent);
  border: 1px solid var(--color-lu-accent);
  font-weight: 500;
}
.light .lu-primary { border-color: var(--color-lu-accent-edge); }

.lu-primary:hover:not(:disabled) {
  background-color: var(--color-lu-accent-hover);
  border-color: var(--color-lu-accent-hover);
}

.lu-primary:focus-visible {
  outline: 2px solid var(--color-lu-on-accent);
  outline-offset: 2px;
}
.dark .lu-primary:focus-visible { outline-color: white; }

.lu-primary:disabled {
  filter: grayscale(1);
  opacity: 0.45;
  cursor: not-allowed;
}

/* ──────────────────────────────────────────────────────────────────
   .lu-tonal: the action of a card in a grid.

   Between the two recipes above there was nothing. `.lu-primary` is the one
   filled accent of a screen (Send, Generate, Sign in), `.lu-control` is
   neutral. A catalogue shows the same action once per card, up to 53 times
   on one screen. Filled, that is a wall of violet, which is why the tiles of
   the Model Manager kept their Get neutral until now. Neutral, it is what
   The owner said about that page on 08.10.2026: one cannot tell where to click.

   So the card action is tinted and not filled: the accent at 12 % as its
   surface, the accent as its word, an edge of the same hue. It leads the eye
   to the one thing a card is for and stays quiet in a grid of them.
   `.lu-primary` keeps its place as the action of a surface that has exactly
   one: the engine setup, an empty state.

   Geometry is the neutral recipe's own (height, radius, type size), so a Get
   stands in one line with the Stop or the picker next to it.

   Contrast of the word on its own fill, computed in
   models/__tests__/the-accent-leads-to-the-action.test.ts. The fill is 12 %
   and not the 14 % of `--color-lu-accent-soft`: at 14 % the word drops to
   4.48:1 the moment the tile under it is hovered and lightens.
     dark   accent on the fill over a tile    4.84:1   tile hovered 4.64:1
            hover, 20 % and the lifted accent 4.81:1
     light  ink on the fill over a tile       5.56:1   tile hovered 5.28:1
            hover, 20 %                       4.98:1
   Focus is the ring of the house, which lies on the tile and not on the
   fill. Disabled loses its colour like `.lu-primary` does: a Get that waits
   for another download must not look like the one that can be pressed.
   ───────────────────────────────────────────────────────────────── */
.lu-tonal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 0 0 auto;
  height: var(--control-h-sm);
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--color-lu-accent) 30%, transparent);
  border-radius: var(--radius-control);
  background-color: color-mix(in srgb, var(--color-lu-accent) 12%, transparent);
  color: var(--color-lu-accent);
  font-size: 0.6rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition:
    background-color var(--motion-fast) var(--motion-ease),
    border-color var(--motion-fast) var(--motion-ease),
    color var(--motion-fast) var(--motion-ease),
    scale var(--motion-fast) var(--motion-ease);
}
.light .lu-tonal {
  border-color: color-mix(in srgb, var(--color-lu-accent-ink) 30%, transparent);
  color: var(--color-lu-accent-ink);
}
.lu-tonal:hover:not(:disabled) {
  border-color: var(--color-lu-accent-ring);
  background-color: color-mix(in srgb, var(--color-lu-accent) 20%, transparent);
  color: var(--color-lu-accent-hover);
}
.light .lu-tonal:hover:not(:disabled) {
  border-color: var(--color-lu-accent-ink);
  color: var(--color-lu-accent-ink);
}
.lu-tonal:disabled {
  filter: grayscale(1);
  opacity: 0.45;
  cursor: not-allowed;
}

/* ──────────────────────────────────────────────────────────────────
   .lu-tile: the card of a catalogue grid.

   The chat tile, the bundle tile, the Mac media tile, the installed row and
   the loading skeleton each spelled the same surface by hand, five chains
   that had to be changed together and were not. One recipe: surface, edge,
   corner and the hover that says the card is alive.

   Depth comes from the edge and not from a shadow. On the dark pane a shadow
   tops out at 1.26:1 (the arithmetic stands at `.dark .shadow-sm` above), so
   a raised card is a brighter edge. `--lead` is that brighter edge at rest,
   for the cards a page puts first. `--active` is the one that is in use: the
   soft accent ground and the accent edge, the same pair the Settings
   navigation and the Models rail mark their selection with, and it holds
   while the pointer is over it.

   Padding stays with the caller: a tile and a list row share the surface,
   not the measure.
   ───────────────────────────────────────────────────────────────── */
.lu-tile {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-xl);
  background-color: rgba(255, 255, 255, 0.03);
  transition:
    background-color var(--motion-fast) var(--motion-ease),
    border-color var(--motion-fast) var(--motion-ease);
}
.lu-tile:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background-color: rgba(255, 255, 255, 0.045);
}
.lu-tile--lead { border-color: rgba(255, 255, 255, 0.14); }
.light .lu-tile {
  border-color: rgba(0, 0, 0, 0.09);
  background-color: rgb(249 250 251);
}
.light .lu-tile:hover {
  border-color: rgba(0, 0, 0, 0.16);
  background-color: rgb(243 244 246);
}
.light .lu-tile--lead { border-color: rgba(0, 0, 0, 0.16); }
.lu-tile--active,
.lu-tile--active:hover {
  border-color: var(--color-lu-accent-ring);
  background-color: var(--color-lu-accent-soft);
}
.light .lu-tile--active,
.light .lu-tile--active:hover {
  border-color: var(--color-lu-accent-edge);
  background-color: var(--color-lu-accent-soft);
}

/* Checkerboard backing so transparent (background-removed) PNGs don't read
   as solid black in the Stage / gallery. */
.lu-checker {
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, 0.06) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.06) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.06) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.06) 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
}

/* Tool-call band (2.6.0, 2026-07-31): the running tool's name gets a
   soft violet sweep and trailing dots, so a live call reads as "working"
   without a chip per step. Text shimmer needs background-clip, so light and
   dark pick their own base grey. */
@keyframes lu-tool-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.lu-tool-shimmer {
  background: linear-gradient(90deg, #4b5563 30%, #a78bfa 50%, #4b5563 70%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: lu-tool-shimmer 1.6s linear infinite;
}
.dark .lu-tool-shimmer {
  background-image: linear-gradient(90deg, #9ca3af 30%, #c4b5fd 50%, #9ca3af 70%);
}
@keyframes lu-band-dot {
  0%, 80%, 100% { opacity: 0.25; }
  40% { opacity: 1; }
}
.lu-band-dot { animation: lu-band-dot 1.2s ease-in-out infinite; }

/* ──────────────────────────────────────────────────────────────────
   .lu-caret — der Herzschlag des Streams (Audit Welle 3, §4 Befund 7:
   „Streaming ist kein eigener Zustand ... Das ist der eine Moment, fuer
   den diese App existiert. Er hat keine Choreografie.").

   Angesetzt wird am LETZTEN Block der gerenderten Antwort, nicht an einem
   eigenen Element im Baum. Der Grund ist der teuerste Pfad der App: der
   Balken laeuft waehrend des Streamens, also bei JEDEM Token. Ein
   `<span>`, das React pro Token neu einhaengt, wuerde die Animation bei
   jedem Token von vorn starten (ein zuckender statt eines blinkenden
   Balkens) — ein Pseudoelement gehoert React nicht, es ueberlebt jede
   Reconciliation des Textknotens darueber und laeuft im Compositor
   durch. Und das Blinken ist deshalb KEIN JS-Timer: kein setInterval,
   kein useState, kein requestAnimationFrame, also auch kein Rerender,
   den es ohne diesen Balken nicht schon gaebe.

   `.markdown-content` ist die Wurzel, die MarkdownRenderer immer setzt;
   `> :last-child` ist der letzte Block darin, also genau das Ende der
   zuletzt geschriebenen Zeile. Das ist auch der Grund, warum der Balken
   beim Absatzwechsel mitspringt, statt am alten Absatz haengen zu
   bleiben.

   Geometrie: 2px breit (Hairline), `1em` hoch — der Audit nennt 2x14px,
   und 1em IST 14,35px an der Stelle, an der der Balken steht
   (`text-[0.78rem]` auf 16px Wurzel × --ui-scale 1.15 = 14,35 gerenderte
   px, wie vorher auf der 18,4px-Wurzel). In em statt in px, damit er der
   Schriftgroesse folgt und nicht bei der naechsten Skalenaenderung
   danebensteht.

   Farbe: `currentColor`, also die Textfarbe des Absatzes, an dem er
   haengt. Damit fuehrt dieser Balken KEINE neue Farbe ein — er erbt die,
   die dort schon gemessen ist: #e5e7eb auf #1e1e1e = 13.47:1 (dunkel),
   #1f2937 auf #ffffff = 14.68:1 (hell). Beides weit ueber den 3:1, die
   1.4.11 fuer ein Nicht-Text-Signal dieser Groesse verlangt.

   Takt: aus der vorhandenen Motion-Leiter gerechnet, nicht als fuenfte
   Zahl danebengeschrieben — `--motion-slow` an und `--motion-slow` aus,
   also 300/300 ms. Der Audit schlaegt 133/133 vor; das waeren 3,8
   Blitze pro Sekunde, direkt an der Schwelle aus WCAG 2.3.1, und neben
   laufendem Text liest es sich als Stroboskop. 1,67 Hz sagt dasselbe
   („hier kommt noch etwas") und flimmert nicht.
   ────────────────────────────────────────────────────────────────── */
@keyframes lu-caret-blink {
  0%, 49.99% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
.lu-caret .markdown-content > :last-child::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -0.15em;
  border-radius: 1px;
  background-color: currentColor;
  animation: lu-caret-blink calc(var(--motion-slow) * 2) linear infinite;
}

/* ─────────────────────────────────────────────────────────────────────
   „Bewegung reduzieren" respektieren (Audit Welle 2)

   Für einen Teil der Nutzer ist das keine Geschmacksfrage: großflächige
   Bewegung löst Übelkeit und Schwindel aus. Bisher lief trotz gesetzter
   Systemeinstellung die volle Animation.

   ENTSCHEIDUNG: nicht auf null. Ein Dialog, der ohne jede Andeutung
   dasteht, liest sich wie ein Darstellungsfehler — man sieht nicht, ob er
   gerade aufging oder schon die ganze Zeit da war. Stattdessen wird alles
   auf eine sehr kurze Ein-/Ausblendung zusammengezogen (--motion-fast,
   120 ms, linear): kurz genug, dass nichts mehr über den Schirm wandert,
   lang genug, dass die Zustandsänderung sichtbar bleibt.

   Endlos laufende Zierde (Shimmer, pulsierende Punkte) wird dagegen ganz
   angehalten — Dauerbewegung hat keine Rückmeldefunktion, sie ist nur
   Dekoration, und genau sie ist das Problem.

   framer-motion animiert an CSS vorbei (inline Transforms per JS), diese
   Regel erreicht es also NICHT. Dafür sitzt <MotionConfig reducedMotion="user">
   an der App-Wurzel (src/App.tsx).
   ───────────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: var(--motion-fast) !important;
    transition-timing-function: linear !important;
    /* `iteration-count: 1` beendet auch Dauerschleifen. Ohne das würde die
       gekürzte Dauer aus einem 1,6-s-Shimmer ein Stroboskop mit acht Durch-
       läufen pro Sekunde machen — schlimmer als der Ausgangszustand. */
    animation-duration: var(--motion-fast) !important;
    animation-iteration-count: 1 !important;
    animation-timing-function: linear !important;
    scroll-behavior: auto !important;
  }

  /* AUSNAHME: der Ladekringel ist keine Zierde, er ist die einzige Auskunft
     darüber, dass die App noch arbeitet und nicht hängt. Er läuft weiter,
     aber langsam und gleichförmig (1,5 s statt 1 s) — eine kleine, ortsfeste
     Drehung ist vestibulär unkritisch, ein eingefrorener Spinner dagegen
     eine Falschaussage. Gleiches gilt für die Skelett-Pulse. */
  .animate-spin {
    animation-duration: 1.5s !important;
    animation-iteration-count: infinite !important;
  }
  .animate-pulse {
    animation-duration: 3s !important;
    animation-iteration-count: infinite !important;
  }

  /* GEGENAUSNAHME: der Caret steht STILL, statt kurz zu zucken. Er ist
     beides zugleich — der Balken selbst ist Auskunft („der Stream laeuft
     noch"), sein Blinken ist Zierde. Ohne diese Zeile griffe die Regel
     ganz oben und machte aus 300/300 ms ein einzelnes 120-ms-Zucken beim
     Erscheinen, danach stuende er ohnehin. Hier faellt nur der
     Animations-NAME weg; `opacity: 1` aus der Basisregel bleibt, der
     Balken ist also sichtbar und ruhig. Deshalb kein !important: die
     Regel oben setzt Dauer, Zaehler und Kurve, nie den Namen. */
  .lu-caret .markdown-content > :last-child::after,
  .lu-control__pulse {
    animation-name: none;
  }
}

/* ─────────────────────────────────────────────────────────────────────
   `.lu-field-dark`: ein Feld, das in einer SCHWARZEN Mulde liegt.

   Der Eigner am 21.09.2026 zur Preset-Werkstatt: das Feld "Resolution"
   stand als natives `<select>` im Browser-Look darin, also mit hellem
   Systempfeil auf einer helleren Flaeche, mitten in einem Fenster, das
   sonst schwarz ist. `baseFieldClass` (SchemaControl.tsx) ist der
   gemeinsame Feldstil des ganzen Create-Tabs und faerbt deshalb auch die
   Felder der Expert-Schublade; er bleibt, wie er ist. Diese Klasse legt
   sich NUR dort darueber, wo die Felder in der schwarzen Mulde liegen.

   Sie ist ungeschichtet und schlaegt damit die Tailwind-Utilities aus
   `baseFieldClass` (`@layer utilities`), ohne dass dort etwas entfernt
   werden muss. Der Pfeil ist derselbe Winkel wie der `ChevronDown` von
   lucide daneben, in `text-gray-400` (#9ca3af, 6,42:1 auf der Mulde).
   ───────────────────────────────────────────────────────────────────── */
.lu-field-dark {
  background-color: rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.08);
}
select.lu-field-dark {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 1.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%239ca3af' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6.5l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.55rem center;
  background-size: 13px 13px;
}
select.lu-field-dark option {
  background-color: var(--color-lu-base);
}

/* Computer control has LU's window while it works on the screen: the small
   panel in the corner of the display, or the paused view
   (components/computer/ComputerSurface). The page under it stays mounted and
   is not shown. On Windows the window is see-through, so nothing of the page
   may paint around the panel. */
html[data-computer-surface]:not([data-computer-surface='window']),
html[data-computer-surface]:not([data-computer-surface='window']) body {
  background: transparent !important;
}
html[data-computer-surface]:not([data-computer-surface='window']) #root {
  visibility: hidden;
}

/* The panel. In the app the window is exactly as large as the panel, so a
   shadow that reaches outside would be cut off at the edge of the window:
   the panel is drawn by its surface and its hairline alone. An opaque
   window (macOS) has square corners, and the panel fills it to the edge. */
.lu-computer-panel {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: border-color var(--motion-slow) var(--motion-ease);
}
.light .lu-computer-panel {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.lu-computer-panel--flush {
  border: 0;
}
.lu-computer-head {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
/* Pause and Stop stand next to the line that says what LU does: small
   enough to leave that line its room, the same height as each other. */
.lu-computer-head > .lu-dialog-btn {
  min-height: 20px;
  padding: 0 7px;
  font-size: 11px;
  line-height: 16px;
  border-radius: 6px;
}
/* What LU does right now: small, one line, level with the middle of the logo. */
.lu-computer-word {
  font-size: 12px;
  line-height: 20px;
  font-weight: 500;
}
.light .lu-computer-head {
  border-bottom-color: rgba(0, 0, 0, 0.07);
}

/* The grip: a short bar in the padding at the top edge of the panel. It
   takes no room of its own, so nothing in the panel moves for it, and it
   stays quiet until the pointer is on it. */
.lu-computer-grip {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 1;
  width: 64px;
  height: 12px;
  margin-left: -32px;
  padding: 0;
  border: 0;
  background: none;
  cursor: grab;
  touch-action: none;
}
.lu-computer-grip:active {
  cursor: grabbing;
}
.lu-computer-grip::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 18px;
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.16);
  transition: background-color var(--motion-base) var(--motion-ease);
}
.lu-computer-grip:hover::before,
.lu-computer-grip:focus-visible::before {
  background: rgba(255, 255, 255, 0.5);
}
.light .lu-computer-grip::before {
  background: rgba(0, 0, 0, 0.14);
}
.light .lu-computer-grip:hover::before,
.light .lu-computer-grip:focus-visible::before {
  background: rgba(0, 0, 0, 0.45);
}
.lu-computer-grip:focus-visible {
  outline: none;
}
/* On a page that is larger than the window (a browser), the panel changes
   corners the way the window does in the app: one slide that comes to rest. */
.lu-computer-surface--placed {
  transition: left 240ms cubic-bezier(0.22, 1, 0.36, 1), top 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* LU waits for the user: a question is open, or the session is paused.
   Nothing runs until the user answers, so the panel says so in the one
   accent: its edge takes the colour and breathes slowly, and the line in
   the head takes it too. #b1a6ff on the panel is 9.5:1, #7c3aed on white
   5.7:1. */
.lu-computer-surface[data-waiting] .lu-computer-panel {
  border-color: var(--color-lu-accent);
  animation: lu-computer-wait 2.4s ease-in-out infinite;
}
.lu-computer-surface[data-waiting] .lu-computer-word {
  color: var(--color-lu-accent-hover);
}
.light .lu-computer-surface[data-waiting] .lu-computer-word {
  color: var(--color-lu-cloud);
}
@keyframes lu-computer-wait {
  0%,
  100% {
    box-shadow: inset 0 0 0 1px transparent;
  }
  50% {
    box-shadow: inset 0 0 0 1px var(--color-lu-accent), inset 0 0 18px var(--color-lu-accent-soft);
  }
}

/* What changes inside the panel fades in. The panel itself keeps its size. */
.lu-computer-enter {
  animation: lu-computer-enter var(--motion-slow) var(--motion-ease) both;
}
@keyframes lu-computer-enter {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}

/* A question of computer control (components/computer/ComputerQuestion).
   In the panel it is the lower part of the panel, under a hairline. Above
   an input field it is a sheet of its own. */
.lu-computer-question {
  padding: 12px 14px;
}
.lu-computer-question--panel {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.22);
  animation: lu-computer-enter var(--motion-slow) var(--motion-ease) both;
}
.light .lu-computer-question--panel {
  border-top-color: rgba(0, 0, 0, 0.07);
  background: rgba(0, 0, 0, 0.025);
}
/* The answers: two to a row, each as wide as its half and high enough to
   hit without aiming. The main one stands last. */
.lu-computer-answers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.lu-computer-answers > .lu-dialog-btn {
  min-height: 34px;
  padding: 0 10px;
  font-size: var(--text-control);
}
/* Above an input field the sheet is wide and the window may be low (Voice
   at 900 by 600): the answers stand in one row on the right, each wide
   enough to hit. */
.lu-computer-question:not(.lu-computer-question--panel) .lu-computer-answers {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.lu-computer-question:not(.lu-computer-question--panel) .lu-computer-answers > .lu-dialog-btn {
  min-width: 112px;
  min-height: 32px;
}
/* The Autonomous switch. Two lines of text have room with the switch on
   and with it off, so pressing it moves nothing. */
.lu-computer-autonomy {
  height: 44px;
  transition: border-color var(--motion-base) var(--motion-ease), background-color var(--motion-base) var(--motion-ease);
}
.lu-computer-autonomy[data-on='true'] {
  border-color: rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.06);
}
/* The two shortcuts, at the foot of the panel while no question stands there. */
/* The note of computer control above the input field: one small line in
   the middle. It hangs above its place and takes no room, so nothing moves
   when it comes and goes. */
.lu-computer-note {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: min(94%, 30rem);
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 11px;
  line-height: 16px;
  white-space: nowrap;
  color: #e5e7eb;
  background: rgba(24, 24, 27, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  animation: lu-computer-note-in var(--motion-base, 180ms) ease-out both;
}
.light .lu-computer-note {
  color: #1f2937;
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}
/* A stop with its reason can be long: it may wrap, the passing note never does. */
.lu-computer-note[data-kind='stopped'] {
  white-space: normal;
  border-radius: 12px;
}
.lu-computer-note--passing {
  animation: lu-computer-note-pass 2500ms ease-in-out both;
}
.lu-computer-note-dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 9999px;
  background: var(--color-lu-accent);
}
.lu-computer-note-close {
  flex: none;
  display: inline-flex;
  padding: 2px;
  border-radius: 9999px;
  color: #9ca3af;
}
.lu-computer-note-close:hover {
  color: inherit;
}
@keyframes lu-computer-note-in {
  from {
    opacity: 0;
    transform: translate(-50%, 3px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}
@keyframes lu-computer-note-pass {
  0% {
    opacity: 0;
    transform: translate(-50%, 3px);
  }
  8%,
  88% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .lu-computer-note,
  .lu-computer-note--passing {
    animation: none;
  }
}
.lu-computer-keys {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.light .lu-computer-keys {
  border-top-color: rgba(0, 0, 0, 0.07);
}
.lu-computer-keys kbd {
  font: inherit;
  padding: 1px 5px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #d1d5db;
}
.light .lu-computer-keys kbd {
  border-color: rgba(0, 0, 0, 0.14);
  background: rgba(0, 0, 0, 0.03);
  color: #374151;
}
@media (prefers-reduced-motion: reduce) {
  .lu-computer-surface[data-waiting] .lu-computer-panel,
  .lu-computer-enter,
  .lu-computer-question--panel {
    animation: none;
  }
  .lu-computer-surface--placed,
  .lu-computer-grip::before {
    transition: none;
  }
}

/* Where the window does not shrink, the bar of computer control lies over
   the top of the main panel and says how far down it reaches
   (--computer-bar-clear, ComputerControlHost). In Voice the question of
   computer control stands above the controls of the session, and in a low
   window or before the first words that is right under the title row
   (2.5rem): the transcript keeps the reach of the bar free, and so does the
   lower part while it stands alone. */
.lu-voice-transcript {
  min-height: max(0px, calc(var(--computer-bar-clear, 0px) - 2.5rem));
}
.lu-voice-lower--alone {
  padding-top: max(0.5rem, calc(var(--computer-bar-clear, 0px) - 2rem));
  /* Centred while there is room. In a low window the content starts at the
     top instead of growing out of it on both sides. */
  justify-content: safe center;
}

/* Create in chat: the placeholder while a result is being made
   (components/chat/create/CreateMedia.tsx). Same block as on the web
   (the web app), so the mirrored card looks the same. */
@keyframes lu-develop {
  0% { background-position: 0% 0%, 200% 50%; }
  100% { background-position: 0% 0%, 0% 50%; }
}
.lu-develop {
  background-color: #1b1b1b;
  background-image:
    radial-gradient(120% 90% at 20% 110%, rgba(160, 148, 248, 0.16), transparent 60%),
    linear-gradient(110deg, rgba(255, 255, 255, 0.015) 30%, rgba(255, 255, 255, 0.07) 50%, rgba(255, 255, 255, 0.015) 70%);
  background-size: 100% 100%, 200% 100%;
  animation: lu-develop 2.4s linear infinite;
}
/* Light mode: the same placeholder on a light ground, so the line inside it
   (dark type in light mode) stays readable. */
.light .lu-develop {
  background-color: #ececec;
  background-image:
    radial-gradient(120% 90% at 20% 110%, rgba(160, 148, 248, 0.24), transparent 60%),
    linear-gradient(110deg, rgba(0, 0, 0, 0.01) 30%, rgba(0, 0, 0, 0.06) 50%, rgba(0, 0, 0, 0.01) 70%);
}
@media (prefers-reduced-motion: reduce) {
  .lu-develop { animation: none; }
}

/* ──────────────────────────────────────────────────────────────────
   Neurons introduction (N2, 3.0.9). Calm loops of 3–6 s, nothing that
   blinks. Colours from the house tokens: the accent for what the user
   adds, the greys of the page for the model. With reduced motion every
   drawing stands still in its finished state.
   ───────────────────────────────────────────────────────────────── */
.neuron-intro .nintro-label { font-size: 10px; font-weight: 600; letter-spacing: 0.04em; }
.neuron-intro .nintro-code { font-size: 12px; font-family: ui-monospace, 'JetBrains Mono', 'SF Mono', Menlo, monospace; fill: #111827; }
.dark .neuron-intro .nintro-code { fill: #f3f4f6; }
.neuron-intro .nintro-muted-text { fill: #6b7280; }
.dark .neuron-intro .nintro-muted-text { fill: #9ca3af; }
.neuron-intro .nintro-accent-text { fill: var(--color-lu-accent); }
.neuron-intro .nintro-accent-stroke { stroke: var(--color-lu-accent); }
.neuron-intro .nintro-accent-fill { fill: var(--color-lu-accent); }
.neuron-intro .nintro-accent-fill-soft { fill: color-mix(in srgb, var(--color-lu-accent) 16%, transparent); }
.neuron-intro .nintro-track { stroke: #d1d5db; }
.dark .neuron-intro .nintro-track { stroke: rgba(255, 255, 255, 0.16); }
.neuron-intro .nintro-knob-fill { fill: #ffffff; stroke: #9ca3af; stroke-width: 1.5; }
.dark .neuron-intro .nintro-knob-fill { fill: #2a2a2a; stroke: #6b7280; }
.neuron-intro .nintro-knob { animation: lu-nintro-knob 4.2s ease-in-out infinite; }
.neuron-intro .nintro-card { fill: #ffffff; stroke: #e5e7eb; stroke-width: 1; }
.dark .neuron-intro .nintro-card { fill: rgba(255, 255, 255, 0.04); stroke: rgba(255, 255, 255, 0.10); }
.neuron-intro .nintro-card--accent { fill: color-mix(in srgb, var(--color-lu-accent) 8%, transparent); stroke: color-mix(in srgb, var(--color-lu-accent) 45%, transparent); }
/* WebKit draws no clip-path on SVG groups: the code slides in instead of being typed. */
.neuron-intro .nintro-type { opacity: 0; animation: lu-nintro-type 5s ease-out infinite; }
.neuron-intro .nintro-glow { opacity: 0; animation: lu-nintro-glow 5s ease-in-out infinite; }
.neuron-intro .nintro-dash { stroke-dashoffset: 40; animation: lu-nintro-dash 5s linear infinite; }
.neuron-intro .nintro-arrive { opacity: 0; animation: lu-nintro-arrive 5s ease-out infinite; }

@keyframes lu-nintro-knob {
  0%, 100% { transform: translateY(0); }
  45%, 70% { transform: translateY(var(--nintro-to, 0px)); }
}
@keyframes lu-nintro-type {
  0% { opacity: 0; transform: translateX(-8px); }
  25%, 100% { opacity: 1; transform: none; }
}
@keyframes lu-nintro-glow {
  0%, 25% { opacity: 0; }
  35%, 80% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes lu-nintro-dash {
  0%, 35% { stroke-dashoffset: 40; opacity: 0; }
  40% { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}
@keyframes lu-nintro-arrive {
  0%, 50% { opacity: 0; }
  60%, 100% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .neuron-intro .nintro-knob,
  .neuron-intro .nintro-type,
  .neuron-intro .nintro-glow,
  .neuron-intro .nintro-dash,
  .neuron-intro .nintro-arrive { animation: none; }
  .neuron-intro .nintro-type,
  .neuron-intro .nintro-glow,
  .neuron-intro .nintro-arrive,
  .neuron-intro .nintro-dash { opacity: 1; }
  .neuron-intro .nintro-knob { transform: translateY(var(--nintro-to, 0px)); }
}

/* Neurons introduction, new drawings (3.1.0). Same rules as the old ones:
   calm loops, the accent for what the user adds, greys for the model, and
   with reduced motion every drawing stands still in its finished state. */
.neuron-intro .nintro-plane { stroke: #d1d5db; stroke-width: 1; }
.dark .neuron-intro .nintro-plane { stroke: rgba(255, 255, 255, 0.13); }
.neuron-intro .nintro-plane--hit { animation: lu-nintro-plane 8s ease-in-out infinite; }
.neuron-intro .nintro-wire { fill: none; stroke: #9ca3af; stroke-width: 1; stroke-linecap: round; }
.dark .neuron-intro .nintro-wire { stroke: rgba(255, 255, 255, 0.30); }
.neuron-intro .nintro-wire--bent,
.dark .neuron-intro .nintro-wire--bent { stroke: var(--color-lu-accent); stroke-dasharray: 100; stroke-dashoffset: 100; animation: lu-nintro-bend 8s cubic-bezier(0.45, 0, 0.2, 1) infinite; }
.neuron-intro .nintro-ghost { animation: lu-nintro-ghost 8s ease-in-out infinite; }
.neuron-intro .nintro-pulse { fill: none; stroke: #111827; stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 2.4 97.6; stroke-dashoffset: 100; animation: lu-nintro-pulse 3.2s linear infinite; }
.dark .neuron-intro .nintro-pulse { stroke: #ffffff; }
.neuron-intro .nintro-bentgroup { opacity: 0; animation: lu-nintro-bentgroup 8s ease-in-out infinite; }
.neuron-intro .nintro-thumb { animation: lu-nintro-thumb 8s cubic-bezier(0.45, 0, 0.2, 1) infinite; }
.neuron-intro .nintro-when { opacity: 0; animation: lu-nintro-when 8s ease-in-out infinite; }
.neuron-intro .nintro-text { fill: #111827; }
.dark .neuron-intro .nintro-text { fill: #f3f4f6; }
.neuron-intro .nintro-small { font-size: 9px; font-weight: 500; letter-spacing: 0.02em; }
.neuron-intro .nintro-name { font-size: 11px; font-weight: 500; }

@keyframes lu-nintro-plane {
  0%, 18%, 94%, 100% { stroke: #d1d5db; }
  30%, 82% { stroke: var(--color-lu-accent); }
}
.dark .neuron-intro .nintro-plane--hit { animation-name: lu-nintro-plane-dark; }
@keyframes lu-nintro-plane-dark {
  0%, 18%, 94%, 100% { stroke: rgba(255, 255, 255, 0.13); }
  30%, 82% { stroke: var(--color-lu-accent); }
}
@keyframes lu-nintro-bend {
  0%, 18% { stroke-dashoffset: 100; }
  34%, 100% { stroke-dashoffset: 0; }
}
@keyframes lu-nintro-bentgroup {
  0%, 17% { opacity: 0; }
  19%, 84% { opacity: 1; }
  94%, 100% { opacity: 0; }
}
@keyframes lu-nintro-ghost {
  0%, 18%, 94%, 100% { opacity: 1; }
  32%, 84% { opacity: 0.22; }
}
@keyframes lu-nintro-pulse {
  from { stroke-dashoffset: 100; }
  to { stroke-dashoffset: 0; }
}
@keyframes lu-nintro-thumb {
  0%, 17%, 95%, 100% { transform: translateY(0); }
  29%, 84% { transform: translateY(-22px); }
}
@keyframes lu-nintro-when {
  0%, 22%, 92%, 100% { opacity: 0; }
  32%, 84% { opacity: 1; }
}

/* Four ways into one slider: one way at a time, 2 s each. */
.neuron-intro .nintro-way { opacity: 0.45; animation: lu-nintro-way 8s ease-in-out infinite; }
.neuron-intro .nintro-way-wire { fill: none; stroke: #d1d5db; stroke-width: 1; }
.dark .neuron-intro .nintro-way-wire { stroke: rgba(255, 255, 255, 0.14); }
.neuron-intro .nintro-way-run { fill: none; stroke: var(--color-lu-accent); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; opacity: 0; animation: lu-nintro-way-run 8s cubic-bezier(0.45, 0, 0.2, 1) infinite; }
.neuron-intro .nintro-way-mark { fill: #9ca3af; stroke: #9ca3af; }
.dark .neuron-intro .nintro-way-mark { fill: #9ca3af; stroke: #9ca3af; }
.neuron-intro .nintro-way-name { opacity: 0; animation: lu-nintro-way-name 8s ease-in-out infinite; }
.neuron-intro .nintro-way-knob { animation: lu-nintro-way-knob 8s cubic-bezier(0.45, 0, 0.2, 1) infinite; }
@keyframes lu-nintro-way {
  0%, 25%, 100% { opacity: 0.45; }
  3%, 22% { opacity: 1; }
}
@keyframes lu-nintro-way-run {
  0% { stroke-dashoffset: 100; opacity: 0; }
  2% { opacity: 1; }
  11%, 21% { stroke-dashoffset: 0; opacity: 1; }
  25%, 100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes lu-nintro-way-name {
  0%, 8% { opacity: 0; }
  12%, 22% { opacity: 1; }
  25%, 100% { opacity: 0; }
}
@keyframes lu-nintro-way-knob {
  0%, 8% { transform: translateX(34px); }
  13%, 33% { transform: translateX(-30px); }
  38%, 58% { transform: translateX(20px); }
  63%, 83% { transform: translateX(-10px); }
  88%, 100% { transform: translateX(34px); }
}

/* Step 4: one answer, a line wipes across it. */
.neuron-intro .nintro-wipe { position: relative; width: 100%; max-width: 400px; height: 100px; }
.neuron-intro .nintro-wipe-a { position: absolute; left: 0; right: 0; top: 30px; margin: 0; font-size: 15px; line-height: 1.5; }
.neuron-intro .nintro-wipe-a--before { color: #6b7280; clip-path: inset(0 0 0 30%); animation: lu-nintro-wipe-before 9s cubic-bezier(0.45, 0, 0.2, 1) infinite; }
.dark .neuron-intro .nintro-wipe-a--before { color: #8b919c; }
.neuron-intro .nintro-wipe-a--after { color: #111827; clip-path: inset(0 70% 0 0); animation: lu-nintro-wipe-after 9s cubic-bezier(0.45, 0, 0.2, 1) infinite; }
.dark .neuron-intro .nintro-wipe-a--after { color: #f3f4f6; }
.neuron-intro .nintro-wipe-bar { position: absolute; top: 22px; bottom: 0; left: 30%; width: 1.5px; margin-left: -0.75px; background: var(--color-lu-accent); animation: lu-nintro-wipe-bar 9s cubic-bezier(0.45, 0, 0.2, 1) infinite; }
.neuron-intro .nintro-wipe-bar::after { content: ''; position: absolute; left: -4px; top: 50%; width: 9.5px; height: 22px; margin-top: -11px; border-radius: 5px; background: var(--color-lu-accent); }
.neuron-intro .nintro-wipe-tag { position: absolute; top: 0; font-size: 10px; font-weight: 600; letter-spacing: 0.04em; }
.neuron-intro .nintro-wipe-tag--on { left: 0; color: var(--color-lu-accent); }
.neuron-intro .nintro-wipe-tag--off { right: 0; color: #6b7280; }
.dark .neuron-intro .nintro-wipe-tag--off { color: #9ca3af; }
@keyframes lu-nintro-wipe-bar { 0%, 8%, 100% { left: 6%; } 45%, 62% { left: 94%; } }
@keyframes lu-nintro-wipe-after { 0%, 8%, 100% { clip-path: inset(0 94% 0 0); } 45%, 62% { clip-path: inset(0 6% 0 0); } }
@keyframes lu-nintro-wipe-before { 0%, 8%, 100% { clip-path: inset(0 0 0 6%); } 45%, 62% { clip-path: inset(0 0 0 94%); } }

@media (prefers-reduced-motion: reduce) {
  .neuron-intro .nintro-plane--hit,
  .neuron-intro .nintro-wire--bent,
  .neuron-intro .nintro-ghost,
  .neuron-intro .nintro-pulse,
  .neuron-intro .nintro-bentgroup,
  .neuron-intro .nintro-thumb,
  .neuron-intro .nintro-when,
  .neuron-intro .nintro-way,
  .neuron-intro .nintro-way-run,
  .neuron-intro .nintro-way-name,
  .neuron-intro .nintro-way-knob,
  .neuron-intro .nintro-wipe-a--before,
  .neuron-intro .nintro-wipe-a--after,
  .neuron-intro .nintro-wipe-bar { animation: none; }
  .neuron-intro .nintro-pulse,
  .neuron-intro .nintro-way-run { opacity: 0; }
  .neuron-intro .nintro-plane--hit { stroke: var(--color-lu-accent); }
  .neuron-intro .nintro-wire--bent { stroke-dashoffset: 0; }
  .neuron-intro .nintro-bentgroup,
  .neuron-intro .nintro-when,
  .neuron-intro .nintro-way { opacity: 1; }
  .neuron-intro .nintro-ghost { opacity: 0.22; }
  .neuron-intro .nintro-thumb { transform: translateY(-22px); }
  .neuron-intro .nintro-way-name--first { opacity: 1; }
  .neuron-intro .nintro-way-knob { transform: translateX(-30px); }
  .neuron-intro .nintro-wipe-bar { left: 50%; }
  .neuron-intro .nintro-wipe-a--after { clip-path: inset(0 50% 0 0); }
  .neuron-intro .nintro-wipe-a--before { clip-path: inset(0 0 0 50%); }
}

/* Neurons slider (N2): the house range (track and knob above), with a
   mark at 0 so "unchanged" can be seen, and a taller hit area. */
input[type="range"].neuron-range,
.light input[type="range"].neuron-range {
  height: 18px;
  cursor: pointer;
  background:
    linear-gradient(to right, transparent calc(50% - 1px), rgba(0, 0, 0, 0.35) calc(50% - 1px), rgba(0, 0, 0, 0.35) calc(50% + 1px), transparent calc(50% + 1px)) center / 100% 12px no-repeat,
    linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)) center / 100% 4px no-repeat;
}
.dark input[type="range"].neuron-range {
  background:
    linear-gradient(to right, transparent calc(50% - 1px), rgba(255, 255, 255, 0.35) calc(50% - 1px), rgba(255, 255, 255, 0.35) calc(50% + 1px), transparent calc(50% + 1px)) center / 100% 12px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1)) center / 100% 4px no-repeat;
}
input[type="range"].neuron-range:disabled { cursor: not-allowed; opacity: 0.5; }

/* Neurons job bar while the share is not known yet (model loading): a
   short piece runs along the track instead of a bar stuck at 0 %. */
.neuron-bar-wait { animation: lu-neuron-wait 1.6s ease-in-out infinite; }
@keyframes lu-neuron-wait {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(400%); }
}
@media (prefers-reduced-motion: reduce) {
  .neuron-bar-wait { animation: none; transform: none; }
}

/* ── Chat look (3.1.0, C58 / C42) ──────────────────────────────────────
   Rules for components/chat/ChatLookScope.tsx. Every colour arrives as a
   custom property that lib/chat-look.ts has already checked for 4.5:1
   against the pane in the current mode, and a rule only applies when the
   scope carries its class, i.e. when the user picked that colour. With no
   choice made, nothing here matches and the chat looks as before.
   Unlayered on purpose: these must win over the Tailwind utilities on the
   same elements (text-gray-800, leading-relaxed, max-w-[80%]). */

/* The reading zoom. The ONE sanctioned zoom besides --ui-scale on the app
   root (ein-massstab.test.ts): it is the user's own text size, set with
   Ctrl/Cmd + wheel like browser zoom, on the message column only. */
.lu-chat-zoom { zoom: var(--lu-chat-zoom, 1); }

.lu-look-model-color .lu-msg-model-text .markdown-content { color: var(--lu-look-model-text); }
.lu-look-user-color .lu-msg-user-text { color: var(--lu-look-user-text); }
.lu-look-user-bubble .lu-msg-user-bubble {
  background-color: var(--lu-look-user-bubble);
  border-color: color-mix(in srgb, var(--lu-look-user-bubble), currentColor 14%);
}
.lu-look-quotes .lu-quote { color: var(--lu-look-quote); }
.lu-look-actions .lu-msg-text em,
.lu-look-actions .lu-action { color: var(--lu-look-action); font-style: italic; }
.lu-look-font .lu-msg-text { font-family: var(--lu-look-font); }
/* Line spacing. Not only the line height inside a wrapped paragraph: a
   roleplay reply is mostly short paragraphs and one-line messages, where that
   alone moved almost nothing, and the slider looked broken (report 14.11.2026).
   Paragraph gaps and the gap between messages follow the same value; at the
   default (1.625) they equal the classes they replace (mb-3, py-1), so the
   slider has no jump when it first moves. Prose in the Code transcript and
   in agent notes follows too; code blocks keep their own height. */
.lu-look-leading .lu-msg-text,
.lu-look-leading .lu-msg-text :is(p, li),
.lu-look-leading .markdown-content :is(p, li, blockquote, td, th) { line-height: var(--lu-look-leading); }
.lu-look-leading .markdown-content :is(p, ul, ol, blockquote) { margin-bottom: calc(var(--lu-look-leading) * 0.46rem); }
.lu-look-leading .lu-msg-row { padding-block: calc(var(--lu-look-leading) * 0.154rem); }

/* Layout "bubbles": the reply gets a bubble too. */
.lu-look-bubbles .lu-msg-model-bubble {
  border-radius: 0.5rem;
  padding: 0.375rem 0.625rem;
  background-color: var(--lu-look-model-bubble, #f3f4f6);
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.lu-look-bubbles[data-mode="dark"] .lu-msg-model-bubble {
  background-color: var(--lu-look-model-bubble, rgba(255, 255, 255, 0.04));
  border-color: rgba(255, 255, 255, 0.07);
}

/* Layout "document": one flowing text, no avatars, every turn left. */
.lu-look-document .lu-msg-row { flex-direction: row; }
.lu-look-document [data-msg-avatar] { display: none; }
.lu-look-document .lu-msg-column { max-width: 100%; flex: 1 1 auto; min-width: 0; }
.lu-look-document .lu-msg-row-user .lu-msg-column > * { justify-content: flex-start; }
.lu-look-document .lu-msg-user-bubble {
  background-color: transparent;
  border-width: 0 0 0 2px;
  border-radius: 0;
  padding-left: 0.625rem;
}

/* The background picture lies BEHIND the transcript (isolation makes the
   scope a stacking context, the picture sits at -1 inside it) under a scrim
   of the pane colour, whose strength has a floor (lib/chat-look SCRIM_MIN). */
.lu-look-has-bg { isolation: isolate; }
.lu-look-has-bg > .lu-chat-bg {
  z-index: -1;
  /* Soft edge toward the session strip and the prompt box below, which
     keep the plain pane colour: no hard line under the last message. */
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 64px), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 64px), transparent);
}
.lu-chat-scrim { background-color: #ffffff; }
.lu-look[data-mode="dark"] .lu-chat-scrim { background-color: #1e1e1e; }
.lu-look-has-bg .lu-msg-text { text-shadow: 0 0 6px rgba(255, 255, 255, 0.55); }
.lu-look-has-bg[data-mode="dark"] .lu-msg-text { text-shadow: 0 0 6px rgba(0, 0, 0, 0.6); }

/* ─────────────────────────────────────────────────────────────────────
   Character area (3.1.0 part B, David's sketches v2 of 14.11.2026,
   uebergabe-310/SWAP-HUB-bilder/mockups-v2/stil-notizen.md).
   The colours of the sketches as tokens, measured from the Create screens:
   hairlines, three text greys, the accent. Not a card style: the area is
   rows on the surface, and the only framed part is the bar at its foot.
   Own tokens because the rescue layer above lifts `.dark .text-gray-500`
   to gray-400, and the sketches keep the two greys apart (muted, dim).
   ───────────────────────────────────────────────────────────────────── */
.lu-hub {
  --hub-sep: rgba(255, 255, 255, 0.06);
  --hub-edge: rgba(255, 255, 255, 0.10);
  --hub-fill: rgba(255, 255, 255, 0.03);
  --hub-hov: rgba(255, 255, 255, 0.045);
  --hub-text: #f3f4f6;
  --hub-muted: #9ca3af;
  --hub-dim: #6b7280;
  --hub-acc: #a094f8;
  --hub-soft: rgba(160, 148, 248, 0.14);
}
.light .lu-hub {
  --hub-sep: #eceef1;
  --hub-edge: #e5e7eb;
  --hub-fill: #f9fafb;
  --hub-hov: #f5f6f8;
  --hub-text: #111827;
  --hub-muted: #4b5563;
  --hub-dim: #8b919c;
  --hub-acc: #5746d9;
  --hub-soft: rgba(87, 70, 217, 0.09);
}
.lu-hub .hub-text { color: var(--hub-text); }
.lu-hub .hub-muted { color: var(--hub-muted); }
.lu-hub .hub-dim { color: var(--hub-dim); }
.lu-hub .hub-acc { color: var(--hub-acc); }
.lu-hub .hub-line { border-color: var(--hub-sep); }
.lu-hub .hub-hover:hover { background-color: var(--hub-hov); }
.lu-hub .hub-soft { background-color: var(--hub-soft); }
/* No picture: the initial on grey. */
.lu-hub .hub-none { background-color: var(--hub-edge); }
/* The role of a person in Swap reads as text until it is typed over. */
.lu-hub .hub-role::placeholder { color: var(--hub-text); }
/* The type of the Character area: the sizes of the sketches in rendered
   pixels (Inter 14 / 13 / 12.5 / 12 / 11 / 10), divided by the app's
   --ui-scale, so a line of the area reads exactly as in the sketch. One
   place for them instead of a `text-[…]` per call site (die-typo-leiter). */
.hub-fs-14 { font-size: calc(14px / var(--ui-scale, 1.15)); line-height: 1.4; }
.hub-fs-13 { font-size: calc(13px / var(--ui-scale, 1.15)); line-height: 1.4; }
.hub-fs-125 { font-size: calc(12.5px / var(--ui-scale, 1.15)); line-height: 1.4; }
.hub-fs-12 { font-size: calc(12px / var(--ui-scale, 1.15)); line-height: 1.4; }
.hub-fs-11 { font-size: calc(11px / var(--ui-scale, 1.15)); line-height: 1.3; }
.hub-fs-10 { font-size: calc(10px / var(--ui-scale, 1.15)); line-height: 1.3; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
/* The segments of the area (Sound, Resolution) take the sketch's 12 px. */
.hub-seg { --text-control: calc(12px / var(--ui-scale, 1.15)); }
.hub-fs-20 { font-size: calc(20px / var(--ui-scale, 1.15)); line-height: 1.2; letter-spacing: -0.01em; }

/* The area is one column of the prompt window's width (660), centred, over
   that window (David, 16.11.2026: the same container in every tab of
   Create). The row is a grid of three: the space left of the column, the
   column, and the rails of the gallery and the presets at the right. Both
   sides are always equally wide (the left keeps free what the rails take,
   --hub-rails), so the column stands exactly over the window at every
   width; with little room it gets narrower, it never leaves the middle.
   The row of the characters alone may use the whole room between the two
   sides, so a wide window shows more names. The stage in it: the tabs, the character as a head (a small
   picture, beside it the name and every action it has), then the inputs of
   the action and its photos, which scroll. Nothing here moves by itself. */
.lu-hub-row { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
.lu-hub-row > .hub-column { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; align-items: center; min-width: 0; min-height: 0; overflow: hidden; padding-inline: var(--hub-rails, 16px); }
.lu-hub-row > .hub-column > * { width: 100%; max-width: 660px; }
.lu-hub-row > .hub-column > .hub-stage { max-width: none; align-items: center; }
.lu-hub .hub-stage > .hub-scroll { width: 100%; max-width: 660px; }
.lu-hub-rails { grid-column: 1; grid-row: 1; justify-self: end; position: relative; z-index: 1; display: flex; min-width: 0; min-height: 0; padding-left: 16px; }
/* A phone-wide window: the area takes the whole width, as before. */
@media (max-width: 520px) {
  .lu-hub-rails { display: none; }
}
.lu-hub .hub-stage { display: flex; flex-direction: column; flex: 1 1 0%; min-height: 0; }
/* Everything stands on the middle axis of the prompt window: the row of
   the characters around the middle, the head centred over the photos, the
   photos as a centred grid. */
.lu-hub .hub-tabs { flex: none; display: flex; justify-content: center; width: 100%; min-height: 38px; }
/* Lines of the row are balanced: nothing wraps alone under the others. */
.lu-hub .hub-tablist { display: block; min-width: 0; text-align: center; text-wrap: balance; }
.lu-hub .hub-tab { display: inline-flex; align-items: center; gap: 7px; min-height: 37px; margin: 0 10px; vertical-align: top; white-space: nowrap; border-bottom: 1.5px solid transparent; }
.lu-hub .hub-tab--on { border-bottom-color: var(--hub-text); }
.lu-hub .hub-tabs[data-hub-tabs-fit="pictures"] .hub-tab { margin: 0 6px; }
.lu-hub .hub-scroll { display: flex; flex-direction: column; flex: 1 1 0%; min-width: 0; min-height: 0; overflow-y: auto; border-top: 1px solid var(--hub-sep); }
/* Shorter than the room: in its middle. Longer: from the top (the auto
   margins are then nothing). */
.lu-hub .hub-center { flex: none; width: 100%; margin-block: auto; }
.lu-hub .hub-card { display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 14px 0 12px; text-align: center; }
.lu-hub .hub-card > .hub-portrait { width: 64px; margin-bottom: 8px; }
.lu-hub .hub-body { min-width: 0; }
.lu-hub .hub-portrait { display: block; aspect-ratio: 4 / 5; border-radius: 8px; background-size: cover; background-position: 50% 20%; }
.lu-hub .hub-portrait--none { display: grid; place-items: center; background: var(--hub-edge); }
.lu-hub .hub-initial { font-size: calc(26px / var(--ui-scale, 1.15)); font-weight: 600; line-height: 1; }
.lu-hub .hub-photos { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.lu-hub .hub-photos li { width: 104px; }
.lu-hub .hub-photos img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
/* The row over the prompt window: Image, Swap, Motion, Talk as text, with
   one quiet ground for the one that is picked. */
.lu-hub .hub-act { display: inline-flex; gap: 2px; }
.lu-hub .hub-act-item { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1px solid transparent; border-radius: 6px; color: var(--hub-muted); white-space: nowrap; }
.lu-hub .hub-act-item--on { border-color: var(--hub-edge); background: var(--hub-hov); color: var(--hub-text); font-weight: 500; }
@media (max-width: 520px) {
  .lu-hub .hub-act-item { padding: 0 8px; }
  .lu-hub .hub-act-item svg { display: none; }
}

/* The pages of the area: "New character" and the training. */
.lu-hub .hub-page { display: flex; flex-direction: column; flex: 1 1 0%; min-height: 0; }
.lu-hub .hub-new { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-content: start; gap: 28px; flex: 1 1 0%; min-height: 0; overflow-y: auto; padding: 16px 0 12px; }
@media (max-width: 760px) {
  .lu-hub .hub-new { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
.lu-hub .hub-drop { border: 1px dashed color-mix(in srgb, var(--hub-dim) 60%, transparent); border-radius: 8px; }
.lu-hub .hub-drop--over { border-color: var(--hub-acc); background: var(--hub-fill); }
.lu-hub .hub-thumb { display: block; width: 84px; height: 84px; object-fit: cover; border-radius: 6px; }
.lu-hub .hub-name-field { border-color: var(--hub-edge); }
.lu-hub input.hub-name-field:not(.hub-fs-20) { font-size: calc(16px / var(--ui-scale, 1.15)); line-height: 1.4; }
.lu-hub .hub-path { font-family: ui-monospace, 'JetBrains Mono', 'SF Mono', Menlo, monospace; font-size: calc(12px / var(--ui-scale, 1.15)); }
.lu-hub .hub-radio { position: relative; width: 15px; height: 15px; border: 1.5px solid var(--hub-dim); border-radius: 50%; }
.lu-hub .hub-radio--on { border-color: var(--hub-acc); }
.lu-hub .hub-radio--on::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--hub-acc); }

/* No character yet: the three steps and the one button, in the middle. */
.lu-hub .hub-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1 1 0%; min-height: 0; overflow-y: auto; padding: 16px 0; }
.lu-hub .hub-steps { width: 100%; max-width: 420px; border-top: 1px solid var(--hub-sep); }
/* The NEW mark on the Character pill: accent on a faint accent ground. */
.lu-new-mark { font-size: 7px; font-weight: 600; letter-spacing: 0.06em; line-height: 1.4; }