/* =============================================================================
 * palette.css — die Palette „Neuer Eintrag" am Rechner (Strg+M), Paket E6
 * =============================================================================
 *
 * ⚠️ EIGENER TOKEN-TRAEGER. Die Palette haengt am <body>; `--paper-*`, `--kal-*`
 * und `--mc-*` stehen an ihren Bereichen und loesen sich hier zu NICHTS auf
 * (dieselbe Falle wie Zahnrad-Popover 09.09. und Vorschlags-Dialog 10.09.2026).
 * Alle Farben der Palette stehen deshalb hier, an `.pal-backdrop`.
 *
 * ⚠️ `font-size: medium` + `em` (D15/K3). `html{font-size:14px}` macht rem
 * unbrauchbar (40 rem = 560 px), und weil die Wurzel in px steht, wirkt eine
 * groessere Browser-Grundschrift in der uebrigen App gar nicht. `medium` IST die
 * Browser-Grundschrift: 16 px bei 100 %, 20,8 px bei 130 % — alle Masse unten
 * sind em DIESER Wurzel und wachsen mit. Haarlinien bleiben 1 px.
 *
 * ⚠️ Dunkel laeuft ueber `.dark` am <html> (theme.js), nicht ueber
 * `[data-theme]` wie `design_handoff_palette/tokens.css` (K5). Werte nach
 * README §7 und an den Screens dunkel_61b/61c nachgemessen.
 *
 * Masse: README §4/§6, an den Screens gemessen (2×): Satzflaeche 103 (eine
 * Zeile + reservierte Hilfszeile, D8) · Reihe 64 + Haarlinie · Gruppenzeile 41 ·
 * Karte 77 (45 + 32) · Fuss 56. Boden 41em = 656 px statt 640 (D6, E0-Messung:
 * Montserrat braucht im Regelfall 617 px bei 602 innen).
 * ========================================================================== */

.pal-backdrop {
  --pal-seite: rgba(30, 28, 24, .16);      /* D10: leicht abgedunkelt, KEIN Blur */
  --pal-flaeche: #F7F5EE;
  --pal-kante: #E1DFD8;
  --pal-glanz: #FBFBF8;
  --pal-linie: rgba(30, 28, 24, .08);
  --pal-fuss: #F0EEE7;
  --pal-fuss-kante: #E3E1DB;
  --pal-tinte: #1E1C18;
  --pal-fuell: #1E1C18;                    /* gesetzte Kapsel, aktiver Knopf */
  --pal-auf-fuell: #F7F4ED;
  --pal-naht: rgba(247, 244, 237, .22);
  --pal-text2: #57534A;                    /* Frage der Hilfszeile, offene Kapsel */
  /* ⚠️ Die Vorlage setzt hier #96917F — das misst auf der Palettenflaeche 2,89:1.
     Dieselbe Abweichung wie im Mobil-, Notizen- und Kontext-Zuschnitt: der Ton
     traegt AUSKUNFT (Hilfszeile, Spalte der Gruppenzeile, stille Haelfte des
     Durchschalters, Fuss) und bekommt deshalb #6F6A58 (5,0:1; auf dem dunkleren Fuss 4,7:1 — #726D5B riss dort mit 4,46). */
  --pal-still: #6F6A58;
  --pal-blass: #B3AE9F;                    /* Platzhalter, Titel im Rueckfall, leere Punkte */
  --pal-umriss: #CFC8B8;
  --pal-kbd: #FBF9F4;
  --pal-karte: #FFFFFF;
  --pal-karte-rand: #E6E1D6;
  --pal-karte-linie: #ECE7DC;
  --pal-meta: #F7F4EE;
  --pal-meta-text: #6B675D;
  --pal-kreis: #9A968B;
  /* ⚠️ Die Kategorien stehen seit dem 22.09.2026 in `style.css` unter `:root`
     (`--tok-*`) — EINE Quelle fuer Palette und Erfassungsmaske. Hier standen
     dieselben vier Zahlen ein zweites Mal; das Paket „Mobile Journey 65–68"
     traegt sie zeichengleich, und beide Masken sollen den Satz gleich
     auszeichnen. `--pal-person-flaeche` bleibt hier: sie ist die Fuellung der
     Kapsel, keine Kategorie des Satzes. */
  --pal-person: var(--tok-person);  --pal-person-hell: var(--tok-person-hell);  --pal-person-flaeche: #F3EEF6;
  --pal-frist: var(--tok-frist);
  --pal-aufwand: var(--tok-aufwand);
  --pal-rost: var(--tok-rost);
  --pal-schatten: 0 24px 60px rgba(30, 28, 24, .22), 0 2px 8px rgba(30, 28, 24, .08);
  /* Runde 72: die Pille „× esc" — gebaut wie Speichern, aber hell (#F2EEE5 wie Abbrechen). */
  --pal-pille: #F2EEE5;
  --pal-pille-hover: #EAE5DA;
  --pal-pille-taste: rgba(30, 28, 24, .07);
  --pal-kbd-fuell: rgba(251, 249, 244, .14);   /* die Taste im schwarzen Speichern */
  --pal-ring: #171512;                         /* Tastaturfokus 2 px mit 2 px Abstand */
  /* Runde 72 §5.3: das weisse Feld und seine Mikro-Spalte. */
  --pal-feld: #FFFFFF;
  --pal-feld-rand: #E2DCCE;
  --pal-feld-fokus: #1E1C18;
  --pal-feld-linie: #ECE7DC;                   /* Haarlinie vor dem Mikro = Textgrenze */
  --pal-mic-still: #96917F;                    /* Mikro, sobald Text steht (Runde 56) — Zeichen, kein Text: 3,2:1 auf Weiss */
  --pal-mic-hover: rgba(30, 28, 24, .05);
  --pal-stopp: #993C1D;                        /* Stopp-Knopf waehrend der Aufnahme (72e) */
  --pal-stopp-quadrat: #FBF9F4;
  --pal-stopp-ring: #FFFFFF;
  --pal-cursor: #1E1C18;
  --pal-beispiel: #96917F;
  --pal-auswahl: rgba(94, 67, 115, .18);
  /* ---- v7 E5 · Palette-Optik (README §6.1, K13/K14) ----------------------------
     Glasrand außen (5 px, OHNE Weichzeichner — D10/K13: Blur kostet beim Tippen),
     Chips hell statt schwarz gefüllt, Speichern als Rost-Pille mit Pfeil-Kreis. */
  --pal-glasrand: rgba(255, 255, 255, .55);
  --pal-glaslinie: rgba(30, 28, 24, .08);
  --pal-chip: #ECE9E1;                         /* --v7-s3 auf der Palettenfläche, deckend */
  --pal-chip-naht: rgba(30, 28, 24, .12);
  --pal-chip-rost: #F1E3DA;                    /* --v7-ac-soft deckend: Rost 6,2:1 darauf */
  --pal-chip-rost-text: #993C1D;
  --pal-seg: #EFECE6;                          /* die Art-Schiene; #ECE9E1 maß mit der stillen Hälfte 4,46:1 — dieser 4,59 */
  --pal-seg-an: #FFFFFF;
  --pal-cta: #C0451F;  --pal-cta-hover: #9A3714;  --pal-cta-fg: #FFFFFF;
  --pal-cta-schatten: 0 16px 34px -16px rgba(192, 69, 31, .6);
  --pal-cta-kreis: rgba(255, 255, 255, .18);

  position: fixed; inset: 0; z-index: 1300;
  background: var(--pal-seite);
  display: flex; justify-content: center; align-items: flex-start;
  /* Oben bei 12 vh verankert, waechst nach unten (Runde 62) — nie mittig: mittig
     spraenge die Palette bei jedem Editor. */
  padding-top: 12vh; box-sizing: border-box;
  font-size: medium;
}
.dark .pal-backdrop {
  --pal-seite: rgba(0, 0, 0, .38);
  --pal-flaeche: rgba(32, 29, 23, .96);
  --pal-kante: #2B2822;
  --pal-glanz: #2B2822;
  --pal-linie: rgba(242, 239, 230, .10);
  --pal-fuss: #1A1712;
  --pal-fuss-kante: #322D23;
  --pal-tinte: #F2EFE6;
  --pal-fuell: #EFEBE0;                    /* die Umkehr: Fuellung wird Papier */
  --pal-auf-fuell: #17140F;
  --pal-naht: rgba(23, 20, 15, .22);
  --pal-text2: #B0AA9C;                    /* lesbarer Text nie darunter */
  --pal-still: #B0AA9C;
  --pal-blass: #8A8476;                    /* nur Beispielsatz + gesperrtes Speichern */
  --pal-umriss: #4A4438;
  --pal-kbd: #2A2620;
  --pal-karte: #2A2620;
  --pal-karte-rand: #4A4438;
  --pal-karte-linie: #3A352C;
  --pal-meta: #241F19;
  --pal-meta-text: #B0AA9C;
  --pal-kreis: #B0AA9C;
  /* ⚠️ Siehe oben: die dunklen Kategorien stehen in `style.css` unter `.dark`. */
  --pal-person: var(--tok-person);  --pal-person-hell: var(--tok-person-hell);  --pal-person-flaeche: #2E2636;
  --pal-frist: var(--tok-frist);
  --pal-aufwand: var(--tok-aufwand);
  --pal-rost: var(--tok-rost);
  --pal-schatten: 0 24px 60px rgba(0, 0, 0, .5);
  /* Runde 72 §9 — Vorschlag, nicht gezeichnet. */
  --pal-pille: #2A2620;
  --pal-pille-hover: #332E26;
  --pal-pille-taste: rgba(242, 239, 230, .10);
  --pal-kbd-fuell: rgba(23, 20, 15, .12);
  --pal-ring: #EFEBE0;
  --pal-feld: #2A2620;
  --pal-feld-rand: #3A352C;
  --pal-feld-fokus: #EFEBE0;
  --pal-feld-linie: rgba(242, 239, 230, .10);
  --pal-mic-still: #B0AA9C;
  --pal-mic-hover: rgba(242, 239, 230, .06);
  --pal-stopp-ring: #2A2620;
  /* ⚠️ P6: der gezeichnete Rost #993C1D misst auf dem dunklen Feld nur 2,16:1 — ein Bedienelement
     braucht 3:1, der Knopf verschwand fast. Dunkel darum der helle Rost des Kanons (#E0764A,
     wie `--tok-rost`) mit einem Quadrat in Tinte: gemessen 4,91:1 gegen das Feld, 6,0:1 Quadrat gegen Kreis. */
  --pal-stopp: #E0764A;
  --pal-stopp-quadrat: #17140F;
  --pal-cursor: #F2EFE6;
  --pal-beispiel: #8A8476;
  --pal-auswahl: rgba(201, 182, 214, .28);
  --pal-glasrand: rgba(35, 32, 25, .72);
  --pal-glaslinie: rgba(245, 243, 238, .08);
  --pal-chip: #39352D;
  --pal-chip-naht: rgba(242, 239, 230, .14);
  --pal-chip-rost: #3B2A21;
  --pal-chip-rost-text: #EE8250;               /* --v7-ac-pille: hell genug auf der dunklen Fläche */
  --pal-seg: #39352D;
  --pal-seg-an: #2A2620;
  --pal-cta: #E56C39;  --pal-cta-hover: #F07F4E;  --pal-cta-fg: #1A1815;
  --pal-cta-schatten: 0 16px 34px -16px rgba(229, 108, 57, .45);
  --pal-cta-kreis: rgba(26, 24, 21, .14);
}

/* ---- Navigate v9 „Kalk" (12.10.2026, AENDERUNGEN_v9.md §1, §1.3, §3.1) -------
   Die Palette wird deckend und neutral: Fläche --s1, ein Rahmen --line2, kein
   Glasrand, keine Glanzkante. Erkannte Teile nur noch über Tinte und Grau — die
   Kategorien `--tok-*` werden HIER überschrieben, nicht unter `:root`: dort
   teilt sie sich die Palette mit der Telefon-Erfassung, und das Telefon bleibt,
   bis Thomas entschieden hat (V11). Speichern ist Tinte, nie Rost; gesetzte
   Flächen sind hellblau statt schwarz (§3.13). Werte deckend gerechnet.
   ⚠️ `.nz-spalte` (Notizen v10, N3) leiht Kapselreihe und Fällig-Editor und
   trägt deshalb dieselben Marken — plus die fünf, die sonst nur der
   Grundblock oben aus `--tok-*` ableitet. */
.pal-backdrop, .nz-spalte {
  --pal-person: var(--tok-person);  --pal-person-hell: var(--tok-person-hell);  --pal-frist: var(--tok-frist);
  --pal-aufwand: var(--tok-aufwand);  --pal-rost: var(--tok-rost);
  --tok-art: #141618;  --tok-person: #141618;  --tok-person-hell: #A3A8AE;
  --tok-frist: #4A4F55;  --tok-aufwand: #141618;  --tok-rost: #B42332;  --tok-neben: #4A4F55;
  --tok-person-punkt: #A3A8AE;  --tok-frist-punkt: #B9BEC4;  --tok-aufwand-punkt: #A3A8AE;
  --pal-seite: rgba(20, 22, 24, .16);
  --pal-flaeche: #FFFFFF;  --pal-kante: #D0D0D1;  --pal-glanz: #FFFFFF;
  --pal-glasrand: transparent;  --pal-glaslinie: transparent;
  --pal-linie: rgba(20, 22, 24, .09);  --pal-fuss: #F7F7F8;  --pal-fuss-kante: #E7E7E7;
  --pal-tinte: #141618;  --pal-fuell: #DCE8F5;  --pal-auf-fuell: #14324F;  --pal-naht: rgba(20, 50, 79, .2);
  --pal-text2: #4A4F55;  --pal-still: #62686F;   /* #6B7178 maß auf der Art-Schiene 4,32:1 — dieser 4,9 */  --pal-blass: #A3A8AE;  --pal-umriss: #CED1D4;
  --pal-kbd: #F7F7F8;  --pal-karte: #FFFFFF;  --pal-karte-rand: #E2E3E4;  --pal-karte-linie: #EDEDEE;
  --pal-meta: #F7F7F8;  --pal-meta-text: #5F656B;  --pal-kreis: #8A9096;
  --pal-person-flaeche: #F2F3F4;
  --pal-schatten: 0 18px 40px -16px rgba(20, 22, 24, .28), 0 0 0 1px rgba(20, 22, 24, .04);
  --pal-pille: #F2F3F4;  --pal-pille-hover: #E8E9EB;  --pal-pille-taste: rgba(20, 22, 24, .07);
  --pal-kbd-fuell: rgba(255, 255, 255, .14);  --pal-ring: #141618;
  --pal-feld: #FFFFFF;  --pal-feld-rand: #D0D0D1;  --pal-feld-fokus: #141618;  --pal-feld-linie: #EDEDEE;
  --pal-mic-still: #8A9096;  --pal-mic-hover: rgba(20, 22, 24, .05);
  --pal-stopp: #B42332;  --pal-stopp-quadrat: #FFFFFF;  --pal-stopp-ring: #FFFFFF;
  --pal-cursor: #141618;  --pal-beispiel: #9AA0A6;  --pal-auswahl: rgba(58, 97, 135, .18);
  --pal-chip: #EBECEC;  --pal-chip-naht: rgba(20, 22, 24, .12);
  --pal-chip-rost: #F9EDEF;  --pal-chip-rost-text: #B42332;
  --pal-seg: #EFF0F1;  --pal-seg-an: #FFFFFF;
  --pal-cta: #141618;  --pal-cta-hover: #000000;  --pal-cta-fg: #FFFFFF;
  --pal-cta-schatten: none;  --pal-cta-kreis: rgba(255, 255, 255, .18);
}
.dark .pal-backdrop, .dark .nz-spalte {
  --tok-art: #ECEDEE;  --tok-person: #ECEDEE;  --tok-person-hell: #6A6D70;
  --tok-frist: #B5B7B8;  --tok-aufwand: #ECEDEE;  --tok-rost: #F06A78;  --tok-neben: #B5B7B8;
  --tok-person-punkt: #6A6D70;  --tok-frist-punkt: #5A5D60;  --tok-aufwand-punkt: #6A6D70;
  --pal-seite: rgba(0, 0, 0, .38);
  --pal-flaeche: #1A1C1E;  --pal-kante: #3E3F40;  --pal-glanz: #1A1C1E;
  --pal-glasrand: transparent;  --pal-glaslinie: transparent;
  --pal-linie: rgba(255, 255, 255, .08);  --pal-fuss: #161819;  --pal-fuss-kante: #2A2C2E;
  --pal-tinte: #ECEDEE;  --pal-fuell: #1C2E42;  --pal-auf-fuell: #DCE9F7;  --pal-naht: rgba(220, 233, 247, .2);
  --pal-text2: #B5B7B8;  --pal-still: #9A9D9E;   /* #8F9293 maß auf der Art-Schiene 4,47:1 */  --pal-blass: #6A6D70;  --pal-umriss: #45474A;
  --pal-kbd: #232527;  --pal-karte: #232527;  --pal-karte-rand: #3E3F40;  --pal-karte-linie: #2E3032;
  --pal-meta: #1F2123;  --pal-meta-text: #B5B7B8;  --pal-kreis: #8F9293;
  --pal-person-flaeche: #26282A;
  --pal-schatten: 0 20px 50px -20px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .06);
  --pal-pille: #232527;  --pal-pille-hover: #2C2E31;  --pal-pille-taste: rgba(255, 255, 255, .1);
  --pal-kbd-fuell: rgba(14, 15, 16, .12);  --pal-ring: #ECEDEE;
  --pal-feld: #1F2123;  --pal-feld-rand: #3E3F40;  --pal-feld-fokus: #ECEDEE;  --pal-feld-linie: rgba(255, 255, 255, .08);
  --pal-mic-still: #8F9293;  --pal-mic-hover: rgba(255, 255, 255, .06);
  --pal-stopp: #F06A78;  --pal-stopp-quadrat: #0E0F10;  --pal-stopp-ring: #1F2123;
  --pal-cursor: #ECEDEE;  --pal-beispiel: #6E7175;  --pal-auswahl: rgba(157, 188, 221, .28);
  --pal-chip: #2A2C2E;  --pal-chip-naht: rgba(255, 255, 255, .14);
  --pal-chip-rost: #38272B;  --pal-chip-rost-text: #F06A78;
  --pal-seg: #2A2C2E;  --pal-seg-an: #1A1C1E;
  --pal-cta: #ECEDEE;  --pal-cta-hover: #FFFFFF;  --pal-cta-fg: #0E0F10;
  --pal-cta-schatten: none;  --pal-cta-kreis: rgba(14, 15, 16, .14);
}

.pal {
  /* 44 % des Fensters, nie unter 41em (656 px, D6), nie ueber 47,5em (760 px). */
  width: clamp(41em, 44vw, 47.5em); max-width: calc(100vw - 2em);
  max-height: calc(100vh - 12vh - 1.5em);        /* bei 12 vh oben bleiben unten 24 px Luft */
  display: flex; flex-direction: column; box-sizing: border-box;
  background: var(--pal-flaeche); color: var(--pal-tinte);
  /* v7 E5: innen Radius 19, außen der 5-px-Glasrand mit Haarlinie → 24 (README §6.1). */
  /* v9 §3.1 (12.10.2026): EIN Rahmen 1 px --line2, deckend, Radius 10, nur der
     Schatten des Aufklapp-Fensters — kein Glasrand, keine Glanzkante. */
  border: 1px solid var(--pal-kante); border-radius: 10px;
  box-shadow: var(--pal-schatten);
  font-family: var(--font, 'Archivo', system-ui, sans-serif); font-weight: 500; line-height: 1.3;
  overflow: hidden;
}
.pal *, .pal *::before, .pal *::after { box-sizing: border-box; }
.pal button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; }
.pal-ic { width: 1em; height: 1em; flex: none; }

/* ---- 0 · Kopfzeile (Runde 72): NEUER EINTRAG · × esc ---------------------- */
.pal-kopf { flex: none; display: flex; justify-content: space-between; align-items: center; gap: .75em;
  padding: .75em .75em .625em 1.625em; }                                   /* 12 12 10 26 */
.pal-kopf-titel { font-size: var(--t2); font-weight: 600; letter-spacing: 0; text-transform: none;   /* v9 §3.7 */
  color: var(--pal-tinte); white-space: nowrap; }
.pal .pal-zu { flex: none; display: inline-flex; align-items: center; gap: .5em; height: 2.125em;
  padding: 0 .375em 0 .75em; border-radius: 7px; background: var(--pal-pille); border: 1px solid var(--pal-umriss);
  color: var(--pal-tinte); }                                               /* 34 hoch, Polster 0 6 0 12 */
.pal .pal-zu:hover { background: var(--pal-pille-hover); }
.pal-zu .pal-ic { width: .8125em; height: .8125em; stroke-width: 2.2; }   /* 13 × 13, Strich 2,2 */
.pal-zu-kbd { font: inherit; font-size: var(--t1); font-weight: 600; line-height: 1; height: 2em; padding: 0 .6364em;
  border-radius: .5455em; background: var(--pal-pille-taste); color: var(--pal-tinte);
  display: inline-flex; align-items: center; }                             /* 22 hoch, 0 7, Radius 6, 11/600 */

/* ---- 1 · Satz ------------------------------------------------------------- */
/* Runde 72 §5.3: der Satz steht in einem WEISSEN FELD, 16 px vom Palettenrand, Radius 14,
   mindestens 60 hoch. ⚠️ Fokusrand OHNE Sprung (§10.1): der Rand bleibt fest 1 px, die
   halbe Pixel Mehrbreite kommt als Schatten nach innen — so wandert der Text nicht. */
.pal-satz { padding: 0 1em; }
.pal-rahmen { display: flex; align-items: stretch; min-height: 3.75em; padding: .25em 0 .25em 1em;
  background: var(--pal-feld); border: 1px solid var(--pal-feld-rand); border-radius: 8px; cursor: text; }
.pal-rahmen.is-fokus { border-color: var(--pal-feld-fokus); box-shadow: inset 0 0 0 .5px var(--pal-feld-fokus); }
/* Die Textzone: Polster 9 10 9 0 — die 10 rechts sind der Abstand der Zeilen zur Haarlinie.
   Bis drei Zeilen waechst sie mit, ab der vierten scrollt sie in sich, ohne Balken.
   Senkrecht mittig (`margin: auto 0` am Inhalt — Auto-Raender schneiden beim Scrollen nichts ab). */
.pal-feld { flex: 1 1 auto; min-width: 0; padding: .5625em .625em .5625em 0; display: flex; flex-direction: column;
  max-height: calc(1.125em + 3 * var(--t4) * 1.3334); overflow-y: auto; scrollbar-width: none; }   /* drei Zeilen der Eingabe (--t4, v9 §0.2) */
.pal-feld::-webkit-scrollbar { display: none; }
.pal-feld-innen { position: relative; margin: auto 0; min-width: 0; }
.pal-schicht, .pal-text {
  display: block; width: 100%; margin: 0; padding: 0; border: 0;
  font: inherit; font-size: var(--t4); font-weight: 500; line-height: 1.3334; letter-spacing: -.012em;
  white-space: pre-wrap; overflow-wrap: break-word; word-break: normal;
}
.pal-schicht { color: var(--pal-tinte); pointer-events: none; min-height: 1.3334em; position: relative; z-index: 1; }
/* P3 (F1): das Textfeld ist unsichtbare Eingabe — auch sein Cursor und seine Markierung.
   Beides zeichnet die Palette aus der Schicht (`.pal-cursor`, `.pal-auswahl`). */
.pal-text {
  position: absolute; inset: 0; height: 100%; resize: none; overflow: hidden; outline: none; z-index: 2;
  background: transparent; color: transparent; caret-color: transparent;
  -webkit-text-fill-color: transparent;
}
.pal-text::selection { background: transparent; }
.pal-auswahl { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.pal-auswahl i { position: absolute; background: var(--pal-auswahl); border-radius: 2px; }
/* Der Cursor: 2 × 22 px, Tinte, Radius 1 (§5.3). Steht er still, blinkt er; beim Tippen und
   Bewegen steht er sichtbar (die Palette startet das Blinken bei jeder Bewegung neu). */
/* v9 §0.2: der Cursor wächst mit der Eingabe (--t4) — R72 maß 22 px zu 21 px Schrift (1,05). */
.pal-cursor { position: absolute; left: 0; top: 0; z-index: 3; width: 2px; height: calc(var(--t4) * 1.05); border-radius: 1px;
  background: var(--pal-cursor); pointer-events: none; will-change: transform; }
.pal-cursor[hidden] { display: none; }
@keyframes palBlink { 0%, 49.9% { opacity: 1; } 50%, 100% { opacity: 0; } }
.pal-cursor.is-blink { animation: palBlink 1.06s step-end .5s infinite; }
@media (prefers-reduced-motion: reduce) { .pal-cursor.is-blink { animation: none; } }
/* Runde 72: der Platzhalter des Textfelds ist nur noch fuer die Vorlesehilfe da — sichtbar steht
   der Beispielsatz in der Schicht, mit seinen gepunkteten Linien (`.pal-beispiel`). */
.pal-text::placeholder { color: transparent; -webkit-text-fill-color: transparent; opacity: 1; }
/* Beispielsatz (§5.5): grau #96917F, 400, die erkannten Teile 2 px GEPUNKTET im hellen Randton
   (K15, `--tok-*-punkt`), die Schrift bleibt grau. ⚠️ #96917F misst auf Weiss 3,2:1 — es ist
   ein Platzhalter, kein Inhalt, und die Uebergabe setzt genau diesen Ton (dunkel #8A8476). */
.pal-beispiel { color: var(--pal-beispiel); font-weight: 400; }
/* ⚠️ `.is-punkt` gehoert in den Waehler: ohne ihn gleicht er die 600er-Regel der erkannten
   Woerter nur aus, und die spaetere gewinnt — die Namen im Beispiel standen fett. */
.pal-schicht .pal-beispiel .pal-u.is-punkt { color: inherit; font-weight: 400; text-decoration-style: dotted; }
.pal-beispiel .pal-u-person  { text-decoration-color: var(--tok-person-punkt); }
.pal-beispiel .pal-u-frist   { text-decoration-color: var(--tok-frist-punkt); }
.pal-beispiel .pal-u-aufwand { text-decoration-color: var(--tok-aufwand-punkt); }

/* Erkanntes wird UNTERSTRICHEN, nicht eingekapselt (Runde 52): 2 px in der
   Kategoriefarbe, Schrift in derselben Tinte, Zeilenhoehe unveraendert.
   ⚠️ GEDREHT mit P3 (K4, Runde 72 §5.4): erkannte Person, Frist und Aufwand stehen in 600.
   Das Verbot „kein Staerkewechsel" (K1, 21.09.) galt dem nativen Cursor, der dem Textfeld
   folgte — der eigene Cursor rechnet aus der Schicht, dort kann nichts mehr driften.
   Die Art (Aufgabe/Rueckmeldung) und ein blosser Vorschlag bleiben 500. */
.pal-u { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .22em;
         text-decoration-skip-ink: none; }
.pal-u-art     { color: var(--pal-tinte);   text-decoration-color: var(--pal-tinte); }
.pal-u-person  { color: var(--pal-person);  text-decoration-color: var(--pal-person); }
.pal-u-frist   { color: var(--pal-frist);   text-decoration-color: var(--pal-frist); }
.pal-u-aufwand { color: var(--pal-aufwand); text-decoration-color: var(--pal-aufwand); }
.pal-u-person.is-vorschlag { text-decoration-color: var(--pal-person-hell); }
.pal-schicht .pal-u-person:not(.is-vorschlag), .pal-schicht .pal-u-frist, .pal-schicht .pal-u-aufwand { font-weight: 600; }
/* P5 (Runde 72 §6, Regel 7): erkannte Woerter brechen NIE in sich um und werden nie getrennt —
   „1 h", „15 Min", „bis Freitag", „für Maximiliane Hohenlohe-Langenburg" wandern als Ganzes.
   Getrennt wird nur gewoehnlicher Text, und zwar an den weichen Trennstellen, die palette.js
   aus den mitgelieferten Mustern setzt (`hyphens: manual`) — nicht mit dem Browser-Woerterbuch. */
.pal-schicht { hyphens: manual; -webkit-hyphens: manual; }
.pal-schicht .pal-u { white-space: nowrap; hyphens: none; -webkit-hyphens: none; }

/* Die Mikro-Spalte (§5.3, §10.2): ein eigenes Flex-Kind, kein Overlay. 44 breit PLUS die
   1-px-Haarlinie (content-box) — die Spalte waechst mit dem Feld, das Mikro bleibt in
   ihrer Mitte, auch bei drei Zeilen (§10.3). */
.pal-mic-spalte[hidden] { display: none; }
.pal-mic-spalte { flex: none; box-sizing: content-box; width: 2.75em; border-left: 1px solid var(--pal-feld-linie);
  display: flex; align-items: center; justify-content: center; cursor: default; }
/* Mikro: Tinte, solange das Feld leer ist (auch mit Beispielsatz) — #96917F, sobald Text steht. */
.pal .pal-mic { width: 2.75em; height: 2.75em; display: inline-flex; align-items: center; justify-content: center;
  border-radius: .625em; color: var(--pal-tinte); }
.pal-mic .pal-ic { width: 1.125em; height: 1.125em; }
.pal.hat-text .pal-mic { color: var(--pal-mic-still); }
.pal .pal-mic:hover { background: var(--pal-mic-hover); }
/* Waehrend der Aufnahme IST der Knopf der Stopp-Knopf (72e): Kreis 36 in Rost, Quadrat 9 × 9,
   aussen 1,5 px Weiss und 1 px Haarlinie. Kein Pulsieren, kein Pegel — der gefuellte Kreis ist
   das Signal. Gleiche Stelle, gleiche Trefferflaeche 44 × 44; nichts verschiebt sich. */
.pal-stopp { display: none; width: 2.25em; height: 2.25em; border-radius: 50%; background: var(--pal-stopp);
  box-shadow: 0 0 0 1.5px var(--pal-stopp-ring), 0 0 0 2.5px var(--pal-feld-rand); align-items: center; justify-content: center; }
.pal-stopp::after { content: ''; width: .5625em; height: .5625em; border-radius: 2px; background: var(--pal-stopp-quadrat); }
.pal.is-aufnahme .pal-mic .pal-ic { display: none; }
.pal.is-aufnahme .pal-mic .pal-stopp { display: flex; }
.pal.is-aufnahme .pal-mic:hover { background: none; }

/* Hilfszeile: EINE Zeile aus drei Stuecken. ⚠️ GEDREHT (F2, Thomas 28.09.2026): sie spricht nur
   noch bei einer offenen Personenfrage und reserviert KEINEN Platz mehr (D8 ist aufgehoben) —
   sonst `hidden`. Sie fluchtet mit dem Text im Feld (16 + 1 + 16 px). */
.pal-hilfe[hidden] { display: none; }
.pal-hilfe { height: 1.5em; margin: .5em 1em 0 1.0625em; display: flex; align-items: center;
  gap: .5em; font-size: 1em; color: var(--pal-still); white-space: nowrap; overflow: hidden; }
.pal-hilfe > * { font-size: var(--t2); }
.pal-h-frage { color: var(--pal-text2); flex: none; }
.pal-h-verb { flex: none; }
.pal-h-strich { width: 1px; height: 1.2em; background: var(--pal-umriss); flex: none; margin: 0 .35em; font-size: 1em; }
.pal-h-weg { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pal-kbd .pal-ic { width: 1em; height: 1em; stroke-width: 2.2; vertical-align: -.15em; }
.pal-kbd { font: inherit; font-size: var(--t2); font-weight: 600; color: var(--pal-text2); background: var(--pal-kbd);
  border: 1px solid var(--pal-umriss); border-radius: .45em; padding: .1em .5em; min-width: 1.7em; text-align: center;
  display: inline-block; line-height: 1.5; }

/* ---- 2 · Kapselreihe — bricht NIE um -------------------------------------- */
/* Die Reihe reicht bis 18 px an den Rand (README §4), die Haarlinie nur bis 22 —
   deshalb ist die Linie ein eigenes Element und kein `border-top`. */
/* Runde 72: Polster 14 16 — die erste Kapsel fluchtet mit der Feldkante (72b). Zwischen Feld
   und Reihe steht KEINE Haarlinie mehr: das Feld hat seinen Rand. Die Linie unter der Reihe
   (ueber Karte, Zeile, Editor) bleibt. */
.pal-reihe { display: flex; flex-wrap: nowrap; align-items: center; gap: .375em; min-width: 0;
  position: relative; padding: .875em 1em; }
.pal-ziel::before { content: ''; position: absolute; top: 0; left: 1.375em; right: 1.375em;
  height: 1px; background: var(--pal-linie); }

.pal .pal-kap, .pal .pal-art { flex: none; white-space: nowrap; height: 2em; display: inline-flex; align-items: center;
  border: 1.5px solid var(--pal-umriss); border-radius: 1em; color: var(--pal-text2); }
.pal-lab { font-size: var(--t2); font-weight: 600; padding: 0 .8334em; }
.pal .pal-kap.is-ist { background: var(--pal-fuell); border-color: transparent; color: var(--pal-auf-fuell);
  background-clip: padding-box; }
.pal .pal-kap.is-rost { background: var(--pal-rost); }
/* v7 E5 (K14): gesetzte Kapseln sind CHIPS — helle Fläche, Tinte. ⚠️ OHNE das
   Vorwort aus K14: es kostete bei 656 px den Namen (gemessen, D6 geht vor). Überfällig bleibt Rost (Schrift auf zartem Rost), die Person
   trägt ihre Kategoriefarbe. ⚠️ Die Regeln stehen NACH den alten, damit sie gewinnen. */
.pal .pal-kap.is-ist { background: var(--pal-chip); color: var(--pal-tinte); }
.pal .pal-kap.is-ist.is-rost { background: var(--pal-chip-rost); color: var(--pal-chip-rost-text); }
.pal .pal-kap.is-ist.is-name { color: var(--pal-person); }
.pal .pal-kap.is-ist .pal-x { border-left-color: var(--pal-chip-naht); }
.pal .pal-kap.is-ist .pal-x:hover { background: var(--pal-chip-naht); }

.pal .pal-kap.is-lila { border-color: var(--pal-person-hell); color: var(--pal-person); background: var(--pal-person-flaeche);
  padding: 0; font-size: 1em; }
.pal .pal-kap.is-lila:hover { border-color: var(--pal-person); }
.pal-kbd-lila { color: var(--pal-person); border-color: var(--pal-person-hell); background: var(--pal-flaeche); }
.pal-kap .pal-kbd { margin: 0 .55em 0 -.25em; }
.pal-anl { display: inline-flex; align-items: center; gap: .3em; font-size: var(--t2); font-weight: 600; margin: 0 .8em 0 -.45em; }
.pal-anl .pal-ic { width: 1.05em; height: 1.05em; stroke-width: 2.2; }
/* „neu": die stille Marke an der frisch vorgemerkten Person (57d). */
.pal-neu { font-size: var(--t1); font-weight: 600; opacity: .6; margin: 0 .8em 0 -.35em; }
/* Nur die NAMENSKAPSEL gibt nach (README §6): Ellipse im Label, nie in der Reihe. */
.pal-kap.is-name { flex: 0 1 auto; min-width: 4.5em; }
.pal-kap.is-name .pal-lab { overflow: hidden; text-overflow: ellipsis; max-width: clamp(10em, calc(10em + (100vw - 93em) * .6), 17.5em); }
.pal .pal-x { flex: none; width: 1.75em; height: 100%; display: inline-flex; align-items: center; justify-content: center;
  border-left: 1px solid var(--pal-naht); border-radius: 0 1em 1em 0; color: inherit; }
.pal .pal-x:hover { background: var(--pal-naht); }
.pal-x .pal-ic { width: .75em; height: .75em; stroke-width: 2.2; }

.pal-art { padding: 0; overflow: hidden; }
/* Haelften mit Polster 0 10 px (bei 12 px Schrift: .8334em) — README §6. */
.pal .pal-art-h { height: 100%; padding: 0 .8334em; font-size: var(--t2); font-weight: 600; color: var(--pal-still);
  display: inline-flex; align-items: center; }
.pal .pal-art-h.is-an { background: var(--pal-fuell); color: var(--pal-auf-fuell); }
/* v7 E5: die Art-Schiene im Gestalt des Pill-Segments im Brett — Schiene getönt,
   die gewählte Hälfte weiß mit Schatten. */
.pal .pal-art { border-color: transparent; background: var(--pal-seg); padding: 2px; }
.pal .pal-art .pal-art-h { border-radius: 1em; }
.pal .pal-art .pal-art-h.is-an { background: var(--pal-seg-an); color: var(--pal-tinte); box-shadow: 0 1px 3px rgba(30, 28, 24, .14); }
.dark .pal .pal-art .pal-art-h.is-an { box-shadow: 0 1px 3px rgba(0, 0, 0, .4); }
.pal .pal-art-h:not(.is-an):hover { color: var(--pal-tinte); }

/* Aufwand: Zeichen 13 px · Beschriftung FESTER Breite (Mass „15 Min", mittig) ·
   drei Punkte. Offen: kein Zeichen, drei LEERE Punkte (57g). */
.pal .pal-kap[data-pal-aufwand] { cursor: pointer; padding: 0; font-size: 1em; }
.pal button.pal-kap[data-pal-aufwand]:hover, .pal button.pal-kap[data-pal-frist]:hover { border-color: var(--pal-text2); }
.pal button.pal-kap[data-pal-frist] { padding: 0; font-size: 1em; }
.pal-lab[data-pal-frist] { cursor: pointer; }
.pal-kap.is-aufwand .pal-ic-stufe { width: .8125em; height: .8125em; margin-left: .75em; }
/* ⚠️ border-box: die 40 px des Masses „15 Min" gelten dem INHALT — das Polster
   (2 × .5em) kommt dazu, sonst waechst die Kapsel zwischen „1 h" und „15 Min" um 10 px. */
.pal-kap.is-aufwand.is-ist .pal-lab { min-width: 4.334em; text-align: center; padding: 0 .5em; }
.pal-kap.is-aufwand:not(.is-ist) .pal-lab { padding-right: .5em; }
.pal-pkt { display: inline-flex; gap: .1875em; margin-right: .75em; align-items: center; }
.pal-kap.is-ist .pal-pkt { margin-right: .625em; }
.pal-pkt i { width: .25em; height: .25em; border-radius: 50%; border: 1px solid var(--pal-blass); }
.pal-kap.is-ist .pal-pkt i { border: 0; background: currentColor; opacity: .45; }
.pal-kap.is-ist .pal-pkt i.is-an { opacity: 1; }

/* ---- Geistertext: das Fehlende grau am Cursor, mit der Marke Tab (57a) ------- */
.pal-geist { color: var(--pal-person-hell); }
.pal-kbd-satz { font-size: var(--t1); vertical-align: .22em; margin-left: .6em; letter-spacing: 0; }

/* ---- Die EINE Zeile unter der Reihe (Plan §5a) ------------------------------ */
.pal-zeile-platz { position: relative; }
.pal-zeile-platz::before { content: ''; position: absolute; top: 0; left: 1.375em; right: 1.375em; height: 1px; background: var(--pal-linie); }
.pal-zeile { display: flex; align-items: center; gap: .5em; padding: .5em 1.4375em; min-height: 3em; white-space: nowrap; min-width: 0; }
.pal-zeile.is-neu { padding: 1em 1.4375em; gap: .625em; }
/* Zwei Gruppen in der Pillenzeile (Testbefund Thomas 05.10.2026): die Kontakte und dahinter
   die Wege „als Person / als Thema". Einzeilig sind die Gruppen unsichtbar — alles steht
   nebeneinander wie gezeichnet. Passt die Zeile nicht (`is-zwei`, entschieden in
   `zeileZwei`), bekommen die Wege eine ZWEITE Zeile unter der ersten Pille; vorher lief
   die Zeile rechts aus der Palette und „als Person" war nicht zu sehen.
   ⚠️ `is-zwei` setzt das Skript je Stand EINMAL — nicht durch `flex-wrap` ersetzen: dann
   entschiede die ↵-Marke (rund 19 px) beim Tabben, welche Pille die Zeile wechselt. */
.pal-z1, .pal-z2 { display: contents; }
.pal-zeile.is-zwei { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; }
.pal-zeile.is-zwei > .pal-marke { grid-column: 1; grid-row: 1; }
.pal-zeile.is-zwei > .pal-z1, .pal-zeile.is-zwei > .pal-z2 { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: .5em; min-width: 0; }
/* Die unsichtbare Messkopie der Zeile: nimmt keinen Platz und keinen Zeiger. */
.pal-zeile-mess { position: absolute; left: 0; top: 0; height: 0; overflow: hidden; visibility: hidden; pointer-events: none; }
.pal-zeile-mess::before { display: none; }
.pal-marke { flex: none; font-size: var(--t2); font-weight: 600; letter-spacing: 0; text-transform: none;   /* v9 §3.7 */
  color: var(--pal-still); margin-right: .6em; }
.pal-marke.is-tinte { color: var(--pal-tinte); }
/* Vorschlaege: lila umrissen, Nachname bzw. Thema fett (Gestalt „Stattdessen zuordnen").
   ⚠️ GEFUELLT ist nur der Vorschlag, der ↵ traegt (`.is-erst`) — die uebrigen sind umrissen.
   Testfund Thomas (22.09.2026): der bekannte Treffer war DAUERHAFT gefuellt, die ↵-Marke
   wanderte per Tab allein weiter — zwei Hervorhebungen, nur eine davon die Auswahl.
   Jetzt wandert die Fuellung mit der Marke; nach dem letzten Weg beginnt es vorn. */
.pal .pal-vor { flex: none; height: 2em; padding: 0 .9em; border: 1.5px solid var(--pal-person-hell); border-radius: 1em;
  background: transparent; color: var(--pal-person); font-size: var(--t3); font-weight: 500; }
.pal .pal-vor b { font-weight: 700; }
.pal .pal-vor:hover { border-color: var(--pal-person); }
/* NEUE PERSON: alles 32 px in EINER Zeile. Keine Feldueberschriften — „Vorname" /
   „Nachname" stehen als Platzhalter im leeren Feld. */
/* ⚠️ 2.2858em × 14 px = 32 px: die Hoehe steht in em der EIGENEN Schrift. */
.pal .pal-np { flex: 1 1 0; min-width: 0; height: 2.2858em; display: inline-flex; align-items: center; justify-content: space-between;
  gap: .5em; padding: 0 .9em; border: 1.5px solid var(--pal-umriss); border-radius: 1.1429em; background: var(--pal-karte);
  font: inherit; font-size: var(--t3); font-weight: 600; color: var(--pal-tinte); overflow: hidden; outline: none; }
.pal .pal-np.is-mit { border-color: var(--pal-person-hell); }
/* ⚠️ Der WERT kuerzt nie vor der Marke: „schreibt mit" gibt nach und verschwindet,
   wenn der Name den Platz braucht. (In 57c/57f kuerzt das Feld zu frueh — „Br…" bei
   „Bran" — als Zeichenartefakt gelesen, Plan §7 Nr. 4.) */
.pal .pal-np.is-mit i { font-style: normal; font-size: var(--t2); font-weight: 600; color: var(--pal-still);
  flex: 0 1000 auto; min-width: 0; overflow: hidden; white-space: nowrap; }
.pal-np-wert { overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; white-space: nowrap; }
.pal-np-ph, .pal .pal-np::placeholder { color: var(--pal-still); font-weight: 500; opacity: 1; }
.pal input.pal-np:focus { border-color: var(--pal-tinte); }
.pal .pal-np-esc { flex: none; height: 2em; padding: 0 .55em 0 .45em; display: inline-flex; align-items: center; gap: .35em;
  border: 1.5px solid var(--pal-umriss); border-radius: 1em; background: var(--pal-kbd); color: var(--pal-text2); }
.pal .pal-np-esc .pal-ic { width: .9em; height: .9em; stroke-width: 2.2; }
.pal .pal-np-ok { flex: none; height: 2.2858em; padding: 0 .4em 0 1em; display: inline-flex; align-items: center; gap: .6em;
  border-radius: 1.1429em; background: var(--pal-fuell); color: var(--pal-auf-fuell); font-size: var(--t3); font-weight: 600; }
.pal .pal-np-ok kbd { display: inline-flex; align-items: center; padding: .28em .5em; border-radius: .5em; background: var(--pal-naht); font-size: var(--t1); }
.pal .pal-np-ok kbd .pal-ic { width: 1.1em; height: 1.1em; stroke-width: 2.2; }
.pal .pal-np-ok:disabled { opacity: .4; cursor: default; }

/* ---- E8: die Kapsel SELBST ist das Suchfeld (60a) ---------------------------- */
.pal .pal-kap.is-suche { flex: 0 1 12.25em; min-width: 9em; background: var(--pal-karte); border-color: var(--pal-person);
  padding: 0 .4em 0 0; }
.pal .pal-suche { flex: 1 1 auto; min-width: 0; height: 100%; border: 0; outline: none; background: transparent;
  font: inherit; font-size: var(--t3); font-weight: 600; color: var(--pal-tinte); padding: 0 .4em 0 .9em; caret-color: var(--pal-tinte); }
.pal .pal-suche::placeholder { color: var(--pal-still); font-weight: 500; opacity: 1; }
.pal-kap.is-suche .pal-kbd { margin: 0; flex: none; }
.pal .pal-kap[data-pal-suche], .pal-lab[data-pal-suche] { cursor: pointer; }
.pal button.pal-kap[data-pal-suche] { padding: 0; font-size: 1em; }
/* ⚠️ Die OFFENE Personenkapsel traegt 8 statt 10 px Polster: „Person oder Thema" braucht in
   Montserrat 141 px, und neben „Do. 24.9. · 16:30" + Aufwand blieben bei 656 px nur 136 —
   das Wort wurde zu „Person oder The…" gekuerzt (Befund Testnutzer Jonas, 21.09.2026). Ein
   Platzhalter, den man nicht lesen kann, ist keiner; der NAME darf nachgeben, das Etikett nicht. */
.pal button.pal-kap.is-name[data-pal-suche] .pal-lab { padding: 0 .6em; }
.pal button.pal-kap[data-pal-suche]:hover { border-color: var(--pal-text2); }
/* Der ERSTE traegt die Enter-Marke; der andere Weg steht gestrichelt und still daneben. */
.pal .pal-vor { display: inline-flex; align-items: center; gap: .55em; }
.pal .pal-vor.is-erst { border-color: var(--pal-person); background: var(--pal-person-flaeche); padding-right: .35em; }
.pal .pal-vor u { text-decoration-thickness: 2px; text-underline-offset: .2em; }
.pal .pal-vor.is-still { border-style: dashed; border-color: var(--pal-umriss); background: transparent; color: var(--pal-text2); }
.pal-plus { font-weight: 500; opacity: .8; }
.pal .pal-vor .pal-kbd { font-size: var(--t1); min-width: 0; padding: .05em .35em; }

/* ---- E9: der Fristeditor (59b/59c) -------------------------------------------- */
.pal-reihe[hidden] { display: none; }
.pal-ed { display: flex; flex-direction: column; gap: .875em; padding-top: .25em; }
.pal-ed-kopf, .pal-ed-zeit, .pal-ed-fuss { display: flex; align-items: center; gap: .75em; }
.pal-ed-kopf, .pal-ed-fuss { justify-content: space-between; }
.pal-marke em { font-style: normal; font-weight: 700; color: var(--pal-text2); }
.pal .pal-kap.is-herkunft { cursor: default; box-shadow: 0 0 0 3px var(--pal-linie); }
.pal-cal { background: color-mix(in srgb, var(--pal-karte) 55%, transparent); border: 1px solid var(--pal-karte-rand);
  border-radius: .875em; padding: .875em 1.25em 1em; }
.pal-cal-kopf { display: flex; align-items: center; gap: .5em; margin-bottom: .5em; }
.pal-cal-monat { font-size: var(--t4); font-weight: 600; min-width: 9.5em; text-align: left; }
.pal .pal-cal-nav { width: 1.75em; height: 1.75em; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--pal-text2); }
.pal .pal-cal-nav:hover { background: var(--pal-linie); }
.pal-cal-nav .pal-ic { width: .9em; height: .9em; stroke-width: 2.2; }
.pal-cal-legende { margin-left: auto; display: inline-flex; align-items: center; gap: .5em; font-size: var(--t1); color: var(--pal-text2); }
.pal-cal-legende i { width: 1.2em; height: 1.2em; border: 1.5px solid var(--pal-tinte); border-radius: 50%; position: relative; }
.pal-cal-legende i::after { content: ''; position: absolute; left: 50%; top: 50%; width: .3em; height: .3em; margin: -.15em; border-radius: 50%; background: var(--pal-tinte); }
.pal-cal-gitter { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: .25em; justify-items: center; }
.pal-cal-wt { font-size: var(--t1); font-weight: 500; color: var(--pal-still); height: 2em; display: flex; align-items: center; }
.pal .pal-cal-tag { width: 2.4616em; height: 2.4616em; border-radius: 50%; font-size: var(--t3); font-weight: 500; color: var(--pal-tinte);
  display: inline-flex; align-items: center; justify-content: center; position: relative; border: 1.5px solid transparent; }
/* Vergangene und fremde Tage sind GRAU, aber waehlbar (D26): eine Frist in der
   Vergangenheit ist erlaubt. */
.pal .pal-cal-tag.is-vorbei, .pal .pal-cal-tag.is-fremd { color: var(--pal-blass); }
.pal .pal-cal-tag:hover { background: var(--pal-linie); }
.pal .pal-cal-tag.is-heute { border-color: var(--pal-tinte); color: var(--pal-tinte); }
.pal .pal-cal-tag.is-heute::after { content: ''; position: absolute; bottom: .3em; left: 50%; width: .3077em; height: .3077em; margin-left: -.1538em;
  border-radius: 50%; background: currentColor; }
.pal .pal-cal-tag.is-gewaehlt { background: var(--pal-fuell); color: var(--pal-auf-fuell); border-color: transparent; font-weight: 700; }
.pal-zeitfeld { display: inline-flex; align-items: center; width: 6.875em; height: 2em; padding: 0 .35em 0 .8em; border-radius: 1em;
  background: var(--pal-karte); border: 1px solid var(--pal-umriss); }
.pal-zeitfeld:focus-within { border: 1.5px solid var(--pal-tinte); padding: 0 calc(.35em - .5px) 0 calc(.8em - .5px); }
.pal .pal-zeit { flex: 1 1 auto; min-width: 0; border: 0; outline: none; background: transparent; font: inherit; font-size: var(--t3); font-weight: 500;
  color: var(--pal-tinte); }
.pal .pal-zeit::placeholder { color: var(--pal-text2); opacity: 1; }
.pal .pal-zeit-x { width: 1.25em; height: 1.25em; border-radius: 50%; background: var(--pal-linie); color: var(--pal-text2);
  display: inline-flex; align-items: center; justify-content: center; flex: none; }
.pal .pal-zeit-x[hidden] { display: none; }
.pal-zeit-x .pal-ic { width: .65em; height: .65em; stroke-width: 2.6; }
.pal-ed-uhr { font-size: var(--t3); color: var(--pal-text2); }
.pal-ed-opt { margin-left: auto; font-size: var(--t1); color: var(--pal-still); }
.pal .pal-ed-ab { height: 2.25em; padding: 0 .8em 0 .7em; gap: .5em; border-radius: 1.125em; font-size: 1em; }
.pal .pal-ed-ab span { font-size: var(--t3); font-weight: 500; color: var(--pal-tinte); }
.pal-ed-fuss .pal-np-ok { height: 2.5715em; border-radius: 1.2858em; padding: 0 .45em 0 1.2em; }
/* Runde 72: seit der Kopfzeile (56 px) passt der Fristeditor bei 900 px Fensterhoehe nicht
   mehr ganz ins Bild (gemessen 42 px zu hoch). Er scrollt in sich — und seine Fusszeile
   (Abbrechen · Fertig) bleibt dabei am unteren Rand STEHEN, damit man „Fertig" nie suchen
   muss. Passt der Editor ganz, liegt sie ohnehin dort: dann aendert sich nichts. */
/* ⚠️ Der Scroll-Abstand gehoert dazu: ohne ihn laege das Uhrzeitfeld — in dem beim Oeffnen der
   Cursor steht — UNTER der stehenden Fusszeile, und der Browser hielte es fuer sichtbar. */
.pal-zusatz[data-art="editor"] { scroll-padding-bottom: 4.5em; }
.pal-zusatz[data-art="editor"] .pal-ed-fuss { position: sticky; bottom: -1em; z-index: 1;
  margin: 0 -1.4375em -1em; padding: .625em 1.4375em 1em; background: var(--pal-flaeche); }

/* ---- Der Fristeditor passt sich der Fensterhoehe an (Testbefund Thomas, 05.10.2026) ----
   Bei 1920 × 1080 und 100 % (Sichtbereich rund 875 px) passte der Editor nicht in die Palette;
   er scrollte in sich, und der Fokus im Uhrzeitfeld schob Kopf und Herkunfts-Kapsel unter das
   Satzfeld. `editorEinpassen()` (palette.js) waehlt die erste Fassung, die ganz ins Fenster
   passt. Hier stehen nur die Masse der Fassungen:
     data-eng="1"  Abstaende geben nach (rund 64 px)
     data-eng="2"  dazu Tageskreise 26 statt 32 px (rund 100 px)
     .is-ed-ohne-karte  die Kartenvorschau weicht, solange der Editor offen ist (137 px)
   ⚠️ Fusszeile: `bottom`, `margin-bottom` und das untere Polster des Fachs sind DIESELBE Zahl —
   wer eine aendert, aendert alle drei (sonst steht „Fertig" nicht mehr am Rand). */
.pal-zusatz[data-art="editor"][data-eng] { padding-top: .5em; padding-bottom: .75em; scroll-padding-bottom: 4em; }
.pal-zusatz[data-art="editor"][data-eng] .pal-ed { gap: .5em; padding-top: 0; }
.pal-zusatz[data-art="editor"][data-eng] .pal-cal { padding: .5em 1.25em; }
.pal-zusatz[data-art="editor"][data-eng] .pal-cal-kopf { margin-bottom: .25em; }
.pal-zusatz[data-art="editor"][data-eng] .pal-cal-gitter { row-gap: .125em; }
.pal-zusatz[data-art="editor"][data-eng] .pal-ed-fuss { bottom: -.75em; margin-bottom: -.75em; padding-top: .375em; padding-bottom: .75em; }
.pal .pal-zusatz[data-eng="2"] .pal-cal-tag { width: 2em; height: 2em; }                    /* 26 × 26 */
.pal .pal-zusatz[data-eng="2"] .pal-cal-tag.is-heute::after { bottom: .15em; }
.pal-zusatz[data-eng="2"] .pal-cal-wt { height: 1.6em; }
.pal.is-ed-ohne-karte .pal-ziel { display: none; }

/* ---- Platz fuer Editor / „Beispiele ?" -------------------------------------- */
/* Ueber der Maximalhoehe scrollt NUR dieser Bereich — mit unsichtbarem Balken
   (app-weite Regel): ein sichtbarer naehme ihm Breite, und die Haarlinien fluchteten nicht mehr. */
.pal-zusatz { position: relative; padding: .875em 1.4375em 1em; overflow-y: auto; min-height: 0; scrollbar-width: none; }
.pal-zusatz::-webkit-scrollbar { display: none; }
.pal-zusatz::before { content: ''; position: absolute; top: 0; left: 1.375em; right: 1.375em; height: 1px; background: var(--pal-linie); }
.pal-bsp { display: flex; align-items: center; gap: .75em; min-height: 2.5em; }
.pal-bsp + .pal-bsp { border-top: 1px solid var(--pal-linie); }
.pal-bsp-satz { flex: 1 1 0; min-width: 0; font-size: var(--t3); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal-bsp-satz .pal-u { text-decoration-thickness: 1.5px; }
.pal-bsp-reihe { flex: none; display: inline-flex; gap: .25em; font-size: var(--t2); }
.pal-bsp-reihe .pal-art-h:disabled { cursor: default; }

/* ---- 3 · Karte: wo sie landet, und wie sie dort aussieht ------------------- */
.pal-ziel { position: relative; padding: 1em 1.4375em 1.0625em; }
.pal-gruppe { display: flex; align-items: baseline; gap: .5em; height: 1em; margin-bottom: .5625em; font-size: 1em; line-height: 1; }
.pal-gr-name { font-size: var(--t2); font-weight: 600; color: var(--pal-tinte); min-width: 0; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.pal-gr-name.is-still { color: var(--pal-still); }
.pal-gr-art { font-size: var(--t2); font-weight: 500; color: var(--pal-still); flex: none; white-space: nowrap; }

.pal-karte { background: var(--pal-karte); border: 1px solid var(--pal-karte-rand); border-radius: .75em;
  box-shadow: 0 1px 2px rgba(30, 28, 24, .04); overflow: hidden; }
.pal-k-kopf { display: flex; align-items: center; gap: .75em; height: 2.8125em; padding: 0 1em; }
.pal-k-kreis { flex: none; width: 1.125em; height: 1.125em; border-radius: 50%; border: 1.5px solid var(--pal-kreis); }
.pal-k-titel { font-size: var(--t3); font-weight: 500; color: var(--pal-tinte); min-width: 0; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
/* Der Titel im Rueckfall IST der Titel, der gespeichert wird — still, aber lesbar. */
.pal-k-titel.is-still { color: var(--pal-still); }
.pal-k-meta { display: flex; align-items: center; gap: .875em; height: 2em; padding: 0 1em; background: var(--pal-meta);
  border-top: 1px solid var(--pal-karte-linie); color: var(--pal-meta-text); overflow: hidden; }
.pal-k-m { display: inline-flex; align-items: center; gap: .4em; font-size: var(--t1); font-weight: 500; flex: none; white-space: nowrap; }
.pal-k-m .pal-ic { width: 1em; height: 1em; }
/* Leer: gestrichelter Platz GLEICHER Hoehe — nichts springt. */
.pal-karte.is-leer { border-style: dashed; border-color: var(--pal-umriss); box-shadow: none; }
.pal-karte.is-leer .pal-k-kreis { border-style: dashed; border-color: var(--pal-blass); }
.pal-karte.is-leer .pal-k-titel { color: var(--pal-blass); }
.pal-karte.is-leer .pal-k-meta { background: transparent; }

/* ---- 4 · Fuss: Speichern immer an derselben Stelle, in derselben Groesse ---- */
.pal-fuss { display: flex; align-items: center; gap: 1.25em; height: 3.5em; flex: none; padding: 0 1.375em;
  background: var(--pal-fuss); border-top: 1px solid var(--pal-fuss-kante); }
.pal-fuss-luft { flex: 1 1 auto; }
.pal .pal-still { display: inline-flex; align-items: center; gap: .5em; color: var(--pal-still); white-space: nowrap; flex: none;
  font-size: var(--t3); font-weight: 500; }
.pal .pal-still .pal-kbd { font-size: var(--t1); }
.pal .pal-still:hover { color: var(--pal-tinte); }
/* Runde 72: „Beispiele" in Gestalt eines erkannten Worts — 13/600, 2 px Tinte unterstrichen,
   Trefferflaeche 32 hoch. ⚠️ Die Linie ist ein `border-bottom` am WORT, nicht am Knopf:
   sonst laege sie 32 px tief, am Rand der Trefferflaeche. */
.pal .pal-bsp-link { flex: none; min-height: 2em; display: inline-flex; align-items: center; color: var(--pal-tinte); white-space: nowrap; }
.pal-bsp-link > span { font-size: var(--t3); font-weight: 600; line-height: 1.3; border-bottom: 2px solid currentColor; }
.pal .pal-bsp-link:hover { color: var(--pal-text2); }
.pal .pal-speichern { flex: none; height: 2.125em; border-radius: 7px; display: inline-flex; align-items: center;
  justify-content: space-between; gap: .6em; padding: 0 .375em 0 .875em; white-space: nowrap;   /* 0 6 0 14 */
  background: var(--pal-fuell); color: var(--pal-auf-fuell); border: 1.5px solid transparent; background-clip: padding-box; }
/* Die Breite ist JE PLATTFORM fest (K9), weil der Inhalt es ist: Wort + Kappe
   aendern sich zwischen „frei" und „gesperrt" nicht — nur Fuellung und Rand. */
.pal-speichern > b { font-size: var(--t3); font-weight: 600; }
.pal-speichern > kbd { font: inherit; font-size: var(--t1); font-weight: 600; line-height: 1; border-radius: .5455em;
  height: 2em; padding: 0 .6364em; background: var(--pal-kbd-fuell); display: inline-flex; align-items: center; gap: 0; }
/* „Strg + ↵" (Runde 72 §5.7). ⚠️ README sagt „1 px Abstand"; gemessen in 72a stehen
   links und rechts vom Plus je rund 5 px, und das Plus ist leichter gesetzt als das Wort. */
.pal-kbd-plus { margin: 0 .45em; font-weight: 500; }
.pal-speichern > kbd .pal-ic { width: 1em; height: 1em; stroke-width: 2.2; }   /* ↵ als 11-px-Zeichen */
.pal .pal-speichern.is-gesperrt { background: transparent; border-color: var(--pal-umriss); color: var(--pal-still); cursor: default; }
.pal .pal-speichern.is-gesperrt > kbd { background: transparent; border: 1px solid var(--pal-umriss); padding: 0 calc(.6364em - 1px); }
.dark .pal .pal-speichern.is-gesperrt { color: var(--pal-blass); }
/* v7 E5 (README §6.1): Speichern als ROST-PILLE mit Pfeil-Kreis — Wort und Kürzel
   bleiben (F1: nur Form). Gesperrt bleibt der Umriss, der Kreis wird still. */
.pal .pal-speichern:not(.is-gesperrt) { background: var(--pal-cta); color: var(--pal-cta-fg); box-shadow: var(--pal-cta-schatten);
  transition: transform .25s; }   /* ⚠️ nur die Bewegung: ein Farbübergang ließ den Kontrast
                                     mitten im Wechsel gesperrt ↔ frei messen (1,75:1) */
.pal .pal-speichern:not(.is-gesperrt):hover { background: var(--pal-cta-hover); transform: none; }   /* v9 §3.5: kein Anheben */
.pal .pal-speichern { padding-right: .25em; }
.pal-pfeil { width: 1.625em; height: 1.625em; border-radius: 50%; display: inline-grid; place-items: center; background: none; flex: none; }   /* v9 §3.5: kein eingesetzter Kreis */
.pal-pfeil .pal-ic { width: .875em; height: .875em; stroke-width: 2.2; }
.pal .pal-speichern.is-gesperrt .pal-pfeil { background: transparent; border: 0; }

/* E11: der Fokus in der Reihe ist ein 3-px-Ring in der Kapselfarbe (61a) — KEINE
   Tastenlegende. Die Reihe darf ihn nicht abschneiden. */
.pal .pal-kap:focus, .pal .pal-art:focus { outline: none; }
.pal .pal-kap:focus-visible, .pal .pal-art:focus-visible { outline: 3px solid color-mix(in srgb, var(--pal-tinte) 30%, transparent); outline-offset: 2px; }
.pal .pal-kap.is-lila:focus-visible { outline-color: color-mix(in srgb, var(--pal-person) 45%, transparent); }
.pal .pal-kap.is-rost:focus-visible { outline-color: color-mix(in srgb, var(--pal-rost) 45%, transparent); }
/* Strg+Enter bei gesperrtem Speichern: ein Puls an der Stelle, die wartet. */
@keyframes palPuls { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--pal-person) 55%, transparent); }
  100% { box-shadow: 0 0 0 .6em transparent; } }
.pal-puls { animation: palPuls .55s ease-out 1; border-radius: 1em; }
@media (prefers-reduced-motion: reduce) { .pal-puls { animation: none; outline: 2px solid var(--pal-person); } }

/* Tastaturfokus: sichtbar, in der Farbe des Elements (Runde 61). */
.pal button:focus-visible { outline: 3px solid color-mix(in srgb, currentColor 45%, transparent); outline-offset: 2px; }
/* Runde 72: an Pille, Mikro, „Beispiele" und Speichern ein 2-px-Ring in Tinte mit 2 px Abstand. */
.pal .pal-zu:focus-visible, .pal .pal-mic:focus-visible, .pal .pal-bsp-link:focus-visible,
.pal .pal-speichern:focus-visible { outline: 2px solid var(--pal-ring); outline-offset: 2px; }

/* Die Rueckfrage „Eintrag abbrechen?" (D11) haengt im Backdrop und bringt ihre
   App-Gestalt mit; sie braucht nur den Platz ueber der Palette. */
.pal-backdrop .qn-cancel-ask { position: fixed; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center;
  background: rgba(30, 28, 24, .25); font-size: var(--t3); }
