/*
 * Tikki · Feinschliff · Einbauentwurf
 * Nach sämtlichen anderen Stilen laden.
 *
 * Geprüft gegen die gelieferten HTML-/CSS-Dateien und Bilder 1–6.
 * Noch keine gerenderte Abnahme mit der vollständigen Vorlage.
 *
 * Keine Änderungen an Bildkoordinaten, Außenbreiten, Raumhintergründen,
 * Handy-Anordnung, Hermes, Arbeitsständen oder Sichtbarkeit der Rohausgabe.
 * Das Material kommt weiterhin aus vip-edel.css.
 */

/* ==================== G01 · Gespräch am Rechner ==================== */

@media (min-width: 761px) {
  /*
   * Bild 3; Bild 1 »gespraech«/»fortschritt«:
   * Bedienung und Nachrichten erhalten getrennten Platz INNERHALB
   * des bestehenden Rahmens. Die Eingabe bleibt oben.
   * Beleg: vip.html:15; vip-bruecke.css:95–99.
   */
  html body #root#root#root main[data-agenda-wall]:not([data-agenda-detail-open])
  > #tikki-foyer-conversation:not([hidden]) {
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
    min-height: 0 !important;
    padding: 10px !important;
    gap: 7px !important;
    overflow: hidden !important;
  }

  /*
   * Bild 3: Der Gesprächskopf darf nicht hinter der Eingabe liegen.
   * Nur innere Aufteilung; keine Änderung der Lage des Gesprächs.
   * Beleg: vip.html:15; vip-bruecke.css:19–20.
   */
  html body #root#root#root #tikki-foyer-conversation > header {
    display: flex !important;
    position: static !important;
    inset: auto !important;
    transform: none !important;
    order: 0 !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 6px !important;
  }

  /*
   * Bild 3: Der Kopftext braucht Platz zum Umbrechen, ohne die
   * vorhandenen Gesprächsschalter seitlich hinauszudrücken.
   * Beleg: vip.html:15.
   */
  html body #root#root#root #tikki-foyer-conversation > header > div:first-child {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow-wrap: anywhere !important;
  }

  /*
   * Bild 3: Eine kompakte Überschrift lässt Platz für Nachrichten.
   * Ihre bisherige Sichtbarkeit wird nicht überschrieben.
   * Beleg: vip.html:15.
   */
  html body #root#root#root #tikki-foyer-conversation > header h2 {
    margin: 0 !important;
    font-size: 16px !important;
    line-height: 1.25 !important;
  }

  /*
   * Bild 3 gegenüber Bild 2 »fortschritt«:
   * Der vorhandene Status ist am Rechner nicht lesbar zu erkennen.
   * Nur bei geschlossener Wandansicht sichtbar machen.
   * Beleg: vip.html:118,172–174; vip-bruecke.css:19–20.
   */
  html body #root#root#root main[data-agenda-wall]:not([data-agenda-detail-open])
  #tikki-foyer-conversation #status {
    display: block !important;
    min-width: 0 !important;
    max-height: none !important;
    margin: 2px 0 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    text-overflow: clip !important;
    color: var(--edel-leise) !important;
    -webkit-text-fill-color: currentColor !important;
    font: 500 12px/1.4 "Avenir Next", system-ui, sans-serif !important;
    text-shadow: var(--edel-schriftlicht) !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  /*
   * Bild 3: Eingabe, Mikrofon und Senden stehen in einer Zeile;
   * Möglichkeiten und Ausgabeschalter teilen sich die zweite.
   * Beleg: vip.html:15; vip-bruecke.css:80–83.
   */
  html body #root#root#root #tikki-foyer-conversation > footer {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 32px 68px !important;
    align-items: start !important;
    position: static !important;
    inset: auto !important;
    transform: none !important;
    order: 1 !important;
    flex: 0 0 auto !important;
    box-sizing: border-box !important;
    width: 100% !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 0 7px !important;
    gap: 6px !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(173, 120, 104, .35) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  /*
   * Bild 3: Die hohe, kantige Eingabe wird zu einer kleinen Zeile.
   * Der vorhandene Text bleibt innerhalb des Feldes erreichbar.
   * Beleg: vip.html:15 (rows="1"); vip-edel.css:403–427.
   */
  html body #root#root#root #tikki-foyer-conversation > footer > #eingabe-klein {
    grid-column: 1 !important;
    grid-row: 1 !important;
    position: static !important;
    inset: auto !important;
    transform: none !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    margin: 0 !important;
    padding: 9px 10px !important;
    border-width: 1px !important;
    border-style: solid !important;
    border-radius: 10px !important;
    font: 400 16px/20px "Avenir Next", system-ui, sans-serif !important;
    resize: none !important;
    overflow: auto !important;
  }

  /*
   * Bild 3: Das Mikrofon sitzt nicht mehr frei über dem Schreibfeld.
   * Es bleibt ein unverändertes Symbol, ohne zusätzlich bemalten Kasten.
   * Beleg: vip.html:15; vip-edel.css:664.
   */
  html body #root#root#root #tikki-foyer-conversation > footer > .tikki-dictation {
    grid-column: 2 !important;
    grid-row: 1 !important;
    position: static !important;
    inset: auto !important;
    transform: none !important;
    box-sizing: border-box !important;
    width: 32px !important;
    min-width: 0 !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /*
   * Bild 3: Der vorhandene Sammelbehälter soll Senden und weitere
   * Schalter nicht mehr als frei liegenden Block zusammenhalten.
   * Beleg: vip.html:15, direktes footer-div mit #vip-senden.
   */
  html body #root#root#root #tikki-foyer-conversation > footer > div:has(#vip-senden) {
    display: contents !important;
  }

  /*
   * Bild 3: Senden/Stopp erhält dieselbe Höhe und Rundung wie die Eingabe.
   * Die dunklen Zustandsfarben aus vip-edel.css bleiben erhalten.
   * Beleg: vip.html:15; vip-edel.css:202–213.
   */
  html body #root#root#root #tikki-foyer-conversation > footer #vip-senden {
    grid-column: 3 !important;
    grid-row: 1 !important;
    position: static !important;
    inset: auto !important;
    transform: none !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 40px !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 0 8px !important;
    border-width: 1px !important;
    border-style: solid !important;
    border-radius: 10px !important;
    font: 600 13px/1.3 "Avenir Next", system-ui, sans-serif !important;
    white-space: nowrap !important;
  }

  /*
   * Bild 3: Der Ausgabeschalter bekommt einen eigenen, nicht
   * überlappenden Platz neben „Weitere Möglichkeiten“.
   * Beleg: vip-bruecke.css:80–83.
   */
  html body #root#root#root #tikki-foyer-conversation > footer .vip-live-schalter {
    grid-column: 2 / -1 !important;
    grid-row: 2 !important;
    align-self: start !important;
    justify-self: stretch !important;
    position: static !important;
    inset: auto !important;
    transform: none !important;
    box-sizing: border-box !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 32px !important;
    margin: 0 !important;
    padding: 6px !important;
    border-radius: 10px !important;
    line-height: 1.3 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  /*
   * Bild 3: Möglichkeiten bleiben im Gespräch statt darüberzuliegen.
   * Beim Aufklappen rollt die gesamte Optionsgruppe einschließlich
   * „Projekt planen“; der Nachrichtenbereich bleibt daneben unberührt.
   * Beleg: vip.html:15; 35b M03 begrenzte nur den inneren Teil.
   */
  html body #root#root#root #tikki-foyer-conversation > footer > .tikki-chat-options {
    grid-column: 1 !important;
    grid-row: 2 !important;
    position: static !important;
    inset: auto !important;
    transform: none !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-height: 132px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: auto !important;
    scrollbar-width: thin !important;
    scrollbar-color: var(--edel-rose) transparent !important;
  }

  /*
   * Bild 3: Die Optionsbeschriftung bekommt Luft und lesbaren Umbruch,
   * aber keinen zusätzlichen Kasten.
   * Beleg: vip.html:15.
   */
  html body #root#root#root #tikki-foyer-conversation .tikki-chat-options > summary {
    position: static !important;
    margin: 0 !important;
    padding: 7px 2px !important;
    color: var(--edel-leise) !important;
    font: 600 12px/1.4 "Avenir Next", system-ui, sans-serif !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    text-shadow: var(--edel-schriftlicht) !important;
  }

  /*
   * Bild 3, zugehöriges aufklappbares Bedienfeld:
   * Keine frei positionierte Optionsfläche über den Nachrichten.
   * Beleg: vip.html:15, .tikki-chat-options-body.
   */
  html body #root#root#root #tikki-foyer-conversation .tikki-chat-options-body {
    display: flex !important;
    flex-wrap: wrap !important;
    position: static !important;
    inset: auto !important;
    transform: none !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 2px 2px 6px !important;
    gap: 6px !important;
    overflow: visible !important;
  }

  /*
   * Bild 3, zugehöriges aufklappbares Bedienfeld:
   * Auch „Projekt planen“ bleibt im selben begrenzten Optionsbereich.
   * Beleg: vip.html:15.
   */
  html body #root#root#root #tikki-foyer-conversation .tikki-chat-options .tikki-foyer-project {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 6px 0 0 !important;
    overflow-wrap: anywhere !important;
  }

  /*
   * Bild 3: Geschlossene Möglichkeiten bleiben geschlossen,
   * auch gegenüber starken display-Regeln der Vorlage.
   * Beleg: vip.html:15, beide vorhandenen details-Elemente.
   */
  html body #root#root#root #tikki-foyer-conversation .tikki-chat-options:not([open]) > :not(summary),
  html body #root#root#root #tikki-foyer-conversation .tikki-foyer-project:not([open]) > :not(summary) {
    display: none !important;
  }

  /*
   * Bild 3: Eine vorhandene Diktiermeldung darf keine Bedienelemente
   * überlagern; sie bekommt bei Bedarf eine eigene Zeile.
   * Beleg: vip.html:15.
   */
  html body #root#root#root #tikki-foyer-conversation > footer > .tikki-dictation-status {
    grid-column: 1 / 3 !important;
    grid-row: 3 !important;
    position: static !important;
    inset: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  /*
   * Bild 3: Ohne Diktiermeldung wird keine Leerzeile reserviert.
   * Beleg: vip.html:15, anfangs leeres small.
   */
  html body #root#root#root #tikki-foyer-conversation > footer > .tikki-dictation-status:empty {
    display: none !important;
  }

  /*
   * Bild 3: Falls die Vorlage den Einklappschalter zeigt,
   * liegt er weder über Senden noch über der Diktiermeldung.
   * Seine bisherige Sichtbarkeit bleibt bestehen.
   * Beleg: vip.html:15.
   */
  html body #root#root#root #tikki-foyer-conversation > footer .tikki-world-read-toggle {
    grid-column: 3 !important;
    grid-row: 3 !important;
    justify-self: end !important;
    position: static !important;
    inset: auto !important;
    transform: none !important;
    margin: 0 !important;
  }

  /*
   * Bild 3: Nachrichten beginnen unter der Bedienung und nutzen
   * nur den verbleibenden Platz; kein Überdecken des Gesprächs.
   * Beleg: vip.html:15; vip-bruecke.css:16–17,98–99.
   */
  html body #root#root#root #tikki-foyer-conversation > .tikki-foyer-messages:not([hidden]) {
    display: flex !important;
    flex-direction: column !important;
    position: static !important;
    inset: auto !important;
    transform: none !important;
    order: 2 !important;
    flex: 1 1 0 !important;
    box-sizing: border-box !important;
    width: 100% !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  /*
   * Bild 3: Die bisherige Höhe von 100 % darf nicht zusätzlich
   * zum Kopf und zur Bedienung beansprucht werden.
   * Bestehende Blasen- und Fortschrittsdarstellung bleibt erhalten.
   * Beleg: vip-bruecke.css:16–17,99,134–138.
   */
  html body #root#root#root #tikki-foyer-conversation #blasen-klein {
    box-sizing: border-box !important;
    flex: 1 1 auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    scrollbar-gutter: stable !important;
    scroll-padding-block: 8px !important;
  }

  /*
   * Bild 3, Zustand mit eingeschalteter Ausgabe:
   * Ein gegebenenfalls benutzter Originalbereich darf nicht durch
   * seine Mindesthöhe von 120 px die Bedienung verdrängen.
   * Keine Änderung daran, wann er angezeigt wird.
   * Beleg: vip-bruecke.css:84–86; vip.html:15.
   */
  html body #root#root#root #tikki-foyer-conversation > .tikki-world-original-output:not([hidden]) {
    order: 2 !important;
    flex: 1 1 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }
}

/* ==================== G02 · Projekt und DATA OUT ==================== */

@media (min-width: 761px) {
  /*
   * Bild 4; Bild 1 »raum«:
   * Die Aufgabenliste reserviert nicht mehr bis zu 32 % der gesamten
   * Bildschirmhöhe zusätzlich zu Projektkopf und Ergebnissen.
   * 100cqh bezieht sich auf den bestehenden Größenbehälter
   * .raumwand-scroll. Rund 250 px bleiben für Kopf und Ergebnisanfang.
   * Bei sehr niedrigen Fenstern bleibt der äußere Bereich scrollbar.
   * Beleg: raumwand.css:37–40,140–144,220–238.
   */
  html body #root#root#root main#vip-raumwand[data-projekt-offen] .raumplan .raumplan-liste {
    max-height: clamp(88px, calc(100cqh - 250px), 180px) !important;
    padding: 4px !important;
    scrollbar-width: thin !important;
    scrollbar-color: var(--edel-rose) transparent !important;
    scrollbar-gutter: stable !important;
    scroll-padding-block: 6px !important;
  }

  /*
   * Bild 4: Der große Projektrahmen erhält dieselbe zurückhaltende
   * Rundung wie die Wandfläche; sein Material bleibt unverändert.
   * Beleg: raumwand.css:164–170; vip-bruecke.css:95–97.
   */
  html body #root#root#root main#vip-raumwand[data-projekt-offen] .raumplan {
    padding: 10px !important;
    border-radius: 14px !important;
  }

  /*
   * Bild 4: Weniger leere Polster in jeder Aufgabe lassen mehr
   * Inhalt sichtbar, ohne Schrift oder Spalten zu verkleinern.
   * Beleg: raumwand.css:239–258.
   */
  html body #root#root#root main#vip-raumwand[data-projekt-offen] .raumplan .raumplan-zeile {
    padding: 8px 12px !important;
    border-radius: 10px !important;
  }

  /*
   * Bild 4: Ruhigere Abstände zwischen den Aufgaben.
   * Der bereits randlose Abschluss der letzten Zeile bleibt bestehen.
   * Beleg: raumwand.css:247,260–262.
   */
  html body #root#root#root main#vip-raumwand[data-projekt-offen] .raumplan .raumplan-zeile:not(:last-child) {
    margin-bottom: 6px !important;
  }

  /*
   * Bild 4: Die vorhandene Innennaht folgt der kleineren Rundung
   * mit unverändertem Abstand von 4 px.
   * Beleg: raumwand.css:263–272; vip-edel.css:584–587.
   */
  html body #root#root#root main#vip-raumwand[data-projekt-offen] .raumplan .raumplan-zeile::before {
    border-radius: 6px !important;
  }

  /*
   * Bild 4: DATA OUT rückt durch weniger Leerraum näher an den Plan,
   * bleibt aber ein eigener Bereich in derselben Reihenfolge.
   * Beleg: raumwand.css:358–361.
   */
  html body #root#root#root main#vip-raumwand[data-projekt-offen] .raumprojekt-ausgabe {
    margin-top: 10px !important;
  }
}

/* ==================== G03 · Wandinhalte vollständig erreichen ==================== */

@media (min-width: 761px) {
  /*
   * Bilder 5 und 6; Bild 1 »briefing«:
   * Der bestehende Wandrahmen wird innen in Kopf und Rollbereich
   * aufgeteilt. Seine Höhe folgt weiterhin der Bildberechnung.
   * Keine Verbreiterung, Verschiebung oder zusätzliche Fläche.
   * Beleg: vip.html:15,155–157,178–182; vip-bruecke.css:58–65.
   */
  html body #root#root#root main[data-agenda-wall] > #fenster:not([hidden]) {
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
    height: var(--agenda-detail-height) !important;
    min-height: 0 !important;
    max-height: var(--agenda-detail-height) !important;
    overflow: hidden !important;
  }

  /*
   * Bilder 5 und 6: Titel und Schließen bleiben außerhalb
   * des rollenden Inhalts, statt dessen nutzbare Höhe zu überlagern.
   * Beleg: vip.html:156; vip-bruecke.css:60.
   */
  html body #root#root#root main[data-agenda-wall] > #fenster > header {
    flex: 0 0 auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 0 8px !important;
    gap: 8px !important;
  }

  /*
   * Bild 6: Ein langer Titel darf umbrechen, ohne Schließen
   * aus dem Rahmen zu drücken.
   * Beleg: vip.html:156.
   */
  html body #root#root#root main[data-agenda-wall] > #fenster > header > div {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow-wrap: anywhere !important;
  }

  /*
   * Bilder 5 und 6: Der untere Inhalt wird nicht nur abgeschnitten;
   * ein eigener Rollbereich und eine schmale Rollleiste machen
   * Anbieter, weitere Einstellungen und untere Handlungen erreichbar.
   * Beleg: vip.html:157; vip-bruecke.css:65.
   */
  html body #root#root#root main[data-agenda-wall] > #fenster > .inhalt {
    flex: 1 1 auto !important;
    box-sizing: border-box !important;
    width: 100% !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 2px 5px 14px 0 !important;
    overflow: auto !important;
    overscroll-behavior: contain !important;
    scrollbar-width: thin !important;
    scrollbar-color: var(--edel-rose) transparent !important;
    scrollbar-gutter: stable !important;
    scroll-padding-block: 10px !important;
  }
}

/* ==================== G04 · Dateinamen und kleine Handlungen ==================== */

/*
 * Bild 1 »dataout«; Bild 2 »dataout«/»raum«:
 * Dateinamen werden nicht mehr durch Auslassungspunkte ununterscheidbar.
 * Bestehende Reihenfolge und Handy-Aufteilung bleiben erhalten.
 * Beleg: vip-bruecke.css:119; raumwand.css:114,431–433.
 */
html body #root#root#root #fenster .dataout-liste .name,
html body #root#root#root #vip-raumwand .raumwand-out .name {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

@media (min-width: 761px) {
  /*
   * Bild 1 »datei«; Bild 4, zugehöriger Ergebnisbereich:
   * Lange Namen und Handlungen dürfen in der vorhandenen Dateizeile
   * umbrechen, statt rechts aus dem erreichbaren Bereich zu geraten.
   * Beleg: raumwand.css:112–117.
   */
  html body #root#root#root #vip-raumwand .raumwand-out li {
    flex-wrap: wrap !important;
    min-width: 0 !important;
    gap: 6px 10px !important;
  }

  /*
   * Bild 1 »datei«:
   * Der Dateiname behält einen sinnvollen Anteil der Zeile;
   * Handlungen dürfen bei Platzmangel darunter weitergehen.
   * Beleg: raumwand.css:114.
   */
  html body #root#root#root #vip-raumwand .raumwand-out .name {
    flex: 1 1 14rem !important;
  }

  /*
   * Bild 1 »dataout«/»datei«:
   * Größen- und Datumsangaben werden etwas besser lesbar.
   * Die neueren Handygrößen werden nicht überschrieben.
   * Beleg: vip-bruecke.css:120; raumwand.css:115,434–436.
   */
  html body #root#root#root #fenster .dataout-liste .gross,
  html body #root#root#root #vip-raumwand .raumwand-out .gross {
    font-size: 13px !important;
    line-height: 1.4 !important;
    color: var(--edel-leise) !important;
  }
}

/*
 * Bilder 5 und 6; Bild 2 »dauer«/»dataout«:
 * Bereits veredelte Wandknöpfe dürfen ihre Beschriftung vollständig
 * zeigen; die Rundung passt zu den vorhandenen Schreibfeldern.
 * Ihre Material- und Zustandsfarben werden nicht neu definiert.
 * Beleg: vip-bruecke.css:74–78; vip-edel.css:150–178,202–213.
 */
html body #root#root#root main[data-agenda-wall] > #fenster .knopf {
  box-sizing: border-box !important;
  max-width: 100% !important;
  border-radius: 10px !important;
  line-height: 1.35 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

/*
 * Bild 3, zugehörige Antwort-/Optionsknöpfe; Bild 2 »raum«:
 * Diese konkreten Handlungen fehlen in der Materialauswahl von
 * vip-edel.css. Sie erhalten dieselbe Prägung, keine neue Gestaltung.
 * Keine Regel für alle Knöpfe oder für bildgebundene Klickflächen.
 * Beleg: vip-bruecke.css:74–78; vip.html:15;
 * raumwand.css:116–117; vip-edel.css:150–178.
 */
html body #root#root#root :is(
  #tikki-foyer-conversation #blasen-klein .knopf,
  #tikki-foyer-conversation > footer .tikki-chat-options-body button,
  #tikki-foyer-conversation > footer .tikki-foyer-project button,
  #vip-raumwand .raumwand-out button,
  #vip-raumwand .raumwand-out a
):not([hidden]) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 32px !important;
  padding: 6px 9px !important;
  border: 1px solid var(--edel-rand, var(--edel-rose)) !important;
  border-radius: 10px !important;
  background: var(--edel-flaeche, var(--edel-leder)) !important;
  box-shadow: var(--edel-ruhend, var(--edel-tiefe)) !important;
  color: var(--edel-farbe, var(--edel-tinte)) !important;
  -webkit-text-fill-color: currentColor !important;
  font: 600 13px/1.35 "Avenir Next", system-ui, sans-serif !important;
  text-align: center !important;
  text-shadow: var(--edel-licht, var(--edel-schriftlicht)) !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

/*
 * Bild 3, zugehörige Antwort-/Optionsknöpfe:
 * Hauptantworten und bereits eingeschaltete Optionen bleiben
 * auch nach der Materialergänzung klar unterscheidbar.
 * Beleg: vip-bruecke.css:77–78; vip.html:15, aria-pressed;
 * Materialwerte: vip-edel.css:202–213.
 */
html body #root#root#root #tikki-foyer-conversation #blasen-klein .knopf.haupt,
html body #root#root#root #tikki-foyer-conversation > footer .tikki-chat-options-body button[aria-pressed="true"] {
  --edel-flaeche: var(--edel-dunkel) !important;
  --edel-farbe: var(--edel-weiss) !important;
  --edel-rand: #805748 !important;
  --edel-ruhend: var(--edel-tiefe-dunkel) !important;
  --edel-druck: var(--edel-druck-dunkel) !important;
  --edel-licht: var(--edel-schriftlicht-dunkel) !important;
  --edel-fokusfarbe: #fff1df !important;
}

/*
 * Bild 3, zugehörige Antwort-/Optionsknöpfe; Bild 2 »raum«:
 * Die ergänzte Prägung erhält denselben Druckzustand wie
 * die bereits freigegebenen Knöpfe; gesperrte bleiben gesperrt.
 * Beleg: vip-edel.css:237–249; Ziele wie im vorstehenden Materialblock.
 */
html body #root#root#root :is(
  #tikki-foyer-conversation #blasen-klein .knopf,
  #tikki-foyer-conversation > footer .tikki-chat-options-body button,
  #tikki-foyer-conversation > footer .tikki-foyer-project button,
  #vip-raumwand .raumwand-out button,
  #vip-raumwand .raumwand-out a
):not(:disabled):not([aria-disabled="true"]):active {
  box-shadow: var(--edel-druck, var(--edel-druck-hell)) !important;
}

/*
 * Bild 3, zugehörige Antwort-/Optionsknöpfe; Bild 2 »raum«:
 * Bei Tastaturbedienung bleibt die gewählte Handlung erkennbar.
 * Der Innenring liegt innerhalb der vorhandenen Fläche.
 * Beleg: vip-edel.css:251–264; Ziele wie im Materialblock.
 */
html body #root#root#root :is(
  #tikki-foyer-conversation #blasen-klein .knopf,
  #tikki-foyer-conversation > footer .tikki-chat-options-body button,
  #tikki-foyer-conversation > footer .tikki-foyer-project button,
  #vip-raumwand .raumwand-out button,
  #vip-raumwand .raumwand-out a
):focus-visible {
  outline: 2px solid var(--edel-fokusfarbe, var(--edel-fokus)) !important;
  outline-offset: -3px !important;
}

/* ==================== G05 · Bestehende Login-Rückmeldung ==================== */

@media (min-width: 761px) {
  /*
   * Bild 1 »login-fehler«:
   * Die Fehlermeldung wird zur schmalen Wortspalte, weil ihre
   * absolut positionierte Fläche width:auto besitzt.
   * Nur deren Textbreite korrigieren; kein neuer Login-Aufbau.
   * Beleg: vip-bruecke.css:30–34,129–132.
   */
  html body #root#root#root .vip-einlass-platz .einlass-sagt:not(:empty) {
    box-sizing: border-box !important;
    width: min(320px, calc(100vw - 32px)) !important;
    max-width: none !important;
    min-width: 0 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    font: 400 13px/1.45 "Avenir Next", system-ui, sans-serif !important;
    color: var(--edel-tinte) !important;
    text-shadow: none !important;
  }
}

/* ==================== G06 · Vollständige eigene Arbeitsmeldung ==================== */

/*
 * Bild 2 »frage«/»gespraech«/»fortschritt«:
 * Die eigene Arbeitsmeldung lässt sich seitlich vollständig lesen.
 * Die feste Höhe des Handy-Tickers bleibt bestehen; keine zweite Zeile.
 * Beleg: vip-bruecke.css:47,139–140; vip-telefon.css:151–154.
 */
html body #root#root#root .atelier-ticker > #vip-ticker:has(.vip-zug.arbeit) {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  white-space: nowrap !important;
  scrollbar-width: none !important;
}

/*
 * Bild 2 »frage«/»gespraech«/»fortschritt«:
 * Auch WebKit reserviert keine zusätzliche Höhe für eine Rollleiste.
 * Die Meldung bleibt mit Wischen bzw. seitlichem Scrollen erreichbar.
 * Beleg: vip-telefon.css:151–154, festes 26-px-Band.
 */
html body #root#root#root .atelier-ticker > #vip-ticker:has(.vip-zug.arbeit)::-webkit-scrollbar {
  display: none !important;
}

/*
 * Bild 2 »frage«/»gespraech«/»fortschritt«:
 * Kein Abschneiden durch Auslassungspunkte innerhalb der Arbeitsmeldung.
 * Nachrichtenlauf und Datenquelle werden nicht angefasst.
 * Beleg: vip-bruecke.css:139–142.
 */
html body #root#root#root #vip-ticker .vip-zug.arbeit {
  display: block !important;
  width: max-content !important;
  min-width: 100% !important;
  max-width: none !important;
  overflow: visible !important;
  text-overflow: clip !important;
  animation: none !important;
  transform: none !important;
  padding-left: 0 !important;
}

/* 15.11. (Claude): Die Überschrift der Räume bekommt beim Wechsel den Fokus (für Vorlese-Hilfen) – ohne sichtbaren Kasten. */
html body #root#root#root #raumwand-kopf:focus, html body #root#root#root #raumwand-kopf:focus-visible { outline: none !important; box-shadow: none !important; }
