/* ==========================================================================
   Referenz-Stylesheet für Fachanwendungen (Blazor Interactive Server)
   Stand 11.11.2026 · Regelwerk: _uiux.md

   Aenderungen 25.09.2026 (Meldungen aus einer Anwendung dieser Bauart, 10.-20.09.2026):
   - Fokusring wechselt in Feldbox, Rasterzelle, Such- und Sprungfeld den Traeger;
     Palette haengt unter der Leiste (align-self, max-height); Menueeintrag ohne
     Browservorgabe; Suchfeld mit Mindesthoehe; Satzkopf auf der Grundlinie;
     Gruppentitel 600; Platzhalter im aktiven Feld transparent; select ohne
     Browserpfeil; Dialogaktionen brechen um; Zeigehand auf Zeile, neuer Rasterzeile,
     Kalendertag der Auswahl und Chip als Knopf; Matrixkopf steht beim Blaettern
     (--au-sticky-top vom Behaelter); .au-hint ohne Flex (Punkt absolut).
   - Feld-Bedienung: select fuellt die Box, Chevron ohne pointer-events, Innenabstand
     am select; .au-field__pick als Ausloeser; Marke am gewaehlten Eintrag
     ([aria-selected]); Bedienelement im Chip.
   - Ebenen als Tokens (--au-z-*); .au-popover als verankerter Aufklapper;
     .au-lookup--compact; .au-mini-cal__day--sel.
   - Marke: .au-brand__lockup, .au-brand--fix, .au-tabbar__brand, .au-brandband.
   - Grosse Taste .au-btn--lg; .au-menu rechnet aus --au-actionbar-h.

   Aenderungen 19.10.2026 (Meldungen aus einer Anwendung dieser Bauart, Ansicht Audit):
   - .au-tabpanel: Huelle eines Tabs, gibt ihre Panels an den Arbeitsbereich weiter.
   - .au-cell-name__label: Bezeichnung neben dem Typkuerzel schrumpft mit Ellipsis.
   - Verweis ohne Adresse (a[role=link]) zeigt die Hand.
   - Bedienelement im Chip mit Zeilenhoehe des Fliesstexts (Unterlaengen); die Klickflaeche
     des Entfernen-Zeichens kommt seit 11.11.2026 aus der Vorlage (::after).
   - Liste der Split-View schrumpft bis zur Mindestbreite; .au-panel--full fuer die Liste
     in der Vollbreite; Satznavigator blaettert senkrecht.
   - Nummern-Rail: .au-rail__flyout (Ansichten einer Gruppe), .au-rail positioniert.

   Aenderungen 26.10.2026 (Meldung aus einer Anwendung dieser Bauart, Kontextmenues):
   - .au-menu--context: Menue an der Zeigerstelle mit --au-anchor-left/--au-anchor-top.

   Aenderungen 28.10.2026 (Meldung aus einer Anwendung dieser Bauart, Mehrfachauswahl in der Maske):
   - .au-field--choices mit .au-field__opts, .au-field__opt: Kaestchenliste im Feld
     (_uiux-muster.md §7p).

   Abgleich 23.10.2026: Stand der Vorlage der Bauart mit Belegen (20.10.2026) uebernommen —
   Auswahlansicht, Feldgruppen als Karten, Touch-Stufe, Hilfe, Satzmatrix u. a.; die
   Aenderungen vom 19.10.2026 bleiben obendrauf. Bausteine dieser Bauart ohne Verwendung
   (Kassenplatz, Belegmaske, Satzmatrix) bleiben enthalten: Sie wirken nur ueber ihre eigenen
   Klassen, und _uiux-klassen.md nennt sie nicht. Vier Beispielwerte in Kommentaren sind
   projektneutral ersetzt.

   Abgleich 11.11.2026: Oberflaechen-Stand der Vorlage bis 11.11.2026 uebernommen — Rahmen
   mit Luft, Schriftrollen und Masse als Tokens, Fokusring, Tabs wie im Browser, Satznavigator
   als Karte, Aktionszeile neben der Identitaet, Verweis .au-link, Trefferflaechen u. a.;
   die Aenderungen vom 19.10., 26.10. und 28.10.2026 bleiben obendrauf (Satznavigator als
   Karte blaettert weiter senkrecht). Neue Bausteine ohne Verwendung (Diagramm, Ablaufgraph,
   Detailspalte, Spalteneinstellung, Arbeitsvorrat, Kachelraster) wirken nur ueber ihre
   eigenen Klassen; _uiux-klassen.md nennt sie nicht.

   Verwendung
   - Diese Datei wird unverändert unter dem im Projektprofil festgelegten
     Zielnamen in das Projekt kopiert. Keine projektspezifischen Änderungen.
   - Farben und Schriften eines konkreten Projekts stehen ausschließlich in
     der Theme-Datei des Projekts; diese überschreibt nur --au-* Tokens.
   - Klassenprefix au-. Keine fachlichen Styles.
   - Regel: außerhalb des :root-Blocks kommt kein Farbliteral vor
     (kein #, kein rgb()/rgba()) — nur var(--au-*).
   - Keine externen Ressourcen zur Laufzeit: keine @import-URL, keine
     Web-Font-Referenz. Schriften liegen lokal im Projekt und werden über
     --au-font / --au-mono gesetzt (Fallback-Stack unten).
   ========================================================================== */

:root {
  /* --- Flächen -------------------------------------------------------- */
  --au-canvas:          #f7f6f3;   /* Anwendungshintergrund              */
  --au-tabstrip:        #ebe8e1;   /* Leiste hinter den Tabs (dunkler als die Arbeitsflaeche) */
  --au-tabstrip-hover:  #f1eee8;   /* Tab beim Ueberfahren                */
  --au-panel:           #ffffff;   /* Panelfläche, Eingabefläche         */
  --au-panel-sunken:    #fdfcfa;   /* Fußzeilen, Kennzahlkarten          */
  --au-panel-hover:     #f4f1ea;   /* Zeilen-/Menü-Hover, offener Button */
  --au-search-bg:       #f6f3ec;   /* Filter-/Suchfeld in Toolbars       */

  /* --- Linien --------------------------------------------------------- */
  --au-line:            #dcd7cb;   /* Panelrand, Bereichstrenner         */
  --au-line-soft:       #e9e5db;   /* Listenzeilen, Menütrenner          */
  --au-line-strong:     #d2ccbf;   /* Buttonrand, Overlayrand            */
  --au-line-input:      #948d7c;   /* Kontur Eingabefeld                 */
  --au-line-input-hover:#857e6b;   /* Kontur Eingabefeld, Hover          */
  --au-line-focus:      #a2762f;   /* Kontur im Fokus                    */

  /* --- Eingabezustände ------------------------------------------------ */
  --au-input-bg:        #ffffff;   /* editierbar                         */
  --au-input-bg-ro:     #f2efe8;   /* gesperrt / berechnet               */
  --au-input-bg-dirty:  #fffdf7;   /* geändert, ungespeichert            */
  --au-input-bg-invalid:#fffaf9;   /* fehlerhaft                         */
  --au-input-ph:        #6f6a5d;   /* Platzhalter: ≥ 4,5:1 auf Feld, Such- und Sprungfeld (§9) */

  /* --- Text ----------------------------------------------------------- */
  --au-text:            #1a1917;   /* Primärtext, Feldwerte              */
  --au-text-2:          #3a3833;   /* Buttonlabel, Sekundärtext          */
  --au-text-3:          #5c5952;   /* Fließtext                          */
  --au-muted:           #5f5c55;   /* Metadaten, Statuswort              */
  --au-label:           #4a473f;   /* Feldlabel, Spaltenkopf, Kürzel     */
  --au-faint:           #a49e91;   /* nur Zierzeichen (Kreuz, Pfeil)     */
  --au-adorn:           #9a9488;   /* Feldsymbol (Auswahl, gesperrt)     */

  /* --- Akzent (Orientierung, nicht Aktion) ---------------------------- */
  --au-accent:          #a2762f;   /* NUR Linien und Flächen: Tabunter-  */
                                   /* strich, Konturen, Punkte, Balken   */
  --au-accent-ink:      #8a6524;   /* Akzent als TEXT: Modulnummer,      */
                                   /* Gruppentitel, Verweis              */
  --au-accent-soft:     #f4efe4;   /* Selektion Navigation, Chip         */
  --au-accent-row:      #faf7f0;   /* selektierte Listenzeile            */
  --au-accent-mark:     #f0e6d2;   /* Kürzelmarke der selektierten Zeile */
  --au-accent-fill:     #8a6524;   /* gefüllte Akzentfläche, die Text trägt */
  --au-on-accent:       #ffffff;   /* Text auf --au-accent-fill           */

  /* --- Aktion --------------------------------------------------------- */
  --au-action:          #1f1e1b;   /* Primärbutton                       */
  --au-action-hover:    #34322d;
  --au-on-action:       #ffffff;
  --au-on-action-key:   color-mix(in srgb, var(--au-on-action) 82%, var(--au-action)); /* Kürzel im Primärbutton: Farbe, keine Deckkraft */

  /* --- Status (immer Punkt + Wort) ------------------------------------ */
  --au-ok:              #2e6f52;
  --au-warn:            #b07d2b;
  --au-warn-ink:        #8f631c;   /* Warnung als TEXT (Entwurfsvermerk) */
  --au-error:           #a7453a;
  --au-neutral:         #a49e91;
  --au-ok-soft:         #eaf2ed;   /* Fläche erreichter Statusschritt    */
  --au-error-soft:      #faf4f3;   /* helle Fehlerfläche (getönte Taste), Schrift --au-error 5,4:1 */
  --au-on-error:        #ffffff;   /* Schrift auf Fehlerfläche           */
  --au-on-error-key:    rgba(255,255,255,.7);
  --au-info:            #3d5a80;   /* Hinweis, Marke „Leistung“ (Punkt, Fläche, Text) */
  --au-info-soft:       #e9eef5;
  --au-special:         #6a4a86;   /* Marke für besondere Sätze                */
  --au-special-soft:    #f0ebf5;
  --au-on-tone:         #ffffff;   /* Schrift auf gefüllter Ok-, Info-, Marken-Fläche */
  --au-on-tone-key:     rgba(255,255,255,.7);
  --au-veil:            rgba(250,248,243,.62); /* Schleier über einem Kachelbild */

  /* --- Diagramme (§2.1) ------------------------------------------------
     Farbfolge in fester Reihenfolge: Reihe n traegt --au-chart-n. Gedaempft nach Tol,
     unterscheidbar bei Rot-Gruen- und Blau-Gelb-Schwaeche; jede ≥ 4,4:1 zu Panel, Canvas
     und abgesenkter Flaeche und ≥ 4,5:1 zu --au-chart-on (Beschriftung auf der Flaeche).
     Dunkel (in der Theme-Datei): #8f84e0 #6cc0e8 #5cc2b0 #5fb874 #c4c45a #e88a98 #d36a9b
     #c77bbd mit --au-chart-on #1a1917 — jede ≥ 4,4:1 zu einem Panel um #1f1e1b. */
  --au-chart-1:         #332288;
  --au-chart-2:         #2b7aa3;
  --au-chart-3:         #287d70;
  --au-chart-4:         #117733;
  --au-chart-5:         #73731c;
  --au-chart-6:         #b04a59;
  --au-chart-7:         #882255;
  --au-chart-8:         #9a3f8c;
  --au-chart-on:        #ffffff;   /* Beschriftung auf einer gefüllten Reihenfläche */
  --au-chart-grid:      var(--au-line-soft);  /* Rasterlinien                      */
  --au-chart-axis:      var(--au-line);       /* Achsen, Teilstriche               */
  --au-chart-label:     var(--au-muted);      /* Achsen- und Wertbeschriftung      */
  --au-chart-tip-bg:    var(--au-panel);      /* Hinweis beim Überfahren: Fläche   */
  --au-chart-tip-line:  var(--au-line-strong);/* … Kontur                          */
  --au-chart-tip-text:  var(--au-text);       /* … Schrift                         */

  /* --- Overlay -------------------------------------------------------- */
  --au-scrim:           rgba(26,25,23,.34);
  --au-shadow-panel:    0 1px 2px rgba(26,25,23,.03);
  --au-shadow-pop:      0 20px 44px -18px rgba(26,25,23,.34);
  /* Fokus (§9): deckendes Band von 2 px mit ≥ 3:1 auf jeder Flaeche (Akzent als Text, 4,3:1
     und mehr); der weiche Ring legt 1 px deckend an die 1-px-Kontur (zusammen 2 px), dazu
     ein Hof. Auf der Kennfarbe traegt der Ring --au-focus-kenn, ohne Wert die Zeichenfarbe
     --au-kenn-ink (§3); das Theme setzt --au-focus-kenn als Farbe, nie hier aus --au-kenn*,
     denn die Kennfarbe steht erst an .au-app. */
  --au-focus-ring:      0 0 0 2px #ffffff, 0 0 0 4px #8a6524;
  --au-focus-ring-soft: 0 0 0 1px #8a6524, 0 0 0 4px rgba(162,118,47,.18);

  /* --- Kennfarbe der Installation (§3) ---------------------------------
     --au-kenn / --au-kenn-ink setzt die Laufzeit je Installation auf
     .au-app (Merkmal data-kenn); ohne Kennfarbe bleiben sie ungesetzt.
     Die Begleittöne sind durchscheinend, damit sie auf jedem Ton des
     projektdefinierten Farbsatzes funktionieren. */
  --au-kenn-line: rgba(255,255,255,.42);  /* Rand: Kurzname-Marke, Sprungfeld, Zeichen-Taste auf der Kennfarbe */
  --au-kenn-edge: rgba(0,0,0,.18);        /* Kontur des Farbfeld-Chips, Unterkante der gefärbten Topbar         */
  --au-kenn-field: rgba(255,255,255,.12); /* Fläche eines Steuerelements auf der Kennfarbe (Sprungfeld, Taste)  */
  --au-kenn-action-line: transparent;     /* Rand des Primärknopfs in der Kennfarbe; dunkel setzt das Theme */
                                          /* ihn (etwa 28 % Zeichenfarbe), wenn die Fläche < 3:1 zum Panel hält */
  --au-kenn-ink-soft: rgba(255,255,255,.8); /* Nebenzeichen auf der Kennfarbe: Platzhalter, Kürzel. Hält 4,5:1 */
                                            /* auf jedem Ton, der für --au-kenn-ink dunkel genug ist (§9).     */

  /* --- Produktzeichen (§2.4) ------------------------------------------
     Zeichenfarbe eines Produktzeichens in der Shell (etwa einer In-App-Hilfe), kein Akzent.
     Vorgabe neutral; das Projekt setzt hellen und dunklen Wert in seiner Theme-Datei. */
  --au-sign:     var(--au-text-2);  /* Reif und Zeichen                          */
  --au-sign-ink: var(--au-panel);   /* Zeichen auf dem gefuellten Reif           */

  /* --- Typografie (Schriften lokal im Projekt, hier nur der Stack) ---- */
  --au-font: 'UI Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --au-mono: 'UI Mono', ui-monospace, 'Cascadia Mono', 'Consolas', monospace;
  --au-fs-xs:  10.5px;  /* Feldlabel, Feldmeldung, Tab-Modulnummer      */
  --au-fs-key:    10px;  /* Tastenkürzel                                */
  --au-fs-sm:  11.5px;  /* Fußzeile, Chip — Untergrenze für Fließtext   */
  --au-fs-md:  12.5px;  /* Listenzelle, Navigation, Menü                */
  --au-fs-lg:  13.5px;  /* Feldwert                                     */
  --au-fs-xl:    16px;  /* Panelüberschrift, Kennzahlwert               */
  /* Rollen des Rahmens (§1.3 Nr. 9: Dichte gilt dem Inhalt, nicht dem Rahmen) */
  --au-fs-cell:    14px;  /* Listenzelle, Merkmalswert                   */
  --au-fs-nav:   14.5px;  /* Navigationseintrag, Reiter der Maske        */
  --au-fs-nav-sub: 14px;  /* Untereintrag der Navigation                 */
  --au-fs-caps:    11px;  /* Versaltitel: Spaltenkopf, Abschnitt, Merkmal (Monospace) */
  --au-fs-meta:    13px;  /* Metazeile des Satzkopfs                     */
  --au-fs-listtitle: 17px; /* Überschrift der Liste                      */
  --au-fs-2xl:   20px;  /* Satzkopf                                     */
  --au-fs-sum:   30px;  /* Betrag als Hauptsache (Summe des Bons)       */
  --au-fs-timer: 32px;  /* laufender Zeitzaehler als Hauptsache der Karte */
  --au-lh-tight: 1;
  --au-lh-text:  1.45;

  /* --- Raster, Größen ------------------------------------------------- */
  --au-r-sm:  6px;
  --au-r-md:  8px;
  --au-r-lg: 10px;
  --au-r-xl: 12px;
  --au-r-chip: 7px;
  --au-s-1:  4px;
  --au-s-2:  8px;
  --au-s-3: 12px;
  --au-s-4: 14px;
  --au-s-5: 18px;
  --au-gap:  calc(var(--au-s-2) * 2);           /* Panelabstand im Arbeitsbereich: 16 */
  --au-pad:  calc(var(--au-s-3) + var(--au-s-2)); /* Panel-Innenabstand: 20             */
  --au-row-h:        34px;    /* Listenzeile, Standarddichte             */
  --au-row-h-sub:    48px;    /* Rasterzeile mit Unterzeile (.au-grid--sub) */
  --au-tile-img-ratio: 8 / 5;   /* Bildfläche der Artikelkachel (.au-tile__img) */
  --au-grid-mark-w:  calc(var(--au-control-h) * 2); /* Spur der Marke .au-grid__openmark in --au-cols, nie auto */
  --au-r-check:      3px;     /* Ecke des Auswahlkästchens: bei 14 px kantig, nicht rund */
  --au-cell-img:     calc(var(--au-row-h) - var(--au-s-2)); /* Vorschaubild in der Listenzeile (.au-cell-img) */
  --au-radio-size:   14px;    /* Optionskreis der Ja/Nein-Wahl (.au-radio, §7)  */
  --au-radio-border: 1.5px;
  --au-radio-dot:    6px;     /* Innenpunkt der gewählten Option               */
  --au-radio-gap:    6px;     /* Kreis bis Wort                                */
  --au-radio-space:  16px;    /* zwischen den Optionen                         */
  --au-radio-on:     var(--au-action); /* Innenpunkt; mit Kennfarbe --au-kenn (Theme hellt dunkel auf) */
  --au-chart-ratio:  16 / 7;  /* Seitenverhältnis des Diagrammbehälters (.au-chart) */
  --au-chart-min-h:  200px;
  --au-help-list-rows: 12;    /* sichtbare Zeilen einer Ergebnisliste im Gespräch (§7n) */
  --au-register-bon-w: 620px;   /* Kassenplatz: Bonspalte (§7l)              */
  --au-register-fn-w:  320px;   /* Kassenplatz: Funktionsfeld                */
  /* Maße des Sollbilds der Kasse, nur im Vollbild (.au-app--full, §7l); bei 1920 × 1080. */
  --au-register-ask-w:      680px;  /* Rückfrage in Touch-Dichte                  */
  --au-register-ask-w-wide: 760px;  /* Rückfrage mit Personen und PIN-Block        */
  --au-register-split-w:   1240px;  /* zweiteiliger Erfassungsdialog              */
  --au-register-list-w:    1440px;  /* Liste links, gewählter Satz rechts         */
  --au-register-list-h:     880px;
  --au-register-sheet-w:   1840px;  /* Overlay über der Kassieransicht           */
  --au-register-sheet-h:   1010px;
  --au-register-fs-pay:      56px;  /* Summe und Rest im Zahlungsdialog           */
  --au-register-fs-change:   96px;  /* Rückgeld, auf Abstand gelesen             */
  --au-register-fs-price:    19px;  /* Preis an der Artikelkachel                 */
  --au-register-fs-fn:       15px;  /* Wort der Funktionskachel                   */
  --au-register-fs-small:    13px;  /* Kontext der Funktionskachel, Kachelstatus  */
  --au-register-dot:          7px;  /* Statuspunkt an der Kachel                  */
  --au-dur-slide:   160ms;    /* ausfahrende Flaeche (Sidebar-Leiste)     */
  --au-dur-spin:    1200ms;   /* eine Umdrehung von .au-spin ("wartet")   */
  --au-row-h-dense:  28px;    /* Listenzeile, hohe Dichte                */
  --au-control-h:    32px;    /* Button, Chip-Zeile, Mindestmaß jedes Klickziels (§9) */
  --au-field-h:      28px;    /* Feldbox der Maske (§7)                  */
  --au-input-h:      36px;    /* Such-/Sprungfeld                        */
  --au-head-h:       36px;    /* Spaltenkopf der Liste                   */
  --au-chip-face-h:  28px;    /* sichtbarer Chip; Trefferfläche --au-control-h */
  --au-touch-h:      44px;    /* Untergrenze in Touch-Kontexten          */
  /* Maße der Touch-Stufe .au-touch (§9): ein Wertesatz fuer alle Touch-Kontexte, bedient im
     Stehen, auf Armlaenge. Die Werte sind an einem Maskenentwurf abgenommen, nicht an einer
     Norm gemessen. Ein Projekt hebt sie im Theme nur weiter an (etwa die Kasse), nie
     --au-touch-h selbst, das .au-btn--lg ausserhalb der Stufe traegt. */
  --au-touch-control-h: 48px;  /* Feldbox, gewoehnliche Taste, Zeile               */
  --au-touch-lg-h: calc(var(--au-touch-control-h) + var(--au-s-1)); /* grosse Taste  */
  --au-touch-fs-key: 12px;     /* Kuerzel waechst nur zur Lesbarkeit                */
  --au-touch-fs-xs:  13px;
  --au-touch-fs-sm:  14px;     /* Untergrenze Fliesstext                            */
  --au-touch-fs-md:  16px;
  --au-touch-fs-lg:  17px;     /* Feldwert                                          */
  --au-touch-fs-xl:  20px;     /* Titel, Schrift der grossen Taste                  */
  --au-touch-fs-2xl: 26px;
  --au-touch-fs-sum: 40px;
  --au-touch-icon:    18px;
  --au-touch-icon-sm: 16px;
  --au-touch-chip-h:  30px;
  --au-touch-avatar:  30px;
  --au-touch-mark:    52px;
  --au-touch-dot:     12px;    /* Statuspunkt neben Touch-Schrift (§9)              */
  --au-touch-fs-timer: 40px;   /* laufender Zeitzaehler                             */
  --au-field-cols:     12;    /* Spalten des Feldrasters                 */
  --au-record-ident-min-w: 360px; /* Identitaet neben der Aktionszeile (§7)   */
  --au-label-w:     170px;    /* Label links in .au-fields--inline (§7)  */
  --au-col-min-w:   440px;    /* Mindestbreite einer Gruppenspalte (§7)  */

  /* --- Zonen ---------------------------------------------------------- */
  --au-topbar-h:    54px;
  --au-tabbar-h:    42px;
  --au-tab-w:      220px;    /* Tab der Reiterleiste, Startbreite        */
  --au-starttile-w: 200px;   /* Mindestzelle des Kachelrasters der Startseite */
  --au-starttile-h: 112px;
  --au-tab-min-w:   96px;    /* schmaler wird ein Tab nicht; dann blaettert die Leiste */
  --au-statusbar-h: 38px;
  --au-footer-h:    36px;
  --au-sidebar-w:  268px;
  --au-rail-w:      54px;
  --au-navigator-w:252px;   /* Satznavigator in der Vollbreite-Ansicht   */
  --au-navigator-w-narrow:212px; /* Satznavigator bei knapper Breite (§3) */
  --au-list-w:     596px;   /* Liste im Split-View, Startbreite          */
  --au-list-min-w: 480px;
  --au-detail-min-w:560px;
  --au-menu-w:     272px;
  --au-palette-w:  660px;

  /* --- Sonstiges ------------------------------------------------------ */
  --au-burger-w:    32px;
  --au-burger-line-w:14px;
  --au-burger-line-h: 2px;   /* ganze Pixel: halbe runden ungleich       */
  --au-dot:          6px;    /* Statuspunkt                              */
  --au-avatar:      22px;    /* Kürzelmarke in der Liste                 */
  --au-mark:        42px;    /* Kürzelmarke im Satzkopf                  */
  --au-cell-pad:    12px;
  --au-cols: 1fr;            /* Spaltenraster der Liste, je Modul gesetzt  */
  --au-cellbox-h:   var(--au-field-h); /* editierbare Rasterzelle, nie unter der Feldbox */
  --au-cellbox-r:    5px;
  --au-cellbox-gap:  6px;    /* Luft zwischen zwei Zellen                 */
  --au-lookup-w:   600px;    /* Wertehilfe-Overlay                        */
  --au-about-w:    420px;    /* Über-Overlay: Stand des Systems (§3)      */
  --au-preview-w:  712px;    /* Belegvorschau                             */
  --au-sheet-w:    404px;    /* Blatt in der Vorschau                     */
  --au-refcard-media-h: 150px; /* Bildfläche des Bezugssatzes             */
  --au-sums-w:     296px;    /* Summenspalte der Belegmaske               */
  --au-chip-h:      24px;    /* Statusschritt                             */
  --au-arrow-w:     16px;    /* Pfeil zwischen Statusschritten            */
  --au-login-w:    404px;    /* Anmeldekarte                              */
  --au-facets-w:   248px;    /* Merkmalsfilter-Spalte                     */
  --au-facets-w-narrow: 200px; /* Merkmalsfilter bei knapper Breite (§3)  */
  --au-context-w:  300px;    /* Detail-/Kontextspalte                     */
  --au-context-wide-w: 380px; /* Spalte, die bleibt (.au-context--keep, Hilfe mit Fliesstext) */
  /* Stapelordnung — benannt, damit kein Projekt sie raet: Menue < Aufklapper am Feld <
     Schleier < angedockte Spalte. Die Spalte arbeitet, waehrend ein Dialog steht. */
  --au-z-preview:   30;      /* Details als Flaeche ueber der Liste         */
  --au-z-menu:      40;
  --au-z-popover:   45;
  --au-z-scrim:     50;
  --au-z-context:   60;
  --au-matrix-col:  84px;    /* Aktionsspalte der Merkmalsmatrix          */
  --au-col-min:     64px;    /* Mindestbreite einer Listenspalte beim Ziehen (§6) */
  --au-matrix-col-wide: 120px; /* Matrixspalte mit Text im Kopf          */
  --au-icon:        15px;    /* Symbol in Button, Menü, Navigation        */
  --au-icon-sm:     13px;    /* Symbol in kleinen Steuerelementen         */
  --au-field-mark:  var(--au-icon-sm); /* Feldzeichen: Auswahlpfeil, Schloss — kein Kuerzel */
  --au-badge:       17px;    /* Zeichenmarke (Kette, Matrix)              */
  --au-progress-h:   4px;    /* Fortschrittsleiste                        */
  --au-toast-w:    320px;    /* nicht-modale Meldung                      */
  --au-stroke:       1px;    /* Strichstaerke der Bedienelemente (Werkstatt: 2px) */
  --au-appbar-bg:  var(--au-action);       /* Kopfband einer App ohne Shell; das Theme  */
  --au-appbar-ink: var(--au-on-action);    /* setzt es im Dunkelmodus dunkel (§9)       */
  --au-appbar-link: var(--au-accent-mark); /* Wort "Zurueck" im Band: hell, nie --au-accent */
  --au-camera-bg:  #111111;  /* Kamerabild: dunkel in beiden Themes         */
  --au-camera-mark: #ffffff; /* Eckwinkel des Suchers                       */
  --au-usage-code-w:52px;    /* Modulnummern-Spalte im Verwendungsnachweis: 10.13.1 passt */
  --au-navitem-code-w:46px;  /* Modulnummer in der Navigation: 10.13.1 passt */
  --au-fieldhelp-min-w:360px; /* Feldhilfe am Feld                        */
  --au-fieldhelp-max-w:420px;
  --au-icon-help:   16px;    /* Hilfezeichen an Meldungen (Markenpaket)   */
  --au-dialog-w:   272px;    /* Rückfrage                                 */
  --au-dialog-w-wide:480px;  /* Rückfrage mit Summen, Kennzahlen, 3 Tasten */
  --au-dialog-w-large:680px; /* Erfassungsdialog am Kassenplatz (§7l)      */
  --au-kennmark-h:  18px;    /* Kurzname-Marke auf der Kennfarbe (§3)     */
  /* Markenzeichen (§3): Werte haengen am Zeichensatz des Projekts und werden im Theme
     ueberschrieben — hier nur Vorgaben, damit die Regeln nicht ins Leere greifen. */
  --au-brandmark-h: 22px;    /* Hoehe des Bildzeichens in der Topbar      */
  --au-brandmark-w:120px;    /* feste Zonenbreite der Marke               */
  --au-tabbrand-h:  16px;    /* nachgeordnete Marke in der Reiterleiste   */
  --au-kennchip:    16px;    /* Farbfeld-Chip und Vorschau-Marke          */
  --au-swatch-w:   168px;    /* Farbfeld in der Kennfarben-Auswahl        */
  --au-kennprev-h:  34px;    /* Zeile der Kennfarben-Vorschau             */
  --au-kennprev-w: 260px;    /* Spalte der Kennfarben-Vorschau            */
  --au-timegrid-label-w: 230px; /* Zeilenkopf des Zeitachsenrasters (§7i)                 */
  --au-timegrid-row-h:    60px; /* Zeile: Planebene (--au-control-h) über Istebene, je     */
                                /* --au-s-1 Luft. Ein Wert, weil die Zeilen virtualisiert  */
                                /* werden und die Ebenen absolut darin sitzen.             */
  --au-timegrid-ist-h:    18px; /* Istebene: flacher als die Planebene, hoch genug für     */
                                /* Wertetext in --au-fs-sm.                                */
  /* Spanne und Abschnitte je Ansicht am Raster gesetzt, Lage je Block am Block —
     alle in Minuten ohne Einheit; Vorgabe ist ein ganzer Tag in sieben Abschnitten.
     --au-slot-w bleibt absichtlich ungesetzt: ohne Wert teilen sich die Abschnitte
     die Breite, mit Wert (z. B. 180px) rollt das Raster waagerecht. */
  --au-time-from: 0;
  --au-time-to:   1440;
  --au-time-cols: 7;
  /* Ablaufgraph (_uiux-muster.md §7p): Kasten und Abstände eines Rasters aus Spalten (Folge) und
     Zeilen (Zweig). Die Anwendung setzt nur Spalte und Zeile; Lage, Kanten und Anker rechnet das
     Stylesheet aus diesen Maßen. Die Touch-Stufe tauscht Kasten und Schrift, die Rechnung bleibt. */
  --au-flowgraph-node-w:    168px;  /* Knoten: Name und Zeile darunter in --au-fs-md / -sm   */
  --au-flowgraph-node-h:     44px;
  --au-flowgraph-col-gap:    48px;  /* Luft zwischen zwei Spalten; in ihrer Mitte laufen die  */
                                    /* senkrechten Kanten und sitzt die Zusammenführung      */
  --au-flowgraph-row-gap:    40px;  /* Luft zwischen zwei Zeilen; trägt den Rücksprung        */
  --au-flowgraph-arrow:       6px;  /* Länge der Pfeilspitze                                  */
  --au-flowgraph-join:       14px;  /* Kante der Raute vor der Drehung                        */
  --au-flowgraph-back-depth: 22px;  /* Tiefe des Rücksprungbogens unter dem Knoten           */
  --au-flowgraph-edge: var(--au-line-input); /* Kante: Linie, die den Ablauf trägt — hält 3:1 */
  --au-touch-flowgraph-node-w: 208px;
  --au-scrollbar-w: 10px;    /* Scrollbalken-Breite (nur Chromium, §2.5)  */
  --au-scrollbar-thumb:       var(--au-line-strong);  /* Daumen in Ruhe          */
  --au-scrollbar-thumb-hover: var(--au-line-input);   /* Daumen unter dem Zeiger */
}

/* Hohe Dichte: auf <body> oder auf einem einzelnen Panel */
.au-dense {
  --au-row-h: var(--au-row-h-dense);
  --au-pad: var(--au-s-3);
  --au-gap: var(--au-s-2);
}

/* Touch-Dichte (_uiux.md §9): auf einem Arbeitsbereich, Panel oder Dialog, nie auf der Shell.
   Jedes bedienbare Element erreicht die Bedienhöhe der Stufe; Such- und Scanfeld
   (--au-input-h) bleiben in Normalhöhe, hinein schreiben Scanner und Tastatur — außer am
   Kassenplatz (.au-register, §7l). */
.au-touch {
  --au-touch-h:   var(--au-touch-lg-h);
  --au-control-h: var(--au-touch-control-h);
  --au-field-h:   var(--au-touch-control-h);
  --au-cellbox-h: var(--au-touch-control-h);
  --au-row-h:     calc(var(--au-touch-control-h) + var(--au-s-2));
  --au-chip-h:    var(--au-touch-chip-h);
  --au-icon:      var(--au-touch-icon);
  --au-icon-sm:   var(--au-touch-icon-sm);
  --au-field-mark: var(--au-touch-icon-sm);
  --au-avatar:    var(--au-touch-avatar);
  --au-mark:      var(--au-touch-mark);
  --au-fs-key: var(--au-touch-fs-key);
  --au-fs-xs:  var(--au-touch-fs-xs);
  --au-fs-sm:  var(--au-touch-fs-sm);
  --au-fs-md:  var(--au-touch-fs-md);
  --au-fs-lg:  var(--au-touch-fs-lg);
  --au-fs-xl:  var(--au-touch-fs-xl);
  --au-fs-2xl: var(--au-touch-fs-2xl);
  --au-fs-sum: var(--au-touch-fs-sum);
  --au-fs-timer: var(--au-touch-fs-timer);
  --au-dot: var(--au-touch-dot);
  --au-flowgraph-node-w: var(--au-touch-flowgraph-node-w);
  --au-flowgraph-node-h: calc(var(--au-touch-control-h) + var(--au-s-3));
}
/* Eingabe füllt die Box, sonst fokussiert ein Tipp neben der Schrift nicht. */
.au-touch .au-field__box > input,
.au-touch .au-field__box > textarea,
.au-touch .au-chip > select       { align-self: stretch; }
/* Elemente mit festem Innenabstand statt Höhe */
.au-touch .au-chip                 { height: var(--au-touch-h); padding: 0 var(--au-s-3); }
.au-touch .au-chip__x              { min-width: var(--au-touch-h); text-align: center; }
.au-touch .au-record__tabs > *     { min-height: var(--au-touch-h); display: flex; align-items: center; padding-bottom: 0; }
.au-touch .au-menu__item           { min-height: var(--au-touch-h); }
.au-touch .au-navigator__item      { min-height: calc(var(--au-touch-h) + var(--au-s-3)); justify-content: center; }
.au-touch .au-facets__title,
.au-touch .au-facets__opt          { min-height: var(--au-touch-control-h); align-items: center; }
/* Im Stehen gelesen: Kennzahlbeschriftung ohne Versalien, Statuswort in Textfarbe. */
.au-touch .au-kpi__label           { font-size: var(--au-fs-sm); letter-spacing: 0; text-transform: none; }
.au-touch .au-status               { color: var(--au-text); }
/* Werkstatt-Stufe (§9): Bedienung im Stehen, mit Arbeitshaenden oder Handschuhen. Hebt nur
   die Touch-Tokens an; Konturen in doppelter Staerke. Nur zusammen mit .au-touch. */
.au-touch.au-touch--werkstatt {
  --au-touch-control-h: 56px; --au-touch-lg-h: 64px;
  --au-touch-fs-xs: 14px; --au-touch-fs-sm: 15px; --au-touch-fs-md: 18px; --au-touch-fs-lg: 19px;
  --au-touch-fs-xl: 24px; --au-touch-fs-2xl: 30px;
  --au-touch-icon: 22px; --au-touch-avatar: 44px; --au-stroke: 2px;
}

/* Scrollbalken (§2.5, §10) — Firefox-Regeln gekapselt: seit Chromium 121 schalten
   gesetzte Standardeigenschaften die ::-webkit-scrollbar-Regeln ab */
@supports not selector(::-webkit-scrollbar) {
  * { scrollbar-width: thin; scrollbar-color: var(--au-scrollbar-thumb) transparent; }
}
*::-webkit-scrollbar { width: var(--au-scrollbar-w); height: var(--au-scrollbar-w); }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--au-scrollbar-thumb); border-radius: calc(var(--au-scrollbar-w) / 2); }
*::-webkit-scrollbar-thumb:hover { background: var(--au-scrollbar-thumb-hover); }
*::-webkit-scrollbar-corner { background: transparent; }

/* ==========================================================================
   Basis
   ========================================================================== */
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--au-canvas);
  color: var(--au-text);
  font: 400 var(--au-fs-md)/var(--au-lh-text) var(--au-font);
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
a { color: var(--au-accent-ink); text-decoration: none; }
a:hover { color: var(--au-accent-ink); text-decoration: underline; }
/* Ein Verweis ohne Adresse oeffnet eine Ansicht der Shell, keine Seite: klickbar, also die Hand. */
a[role="link"]:not([href]) { cursor: pointer; }
:focus-visible { outline: none; box-shadow: var(--au-focus-ring); border-radius: var(--au-r-sm); }
/* Der Ring wechselt den Traeger: Feldbox, Rasterzelle, Such- und Sprungfeld zeigen den
   Fokus selbst (:focus-within) — sonst stehen zwei Rahmen mit Luft dazwischen. */
.au-field__box :focus-visible, .au-cellbox :focus-visible,
.au-search :focus-visible, .au-jump :focus-visible { box-shadow: none; }

.au-num { font-family: var(--au-mono); font-variant-numeric: tabular-nums; }
.au-code { font: 500 var(--au-fs-xs)/var(--au-lh-tight) var(--au-mono); color: var(--au-accent-ink); }
.au-key { font: 500 var(--au-fs-key)/var(--au-lh-tight) var(--au-mono); color: var(--au-label); }
/* Steht im Dokument und bleibt bedienbar, ist aber nicht zu sehen: Dateifeld hinter seinem
   Dialog, Sprungmarke, Beschriftung nur fuer die Sprachausgabe. NICHT display: none — ein
   Dateifeld darin nimmt keinen programmatischen Klick mehr an, die Sprachausgabe verliert es. */
.au-visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* ==========================================================================
   Shell
   ========================================================================== */
.au-app { height: 100vh; display: flex; flex-direction: column; background: var(--au-canvas); }

.au-topbar {
  height: var(--au-topbar-h); flex: none; display: flex; align-items: center;
  gap: var(--au-s-4); padding: 0 var(--au-s-4);
  background: var(--au-panel); border-bottom: 1px solid var(--au-line);
}
.au-brand { display: flex; align-items: center; gap: var(--au-s-2); font: 600 var(--au-fs-lg)/var(--au-lh-tight) var(--au-font); }
.au-brand__mark {
  width: var(--au-avatar); height: var(--au-avatar); border-radius: var(--au-r-sm);
  background: var(--au-action); color: var(--au-on-action);
  font: 600 var(--au-fs-sm)/var(--au-avatar) var(--au-font); text-align: center;
}
/* Bildzeichen statt Buchstabenkachel: feste Hoehe, Breite nach Zeichen; die feste Zone
   (--fix) haelt alles rechts davon an seinem Platz, wenn die Marke mit dem Arbeitskontext
   wechselt und das Zeichen eine andere Breite hat. .au-brand__mark bleibt fuer Projekte
   ohne eigenes Zeichen. */
.au-brand__lockup { height: var(--au-brandmark-h); width: auto; display: block; }
.au-brand--fix { width: var(--au-brandmark-w); justify-content: flex-start; overflow: hidden; flex: none; }
.au-topbar__meta { margin-left: auto; display: flex; align-items: center; gap: var(--au-s-4); color: var(--au-muted); }
/* Stand der Installation (§3): Geschwister der Kennmarke, aber auf neutralem Grund —
   deshalb ohne Kontur und ohne Versalien. Zahl in Monospace mit tabular-nums, damit die
   Breite beim Wechsel der Build-Nummer nicht springt. */
.au-buildmark {
  display: inline-flex; align-items: center; gap: var(--au-s-1); min-height: var(--au-control-h);
  padding: 0 var(--au-s-1); border: 0; background: none; cursor: pointer;
  border-radius: var(--au-r-sm); white-space: nowrap; color: var(--au-muted);
  font: 400 var(--au-fs-xs)/var(--au-lh-tight) var(--au-mono);
  font-variant-numeric: tabular-nums;
}
.au-buildmark:hover { background: var(--au-panel-hover); color: var(--au-text-2); }
/* Benutzermenue (§3): der Name ist ein Knopf in der Schrift der Metazeile; sein Menue haengt
   am Traeger darunter, rechtsbuendig. Nur Selbstbedienung der Person, keine Navigation. */
.au-topbar__user { position: relative; }
.au-usermenu {
  display: inline-flex; align-items: center; gap: var(--au-s-1); height: var(--au-control-h);
  padding: 0 var(--au-s-2); border: 0; border-radius: var(--au-r-sm); background: none; cursor: pointer;
  font: 400 var(--au-fs-md)/var(--au-lh-tight) var(--au-font); color: inherit; white-space: nowrap;
}
.au-usermenu::after { content: "\2304"; content: "\2304" / ""; color: var(--au-adorn); }
.au-usermenu:hover, .au-usermenu[aria-expanded="true"] { background: var(--au-panel-hover); color: var(--au-text-2); }

/* Tabs wie im Browser (§3): aneinanderhaengend auf einer dunkleren Leiste, runde obere Ecken;
   der aktive in --au-canvas geht ohne Kante in den Arbeitsbereich ueber, seine Eckboegen
   zeichnet ein Schatten einer runden Flaeche (kein Verlauf). Verschieben nur mit der Maus. */
.au-tabbar {
  height: var(--au-tabbar-h); flex: none; display: flex; align-items: flex-end;
  gap: 0; padding: var(--au-s-1) var(--au-s-4) 0;
  background: var(--au-tabstrip); overflow-x: auto; overflow-y: hidden;
}
/* Nachgeordnete Marke (Hersteller) am rechten Ende der Reiterleiste — kleiner als die Marke
   der Topbar, nie gleichrangig; die Reiterreihe waechst nach links. */
.au-tabbar__brand { margin-left: auto; display: flex; align-items: center; flex: none; overflow: hidden; height: var(--au-tabbrand-h); align-self: center; }
.au-tabbar__brand > * { height: 100%; width: auto; display: block; }
/* Grundform fuer jeden Tab, auch die Karteikarte einer Maske (.au-record__tabs, §7); alles Weitere der
   Browser-Tabs gilt nur in der Tableiste (Meldung des Referenzprojekts vom 09.11.2026). */
.au-tab { display: flex; align-items: center; gap: var(--au-s-2); cursor: pointer; }
.au-tabbar .au-tab {
  position: relative; display: flex; align-items: center; gap: var(--au-s-2); cursor: pointer;
  flex: 0 1 var(--au-tab-w); min-width: var(--au-tab-min-w); height: calc(var(--au-tabbar-h) - var(--au-s-1));
  padding: 0 var(--au-s-3); border-radius: var(--au-r-lg) var(--au-r-lg) 0 0;
  font: 400 var(--au-fs-md)/var(--au-lh-tight) var(--au-font); color: var(--au-muted);
}
/* Trennstrich zwischen zwei ruhenden Tabs; neben dem aktiven und beim Ueberfahren entfaellt er. */
.au-tabbar .au-tab + .au-tab::before {
  content: ""; position: absolute; left: 0; top: 25%; bottom: 25%;
  border-left: 1px solid var(--au-line-strong);
}
.au-tabbar .au-tab--active + .au-tab::before, .au-tabbar .au-tab:hover::before, .au-tabbar .au-tab:hover + .au-tab::before { border-left-color: transparent; }
.au-tabbar .au-tab__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: var(--au-lh-text); }
/* Start-Tab: fest vorn, ohne x, nicht verschiebbar. */
.au-tabbar .au-tab--fixed { flex: none; min-width: 0; }
/* Einfuegemarke beim Ziehen eines Tabs */
.au-tabbar__mark { flex: none; width: 2px; align-self: stretch; margin: var(--au-s-1) -1px 0; background: var(--au-accent); }
.au-tabbar .au-tab__code { font: 500 var(--au-fs-xs)/var(--au-lh-tight) var(--au-mono); color: var(--au-faint); }
.au-tabbar .au-tab__close { color: var(--au-faint); }
/* Zeichen-Ziele ohne eigene Flaeche (§9): die Trefferflaeche waechst auf --au-control-h im
   Quadrat, das Bild nicht. */
.au-tabbar .au-tab__close, .au-chip__x, .au-about__close, .au-mini-cal__reset { position: relative; }
.au-tabbar .au-tab__close::after, .au-chip__x::after, .au-about__close::after, .au-mini-cal__reset::after {
  content: ""; position: absolute;
  left: calc(50% - var(--au-control-h) / 2); top: calc(50% - var(--au-control-h) / 2);
  width: var(--au-control-h); height: var(--au-control-h);
}
.au-tabbar .au-tab:hover { color: var(--au-text-2); background: var(--au-tabstrip-hover); }
.au-tabbar .au-tab--active, .au-tabbar .au-tab--active:hover { font-weight: 600; color: var(--au-text); background: var(--au-canvas); }
/* Eckboegen des aktiven Tabs: je ein Quadrat in --au-canvas, aus dem ein Viertelkreis ausgespart
   ist — als Maske (SVG, kein Verlauf). Ein Schatten einer runden Flaeche hinterliess bei 125 % und
   150 % Skalierung eine helle Haarlinie neben dem Tab (Referenzprojekt, Sichtung 05.11.2026). */
.au-tabbar .au-tab.au-tab--active::before, .au-tabbar .au-tab.au-tab--active::after {
  content: ""; position: absolute; top: auto; bottom: 0; width: var(--au-r-lg); height: var(--au-r-lg);
  border: 0; background: var(--au-canvas); pointer-events: none;
}
.au-tabbar .au-tab.au-tab--active::before {
  left: calc(-1 * var(--au-r-lg));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' preserveAspectRatio='none'%3E%3Cpath d='M10 0V10H0A10 10 0 0 0 10 0Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' preserveAspectRatio='none'%3E%3Cpath d='M10 0V10H0A10 10 0 0 0 10 0Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}
.au-tabbar .au-tab.au-tab--active::after {
  right: calc(-1 * var(--au-r-lg));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' preserveAspectRatio='none'%3E%3Cpath d='M0 0V10H10A10 10 0 0 1 0 0Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' preserveAspectRatio='none'%3E%3Cpath d='M0 0V10H10A10 10 0 0 1 0 0Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}
.au-tabbar .au-tab.au-tab--active::before {
  left: calc(-1 * var(--au-r-lg)); border-bottom-right-radius: var(--au-r-lg);
  box-shadow: calc(var(--au-r-lg) / 2) calc(var(--au-r-lg) / 2) 0 calc(var(--au-r-lg) / 2) var(--au-canvas);
}
.au-tabbar .au-tab.au-tab--active::after {
  right: calc(-1 * var(--au-r-lg)); border-bottom-left-radius: var(--au-r-lg);
  box-shadow: calc(var(--au-r-lg) / -2) calc(var(--au-r-lg) / 2) 0 calc(var(--au-r-lg) / 2) var(--au-canvas);
}
.au-tabbar .au-tab--active .au-tab__code { color: var(--au-accent-ink); }
.au-tabbar .au-tab--dirty .au-tab__close { color: var(--au-accent); }   /* Punkt statt Kreuz */
/* Tab "Artikel" (§3): Zeichen der Hilfe statt Modulnummer, Inhalt .au-article in voller
   Panelbreite, keine Aktionsleiste. */
.au-tabbar .au-tab--doc .au-icon { color: var(--au-sign); }

.au-work { flex: 1; min-height: 0; display: flex; gap: var(--au-gap); padding: var(--au-gap); }
/* Huelle eines Tabs im Arbeitsbereich: Jeder offene Tab bleibt gezeichnet und behaelt seinen
   Zustand; die Huelle des aktiven gibt ihre Panels unveraendert an .au-work weiter, die der
   inaktiven traegt hidden. */
.au-tabpanel { display: contents; }
.au-tabpanel[hidden] { display: none; }
.au-panel {
  /* clip statt hidden: hidden bleibt per Fokus und scrollIntoView seitlich verschiebbar. */
  display: flex; flex-direction: column; overflow: clip; min-width: 0; min-height: 0;
  background: var(--au-panel); border: 1px solid var(--au-line);
  border-radius: var(--au-r-lg); box-shadow: var(--au-shadow-panel);
}
.au-panel--list   { width: var(--au-list-w); min-width: var(--au-list-min-w); flex: 0 1 var(--au-list-w); }
.au-panel--detail { flex: 1; min-width: var(--au-detail-min-w); }
.au-panel--full   { flex: 1; width: auto; }   /* Liste in der Vollbreite (_uiux.md §3) */
.au-panel__head  { flex: none; padding: calc(var(--au-s-2) * 2) var(--au-pad) 0; display: flex; flex-direction: column; gap: var(--au-s-3); }
.au-panel__title { font: 600 var(--au-fs-xl)/var(--au-lh-tight) var(--au-font); }
.au-panel--list .au-panel__title { font-size: var(--au-fs-listtitle); }
/* × einer Ansicht ohne Aktionszeile (§3): rechts ganz oben im Kopf. */
.au-panel__head > .au-panel__close { align-self: flex-end; order: -1; }
/* Rechts in einer Flex-Zeile: Statuszeile (§7 Punkt 6), Kartentitel, Panelfuss. */
.au-end { margin-left: auto; }
.au-panel__foot {
  height: var(--au-footer-h); flex: none; display: flex; align-items: center;
  gap: var(--au-s-4); padding: 0 var(--au-pad);
  border-top: 1px solid var(--au-line); background: var(--au-panel-sunken);
  font: 400 var(--au-fs-sm)/var(--au-lh-tight) var(--au-font); color: var(--au-muted);
}
/* Fuss und Statuszeile bleiben einzeilig: Kinder kuerzen mit Auslassung, statt umzubrechen
   und in die letzte Zeile zu laufen. */
.au-panel__foot, .au-statusbar { white-space: nowrap; overflow-x: clip; }  /* clip: der Fokusring einer Taste bleibt oben und unten sichtbar */
.au-panel__foot > *, .au-statusbar > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* Fuss mit vielen Aussagen: was nicht ganz passt, faellt als Ganzes aus der Zeile (bricht in
   eine verdeckte zweite Zeile), nichts steht angeschnitten; "Mehr laden" steht vorn. */
.au-panel__foot--drop { flex-wrap: wrap; align-content: flex-start; row-gap: 0; overflow: clip; }
.au-panel__foot--drop > * { flex: none; height: var(--au-footer-h); display: inline-flex; align-items: center; overflow: visible; }
.au-panel__foot--drop > .au-btn { order: -1; height: var(--au-control-h); margin-block: calc((var(--au-footer-h) - var(--au-control-h)) / 2); }
/* Hinweis direkt im Panel steht mit dem Innenabstand des Panels, wie im Rumpf. */
.au-panel > .au-hint { margin: var(--au-s-3) var(--au-pad); }

/* ==========================================================================
   Navigation
   ========================================================================== */
.au-sidebar { width: var(--au-sidebar-w); flex: none; }
/* Arbeitsvorrat am unteren Ende der Sidebar (§4): schrumpft nicht, die Navigation blaettert. */
.au-worklist { flex: none; margin-top: auto; border-top: 1px solid var(--au-line-soft); padding: var(--au-s-2) var(--au-s-1); }
.au-worklist__empty { padding: var(--au-s-1) var(--au-s-2); font: 400 var(--au-fs-sm)/var(--au-lh-text) var(--au-font); color: var(--au-muted); }
.au-rail__worklist { margin-top: auto; }
/* Ausfahrende Flaeche (Sidebar als Leiste, §4): Bewegung nur, wenn der Anwender sie nicht
   abgewaehlt hat — was unter reduce gar nicht erst gesetzt wird, kann nicht uebrig bleiben. */
@media (prefers-reduced-motion: no-preference) {
  .au-slide { transition: transform var(--au-dur-slide) ease-out, opacity var(--au-dur-slide) ease-out; }
}
/* "Wartet" (§2.4): eine Drehung, still bei prefers-reduced-motion. Projekte bauen keine
   eigene Bewegung; das Zeichen bleibt auch ohne Drehung als Zustand erkennbar. Gedreht wird
   um die eigene Mitte, auch als Teil eines SVG (ein Reif im Zeichen, nicht das ganze Zeichen). */
@keyframes au-spin { to { transform: rotate(360deg); } }
.au-spin { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .au-spin { animation: au-spin var(--au-dur-spin) linear infinite; }
}
/* Produktzeichen: Farbe --au-sign, gefuellt fuer "hat etwas"; auf der Kennfarbe deren
   Zeichenfarbe, damit es auf jedem Ton lesbar bleibt (§3). */
.au-sign { color: var(--au-sign); }
.au-sign--filled { background: var(--au-sign); color: var(--au-sign-ink); }
.au-app[data-kenn] .au-topbar .au-sign { --au-sign: var(--au-kenn-ink); --au-sign-ink: var(--au-kenn); }
.au-sidebar__hint { font: 400 var(--au-fs-xs)/var(--au-lh-text) var(--au-font); color: var(--au-muted); }

.au-jump {
  display: flex; align-items: center; gap: var(--au-s-2); min-width: 0;
  height: var(--au-input-h); padding: 0 var(--au-s-3);
  background: var(--au-canvas); border: 1px solid var(--au-line); border-radius: var(--au-r-md);
}
.au-jump--lg { height: var(--au-touch-h); border-radius: var(--au-r-lg); background: var(--au-panel-sunken); border-color: var(--au-line-input); }
.au-jump:focus-within { border-color: var(--au-line-focus); box-shadow: var(--au-focus-ring-soft); }
.au-jump__code { font: 500 var(--au-fs-md)/var(--au-lh-tight) var(--au-mono); color: var(--au-accent-ink); }
.au-jump__sep { width: 1px; height: var(--au-s-4); background: var(--au-accent); }
.au-jump input {
  flex: 1; min-width: 0; border: 0; background: none; outline: none;
  font: 400 var(--au-fs-lg)/var(--au-lh-tight) var(--au-font); color: var(--au-text);
}
.au-jump input::placeholder { color: var(--au-input-ph); }

.au-jumphits { background: var(--au-panel); border-bottom: 1px solid var(--au-line); }
.au-jumphit  { display: flex; align-items: center; gap: var(--au-s-3); min-height: var(--au-control-h); padding: 0 var(--au-pad); font: 400 var(--au-fs-md)/var(--au-lh-tight) var(--au-font); cursor: pointer; }
.au-jumphit--sel { background: var(--au-accent-soft); font-weight: 600; }

.au-navsection {
  padding: var(--au-s-2) var(--au-pad) var(--au-s-1);
  border-top: 1px solid var(--au-line-soft);
  font: 500 var(--au-fs-key)/var(--au-lh-tight) var(--au-mono);
  letter-spacing: .14em; text-transform: uppercase; color: var(--au-label);
}
.au-navsection:first-of-type { border-top: 0; }
.au-navlist { display: flex; flex-direction: column; gap: 2px; padding: 0 var(--au-s-1) var(--au-s-3); overflow: hidden; }
.au-navitem {
  display: flex; align-items: center; gap: var(--au-s-3); cursor: pointer; min-height: var(--au-row-h);
  padding: 0 var(--au-s-2); border-radius: var(--au-r-md);
  font: 400 var(--au-fs-nav)/var(--au-lh-tight) var(--au-font); color: var(--au-text-2);
}
/* Untereintrag (eingerueckt unter seinem Bereich): Bedienhoehe, Text ab 20 px */
.au-navitem--sub { min-height: var(--au-control-h); padding-left: calc(var(--au-s-5) + 2px); font-size: var(--au-fs-nav-sub); }
.au-navitem__code { width: var(--au-navitem-code-w); flex: none; font: 500 var(--au-fs-key)/var(--au-lh-tight) var(--au-mono); color: var(--au-label); }
.au-navitem__key  { margin-left: auto; font: 500 var(--au-fs-key)/var(--au-lh-tight) var(--au-mono); color: var(--au-label); }
.au-navitem__count {
  margin-left: auto; flex: none; min-width: var(--au-badge); height: var(--au-badge);
  display: flex; align-items: center; justify-content: center; padding: 0 var(--au-s-1);
  font: 500 var(--au-fs-key)/1 var(--au-mono);
  color: var(--au-accent-ink); background: var(--au-accent-soft); border-radius: var(--au-r-chip);
}
.au-navitem--group { font-weight: 500; color: var(--au-text); }
.au-navitem:hover { background: var(--au-panel-hover); }
.au-navitem--active { background: var(--au-accent-soft); color: var(--au-text); font-weight: 500; }
.au-navitem--active .au-navitem__code { color: var(--au-accent-ink); }
/* Fachbereich als Favorit (§4): Ordner als Knopf mit aria-expanded, oeffnet selbst keine Ansicht;
   die lesbaren Ansichten folgen als .au-navitem--sub (eingeklappt entfallen sie aus dem Markup). */
button.au-navitem--folder { width: 100%; border: 0; background: none; text-align: left; }
.au-navitem--folder[aria-expanded]::after {
  content: "\2304"; content: "\2304" / ""; margin-left: auto; flex: none; width: var(--au-icon-help); text-align: center; color: var(--au-adorn);
}
.au-navitem--folder[aria-expanded="false"]::after { transform: rotate(-90deg); }
.au-navitem--folder:has(.au-navitem__key)::after { margin-left: var(--au-s-2); }

.au-rail {
  position: relative;
  width: var(--au-rail-w); flex: none; display: flex; flex-direction: column;
  align-items: center; gap: 3px; padding: var(--au-s-2) 0;
  background: var(--au-panel); border-right: 1px solid var(--au-line);
}
.au-rail__item {
  width: var(--au-mark); height: var(--au-control-h); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border-radius: var(--au-r-md); overflow: hidden;
}
.au-rail__code  { font: 500 var(--au-fs-lg)/var(--au-lh-tight) var(--au-mono); color: var(--au-text-2); }
.au-rail__label {
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: 400 var(--au-fs-key)/var(--au-lh-text) var(--au-font); color: var(--au-label);
}
.au-rail__item--active { background: var(--au-accent-soft); }
.au-rail__item--active .au-rail__code { color: var(--au-accent-ink); }

/* Flyout der Nummern-Rail: Ansichten einer Gruppe über dem Arbeitsbereich (_uiux.md §3) */
.au-rail__flyout {
  position: absolute; top: 0; bottom: 0; left: 100%;
  width: var(--au-sidebar-w); z-index: var(--au-z-popover); overflow: auto;
  display: flex; flex-direction: column; gap: 2px; padding: var(--au-s-2);
  background: var(--au-panel); border: 1px solid var(--au-line-strong);
  box-shadow: var(--au-shadow-pop);
}

/* Wiederherstellen-Spalte der ausgeblendeten Sidebar (§4) — Breite aus der Zeichen-Taste */
.au-navrestore {
  flex: none; display: flex; flex-direction: column; align-items: center;
  padding: var(--au-s-2) 0;
}

/* .au-scrim ist ein Flexcontainer: jedes Kind sagt, wie hoch es ist. .au-palette und
   .au-lookup--compact: flex-start; .au-dialog: center; .au-lookup und .au-about fuellen
   die Hoehe mit Absicht (stretch). Ein neues Kind ohne align-self ist ein Fehler. */
.au-scrim { position: absolute; inset: 0; z-index: var(--au-z-scrim); background: var(--au-scrim); display: flex; justify-content: center; }
.au-palette {
  align-self: flex-start;
  margin-top: calc(var(--au-topbar-h) + var(--au-tabbar-h) + var(--au-gap));
  max-height: calc(100% - var(--au-topbar-h) - var(--au-tabbar-h) - 2 * var(--au-gap));
  width: var(--au-palette-w); overflow: hidden auto;
  background: var(--au-panel); border: 1px solid var(--au-line-strong);
  border-radius: var(--au-r-xl); box-shadow: var(--au-shadow-pop);
}
.au-palette__input { height: var(--au-touch-h); display: flex; align-items: center; gap: var(--au-s-3); padding: 0 var(--au-pad); border-bottom: 1px solid var(--au-line); }
.au-palette__group, .au-jumphits__group {
  padding: var(--au-s-2) var(--au-pad) var(--au-s-1);
  font: 500 var(--au-fs-key)/var(--au-lh-tight) var(--au-mono);
  letter-spacing: .14em; text-transform: uppercase; color: var(--au-label);
}
.au-palette__row { display: flex; align-items: center; gap: var(--au-s-3); padding: var(--au-s-1) var(--au-pad); font: 400 var(--au-fs-lg)/var(--au-lh-tight) var(--au-font); cursor: pointer; }
.au-palette__row--sel { background: var(--au-accent-soft); font-weight: 600; }
.au-palette__foot, .au-jumphits__foot {
  height: var(--au-statusbar-h); display: flex; align-items: center; gap: var(--au-s-4);
  padding: 0 var(--au-pad); background: var(--au-panel-sunken); border-top: 1px solid var(--au-line);
  font: 400 var(--au-fs-sm)/var(--au-lh-tight) var(--au-font); color: var(--au-muted);
}

.au-start { padding: var(--au-s-5); display: flex; flex-direction: column; gap: var(--au-s-4); }
.au-start__greeting { font: 600 var(--au-fs-2xl)/var(--au-lh-text) var(--au-font); }
.au-tilegrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--au-s-3); }
/* Freies Kachelraster der Startseite (§4): Platz je Kachel ueber --tile-col/--tile-row (ab 1),
   leere Zellen erlaubt; Zellen nur sichtbar beim Ziehen und Anpassen. */
.au-tilegrid--free {
  grid-template-columns: repeat(auto-fill, minmax(var(--au-starttile-w), 1fr));
  grid-auto-rows: var(--au-starttile-h);
}
.au-tilegrid--free > .au-tile { grid-column: var(--tile-col, auto); grid-row: var(--tile-row, auto); }
.au-tilegrid__cell { grid-column: var(--tile-col); grid-row: var(--tile-row); border: 1px dashed var(--au-line); border-radius: var(--au-r-lg); }
.au-tilegrid__cell--target { border-color: var(--au-accent); background: var(--au-accent-soft); }
.au-tile--dragging { opacity: .6; }
/* Signet an der Kachel (Produktzeichen der Zielansicht) und Zahl einer Zaehlkachel */
.au-tile__sign { flex: none; width: var(--au-icon); height: var(--au-icon); color: var(--au-sign); }
.au-tile__count { font: 600 var(--au-fs-2xl)/var(--au-lh-tight) var(--au-mono); font-variant-numeric: tabular-nums; color: var(--au-text); }
.au-tile {
  display: flex; flex-direction: column; gap: var(--au-s-2); cursor: pointer;
  padding: var(--au-s-3); border: 1px solid var(--au-line);
  border-radius: var(--au-r-lg); background: var(--au-panel-sunken);
}
.au-tile:hover { background: var(--au-panel); border-color: var(--au-line-input); }
.au-tile__label { font: 500 var(--au-fs-md)/var(--au-lh-text) var(--au-font); }
.au-tile__meta  { font: 400 var(--au-fs-sm)/var(--au-lh-text) var(--au-font); color: var(--au-muted); }
/* Funktionskachel der Kassieransicht (_uiux-muster.md §7l): fester Aufbau Zeichen · Wort ·
   Kontext · Kürzel, alle gleich hoch; Wort und Kontext je höchstens zwei Zeilen. */
.au-tile--fn { gap: var(--au-s-1); justify-content: center; min-height: calc(var(--au-touch-h) * 1.5); }
.au-tile--fn .au-tile__label { font-weight: 600; }
.au-tile--fn .au-tile__label,
.au-tile--fn .au-tile__meta  { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; hyphens: auto; }
.au-tile--fn:has(> .au-tile__icon) { align-items: center; justify-content: flex-start; text-align: center; }
.au-tile__icon {
  flex: none; width: calc(var(--au-icon) * 1.6); height: calc(var(--au-icon) * 1.6);
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--au-r-md); background: var(--au-accent-soft); color: var(--au-accent-ink);
}
.au-modulerow { display: flex; align-items: baseline; gap: var(--au-s-2); min-width: 0; padding: var(--au-s-1) 0; border-bottom: 1px solid var(--au-line-soft); }
.au-modulerow__subs { font: 400 var(--au-fs-sm)/var(--au-lh-text) var(--au-font); color: var(--au-label); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ==========================================================================
   Steuerelemente
   ========================================================================== */
.au-btn {
  height: var(--au-control-h); display: inline-flex; align-items: center; gap: var(--au-s-2);
  padding: 0 var(--au-s-3); cursor: pointer; white-space: nowrap;
  background: var(--au-panel); border: var(--au-stroke) solid var(--au-line-strong);
  border-radius: var(--au-r-md); color: var(--au-text-2);
  font: 500 var(--au-fs-md)/var(--au-lh-tight) var(--au-font);
}
.au-btn:hover { background: var(--au-panel-hover); border-color: var(--au-line-input); }
.au-btn--primary { background: var(--au-action); border-color: var(--au-action); color: var(--au-on-action); }
.au-btn--primary:hover { background: var(--au-action-hover); border-color: var(--au-action-hover); }
.au-btn[disabled] { opacity: .45; cursor: not-allowed; }
/* Gesperrter Primaerknopf (§2.1, §9): flach und deckend statt blass — lesbare, leisere Schrift
   (--au-muted auf --au-line-soft 5,3:1), kein Ton der Aktion, Zeiger not-allowed. */
.au-btn--primary[disabled] { opacity: 1; background: var(--au-line-soft); border-color: var(--au-line); color: var(--au-muted); }
.au-btn--primary[disabled] .au-btn__key { color: var(--au-muted); }
/* Kürzel steht am Auslöser der Funktion – im Button und im Menüeintrag. */
.au-btn__key { font: 500 var(--au-fs-key)/var(--au-lh-tight) var(--au-mono); color: var(--au-label); }
.au-btn--primary .au-btn__key { color: var(--au-on-action-key); }
/* Primaerknopf mit Kennfarbe (§3): Flaeche in der Kennfarbe, Schrift in ihrer Zeichenfarbe, Kuerzel
   als Mischung, Ueberfahren 12 % heller. Nicht im Touch-Kontext (Kassenplatz ohne Topbar). */
.au-app[data-kenn] .au-btn--primary:not(.au-btn--lg, .au-touch *, [disabled]) {
  background: var(--au-kenn); border-color: var(--au-kenn-action-line); color: var(--au-kenn-ink);
}
.au-app[data-kenn] .au-btn--primary:not(.au-btn--lg, .au-touch *, [disabled]):hover {
  background: color-mix(in srgb, var(--au-kenn-ink) 12%, var(--au-kenn));
}
.au-app[data-kenn] .au-btn--primary:not(.au-btn--lg, .au-touch *, [disabled]) .au-btn__key {
  color: color-mix(in srgb, var(--au-kenn-ink) 82%, var(--au-kenn));
}

.au-btn--burger { width: var(--au-burger-w); padding: 0; flex-direction: column; justify-content: center; gap: 2px; }
.au-btn--burger > span {
  width: var(--au-burger-line-w); height: var(--au-burger-line-h);
  border-radius: 1px; background: currentColor;
}
.au-btn--burger[aria-expanded="true"] { background: var(--au-panel-hover); border-color: var(--au-line-input); color: var(--au-text); }

/* Zeichen-Taste ohne Beschriftung (§2.4): quadratisch wie die Burger-Taste,
   nur für Nebenfunktionen; Bedeutung tragen title und aria-label. */
.au-btn--icon { width: var(--au-control-h); padding: 0; justify-content: center; }
/* Gedrueckte Zeichen-Taste (Nadel, Umschalter): Akzentflaeche wie der gedrueckte Chip. */
.au-btn--icon[aria-pressed="true"] { background: var(--au-accent-soft); border-color: var(--au-accent); color: var(--au-accent-ink); }
/* Grosse Taste fuer Touch-Kontexte (§9: mindestens --au-touch-h), wie .au-jump--lg; das
   Kuerzel (.au-btn__key) bleibt Beiwerk und waechst nicht mit. */
.au-btn--lg { height: var(--au-touch-h); padding: 0 var(--au-s-5); font-size: var(--au-fs-xl); }
.au-btn--icon .au-icon { margin-right: 0; }

/* Die Leiste fuehrt die Hoehe ihrer hoechsten Taste als Variable; das Menue rechnet seinen
   Abstand daraus statt aus dem Token — sonst ragt es neben einer grossen Taste in den
   eigenen Ausloeser hinein. */
.au-actionbar { margin-left: auto; position: relative; display: flex; align-items: center; gap: var(--au-s-2); flex: none; --au-actionbar-h: var(--au-control-h); }
.au-actionbar:has(> .au-btn--lg) { --au-actionbar-h: var(--au-touch-h); }
.au-actionbar > .au-menu { top: calc(var(--au-actionbar-h) + var(--au-s-1) + 2px); }
/* Das Menue haengt am naechsten positionierten Vorfahren: Jeder Traeger eines Aufklappers
   (.au-actionbar, .au-chiprow) ist deshalb position: relative, sonst steht das Menue oben
   rechts im Fenster. Abstand nach unten aus der Hoehe des Traegers (100 %), die auch eine
   umbrechende Filterzeile richtig misst; die Aktionsleiste rechnet aus ihrer Tastenhoehe. */
.au-menu {
  position: absolute; top: calc(100% + var(--au-s-1)); right: 0;
  min-width: var(--au-menu-w); z-index: var(--au-z-menu); padding: var(--au-s-1) 0;
  background: var(--au-panel); border: 1px solid var(--au-line-strong);
  border-radius: var(--au-r-lg); box-shadow: var(--au-shadow-pop);
}
.au-menu__title {
  padding: var(--au-s-1) var(--au-s-3) var(--au-s-2);
  font: 600 var(--au-fs-key)/var(--au-lh-tight) var(--au-font);
  letter-spacing: .14em; text-transform: uppercase; color: var(--au-accent-ink);
}
/* Eine Ueberschrift nach einer Gruppe beginnt eine neue: Trenner und Abstand wie --sep. */
.au-menu > :not(.au-menu__title) + .au-menu__title {
  margin-top: var(--au-s-2); padding-top: var(--au-s-3); border-top: 1px solid var(--au-line-soft);
}
/* Liegt auf einem <button>: Kasten und Kontur gehoeren der Klasse, nicht dem Browser. */
.au-menu__item {
  display: flex; align-items: center; gap: var(--au-s-5); white-space: nowrap; cursor: pointer; min-height: var(--au-row-h);
  width: 100%; text-align: left; background: none; border: 0;
  padding: var(--au-s-1) var(--au-s-3);
  font: 400 var(--au-fs-md)/var(--au-lh-tight) var(--au-font); color: var(--au-text);
}
.au-menu__item:hover { background: var(--au-panel-hover); }
/* Untermenue (§7): ein Eintrag oeffnet eine zweite Stufe rechts daneben; Pfeil rechts,
   aria-haspopup und aria-expanded am Eintrag. Am rechten Fensterrand setzt die Shell --left. */
.au-menu__sub { position: relative; }
.au-menu__item[aria-haspopup]::after { content: "\203A"; content: "\203A" / ""; margin-left: auto; flex: none; color: var(--au-adorn); }
.au-menu--sub { top: calc(-1 * var(--au-s-1) - 1px); right: auto; left: 100%; }
.au-menu--sub-left { left: auto; right: 100%; }
/* Touch (§9): die zweite Stufe als eingerueckte Gruppe im selben Blatt. */
.au-touch .au-menu--sub { position: static; min-width: 0; padding: 0 0 0 var(--au-s-4); border: 0; border-radius: 0; box-shadow: none; }
.au-menu__item--sep { margin-top: var(--au-s-1); padding-top: var(--au-s-2); border-top: 1px solid var(--au-line-soft); }
.au-menu__item--danger { color: var(--au-error); }
.au-menu__item[aria-disabled="true"] { color: var(--au-faint); cursor: default; }
/* Kontextmenue an der Zeigerstelle (Rechtsklick, Kontextmenue-Taste): fest im Fenster wie
   .au-popover, ueber dem Ueberlauf von Liste und Sidebar. Die Komponente setzt
   --au-anchor-left und --au-anchor-top aus dem Zeiger bzw. dem Rechteck des Eintrags; das
   Skript rueckt es ganz ins Fenster. Ebene eines Aufklappers, unter dem Schleier. */
.au-menu--context {
  position: fixed; top: var(--au-anchor-top); left: var(--au-anchor-left); right: auto;
  z-index: var(--au-z-popover);
}
/* Werteliste: der gewaehlte Eintrag traegt eine Marke, keinen Haken — ein Haken neben
   hakenlosen Zeilen liest sich als Mehrfachauswahl (§9). Der Haken bleibt dem Schalter. */
.au-menu__item[aria-selected="true"] { color: var(--au-accent-ink); font-weight: 600; }
/* Schalter in der Liste (menuitemcheckbox): Haken vor dem Eintrag, Platz auch ohne Haken,
   damit die Texte fluchten. Gewaehlt und ungewaehlt sind sonst nicht zu unterscheiden. */
.au-menu__item[aria-checked] { gap: var(--au-s-2); }
.au-menu__item[aria-checked]::before { content: ""; width: var(--au-icon); flex: none; text-align: center; color: var(--au-accent-ink); }
/* Schmueckender Inhalt traegt einen leeren Alternativtext (content: "…" / ""): Chromium
   rechnet erzeugten Inhalt in den zugaenglichen Namen ein, aria-checked sagt es schon (§9).
   Die erste Angabe ist der Rueckfall fuer Browser ohne Alternativtext. */
.au-menu__item[aria-checked="true"]::before { content: "\2713"; content: "\2713" / ""; }
/* Aufklappbare Gruppe: Kopf mit aria-expanded, Zahl der gewaehlten Werte in .au-menu__key,
   Zeichen wie am Auswahlfeld. Die Eintraege stehen im folgenden [role="group"], hoechstens
   eine Gruppe ist offen (_uiux-muster.md §7m). */
.au-menu__group { font-weight: 600; }
.au-menu__group::after { content: "\2304"; content: "\2304" / ""; flex: none; color: var(--au-adorn); }
.au-menu__group[aria-expanded="true"]::after { transform: rotate(180deg); }
.au-menu__group[aria-expanded="false"] + [role="group"] { display: none; }
.au-menu__group + [role="group"] > .au-menu__item { padding-left: calc(var(--au-s-3) + var(--au-icon) + var(--au-s-2)); }

/* Aufklapper am Feld (Klappliste, Vorschlaege): haengt an einem Element im blaetternden
   Inhalt und liegt trotzdem ueber .au-panel (overflow hidden) — deshalb fixed. Die
   Komponente setzt --au-anchor-* aus dem Rechteck des Ankers (Feldbox) und schliesst den
   Aufklapper, sobald der Behaelter blaettert oder der Anker den Fokus verliert.
   Mindestens Ankerbreite; [aria-current] ist der Tastaturstand (Auf/Ab), [aria-selected]
   der gewaehlte Eintrag (Marke wie im Menue) — beide koennen auf verschiedenen Eintraegen
   stehen, :hover ist nur die Maus. */
.au-popover {
  position: fixed; top: var(--au-anchor-bottom); left: var(--au-anchor-left);
  min-width: var(--au-anchor-w); max-height: var(--au-popover-max-h, 40vh); overflow: auto;
  z-index: var(--au-z-popover); padding: var(--au-s-1) 0;
  background: var(--au-panel); border: 1px solid var(--au-line-strong);
  border-radius: var(--au-r-lg); box-shadow: var(--au-shadow-pop);
}
.au-popover__item {
  display: flex; align-items: center; gap: var(--au-s-3); white-space: nowrap; cursor: pointer; min-height: var(--au-control-h);
  width: 100%; text-align: left; background: none; border: 0;
  padding: var(--au-s-1) var(--au-s-3);
  font: 400 var(--au-fs-md)/var(--au-lh-tight) var(--au-font); color: var(--au-text);
}
.au-popover__item:hover { background: var(--au-panel-hover); }
.au-popover__item[aria-current="true"] { background: var(--au-accent-row); }
.au-popover__item[aria-selected="true"] { color: var(--au-accent-ink); font-weight: 600; }
.au-popover__item[aria-disabled="true"] { color: var(--au-faint); cursor: default; }
.au-popover__empty { padding: var(--au-s-2) var(--au-s-3); font: 400 var(--au-fs-sm)/var(--au-lh-text) var(--au-font); color: var(--au-muted); }
.au-icon { width: var(--au-icon); height: var(--au-icon); flex: none; display: block; }
.au-btn .au-icon { margin-right: 1px; }
.au-btn--burger .au-icon { margin-right: 0; }
.au-menu__item--ico { gap: var(--au-s-2); }
.au-navitem .au-icon { color: var(--au-adorn); }
.au-navitem__label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: var(--au-lh-text); }
.au-navfoot__toggle .au-icon, .au-mini-cal__nav .au-icon { width: var(--au-icon-sm); height: var(--au-icon-sm); }
.au-menu__key { margin-left: auto; font: 500 var(--au-fs-key)/var(--au-lh-tight) var(--au-mono); color: var(--au-label); }

.au-search {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: var(--au-s-2);
  height: var(--au-input-h); min-height: var(--au-input-h); padding: 0 var(--au-s-3);
  background: var(--au-search-bg); border: 1px solid var(--au-line); border-radius: var(--au-r-md);
  font: 400 var(--au-fs-md)/var(--au-lh-tight) var(--au-font); color: var(--au-muted);
}
/* Das Eingabefeld fuellt die Zeile und bringt keine eigene Box mit: Kasten und Kontur gehoeren
   dem Suchfeld, nicht dem Browser. */
.au-search input {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; padding: 0;
  font: 400 var(--au-fs-md)/var(--au-lh-tight) var(--au-font); color: var(--au-text);
}
.au-search input::placeholder { color: var(--au-input-ph); }
.au-search__key { margin-left: auto; font: 500 var(--au-fs-key)/var(--au-lh-tight) var(--au-mono); color: var(--au-label); }
.au-chiprow { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: var(--au-s-2); min-width: 0; }
/* Ein Chip ist hoechstens so breit wie seine Zeile und bricht dann in sich um (§6). */
.au-chiprow > .au-chip { flex: 0 1 auto; max-width: 100%; min-width: 0; }
.au-chiprow > .au-chip:not(:has(> select, > input)) { height: auto; min-height: var(--au-chip-face-h); white-space: normal; padding-block: var(--au-s-1); }
.au-chip {
  flex: none; white-space: nowrap; display: inline-flex; align-items: center; gap: var(--au-s-2);
  height: var(--au-chip-face-h); padding: 0 var(--au-s-2);
  background: var(--au-accent-soft); color: var(--au-accent-ink);
  border-radius: var(--au-r-chip); font: 500 var(--au-fs-sm)/var(--au-lh-tight) var(--au-font);
}
.au-chip__x { opacity: .5; cursor: pointer; }
/* Der entfernbare Chip ist als Ganzes die Flaeche seines Schliesszeichens (§6): das Wort
   trifft das Zeichen — dieselbe Behandlung, derselbe Name. Ausgenommen: Chip als Knopf, mit
   Bedienelement oder Werteliste. */
.au-chip:has(> .au-chip__x):not([role="button"], :has(> select, > input, > .au-chip__list)) { position: relative; cursor: pointer; }
.au-chip:has(> .au-chip__x):not([role="button"], :has(> select, > input, > .au-chip__list)) > .au-chip__x { position: static; }
.au-chip:has(> .au-chip__x):not([role="button"], :has(> select, > input, > .au-chip__list)) > .au-chip__x::after { left: 0; top: 0; width: 100%; height: 100%; }
.au-chip[role="button"] { cursor: pointer; }   /* der ganze Chip schaltet (Zeitraumfilter), nicht nur sein Kreuz */
/* Chip mit Bedienelement (Aufzaehlungsfilter der Filterzeile, §6): das <select> oder
   <input> erbt Schrift und Farbe des Chips, ohne Browserrahmen; ein select ist so breit
   wie der gewaehlte Eintrag (field-sizing), das Aufklappzeichen zeichnet der Chip — dasselbe
   Zeichen wie der Chevron am Auswahlfeld der Maske. Der Zeiger sagt, was die Flaeche tut: die
   Hand nur am select, das aufklappt; ein input nimmt Text und zeigt den Textcursor. */
.au-chip > select, .au-chip > input {
  appearance: none; border: 0; background: none; padding: 0; outline: none; min-width: 0;
  font: inherit; color: inherit; field-sizing: content;
  line-height: var(--au-lh-text);   /* der Chip setzt --au-lh-tight; im Bedienelement kappte das die Unterlaengen */
}
.au-chip > select { cursor: pointer; }
.au-chip > input { cursor: text; }
.au-chip:has(> select)::after { content: "\2304"; content: "\2304" / ""; font-size: var(--au-fs-key); color: var(--au-adorn); }
/* Chip mit Werteliste: ein Chip je Merkmal ("Merkmal: Wert A, Wert B +3"); beim
   Darueberfahren und im Fokus die Liste aller Werte, je Wert ein Schliesszeichen. Ohne Spalt
   unter dem Chip, sonst verliert der Zeiger auf dem Weg nach unten das Darueberfahren. Eine
   eigene Klasse, kein .au-menu: Locatoren auf Menues zaehlen sie nicht mit. */
.au-chip:has(> .au-chip__list) { position: relative; }
.au-chip__list {
  display: none; position: absolute; top: 100%; left: 0; z-index: var(--au-z-menu);
  min-width: var(--au-menu-w); padding: var(--au-s-1) 0;
  background: var(--au-panel); border: 1px solid var(--au-line-strong);
  border-radius: var(--au-r-lg); box-shadow: var(--au-shadow-pop);
}
.au-chip:hover > .au-chip__list, .au-chip:focus-within > .au-chip__list { display: block; }
.au-chip__list > * {
  display: flex; align-items: center; gap: var(--au-s-3); min-height: var(--au-control-h); padding: 0 var(--au-s-3);
  font: 400 var(--au-fs-md)/var(--au-lh-tight) var(--au-font); color: var(--au-text); white-space: nowrap;
}
.au-chip__list > * > .au-chip__x { margin-left: auto; }
/* Einleitung der Chipzeile ("Aktive Filter:", §6) */
/* Weg zum geloesten Merkmalsfilter: "Filter · N aktiv" vorn in der Filterzeile (§6a). */
.au-chiprow__toggle { flex: none; }
.au-chiprow__lead { flex: none; font: 500 var(--au-fs-sm)/var(--au-lh-tight) var(--au-font); color: var(--au-label); }

/* ==========================================================================
   Datenliste
   ========================================================================== */
.au-table { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.au-table__head, .au-table__row {
  display: grid; align-items: center; padding: 0 var(--au-pad);
  grid-template-columns: var(--au-cols);   /* je Modul gesetzt */
}
.au-table__head { height: var(--au-head-h); flex: none; border-bottom: 1px solid var(--au-line); }
.au-table__head > * {
  /* Zeilenhoehe wie im Fliesstext, nicht --au-lh-tight: Eine Zeilenbox von genau einer
     Schriftgroesse laesst Ober- und Unterlaengen ueberstehen, und zusammen mit
     overflow: hidden werden sie gekappt.
     nowrap/ellipsis wie in der Datenzeile: Ohne sie bricht eine lange Spaltenueberschrift
     um und laeuft aus der Kopfzeile heraus. */
  padding-right: var(--au-cell-pad); min-width: 0;
  font: 500 var(--au-fs-caps)/var(--au-lh-text) var(--au-mono);
  letter-spacing: .08em; text-transform: uppercase; color: var(--au-label);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* Sortierbarer Spaltenkopf (§6): Klickziel mit Zeiger, Ton beim Darueberfahren, Fokusring
   nach innen (der Kopf schneidet nach aussen ab); die sortierte Spalte in Textfarbe mit Pfeil. */
/* Breitengriff am rechten Kopfrand (§6): eigenes Klickziel, in Ruhe unsichtbar, bei Hover oder
   Fokus des Kopfs sichtbar, ueber dem Griff und beim Ziehen in Akzentfarbe. */
.au-table__head > * { position: relative; }
.au-table__resize {
  position: absolute; top: 0; bottom: 0; right: calc(var(--au-s-1) * -1); width: var(--au-s-3);
  padding: 0; border: 0; background: none; cursor: col-resize; z-index: 1;
}
.au-table__resize::after {
  content: ""; position: absolute; top: 25%; bottom: 25%; left: 50%; border-left: 2px solid transparent;
}
.au-table__head > :hover > .au-table__resize::after, .au-table__head > :focus-within > .au-table__resize::after { border-left-color: var(--au-line-strong); }
.au-table__resize:hover::after, .au-table__resize[aria-pressed="true"]::after { border-left-color: var(--au-accent); }
@media (prefers-reduced-motion: no-preference) {
  .au-table__resize::after { transition: border-color var(--au-dur-slide) ease-out; }
}
/* Umstellbare Listenzeile (Spalten anpassen, §6): Griff, Fokus, gezogen, Ablage. */
.au-reorder { display: flex; align-items: center; gap: var(--au-s-2); min-height: var(--au-control-h); padding: 0 var(--au-s-2); border-radius: var(--au-r-md); }
.au-reorder__grip { flex: none; width: var(--au-icon); cursor: grab; color: var(--au-adorn); visibility: hidden; }
.au-reorder:hover > .au-reorder__grip, .au-reorder:focus-within > .au-reorder__grip { visibility: visible; }
.au-reorder:focus-visible { box-shadow: inset 0 0 0 2px var(--au-accent); }
.au-reorder--dragging { opacity: .6; }
.au-reorder--drop { box-shadow: inset 0 2px 0 0 var(--au-accent); }
/* Der sortierbare Kopf ist in voller Kopfhoehe das Klickziel, nicht nur seine Textzeile. */
.au-table__head > [aria-sort] { cursor: pointer; align-self: stretch; display: flex; align-items: center; }
.au-table__head > [aria-sort]:hover { color: var(--au-text-2); }
.au-table__head > [aria-sort]:focus-visible { border-radius: 0; box-shadow: inset 0 0 0 2px var(--au-accent); }
.au-table__head > [aria-sort="ascending"], .au-table__head > [aria-sort="descending"] { color: var(--au-text); }
.au-table__head > [aria-sort="ascending"]::after  { content: " \2191"; content: " \2191" / ""; }
.au-table__head > [aria-sort="descending"]::after { content: " \2193"; content: " \2193" / ""; }
.au-table__body { flex: 1; overflow: auto; }
.au-table__row { height: var(--au-row-h); border-bottom: 1px solid var(--au-line-soft); cursor: pointer; }
.au-table__row > * {
  padding-right: var(--au-cell-pad); min-width: 0;
  font: 400 var(--au-fs-cell)/var(--au-lh-text) var(--au-font);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.au-table__row:hover { background: var(--au-panel-hover); }
/* Kopfzeile einer Gruppe in einer gruppierten Liste ("Gruppieren nach …"): volle Zeile, nicht
   fokussierbar, kein Satz, bleibt beim Blaettern nicht stehen. */
.au-table__grouprow {
  display: flex; align-items: center; min-height: var(--au-row-h); padding: 0 var(--au-s-4);
  background: var(--au-panel-sunken); border-bottom: 1px solid var(--au-line);
  font: 500 var(--au-fs-md)/var(--au-lh-tight) var(--au-font); color: var(--au-text-2);
}
.au-table__row--sel { background: var(--au-accent-row); }
/* Steht die Tastatur in der Liste, traegt die Zeile der Tastatur den Fokusrahmen (§5.2, §9):
   die Shell setzt --kbd bei Cursortasten und nimmt es beim Mausklick fort. */
.au-table:focus-within .au-table__row--kbd { box-shadow: inset 0 0 0 2px var(--au-accent); }
.au-table__row--sel .au-cell-num { color: var(--au-accent-ink); }
.au-table__row--sel .au-cell-name { font-weight: 500; }
.au-table__row--sel .au-avatar { background: var(--au-accent-mark); color: var(--au-accent-ink); }
.au-table__row--muted > * { color: var(--au-label); }
/* Unterzeile der Datenliste (§6): nur solange die Suche ueber ein Feld ohne eigene Spalte
   trifft; sie nennt Feld und Wert des Treffers. Dann gilt die Hoehe fuer alle Zeilen, damit
   die Virtualisierung haelt. */
.au-table--sub .au-table__row { height: var(--au-row-h-sub); }
.au-table__sub {
  display: block; font: 400 var(--au-fs-sm)/var(--au-lh-text) var(--au-font); color: var(--au-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* Vorschaubild in der Zelle (§6): quadratisch, in der festen Zeilenhoehe; ohne Bild eine leere
   Flaeche gleicher Groesse, damit die Spalte fluchtet. In .au-cell-name steht es vor dem Namen. */
.au-cell-img {
  flex: none; display: block; width: var(--au-cell-img); height: var(--au-cell-img);
  object-fit: cover; border: 1px solid var(--au-line-soft); border-radius: var(--au-r-sm);
  background: var(--au-panel-sunken);
}
.au-table__row > .au-cell-img, .au-cell-name > .au-cell-img { padding: 0; overflow: hidden; }
/* Zeilenmenue "…" (§6): Zeichen-Taste ohne Rahmen am rechten Zeilenrand. In Ruhe unsichtbar,
   aber im Baum und fokussierbar (opacity, nie visibility/display); sichtbar beim Ueberfahren,
   auf der gewaehlten Zeile, bei Fokus in der Zeile und solange das Menue offen ist. Die Flaeche
   folgt dem Zeilenton und deckt den Text darunter. Kein transform (Trefferflaeche, §9). */
.au-table__row:has(> .au-rowmenu) { position: relative; }
.au-rowmenu {
  position: absolute; top: 0; bottom: 0; right: var(--au-s-2); margin: auto 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: var(--au-control-h); height: var(--au-control-h); padding: 0;
  border: 0; border-radius: var(--au-r-md); background: var(--au-panel); color: var(--au-text-2);
  cursor: pointer; opacity: 0;
}
.au-table__row:hover > .au-rowmenu { background: var(--au-panel-hover); }
.au-table__row--sel > .au-rowmenu { background: var(--au-accent-row); }
.au-table__row:is(:hover, :focus-within, .au-table__row--sel) > .au-rowmenu,
.au-rowmenu[aria-expanded="true"] { opacity: 1; }
.au-rowmenu:hover, .au-rowmenu[aria-expanded="true"] { background: var(--au-panel-hover); }
.au-rowmenu:focus-visible { opacity: 1; box-shadow: var(--au-focus-ring); }
.au-cell-num   { font: 400 var(--au-fs-md)/var(--au-lh-text) var(--au-mono); font-variant-numeric: tabular-nums; color: var(--au-label); }
.au-cell-money { font: 400 var(--au-fs-md)/var(--au-lh-text) var(--au-mono); font-variant-numeric: tabular-nums; text-align: right; }

/* Eine Kopfzelle bleibt eine Kopfzelle, auch wenn sie eine Zahlenspalte betitelt.
   .au-cell-num und .au-cell-money setzen die ganze font-Kurzschrift, stehen spaeter und
   haben dieselbe Spezifitaet wie .au-table__head > * — ohne diese Regel gewinnen sie und
   setzen Spaltenueberschriften in 12,5 px Monospace neben 10 px Grotesk. */
.au-table__head > .au-cell-num,
.au-table__head > .au-cell-money {
  font: 500 var(--au-fs-key)/var(--au-lh-text) var(--au-font);
  letter-spacing: .1em; color: var(--au-label);
}
/* Die Bezeichnungszelle ist ein Flex-Behaelter; ein Flex-Kind schrumpft ohne min-width: 0 nie
   unter seinen Inhalt, und die Ellipsis der Zelle griffe nicht — lange Bezeichnungen liefen in
   die Nachbarspalte und verdraengten das Typkuerzel. Darum kuerzt jedes Kind selbst; Marke und
   Typkuerzel bleiben ganz. Der Text steht in einem eigenen Element (span). */
.au-cell-name  { display: flex; align-items: center; gap: var(--au-s-2); }
.au-cell-name > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.au-cell-name > .au-avatar, .au-cell-name > .au-cell-name__tag { overflow: visible; }
.au-cell-name__tag { flex: none; font: 500 var(--au-fs-key)/var(--au-lh-tight) var(--au-font); letter-spacing: .06em; color: var(--au-label); }
.au-cell-name__label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.au-avatar {
  width: var(--au-avatar); height: var(--au-avatar); flex: none; text-align: center;
  background: var(--au-line-soft); color: var(--au-label);
  border-radius: var(--au-r-sm); font: 600 var(--au-fs-key)/var(--au-avatar) var(--au-font);
}

.au-status { display: inline-flex; align-items: center; gap: var(--au-s-2); font: 400 var(--au-fs-sm)/var(--au-lh-tight) var(--au-font); color: var(--au-muted); }
.au-status::before { content: ""; width: var(--au-dot); height: var(--au-dot); border-radius: 50%; background: var(--au-neutral); flex: none; }
.au-status--ok::before    { background: var(--au-ok); }
.au-status--warn::before  { background: var(--au-warn); }
.au-status--error::before { background: var(--au-error); }
.au-status--info::before  { background: var(--au-info); }

/* ==========================================================================
   Datensatzmaske
   ========================================================================== */
.au-record__head  { flex: none; padding: calc(var(--au-s-2) * 2) var(--au-s-5) 0; }
/* Name und Nummer haben verschiedene Schriftgrade: Grundlinie, nicht Oberkante. Die
   Kuerzelmarke ist eine Flaeche und bleibt oben; die Zeile des Namens ist so hoch wie sie,
   der Name steht damit mittig zur Marke. Die Marke traegt hoechstens drei Zeichen (§7). */
.au-record__ident { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--au-s-3); }
.au-record__mark {
  width: var(--au-mark); height: var(--au-mark); flex: none; text-align: center; align-self: flex-start;
  background: var(--au-accent-soft); color: var(--au-accent-ink);
  border-radius: var(--au-r-lg); font: 600 var(--au-fs-lg)/var(--au-mark) var(--au-font);
  overflow: hidden; white-space: nowrap;
}
.au-record__name { font: 600 var(--au-fs-2xl)/var(--au-mark) var(--au-font); white-space: nowrap; }
.au-record__id   { font: 400 var(--au-fs-lg)/var(--au-lh-tight) var(--au-mono); color: var(--au-label); white-space: nowrap; }
.au-record__meta { display: flex; align-items: center; gap: var(--au-s-4); flex-wrap: wrap; font: 400 var(--au-fs-meta)/var(--au-lh-tight) var(--au-font); color: var(--au-muted); }
.au-record__meta b { color: var(--au-text-2); font-weight: 500; }
/* Kopf als umbrechende Zeile (§7): Identitaet ab --au-record-ident-min-w links, Aktionszeile
   oben rechts daneben; reicht die Breite nicht, weicht die Aktionszeile rechtsbuendig in die
   naechste Zeile, statt den Satznamen zu kappen. Tabs immer in eigener Zeile. */
.au-record__head { display: flex; flex-wrap: wrap; align-items: flex-start; column-gap: var(--au-s-4); }
.au-record__head > .au-record__ident { flex: 1 1 var(--au-record-ident-min-w); min-width: 0; }
.au-record__head > .au-record__tabs { flex: 1 1 100%; }
.au-record__actions { display: flex; justify-content: flex-end; flex: none; margin-left: auto; }
.au-record__tabs { display: flex; flex-wrap: wrap; min-width: 0; align-items: stretch; gap: calc(var(--au-s-5) + var(--au-s-1)); margin-top: var(--au-s-4); border-bottom: 1px solid var(--au-line); }
.au-record__tabs > * {
  min-height: var(--au-row-h); display: flex; align-items: center;
  padding: 0; position: relative; top: 1px; white-space: nowrap; cursor: pointer;
  border-bottom: 2px solid transparent;
  font: 400 var(--au-fs-nav)/var(--au-lh-tight) var(--au-font); color: var(--au-muted);
}
/* Ein Reiter ist meist ein <button> (role="tab"): Kasten und Flaeche gehoeren der Klasse. */
.au-record__tabs > button { appearance: none; margin: 0; background: none; border-top: 0; border-inline: 0; border-radius: 0; }
.au-record__tabs > .au-tab--active { font-weight: 500; color: var(--au-text); border-bottom-color: var(--au-accent); }
/* Anzahl der Einträge eines Tabs (§7). Dieselben Werte wie der Zähler des
   Arbeitsvorrats (.au-navitem__count) — unterschieden wird über den Ort, nicht
   über Ton oder Maß. `margin-block` ist kein Kosmetikwert: Das Textfeld des Tabs
   ist 13,5 px hoch (--au-fs-lg bei --au-lh-tight), die Marke --au-badge = 17 px;
   ohne die negativen Blockränder wächst die Tab-Zeile und die Grundlinie
   darunter rutscht. Der aktive Tab hebt seine Marke nicht hervor. */
.au-record__count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: var(--au-badge); height: var(--au-badge); padding: 0 var(--au-s-1);
  vertical-align: middle; margin-block: -3px; margin-left: var(--au-s-1);
  font: 500 var(--au-fs-key)/1 var(--au-mono); font-variant-numeric: tabular-nums;
  color: var(--au-accent-ink); background: var(--au-accent-soft);
  border-radius: var(--au-r-chip);
}
.au-record__body { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: var(--au-s-4); padding: var(--au-s-4) var(--au-s-5); --au-sticky-top: calc(var(--au-s-4) * -1); }

.au-kpigrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--au-s-3); }
.au-kpi { display: flex; flex-direction: column; gap: var(--au-s-1); padding: var(--au-s-2) var(--au-s-3); background: var(--au-panel-sunken); border: 1px solid var(--au-line); border-radius: var(--au-r-lg); }
.au-kpi__label { font: 400 var(--au-fs-key)/var(--au-lh-tight) var(--au-font); letter-spacing: .04em; text-transform: uppercase; color: var(--au-label); }
.au-kpi__value { font: 500 var(--au-fs-xl)/var(--au-lh-tight) var(--au-mono); font-variant-numeric: tabular-nums; }
.au-kpi__value--warn { color: var(--au-accent-ink); }

.au-group { display: flex; flex-direction: column; gap: var(--au-s-2); }
/* Gruppentitel in Panelgroesse statt 10-px-Versalien (schlecht lesbar); der Akzent sitzt
   als Balken davor — ein Zeichen, kein farbiger Kartenrand (§2.3). */
.au-group__title {
  display: flex; align-items: center; gap: var(--au-s-2);
  padding-bottom: var(--au-s-2); border-bottom: 1px solid var(--au-line-soft);
  font: 600 var(--au-fs-xl)/var(--au-lh-tight) var(--au-font); color: var(--au-text);
}
.au-group__title::before {
  content: ""; flex: none; width: var(--au-s-1); height: var(--au-fs-xl);
  border-radius: var(--au-r-sm); background: var(--au-accent);
}
/* Klappbare Feldgruppe (§7): der Titel ist Knopf (aria-expanded, tabindex="-1"), oder ein
   Knopf .au-group__toggle traegt Titelwort und Zeichen, wenn der Titel eigene Bedienelemente hat.
   Eingeklappt bleibt der Titel stehen; .au-group__sum fasst rechts zusammen, .au-group__req
   nennt leere Pflichtfelder in der Fehlerfarbe. */
button.au-group__title, .au-group__toggle {
  width: 100%; border-top: 0; border-left: 0; border-right: 0; background: none; text-align: left; cursor: pointer; color: inherit;
}
button.au-group__title { padding-left: 0; padding-right: 0; padding-top: 0; }
.au-group__toggle { display: flex; align-items: center; gap: var(--au-s-2); flex: 1; min-width: 0; padding: 0; border: 0; font: inherit; }
:is(button.au-group__title, .au-group__toggle)[aria-expanded]::after {
  content: "\2304"; content: "\2304" / ""; flex: none; width: var(--au-icon-help); text-align: center; color: var(--au-adorn);
}
:is(button.au-group__title, .au-group__toggle)[aria-expanded="false"]::after { transform: rotate(-90deg); }
:is(button.au-group__title, .au-group__toggle)[aria-expanded="true"]::after { margin-left: auto; }
.au-group__sum { margin-left: auto; flex: none; font: 400 var(--au-fs-md)/var(--au-lh-text) var(--au-font); color: var(--au-muted); }
.au-group__req { color: var(--au-error); }
.au-group__sum, .au-group__req { display: none; }
.au-group:has(> .au-group__title [aria-expanded="false"], > .au-group__title[aria-expanded="false"]) :is(.au-group__sum, .au-group__req) { display: inline; }
.au-group:has(> .au-group__title [aria-expanded="false"], > .au-group__title[aria-expanded="false"]) > :not(.au-group__title) { display: none; }
.au-group:has(> .au-group__title [aria-expanded="false"], > .au-group__title[aria-expanded="false"]) > .au-group__title { padding-bottom: 0; border-bottom: 0; }
.au-fields { display: grid; grid-template-columns: repeat(var(--au-field-cols), 1fr); gap: var(--au-s-3) var(--au-s-4); }
/* Feldgruppe als Karte; ab doppelter Mindestbreite zweispaltig (§7). Die Spalten
   entstehen per column-width, die Markupfolge bleibt die Lesefolge. */
.au-group--card {
  padding: var(--au-s-3) var(--au-s-4) var(--au-s-4);
  background: var(--au-panel); border: 1px solid var(--au-line); border-radius: var(--au-r-lg);
  break-inside: avoid;
}
.au-record__cols { flex: none; column-width: var(--au-col-min-w); column-gap: var(--au-s-4); }
.au-record__cols > .au-group--card { margin-bottom: var(--au-s-4); }
/* Verteilt (§7, §10): Die Shell misst jede Karte, setzt data-verteilt am Behaelter und
   --au-card-rows (Hoehe samt Abstand in --au-s-1-Zeilen) an jede Karte. Jede Karte steht in
   der Spalte, die am fruehesten endet; Lesefolge von oben nach unten. Ohne Skript bleibt der
   Mehrspaltensatz. */
.au-record__cols[data-verteilt] {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--au-col-min-w)), 1fr));
  grid-auto-rows: var(--au-s-1); gap: 0 var(--au-s-4); align-items: start;
}
.au-record__cols[data-verteilt] > * { grid-row-end: span var(--au-card-rows, 1); margin-bottom: 0; }
/* Zwei Spalten ohne Spaltenfluss: fuer Inhalt, der keine Karte ist (Listen, Bloecke). In
   .au-record__cols fliesst jeder andere Inhalt ueber die Spaltengrenze. */
.au-cols2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(var(--au-col-min-w), 1fr)); gap: var(--au-s-4); align-items: start; }
/* Label links, ein Feld je Zeile; Spannweiten entfallen (§7). */
.au-fields--inline { grid-template-columns: 1fr; gap: var(--au-s-2) 0; }
.au-fields--inline > .au-field {
  grid-column: 1 / -1; display: grid; align-items: center;
  grid-template-columns: var(--au-label-w) minmax(0, 1fr); gap: 0 var(--au-s-3);
}
.au-fields--inline > .au-field > .au-field__msg { grid-column: 2; }
.au-field { grid-column: span 4; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
/* Vollständige Skala 2–12: eine ungenannte Stufe fiele still auf die
   Standardbreite (4 Spalten) zurück, ohne dass etwas auffällt. */
.au-field--2  { grid-column: span 2; }
.au-field--3  { grid-column: span 3; }
.au-field--4  { grid-column: span 4; }
.au-field--5  { grid-column: span 5; }
.au-field--6  { grid-column: span 6; }
.au-field--7  { grid-column: span 7; }
.au-field--8  { grid-column: span 8; }
.au-field--9  { grid-column: span 9; }
.au-field--10 { grid-column: span 10; }
.au-field--11 { grid-column: span 11; }
.au-field--12 { grid-column: span 12; }
.au-field__label { font: 500 var(--au-fs-sm)/var(--au-lh-text) var(--au-font); color: var(--au-label); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Die Pflichtmarke sagt, was verlangt ist — der Fehlerzustand spaeter, was fehlt (§7). */
.au-field__req { margin-left: 2px; color: var(--au-accent-ink); font-weight: 600; }
/* Die Box ist das Erkennungsmerkmal: sichtbare Kontur, auch ohne Wert. */
.au-field__box {
  height: var(--au-field-h); display: flex; align-items: center; gap: var(--au-s-2); min-width: 0;
  padding: 0 var(--au-s-2); background: var(--au-input-bg);
  border: var(--au-stroke) solid var(--au-line-input); border-radius: var(--au-r-chip);
}
.au-field__box:hover { border-color: var(--au-line-input-hover); }
.au-field__box:focus-within { border-color: var(--au-line-focus); box-shadow: var(--au-focus-ring-soft); }
.au-field__value, .au-field input, .au-field select, .au-field textarea {
  flex: 1; min-width: 0; border: 0; background: none; padding: 0; outline: none;
  font: 400 var(--au-fs-lg)/var(--au-lh-text) var(--au-font); color: var(--au-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.au-field input::placeholder, .au-field textarea::placeholder, .au-field__value--empty { color: var(--au-input-ph); }
/* Im aktiven Feld entfaellt der Platzhalter — blasser waere ein Verstoss gegen §9. */
.au-field__box:focus-within input::placeholder,
.au-field__box:focus-within textarea::placeholder { color: transparent; }
.au-field select { appearance: none; }   /* der Chevron kommt aus .au-field__adorn, nicht vom Browser */
.au-field__adorn { margin-left: auto; flex: none; font: 400 var(--au-field-mark)/var(--au-lh-tight) var(--au-font); color: var(--au-adorn); }
/* Auswahlpfeil und Schloss als Form, nicht als Glyphe: Groesse und Lage haengen nicht an der
   Schrift. Lokale Maske (Daten-URI) in currentColor. Das Schloss markiert gesperrt/berechnet
   und nennt den Grund im title; eine lesende Maske zeigt es nicht (§7). */
.au-field__chevron, .au-field__lock {
  display: inline-block; flex: none; vertical-align: middle;
  width: var(--au-field-mark); height: var(--au-field-mark); background: currentColor;
  -webkit-mask: var(--au-field-mask) center / contain no-repeat; mask: var(--au-field-mask) center / contain no-repeat;
}
.au-field__chevron { --au-field-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 6l4.5 4.5L12.5 6' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.au-field__lock { color: var(--au-label); --au-field-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5.2 7V5.2a2.8 2.8 0 0 1 5.6 0V7' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3Crect x='3.5' y='7' width='9' height='7' rx='1.6'/%3E%3C/svg%3E"); }
.au-record--readonly .au-field__lock, .au-doc--locked .au-field__lock { display: none; }
/* Auswahlfeld: das <select> fuellt die Box und ist selbst das Klickziel (Hoehe 100 %,
   Innenabstand am select — Chromium nimmt ihn auch fuer die geoeffnete Liste); der
   Chevron liegt absolut darueber und faengt keinen Klick. */
.au-field__box:has(> select) { padding: 0; position: relative; }
.au-field__box > select {
  height: 100%; padding-left: var(--au-s-2);
  padding-right: calc(var(--au-s-2) * 2 + var(--au-field-mark));
}
.au-field__box:has(> select) .au-field__adorn { position: absolute; right: var(--au-s-2); pointer-events: none; }
/* Ausloeser am Feld (Wertehilfe, Kalender): Flaeche in Boxhoehe bis an den Rand, Zeigehand.
   .au-field__adorn bleibt die reine Anzeige-Marke (Schluessel, gesperrt). */
.au-field__pick {
  align-self: stretch; display: flex; align-items: center; justify-content: flex-end;
  min-width: var(--au-field-h); padding-left: var(--au-s-2);
  margin-right: calc(var(--au-s-2) * -1); padding-right: var(--au-s-2);
  cursor: pointer; color: var(--au-adorn); background: none; border: 0;
  font: 400 var(--au-field-mark)/var(--au-lh-tight) var(--au-font);
}
.au-field__pick:hover { color: var(--au-text-2); }
.au-field--num .au-field__value, .au-field--num input { font-family: var(--au-mono); font-variant-numeric: tabular-nums; }
.au-field--multiline .au-field__box { height: auto; min-height: calc(var(--au-field-h) * 2); align-items: flex-start; padding: var(--au-s-1) var(--au-s-2); }
.au-field--multiline textarea { white-space: pre-wrap; resize: vertical; }
/* Kaestchenliste im Feld (_uiux-muster.md §7p): eine Zeile je Wert mit Klickflaeche
   --au-control-h; die Box waechst bis acht Zeilen, darueber blaettert die Liste. Die Zeile mit
   dem Fokus markiert sich innen — die Liste schnitte einen Ring aussen ab —, die Box zeigt den
   Fokus wie jedes Feld (:focus-within). */
.au-field--choices .au-field__box { height: auto; min-height: var(--au-field-h); align-items: stretch; padding: var(--au-s-1); }
.au-field__opts { flex: 1; min-width: 0; display: flex; flex-direction: column; max-height: calc(var(--au-control-h) * 8); overflow: auto; }
.au-field__opt {
  display: flex; align-items: center; gap: var(--au-s-2); min-height: var(--au-control-h);
  padding: 0 var(--au-s-1); border-radius: var(--au-r-sm); cursor: pointer; overflow-wrap: anywhere;
  font: 400 var(--au-fs-lg)/var(--au-lh-text) var(--au-font); color: var(--au-text);
}
.au-field__opt:hover { background: var(--au-panel-hover); }
.au-field__box .au-field__opt:focus-visible { background: var(--au-accent-row); box-shadow: inset 0 0 0 1px var(--au-line-focus); }
.au-field__opt[aria-checked="true"] { font-weight: 500; }
.au-field--readonly .au-field__box   { background: var(--au-input-bg-ro); border-color: var(--au-line); }
.au-field--readonly .au-field__value { color: var(--au-muted); }
.au-field--readonly .au-field__adorn { color: var(--au-label); }   /* Zustandsmarke, §9 */
.au-field--dirty .au-field__box      { border-color: var(--au-warn); background: var(--au-input-bg-dirty); }
.au-field--invalid .au-field__box    { border-color: var(--au-error); background: var(--au-input-bg-invalid); }
.au-field--invalid .au-field__label  { color: var(--au-error); }
.au-field__msg { font: 400 var(--au-fs-xs)/var(--au-lh-text) var(--au-font); color: var(--au-error); }
/* Ja/Nein als Optionsschaltflaeche (§7): "○ Ja ○ Nein" frei in der Feldzeile, die Box tritt zurueck
   (Geometrie bleibt, Kontur und Flaeche entfallen, erster Kreis buendig mit der Kontur). Native
   Optionen einer Gruppe: Pfeiltasten wechseln, Leertaste waehlt; Fokus nur am Kreis. Gewaehlt ein
   Innenpunkt in --au-radio-on (Primaeraktion, mit Kennfarbe die Kennfarbe); ohne Wert keiner. */
.au-field__box:has(> .au-radios),
.au-field__box:has(> .au-radios):is(:hover, :focus-within),
.au-field--invalid .au-field__box:has(> .au-radios),
.au-field--dirty .au-field__box:has(> .au-radios) { padding-left: 0; border-color: transparent; background: transparent; box-shadow: none; }
.au-radios { display: flex; align-items: center; gap: var(--au-radio-space); height: 100%; }
.au-radio { display: inline-flex; align-items: center; gap: var(--au-radio-gap); cursor: pointer; font: 400 var(--au-fs-lg)/var(--au-lh-text) var(--au-font); color: var(--au-text); }
.au-field .au-radio > input {
  appearance: none; flex: none; display: grid; place-content: center; margin: 0; padding: 0;
  width: var(--au-radio-size); height: var(--au-radio-size); border-radius: 50%;
  border: var(--au-radio-border) solid var(--au-line-input); background: var(--au-input-bg); cursor: pointer;
}
.au-field .au-radio > input::before { content: ""; width: var(--au-radio-dot); height: var(--au-radio-dot); border-radius: 50%; background: var(--au-radio-on); visibility: hidden; }
.au-field .au-radio > input:checked::before { visibility: visible; }
.au-radio:hover > input:not(:disabled) { border-color: var(--au-line-input-hover); }
.au-field .au-radio > input:focus-visible { border-radius: 50%; box-shadow: var(--au-focus-ring); }
.au-radio:has(> input:disabled) { color: var(--au-muted); cursor: not-allowed; }
.au-field .au-radio > input:disabled { border-color: var(--au-line); cursor: not-allowed; }
.au-field .au-radio > input:disabled::before { background: var(--au-muted); }
.au-app[data-kenn] { --au-radio-on: var(--au-kenn); }

.au-statusbar {
  height: var(--au-statusbar-h); flex: none; display: flex; align-items: center; gap: var(--au-s-4);
  padding: 0 var(--au-s-5); border-top: 1px solid var(--au-line); background: var(--au-panel-sunken);
  font: 400 var(--au-fs-sm)/var(--au-lh-tight) var(--au-font); color: var(--au-muted);
}

/* Satznavigator der Vollbreite-Ansicht */
/* Karte wie ein Panel; Eintraege als runde Flaechen mit Luft: oben Nummer (mit Status),
   darunter die Bezeichnung (§3). */
.au-navigator { width: var(--au-navigator-w); flex: none; background: var(--au-panel); border: 1px solid var(--au-line); border-radius: var(--au-r-lg); display: flex; flex-direction: column; gap: 2px; padding: var(--au-s-2); overflow-x: hidden; overflow-y: auto; }
.au-navigator--narrow { width: var(--au-navigator-w-narrow); }
.au-navigator__item { display: flex; flex-direction: column; gap: 2px; padding: var(--au-s-2) var(--au-s-3); border-radius: var(--au-r-md); cursor: pointer; font: 400 var(--au-fs-nav)/var(--au-lh-text) var(--au-font); color: var(--au-text-2); }
.au-navigator__item:hover { background: var(--au-panel-hover); }
.au-navigator__nr { font: 400 var(--au-fs-sm)/var(--au-lh-text) var(--au-mono); font-variant-numeric: tabular-nums; color: var(--au-label); }
.au-navigator__item--sel { background: var(--au-accent-row); }
/* Eintrag unter seiner Gruppe (Eltern und Kinder in einer Liste) */
.au-navigator__item--child { position: relative; padding-left: calc(var(--au-s-3) + var(--au-s-4)); }
.au-navigator__item--child::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--au-s-3) + var(--au-s-1)); border-left: 1px solid var(--au-line-soft); }
.au-navigator__meta { font: 400 var(--au-fs-key)/var(--au-lh-tight) var(--au-font); color: var(--au-label); }

/* Rückfrage-Dialog (max. 3 Felder, nennt Nummer und Bezeichnung des Satzes)
   align-self ist nicht Kosmetik: .au-scrim ist ein Flexcontainer, und ohne die Angabe
   streckt sich der Dialog über die volle Bildschirmhöhe — eine Rückfrage mit zwei Zeilen
   Text sieht dann aus wie eine Seite. Die Panels über dem Scrim (.au-lookup, .au-about)
   füllen die Höhe mit Absicht; der Dialog tut es nicht. */
.au-dialog { align-self: center; width: var(--au-dialog-w); background: var(--au-panel); border: 1px solid var(--au-line-strong); border-radius: var(--au-r-xl); box-shadow: var(--au-shadow-pop); padding: var(--au-s-5); display: flex; flex-direction: column; gap: var(--au-s-3);
  max-height: calc(100dvh - var(--au-gap) * 2); overflow-y: auto; }
.au-dialog__title { font: 600 var(--au-fs-xl)/var(--au-lh-text) var(--au-font); }
.au-dialog__text  { font: 400 var(--au-fs-md)/var(--au-lh-text) var(--au-font); color: var(--au-text-3); }
.au-dialog__actions { display: flex; align-items: center; gap: var(--au-s-2); justify-content: flex-end; flex-wrap: wrap; }
/* Breite Stufe: eine Rückfrage, die ausschreibt, worum es geht (Summenblock, Kennzahlen),
   oder drei Aktionen mit Kürzel trägt (Speichern · Verwerfen · Abbrechen) — in 272 px
   bräche die Aktionszeile um. Drei Tasten wählen die Stufe von selbst; der Summenblock
   füllt im Dialog die Breite, statt die Spaltenbreite der Belegmaske zu behalten. */
/* Feldraster, Positionsraster oder Liste im Dialog waehlen die breite Stufe ebenfalls selbst. */
.au-dialog--wide, .au-dialog:has(> .au-dialog__actions > :nth-child(3)), .au-dialog:has(.au-fields, .au-grid, .au-table) { width: var(--au-dialog-w-wide); }
.au-dialog .au-sums { width: auto; flex: initial; }
/* Liste gleichartiger Kaestchen in einer Rueckfrage (_uiux-muster.md §7q): ein Entscheid,
   blaettert ab acht Zeilen in sich, die Aktionen bleiben sichtbar. */
.au-dialog__list { max-height: calc(var(--au-row-h) * 8); overflow: auto; display: flex; flex-direction: column; gap: var(--au-s-1); }

/* Dunkelmodus: identische Tokennamen, nur Werte tauschen.
   [data-theme="dark"] { --au-canvas: …; … }  — in der Theme-Datei des Projekts. */

/* ==========================================================================
   Belegmaske: Statusfluss · editierbares Positionsraster · Summenblock
   ========================================================================== */
.au-statusflow { display: flex; align-items: center; }
/* Satz neben der Kette: was den naechsten Schritt blockiert (_uiux-muster.md §7a); bei Enge
   unter der Kette. */
.au-statusflow:has(> .au-statusflow__note) { flex-wrap: wrap; row-gap: var(--au-s-2); }
.au-statusflow__note { flex: 1 1 var(--au-sums-w); min-width: 0; margin-left: var(--au-s-4); font: 400 var(--au-fs-sm)/var(--au-lh-text) var(--au-font); color: var(--au-muted); }
.au-statusflow__step {
  display: flex; align-items: center; gap: var(--au-s-2);
  height: var(--au-chip-h); padding: 0 var(--au-s-3);
  border: 1px solid var(--au-line); border-radius: calc(var(--au-chip-h) / 2);
  background: var(--au-panel); font: 400 var(--au-fs-sm)/var(--au-lh-tight) var(--au-font); color: var(--au-muted);
}
.au-statusflow__step::before { content: ""; width: var(--au-dot); height: var(--au-dot); border-radius: 50%; background: var(--au-neutral); flex: none; }
.au-statusflow__step--done    { background: var(--au-input-bg-ro); }
.au-statusflow__step--current { font-weight: 600; color: var(--au-text); border-color: var(--au-warn); background: var(--au-input-bg-dirty); }
.au-statusflow__step--current::before { background: var(--au-warn); }
.au-statusflow__step--final   { font-weight: 600; color: var(--au-text); border-color: var(--au-ok); background: var(--au-ok-soft); }
.au-statusflow__step--final::before { background: var(--au-ok); }
.au-statusflow__arrow { width: var(--au-arrow-w); text-align: center; font: 400 var(--au-fs-sm)/var(--au-lh-tight) var(--au-font); color: var(--au-faint); }

.au-grid { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.au-grid__toolbar { flex: none; display: flex; align-items: center; gap: var(--au-s-3); padding: 0 var(--au-s-5) var(--au-s-2); }
.au-grid__toolbar--inset { padding-left: 0; padding-right: 0; }   /* im Satzrumpf, wie .au-dochead--inset */
.au-grid__head, .au-grid__row, .au-grid__new {
  display: grid; align-items: center; padding: 0 var(--au-s-5);
  grid-template-columns: var(--au-cols);
}
.au-grid__head {
  height: var(--au-input-h); flex: none; background: var(--au-panel-sunken);
  border-top: 1px solid var(--au-line); border-bottom: 1px solid var(--au-line);
}
.au-grid__head > * {
  /* nowrap/ellipsis wie im Kopf der Datenliste: Der Kopf hat eine feste Hoehe, eine
     umbrechende Ueberschrift liefe aus ihm heraus. */
  padding-right: var(--au-s-3); min-width: 0;
  font: 500 var(--au-fs-key)/var(--au-lh-text) var(--au-font);
  letter-spacing: .1em; text-transform: uppercase; color: var(--au-label);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.au-grid__body { flex: 1; min-height: 0; overflow: auto; }
/* Raster ohne eigenen Bildlauf (§6): stehen mehrere Raster untereinander im Satzrumpf,
   waechst jedes mit seinem Inhalt, und der Satzrumpf blaettert. */
.au-grid--flow { flex: none; }
.au-grid--flow .au-grid__body { overflow: visible; }
/* Ein Klick waehlt die Zeile (--active): Zeigehand. Ein Raster nur zur Anzeige traegt
   .au-grid--static, Vermerkzeilen (--empty) sind nie wählbar (§9). */
.au-grid__row { height: var(--au-row-h); border-bottom: 1px solid var(--au-line-soft); cursor: pointer; }
.au-grid--static .au-grid__row, .au-grid__row--empty { cursor: default; }
/* Positionsraster mit Unterzeile: Wert oben, seine Grundlage klein darunter (Nummer, Gewicht,
   Herkunft). Die Hoehe bleibt fest — ein Wert, kein Ergebnis des Inhalts —, damit die
   Virtualisierung haelt. Nur fuer Positionsraster, nie fuer die Datenliste (§6). */
.au-grid--sub .au-grid__row { height: var(--au-row-h-sub); }
.au-grid__sub {
  display: block; font: 400 var(--au-fs-xs)/var(--au-lh-text) var(--au-font); color: var(--au-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.au-grid__row--odd { background: var(--au-panel-sunken); }
.au-grid__row--active { background: var(--au-accent-row); }
.au-grid__pos { font: 400 var(--au-fs-md)/var(--au-lh-tight) var(--au-mono); color: var(--au-faint); padding-right: var(--au-s-3); }
.au-grid__row--active .au-grid__pos { color: var(--au-accent-ink); }
.au-grid__row > :is(.au-cell-money, .au-cell-num) { padding-right: var(--au-s-3); }
.au-grid__label { min-width: 0; padding-right: var(--au-s-3); font: 400 var(--au-fs-md)/var(--au-lh-text) var(--au-font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.au-grid__new { height: var(--au-row-h); border-bottom: 1px solid var(--au-line-soft); font: 400 var(--au-fs-md)/var(--au-lh-tight) var(--au-font); color: var(--au-input-ph); cursor: pointer; }
/* Detailzeile der Position (_uiux-muster.md §7a): F11 oder die Marke faehrt die uebrigen
   Felder unter der Zeile aus; die Zeile traegt aria-expanded. Die Marke ist ein Wort. */
.au-grid__row[aria-expanded="true"] { background: var(--au-accent-row); }
.au-grid__detail { padding: var(--au-s-3) var(--au-s-5); background: var(--au-panel-sunken); border-bottom: 1px solid var(--au-line-soft); }
@media (prefers-reduced-motion: no-preference) {
  .au-grid__detail { animation: au-detail-in var(--au-dur-slide) ease-out; }
}
@keyframes au-detail-in { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
.au-grid__openmark {
  min-height: var(--au-control-h); padding: 0; background: none; border: 0; cursor: pointer; white-space: nowrap;
  font: 400 var(--au-fs-sm)/var(--au-lh-text) var(--au-font); color: var(--au-accent-ink);
}
/* Zeile eines anderen Wegs (§7d, Alternativen): gedaempft, bleibt waehlbar.
   Auskunftszeile (§7d): Wert gilt, ist aber nicht waehlbar und geht in keine Summe ein. */
.au-grid__row--inactive > *, .au-grid__row--inactive .au-cellbox__value { color: var(--au-muted); }
.au-grid__row--info { cursor: default; }

/* Editierbare Rasterzelle: gleiche Zustände wie die Feldbox, ohne Dauerkontur */
.au-cellbox {
  height: var(--au-cellbox-h); margin-right: var(--au-cellbox-gap); min-width: 0;
  display: flex; align-items: center; gap: var(--au-s-1); padding: 0 var(--au-s-2);
  background: var(--au-panel); border: 1px solid transparent; border-radius: var(--au-cellbox-r);
}
.au-cellbox__value { flex: 1; min-width: 0; font: 400 var(--au-fs-md)/var(--au-lh-text) var(--au-font); color: var(--au-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.au-cellbox__value--num { font-family: var(--au-mono); font-variant-numeric: tabular-nums; text-align: right; }
.au-cellbox__adorn { flex: none; font: 400 var(--au-field-mark)/var(--au-lh-tight) var(--au-font); color: var(--au-adorn); }
/* Eingabe in der Zelle: Rahmen, Flaeche und Schrift kommen von der Zelle, nicht vom Browser.
   Breite ueber flex wie .au-cellbox__value, nie width: 100% — eine Prozentbreite traegt nichts
   zur Mindestbreite einer Rasterspalte bei, die nach Inhalt rechnet, und die Spalte faellt auf
   null zusammen. */
.au-cellbox > input, .au-cellbox > select { flex: 1; min-width: 0; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; }
.au-cellbox:hover { border-color: var(--au-line-input); }
.au-cellbox--focus   { border-color: var(--au-line-focus); box-shadow: var(--au-focus-ring-soft); }
.au-cellbox--dirty   { border-color: var(--au-warn); background: var(--au-input-bg-dirty); }
.au-cellbox--invalid { border-color: var(--au-error); background: var(--au-input-bg-invalid); }
.au-cellbox--invalid .au-cellbox__value { color: var(--au-error); }
.au-cellbox--readonly { background: var(--au-input-bg-ro); border-color: var(--au-line); }
.au-cellbox--readonly .au-cellbox__value { color: var(--au-muted); }
.au-cellbox--readonly .au-cellbox__adorn { color: var(--au-label); }

.au-sums { width: var(--au-sums-w); flex: none; display: flex; flex-direction: column; gap: var(--au-s-3); }
.au-sums__row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--au-s-3); }
/* Bricht eine Beschriftung um (breitere Projektschrift), ruecken die Folgezeilen ein und
   lesen sich nicht als eigene Zeile; der Betrag steht an der ersten (Grundlinie). */
.au-sums__label { padding-left: var(--au-s-3); text-indent: calc(-1 * var(--au-s-3)); font: 400 var(--au-fs-md)/var(--au-lh-tight) var(--au-font); color: var(--au-muted); }
.au-sums__value { font: 400 var(--au-fs-lg)/var(--au-lh-tight) var(--au-mono); font-variant-numeric: tabular-nums; color: var(--au-text); }
.au-sums__row--total { padding-top: var(--au-s-2); border-top: 1px solid var(--au-line); }
.au-sums__row--total .au-sums__label { font-weight: 500; color: var(--au-text); }
.au-sums__row--total .au-sums__value { font-weight: 500; }
.au-sums__row--grand { padding-top: var(--au-s-2); border-top: 1px solid var(--au-line); }
.au-sums__row--grand .au-sums__label { font-weight: 600; color: var(--au-text); }
.au-sums__row--grand .au-sums__value { font-weight: 500; font-size: var(--au-fs-xl); }

/* Inline-Hinweis im Panel (kein Dialog, keine Feldmeldung). Ein gewoehnlicher Textblock:
   der Punkt steht absolut, der Text darf Auszeichnungen tragen — kein Flex, sonst wird
   jedes <b> eine eigene Spalte. */
.au-hint {
  position: relative; display: block;
  padding: var(--au-s-2) var(--au-s-3) var(--au-s-2) calc(var(--au-s-3) + var(--au-dot) + var(--au-s-2));
  border-radius: var(--au-r-md);
  border: 1px solid var(--au-line); background: var(--au-input-bg-ro);
  font: 400 var(--au-fs-sm)/var(--au-lh-text) var(--au-font); color: var(--au-text-2);
}
.au-hint::before { content: ""; position: absolute; left: var(--au-s-3); top: calc(var(--au-s-2) + var(--au-s-1) + 1px); width: var(--au-dot); height: var(--au-dot); border-radius: 50%; background: var(--au-neutral); }
.au-hint--warn  { border-color: var(--au-warn); background: var(--au-input-bg-dirty); }
.au-hint--warn::before { background: var(--au-warn); }
.au-hint--error { border-color: var(--au-error); background: var(--au-input-bg-invalid); }
.au-hint--error::before { background: var(--au-error); }
.au-hint--locked { padding-left: var(--au-s-3); }
.au-hint--locked::before { display: none; }

/* Verweis auf einen anderen Satz (_uiux.md §4): Text in Linkform, Knopf oder Anker. Im Text
   und im Wertestreifen ohne Klickzielhoehe (§9, WCAG 2.5.8), in Touch-Kontexten mit. Gesperrt
   ohne Unterstrich, der Grund steht im title. Im Feld rechts in der Box (§7). */
.au-link {
  padding: 0; background: none; border: 0; cursor: pointer;
  font-family: var(--au-font); font-weight: 500; font-size: inherit; line-height: inherit;
  color: var(--au-accent-ink); text-decoration: underline;
}
.au-link:hover { color: var(--au-text); }
.au-link[disabled], .au-link[aria-disabled="true"] { color: var(--au-muted); text-decoration: none; cursor: default; }
.au-field__box > .au-link { margin-left: auto; flex: none; font-size: var(--au-fs-sm); white-space: nowrap; }
.au-touch .au-link { display: inline-flex; align-items: center; min-height: var(--au-touch-control-h); }

/* Wertestreifen (_uiux.md §7): lesende Kurzwerte, anderswo gepflegt oder abgeleitet; kein Feld,
   keine Kennzahl. Bricht um; der Sprung zum pflegenden Reiter steht rechts. */
.au-facts { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--au-s-2) var(--au-s-5); }
.au-facts__item { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.au-facts__label { font: 500 var(--au-fs-key)/var(--au-lh-text) var(--au-font); letter-spacing: .08em; text-transform: uppercase; color: var(--au-label); }
.au-facts__value { font: 500 var(--au-fs-md)/var(--au-lh-text) var(--au-mono); font-variant-numeric: tabular-nums; color: var(--au-text); white-space: nowrap; }
.au-facts > .au-link { margin-left: auto; align-self: center; font-size: var(--au-fs-sm); }

/* Gesperrter Beleg: gelesen wird als Text, nicht als gesperrte Box */
.au-doc--locked .au-field__box, .au-doc--locked .au-cellbox { background: none; border-color: transparent; box-shadow: none; }
.au-doc--locked .au-field__adorn, .au-doc--locked .au-cellbox__adorn { display: none; }

/* ==========================================================================
   Wertehilfe (Auswahl-Overlay)
   ========================================================================== */
.au-lookup {
  width: var(--au-lookup-w); display: flex; flex-direction: column; overflow: hidden;
  background: var(--au-panel); border: 1px solid var(--au-line-strong);
  border-radius: var(--au-r-xl); box-shadow: var(--au-shadow-pop);
}
.au-lookup__head { flex: none; padding: var(--au-s-4) var(--au-s-4) 0; display: flex; flex-direction: column; gap: var(--au-s-3); }
.au-lookup__title { display: flex; align-items: center; gap: var(--au-s-3); font: 600 var(--au-fs-xl)/var(--au-lh-tight) var(--au-font); }
.au-lookup__ref { font: 400 var(--au-fs-sm)/var(--au-lh-tight) var(--au-font); color: var(--au-muted); }
/* Klickflaeche --au-control-h, waechst in .au-touch mit dem Token (§9). */
.au-lookup__close {
  margin-left: auto; min-width: var(--au-control-h); min-height: var(--au-control-h);
  display: inline-flex; align-items: center; justify-content: center; color: var(--au-muted); cursor: pointer;
}
.au-lookup__meta { font: 400 var(--au-fs-sm)/var(--au-lh-tight) var(--au-font); color: var(--au-muted); }
.au-lookup__foot {
  height: var(--au-statusbar-h); flex: none; display: flex; align-items: center; gap: var(--au-s-4);
  padding: 0 var(--au-s-4); border-top: 1px solid var(--au-line); background: var(--au-panel-sunken);
  font: 400 var(--au-fs-sm)/var(--au-lh-tight) var(--au-font); color: var(--au-muted);
}

/* Inhaltsbreites Overlay (Kalenderauswahl, kleine Auswahl ohne Trefferliste): Breite und
   Hoehe folgen dem Inhalt; align-self, weil .au-scrim sonst ueber die volle Hoehe streckt. */
.au-lookup--compact { width: auto; align-self: flex-start; margin-top: var(--au-s-5); }
.au-lookup--compact .au-record__body { padding: var(--au-s-4); }

/* ==========================================================================
   Über-Overlay (Stand des Systems, §3)
   ========================================================================== */
.au-about {
  width: var(--au-about-w); display: flex; flex-direction: column; overflow: hidden;
  background: var(--au-panel); border: 1px solid var(--au-line-strong);
  border-radius: var(--au-r-xl); box-shadow: var(--au-shadow-pop);
}
.au-about__head { flex: none; padding: var(--au-s-4) var(--au-s-4) var(--au-s-3); display: flex; align-items: center; gap: var(--au-s-3); }
/* Markenband: Grund --au-canvas fuer Zeichen, die nur mit deckendem Grund vorliegen — auf
   --au-panel (Topbar, Overlay) zeichneten sie sonst einen Kasten. Kopf eines Overlays, der
   Anmeldekarte, ueberall, wo ein Zeichen gross steht. */
.au-brandband { flex: none; display: flex; align-items: center; gap: var(--au-s-3); padding: var(--au-s-4) var(--au-s-4) var(--au-s-3); background: var(--au-canvas); border-bottom: 1px solid var(--au-line); }
.au-brandband > * { display: block; height: var(--au-brandmark-h); width: auto; }
.au-about__title { font: 600 var(--au-fs-xl)/var(--au-lh-tight) var(--au-font); }
.au-about__close { margin-left: auto; color: var(--au-muted); cursor: pointer; }
.au-about__row {
  display: flex; align-items: baseline; gap: var(--au-s-3);
  padding: var(--au-s-1) var(--au-s-4); border-top: 1px solid var(--au-line-soft);
}
.au-about__label { flex: none; width: 40%; font: 400 var(--au-fs-sm)/var(--au-lh-tight) var(--au-font); color: var(--au-label); }
.au-about__value { font: 400 var(--au-fs-md)/var(--au-lh-tight) var(--au-mono); font-variant-numeric: tabular-nums; color: var(--au-text); }
.au-about__foot {
  height: var(--au-statusbar-h); flex: none; display: flex; align-items: center; gap: var(--au-s-4);
  padding: 0 var(--au-s-4); border-top: 1px solid var(--au-line); background: var(--au-panel-sunken);
  font: 400 var(--au-fs-sm)/var(--au-lh-tight) var(--au-font); color: var(--au-muted);
}

/* ==========================================================================
   Löschdialog mit Verwendungsnachweis
   ========================================================================== */
.au-btn--danger { background: var(--au-error); border-color: var(--au-error); color: var(--au-on-error); }
.au-btn--danger .au-btn__key { color: var(--au-on-error-key); }
/* Getoente Nebentaste (_uiux-muster.md §7l): helle Flaeche, Kontur und Schrift im Ton; keine
   Primaeraktion ("Verwerfen" unter einer Liste, "Scannen" neben einem Codefeld). */
.au-btn--tone-error { background: var(--au-error-soft); border-color: var(--au-error); color: var(--au-error); }
.au-btn--tone-info  { background: var(--au-info-soft);  border-color: var(--au-info);  color: var(--au-info); }
.au-btn:is(.au-btn--tone-error, .au-btn--tone-info):hover { background: var(--au-panel); }
.au-btn:is(.au-btn--tone-error, .au-btn--tone-info) .au-btn__key { color: inherit; }
/* Gefüllte Tasten behalten beim Überfahren ihre Fläche (.au-btn:hover hellt sonst auf);
   .au-btn--icon.au-btn--danger ist die Löschtaste der Bonzeile (§7l). */
.au-btn--danger:hover { background: var(--au-error); border-color: var(--au-error); filter: brightness(.92); }
/* Erfolgstaste: der abschließende Schritt eines Vorgangs, der Geld bewegt (Bon abschließen). */
.au-btn--ok { background: var(--au-ok); border-color: var(--au-ok); color: var(--au-on-tone); }
.au-btn--ok:hover { background: var(--au-ok); border-color: var(--au-ok); filter: brightness(.92); }
.au-btn--ok .au-btn__key { color: var(--au-on-tone-key); }
.au-usage { display: flex; flex-direction: column; border: 1px solid var(--au-line); border-radius: var(--au-r-md); overflow: hidden; }
.au-usage__head {
  padding: var(--au-s-1) var(--au-s-3); background: var(--au-panel-sunken); border-bottom: 1px solid var(--au-line);
  font: 500 var(--au-fs-key)/var(--au-lh-tight) var(--au-font); letter-spacing: .14em; text-transform: uppercase; color: var(--au-label);
}
.au-usage__row { display: flex; align-items: center; gap: var(--au-s-3); padding: var(--au-s-1) var(--au-s-3); border-bottom: 1px solid var(--au-line-soft); }
.au-usage__code  { width: var(--au-usage-code-w); flex: none; font: 500 var(--au-fs-sm)/var(--au-lh-tight) var(--au-mono); color: var(--au-accent-ink); }
.au-usage__label { font: 400 var(--au-fs-md)/var(--au-lh-text) var(--au-font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.au-usage__count { margin-left: auto; flex: none; font: 500 var(--au-fs-md)/var(--au-lh-tight) var(--au-mono); }
.au-usage__link  { flex: none; min-height: var(--au-control-h); display: inline-flex; align-items: center; font: 400 var(--au-fs-sm)/var(--au-lh-tight) var(--au-font); color: var(--au-accent-ink); cursor: pointer; }

/* ==========================================================================
   Belegkopf, Ausgabe, Belegvorschau
   ========================================================================== */
.au-dochead {
  flex: none; display: flex; flex-direction: column; gap: var(--au-s-3);
  margin: var(--au-s-4) var(--au-s-5) 0; padding: var(--au-s-3) var(--au-s-4) var(--au-s-4);
  background: var(--au-panel-sunken); border: 1px solid var(--au-line); border-radius: var(--au-r-lg);
}
.au-dochead__title { display: flex; align-items: center; gap: var(--au-s-3); font: 500 var(--au-fs-key)/var(--au-lh-tight) var(--au-font); letter-spacing: .14em; text-transform: uppercase; color: var(--au-accent-ink); }
/* Im Satzrumpf (Hauptspalte der Belegmaske) traegt der Rumpf den Rand schon. */
.au-dochead--inset { margin: 0; }
/* Drei Kopfkarten; schmal zwei Spalten, die erste Karte (Kunde) reicht links ueber beide
   anderen. Container-Abfrage, weil Sidebar und Navigator die Breite mitbestimmen; die
   Schwelle (rund 1600 px Fenster mit beiden) steht als Zahl — @container kennt keine Tokens. */
.au-dochead { container: au-dochead / inline-size; }
.au-dochead__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--au-s-3) var(--au-s-4); align-items: start; }
@container au-dochead (max-width: 1040px) {
  .au-dochead__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .au-dochead__cards > :first-child { grid-row: span 2; }
}
/* Kurzzeile des eingeklappten Kopfs: eine Zeile, am Ende gekuerzt, Sekundaertext. */
.au-dochead__summary { display: none; font: 400 var(--au-fs-md)/var(--au-lh-text) var(--au-font); color: var(--au-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.au-dochead:has(> .au-dochead__title[aria-expanded="false"]) > .au-dochead__summary { display: block; }
.au-dochead:has(> .au-dochead__title[aria-expanded="false"]) > :not(.au-dochead__title, .au-dochead__summary) { display: none; }
/* Titel als Klappknopf (<button aria-expanded>) wie button.au-facets__title: ohne
   Knopfgestalt, Zeigehand, Fokusring aus :focus-visible, Pfeil am Ende. */
button.au-dochead__title, button.au-panel__title {
  width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer;
}
button.au-panel__title { display: flex; align-items: center; gap: var(--au-s-2); min-height: var(--au-control-h); color: inherit; }
.au-dochead__title[aria-expanded]::after, .au-panel__title[aria-expanded]::after {
  content: "\2304"; content: "\2304" / ""; margin-left: auto; flex: none; letter-spacing: 0; color: var(--au-faint);
}
.au-dochead__title[aria-expanded="false"]::after, .au-panel__title[aria-expanded="false"]::after { transform: rotate(-90deg); }
.au-panel:has(> .au-panel__head .au-panel__title[aria-expanded="false"]) > :not(.au-panel__head) { display: none; }

.au-refcard { display: flex; flex-direction: column; gap: var(--au-s-3); }
.au-refcard__media { height: var(--au-refcard-media-h); overflow: hidden; background: var(--au-input-bg-ro); border: 1px solid var(--au-line); border-radius: var(--au-r-md); }
.au-refcard__facts { display: flex; flex-direction: column; }
.au-refcard__facts > * { display: flex; align-items: baseline; gap: var(--au-s-3); padding: var(--au-s-1) 0; border-top: 1px solid var(--au-line-soft); }

.au-output { display: flex; flex-direction: column; gap: var(--au-s-3); }
.au-output__row { display: flex; flex-direction: column; gap: var(--au-s-2); }
.au-output__log { margin-top: auto; display: flex; flex-direction: column; gap: var(--au-s-2); }

.au-preview {
  width: var(--au-preview-w); display: flex; flex-direction: column; overflow: hidden;
  background: var(--au-panel); border: 1px solid var(--au-line-strong);
  border-radius: var(--au-r-xl); box-shadow: var(--au-shadow-pop);
}
.au-preview__head { flex: none; display: flex; align-items: center; gap: var(--au-s-3); padding: var(--au-s-4); border-bottom: 1px solid var(--au-line); }
.au-preview__controls { flex: none; display: flex; align-items: center; gap: var(--au-s-2); padding: var(--au-s-3) var(--au-s-4); background: var(--au-panel-sunken); border-bottom: 1px solid var(--au-line); }
.au-preview__stage { flex: 1; min-height: 0; overflow: auto; display: flex; justify-content: center; padding: var(--au-s-5); background: var(--au-input-bg-ro); }
.au-preview__sheet { width: var(--au-sheet-w); flex: none; position: relative; background: var(--au-panel); border: 1px solid var(--au-line); box-shadow: var(--au-shadow-pop); }
/* Ein Bild als Blatt: natuerliche Groesse, auf die Buehne verkleinert, nie aufgezogen. */
img.au-preview__sheet { align-self: flex-start; width: auto; height: auto; max-width: 100%; }
.au-preview__draft {
  position: absolute; top: var(--au-s-4); right: var(--au-s-5);
  padding: var(--au-s-1) var(--au-s-2); border: 1px solid var(--au-warn); border-radius: var(--au-r-sm);
  font: 600 var(--au-fs-key)/var(--au-lh-tight) var(--au-font); letter-spacing: .2em; text-transform: uppercase; color: var(--au-warn-ink);
}
.au-preview__foot {
  height: var(--au-statusbar-h); flex: none; display: flex; align-items: center; gap: var(--au-s-4);
  padding: 0 var(--au-s-4); border-top: 1px solid var(--au-line); background: var(--au-panel-sunken);
  font: 400 var(--au-fs-sm)/var(--au-lh-tight) var(--au-font); color: var(--au-muted);
}

/* ==========================================================================
   Anmeldung und Übergang
   ========================================================================== */
.au-login { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: var(--au-s-5); background: var(--au-canvas); }
.au-login__card {
  width: var(--au-login-w); display: flex; flex-direction: column; gap: var(--au-s-4);
  padding: var(--au-s-5); background: var(--au-panel);
  border: 1px solid var(--au-line); border-radius: var(--au-r-xl);
}
.au-login__title { font: 600 var(--au-fs-2xl)/var(--au-lh-text) var(--au-font); }
.au-login__more { min-width: var(--au-menu-w); display: flex; flex-direction: column; }
.au-login__more > * { padding: var(--au-s-2) var(--au-s-3); border-top: 1px solid var(--au-line-soft); font: 400 var(--au-fs-md)/var(--au-lh-text) var(--au-font); }
.au-login__foot {
  flex: none; display: flex; align-items: center; gap: var(--au-s-5); flex-wrap: wrap;
  padding: var(--au-s-3) var(--au-s-5); background: var(--au-panel); border-top: 1px solid var(--au-line);
  font: 400 var(--au-fs-sm)/var(--au-lh-tight) var(--au-font); color: var(--au-muted);
}
.au-login__state { display: inline-flex; align-items: center; gap: var(--au-s-2); }
.au-login__state::before { content: ""; width: var(--au-dot); height: var(--au-dot); border-radius: 50%; background: var(--au-ok); flex: none; }
.au-login__state[data-state="warn"]::before  { background: var(--au-warn); }
.au-login__state[data-state="error"]::before { background: var(--au-error); }

.au-splash { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; background: var(--au-action); }
.au-splash__stage { display: flex; flex-direction: column; align-items: center; gap: var(--au-s-5); }
.au-splash__title { font: 600 var(--au-fs-xl)/var(--au-lh-tight) var(--au-font); color: var(--au-on-action); }
.au-splash__meta  { font: 400 var(--au-fs-md)/var(--au-lh-tight) var(--au-font); color: var(--au-on-action-key); }
.au-splash__progress { width: var(--au-toast-w); }
.au-splash__steps { display: flex; align-items: center; gap: var(--au-s-4); }
.au-splash__step { display: inline-flex; align-items: center; gap: var(--au-s-2); font: 400 var(--au-fs-sm)/var(--au-lh-tight) var(--au-font); color: var(--au-on-action-key); }
.au-splash__step::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--au-on-action-key); flex: none; }
.au-splash__step--done { color: var(--au-on-action); }

/* ==========================================================================
   Nicht-modales Feedback und Fortschritt
   ========================================================================== */
/* Der Platz der nicht-modalen Meldung: am Rand, ueber allem und ausserhalb des Flusses
   (_uiux.md §3a). Ohne einen Behaelter liegt die Meldung im Fluss und schiebt beim
   Erscheinen das gesamte Layout nach oben. */
.au-toasts {
  position: fixed; right: var(--au-s-4); bottom: var(--au-s-4); z-index: 60;
  display: flex; flex-direction: column; gap: var(--au-s-2);
}

/* In der Geraeteflaeche einer App (§9): ueber der unteren Leiste, volle Breite der App. */
.au-toasts--app { position: absolute; left: var(--au-s-3); right: var(--au-s-3); bottom: calc(var(--au-appfoot-h, 0px) + var(--au-s-3)); }
.au-toasts--app .au-toast { width: auto; }
.au-toast {
  width: var(--au-toast-w); display: flex; align-items: flex-start; gap: var(--au-s-2);
  padding: var(--au-s-3); background: var(--au-panel);
  border: 1px solid var(--au-line-strong); border-radius: var(--au-r-lg); box-shadow: var(--au-shadow-pop);
}
.au-toast::before { content: ""; width: var(--au-dot); height: var(--au-dot); border-radius: 50%; background: var(--au-neutral); flex: none; margin-top: var(--au-s-1); }
.au-toast__text { font: 400 var(--au-fs-md)/var(--au-lh-text) var(--au-font); color: var(--au-text-2); }
.au-toast__action { margin-left: auto; flex: none; min-height: var(--au-control-h); display: inline-flex; align-items: center; font: 500 var(--au-fs-sm)/var(--au-lh-tight) var(--au-font); color: var(--au-accent-ink); cursor: pointer; }
.au-toast--ok::before    { background: var(--au-ok); }
.au-toast--warn { border-color: var(--au-warn); }
.au-toast--warn::before  { background: var(--au-warn); }
.au-toast--error { border-color: var(--au-error); }
.au-toast--error::before { background: var(--au-error); }

.au-progress { height: var(--au-progress-h); border-radius: calc(var(--au-progress-h) / 2); background: var(--au-line-soft); overflow: hidden; }
.au-progress__bar { height: 100%; border-radius: inherit; background: var(--au-accent); }
.au-progress__bar--done { background: var(--au-ok); }

/* ==========================================================================
   Merkmalsfilter und Kontextspalte
   ========================================================================== */
.au-facets { width: var(--au-facets-w); flex: none; }
/* Schmale Form (§3, die Shell rechnet die Schwelle): Fusszeile entfaellt, Trefferzahl bleibt. */
.au-facets--narrow { width: var(--au-facets-w-narrow); }
.au-facets--overlay {
  position: absolute; top: 0; left: 0; bottom: 0; z-index: var(--au-z-preview);
  background: var(--au-panel); border-right: 1px solid var(--au-line-strong); box-shadow: var(--au-shadow-pop);
}
.au-facets--narrow .au-facets__foot { display: none; }
/* Mindesthoehe = Hoehe mit "Zuruecksetzen": der erste Haken verschiebt die Gruppen nicht (§6a). */
.au-facets__head { flex: none; display: flex; align-items: center; gap: var(--au-s-2); box-sizing: content-box; min-height: var(--au-control-h); padding: var(--au-s-3) var(--au-s-3) var(--au-s-2); border-bottom: 1px solid var(--au-line); }
.au-facets__group { display: flex; flex-direction: column; gap: var(--au-s-1); padding: var(--au-s-2) var(--au-s-3); border-bottom: 1px solid var(--au-line-soft); }
/* Die Schrift steht oben in ihrer Klickflaeche: Die Luft zum ersten Wert misst ab ihr (§6a). */
.au-facets__title { display: flex; align-items: baseline; gap: var(--au-s-2); font: 500 var(--au-fs-caps)/var(--au-lh-tight) var(--au-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--au-label); }
button.au-facets__title { min-height: var(--au-control-h); }
/* Einklappbare Gruppe: Titel als <button aria-expanded>, Klappzeichen am Ende; zugeklappt
   steht die Zahl der gewaehlten Werte am Titel. Zuklappen hebt keinen Filter auf (§6a). */
button.au-facets__title { width: 100%; padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer; }
.au-facets__title[aria-expanded]::after { content: "\2304"; content: "\2304" / ""; margin-left: auto; flex: none; letter-spacing: 0; color: var(--au-faint); }
.au-facets__title[aria-expanded="false"]::after { transform: rotate(-90deg); }
.au-facets__title:has(.au-facets__picked)::after { margin-left: 0; }
.au-facets__picked { margin-left: auto; flex: none; font: 500 var(--au-fs-key)/var(--au-lh-tight) var(--au-mono); letter-spacing: 0; color: var(--au-accent-ink); }
.au-facets__group:has(> .au-facets__title[aria-expanded="false"]) > :not(.au-facets__title) { display: none; }
.au-facets__opt { display: flex; align-items: center; gap: var(--au-s-2); min-width: 0; min-height: var(--au-control-h); cursor: pointer; font: 400 var(--au-fs-cell)/var(--au-lh-text) var(--au-font); color: var(--au-text-2); }
/* Klappzeichen eines Baumknotens im Merkmalsfilter: eigenes Klickziel in Bedienhoehe. */
.au-facets__toggle { flex: none; width: var(--au-control-h); min-height: var(--au-control-h); display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; background: none; cursor: pointer; color: var(--au-adorn); }
/* Gruppe, der kein Wert bleibt (§6a): steht mit Vermerk "Keine Werte". */
.au-facets__empty { min-height: var(--au-control-h); display: flex; align-items: center; font: 400 var(--au-fs-sm)/var(--au-lh-text) var(--au-font); color: var(--au-muted); }
.au-facets__opt--on { font-weight: 500; color: var(--au-text); }
.au-facets__count { margin-left: auto; flex: none; font: 400 var(--au-fs-key)/var(--au-lh-tight) var(--au-mono); color: var(--au-muted); }
.au-facets__foot { flex: none; padding: var(--au-s-2) var(--au-s-3); border-top: 1px solid var(--au-line); background: var(--au-panel-sunken); font: 400 var(--au-fs-xs)/var(--au-lh-text) var(--au-font); color: var(--au-muted); }
.au-check { width: var(--au-s-4); height: var(--au-s-4); flex: none; text-align: center; background: var(--au-input-bg); border: 1px solid var(--au-line-input); border-radius: var(--au-r-check); font: 600 var(--au-fs-key)/var(--au-s-4) var(--au-font); color: var(--au-panel); }
.au-check--on { background: var(--au-accent-ink); border-color: var(--au-accent-ink); }
/* Kaestchen als Knopf (Rasterzelle): Zustand ueber aria-pressed, Zeichen .au-check darin. */
.au-checkbtn { display: inline-flex; align-items: center; justify-content: center; min-width: var(--au-control-h); min-height: var(--au-control-h); padding: var(--au-s-1); background: transparent; border: 0; cursor: pointer; }
.au-checkbtn:disabled { cursor: not-allowed; }
.au-checkbtn:disabled .au-check { opacity: .6; }
/* Mit Wort daneben: Abstand und Schrift der Feldwerte; der Zustand kommt aus aria-pressed. */
.au-checkbtn { gap: var(--au-s-2); font: 400 var(--au-fs-md)/var(--au-lh-text) var(--au-font); color: var(--au-text); }
.au-checkbtn[aria-pressed="true"] > .au-check { background: var(--au-accent-ink); border-color: var(--au-accent-ink); }
/* Wahlknoepfe: Mehrfachauswahl weniger kurzer Werte in einem Feld (kein Filter-Chip). */
.au-choices { display: flex; flex-wrap: wrap; gap: var(--au-s-2); }
.au-choice {
  min-height: var(--au-control-h); padding: var(--au-s-1) var(--au-s-2); border: 1px solid var(--au-line-input); border-radius: var(--au-r-sm);
  background: var(--au-input-bg); color: var(--au-text); cursor: pointer;
  font: 400 var(--au-fs-md)/var(--au-lh-text) var(--au-mono);
}
.au-choice[aria-pressed="true"] { border-color: var(--au-accent); background: var(--au-accent-row); font-weight: 500; }
.au-choice:disabled { background: var(--au-input-bg-ro); color: var(--au-muted); border-color: var(--au-line); cursor: default; }

/* Ueber dem Schleier: die angedockte Spalte (Rueckmeldung, Hilfe) bleibt bedienbar, waehrend
   ein Dialog steht; alles andere bleibt gesperrt. */
.au-context { width: var(--au-context-w); flex: none; position: relative; z-index: var(--au-z-context); }
/* Spalte, die bleibt (Hilfe, §3): breiter fuer Fliesstext; bei knapper Breite weicht zuerst
   Satznavigator oder Merkmalsfilter, nie sie. Die Rechnung gehoert der Shell. */
.au-context--keep { width: var(--au-context-wide-w); }
/* In der schmalen Spalte (§6) bricht der Satzname um, statt sie zu verbreitern; erste Zeile
   mittig zur Marke, weitere im Abstand des Fliesstexts. */
.au-context .au-record__name { min-width: 0; white-space: normal; overflow-wrap: anywhere; line-height: var(--au-lh-text); align-self: center; }
/* Seiten- oder Blattbild in der Detailspalte (Druckvorlage, Dokument): spaltenbreit, Kante
   sichtbar, nie gestreckt; ohne Schatten (§2.3: --au-shadow-pop nur fuer Ueberlagerungen). */
.au-context__sheet { display: block; width: 100%; height: auto; background: var(--au-panel); border: 1px solid var(--au-line); border-radius: var(--au-r-sm); }

/* Auswahlansicht (§3, §6a): Merkmalsfilter, Liste, Details in einer Zeile. Der Behaelter ist
   der Bezugsrahmen der geloesten Spalten: Details rechts, Merkmalsfilter links ueber der
   Liste, unter Menues und Schleier, mit Schliesszeichen im Kopf. */
.au-browse { flex: 1; min-width: 0; min-height: 0; display: flex; position: relative; }
.au-context--overlay {
  position: absolute; top: 0; right: 0; bottom: 0; z-index: var(--au-z-preview);
  background: var(--au-panel); border-left: 1px solid var(--au-line-strong); box-shadow: var(--au-shadow-pop);
}

/* Angedockte Spalte im Gespraech mit dem Anwender (Rueckmeldung, Hilfe) */
.au-panel__headrow { display: flex; align-items: center; gap: var(--au-s-2); }
.au-panel__ref { font: 400 var(--au-fs-sm)/var(--au-lh-text) var(--au-font); color: var(--au-muted); }
.au-help { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: var(--au-s-3); padding: var(--au-s-3); }
.au-help__ask {
  align-self: flex-end; max-width: 88%; padding: var(--au-s-2) var(--au-s-3);
  background: var(--au-panel-sunken); border: 1px solid var(--au-line-soft); border-radius: var(--au-r-md);
  font: 400 var(--au-fs-md)/var(--au-lh-text) var(--au-font); color: var(--au-text-2);
}
.au-help__say { font: 400 var(--au-fs-md)/var(--au-lh-text) var(--au-font); color: var(--au-text); }
/* Ergebnis im Verlauf (_uiux-muster.md §7n): Liste als Panel mit eigenem Kopf und Fuss, volle
   Breite des Verlaufs, blaettert nach --au-help-list-rows Zeilen in sich; Spalten aus der Antwort. */
.au-help > .au-panel--list {
  flex: none; width: auto; min-width: 0; align-self: stretch;
  max-height: calc(var(--au-head-h) + var(--au-row-h) * var(--au-help-list-rows) + var(--au-footer-h));
}
/* Gespraech als eigene Ansicht im Tab: links die Liste der Gespraeche bzw. Abfragen in
   Kontextspaltenbreite, rechts der Verlauf als Panel, das den Rest fuellt. */
.au-talk { flex: 1; min-width: 0; display: flex; gap: var(--au-gap); }
.au-talk > .au-talk__list { flex: none; width: var(--au-context-wide-w); min-width: var(--au-context-w); display: flex; flex-direction: column; gap: var(--au-gap); min-height: 0; }
.au-talk__list > .au-panel--list { width: auto; min-width: 0; flex: 1; min-height: 0; }
.au-talk > .au-panel { flex: 1; min-width: 0; }

/* Diagramm (§2.1): Behaelter mit festem Seitenverhaeltnis, die Zeichnung (svg/canvas einer
   Bibliothek) fuellt ihn. Farben nur aus --au-chart-*; die Werte stehen in einer Tabelle daneben
   oder darunter. Legende in der Reihenfolge der Reihen, Marke je Reihe aus der Farbfolge. */
.au-chart { position: relative; width: 100%; aspect-ratio: var(--au-chart-ratio); min-height: var(--au-chart-min-h); }
.au-chart > :is(svg, canvas, div) { position: absolute; inset: 0; width: 100%; height: 100%; }
.au-chart__legend { display: flex; flex-wrap: wrap; gap: var(--au-s-1) var(--au-s-4); font: 400 var(--au-fs-sm)/var(--au-lh-text) var(--au-font); color: var(--au-text-2); }
.au-chart__legend > * { display: inline-flex; align-items: center; gap: var(--au-s-2); }
.au-chart__legend > *::before { content: ""; flex: none; width: var(--au-s-3); height: var(--au-s-3); border-radius: var(--au-r-sm); background: var(--au-chart-1); }
.au-chart__legend > :nth-child(2)::before { background: var(--au-chart-2); }
.au-chart__legend > :nth-child(3)::before { background: var(--au-chart-3); }
.au-chart__legend > :nth-child(4)::before { background: var(--au-chart-4); }
.au-chart__legend > :nth-child(5)::before { background: var(--au-chart-5); }
.au-chart__legend > :nth-child(6)::before { background: var(--au-chart-6); }
.au-chart__legend > :nth-child(7)::before { background: var(--au-chart-7); }
.au-chart__legend > :nth-child(8)::before { background: var(--au-chart-8); }
/* Themenliste der Hilfe: Titel und Art des Artikels je Eintrag; Artikel als Fliesstext in
   der Spalte oder im Tab "Artikel" (.au-tab--doc, §3). */
.au-topic {
  display: flex; align-items: baseline; gap: var(--au-s-2); width: 100%; min-width: 0;
  padding: var(--au-s-2) var(--au-s-3); border: 0; border-bottom: 1px solid var(--au-line-soft);
  background: transparent; text-align: left; cursor: pointer;
  font: 400 var(--au-fs-md)/var(--au-lh-text) var(--au-font); color: var(--au-text);
}
.au-topic:hover { background: var(--au-panel-hover); }
.au-topic__type { flex: none; font: 500 var(--au-fs-key)/var(--au-lh-text) var(--au-font); letter-spacing: .1em; text-transform: uppercase; color: var(--au-label); }
.au-article { display: flex; flex-direction: column; gap: var(--au-s-3); padding: var(--au-s-3) var(--au-pad); font: 400 var(--au-fs-md)/var(--au-lh-text) var(--au-font); color: var(--au-text); }
.au-article :is(h1, h2, h3) { margin: var(--au-s-2) 0 0; font: 600 var(--au-fs-lg)/var(--au-lh-text) var(--au-font); }
.au-article h1 { font-size: var(--au-fs-xl); }
.au-article :is(p, ul, ol) { margin: 0; }
.au-article :is(ul, ol) { padding-left: var(--au-s-5); }
.au-article img { max-width: 100%; height: auto; border: 1px solid var(--au-line); border-radius: var(--au-r-sm); }
.au-article code { font: 500 var(--au-fs-sm)/var(--au-lh-text) var(--au-mono); color: var(--au-accent-ink); }
.au-help__input { flex: none; display: flex; flex-direction: column; gap: var(--au-s-2); padding: var(--au-s-3); border-top: 1px solid var(--au-line); }
.au-option { display: flex; align-items: center; gap: var(--au-s-2); min-height: var(--au-control-h); cursor: pointer; font: 400 var(--au-fs-sm)/var(--au-lh-text) var(--au-font); color: var(--au-text); }
.au-quote { border-left: 1px solid var(--au-line-strong); padding-left: var(--au-s-3); font: 400 var(--au-fs-md)/var(--au-lh-text) var(--au-font); color: var(--au-text-2); }
/* Hilfezeichen am rechten Rand einer Meldung (Hinweis, Rueckfrage, Anmeldung): Bild 16 px,
   Klickflaeche --au-control-h (§9); es oeffnet die Meldemaske mit Meldungs-ID. */
.au-hint:has(> .au-hint__help) { padding-right: var(--au-control-h); }
.au-hint__help, .au-dialog__help {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: var(--au-control-h); height: var(--au-control-h); padding: 0; border: 0; background: none; cursor: pointer;
}
.au-hint__help { position: absolute; top: 50%; right: 0; transform: translateY(-50%); }
.au-dialog__help { margin-left: auto; }
.au-hint__help > img, .au-dialog__help > img { width: var(--au-icon-help); height: var(--au-icon-help); display: block; }
/* Feldhilfe (F1 im Feld): fester Text am Feld, wie .au-menu, aber links ausgerichtet */
.au-fieldhelp { left: 0; right: auto; min-width: var(--au-fieldhelp-min-w); max-width: var(--au-fieldhelp-max-w); }
.au-fieldhelp__text { padding: 0 var(--au-s-3) var(--au-s-2); font: 400 var(--au-fs-md)/var(--au-lh-text) var(--au-font); color: var(--au-text); }

/* ==========================================================================
   Strukturliste: Gruppenzeile, historisierte Werte
   ========================================================================== */
.au-grid__group {
  height: var(--au-chip-h); flex: none; display: flex; align-items: center; gap: var(--au-s-3);
  padding: 0 var(--au-s-5); background: var(--au-accent-soft); border-bottom: 1px solid var(--au-line);
  font: 500 var(--au-fs-key)/var(--au-lh-tight) var(--au-font); letter-spacing: .12em;
  text-transform: uppercase; color: var(--au-accent-ink);
}
.au-grid__group-sum { margin-left: auto; font: 400 var(--au-fs-md)/var(--au-lh-tight) var(--au-mono); font-variant-numeric: tabular-nums; letter-spacing: 0; text-transform: none; color: var(--au-text-2); }
/* Klappbare Gruppenzeile (§7d): aria-expanded macht sie bedienbar. */
.au-grid__group[aria-expanded] { cursor: pointer; }
.au-grid__group[aria-expanded]::before { content: "\25B8"; content: "\25B8" / ""; flex: none; letter-spacing: 0; }
.au-grid__group[aria-expanded="true"]::before { content: "\25BE"; content: "\25BE" / ""; }
/* Untergruppe (§7d): zweite und letzte Ebene, eingerueckt, ohne Akzentflaeche. */
.au-grid__group--sub { padding-left: calc(var(--au-s-5) + var(--au-s-4)); background: var(--au-panel-sunken); border-bottom-color: var(--au-line-soft); color: var(--au-label); }
.au-grid__row--empty > * { color: var(--au-muted); }
.au-delta { flex: none; font: 400 var(--au-fs-key)/var(--au-lh-tight) var(--au-mono); color: var(--au-accent-ink); }
.au-delta--none { color: var(--au-muted); }
.au-delta--new  { color: var(--au-ok); }

/* ==========================================================================
   Vererbte Zeilen aus einer Vorlage
   ========================================================================== */
.au-rowstate {
  display: inline-flex; align-items: center; gap: var(--au-s-2);
  padding: 2px var(--au-s-2); border: 1px solid var(--au-line); border-radius: var(--au-r-sm);
  background: var(--au-input-bg-ro); font: 500 var(--au-fs-sm)/var(--au-lh-tight) var(--au-font); color: var(--au-text-2);
}
.au-rowstate::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--au-neutral); flex: none; }
.au-rowstate--inherited::before { background: var(--au-muted); }
.au-rowstate--changed { border-color: var(--au-warn); background: var(--au-input-bg-dirty); color: var(--au-text); }
.au-rowstate--changed::before { background: var(--au-warn); }
.au-rowstate--new { border-color: var(--au-ok); background: var(--au-ok-soft); color: var(--au-text); }
.au-rowstate--new::before { background: var(--au-ok); }
.au-rowstate--removed { border-color: var(--au-error); background: var(--au-input-bg-invalid); color: var(--au-error); }
.au-rowstate--removed::before { background: var(--au-error); }
.au-grid__row--removed .au-cellbox__value, .au-grid__row--removed > * { color: var(--au-muted); }
.au-grid__row--removed .au-grid__label { text-decoration: line-through; }

/* ==========================================================================
   Geltungsbereichskette (Ergebnis und Begründung)
   ========================================================================== */
.au-chain { display: flex; flex-direction: column; gap: var(--au-s-2); }
.au-chain__result {
  display: flex; align-items: center; gap: var(--au-s-2);
  padding: var(--au-s-2) var(--au-s-3); border: 1px solid var(--au-ok); border-radius: var(--au-r-md);
  background: var(--au-ok-soft); font: 500 var(--au-fs-lg)/var(--au-lh-tight) var(--au-font); color: var(--au-text);
}
/* Mehrere zugleich wirksame Treffer einer Stufe (§7f Nr. 3): eine Liste, je Eintrag eine Zeile. */
.au-chain__result--list { flex-direction: column; align-items: stretch; gap: var(--au-s-1); }
.au-chain__result--list::before { content: none; }
.au-chain__result--list > * { display: flex; align-items: center; gap: var(--au-s-2); }
.au-chain__result--list > *::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--au-ok); flex: none; }
.au-chain__result::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--au-ok); flex: none; }
.au-chain__result--no { border-color: var(--au-error); background: var(--au-input-bg-invalid); }
.au-chain__result--no::before { background: var(--au-error); }
/* Begruendung unter dem Ergebnis (§7f): warum dieser Bereich gewinnt oder keiner trifft. */
.au-chain__why { padding: 0 var(--au-s-3); font: 400 var(--au-fs-md)/var(--au-lh-text) var(--au-font); color: var(--au-text-3); }
.au-chain__step {
  display: flex; align-items: center; gap: var(--au-s-2); min-width: 0;
  padding: var(--au-s-1) var(--au-s-3); border: 1px solid var(--au-line-soft);
  border-radius: var(--au-r-md); background: var(--au-panel);
  font: 400 var(--au-fs-md)/var(--au-lh-text) var(--au-font); color: var(--au-text);
}
.au-chain__mark {
  width: var(--au-badge); height: var(--au-badge); flex: none; text-align: center;
  border: 1px solid var(--au-line); border-radius: var(--au-cellbox-r); background: var(--au-panel);
  font: 600 var(--au-fs-xs)/var(--au-badge) var(--au-font); color: var(--au-muted);
}
.au-chain__meta { margin-left: auto; flex: none; font: 400 var(--au-fs-sm)/var(--au-lh-tight) var(--au-font); color: var(--au-muted); }
.au-chain__step--hit { border-color: var(--au-ok); background: var(--au-ok-soft); font-weight: 500; }
.au-chain__step--hit .au-chain__mark { background: var(--au-ok); border-color: var(--au-ok); color: var(--au-on-action); }
.au-chain__step--miss .au-chain__mark { color: var(--au-muted); }
.au-chain__step--skip .au-chain__mark { background: var(--au-search-bg); }

/* ==========================================================================
   Merkmalsmatrix und Zustandszeichen
   ========================================================================== */
.au-matrix { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.au-matrix__head, .au-matrix__row {
  display: grid; align-items: center; padding: 0 var(--au-pad);
  grid-template-columns: var(--au-cols);
}
/* Kopf und Beschriftungsspalte bleiben beim Blaettern stehen (§7g wie §7i). top misst sich
   an --au-sticky-top: der blaetternde Behaelter setzt es auf den negativen Wert seines
   oberen Innenabstands (.au-record__body), sonst klebt der Kopf 14 px zu tief. */
.au-matrix__head { position: sticky; top: var(--au-sticky-top, 0); z-index: 1; height: var(--au-input-h); flex: none; background: var(--au-panel-sunken); border-top: 1px solid var(--au-line); border-bottom: 1px solid var(--au-line); }
.au-matrix__head > * { padding-right: var(--au-s-2); font: 500 var(--au-fs-key)/var(--au-lh-tight) var(--au-font); letter-spacing: .1em; text-transform: uppercase; color: var(--au-label); }
.au-matrix__row { height: var(--au-row-h); border-bottom: 1px solid var(--au-line-soft); }
.au-matrix__row:hover { background: var(--au-panel-hover); }
.au-matrix__label { position: sticky; left: 0; z-index: 1; background: var(--au-panel); display: flex; align-items: center; gap: var(--au-s-2); min-width: 0; font: 400 var(--au-fs-md)/var(--au-lh-text) var(--au-font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.au-matrix__head > .au-matrix__label { background: var(--au-panel-sunken); }
.au-matrix__row:hover .au-matrix__label { background: var(--au-panel-hover); }
.au-matrix__cell { display: flex; justify-content: center; }
/* Bedienbar erkennt die Vorlage am Markup wie beim Chip: fokussierbare Zeilenkoepfe und Zellen
   tragen die Zeigehand, gesperrte den Pfeil (§9). */
.au-matrix__label[tabindex="0"], .au-matrix__cell[tabindex="0"] { cursor: pointer; }
.au-matrix__cell[aria-disabled="true"], .au-matrix__cell[aria-disabled="true"] .au-perm,
.au-matrix__label[aria-disabled="true"] { cursor: default; }
.au-matrix__legend { display: flex; align-items: center; gap: var(--au-s-4); flex-wrap: wrap; font: 400 var(--au-fs-sm)/var(--au-lh-tight) var(--au-font); color: var(--au-muted); }

/* Satzmatrix (§7g): jede Zelle ein Satz oder eine Luecke — Nummer und Zustandswort, nie nur
   Farbe. Spaltenbreiten ueber --au-cols aus --au-matrix-col. */
.au-matrix--records .au-matrix__row { height: auto; min-height: var(--au-row-h-sub); padding-block: var(--au-s-1); }
.au-matrix--records .au-matrix__cell { padding-right: var(--au-s-1); }
.au-matrix__cellbox {
  width: 100%; min-height: calc(var(--au-row-h-sub) - var(--au-s-2));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 0 var(--au-s-1); background: var(--au-panel);
  border: 1px solid var(--au-line); border-radius: var(--au-cellbox-r); cursor: pointer;
}
.au-matrix__cellbox:hover { border-color: var(--au-line-input-hover); }
.au-matrix__cellbox:focus-visible { outline: 2px solid var(--au-accent); outline-offset: 1px; box-shadow: none; }
.au-matrix__cellbox__main { font: 500 var(--au-fs-md)/var(--au-lh-text) var(--au-mono); font-variant-numeric: tabular-nums; color: var(--au-text); white-space: nowrap; }
.au-matrix__cellbox__word { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 var(--au-fs-sm)/var(--au-lh-text) var(--au-font); color: var(--au-muted); }
.au-matrix__cellbox--lead { background: var(--au-accent-row); border-color: var(--au-accent); }
.au-matrix__cellbox--lead .au-matrix__cellbox__word { color: var(--au-accent-ink); font-weight: 500; }
.au-matrix__cellbox--empty { background: transparent; border-style: dashed; border-color: var(--au-line-input); }
.au-matrix__cellbox--empty .au-matrix__cellbox__main { color: var(--au-input-ph); font-weight: 400; }
.au-matrix__cellbox--warn { background: var(--au-input-bg-dirty); border-color: var(--au-warn); }
.au-matrix__cellbox--warn .au-matrix__cellbox__word { color: var(--au-warn-ink); }
.au-matrix__cellbox--locked .au-matrix__cellbox__main { color: var(--au-muted); text-decoration: line-through; }
.au-matrix__cellbox--new { background: var(--au-ok-soft); border-color: var(--au-ok); }
.au-matrix__cellbox--sel { border-style: solid; border-color: var(--au-line-focus); box-shadow: var(--au-focus-ring-soft); }
.au-matrix__cellbox--focus { outline: 2px solid var(--au-accent); outline-offset: 1px; }
.au-matrix__rowlabel { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 0; background: transparent; border: 0; text-align: left; cursor: pointer; }
.au-matrix__rowlabel__name { font: 500 var(--au-fs-md)/var(--au-lh-text) var(--au-font); color: var(--au-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.au-matrix__rowlabel__sub { font: 400 var(--au-fs-sm)/var(--au-lh-text) var(--au-font); color: var(--au-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Gruppenzeile der Satzmatrix (§7g): uebergeordnete Zeile, je Spalte eine Summe ihrer
   Zeilen — kein Satz, kein Klickziel, ohne Hover. */
.au-matrix__row--group, .au-matrix__row--group:hover { background: var(--au-panel-sunken); }
.au-matrix__row--group .au-matrix__label, .au-matrix__row--group:hover .au-matrix__label { background: var(--au-panel-sunken); font-weight: 500; }
.au-matrix__sum { width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 0 var(--au-s-1); }
.au-matrix__sum__main { font: 500 var(--au-fs-md)/var(--au-lh-text) var(--au-mono); font-variant-numeric: tabular-nums; color: var(--au-text); white-space: nowrap; }
.au-matrix__sum__word { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 var(--au-fs-sm)/var(--au-lh-text) var(--au-font); color: var(--au-muted); }
.au-matrix__sum--warn .au-matrix__sum__main, .au-matrix__sum--warn .au-matrix__sum__word { color: var(--au-warn-ink); }
.au-matrix__row--child .au-matrix__rowlabel { padding-left: var(--au-s-3); border-left: 2px solid var(--au-accent); }
/* Spaltenkopf der Satzmatrix als Knopf (§7g): fuellt die Kopfzelle und waehlt die Spalte. */
.au-matrix__colhead {
  width: 100%; height: 100%; padding: 0; background: none; border: 0; cursor: pointer;
  font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; text-align: inherit;
}
.au-matrix__colhead:hover { color: var(--au-text-2); }
.au-matrix__colhead:focus-visible { border-radius: 0; box-shadow: inset 0 0 0 2px var(--au-accent); }
/* Verweiszeile (§7g): verwandte Saetze, anderswo gepflegt — Nummer und Art je Zelle, nicht
   waehlbar. Die Art steht als zweites Kind in der UI-Schrift. */
.au-matrix__row--ref { border-top: 1px solid var(--au-line); }
.au-matrix__row--ref:hover, .au-matrix__row--ref:hover .au-matrix__label { background: var(--au-panel); }
.au-matrix__row--ref .au-matrix__rowlabel { cursor: default; }
.au-matrix__row--ref .au-matrix__cell {
  flex-direction: column; align-items: center; gap: 2px; min-width: 0;
  font: 400 var(--au-fs-sm)/var(--au-lh-text) var(--au-mono); color: var(--au-text-2);
}
.au-matrix__row--ref .au-matrix__cell > * { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.au-matrix__row--ref .au-matrix__cell > :nth-child(2) { font-family: var(--au-font); color: var(--au-muted); }

/* Detailspalte neben einem Arbeitsbereich; rutscht bei knapper Breite darunter */
.au-split { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--au-s-4); min-width: 0; }
.au-split__main { flex: 1 1 calc(var(--au-matrix-col) * 8); min-width: 0; display: flex; flex-direction: column; gap: var(--au-s-3); }
.au-split__aside { flex: 1 0 var(--au-context-w); max-width: calc(var(--au-context-w) * 2); display: flex; flex-direction: column; gap: var(--au-s-3); position: sticky; top: 0; }

/* Umschalter-Chip (Linse, Weg) und gesperrter Chip */
.au-chip[aria-pressed] { border: 1px solid transparent; background: var(--au-panel-sunken); color: var(--au-text-2); cursor: pointer; }
.au-chip[aria-pressed="true"] { background: var(--au-accent-soft); border-color: var(--au-accent); color: var(--au-text); }
.au-chip[aria-disabled="true"] { background: transparent; border: 1px dashed var(--au-line-input); color: var(--au-faint); cursor: default; }
/* Zustandszeichen: Zeiger nur, wenn es selbst oder seine Zelle bedienbar ist (Knopf,
   tabindex); als reine Anzeige ohne Hand. */
.au-perm {
  width: var(--au-badge); height: var(--au-badge); flex: none; text-align: center; cursor: default;
  border: 1px solid var(--au-line); border-radius: var(--au-cellbox-r); background: var(--au-panel);
  font: 600 var(--au-fs-xs)/var(--au-badge) var(--au-font); color: var(--au-muted);
}
button.au-perm, .au-perm[tabindex="0"], [tabindex="0"] > .au-perm { cursor: pointer; }
.au-perm--yes { background: var(--au-ok); border-color: var(--au-ok); color: var(--au-on-action); }
.au-perm--inh { background: var(--au-search-bg); }
.au-perm--no  { background: var(--au-input-bg-invalid); border-color: var(--au-error); color: var(--au-error); }
.au-perm--na  { background: var(--au-panel); border-color: var(--au-line-soft); }

/* ==========================================================================
   Erzeugte Texte (sichtbar, nicht editierbar)
   ========================================================================== */
.au-derived { display: flex; flex-direction: column; gap: var(--au-s-2); }
.au-derived__row {
  display: flex; align-items: center; gap: var(--au-s-2); min-width: 0;
  padding: var(--au-s-1) var(--au-s-2); background: var(--au-input-bg-ro);
  border: 1px solid var(--au-line); border-radius: var(--au-r-sm);
  font: 400 var(--au-fs-sm)/var(--au-lh-text) var(--au-mono); color: var(--au-text-2);
}
.au-derived__nr { flex: none; font: 500 var(--au-fs-key)/var(--au-lh-tight) var(--au-mono); color: var(--au-muted); }
.au-derived__row--empty { background: var(--au-panel); color: var(--au-muted); }
/* ==========================================================================
   Fußzeile der Sidebar: Zeitanzeige und Monatsübersicht
   ========================================================================== */
.au-navfoot {
  margin-top: auto; flex: none; display: flex; align-items: center; gap: var(--au-s-3);
  padding: var(--au-s-2) var(--au-s-3); border-top: 1px solid var(--au-line-soft);
}
.au-navfoot__time { font: 500 var(--au-fs-xl)/var(--au-lh-tight) var(--au-mono); font-variant-numeric: tabular-nums; color: var(--au-text); }
.au-navfoot__meta { font: 400 var(--au-fs-sm)/var(--au-lh-tight) var(--au-font); color: var(--au-muted); }
.au-navfoot__toggle {
  margin-left: auto; flex: none; width: var(--au-control-h); height: var(--au-control-h);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  background: var(--au-panel-sunken); border: 1px solid var(--au-line-strong); border-radius: var(--au-r-lg);
  color: var(--au-text);   /* ein button erbt keine Schriftfarbe — ohne sie bleibt das Zeichen im Dunkeln schwarz */
}
.au-navfoot__toggle:hover { background: var(--au-panel-hover); }

.au-mini-cal { display: flex; flex-direction: column; gap: var(--au-s-2); }
.au-mini-cal__head { display: flex; align-items: center; gap: var(--au-s-1); font: 600 var(--au-fs-md)/var(--au-lh-tight) var(--au-font); color: var(--au-text); }
.au-mini-cal__title { flex: 1; text-align: center; }
.au-mini-cal__nav {
  width: var(--au-control-h); height: var(--au-control-h); flex: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: var(--au-panel-sunken); border: 1px solid var(--au-line-strong); border-radius: var(--au-r-md);
  font: 400 var(--au-fs-sm)/var(--au-lh-tight) var(--au-font); color: var(--au-text-2);
}
.au-mini-cal__nav:hover { background: var(--au-panel-hover); }
.au-mini-cal__week { display: grid; grid-template-columns: var(--au-chip-h) repeat(7, 1fr); gap: 2px; }
.au-mini-cal__dow {
  height: var(--au-s-4); display: flex; align-items: center; justify-content: center;
  font: 500 var(--au-fs-key)/var(--au-lh-tight) var(--au-font); letter-spacing: .06em;
  text-transform: uppercase; color: var(--au-label);
}
.au-mini-cal__kw {
  height: var(--au-chip-h); display: flex; align-items: center; justify-content: center;
  border-radius: var(--au-r-sm); font: 400 var(--au-fs-key)/var(--au-lh-tight) var(--au-mono);
  color: var(--au-accent-ink);
}
.au-mini-cal__week[data-current] .au-mini-cal__kw { background: var(--au-accent-soft); font-weight: 600; }
.au-mini-cal__day {
  height: var(--au-chip-h); display: flex; align-items: center; justify-content: center;
  border-radius: var(--au-r-sm); font: 400 var(--au-fs-sm)/var(--au-lh-tight) var(--au-mono);
  font-variant-numeric: tabular-nums; color: var(--au-text);
}
/* Zeigehand nur, wo der Tag waehlbar ist (Kalender in der Wertehilfe); die Fusszeile der
   Sidebar zeigt nur an. Ein gesperrter Tag verspricht keinen Klick. */
.au-lookup .au-mini-cal__day { cursor: pointer; }
.au-lookup .au-mini-cal__day[aria-disabled="true"] { cursor: default; }
.au-mini-cal__day--we   { color: var(--au-muted); }
.au-mini-cal__day--out  { color: var(--au-muted); }
/* Zwei Merkmale, nicht nur Farbe (§9): gefüllte Fläche UND abweichende Form.
   Das Wort zum Datum liefert das Markup in .au-mini-cal__foot. */
.au-mini-cal__day--today {
  background: var(--au-accent-fill); color: var(--au-on-accent);
  border-radius: 50%; font-weight: 600;
}
/* Markierter Tag der Kalenderauswahl (Enter uebernimmt ihn): Ring aussen und fettere Ziffer
   — zwei Merkmale (§9), vertraeglich mit --today, dessen Flaeche darunter sichtbar bleibt.
   Der Fokusring taugt nicht: nach programmatischem focus() zeigt der Browser kein
   :focus-visible. */
.au-mini-cal__day--sel { box-shadow: 0 0 0 2px var(--au-line-focus); font-weight: 600; }
.au-mini-cal__foot {
  display: flex; align-items: center; gap: var(--au-s-2); padding-top: 2px;
  border-top: 1px solid var(--au-line-soft);
  font: 400 var(--au-fs-sm)/var(--au-lh-tight) var(--au-font); color: var(--au-muted);
}
.au-mini-cal__reset { margin-left: auto; color: var(--au-accent-ink); cursor: pointer; }

/* ==========================================================================
   Kennfarbe der Installation (§3)
   Kein Akzent: färbt ausschließlich Topbar und Anmeldekarte. Die Laufzeit
   setzt --au-kenn und --au-kenn-ink auf .au-app und das Merkmal data-kenn;
   die Regeln lesen nur diese zwei Werte und kennen keinen Farbton. Flächen
   und Ränder darauf sind durchscheinend, damit jeder Ton des
   projektdefinierten Farbsatzes ohne eigene Regel funktioniert. Der Akzent
   bleibt der Akzent: Fokusring und Sprungfeld-Fokus tragen ihn weiter.
   ========================================================================== */
/* Gefärbte Topbar — schaltet über das Merkmal, nicht über eine Klasse: ohne
   Kennfarbe (Auslieferungszustand) greift keine dieser Regeln. */
.au-app[data-kenn] .au-topbar { background: var(--au-kenn); color: var(--au-kenn-ink); border-bottom-color: var(--au-kenn-edge); }
.au-app[data-kenn] .au-brand,
.au-app[data-kenn] .au-topbar__meta,
.au-app[data-kenn] .au-buildmark,
.au-app[data-kenn] .au-topbar .au-jump__code,
.au-app[data-kenn] .au-topbar .au-jump input { color: var(--au-kenn-ink); }
.au-app[data-kenn] .au-buildmark:hover { background: var(--au-kenn-field); color: var(--au-kenn-ink); }
.au-app[data-kenn] .au-usermenu:hover, .au-app[data-kenn] .au-usermenu[aria-expanded="true"] { background: var(--au-kenn-field); color: var(--au-kenn-ink); }
.au-app[data-kenn] .au-topbar .au-jump { background: var(--au-kenn-field); border-color: var(--au-kenn-line); }
/* Fokus auf der Kennfarbe (§3): spezifischer als die Regel darueber, sonst ueberdeckt sie die Kontur. */
.au-app[data-kenn] { --au-focus-on-kenn: 0 0 0 2px var(--au-kenn), 0 0 0 4px var(--au-focus-kenn, var(--au-kenn-ink)); }
.au-app[data-kenn] .au-topbar .au-jump:focus-within { border-color: var(--au-focus-kenn, var(--au-kenn-ink)); box-shadow: var(--au-focus-on-kenn); }
.au-app[data-kenn] .au-topbar :focus-visible:not(.au-jump *) { box-shadow: var(--au-focus-on-kenn); }
.au-app[data-kenn] .au-topbar .au-jump__sep { background: var(--au-kenn-line); }
/* Platzhalter und Kürzel sind Nebenzeichen, aber Text (§9): der weiche Ton ist
   dafür gerechnet, nicht --au-faint. */
.au-app[data-kenn] .au-topbar .au-jump input::placeholder,
.au-app[data-kenn] .au-topbar .au-key { color: var(--au-kenn-ink-soft); }
.au-app[data-kenn] .au-topbar .au-btn--icon { background: var(--au-kenn-field); border-color: var(--au-kenn-line); color: var(--au-kenn-ink); }
.au-app[data-kenn] .au-topbar .au-btn--icon:hover { background: var(--au-kenn-line); border-color: var(--au-kenn-line); }

.au-kennmark {
  display: inline-flex; align-items: center; height: var(--au-kennmark-h); padding: 0 var(--au-s-2);
  border: 1px solid var(--au-kenn-line); border-radius: var(--au-r-sm);
  font: 500 var(--au-fs-xs)/var(--au-lh-tight) var(--au-mono);
  letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
}

.au-swatchgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--au-swatch-w), 1fr)); gap: var(--au-s-2); }
.au-swatch {
  display: flex; align-items: center; gap: var(--au-s-2);
  height: var(--au-control-h); padding: 0 var(--au-s-2);
  border: 1px solid var(--au-line-input); border-radius: var(--au-r-md);
  background: var(--au-input-bg); cursor: pointer; min-width: 0;
}
.au-swatch:hover { border-color: var(--au-line-input-hover); background: var(--au-panel-hover); }
.au-swatch--sel { border-color: var(--au-accent); box-shadow: var(--au-focus-ring-soft); }
.au-swatch__chip { width: var(--au-kennchip); height: var(--au-kennchip); flex: none; border-radius: var(--au-r-sm); border: 1px solid var(--au-kenn-edge); }
.au-swatch__name { font: 400 var(--au-fs-sm)/var(--au-lh-text) var(--au-font); color: var(--au-text); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.au-swatch__check { margin-left: auto; color: var(--au-accent-ink); }

.au-kennpreview { display: flex; gap: var(--au-s-4); flex-wrap: wrap; }
.au-kennpreview__col { display: flex; flex-direction: column; gap: var(--au-s-2); min-width: var(--au-kennprev-w); flex: 1; }
.au-kennpreview__label {
  font: 500 var(--au-fs-xs)/var(--au-lh-tight) var(--au-font); letter-spacing: .14em;
  text-transform: uppercase; color: var(--au-label);
}
.au-kennpreview__bar, .au-kennpreview__cardbar {
  display: flex; align-items: center; gap: var(--au-s-2); height: var(--au-kennprev-h);
  padding: 0 var(--au-s-3); border-radius: var(--au-r-md);
  background: var(--au-panel-sunken); border: 1px solid var(--au-line);
}
/* Mit Kennfarbe: dieselbe Merkmal-Regel wie an der Topbar. Die Maske setzt data-kenn,
   --au-kenn und --au-kenn-ink an .au-kennpreview, keine Farbe als Inline-Stil. */
.au-kennpreview[data-kenn] .au-kennpreview__bar,
.au-kennpreview[data-kenn] .au-kennpreview__cardbar { background: var(--au-kenn); color: var(--au-kenn-ink); border-color: var(--au-kenn-edge); }
.au-kennpreview__sig { width: var(--au-icon); height: var(--au-icon); flex: none; border-radius: 50%; background: currentColor; opacity: .82; }
.au-kennpreview__mark {
  display: inline-flex; align-items: center; height: var(--au-kennchip); padding: 0 var(--au-s-1);
  border: 1px solid currentColor; border-radius: var(--au-r-sm);
  font: 500 var(--au-fs-xs)/var(--au-lh-tight) var(--au-mono);
  letter-spacing: .1em; text-transform: uppercase; opacity: .9;
}
.au-kennpreview__txt { font: 400 var(--au-fs-sm)/var(--au-lh-text) var(--au-font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.au-kennpreview__card { border: 1px solid var(--au-line); border-radius: var(--au-r-md); overflow: hidden; }
.au-kennpreview__cardbar { border: 0; border-radius: 0; }
.au-kennpreview__cardbody { padding: var(--au-s-3); background: var(--au-panel); display: flex; flex-direction: column; gap: 2px; }
.au-kennpreview__cardname { font: 500 var(--au-fs-md)/var(--au-lh-text) var(--au-font); color: var(--au-text); }
.au-kennpreview__cardmeta { font: 400 var(--au-fs-sm)/var(--au-lh-text) var(--au-font); color: var(--au-muted); }

/* ==========================================================================
   Zeitachsenraster (Ressourcenplan, §7i)
   Zeilen sind Gegenstände, Spalten Zeitabschnitte, und innerhalb eines
   Abschnitts liegt eine Zeitachse. Vier Zahlen tragen die Lage, alle in
   Minuten ohne Einheit: --au-time-from / --au-time-to (sichtbare Spanne, am
   Raster) und --au-time-start / --au-time-end (am Block, Band, Strich). Das
   Stylesheet rechnet daraus Prozentwerte — das Markup kennt keine Pixel, die
   Abschnittsbreite ist frei (--au-slot-w, sonst gleich verteilt).
   Ein Scrollbereich für alles: Kopf, Achse und Zeilen rollen gemeinsam
   waagerecht; Kopf und Achse bleiben oben stehen, der Zeilenkopf links.
   ========================================================================== */
.au-timegrid { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.au-timegrid__body { flex: 1; min-height: 0; overflow: auto; position: relative; }
.au-timegrid__head, .au-timegrid__scale, .au-timegrid__bands, .au-timegrid__row {
  display: grid; align-items: stretch; width: max-content; min-width: 100%;
  grid-template-columns: var(--au-timegrid-label-w) repeat(var(--au-time-cols), var(--au-slot-w, minmax(0, 1fr)));
  background: var(--au-panel);
}
/* Zeilenkopf: dieselbe Zelle in Kopf, Achse, Bändern und Zeile — bleibt beim
   waagerechten Rollen stehen. background: inherit, damit der Zeilen-Hover auch
   den Kopf färbt und der Kopf die darunter rollenden Blöcke deckt. */
.au-timegrid__label {
  position: sticky; left: 0; z-index: 2; background: inherit;
  display: flex; align-items: center; gap: var(--au-s-2); min-width: 0;
  padding: 0 var(--au-s-2) 0 var(--au-pad); border-right: 1px solid var(--au-line);
  font: 400 var(--au-fs-md)/var(--au-lh-text) var(--au-font); color: var(--au-text);
  white-space: nowrap; overflow: hidden;
}
.au-timegrid__label > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.au-timegrid__label > .au-avatar { flex: none; overflow: visible; }

.au-timegrid__head {
  position: sticky; top: var(--au-sticky-top, 0); z-index: 3; height: var(--au-input-h);
  background: var(--au-panel-sunken); border-top: 1px solid var(--au-line); border-bottom: 1px solid var(--au-line);
}
.au-timegrid__col {
  display: flex; align-items: center; gap: var(--au-s-2); min-width: 0;
  padding: 0 var(--au-s-2); border-left: 1px solid var(--au-line-soft);
  font: 500 var(--au-fs-key)/var(--au-lh-text) var(--au-font);
  letter-spacing: .1em; text-transform: uppercase; color: var(--au-label);
  white-space: nowrap; overflow: hidden;
}
/* Die Zeilenkopfzelle im Kopf ist ein Spaltenkopf wie die anderen (§6). */
.au-timegrid__head > .au-timegrid__label {
  font: 500 var(--au-fs-key)/var(--au-lh-tight) var(--au-font);
  letter-spacing: .1em; text-transform: uppercase; color: var(--au-label);
}
/* Heute: das Wort im Titel liefert das Markup; die Hervorhebung ist nur das zweite Merkmal (§9). */
.au-timegrid__col--today { color: var(--au-accent-ink); font-weight: 600; }
/* Auffälliger Abschnitt (Unterbesetzung, Feiertag): Punkt + Wort neben dem Titel,
   keine Farbfläche. au-status bringt seine Schrift mit; Laufweite und Versalien
   des Kopfes gelten nicht für das Wort. */
.au-timegrid__col .au-status { letter-spacing: 0; text-transform: none; flex: none; }

.au-timegrid__scale { position: sticky; top: var(--au-input-h); z-index: 3; height: var(--au-chip-h); border-bottom: 1px solid var(--au-line); }
.au-timegrid__scale > * { position: relative; overflow: hidden; border-left: 1px solid var(--au-line-soft); }
.au-timegrid__scale > .au-timegrid__label { border-left: 0; }
.au-timegrid__tick {
  top: 0; height: 100%; display: flex; align-items: center;
  padding-left: var(--au-s-1); border-left: 1px solid var(--au-line-soft);
  font: 400 var(--au-fs-key)/var(--au-lh-tight) var(--au-mono); font-variant-numeric: tabular-nums; color: var(--au-label);
}

.au-timegrid__bands { height: var(--au-chip-h); border-bottom: 1px solid var(--au-line-soft); }
.au-timegrid__row { height: var(--au-timegrid-row-h); border-bottom: 1px solid var(--au-line-soft); }
.au-timegrid__row:hover { background: var(--au-panel-hover); }
/* Nur Planebene (Raumbelegung ohne Ist): Bedienhöhe plus Luft, kein Platz für die Istebene. */
.au-timegrid--single .au-timegrid__row { height: calc(var(--au-control-h) + 2 * var(--au-s-1)); }

/* Fläche eines Abschnitts. Die Stundenlinien sind Linienwerk aus dem Stylesheet:
   ein harter 1-px-Streifen, alle 60 Minuten wiederholt — kein Farbverlauf im Sinn
   von §2.3, nichts läuft ineinander. Die Zahlen dazu stehen in der Achse. */
.au-timegrid__slot {
  position: relative; overflow: hidden; border-left: 1px solid var(--au-line-soft);
  background-image: linear-gradient(to right, var(--au-line-soft) 1px, transparent 1px);
  background-size: calc(100% * 60 / (var(--au-time-to) - var(--au-time-from))) 100%;
}
.au-timegrid__slot--today  { background-color: var(--au-accent-row); }
.au-timegrid__slot--off    { background-color: var(--au-input-bg-ro); }   /* arbeitsfrei: hier ist nichts zu planen */
.au-timegrid__slot--target { background-color: var(--au-accent-soft); outline: 1px dashed var(--au-accent); outline-offset: -1px; }
.au-timegrid__slot:focus-visible { border-radius: 0; box-shadow: inset 0 0 0 2px var(--au-accent); }

/* Lage: eine Rechnung für Block, Band, Jetzt-Marke und Stundenzahl. */
.au-timegrid__block, .au-timegrid__band, .au-timegrid__now, .au-timegrid__tick {
  position: absolute;
  left: calc((var(--au-time-start) - var(--au-time-from)) / (var(--au-time-to) - var(--au-time-from)) * 100%);
}
.au-timegrid__block, .au-timegrid__band {
  width: calc((var(--au-time-end) - var(--au-time-start)) / (var(--au-time-to) - var(--au-time-from)) * 100%);
  display: flex; align-items: center; gap: var(--au-s-2); min-width: 0; padding: 0 var(--au-s-2);
  background: var(--au-panel); border: 1px solid var(--au-line-input); border-radius: var(--au-cellbox-r);
  font: 400 var(--au-fs-sm)/var(--au-lh-tight) var(--au-font); color: var(--au-text); white-space: nowrap;
}
.au-timegrid__block > *, .au-timegrid__band > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* Planebene oben in Bedienhöhe: der Block, der gezogen und fokussiert wird.
   Istebene darunter, flacher und als gesperrte Fläche — hier wird sie nur gelesen. */
.au-timegrid__block--plan { top: var(--au-s-1); height: var(--au-control-h); cursor: pointer; }
.au-timegrid__block--ist {
  top: calc(2 * var(--au-s-1) + var(--au-control-h)); height: var(--au-timegrid-ist-h);
  background: var(--au-input-bg-ro); border-color: var(--au-line); color: var(--au-text-2);
}
.au-timegrid__block--plan:hover { border-color: var(--au-line-input-hover); }
/* Fokus wie die Rasterzelle (§7a): der weiche Ring, weil der Abschnitt seine Blöcke
   beschneidet und ein äußerer Ring an der Abschnittskante abgeschnitten würde. */
.au-timegrid__block:focus-visible { border-color: var(--au-line-focus); box-shadow: var(--au-focus-ring-soft); border-radius: var(--au-cellbox-r); }
/* Zustände der Feldbox (§7, §7a). */
.au-timegrid__block--sel     { border-color: var(--au-accent); background: var(--au-accent-row); }
.au-timegrid__block--dirty   { border-color: var(--au-warn); background: var(--au-input-bg-dirty); }
.au-timegrid__block--invalid { border-color: var(--au-error); background: var(--au-input-bg-invalid); color: var(--au-error); }
.au-timegrid__block--muted   { border-style: dashed; border-color: var(--au-line); background: transparent; color: var(--au-muted); }
.au-timegrid__block--drag    { border-color: var(--au-accent); box-shadow: var(--au-shadow-pop); z-index: 2; }
/* Offene Kante: der Block reicht über die sichtbare Spanne hinaus oder läuft noch. */
.au-timegrid__block--cut-start { border-left-style: dashed;  border-top-left-radius: 0;  border-bottom-left-radius: 0; }
.au-timegrid__block--cut-end   { border-right-style: dashed; border-top-right-radius: 0; border-bottom-right-radius: 0; }

/* Zeitraumband: gehört keiner Zeile (Sperrzeit, Betriebsruhe, Kampagne). */
.au-timegrid__band {
  top: calc((var(--au-chip-h) - var(--au-badge)) / 2); height: var(--au-badge);
  background: var(--au-search-bg); border-color: var(--au-line-strong); border-radius: var(--au-r-sm);
  color: var(--au-text-2); font-weight: 500;
}

/* Jetzt-Marke: Akzent als Linie (§2.1), in Achse und heutigem Abschnitt. 2 px wie der
   Tabunterstrich — eine Haarlinie ginge zwischen den Stundenlinien unter. */
.au-timegrid__now { top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--au-accent); z-index: 1; pointer-events: none; }

/* Legende: Wort zu jeder Ebene und jedem Bandtyp (§9). Die Proben sind dieselben
   Klassen, nur aus der Achse genommen. */
.au-timegrid__legend { display: flex; align-items: center; gap: var(--au-s-4); flex-wrap: wrap; font: 400 var(--au-fs-sm)/var(--au-lh-tight) var(--au-font); color: var(--au-muted); }
.au-timegrid__legend > * { display: inline-flex; align-items: center; gap: var(--au-s-2); }
.au-timegrid__legend .au-timegrid__block, .au-timegrid__legend .au-timegrid__band {
  position: static; width: var(--au-s-5); height: var(--au-s-3); padding: 0; cursor: default;
}

/* ==========================================================================
   Ablaufgraph (verzweigter Ablauf, §7p)
   Ein Raster aus Spalten (Folge) und Zeilen (Zweig): Der Knoten trägt Spalte und
   Zeile (--au-flow-col, --au-flow-row), die Kante dazu ihr Ziel (--au-flow-to-col,
   --au-flow-to-row), die Fläche ihren Umfang (--au-flow-cols, --au-flow-rows) — alle
   ganzzahlig ohne Einheit. Die Anordnung rechnet die Anwendung, die Lage das
   Stylesheet; das Markup kennt keine Pixel. Nur lesend.
   Kante vorwärts: waagrecht aus der Mitte der rechten Knotenseite, senkrecht in der
   Spaltenluft vor dem Ziel, waagrecht in die linke Seite des Ziels; die Pfeilspitze
   trägt der Zielknoten. Die Zusammenführung sitzt auf dieser senkrechten Linie, also
   laufen alle Zweige von selbst in die Raute. Rücksprung: Bogen unter der Zeile,
   von der Mitte des späteren Knotens zurück in den früheren, mit Beschriftung.
   ========================================================================== */
.au-flowgraph {
  --au-flowgraph-pitch-x: calc(var(--au-flowgraph-node-w) + var(--au-flowgraph-col-gap));
  --au-flowgraph-pitch-y: calc(var(--au-flowgraph-node-h) + var(--au-flowgraph-row-gap));
  min-width: 0; max-width: 100%; overflow-x: auto; overflow-y: hidden;
}
/* Fläche: so groß wie das Raster, plus Rand für den Fokusring; mit Rücksprung bleibt
   unter der letzten Zeile die Zeilenluft für dessen Bogen. */
.au-flowgraph__plane {
  position: relative; margin: var(--au-s-1);
  width: calc(var(--au-flow-cols) * var(--au-flowgraph-pitch-x) - var(--au-flowgraph-col-gap));
  height: calc(var(--au-flow-rows) * var(--au-flowgraph-pitch-y) - var(--au-flowgraph-row-gap));
}
.au-flowgraph__plane:has(> .au-flowgraph__edge--back) {
  height: calc(var(--au-flow-rows) * var(--au-flowgraph-pitch-y)
               + var(--au-flowgraph-back-depth) * (var(--au-flow-back-levels, 1) - 1));
}

/* Knoten: zwei Zeilen, Name und darunter Empfänger mit Datum oder Zustandswort. Der
   Zustand steht als Wort in der Zeile und zusätzlich als Rand (§9, nie allein Farbe). */
.au-flowgraph__node {
  position: absolute; margin: 0;
  left: calc(var(--au-flow-col) * var(--au-flowgraph-pitch-x));
  top: calc(var(--au-flow-row) * var(--au-flowgraph-pitch-y));
  width: var(--au-flowgraph-node-w); height: var(--au-flowgraph-node-h);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 0 var(--au-s-2); text-align: center; cursor: pointer; z-index: 1;
  background: var(--au-panel); border: 1px solid var(--au-line-input); border-radius: var(--au-r-sm);
  font: 400 var(--au-fs-md)/var(--au-lh-tight) var(--au-font); color: var(--au-text);
}
.au-flowgraph__node > * { max-width: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.au-flowgraph__meta { font: 400 var(--au-fs-sm)/var(--au-lh-tight) var(--au-font); color: var(--au-muted); }
/* Pfeilspitze am Eingang; der Auslöser hat keinen. */
.au-flowgraph__node:not(.au-flowgraph__node--start)::before {
  content: ""; position: absolute; right: 100%; top: 50%; margin-top: calc(-1 * var(--au-s-1));
  border-left: var(--au-flowgraph-arrow) solid var(--au-flowgraph-edge);
  border-top: var(--au-s-1) solid transparent; border-bottom: var(--au-s-1) solid transparent;
}
.au-flowgraph__node:hover { box-shadow: var(--au-focus-ring-soft); }
.au-flowgraph__node--done    { border-color: var(--au-ok); background: var(--au-ok-soft); }
.au-flowgraph__node--current { border: 2px solid var(--au-warn); background: var(--au-input-bg-dirty); }
.au-flowgraph__node--planned { border-style: dashed; }
.au-flowgraph__node--fault   { border: 2px solid var(--au-error); background: var(--au-input-bg-invalid); }
.au-flowgraph__node--fault .au-flowgraph__meta { color: var(--au-error); }
/* Nicht gewählt: ein Ausgang einer Weiche, den der Ablauf nicht nahm. Grau, gestrichelt, ohne
   Fläche — er trägt den Ablauf nicht mehr, darum Rand und Pfeil in --au-line statt 3:1; das Wort
   in __meta sagt es, die Schrift bleibt in --au-muted lesbar. Kanten hinein: __edge--skipped. */
.au-flowgraph__node--skipped { --au-flowgraph-edge: var(--au-line); border-style: dashed; border-color: var(--au-line); background: transparent; color: var(--au-muted); }
/* Zurückgegeben: die Aufgabe ging an den Absender zurück und löst den Rücksprung aus — weder
   Fehler des Ablaufs noch offen. Doppelter Rand, ohne Fläche; das Wort in __meta sagt es. */
.au-flowgraph__node--returned { border: 3px double var(--au-warn); background: var(--au-panel); }
/* Eigene Aufgabe: fett und kräftiger Rand, in jedem Zustand. */
.au-flowgraph__node--own { border-width: 2px; font-weight: 600; }
/* Markiert: der Knoten der Tabellenzeile darunter (und umgekehrt). */
.au-flowgraph__node--sel { outline: 2px solid var(--au-accent); outline-offset: 2px; }

/* Kante vorwärts: Das Element ist die senkrechte Linie in der Spaltenluft vor dem Ziel;
   ::before führt aus der Quelle hinein, ::after hinaus ins Ziel. Gleiche Zeile: Höhe 0,
   beide Hälften liegen auf einer Linie. Ohne --au-flow-to-row bleibt die Zeile. */
.au-flowgraph__edge {
  --au-flow-y1: calc(var(--au-flow-row) * var(--au-flowgraph-pitch-y) + var(--au-flowgraph-node-h) / 2);
  --au-flow-y2: calc(var(--au-flow-to-row, var(--au-flow-row)) * var(--au-flowgraph-pitch-y) + var(--au-flowgraph-node-h) / 2);
  --au-flow-spine: calc(var(--au-flow-to-col) * var(--au-flowgraph-pitch-x) - var(--au-flowgraph-col-gap) / 2);
  position: absolute; pointer-events: none;
  left: var(--au-flow-spine); width: calc(var(--au-flowgraph-col-gap) / 2);
  top: min(var(--au-flow-y1), var(--au-flow-y2));
  height: max(var(--au-flow-y1) - var(--au-flow-y2), var(--au-flow-y2) - var(--au-flow-y1));
  border-left: 1px solid var(--au-flowgraph-edge);
}
.au-flowgraph__edge::before, .au-flowgraph__edge::after { content: ""; position: absolute; height: 0; border-top: 1px solid var(--au-flowgraph-edge); }
.au-flowgraph__edge::before {
  right: 100%; top: calc(var(--au-flow-y1) - min(var(--au-flow-y1), var(--au-flow-y2)));
  width: calc(var(--au-flow-spine) - var(--au-flow-col) * var(--au-flowgraph-pitch-x) - var(--au-flowgraph-node-w));
}
.au-flowgraph__edge::after { left: 0; right: 0; top: calc(var(--au-flow-y2) - min(var(--au-flow-y1), var(--au-flow-y2))); }

/* Rücksprung: --au-flow-col/--au-flow-row ist der spätere Knoten, --au-flow-to-col der
   frühere, in --au-flow-to-row (ohne: dieselbe Zeile). Bogen unter der unteren der beiden
   Zeilen, Pfeilspitze nach oben in den früheren; Knoten liegen über den Linien. Zwei Bögen
   unter derselben Zeile trennt --au-flow-back-level (1, 2, …; die Anwendung vergibt ihn),
   die Fläche trägt den höchsten als --au-flow-back-levels. */
.au-flowgraph__edge--back {
  --au-flow-back-to: var(--au-flow-to-row, var(--au-flow-row));
  left: calc(var(--au-flow-to-col) * var(--au-flowgraph-pitch-x) + var(--au-flowgraph-node-w) / 2);
  width: calc((var(--au-flow-col) - var(--au-flow-to-col)) * var(--au-flowgraph-pitch-x));
  top: calc(var(--au-flow-back-to) * var(--au-flowgraph-pitch-y) + var(--au-flowgraph-node-h));
  height: calc((max(var(--au-flow-row), var(--au-flow-back-to)) - var(--au-flow-back-to)) * var(--au-flowgraph-pitch-y)
               + var(--au-flowgraph-back-depth) * var(--au-flow-back-level, 1));
  border: 1px solid var(--au-flowgraph-edge); border-top: 0; border-radius: 0 0 var(--au-r-md) var(--au-r-md);
}
.au-flowgraph__edge--back::before {
  right: auto; width: 0; height: 0; top: 0; left: calc(-1 * var(--au-s-1) - 1px);
  border-top: 0; border-bottom: var(--au-flowgraph-arrow) solid var(--au-flowgraph-edge);
  border-left: var(--au-s-1) solid transparent; border-right: var(--au-s-1) solid transparent;
}
/* Rechter Schenkel nur unter dem Quellknoten: Ueber zwei Zeilen begaenne er sonst an der
   Unterkante des Ziels und liefe durch die Zeilenluft. */
.au-flowgraph__edge--back { border-right-color: transparent; border-bottom-right-radius: 0; }
.au-flowgraph__edge--back::after {
  content: ""; left: auto; right: -1px; top: auto; bottom: 0; width: 0;
  height: calc(var(--au-flowgraph-back-depth) * var(--au-flow-back-level, 1));
  border-top: 0; border-right: 1px solid var(--au-flowgraph-edge);
}
.au-flowgraph__edge--skipped { --au-flowgraph-edge: var(--au-line); }
/* Beschriftung mit Zähler („Nachbessern ×1“) auf dem Bogen; die Fläche deckt die Linie. */
.au-flowgraph__edge-label {
  position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 50%);
  padding: 0 var(--au-s-1); background: var(--au-panel); white-space: nowrap;
  font: 400 var(--au-fs-sm)/var(--au-lh-tight) var(--au-font); color: var(--au-muted);
}

/* Zusammenführung: Raute auf der senkrechten Linie vor --au-flow-col, in --au-flow-row —
   dort enden alle Zweige, die in diesen Knoten führen. Wort im Markup (aria-label, title). */
.au-flowgraph__join {
  position: absolute; pointer-events: none;
  width: var(--au-flowgraph-join); height: var(--au-flowgraph-join);
  left: calc(var(--au-flow-col) * var(--au-flowgraph-pitch-x) - var(--au-flowgraph-col-gap) / 2 - var(--au-flowgraph-join) / 2);
  top: calc(var(--au-flow-row) * var(--au-flowgraph-pitch-y) + var(--au-flowgraph-node-h) / 2 - var(--au-flowgraph-join) / 2);
  transform: rotate(45deg); background: var(--au-panel); border: 1px solid var(--au-flowgraph-edge);
}
.au-flowgraph__join--done { border-color: var(--au-ok); background: var(--au-ok-soft); }

/* Legende: je Zustand ein .au-status mit Wort, unter dem Graphen. */
.au-flowgraph__legend { display: flex; align-items: center; gap: var(--au-s-4); flex-wrap: wrap; margin-top: var(--au-s-2); }

/* ==========================================================================
   Kassenplatz (_uiux-muster.md §7l)
   ========================================================================== */
/* Vollbild ohne Shell, nur solange der Kassenplatz oder eine Maske steht, die an ihm bedient
   wird (Tagesabschluss, Kassenbuch); die Taste „Module“ nimmt die Klasse ab. Statuszeile,
   Sitzung und Leerlauf bleiben. */
.au-app--full .au-topbar, .au-app--full .au-sidebar, .au-app--full .au-tabbar { display: none; }
.au-register {
  flex: 1; min-height: 0; display: grid; background: var(--au-canvas);
  grid-template-columns: minmax(0, 1fr) var(--au-register-bon-w) var(--au-register-fn-w);
}
.au-register > * { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.au-register > * + * { border-left: 1px solid var(--au-line); }
/* Scanfeld in Bedienhöhe: am Kassenplatz tippt auch der Finger hinein. */
.au-register .au-search { flex: none; height: var(--au-control-h); min-height: var(--au-control-h); }
.au-register .au-search, .au-register .au-search input { font-size: var(--au-fs-lg); }
/* Erfassungsdialog (Position, Kunde, Zahlung): mehr als drei Felder, nur am Kassenplatz. */
.au-dialog--large { width: var(--au-dialog-w-large); }
/* Maße des Sollbilds im Vollbild: Die Dialoge liegen im Scrim neben dem Kassenplatz, nicht in
   ihm — deshalb hängen sie an .au-app--full. Außerhalb ändert sich nichts. */
.au-app--full {
  --au-dialog-w:       var(--au-register-ask-w);
  --au-dialog-w-wide:  var(--au-register-ask-w-wide);
  --au-dialog-w-large: var(--au-register-split-w);
}
.au-app--full .au-dialog--large, .au-app--full .au-dialog--list, .au-app--full .au-dialog--sheet { max-width: calc(100% - var(--au-s-5) * 2); max-height: calc(100% - var(--au-s-5) * 2); overflow: auto; }
.au-app--full .au-dialog--list  { width: var(--au-register-list-w);  height: var(--au-register-list-h); }
.au-app--full .au-dialog--sheet { width: var(--au-register-sheet-w); height: var(--au-register-sheet-h); }
/* Zweiteiliger Dialog: links Eingabe (Ziffernblock, Felder, Liste), rechts Wahl und Ergebnis. */
.au-dialog__cols { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--au-s-5); }
.au-dialog__cols > * { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: var(--au-s-3); }

/* Bereichstitel in Versalien ohne Balken (Rubriken, Favoriten, Funktionen). */
.au-group__title--caps {
  padding-bottom: 0; border-bottom: 0; color: var(--au-label);
  font: 600 var(--au-fs-key)/var(--au-lh-text) var(--au-font); letter-spacing: .1em; text-transform: uppercase;
}
.au-group__title--caps::before { content: none; }

/* Artikelkachel mit Bild: Bildfläche oben in festem Verhältnis, ohne Bild ein Platzhalter-
   zeichen; Marken oben links, ein Schleier mit Pille sagt, warum die Kachel nicht greift. */
.au-tile--media { position: relative; padding: 0; gap: 0; overflow: hidden; background: var(--au-panel); }
.au-tile__img {
  position: relative; flex: none; aspect-ratio: var(--au-tile-img-ratio); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--au-input-bg-ro); border-bottom: 1px solid var(--au-line); color: var(--au-line-strong);
}
.au-tile__img > img { width: 100%; height: 100%; object-fit: cover; }
.au-tile__img > .au-icon { width: calc(var(--au-icon) * 2); height: calc(var(--au-icon) * 2); }
.au-tile__body { flex: 1; display: flex; flex-direction: column; gap: var(--au-s-1); padding: var(--au-s-3); }
.au-tile__tags { position: absolute; z-index: 1; top: var(--au-s-2); left: var(--au-s-2); display: flex; gap: var(--au-s-1); }
.au-tile__tag {
  padding: 0 var(--au-s-2); border-radius: var(--au-r-sm); background: var(--au-text-2); color: var(--au-on-tone);
  font: 600 var(--au-fs-key)/var(--au-lh-text) var(--au-font); letter-spacing: .06em; text-transform: uppercase;
}
.au-tile__tag--info    { background: var(--au-info); }
.au-tile__tag--special { background: var(--au-special); }
.au-tile__veil { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: var(--au-veil); }
.au-tile__pill {
  padding: var(--au-s-1) var(--au-s-3); border-radius: var(--au-r-xl); background: var(--au-text-2); color: var(--au-on-tone);
  font: 600 var(--au-fs-sm)/var(--au-lh-text) var(--au-font);
}
.au-tile__pill--error   { background: var(--au-error); }
.au-tile__pill--special { background: var(--au-special); }
.au-tile[aria-disabled="true"] { cursor: default; }
.au-tile[aria-disabled="true"] .au-tile__body { color: var(--au-muted); }
/* Preiszeile der Artikelkachel: unten bündig, die Bezeichnung so hoch wie ihr Text. */
.au-tile__foot  { margin-top: auto; display: flex; align-items: center; gap: var(--au-s-2); }
.au-tile__foot > .au-status { margin-left: auto; flex: none; }
.au-tile__price { font: 600 var(--au-fs-lg)/var(--au-lh-tight) var(--au-mono); font-variant-numeric: tabular-nums; }
/* Am Kassenplatz die Maße des Sollbilds; Kürzel der Funktionskachel bleibt (_uiux.md §5.3). */
.au-register .au-tile__price { font-size: var(--au-register-fs-price); }
.au-register .au-tile__foot > .au-status { --au-dot: var(--au-register-dot); font-size: var(--au-register-fs-small); font-weight: 500; }
.au-register .au-tile__foot > .au-status--info { color: var(--au-info); }
.au-register .au-tile--fn .au-tile__label { font-size: var(--au-register-fs-fn); }
.au-register .au-tile--fn .au-tile__meta  { font-size: var(--au-register-fs-small); }

/* Bonzeile: zwei Zeilen in fester Höhe — Bezeichnung und Betrag, darunter Nummer, Preis
   und Marken, rechts Menge mit − und + und die Löschtaste. Die Höhe rechnet sich aus den
   Tokens der Stufe, nicht aus dem Inhalt. */
.au-grid--bon .au-grid__row {
  height: calc(var(--au-control-h) + var(--au-fs-lg) * var(--au-lh-text) + var(--au-s-3) * 3);
  grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto;
  align-content: center; row-gap: var(--au-s-2);
}
.au-grid--bon .au-grid__pos   { grid-row: 1; align-self: baseline; }
.au-grid--bon .au-grid__label { grid-column: 2; grid-row: 1; font-size: var(--au-fs-lg); font-weight: 500; }
.au-grid--bon .au-grid__total { grid-column: 3; grid-row: 1; justify-self: end; font: 600 var(--au-fs-lg)/var(--au-lh-text) var(--au-mono); font-variant-numeric: tabular-nums; }
.au-grid--bon .au-grid__sub   { grid-column: 2; grid-row: 2; align-self: center; font-size: var(--au-fs-sm); }
.au-grid--bon .au-qty         { grid-column: 3; grid-row: 2; }
.au-qty { display: flex; align-items: center; gap: var(--au-s-2); }
.au-qty__value { min-width: var(--au-control-h); text-align: center; font: 600 var(--au-fs-lg)/var(--au-lh-text) var(--au-mono); font-variant-numeric: tabular-nums; }

/* Betrag als Hauptsache des Summenblocks (Summe des Bons). Im Vollbild zwei größere Stufen:
   Summe und Rest im Zahlungsdialog, Rückgeld im Abschluss. */
.au-sums__value.au-sums__value--sum { font-size: var(--au-fs-sum); font-weight: 600; }
.au-app--full .au-sums__value.au-sums__value--pay    { font-size: var(--au-register-fs-pay); font-weight: 600; }
.au-app--full .au-sums__value.au-sums__value--change { font-size: var(--au-register-fs-change); font-weight: 600; }

/* Zahlarttaste: zwei Zeilen (Zahlart, Hinweis), je Zahlart getönt; gewählt mit Kontur. */
.au-paykey {
  min-height: var(--au-touch-lg-h); display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  padding: var(--au-s-2) var(--au-s-4); border: 1px solid var(--au-line-strong); border-radius: var(--au-r-lg);
  background: var(--au-panel); color: var(--au-text); cursor: pointer; text-align: left;
  font: 600 var(--au-fs-lg)/var(--au-lh-text) var(--au-font);
}
.au-paykey__sub { font: 400 var(--au-fs-sm)/var(--au-lh-text) var(--au-font); color: var(--au-muted); }
.au-paykey--ok      { background: var(--au-ok-soft);      border-color: var(--au-ok); }
.au-paykey--info    { background: var(--au-info-soft);    border-color: var(--au-info); }
.au-paykey--accent  { background: var(--au-accent-soft);  border-color: var(--au-accent); }
.au-paykey--special { background: var(--au-special-soft); border-color: var(--au-special); }
.au-paykey[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--au-text); }
.au-paykey:disabled { opacity: .45; cursor: default; }

/* Angedockte Bildschirmtastatur (Touch ohne Tastatur): nur Aussehen und Platz, unten über
   die ganze Breite; Belegung und Eingabe liefert das Projekt. */
.au-osk {
  flex: none; display: flex; flex-direction: column; gap: var(--au-s-2); padding: var(--au-s-3);
  background: var(--au-panel-sunken); border-top: 1px solid var(--au-line);
}
.au-osk__row { display: flex; justify-content: center; gap: var(--au-s-2); }
.au-osk__key {
  flex: 1 1 0; max-width: calc(var(--au-touch-lg-h) * 1.4); height: var(--au-touch-lg-h);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  border: var(--au-stroke) solid var(--au-line-strong); border-radius: var(--au-r-md); background: var(--au-panel);
  color: var(--au-text); font: 500 var(--au-fs-lg)/var(--au-lh-tight) var(--au-font);
}
/* In einer Karte (Ziffernfeld unter Code-Kaestchen): ohne Rand oben, eigene Flaeche und
   seitlichen Innenabstand, buendig mit Feldern und Aktionstaste. */
.au-osk--inline { padding: 0; background: none; border-top: 0; }
.au-osk__key--wide  { flex-grow: 2; max-width: none; }
.au-osk__key--space { flex-grow: 6; max-width: none; }
.au-osk__key--action { background: var(--au-action); border-color: var(--au-action); color: var(--au-on-action); }

/* ==========================================================================
   Kleine Bausteine: Ausklapper, Code-Kaestchen, reine Touch-App (_uiux.md §8, §9)
   ========================================================================== */
/* Ausklapper (<details>): selten gebrauchter Weg unter dem Hauptweg ("Wiederherstellungscode
   verwenden"); Zeichen fuer offen und zu, Hoehe eines Bedienelements. */
.au-disclosure__summary {
  list-style: none; display: flex; align-items: center; gap: var(--au-s-2);
  min-height: var(--au-control-h); cursor: pointer;
  font: 400 var(--au-fs-md)/var(--au-lh-tight) var(--au-font); color: var(--au-accent-ink);
}
.au-disclosure__summary::-webkit-details-marker { display: none; }
.au-disclosure__summary::before { content: "\25B8"; content: "\25B8" / ""; flex: none; color: var(--au-adorn); }
.au-disclosure[open] > .au-disclosure__summary::before { content: "\25BE"; content: "\25BE" / ""; }
.au-disclosure[open] > .au-disclosure__summary { margin-bottom: var(--au-s-2); }

/* Kaestchen eines Einmalcodes (§8): eines je Ziffer, nur Anzeige; die Eingabestelle traegt
   aria-current="true" im Fokusring der Vorlage. */
.au-codebox { display: flex; justify-content: center; gap: var(--au-s-2); }
.au-codebox__cell {
  width: calc(var(--au-field-h) * 1.2); height: calc(var(--au-field-h) * 1.4); flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--au-input-bg); border: var(--au-stroke) solid var(--au-line-input); border-radius: var(--au-r-chip);
  font: 500 var(--au-fs-xl)/1 var(--au-mono); color: var(--au-text);
}
.au-codebox__cell[aria-current="true"] { border-color: var(--au-line-focus); box-shadow: var(--au-focus-ring-soft); }

/* Reine Touch-App ohne Shell (§9): Kopfband statt Topbar, dunkel in beiden Themes (das Theme
   setzt --au-appbar-* im Dunkelmodus). */
.au-appbar {
  flex: none; display: flex; align-items: center; gap: var(--au-s-3);
  min-height: calc(var(--au-touch-control-h) + var(--au-s-3)); padding: 0 var(--au-s-4);
  background: var(--au-appbar-bg); color: var(--au-appbar-ink);
}
.au-appbar__title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 var(--au-fs-lg)/var(--au-lh-text) var(--au-font); }
.au-appbar__back {
  display: inline-flex; align-items: center; min-height: var(--au-touch-control-h); padding: 0;
  border: 0; background: none; cursor: pointer; color: var(--au-appbar-link);
  font: 500 var(--au-fs-md)/var(--au-lh-tight) var(--au-font);
}
/* Rueckfrage als Blatt von unten (Telefon): volle Breite, oben gerundet, mit Griff. */
.au-scrim--bottom { align-items: flex-end; }
.au-dialog--bottom {
  align-self: flex-end; width: 100%; max-width: none; border-bottom: 0;
  border-radius: var(--au-r-xl) var(--au-r-xl) 0 0;
}
.au-dialog--bottom::before {
  content: ""; align-self: center; width: calc(var(--au-s-5) * 2); height: var(--au-s-1);
  border-radius: var(--au-s-1); background: var(--au-line-strong);
}
/* Kameraansicht mit Sucher: Bild dunkel in beiden Themes, vier Eckwinkel. */
.au-camera { position: relative; overflow: hidden; aspect-ratio: 3 / 4; background: var(--au-camera-bg); border-radius: var(--au-r-lg); }
.au-camera > video, .au-camera > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.au-camera__corner { position: absolute; width: calc(var(--au-s-5) * 1.5); height: calc(var(--au-s-5) * 1.5); border: 0 solid var(--au-camera-mark); }
.au-camera__corner--tl { top: 15%; left: 15%; border-top-width: 3px; border-left-width: 3px; }
.au-camera__corner--tr { top: 15%; right: 15%; border-top-width: 3px; border-right-width: 3px; }
.au-camera__corner--bl { bottom: 15%; left: 15%; border-bottom-width: 3px; border-left-width: 3px; }
.au-camera__corner--br { bottom: 15%; right: 15%; border-bottom-width: 3px; border-right-width: 3px; }
/* Laufender Zeitzaehler als Hauptsache seiner Karte */
.au-timer { font: 500 var(--au-fs-timer)/1 var(--au-mono); font-variant-numeric: tabular-nums; color: var(--au-text); }
