/**
 * news_deck.css — High-Performance GPU-Accelerated Spring Physics & Swipe Deck Styles
 * iShareStuff / TSecurity.de CMS ("News-Tinder" / Requirement R2)
 *
 * CD-B2-Pilot (17.09.2026): komplett in @layer components geschichtet.
 * Beweis der Neutralität: alle 31 Selektoren sind .ts-deck-*-exklusiv
 * (0 Überlappungen mit mobile/theme_3/design_system/default/modern_editorial/
 * community_chat/comments/article), alle :root-Variablen --ts-deck-*-exklusiv;
 * der unlayered-JS-Injektor (#ts-deck-styles, news_deck.js injectStyles) gewinnt
 * gegen components-Layer so wie vorher per Ladeordnung.
 */

@layer components {
:root {
  --ts-deck-border-radius: 1.25rem;
  --ts-deck-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
  --ts-deck-card-bg-dark: rgba(15, 23, 42, 0.94);
  --ts-deck-card-border-dark: rgba(148, 163, 184, 0.22);
  --ts-deck-spring-easing: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ts-deck-wrap {
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}

.ts-deck-stack {
  position: relative;
  /* Mobile-First (19.09.2026): 48vh/420px statt 60vh/480px — Navbar+Kopf+
     Chips+Deck-Leiste (~339px) + Stapel + Dock müssen auf iPhone-Klasse
     (844px) in EINEN Viewport passen, sonst liegt das Dock unter dem Fold. */
  height: min(48vh, 420px);
  touch-action: none;
  outline: none;
  perspective: 1000px;
  -webkit-perspective: 1000px;
}

@media (min-width: 768px) {
  .ts-deck-stack {
    height: 520px;
  }
}

/* Welle 4 (06.09.): Ladezustand — der leere Stack reservierte 540px reine
   Leere; Skelett-Karte im Stack + Spinner in der Empty-Box machen den
   Zustand lesbar (Spinner via .ts-deck-is-loading aus news_deck.js). */
.ts-deck-stack:empty::before {
  content: "";
  position: absolute;
  inset: 6% 3%;
  border-radius: var(--ts-deck-border-radius, 1.25rem);
  background: linear-gradient(150deg, rgba(100, 116, 139, 0.14), rgba(100, 116, 139, 0.04));
  border: 1px dashed rgba(100, 116, 139, 0.45);
  pointer-events: none;
}

.ts-deck-empty .ts-deck-loading-spinner {
  width: 38px;
  height: 38px;
  margin: 0 auto;
  border-radius: 50%;
  border: 3px solid rgba(100, 116, 139, 0.3);
  border-top-color: #0284c7;
  display: none;
}

.ts-deck-empty.ts-deck-is-loading .ts-deck-loading-spinner {
  display: block;
  animation: tsDeckSpin 0.9s linear infinite;
}

@keyframes tsDeckSpin {
  to { transform: rotate(360deg); }
}

.ts-deck-stack:focus-visible {
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.55);
  border-radius: var(--ts-deck-border-radius);
}

.ts-deck-card {
  position: absolute;
  inset: 0;
  display: flex;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  will-change: transform, opacity;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.ts-deck-card.ts-deck-dragging {
  cursor: grabbing;
  transition: none !important;
}

.ts-deck-card.ts-deck-springing {
  transition: transform 0.45s var(--ts-deck-spring-easing), opacity 0.35s ease !important;
}

.ts-deck-card.ts-deck-fly-out {
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.32s ease !important;
  pointer-events: none;
}

.ts-deck-card-inner {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  margin: 0 0.5rem;
  border-radius: var(--ts-deck-border-radius);
  background: #0f172a;
  border: 1px solid var(--ts-deck-card-border-dark);
  box-shadow: var(--ts-deck-shadow);
  overflow: hidden;
}

body.light .ts-deck-card-inner,
:root[data-bs-theme="light"] .ts-deck-card-inner,
html[data-bs-theme="light"] .ts-deck-card-inner {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

body.light .ts-deck-card-body,
:root[data-bs-theme="light"] .ts-deck-card-body,
html[data-bs-theme="light"] .ts-deck-card-body {
  background: #ffffff !important;
}

body.light .ts-deck-title,
:root[data-bs-theme="light"] .ts-deck-title,
html[data-bs-theme="light"] .ts-deck-title {
  color: #0f172a !important;
}

body.light .ts-deck-excerpt,
:root[data-bs-theme="light"] .ts-deck-excerpt,
html[data-bs-theme="light"] .ts-deck-excerpt {
  color: #334155 !important;
}

.ts-deck-title {
  /* ND5: Explizite Karten-Textfarben — die SSR-Erstkarten painten VOR dem
     Theme-Boot (data-bs-theme-Attribut fehlt im no-JS-/Pre-Boot-Moment);
     ohne eigene Farbe erbten sie die Body-Farbe des Seiten-Themes (dunkel
     auf dunkler Karte). Der light-Override unten gewinnt weiter (!important). */
  color: #f1f5f9;
  font-size: 1.05rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ts-deck-excerpt {
  color: rgba(241, 245, 249, 0.82);
  font-size: 0.86rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ts-deck-cover--v0 { background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%); }
.ts-deck-cover--v1 { background: linear-gradient(135deg, #022c22 0%, #064e3b 50%, #065f46 100%); }
.ts-deck-cover--v2 { background: linear-gradient(135deg, #18181b 0%, #3b0764 50%, #581c87 100%); }
.ts-deck-cover--v3 { background: linear-gradient(135deg, #111827 0%, #1e293b 50%, #0f766e 100%); }

.ts-deck-cover-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 16px 16px;
  opacity: 0.45;
}

.ts-deck-overlay {
  position: absolute;
  top: 1rem;
  padding: 0.45rem 1rem;
  border-radius: 0.75rem;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.05em;
  opacity: 0;
  pointer-events: none;
  border: 3px solid currentColor;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  z-index: 25;
  will-change: opacity, transform;
  transform: translate3d(0, 0, 0);
}

/* v3 (19.09.2026): OBEN = LESEN (cyan), RECHTS = VOR (rot), LINKS und UNTEN =
   ZURÜCK (amber) — die Overlays folgen der neuen Gesten-/Tastatur-Semantik. */
.ts-deck-overlay-read {
  left: 50%;
  top: 1rem;
  transform: translate3d(-50%, 0, 0);
  color: #06b6d4;
  background: rgba(6, 182, 212, 0.18);
}

.ts-deck-overlay-skip,
.ts-deck-overlay-next,
.ts-deck-overlay-like {
  right: 1.25rem;
  left: auto;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.18);
  transform: translate3d(0, 0, 0) rotate(10deg);
}

.ts-deck-overlay-back {
  left: 1.25rem;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.18);
  transform: translate3d(0, 0, 0) rotate(-10deg);
}

.ts-deck-overlay-prev,
.ts-deck-overlay-undo {
  left: 50%;
  bottom: 1rem;
  top: auto;
  transform: translate3d(-50%, 0, 0);
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.18);
}

.ts-deck-actions button {
  min-width: 48px;
  min-height: 48px;
  transition: transform 0.2s var(--ts-deck-spring-easing), background-color 0.15s ease, box-shadow 0.15s ease;
}

.ts-deck-actions button:hover {
  transform: scale(1.08);
}

.ts-deck-actions button:active {
  transform: scale(0.92);
}

@media (prefers-reduced-motion: reduce) {
  .ts-deck-card,
  .ts-deck-card.ts-deck-springing,
  .ts-deck-card.ts-deck-fly-out,
  .ts-deck-actions button {
    transition: none !important;
  }
}

/* ==========================================================================
   ND-Rework (17.09.2026) — Kategorie-Chips, Tastatur-Legende, Voting-
   Popover und Artikel-Reader. Alle Selektoren .ts-deck-*-exklusiv
   (B2-Pilot-Fortführung: 0 Überlappungen mit fremden Zonen).
   ========================================================================== */

.ts-deck-page {
  max-width: 720px;
}

/* --- Tastatur-Legende (Standalone-Seite) --- */
.ts-deck-key-legend kbd {
  display: inline-block;
  min-width: 1.7em;
  padding: 0.15rem 0.4rem;
  border-radius: 0.375rem;
  background: rgba(100, 116, 139, 0.25);
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-bottom-width: 2px;
  color: inherit;
  font-size: 0.85em;
  text-align: center;
}

/* --- RSS-Kategorie-Chips (CMS-Struktur) --- */
.ts-deck-cat-bar {
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.55);
}

:root[data-bs-theme="light"] .ts-deck-cat-bar,
html[data-bs-theme="light"] .ts-deck-cat-bar {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(15, 23, 42, 0.12);
}

.ts-deck-cat-scroll {
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.ts-deck-cat-scroll::-webkit-scrollbar {
  height: 6px;
}

.ts-deck-cat-scroll::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.4);
  border-radius: 3px;
}

.ts-deck-cat-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: 50rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(30, 41, 59, 0.6);
  color: #cbd5e1;
  font-size: 0.82rem;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ts-deck-cat-chip:hover,
.ts-deck-cat-chip:focus-visible {
  color: #e2e8f0;
  border-color: rgba(6, 182, 212, 0.55);
  background: rgba(8, 51, 68, 0.65);
}

.ts-deck-cat-chip.active {
  color: #0f172a;
  background: #06b6d4;
  border-color: #06b6d4;
  font-weight: 600;
}

.ts-deck-cat-chip .ts-deck-cat-indent {
  width: 0.55rem;
  height: 0.55rem;
  border-left: 2px dotted rgba(148, 163, 184, 0.6);
  border-bottom: 2px dotted rgba(148, 163, 184, 0.6);
  display: inline-block;
}

.ts-deck-cat-chip.active .ts-deck-cat-indent {
  border-color: rgba(15, 23, 42, 0.55);
}

.ts-deck-cat-count {
  font-size: 0.68rem;
  padding: 0.05rem 0.4rem;
  border-radius: 50rem;
  background: rgba(148, 163, 184, 0.2);
  font-variant-numeric: tabular-nums;
}

.ts-deck-cat-chip.active .ts-deck-cat-count {
  background: rgba(15, 23, 42, 0.18);
}

:root[data-bs-theme="light"] .ts-deck-cat-chip,
html[data-bs-theme="light"] .ts-deck-cat-chip {
  background: rgba(241, 245, 249, 0.9);
  color: #334155;
  border-color: rgba(15, 23, 42, 0.15);
}

:root[data-bs-theme="light"] .ts-deck-cat-chip.active,
html[data-bs-theme="light"] .ts-deck-cat-chip.active {
  background: #0891b2;
  border-color: #0891b2;
  color: #f8fafc;
}

/* --- Voting/Rating-Popover (Taste V) --- */
.ts-deck-vote-popover {
  position: absolute;
  left: 50%;
  bottom: 4.6rem;
  transform: translateX(-50%);
  z-index: 40;
  width: min(92%, 340px);
  padding: 0.75rem 0.85rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.97);
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

:root[data-bs-theme="light"] .ts-deck-vote-popover,
html[data-bs-theme="light"] .ts-deck-vote-popover {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(217, 119, 6, 0.35);
}

.ts-deck-vote-title {
  color: #fbbf24;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-align: center;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.ts-deck-vote-title .ts-deck-vote-hint {
  color: rgba(148, 163, 184, 0.9);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  margin-left: 0.35rem;
}

.ts-deck-react-btn {
  min-width: 40px;
  min-height: 44px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  padding: 0.3rem 0.45rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(30, 41, 59, 0.55);
  transition: transform 0.15s var(--ts-deck-spring-easing), border-color 0.15s ease, background-color 0.15s ease;
}

.ts-deck-react-btn:hover {
  transform: scale(1.08);
  border-color: rgba(6, 182, 212, 0.55);
}

.ts-deck-react-btn.active {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.16);
}

:root[data-bs-theme="light"] .ts-deck-react-btn,
html[data-bs-theme="light"] .ts-deck-react-btn {
  background: rgba(241, 245, 249, 0.9);
  border-color: rgba(15, 23, 42, 0.15);
}

.ts-deck-react-emoji {
  font-size: 1.15rem;
  line-height: 1;
}

.ts-deck-react-count {
  font-size: 0.66rem;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
}

.ts-deck-react-btn.active .ts-deck-react-count {
  color: #f59e0b;
}

/* --- Artikel-Reader (Links = Lesen) --- */
.ts-deck-reader {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: tsDeckReaderFade 0.2s ease;
}

@keyframes tsDeckReaderFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

body.ts-deck-reader-open {
  overflow: hidden;
}

.ts-deck-reader-panel {
  position: relative;
  width: min(100%, 760px);
  height: min(94vh, 940px);
  display: flex;
  flex-direction: column;
  background: #0b1220;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-bottom: none;
  border-radius: 1.35rem 1.35rem 0 0;
  box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.6);
  overflow-y: auto;
  overscroll-behavior: contain;
  animation: tsDeckReaderSlide 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

@keyframes tsDeckReaderSlide {
  from { transform: translateY(60px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

:root[data-bs-theme="light"] .ts-deck-reader-panel,
html[data-bs-theme="light"] .ts-deck-reader-panel {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.12);
}

.ts-deck-reader-grid {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.ts-deck-reader-header {
  padding: 1.1rem 1.25rem 0.75rem;
  position: sticky;
  top: 0;
  z-index: 5;
  background: linear-gradient(180deg, #0b1220 78%, rgba(11, 18, 32, 0));
}

:root[data-bs-theme="light"] .ts-deck-reader-header,
html[data-bs-theme="light"] .ts-deck-reader-header {
  background: linear-gradient(180deg, #f8fafc 78%, rgba(248, 250, 252, 0));
}

.ts-deck-reader-title {
  color: #e2e8f0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.4rem;
}

:root[data-bs-theme="light"] .ts-deck-reader-title,
html[data-bs-theme="light"] .ts-deck-reader-title {
  color: #0f172a;
}

.ts-deck-reader-media img,
.ts-deck-reader-media iframe {
  width: 100%;
  display: block;
  border-radius: 0.75rem;
  max-height: 340px;
  object-fit: cover;
}

.ts-deck-reader-body {
  padding: 1rem 1.25rem 1.25rem;
  color: #cbd5e1;
  font-size: 0.98rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.ts-deck-reader-body img {
  max-width: 100%;
  height: auto;
  border-radius: 0.6rem;
}

.ts-deck-reader-body pre {
  background: rgba(2, 6, 23, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 0.6rem;
  padding: 0.85rem;
  overflow-x: auto;
  font-size: 0.85rem;
}

.ts-deck-reader-body a {
  color: #22d3ee;
}

:root[data-bs-theme="light"] .ts-deck-reader-body,
html[data-bs-theme="light"] .ts-deck-reader-body {
  color: #334155;
}

:root[data-bs-theme="light"] .ts-deck-reader-body a,
html[data-bs-theme="light"] .ts-deck-reader-body a {
  color: #0e7490;
}

.ts-deck-reader-footer {
  margin-top: auto;
  padding: 0.9rem 1.25rem 1.25rem;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.55);
  position: sticky;
  bottom: 0;
}

:root[data-bs-theme="light"] .ts-deck-reader-footer,
html[data-bs-theme="light"] .ts-deck-reader-footer {
  background: rgba(241, 245, 249, 0.92);
  border-top-color: rgba(15, 23, 42, 0.1);
}

.ts-deck-reader-votebox {
  margin-bottom: 0.6rem;
}

.ts-deck-reader-error {
  color: #94a3b8;
}

@media (prefers-reduced-motion: reduce) {
  .ts-deck-reader,
  .ts-deck-reader-panel {
    animation: none !important;
  }
}

/* ==========================================================================
   Mobile-First-Umbau (19.09.2026) — Bedienung NACH dem Deck:
   ?-Coach-Button, Gesten-Legende (Smartphone), Tastatur-Legende (Desktop),
   Einmal-Hinweis-Strip und animierter Bedienungs-Coach. Alle Selektoren
   bleiben .ts-deck-*-exklusiv (B2-Pilot-Vertrag).
   ========================================================================== */

/* --- ?-Button in der Deck-Kopfzeile (44px Touch-Ziel) --- */
.ts-deck-help-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(30, 41, 59, 0.6);
  color: #cbd5e1;
  font-size: 1.05rem;
  line-height: 1;
  transition: transform 0.2s var(--ts-deck-spring-easing), border-color 0.15s ease, color 0.15s ease;
}

/* MFG-6.2 (MFG-21, 28.09.2026): Deck-Top-Bar @≤400px — Counter-Badge + 3
   44px-Buttons liefen +6px aus dem Viewport. Der Badge-Padding-Anteil weicht;
   Buttons bleiben unangetastet (44px-Touch-Vertrag). */
@media (max-width: 400px) {
  .ts-deck-counter {
    padding-left: 0.55rem !important;
    padding-right: 0.55rem !important;
    font-size: 0.62rem !important;
  }
}

.ts-deck-help-btn:hover,
.ts-deck-help-btn:focus-visible {
  color: #22d3ee;
  border-color: rgba(6, 182, 212, 0.55);
  transform: scale(1.06);
}

:root[data-bs-theme="light"] .ts-deck-help-btn,
html[data-bs-theme="light"] .ts-deck-help-btn {
  background: rgba(241, 245, 249, 0.9);
  color: #334155;
  border-color: rgba(15, 23, 42, 0.15);
}

:root[data-bs-theme="light"] .ts-deck-help-btn:hover,
:root[data-bs-theme="light"] .ts-deck-help-btn:focus-visible,
html[data-bs-theme="light"] .ts-deck-help-btn:hover,
html[data-bs-theme="light"] .ts-deck-help-btn:focus-visible {
  color: #0e7490;
  border-color: rgba(8, 145, 178, 0.55);
}

/* --- Gesten-Legende (Smartphone, <768px — Erklärung ohne JS lesbar) --- */
.ts-deck-gesture-legend {
  margin: 1rem auto 0;
  max-width: 480px;
  padding: 0.85rem 1rem 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.55);
}

:root[data-bs-theme="light"] .ts-deck-gesture-legend,
html[data-bs-theme="light"] .ts-deck-gesture-legend {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(15, 23, 42, 0.12);
}

.ts-deck-gesture-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  color: #22d3ee;
}

:root[data-bs-theme="light"] .ts-deck-gesture-head,
html[data-bs-theme="light"] .ts-deck-gesture-head {
  color: #0e7490;
}

.ts-deck-gesture-title {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.ts-deck-gesture-more {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.9rem;
  border-radius: 50rem;
  border: 1px solid rgba(6, 182, 212, 0.45);
  background: rgba(8, 51, 68, 0.5);
  color: #67e8f9;
  font-size: 0.8rem;
  white-space: nowrap;
}

.ts-deck-gesture-more:hover,
.ts-deck-gesture-more:focus-visible {
  border-color: rgba(6, 182, 212, 0.8);
  color: #a5f3fc;
}

:root[data-bs-theme="light"] .ts-deck-gesture-more,
html[data-bs-theme="light"] .ts-deck-gesture-more {
  background: rgba(207, 250, 254, 0.7);
  color: #155e75;
  border-color: rgba(8, 145, 178, 0.4);
}

.ts-deck-gesture-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.ts-deck-gesture-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.86rem;
  color: #cbd5e1;
  line-height: 1.4;
}

:root[data-bs-theme="light"] .ts-deck-gesture-list li,
html[data-bs-theme="light"] .ts-deck-gesture-list li {
  color: #334155;
}

.ts-deck-gesture-ico {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 0.75rem;
  border: 1.5px solid;
  font-size: 1.05rem;
  background: rgba(30, 41, 59, 0.5);
}

:root[data-bs-theme="light"] .ts-deck-gesture-ico,
html[data-bs-theme="light"] .ts-deck-gesture-ico {
  background: rgba(241, 245, 249, 0.9);
}

/* Richtungs-Kodierung folgt den Karten-Overlays (v3): Oben Lesen cyan,
   Rechts Vor rot, Links/Unten Zurück amber, Tipp neutral. */
.ts-gico-up    { border-color: rgba(6, 182, 212, 0.65); color: #22d3ee; }
.ts-gico-right { border-color: rgba(239, 68, 68, 0.6); color: #f87171; }
.ts-gico-left  { border-color: rgba(245, 158, 11, 0.6); color: #fbbf24; }
.ts-gico-down  { border-color: rgba(245, 158, 11, 0.6); border-style: dashed; color: #fbbf24; }
.ts-gico-tap   { border-color: rgba(148, 163, 184, 0.55); color: #cbd5e1; }

:root[data-bs-theme="light"] .ts-gico-left,
html[data-bs-theme="light"] .ts-gico-left { color: #b45309; }
:root[data-bs-theme="light"] .ts-gico-right,
html[data-bs-theme="light"] .ts-gico-right { color: #dc2626; }
:root[data-bs-theme="light"] .ts-gico-up,
html[data-bs-theme="light"] .ts-gico-up { color: #0e7490; }
:root[data-bs-theme="light"] .ts-gico-down,
html[data-bs-theme="light"] .ts-gico-down { color: #b45309; }
:root[data-bs-theme="light"] .ts-gico-tap,
html[data-bs-theme="light"] .ts-gico-tap { color: #475569; }

.ts-deck-gesture-tap {
  border-bottom: 2px dotted rgba(148, 163, 184, 0.7);
}

.ts-deck-gesture-note {
  margin-top: 0.75rem;
  padding-top: 0.6rem;
  border-top: 1px dashed rgba(148, 163, 184, 0.25);
  font-size: 0.78rem !important;
}

/* --- ND5 (06.10.2026): Gesten-Legende HINTER KNOPF + OVERLAY ---
   Die Legende war ein immer sichtbarer Block unter dem Dock und drückte
   den Desk aus dem Viewport. Jetzt: ein <details>-Knopf; beim Öffnen wird
   der Legenden-Inhalt als festes Vollbild-Overlay eingeblendet (ohne JS —
   der Summary-Knopf wird zur Schließen-Schaltfläche und bleibt selbst
   klickbar). Z-Ordnung: unter dem Coach (1090) und dem Consent-Banner
   (1040-1060 ist eigenständig sichtbar), über dem Seiteninhalt. */
.ts-deck-gesture-overlay {
  margin: 0.9rem auto 0;
  max-width: 480px;
}

.ts-deck-gesture-overlay > summary.ts-deck-gesture-toggle {
  /* !important-Vertrag (R9d-Muster): mobile.css definiert UNLAYERED
     "details > summary { position: relative }" (M28-Hitzone) und Bootstrap-
     Reboot "summary { display: list-item }" — unlayered normals schlagen
     layered normals (css-cascade-5), nur layered !important gewinnt. */
  list-style: none !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  /* default.css resettet UNLAYERED "*,::before,::after { padding: 0 }" —
     schlägt layered padding (css-cascade-5); nur layered !important gewinnt. */
  padding: 0.6rem 1.25rem !important;
  border-radius: 50rem;
  border: 1px solid rgba(6, 182, 212, 0.45);
  background: rgba(8, 51, 68, 0.5);
  color: #67e8f9;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.ts-deck-gesture-overlay > summary.ts-deck-gesture-toggle:hover,
.ts-deck-gesture-overlay > summary.ts-deck-gesture-toggle:focus-visible {
  border-color: rgba(6, 182, 212, 0.8);
  color: #a5f3fc;
}

.ts-deck-gesture-toggle::-webkit-details-marker { display: none !important; }

.ts-deck-gesture-toggle .ts-deck-gesture-toggle-close { display: none; }

.ts-deck-gesture-overlay[open] > summary.ts-deck-gesture-toggle {
  position: fixed !important;
  top: max(0.75rem, env(safe-area-inset-top, 0px)) !important;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1075;
  margin: 0;
  max-width: min(92vw, 480px);
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.45);
}

.ts-deck-gesture-overlay[open] > summary.ts-deck-gesture-toggle .ts-deck-gesture-toggle-chevron { display: none; }
.ts-deck-gesture-overlay[open] > summary.ts-deck-gesture-toggle .ts-deck-gesture-toggle-close { display: inline-block; }

.ts-deck-gesture-overlay[open] .ts-deck-gesture-legend {
  position: fixed !important;
  inset: 0;
  z-index: 1070;
  margin: 0;
  max-width: none;
  border: 0;
  border-radius: 0;
  background: rgba(2, 6, 23, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  overflow-y: auto;
  overscroll-behavior: contain;
  /* s.o.: unlayered "* { padding: 0 }" (default.css) gewinnt gegen layered
     padding — das Overlay-Head braucht den Abstand unter dem Fix-Knopf. */
  padding: 4.4rem 1.1rem 2rem !important;
  animation: tsDeckGestureFade 0.18s ease-out;
}

@keyframes tsDeckGestureFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .ts-deck-gesture-overlay[open] .ts-deck-gesture-legend { animation: none; }
}

:root[data-bs-theme="light"] .ts-deck-gesture-overlay > summary.ts-deck-gesture-toggle,
html[data-bs-theme="light"] .ts-deck-gesture-overlay > summary.ts-deck-gesture-toggle {
  background: rgba(207, 250, 254, 0.7);
  color: #155e75;
  border-color: rgba(8, 145, 178, 0.4);
}

:root[data-bs-theme="light"] .ts-deck-gesture-overlay[open] .ts-deck-gesture-legend,
html[data-bs-theme="light"] .ts-deck-gesture-overlay[open] .ts-deck-gesture-legend {
  background: rgba(241, 245, 249, 0.96);
}

/* --- Einmal-Hinweis-Strip (in-flow unter dem Dock, Smartphone) --- */
.ts-deck-hint-strip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  max-width: 480px;
  margin: 0.75rem auto 0;
  padding: 0.6rem 0.75rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(6, 182, 212, 0.35);
  background: rgba(8, 51, 68, 0.45);
  animation: tsDeckHintIn 0.35s ease;
}

:root[data-bs-theme="light"] .ts-deck-hint-strip,
html[data-bs-theme="light"] .ts-deck-hint-strip {
  background: rgba(207, 250, 254, 0.55);
  border-color: rgba(8, 145, 178, 0.35);
}

@keyframes tsDeckHintIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.ts-deck-hint-ico {
  flex-shrink: 0;
  font-size: 1.3rem;
  animation: tsDeckHintPulse 1.6s ease-in-out infinite;
}

@keyframes tsDeckHintPulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.ts-deck-hint-text {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #cbd5e1;
}

:root[data-bs-theme="light"] .ts-deck-hint-text,
html[data-bs-theme="light"] .ts-deck-hint-text {
  color: #155e75;
}

.ts-deck-hint-actions {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.ts-deck-hint-btn {
  min-height: 44px;
  padding: 0.3rem 0.8rem;
  border-radius: 50rem;
  border: 1px solid rgba(6, 182, 212, 0.5);
  background: rgba(6, 182, 212, 0.16);
  color: #67e8f9;
  font-size: 0.78rem;
  white-space: nowrap;
}

:root[data-bs-theme="light"] .ts-deck-hint-btn,
html[data-bs-theme="light"] .ts-deck-hint-btn {
  color: #0e7490;
  border-color: rgba(8, 145, 178, 0.5);
  background: rgba(8, 145, 178, 0.12);
}

.ts-deck-hint-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: -0.6rem -0.75rem -0.6rem 0;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 0.95rem;
}

.ts-deck-hint-close:hover,
.ts-deck-hint-close:focus-visible {
  color: #e2e8f0;
}

/* --- Bedienungs-Coach (Dialog, unten als Sheet) --- */
.ts-deck-coach {
  position: fixed;
  inset: 0;
  z-index: 1090;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: tsDeckReaderFade 0.2s ease;
}

body.ts-deck-coach-open {
  overflow: hidden;
}

.ts-deck-coach-panel {
  width: min(100%, 460px);
  max-height: min(88vh, 720px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1rem 1.1rem calc(1.1rem + env(safe-area-inset-bottom, 0px));
  border-radius: 1.35rem 1.35rem 0 0;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-bottom: none;
  background: #0b1220;
  box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.6);
  animation: tsDeckCoachSlide 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

:root[data-bs-theme="light"] .ts-deck-coach-panel,
html[data-bs-theme="light"] .ts-deck-coach-panel {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.12);
}

@media (min-width: 768px) {
  .ts-deck-coach {
    align-items: center;
  }
  .ts-deck-coach-panel {
    border-radius: 1.35rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  }
}

@keyframes tsDeckCoachSlide {
  from { transform: translateY(60px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.ts-deck-coach-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.ts-deck-coach-title {
  color: #22d3ee;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
}

:root[data-bs-theme="light"] .ts-deck-coach-title,
html[data-bs-theme="light"] .ts-deck-coach-title {
  color: #0e7490;
}

.ts-deck-coach-close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: -0.5rem -0.5rem -0.5rem 0;
  border: none;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
  font-size: 1rem;
}

.ts-deck-coach-close:hover,
.ts-deck-coach-close:focus-visible {
  color: #e2e8f0;
  background: rgba(148, 163, 184, 0.28);
}

.ts-deck-coach-list {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.ts-deck-coach-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.55rem 0.6rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.5);
}

:root[data-bs-theme="light"] .ts-deck-coach-row,
html[data-bs-theme="light"] .ts-deck-coach-row {
  background: rgba(241, 245, 249, 0.9);
  border-color: rgba(15, 23, 42, 0.1);
}

.ts-deck-coach-txt {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  color: #e2e8f0;
  font-size: 0.9rem;
}

:root[data-bs-theme="light"] .ts-deck-coach-txt,
html[data-bs-theme="light"] .ts-deck-coach-txt {
  color: #0f172a;
}

.ts-deck-coach-sub {
  color: #94a3b8;
  font-size: 0.78rem;
  line-height: 1.4;
}

:root[data-bs-theme="light"] .ts-deck-coach-sub,
html[data-bs-theme="light"] .ts-deck-coach-sub {
  color: #475569;
}

/* Demo-Kachel: Mini-Karte + wandernder Punkt (Richtung via data-dir) */
.ts-deck-coach-demo {
  position: relative;
  flex-shrink: 0;
  width: 56px;
  height: 44px;
  border-radius: 0.6rem;
  background: rgba(100, 116, 139, 0.14);
  border: 1px dashed rgba(148, 163, 184, 0.45);
  overflow: hidden;
}

.ts-deck-coach-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 26px;
  height: 18px;
  margin: -9px 0 0 -13px;
  border-radius: 3px;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(6, 182, 212, 0.4);
}

:root[data-bs-theme="light"] .ts-deck-coach-card,
html[data-bs-theme="light"] .ts-deck-coach-card {
  background: #e2e8f0;
}

.ts-deck-coach-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: #06b6d4;
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.85);
}

.ts-deck-coach-row[data-dir="left"] .ts-deck-coach-dot { animation: tsDeckDotLeft 1.8s ease-in-out infinite; }
.ts-deck-coach-row[data-dir="right"] .ts-deck-coach-dot { animation: tsDeckDotRight 1.8s ease-in-out infinite; }
.ts-deck-coach-row[data-dir="up"] .ts-deck-coach-dot { animation: tsDeckDotUp 1.8s ease-in-out infinite; }
.ts-deck-coach-row[data-dir="down"] .ts-deck-coach-dot { animation: tsDeckDotDown 1.8s ease-in-out infinite; }
.ts-deck-coach-row[data-dir="tap"] .ts-deck-coach-dot { animation: tsDeckDotTap 1.5s ease-in-out infinite; }

@keyframes tsDeckDotLeft {
  0%, 10% { transform: translateX(8px); opacity: 0; }
  22% { opacity: 1; }
  70% { transform: translateX(-18px); opacity: 1; }
  88%, 100% { transform: translateX(-18px); opacity: 0; }
}

@keyframes tsDeckDotRight {
  0%, 10% { transform: translateX(-8px); opacity: 0; }
  22% { opacity: 1; }
  70% { transform: translateX(18px); opacity: 1; }
  88%, 100% { transform: translateX(18px); opacity: 0; }
}

@keyframes tsDeckDotUp {
  0%, 10% { transform: translateY(8px); opacity: 0; }
  22% { opacity: 1; }
  70% { transform: translateY(-13px); opacity: 1; }
  88%, 100% { transform: translateY(-13px); opacity: 0; }
}

@keyframes tsDeckDotDown {
  0%, 10% { transform: translateY(-8px); opacity: 0; }
  22% { opacity: 1; }
  70% { transform: translateY(13px); opacity: 1; }
  88%, 100% { transform: translateY(13px); opacity: 0; }
}

@keyframes tsDeckDotTap {
  0%, 100% { transform: scale(1); opacity: 0.55; }
  45% { transform: scale(2); opacity: 1; }
}

/* Desktop-Variante: kbd-Chips statt Demo-Kachel */
.ts-deck-coach-keys {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-width: 56px;
  min-height: 44px;
  border-radius: 0.6rem;
  background: rgba(100, 116, 139, 0.18);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.ts-deck-coach-keys kbd {
  display: inline-block;
  min-width: 1.7em;
  padding: 0.15rem 0.4rem;
  border-radius: 0.375rem;
  background: rgba(100, 116, 139, 0.25);
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-bottom-width: 2px;
  color: inherit;
  font-size: 0.85em;
  text-align: center;
}

.ts-deck-coach-note {
  margin: 0 0 0.85rem;
  color: #94a3b8;
}

:root[data-bs-theme="light"] .ts-deck-coach-note,
html[data-bs-theme="light"] .ts-deck-coach-note {
  color: #475569;
}

.ts-deck-coach-foot {
  display: flex;
  justify-content: center;
}

.ts-deck-coach-start {
  min-height: 48px;
}

@media (prefers-reduced-motion: reduce) {
  .ts-deck-coach,
  .ts-deck-coach-panel {
    animation: none !important;
  }
  .ts-deck-coach-dot,
  .ts-deck-hint-ico,
  .ts-deck-hint-strip {
    animation: none !important;
  }
}

  /* ==================================================================
     R9d (19.09.2026) — Walk-v6-Kontrastheiler (8 harte Verletzungen).
     Alles im .ts-deck-*-exklusiven Scope (B2-Pilotvertrag erhalten).

     1) Kategorie-Chips vs. generische a{color:var(--color-text-link)}:
        Diese Datei liegt KOMPLETT in @layer components — die unlayered
        Link-Basisregel schlägt jede Chip-Farbe egal welcher Spezifität
        (css-cascade-5). Walk-Beweis: aktiver Chip Dark trug sky-300 auf
        cyan-500 (1.1:1), Light cyan-900 auf cyan-600 (2.1:1). Layered
        !important schlägt unlayered normal — Farbverträge jetzt durch-
        setzungssicher (Dark: #0f172a auf #06b6d4 5.0:1; Light: #f8fafc
        auf #0891b2 4.6:1).
     ================================================================== */
  .ts-deck-cat-chip { color: #cbd5e1 !important; }
  .ts-deck-cat-chip:hover,
  .ts-deck-cat-chip:focus-visible { color: #e2e8f0 !important; }
  .ts-deck-cat-chip.active { color: #0f172a !important; }
  :root[data-bs-theme="light"] .ts-deck-cat-chip,
  html[data-bs-theme="light"] .ts-deck-cat-chip { color: #334155 !important; }
  :root[data-bs-theme="light"] .ts-deck-cat-chip.active,
  html[data-bs-theme="light"] .ts-deck-cat-chip.active { color: #f8fafc !important; }

  /* 2) Cover = bewusste Dunkel-Insel (Klasse B, CSS_THEME_FLAECHEN_VERTRAG):
        feste Gradient-Flächen in BEIDEN Schemas; die generichen Light-
        Flips machten .text-light-Kinder + Hero-Emoji im Light dunkel
        (1.1-1.3:1, Walk v6). Insel-Ink pinnen statt flippen (W13-/
        #news-popup-Muster). */
  .ts-deck-cover { color: #e2e8f0; }
  html[data-bs-theme="light"] .ts-deck-cover,
  html.light .ts-deck-cover { color: #e2e8f0; }
  html[data-bs-theme="light"] .ts-deck-cover .text-light,
  html.light .ts-deck-cover .text-light,
  body.light .ts-deck-cover .text-light { color: #f8fafc !important; }

  /* 3) Gesten-Overlays im Light: cyan-500/amber-500/red-500 trugen auf
        weißer Karte 2.1-2.4:1. Dunkle 700er-Stufen + dezentere Tints
        (cyan-700 5.5:1, amber-700 5.6:1, red-700 5.9:1 auf Weiß-Blend).
        Dark unverändert (helle Farben auf dunkler Karte). */
  :root[data-bs-theme="light"] .ts-deck-overlay-read,
  html[data-bs-theme="light"] .ts-deck-overlay-read {
    color: #0e7490;
    background: rgba(14, 116, 144, 0.14);
  }
  :root[data-bs-theme="light"] .ts-deck-overlay-back,
  :root[data-bs-theme="light"] .ts-deck-overlay-prev,
  :root[data-bs-theme="light"] .ts-deck-overlay-undo,
  html[data-bs-theme="light"] .ts-deck-overlay-back,
  html[data-bs-theme="light"] .ts-deck-overlay-prev,
  html[data-bs-theme="light"] .ts-deck-overlay-undo {
    color: #b45309;
    background: rgba(180, 83, 9, 0.13);
  }
  :root[data-bs-theme="light"] .ts-deck-overlay-skip,
  :root[data-bs-theme="light"] .ts-deck-overlay-next,
  :root[data-bs-theme="light"] .ts-deck-overlay-like,
  html[data-bs-theme="light"] .ts-deck-overlay-skip,
  html[data-bs-theme="light"] .ts-deck-overlay-next,
  html[data-bs-theme="light"] .ts-deck-overlay-like {
    color: #b91c1c;
    background: rgba(185, 28, 28, 0.12);
  }
}
/* R9d (19.09.2026) — Cover-Dunkel-Insel vs. Light-Flip, NACHTRAG:
   Der generische Flip (html[data-theme=light] .text-light {…!important})
   liegt in default.css @layer BOOTSTRAP; css-cascade-5 invertiert die
   Layer-Rangfolge fuer !important — der FRUEHERE Layer gewinnt. components
   (hier) und unlayered verloren beide gegen bootstrap-important (bewiesen:
   addStyleTag-Niederlage, Inline-important-Sieg). bootstrap ist der ERSTE Layer — important dort schlaegt jede
   spaetere/unlayered important-Regel. Einziger verlaesslicher Weg: GLEICHER
   Layer (@layer bootstrap, vereinigt sich mit default.css) + hoehere
   Spezifitaet via .ts-deck-cover-Scope — exakt das W13/#news-popup-Rezept.
   Klasse-B-Vertrag. */
@layer bootstrap {
html[data-bs-theme="light"] .ts-deck-cover .text-light,
html.light .ts-deck-cover .text-light,
body.light .ts-deck-cover .text-light {
  color: #f8fafc !important;
}
}

/* --- Filmstreifen-Modus (20.09.2026): kontinuierlich laufende Karten ---
   Der Streifen ersetzt den Kartenstapel im selben Layout-Slot: Viewport mit
   verstecktem Overflow, Track als Flex-Reihe (GPU-Transform je rAF), die
   mittige Karte .is-current ist hervorgehoben. touch-action: pan-y lässt
   vertikales Seitenscrollen leben, horizontale Drags gehören dem Streifen. */
.ts-deck-strip {
  position: relative;
  height: auto;
  outline: none;
  margin-bottom: 0.25rem;
}

/* ND4 (26.09.2026): Band-Stapel — ein Filmstreifen je Kategorie liegt
   untereinander; die Höhe wächst mit der Bandzahl (Vollbild nutzt die
   freie Fläche, im Seitenlayout scrollt die Seite). */
.ts-deck-strip-stack {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.ts-deck-band {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ts-deck-band-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0 0.4rem 0.2rem;
}

.ts-deck-band-label {
  color: #22d3ee;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  /* MFG-6.2 (MFG-21, 28.09.2026): Ohne min-width:0 wirkt die Ellipsis im
     Flex-Head nicht — @320 lief der Kopf +6px aus Viewport (help-btn/Row). */
  min-width: 0;
  flex: 1 1 auto;
}

.ts-deck-band-counter {
  color: #94a3b8;
  font-size: 0.7rem;
  flex-shrink: 0;
}

/* ND4.3: Band-Ein-/Ausklappen — eingeklappt bleibt nur die Kopfzeile. */
.ts-deck-band-collapse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(30, 41, 59, 0.6);
  color: #cbd5e1;
  font-size: 0.8rem;
  line-height: 1;
  flex-shrink: 0;
}

.ts-deck-band-collapse:hover,
.ts-deck-band-collapse:focus-visible {
  color: #22d3ee;
  border-color: rgba(6, 182, 212, 0.6);
}

.ts-deck-band-head .ts-deck-band-label {
  flex: 1 1 auto;
  min-width: 0;
}

.ts-deck-band.is-collapsed .ts-deck-strip-viewport {
  display: none;
}

.ts-deck-band-empty {
  padding: 1.1rem 0.9rem;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  border-radius: 1rem;
  text-align: center;
}

.ts-deck-band-loading {
  border: none;
  background: rgba(30, 41, 59, 0.5);
  overflow: hidden;
}

.ts-deck-band-shimmer {
  width: 100%;
  height: 100%;
  min-height: 190px;
  background: linear-gradient(100deg, rgba(148, 163, 184, 0.08) 30%, rgba(148, 163, 184, 0.2) 50%, rgba(148, 163, 184, 0.08) 70%);
  background-size: 200% 100%;
  animation: ts-deck-shimmer 1.4s ease-in-out infinite;
}

@keyframes ts-deck-shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ts-deck-band-shimmer {
    animation: none;
  }
}

.ts-deck-strip:focus-visible {
  outline: 2px solid rgba(6, 182, 212, 0.7);
  outline-offset: 4px;
  border-radius: 1.25rem;
}

.ts-deck-strip-viewport {
  position: relative;
  height: auto;
  overflow: hidden;
  /* ND4.3: manipulation unterbindet Doppel-Tipp-Zoom — der Browser frisst
     sonst den ZWEITEN Tipp (2×Tipp = Voting) für die Zoom-Heuristik. */
  touch-action: pan-y manipulation;
  cursor: grab;
  border-radius: 1.25rem;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}

.ts-deck-strip-viewport:active {
  cursor: grabbing;
}

.ts-deck-strip-track {
  display: flex;
  align-items: stretch;
  gap: 14px;
  height: auto;
  min-height: 1px;
  padding: 0.35rem 0;
  will-change: transform;
}

/* ND4: Dynamische Kartenbreite (--deck-card-w wird von applyStripMetrics()
   je Viewport gesetzt) UND proportionale Schriftskalierung (--deck-card-scale,
   Basis 250px = 1.0) — Karten und Typografie wachsen beim Vergrößern mit. */
.ts-deck-strip-card {
  position: relative;
  flex: 0 0 auto;
  width: var(--deck-card-w, min(72vw, 250px));
  height: auto;
  font-size: calc(0.92rem * var(--deck-card-scale, 1));
  display: flex;
  flex-direction: column;
  border-radius: 1.1rem;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38);
  opacity: 0.55;
  transform: scale(0.92);
  transition: opacity 0.25s ease, transform 0.3s var(--ts-deck-spring-easing), border-color 0.25s ease, box-shadow 0.25s ease;
}

/* Meta/Fuß im Karten-Body skalieren mit (em statt fixer Utility-px) */
.ts-deck-strip-card .extra-small {
  font-size: 0.8em;
}

.ts-deck-strip-card.is-current {
  opacity: 1;
  transform: scale(1);
  border-color: rgba(6, 182, 212, 0.65);
  box-shadow: 0 16px 40px rgba(6, 182, 212, 0.18), 0 10px 28px rgba(0, 0, 0, 0.42);
}

.ts-deck-strip-card:focus-visible {
  outline: 2px solid rgba(6, 182, 212, 0.8);
  outline-offset: 2px;
}

.ts-deck-strip-media {
  position: relative;
  flex: 0 0 auto;
  height: auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(30, 41, 59, 0.6);
}

.ts-deck-strip-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ts-deck-strip-cover {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.ts-deck-strip-cover span {
  font-size: 2rem;
  opacity: 0.85;
}

.ts-deck-strip-cover small {
  color: rgba(226, 232, 240, 0.75);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ts-deck-strip-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.7rem 0.8rem 0.6rem;
  min-height: 0;
}

.ts-deck-strip-title {
  font-size: 1em;
  font-weight: 700;
  line-height: 1.3;
  color: #f1f5f9;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ts-deck-strip-meta {
  flex: 1 0 auto;
}

.ts-deck-strip-foot {
  margin-top: auto;
  min-height: 1.35rem;
}

.ts-deck-strip-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.82);
  color: #cbd5e1;
  font-size: 1.25rem;
  line-height: 1;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.2s var(--ts-deck-spring-easing), border-color 0.15s ease, color 0.15s ease;
}

.ts-deck-strip-nav:hover,
.ts-deck-strip-nav:focus-visible {
  color: #22d3ee;
  border-color: rgba(6, 182, 212, 0.6);
  transform: translateY(-50%) scale(1.08);
}

.ts-deck-strip-nav-prev { left: 0.35rem; }
.ts-deck-strip-nav-next { right: 0.35rem; }

.ts-deck-strip-hud {
  position: absolute;
  top: 0.3rem;
  right: 0.15rem;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.15rem 0.55rem 0.15rem 0.15rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.ts-deck-strip-pausebtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(30, 41, 59, 0.6);
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1;
}

.ts-deck-strip-pausebtn:hover,
.ts-deck-strip-pausebtn:focus-visible {
  color: #22d3ee;
  border-color: rgba(6, 182, 212, 0.6);
}

.ts-deck-strip-counter {
  color: #94a3b8;
  font-size: 0.72rem;
}

/* Modus-Schalter in der Kopfleiste (Filmstreifen ↔ Stapel) — gleiche
   Optik wie der ?-Hilfsknopf daneben. */
.ts-deck-mode-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(30, 41, 59, 0.6);
  color: #cbd5e1;
  font-size: 1.05rem;
  line-height: 1;
  transition: transform 0.2s var(--ts-deck-spring-easing), border-color 0.15s ease, color 0.15s ease;
}

.ts-deck-mode-btn:hover,
.ts-deck-mode-btn:focus-visible {
  color: #22d3ee;
  border-color: rgba(6, 182, 212, 0.6);
  transform: scale(1.08);
}

:root[data-bs-theme="light"] .ts-deck-strip-card,
html[data-bs-theme="light"] .ts-deck-strip-card {
  background: rgba(255, 255, 255, 0.97);
  border-color: rgba(15, 23, 42, 0.12);
}

:root[data-bs-theme="light"] .ts-deck-strip-title,
html[data-bs-theme="light"] .ts-deck-strip-title {
  color: #0f172a;
}

:root[data-bs-theme="light"] .ts-deck-strip-nav,
:root[data-bs-theme="light"] .ts-deck-strip-pausebtn,
:root[data-bs-theme="light"] .ts-deck-strip-hud,
:root[data-bs-theme="light"] .ts-deck-mode-btn,
html[data-bs-theme="light"] .ts-deck-strip-nav,
html[data-bs-theme="light"] .ts-deck-strip-pausebtn,
html[data-bs-theme="light"] .ts-deck-strip-hud,
html[data-bs-theme="light"] .ts-deck-mode-btn {
  background: rgba(255, 255, 255, 0.92);
  color: #334155;
  border-color: rgba(15, 23, 42, 0.18);
}

:root[data-bs-theme="light"] .ts-deck-strip-counter,
html[data-bs-theme="light"] .ts-deck-strip-counter {
  color: #64748b;
}

/* ND4: Die alte Fixbreite 250px ab ≥768px ist GONE — die Kartenbreite wird
   dynamisch über --deck-card-w je Viewport berechnet (applyStripMetrics). */

@media (prefers-reduced-motion: reduce) {
  .ts-deck-strip-track,
  .ts-deck-strip-card {
    transition: none;
  }
}

/* --- ND4 (26.09.2026): Kino-Vollbild, Tempo-Popover, Band-Optik ----------- */

/* Vollbild-Knopf im HUD — gleiche Optik wie Pause/Tempo */
.ts-deck-strip-fsbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(30, 41, 59, 0.6);
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1;
}

.ts-deck-strip-fsbtn:hover,
.ts-deck-strip-fsbtn:focus-visible {
  color: #22d3ee;
  border-color: rgba(6, 182, 212, 0.6);
}

/* Kino-Modus: Container wird zum Fixed-Overlay. Ohne Fullscreen-API
   (oder wenn sie verweigert wird) trägt die Klasse allein die Optik.
   ND4: Die 480px-Deck-Spalte (.ts-deck-wrap) ist im Kino aufgehoben —
   das Overlay nutzt die volle Bildschirmbreite. */
.ts-deck-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 1090;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(0.5rem, 2vw, 1.5rem);
  background: var(--bs-body-bg, #0b1220);
}

.ts-deck-fullscreen .ts-deck-wrap {
  max-width: none;
}

html.ts-deck-fs-open {
  overflow: hidden;
}

/* Im Kino größere Karten: das Overlay kann die volle Breite nutzen —
   applyStripMetrics() rechnet --deck-card-w ohnehin neu, hier nur
   Vertikal-Rhythmus der Bänder straffen. */
.ts-deck-fullscreen .ts-deck-strip-stack {
  gap: 1.1rem;
}

.ts-deck-fullscreen .ts-deck-band-head {
  padding-bottom: 0.3rem;
}

/* Tempo-Popover (CSP-safe, JS-injiziert, keine Inline-Handler) */
.ts-deck-speed-pop {
  position: absolute;
  top: 2.9rem;
  right: 0.35rem;
  z-index: 40;
  min-width: 190px;
  padding: 0.6rem 0.7rem;
  border-radius: 0.9rem;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.ts-deck-speed-title {
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 0.45rem;
}

.ts-deck-speed-opt {
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(30, 41, 59, 0.6);
  color: #cbd5e1;
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-size: 0.78rem;
  line-height: 1.2;
}

.ts-deck-speed-opt:hover,
.ts-deck-speed-opt:focus-visible {
  color: #22d3ee;
  border-color: rgba(6, 182, 212, 0.6);
}

.ts-deck-speed-opt.active {
  color: #0b1220;
  background: #22d3ee;
  border-color: #22d3ee;
  font-weight: 700;
}

/* Light-Theme-Anteile der neuen Flächen */
:root[data-bs-theme="light"] .ts-deck-band-label,
html[data-bs-theme="light"] .ts-deck-band-label {
  color: #0e7490;
}

:root[data-bs-theme="light"] .ts-deck-band-counter,
html[data-bs-theme="light"] .ts-deck-band-counter {
  color: #64748b;
}

:root[data-bs-theme="light"] .ts-deck-band-loading,
html[data-bs-theme="light"] .ts-deck-band-loading {
  background: rgba(15, 23, 42, 0.06);
}

:root[data-bs-theme="light"] .ts-deck-strip-fsbtn,
html[data-bs-theme="light"] .ts-deck-strip-fsbtn {
  background: rgba(255, 255, 255, 0.92);
  color: #334155;
  border-color: rgba(15, 23, 42, 0.18);
}

:root[data-bs-theme="light"] .ts-deck-speed-pop,
html[data-bs-theme="light"] .ts-deck-speed-pop {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(15, 23, 42, 0.18);
}

:root[data-bs-theme="light"] .ts-deck-speed-title,
html[data-bs-theme="light"] .ts-deck-speed-title {
  color: #64748b;
}

:root[data-bs-theme="light"] .ts-deck-speed-opt,
html[data-bs-theme="light"] .ts-deck-speed-opt {
  background: rgba(255, 255, 255, 0.92);
  color: #334155;
  border-color: rgba(15, 23, 42, 0.18);
}

:root[data-bs-theme="light"] .ts-deck-speed-opt.active,
html[data-bs-theme="light"] .ts-deck-speed-opt.active {
  color: #ffffff;
  background: #0e7490;
  border-color: #0e7490;
}

:root[data-bs-theme="light"] .ts-deck-fullscreen,
html[data-bs-theme="light"] .ts-deck-fullscreen {
  background: var(--bs-body-bg, #f8fafc);
}

/* --- Erweiterung (20.09.2026): Voting-Ergebnis-Balken --------------------- */
.ts-deck-vote-bars {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.55rem;
  align-items: center;
}

.ts-deck-vote-bar {
  position: relative;
  flex: 1 1 44px;
  min-width: 44px;
  height: 30px;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0 0.35rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(30, 41, 59, 0.45);
  overflow: hidden;
}

.ts-deck-vote-bar i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.35), rgba(245, 158, 11, 0.4));
  transition: width 0.4s var(--ts-deck-spring-easing);
}

.ts-deck-vote-bar b {
  position: relative;
  font-size: 0.85rem;
  line-height: 1;
  font-weight: 400;
}

.ts-deck-vote-bar em {
  position: relative;
  font-style: normal;
  font-size: 0.62rem;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
  margin-left: auto;
}

.ts-deck-vote-total {
  flex-basis: 100%;
  text-align: center;
  font-size: 0.64rem;
  color: #94a3b8;
  letter-spacing: 0.05em;
}

.ts-deck-react-key {
  position: absolute;
  top: 1px;
  right: 3px;
  font-size: 0.55rem;
  color: rgba(148, 163, 184, 0.85);
  font-variant-numeric: tabular-nums;
}

:root[data-bs-theme="light"] .ts-deck-vote-bar,
html[data-bs-theme="light"] .ts-deck-vote-bar {
  background: rgba(241, 245, 249, 0.9);
  border-color: rgba(15, 23, 42, 0.12);
}

/* --- Erweiterung (20.09.2026): Filmstreifen-Tempo ------------------------- */
.ts-deck-strip-speedbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(30, 41, 59, 0.6);
  color: #cbd5e1;
  font-size: 0.78rem;
  line-height: 1;
}

.ts-deck-strip-speedbtn:hover,
.ts-deck-strip-speedbtn:focus-visible {
  color: #22d3ee;
  border-color: rgba(6, 182, 212, 0.6);
}

:root[data-bs-theme="light"] .ts-deck-strip-speedbtn,
html[data-bs-theme="light"] .ts-deck-strip-speedbtn {
  background: rgba(255, 255, 255, 0.92);
  color: #334155;
  border-color: rgba(15, 23, 42, 0.18);
}

/* --- Erweiterung (20.09.2026): Deck-Statistik-Panel ----------------------- */
.ts-deck-stats-pop {
  position: absolute;
  top: 3.2rem;
  right: 0.5rem;
  z-index: 60;
  width: min(92%, 300px);
  padding: 0.8rem 0.9rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.97);
  border: 1px solid rgba(6, 182, 212, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

:root[data-bs-theme="light"] .ts-deck-stats-pop,
html[data-bs-theme="light"] .ts-deck-stats-pop {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(6, 182, 212, 0.3);
}

.ts-deck-stats-list {
  list-style: none;
  margin: 0 0 0.7rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: #cbd5e1;
}

:root[data-bs-theme="light"] .ts-deck-stats-list,
html[data-bs-theme="light"] .ts-deck-stats-list {
  color: #334155;
}

.ts-deck-stats-list b {
  color: #22d3ee;
  font-weight: 600;
}

.ts-deck-counter[data-deck-stats] {
  cursor: pointer;
}

/* --- ND4.3 (27.09.2026): Kategorie-Zentrale — Picker statt Chip-Wurst ----- */
/* Leiste: Toggle, Sonder-Filter, „Alle" — immer eine ruhige Zeile. */
.ts-deck-catz-toggle,
.ts-deck-catz-special,
.ts-deck-catz-all {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.34rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(30, 41, 59, 0.6);
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.ts-deck-catz-toggle:hover,
.ts-deck-catz-toggle:focus-visible,
.ts-deck-catz-special:hover,
.ts-deck-catz-special:focus-visible,
.ts-deck-catz-all:hover,
.ts-deck-catz-all:focus-visible {
  color: #22d3ee;
  border-color: rgba(6, 182, 212, 0.6);
}

.ts-deck-catz-special.active,
.ts-deck-catz-special[aria-pressed="true"] {
  color: #0b1220;
  background: #22d3ee;
  border-color: #22d3ee;
}

.ts-deck-catz-all.active {
  color: #fca5a5;
  border-color: rgba(248, 113, 113, 0.6);
}

.ts-deck-catz-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.3rem;
  margin-left: 0.15rem;
  border-radius: 999px;
  background: #22d3ee;
  color: #0b1220;
  font-size: 0.7rem;
  font-weight: 700;
}

.ts-deck-catz-badge.d-none {
  display: none;
}

/* Aktive Auswahl-Zeile: nur die gewählten Dinge, je mit × */
.ts-deck-catz-active {
  padding: 0.15rem 0.2rem 0;
}

.ts-deck-active-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(6, 182, 212, 0.55);
  background: rgba(6, 182, 212, 0.12);
  color: #67e8f9;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

.ts-deck-active-chip:hover,
.ts-deck-active-chip:focus-visible {
  color: #fda4af;
  border-color: rgba(248, 113, 113, 0.6);
  background: rgba(248, 113, 113, 0.1);
}

.ts-deck-active-special {
  border-color: rgba(167, 139, 250, 0.55);
  background: rgba(167, 139, 250, 0.12);
  color: #c4b5fd;
}

/* Picker: Desktop = Panel unter der Leiste, Mobile = Bottom-Sheet */
.ts-deck-catz-picker {
  margin-top: 0.4rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.97);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  padding: 0.7rem;
  z-index: 35;
}

.ts-deck-catz-search {
  margin-bottom: 0.55rem;
}

.ts-deck-catz-search .form-control {
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(148, 163, 184, 0.35);
  color: #f1f5f9;
}

.ts-deck-catz-list {
  max-height: min(46vh, 380px);
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-right: 0.2rem;
}

.ts-deck-catz-list .ts-deck-cat-chip {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  text-align: left;
  padding: 0.42rem 0.7rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(30, 41, 59, 0.45);
  color: #e2e8f0;
  font-size: 0.84rem;
  text-decoration: none;
}

.ts-deck-catz-list .ts-deck-cat-chip:hover,
.ts-deck-catz-list .ts-deck-cat-chip:focus-visible {
  border-color: rgba(6, 182, 212, 0.6);
  color: #22d3ee;
}

.ts-deck-catz-list .ts-deck-cat-chip.active {
  border-color: rgba(6, 182, 212, 0.75);
  background: rgba(6, 182, 212, 0.14);
  color: #67e8f9;
}

.ts-deck-catz-list .ts-deck-catz-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ts-deck-catz-list .ts-deck-cat-count {
  flex-shrink: 0;
  color: #94a3b8;
  font-size: 0.72rem;
  font-family: var(--bs-font-monospace, monospace);
}

.ts-deck-catz-list .ts-deck-cat-indent {
  display: inline-block;
  width: 0.9rem;
  flex-shrink: 0;
}

.ts-deck-catz-foot {
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.ts-deck-catz-footbtn {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(30, 41, 59, 0.6);
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 600;
}

.ts-deck-catz-footbtn:hover,
.ts-deck-catz-footbtn:focus-visible {
  color: #22d3ee;
  border-color: rgba(6, 182, 212, 0.6);
}

@media (max-width: 767.98px) {
  /* Mobile: Picker als Bottom-Sheet — Daumen-reichweite, volle Breite. */
  .ts-deck-catz-picker {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    border-radius: 1.2rem 1.2rem 0 0;
    max-height: 72vh;
    overflow-y: auto;
    z-index: 1095;
  }

  .ts-deck-catz-list {
    max-height: 46vh;
  }
}

@media (min-width: 768px) {
  .ts-deck-catz-picker {
    position: absolute;
    left: 0;
    right: 0;
    max-width: 560px;
  }
}

/* Light-Theme der Zentrale */
:root[data-bs-theme="light"] .ts-deck-catz-toggle,
html[data-bs-theme="light"] .ts-deck-catz-toggle,
:root[data-bs-theme="light"] .ts-deck-catz-special,
html[data-bs-theme="light"] .ts-deck-catz-special,
:root[data-bs-theme="light"] .ts-deck-catz-all,
html[data-bs-theme="light"] .ts-deck-catz-all {
  background: rgba(255, 255, 255, 0.92);
  color: #334155;
  border-color: rgba(15, 23, 42, 0.18);
}

:root[data-bs-theme="light"] .ts-deck-catz-special.active,
html[data-bs-theme="light"] .ts-deck-catz-special.active {
  color: #ffffff;
  background: #0e7490;
  border-color: #0e7490;
}

:root[data-bs-theme="light"] .ts-deck-catz-all.active,
html[data-bs-theme="light"] .ts-deck-catz-all.active {
  color: #b91c1c;
  border-color: rgba(185, 28, 28, 0.5);
  background: rgba(185, 28, 28, 0.08);
}

:root[data-bs-theme="light"] .ts-deck-catz-picker,
html[data-bs-theme="light"] .ts-deck-catz-picker {
  background: rgba(255, 255, 255, 0.99);
  border-color: rgba(15, 23, 42, 0.18);
}

:root[data-bs-theme="light"] .ts-deck-catz-list .ts-deck-cat-chip,
html[data-bs-theme="light"] .ts-deck-catz-list .ts-deck-cat-chip {
  background: rgba(15, 23, 42, 0.04);
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.12);
}

:root[data-bs-theme="light"] .ts-deck-active-chip,
html[data-bs-theme="light"] .ts-deck-active-chip {
  color: #0e7490;
  border-color: rgba(14, 116, 144, 0.45);
  background: rgba(14, 116, 144, 0.08);
}

/* ND4.3a: deaktivierter Sonder-Filter (nachweislich wirkungslos) */
.ts-deck-catz-special:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* --- MFF-3.4 (28.09.2026): Rest des 300/400-Paletten-Sweeps — Vote-Titel
   (amber-400 #fbbf24) ohne Light-Pendant; 600er-Pendant nach ML-16/RCI.
   (.ts-deck-catz-all.active war bereits bei 2199 gehoben.) --- */
:root[data-bs-theme="light"] .ts-deck-vote-title,
html[data-bs-theme="light"] .ts-deck-vote-title { color: #a16207; }
