/* Letzte Cleaning Prüfung: 15.10.2026 | Letztes Cleaning: - */
/*
 * Parameter der Eingabe ohne Konfigurationsfenster (WL14-34, contentfactory-param-popover.js): jede Einstellung ein Chip in der
 * Leiste, jede klappt für sich nach oben auf; Pfeile an der Reihe, wenn nicht alles hineinpasst. Das frühere Konfigurationsfenster
 * (Regler-Knopf) entfällt bei KI-Video, KI-Bild und Social-Posts.
 */

/* Regler-Knopf und Fenster entfallen - die Felder bleiben im Formular (verborgen), ihr Wert wird über die Chips gesetzt. */
:is(html, #param#popover) body :is(.video-generator-form.is-chat-composer .video-config-trigger, .video-generator-form.is-chat-composer [data-video-config-panel], .tk-composer .tk-konfig-trigger, .tk-composer .tk-konfig-panel) { display: none !important; }

/* Auswahl und Eingabefeld über der Leiste. */
.cf-param-liste, .cf-param-text {
  background: #1d202a;
  border: 1px solid #373d4d;
  border-radius: 14px;
  bottom: calc(100% + 10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .55);
  box-sizing: border-box;
  display: grid;
  gap: 4px;
  max-height: 320px;
  max-width: min(340px, calc(100vw - 24px));
  min-width: 210px;
  overflow: auto;
  padding: 8px;
  position: absolute;
  z-index: 70;
}
.cf-param-liste > button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 9px;
  color: #cfd4e0;
  cursor: pointer;
  display: flex;
  font: 600 13px/1.2 "DM Sans", Inter, system-ui, sans-serif;
  gap: 8px;
  padding: 9px 10px;
  text-align: left;
}
.cf-param-liste > button:hover { background: #262b37; color: #fff; }
.cf-param-liste > button.is-active { background: rgba(255, 48, 79, .13); color: #ff8296; }
.cf-param-liste > button i { font-size: 15px; }
.cf-param-text { gap: 6px; min-width: 260px; padding: 10px 12px 12px; }
.cf-param-text > label { color: #8f97a8; font: 700 11px/1 "DM Sans", Inter, system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.cf-param-text > :is(input, textarea) {
  background: #12141b;
  border: 1px solid #343a49;
  border-radius: 9px;
  box-sizing: border-box;
  color: #f4f5f8;
  font: 500 14px/1.4 "DM Sans", Inter, system-ui, sans-serif;
  padding: 9px 11px;
  resize: vertical;
  width: 100%;
}
.cf-param-text > :is(input, textarea):focus { border-color: #ff3656; outline: 0; }
.cf-param-text > small { color: #8f97a8; font-size: 11px; line-height: 1.4; }

/* Pfeile an den Enden der Chipreihe: nur sichtbar, wo noch etwas verborgen ist. */
.cf-param-pfeil {
  --cf-pfeil-grund: #171922;
  --cf-pfeil-deckung: 55%;
  align-items: center;
  background: linear-gradient(90deg, var(--cf-pfeil-grund) var(--cf-pfeil-deckung), transparent);
  border: 0;
  color: #fff;
  cursor: pointer;
  display: flex;
  font-size: 20px;
  justify-content: center;
  padding: 0;
  pointer-events: auto;
  position: absolute;
  width: 28px;
  z-index: 5;
}
.cf-param-pfeil.ist-rechts { background: linear-gradient(270deg, var(--cf-pfeil-grund) var(--cf-pfeil-deckung), transparent); }
.cf-param-pfeil[hidden] { display: none; }
.cf-param-pfeil:hover { color: #ff3656; }
/* An den Bildkacheln (MOB17-28): Verlauf in der Farbe der Fläche unter der Eingabe. */
.cf-param-pfeil.ist-kacheln { --cf-pfeil-grund: var(--cf-bg, #08090d); --cf-pfeil-deckung: 45%; }
