/* Benachrichtigungen (partials/screens/inbox.php) – inbox_page.dart, InboxCompactShell, InboxTile, _SwipeRow, AppSnackBar */
.vf-phone .vf-screen--inbox {
  --a-teal: #33C9C5; --a-on-green: #06210F; --a-on-orange: #0A0B0E; --a-on-blue-t: #0A0B0E;
  /* Snackbar: immer dunkle Fläche, Erfolgs-Grün der dunklen Palette */
  --a-snack-ok: #1DCD83; --a-snack-text: #F2F4F8; --a-snack-on: #0A0B0E;
}
[data-theme="light"] .vf-phone .vf-screen--inbox { --a-teal: #019D9A; --a-on-green: #FFFFFF; --a-on-orange: #FFFFFF; --a-on-blue-t: #FFFFFF; }

.vf-screen--inbox .vf-inbox-title { padding: 0 0 4px; font-size: 28px; font-weight: 800; letter-spacing: -.8px; line-height: 1.12; }

/* Filter-Chips (36 hoch, 44 Trefferfläche) */
.vf-screen--inbox .vf-inbox-filters { display: flex; gap: 8px; padding: 8px 0 4px; margin-right: -16px; overflow: hidden; }
.vf-screen--inbox .vf-inbox-filters > span { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--a-card); border: 1px solid var(--a-divider); font-size: 14px; font-weight: 700; white-space: nowrap; box-sizing: border-box; }
.vf-screen--inbox .vf-inbox-filters > .is-active { background: var(--a-tab); border-color: var(--a-tab); color: var(--a-on-tab); }
.vf-screen--inbox .vf-inbox-filters i { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; background: var(--a-blue); color: #fff; font: 800 11px/1 var(--font-body); font-style: normal; box-sizing: border-box; }
.vf-screen--inbox .vf-inbox-filters .is-active i { background: var(--a-on-tab); color: var(--a-tab); }
.vf-screen--inbox .vf-inbox-filters .hi { width: 15px; height: 15px; color: var(--a-muted); }
.vf-screen--inbox .vf-inbox-donechip { opacity: 0; transition: opacity .3s ease .35s; }

/* Abschnitts-Überschriften */
.vf-screen--inbox .vf-inbox-label { display: block; padding: 16px 0 8px 4px; font-size: 12px; font-weight: 800; letter-spacing: .6px; color: var(--a-muted); }
.vf-screen--inbox .vf-inbox-label.is-accent { color: var(--a-blue-t); }

/* „Heute zu tun“: Karten mit 86 % Breite, nächste lugt rechts hervor */
.vf-screen--inbox .vf-inbox-todo { display: flex; gap: 10px; align-items: flex-start; margin-right: -16px; overflow: hidden; }
.vf-screen--inbox .vf-inbox-todo > * { flex: 0 0 calc((100% - 16px) * .86); min-width: 0; box-sizing: border-box; }
.vf-screen--inbox .vf-inbox-dots { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.vf-screen--inbox .vf-inbox-dots i { width: 6px; height: 6px; border-radius: 999px; background: var(--a-divider); }
.vf-screen--inbox .vf-inbox-dots .is-on { width: 16px; background: var(--a-blue-t); }

/* Kompakte Zeile (InboxCompactShell): Radius 14, gelesen = halbtransparente Fläche */
.vf-screen--inbox .vf-inbox-row { display: flex; align-items: center; gap: 12px; height: 62px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--a-divider); background: color-mix(in srgb, var(--a-card) 45%, transparent); box-sizing: border-box; }
.vf-screen--inbox .vf-inbox-row.is-unread { background: var(--a-card); }
.vf-screen--inbox .is-hl-border { border-color: color-mix(in srgb, var(--a-blue-t) 60%, transparent); }
.vf-screen--inbox .vf-inbox-feed > .vf-inbox-row, .vf-screen--inbox .vf-inbox-swipe { margin-bottom: 10px; }
.vf-screen--inbox .vf-inbox-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vf-screen--inbox .vf-inbox-txt p { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vf-screen--inbox .vf-inbox-txt b { font-weight: 700; }
.vf-screen--inbox .is-unread .vf-inbox-txt b { font-weight: 800; }
.vf-screen--inbox .vf-inbox-txt small { font-size: 12.5px; color: var(--a-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vf-screen--inbox .vf-inbox-row time { margin-left: -4px; font-size: 12px; font-weight: 600; color: var(--a-muted); white-space: nowrap; }
.vf-screen--inbox .vf-inbox-dot { width: 8px; height: 8px; margin-left: -6px; flex-shrink: 0; border-radius: 50%; background: var(--a-blue-t); }

/* Datumskachel (Wochentag farbig) und getöntes Symbol-Quadrat */
.vf-screen--inbox .vf-inbox-date { width: 40px; flex-shrink: 0; border-radius: 11px; overflow: hidden; background: var(--a-field); text-align: center; }
.vf-screen--inbox .vf-inbox-date b { display: block; padding: 2px 0; font-size: 9px; font-weight: 800; letter-spacing: .6px; }
.vf-screen--inbox .vf-inbox-date span { display: block; padding: 1px 0 3px; font-size: 17px; font-weight: 800; line-height: 1.3; }
.vf-screen--inbox .vf-inbox-date--game b { background: var(--a-green); color: var(--a-on-green); }
.vf-screen--inbox .vf-inbox-date--change b { background: var(--a-orange); color: var(--a-on-orange); }
.vf-screen--inbox .vf-inbox-icon { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; }
.vf-screen--inbox .vf-inbox-icon .hi { width: 20px; height: 20px; }
.vf-screen--inbox .vf-inbox-icon--teal { color: var(--a-teal); background: color-mix(in srgb, var(--a-teal) 14%, transparent); }
.vf-screen--inbox .vf-inbox-icon--orange { color: var(--a-orange); background: color-mix(in srgb, var(--a-orange) 14%, transparent); }
.vf-screen--inbox .vf-inbox-date--training b { background: var(--a-blue-t); color: var(--a-on-blue-t); }
.vf-screen--inbox .vf-inbox-chip { display: inline-flex; align-items: center; gap: 4px; margin-left: -4px; padding: 2px 7px; border-radius: 999px; background: var(--a-green); color: var(--a-on-green); font-size: 11px; font-weight: 700; white-space: nowrap; }
.vf-screen--inbox .vf-inbox-chip .hi { width: 12px; height: 12px; }
.vf-screen--inbox .vf-inbox-icon--red { color: var(--a-red); background: color-mix(in srgb, var(--a-red) 14%, transparent); }

/* Zu-/Absagen direkt in der Zeile (36er Kreise in 44er Trefferfläche) */
.vf-screen--inbox .vf-inbox-round { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; }
.vf-screen--inbox .vf-inbox-round + .vf-inbox-round { margin-left: -4px; }
.vf-screen--inbox .vf-inbox-round + .vf-inbox-dot { margin-left: -2px; }
.vf-screen--inbox .vf-inbox-round .hi { width: 18px; height: 18px; }
.vf-screen--inbox .vf-inbox-round.is-no { color: var(--a-red); background: color-mix(in srgb, var(--a-red) 14%, transparent); }
.vf-screen--inbox .vf-inbox-round.is-yes { color: var(--a-on-green); background: var(--a-green); }

/* Karte A (InboxTile) der Umfrage, lugt hervor */
.vf-screen--inbox .vf-inbox-card { display: flex; gap: 12px; padding: 14px; border-radius: 20px; border: 1px solid var(--a-divider); background: color-mix(in srgb, var(--a-card) 45%, transparent); }
.vf-screen--inbox .vf-inbox-lead { position: relative; width: 44px; height: 44px; flex-shrink: 0; }
.vf-screen--inbox .vf-inbox-lead .vf-av { width: 44px; height: 44px; }
.vf-screen--inbox .vf-inbox-lead i { position: absolute; right: -4px; bottom: -4px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--a-violet); color: #fff; border: 2px solid var(--a-card); box-sizing: border-box; }
.vf-screen--inbox .vf-inbox-lead i .hi { width: 11px; height: 11px; }
.vf-screen--inbox .vf-inbox-card .vf-inbox-txt p { font-size: 15px; }

/* Wischen nach links = Erledigt: grüner Hintergrund (Radius 20), Beschriftung rechts */
.vf-screen--inbox .vf-inbox-swipe { position: relative; }
.vf-screen--inbox .vf-inbox-done { position: absolute; inset: 0; display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 0 20px; border-radius: 20px; background: var(--a-green); color: var(--a-on-green); font-size: 14px; font-weight: 800; opacity: 0; transition: opacity .2s; }
.vf-screen--inbox .vf-inbox-done .hi { width: 20px; height: 20px; }
.vf-screen--inbox .vf-inbox-fg { position: relative; transition: transform .3s cubic-bezier(.33,1,.68,1); }
.vf-screen--inbox .vf-inbox-below { position: relative; transition: transform .35s cubic-bezier(.33,1,.68,1) .1s; }

/* Snackbar oben (dunkle Fläche, fährt von oben herein) */
.vf-screen--inbox .vf-inbox-snack { position: absolute; z-index: 5; top: 114px; left: 16px; right: 16px; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 20px; background: var(--a-hero); border: 1px solid rgba(255,255,255,.08); box-shadow: 0 10px 24px rgba(0,0,0,.28); color: var(--a-snack-text); font-size: 14px; font-weight: 600; opacity: 0; transform: translateY(-100%); transition: transform .3s cubic-bezier(.34,1.56,.64,1) .3s, opacity .3s ease .3s; }
.vf-screen--inbox .vf-inbox-snack > span:nth-child(2) { flex: 1; }
.vf-screen--inbox .vf-inbox-snack__ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--a-snack-ok); background: color-mix(in srgb, var(--a-snack-ok) 16%, transparent); }
.vf-screen--inbox .vf-inbox-snack b { padding: 6px 12px; border-radius: 999px; background: var(--a-snack-ok); color: var(--a-snack-on); font-size: 12px; font-weight: 700; }

/* Ablauf „erledigt“: 1 Zeile folgt dem Finger nach links und fliegt raus;
   2 Lücke schließt sich, Snackbar mit Rückgängig, Filter „Erledigt“ erscheint */
.vf-screen--inbox [data-swipe].is-press { transform: none; }
.vf-screen--inbox [data-swipe].is-press .vf-inbox-done, .s1 .vf-screen--inbox [data-swipe] .vf-inbox-done { opacity: 1; }
.vf-screen--inbox [data-swipe].is-press .vf-inbox-fg { transform: translateX(-45%); }
.s1 .vf-screen--inbox [data-swipe] .vf-inbox-fg { transform: translateX(-115%); }
.s2 .vf-screen--inbox [data-swipe] .vf-inbox-done { opacity: 0; }
.s2 .vf-screen--inbox [data-swipe] ~ .vf-inbox-below { transform: translateY(-72px); }
.s2 .vf-screen--inbox .vf-inbox-snack { opacity: 1; transform: none; }
.s2 .vf-screen--inbox .vf-inbox-donechip { opacity: 1; }
.vf-screen--inbox .vf-inbox-card .vf-inbox-txt b { font-weight: 600; }
.vf-screen--inbox .vf-inbox-hint { padding: 6px 0 16px; text-align: center; font-size: 11px; color: var(--a-muted); }
