/* U-148: Eingabefeld des Assistenten – überall gleich (Entwurf D-4 „Grau, wird Terrakotta“).
   Gilt für: Startseiten-Kachel, Assistent-Seite, Seitenfenster, Schnellzugriff-Blatt.
   Leer = Senden grau und nicht klickbar; mit Text oder Fokus = Terrakotta. Zustand allein über CSS (:placeholder-shown). */
html body .ki-eingabe.ki-eingabe {
  display: flex; align-items: center; gap: 8px; box-sizing: border-box; margin: 0;
  min-height: 56px; padding: 6px 6px 6px 16px; border-radius: 12px !important;
  background: var(--weiss, var(--surface)); border: 1px solid var(--line, #DFE2DE); box-shadow: none;
  transition: border-color .15s;
}
html body .ki-eingabe.ki-eingabe:focus-within,
html body .ki-eingabe.ki-eingabe:has(:is(input, textarea):not(:placeholder-shown)) { border-color: var(--accent, #B9532C); }
html body .ki-eingabe.ki-eingabe :is(input, textarea)::placeholder { color: var(--faint, #8A9590); opacity: 1; }
/* Mikrofon: nur Symbol, keine Fläche */
html body .ki-eingabe.ki-eingabe :is(.ki-mic, .assi-mic) {
  width: 36px; height: 44px; flex: none; padding: 0 !important; border: 0; border-radius: 10px !important;
  background: transparent; color: var(--ink); box-shadow: none;
}
html body .ki-eingabe.ki-eingabe :is(.ki-mic, .assi-mic) svg { width: 18px; height: 18px; }
html body .ki-eingabe.ki-eingabe :is(.ki-mic, .assi-mic).is-an { background: var(--accent, #B9532C); color: #fff; }
/* Senden-Knopf */
html body .ki-eingabe.ki-eingabe :is(.ki-senden, .plus-ki-senden) {
  width: 44px; height: 44px; flex: none; padding: 0 !important; border: 0; border-radius: 10px !important;
  display: inline-flex; align-items: center; justify-content: center; box-shadow: none; background-image: none; opacity: 1;
  background-color: var(--accent, #B9532C); color: #fff; cursor: pointer;
  transition: background-color .15s, color .15s;
}
html body .ki-eingabe.ki-eingabe:has(:is(input, textarea):placeholder-shown) :is(.ki-senden, .plus-ki-senden) {
  background-color: #F1F2F0; color: #64706C; pointer-events: none; cursor: default;
}
@media (prefers-color-scheme: dark) {
  html body .ki-eingabe.ki-eingabe:has(:is(input, textarea):placeholder-shown) :is(.ki-senden, .plus-ki-senden) {
    background-color: var(--surface-2, #151B1A); color: var(--faint, #6F7D78);
  }
}
/* Fenster-Eingabe: Feld statt Leiste */
html body .ki-feld2.ki-eingabe { margin: 10px 14px calc(12px + env(safe-area-inset-bottom)); }
html body .ki-feld2.ki-eingabe textarea { min-height: 26px; padding: 4px 0; border-radius: 0; background: transparent; align-self: center; }
