/* Tab „Chat“ (partials/screens/chat.php) – chat_page.dart, ChatPinnedRow, ChatListTile, ChatSwipeRow */
/* Wisch-Aktionen: feste helle Töne (AppPalette.light.textDark / .lime), in beiden Modi gleich */
.vf-phone .vf-screen--chat { --a-swipe-mute: #6B7280; --a-swipe-pin: #007AFF; }

/* „+“ im Kopf (AppCircleIconButton filled) */
.vf-screen--chat .vf-chat-add { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--a-blue); color: #fff; }
.vf-screen--chat .vf-chat-add .hi { width: 20px; height: 20px; }

/* Suchfeld (AppSearchBar) und Filter-Chips */
.vf-screen--chat .vf-chat-search { display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 12px; margin-bottom: 8px; border-radius: 999px; background: var(--a-card); border: 1px solid var(--a-divider); font-size: 16px; color: var(--a-dim); }
.vf-screen--chat .vf-chat-search .hi { width: 20px; height: 20px; color: var(--a-muted); }
.vf-screen--chat .vf-chat-filters { display: flex; gap: 8px; height: 36px; }
.vf-screen--chat .vf-chat-filters span { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--a-card); border: 1px solid var(--a-divider); font-size: 13px; font-weight: 600; white-space: nowrap; box-sizing: border-box; }
.vf-screen--chat .vf-chat-filters .is-active { background: var(--a-text); border-color: var(--a-text); color: var(--a-bg); font-weight: 700; }
.vf-screen--chat .vf-chat-filters i { margin-left: 6px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--a-blue); color: #fff; font: 800 10px/1 var(--font-body); font-style: normal; }

/* „Angeheftet“-Leiste: große Avatare mit Zähler */
.vf-screen--chat .vf-chat-pins { position: relative; display: flex; gap: 6px; height: 104px; margin: 4px -16px 0; padding: 10px 16px 6px; box-sizing: border-box; }
.vf-screen--chat .vf-chat-pin { flex: 0 0 68px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.vf-screen--chat .vf-chat-pin__av { position: relative; width: 62px; height: 62px; }
.vf-screen--chat .vf-chat-pin__av > .vf-av, .vf-screen--chat .vf-chat-pin__av > .team-pic { width: 62px; height: 62px; border-radius: 50%; display: grid; font-size: 18px; font-weight: 800; }
.vf-screen--chat .vf-chat-pin__av > i { position: absolute; top: -3px; right: -4px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--a-blue); color: #fff; border: 1.5px solid var(--a-bg); box-sizing: border-box; font: 800 12px/1 var(--font-body); font-style: normal; }
.vf-screen--chat .vf-chat-pin small { max-width: 68px; font-size: 11.5px; font-weight: 600; color: var(--a-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vf-screen--chat .vf-chat-pin.is-unread small { color: var(--a-text); }

/* Chat-Zeilen ohne Karte: Avatar 52, Name 16/700 + Zeit, Vorschau 14 + Zähler */
.vf-screen--chat .vf-chat-row { display: flex; align-items: center; gap: 14px; margin: 0 -16px; padding: 10px 16px; background: var(--a-bg); }
.vf-screen--chat .vf-chat-av { width: 52px; height: 52px; flex-shrink: 0; border-radius: 50%; font-size: 16px; font-weight: 800; overflow: hidden; }
.vf-screen--chat .vf-chat-av > .team-pic, .vf-screen--chat .vf-chat-av > .club-crest { display: block; width: 100%; height: 100%; }
.vf-screen--chat .vf-chat-club { display: grid; place-items: center; background: var(--a-field); }
.vf-screen--chat .vf-chat-club > .club-crest { width: 34px; height: 34px; }
.vf-screen--chat .vf-chat-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.vf-screen--chat .vf-chat-txt p { display: flex; align-items: center; gap: 4px; min-width: 0; }
.vf-screen--chat .vf-chat-txt strong { flex: 1; font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vf-screen--chat .vf-chat-txt time { margin-left: 4px; font-size: 12px; font-weight: 500; color: var(--a-muted); font-variant-numeric: tabular-nums; }
.vf-screen--chat .vf-chat-txt p > span { flex: 1; min-width: 0; font-size: 14px; color: var(--a-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vf-screen--chat .vf-chat-txt p > .hi { width: 14px; height: 14px; color: var(--a-muted); }
.vf-screen--chat .vf-chat-txt p > .hi.is-read { width: 17px; height: 17px; color: var(--a-blue-t); }
.vf-screen--chat .vf-chat-txt p > i { margin-left: 4px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--a-blue); color: #fff; font: 800 12px/1 var(--font-body); font-style: normal; }
.vf-screen--chat .is-unread time { color: var(--a-blue-t); font-weight: 700; }
.vf-screen--chat .is-unread p > span { color: var(--a-text); font-weight: 600; }
/* Gruppenchat: nächster Termin mit Zusagen */
.vf-screen--chat .vf-chat-next { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; height: 24px; margin-top: 3px; padding: 0 9px; border-radius: 999px; background: var(--a-card); border: 1px solid var(--a-divider); font-size: 11.5px; font-weight: 600; white-space: nowrap; box-sizing: border-box; }
.vf-screen--chat .vf-chat-next > .hi { width: 13px; height: 13px; color: var(--a-blue-t); }
.vf-screen--chat .vf-chat-next b { display: inline-flex; align-items: center; gap: 3px; margin-left: 3px; font-weight: 700; color: var(--a-green); }
.vf-screen--chat .vf-chat-next b .hi { width: 12px; height: 12px; }

/* Wischbare Zeile: Aktionen liegen rechts unter der Zeile (je 76 breit) */
.vf-screen--chat .vf-chat-swipe { position: relative; margin: 0 -16px; overflow: hidden; transition: opacity .25s ease .2s; }
.vf-screen--chat .vf-chat-swipe .vf-chat-fg { position: relative; margin: 0; transition: transform .28s cubic-bezier(.33,1,.68,1); }
.vf-screen--chat .vf-chat-acts { position: absolute; top: 0; right: 0; bottom: 0; display: flex; }
.vf-screen--chat .vf-chat-acts > span { width: 76px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #fff; }
.vf-screen--chat .vf-chat-acts .hi { width: 20px; height: 20px; }
.vf-screen--chat .vf-chat-acts small { font-size: 11.5px; font-weight: 700; }
.vf-screen--chat .vf-chat-mute { background: var(--a-swipe-mute); }
.vf-screen--chat .vf-chat-pinact { background: var(--a-swipe-pin); transition: transform .15s; }
.vf-screen--chat .vf-chat-below { position: relative; transition: transform .35s cubic-bezier(.33,1,.68,1) .3s; }
.vf-screen--chat .vf-chat-pin--after { transition: transform .35s cubic-bezier(.33,1,.68,1) .3s; }
.vf-screen--chat .vf-chat-pin--new { position: absolute; top: 10px; left: 164px; opacity: 0; transform: scale(.6); transition: opacity .3s ease .45s, transform .4s cubic-bezier(.34,1.56,.64,1) .45s; }

/* Ablauf „wischen“: 1 Zeile folgt dem Finger nach links (−152) und bleibt offen;
   2 Tipp auf „Anheften“ → Zeile schließt und verschwindet, Liste rückt nach, Chat erscheint oben */
.vf-screen--chat [data-swipe].is-press { transform: none; }
.vf-screen--chat [data-swipe].is-press .vf-chat-fg,
.s1 .vf-screen--chat [data-swipe] .vf-chat-fg { transform: translateX(-152px); }
.s2 .vf-screen--chat [data-swipe] .vf-chat-fg { transform: translateX(0); }
.s2 .vf-screen--chat [data-swipe] { opacity: 0; }
.s2 .vf-screen--chat [data-swipe] ~ .vf-chat-below { transform: translateY(-72px); }
.s2 .vf-screen--chat .vf-chat-pin--after { transform: translateX(74px); }
.s2 .vf-screen--chat .vf-chat-pin--new { opacity: 1; transform: none; }
