/* ===== TYPO-LEITER (Sandro-Gesetz 29.07.): max 3-4 Groessen je View =====
   Headline (Hero/Seitentitel) · 14px Body+Bedienelemente · 12px Sekundaer/Fussnote.
   Neue font-size-Werte NUR mit Grund — Waechter: apxweb-typescale-shot.js */
/* ============================================================
   APPICS Webversion — Sprint 1 (Feed + Post + Login)
   Design-Quelle: Sandro, Figma "APPICS Webversion 2026"
   (2 aktive Screens: Feed, Post — dunkle Welt, Teal-Akzent)
   ============================================================ */
:root {
  --bg: #14141e;          /* Sandro-Design 18.07.: Page + Sidebar */
  --bg-rail: #14141e;
  --panel: #1b1d2a;        /* Panels/Cards/Suche */
  --panel-2: #232537;      /* eingelassene Tiles/Pills (Logo-Tile) */
  --input: #2d2e40;        /* Eingabefelder */
  --line: rgba(255,255,255,.07);  /* NUR noch fuer duenne Trennlinien — Boxen sind borderlos */
  --ink: #eef0f6;
  --muted: #8e92b2;        /* Sandro-Icon-Grau */
  --muted-2: #6b6f8e;
  --teal: #35d0c5;
  --teal-deep: #1fa89f;
  --mint: #a9f3e1;         /* Sandro 19.07.: EIN Mint-Ton app-weit (Verified, Follow, FAB) */
  --brandteal: #87D9CF;    /* Sandro R12: DER Logo-Tuerkis (aus appics-logo.svg) — Story-Ring, APX-Betrag */
  --red: #ff5d6c;
  --radius: 18px;
  --radius-s: 12px;
  --font: 'Inter', system-ui, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
/* Sandro R18: "Sprung" auf Aktivitäten — die Scrollbar erschien erst NACH dem Laden und
   stauchte die Spalte (Balken wurde schmaler). Gutter immer reservieren = kein Layout-Shift. */
html { scrollbar-gutter: stable; scrollbar-color: rgba(139,141,158,.45) transparent; }
/* Scrollbalken (Winchester 07.08.): die weissen OS-Balken stachen im dunklen Chat.
   Neutraler Grau-Daumen funktioniert auf dunklen UND weissen Flaechen. */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(139,141,158,.42); border-radius: 99px;
  border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(139,141,158,.65); }
* { scrollbar-width: thin; scrollbar-color: rgba(139,141,158,.45) transparent; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 14px; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font); cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea { font-family: var(--font); color: var(--ink); background: none; border: 0; outline: none; }
::placeholder { color: var(--muted-2); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 6px; }

/* ---------- Shell: Rail links + Main ---------- */
.shell { display: grid; grid-template-columns: 88px 1fr; min-height: 100vh; }
.rail {
  position: sticky; top: 0; height: 100vh;
  background: var(--bg-rail); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center;
  padding: 16px 0 18px; gap: 6px;
}
/* Sandro 18.07. (Voice 2): Logo exakt so gross wie die Menuepunkte (44px),
   Icon-Abstaende +~16px, Active-State NUR weiss (kein Background — sonst doppelt),
   einzig das Plus (Posten) bleibt als Tile gehighlightet. */
/* Winchester 18.07.: Icons +40% (30 -> 42px, Buttons 44 -> 58px, Rail 72 -> 88px) */
.rail .mark { width: 56px; height: 56px; border-radius: 16px; margin-bottom: 22px; } /* Sandro R19: Logo ~3% kleiner */
/* Sandro 24.08.: Dreieck IN der Box 10% kleiner + 3px hoch (Box bleibt 56px) */
/* translateY in SVG-User-Units: 40er-viewBox auf 56px = Faktor 1.4 -> 2 Screen-px hoch = 1.429 Units (Sandro: 3 hoch, dann 1 runter) */
.rail .mark path { transform-box: fill-box; transform-origin: center; transform: translateY(-1.429px) scale(.81); }
.rail nav { display: flex; flex-direction: column; gap: 24px; flex: 1; justify-content: center; }
.rail-btn {
  width: 58px; height: 58px; border-radius: 16px;
  display: grid; place-items: center; color: var(--muted);
  transition: background 130ms, color 130ms;
  position: relative; /* Uma 20.08.: Anker fuer das Notif-Badge */
}
/* Uma 20.08.: Live-Badge (+N) + Leuchten am Activities-Herz bei ungelesenen Notifs */
.ntf-badge { position: absolute; top: 6px; right: 4px; min-width: 18px; height: 18px;
  padding: 0 5px; border-radius: 999px; background: var(--mint); color: #10131c;
  font-size: 10.5px; font-weight: 800; line-height: 18px; text-align: center;
  box-shadow: 0 0 0 2px var(--bg); animation: ntfPop 320ms cubic-bezier(.34,1.56,.64,1); }
@keyframes ntfPop { 0% { transform: scale(.4); } 100% { transform: scale(1); } }
.rail-btn.ntfglow { color: var(--mint); }
.rail-btn.ntfglow svg { filter: drop-shadow(0 0 6px rgba(169,243,225,.55)); }
.mnav-item { position: relative; }
.mnav-item .ntf-badge { position: static; margin-left: auto; }
.rail-btn:hover { color: var(--ink); }
.rail-btn.on { background: none; color: #fff; }
/* Sandro R19: nur das weisse Tile ~10% kleiner (58 -> 52), Icon bleibt 42px */
.rail-btn.create { background: #fff; color: #14141e; width: 52px; height: 52px; border-radius: 14px; align-self: center; }
.rail-btn.create:hover { background: #e6e8f2; }
.rail-btn .nvi { width: 42px; height: 42px; }
/* AI-Zugang = Sphere unten links. Winchester 18.07.: staerkstes Feature — 3D-Look,
   pulsiert, dreht sich, hat Farbreflexe. CSS-only (CSP-sauber): Kugel-Shading via
   radial-gradient + Inset-Schatten, rotierendes Farbband (::before, conic + screen),
   Glanzlicht (::after). prefers-reduced-motion killt die Animationen global. */
/* Sandro-Voice 19.07.: Sphere in der Ecke einen Tick kleiner (56->50), Glow deutlich weicher */
.ai-sphere {
  margin-top: auto; width: 60.5px; height: 60.5px; border-radius: 50%; flex: none;
  position: relative; overflow: hidden;
  background: radial-gradient(circle at 32% 26%, #fff 0%, #ffd2f2 14%, #c084ff 42%, #35d0c5 74%, #12345e 100%);
  box-shadow: 0 4px 14px rgba(160,110,255,.28),
              inset 0 -9px 16px rgba(4,8,32,.45),
              inset 0 6px 10px rgba(255,255,255,.28);
}
/* Sandro 19.07.: conic-"Stroke-Gradient"-Ring entfernt — kein Rahmen um die Sphere */
.ai-sphere::before { content: none; }
.ai-sphere::after {
  content: ""; position: absolute; left: 16%; top: 9%; width: 40%; height: 28%;
  border-radius: 50%; filter: blur(1px);
  background: radial-gradient(closest-side, rgba(255,255,255,.95), rgba(255,255,255,0));
}
/* Sandro R8: Hover weicher (kleinere Skalierung, lange Ease), Glow deutlich schwaecher + faded ein */
.ai-sphere { transition: transform 320ms cubic-bezier(.3,.8,.3,1), box-shadow 420ms ease; }
.ai-sphere:hover { animation: none; transform: scale(1.06); box-shadow: 0 6px 20px rgba(120,220,255,.32), inset 0 -9px 16px rgba(4,8,32,.45), inset 0 6px 10px rgba(255,255,255,.28); }
/* Sobald der echte 3D-Orb (Canvas) rendert, traegt ER die Kugel — die CSS-Fallback-Kugel
   dahinter wirkte als "Gradient-Border"-Ring an den Kanten (Sandro R8: raus) */
.ai-sphere:has(.sph-gl) { background: transparent; box-shadow: none; }
.ai-sphere:has(.sph-gl)::after { content: none; }
.ai-sphere:has(.sph-gl):hover { box-shadow: 0 6px 18px rgba(120,220,255,.28); }
/* Sandros Orb-Video (19.07.) liegt über der CSS-Kugel — sie bleibt Fallback, bis
   das Video lädt; z-index hebt es auch über das ::after-Glanzlicht. */
.sph-vid {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2;
  object-fit: cover; border-radius: 50%; pointer-events: none;
}
/* Echtes 3D (sphere3d.js, Sandro 19.07.): Canvas füllt den Host, Radius erbt (Karte = 20px) */
.sph-gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; border-radius: inherit; }
.sph-stage { display: grid; place-items: center; padding: 14px 0 4px; }
.sph-big {
  position: relative; width: min(220px, 46vw); aspect-ratio: 1; border-radius: 50%;
  box-shadow: 0 10px 40px rgba(90, 80, 255, .18);
}
@keyframes sphSpin { to { transform: rotate(360deg); } }
@keyframes sphPulse {
  0%, 100% { transform: scale(1);
    box-shadow: 0 6px 24px rgba(160,110,255,.45), inset 0 -9px 16px rgba(4,8,32,.45), inset 0 6px 10px rgba(255,255,255,.28); }
  50% { transform: scale(1.09);
    box-shadow: 0 10px 38px rgba(94,234,212,.7), 0 0 30px rgba(160,110,255,.35), inset 0 -9px 16px rgba(4,8,32,.45), inset 0 6px 10px rgba(255,255,255,.28); }
}
.topbar svg { width: 20px; height: 20px; stroke-width: 1.8; }

.main { min-width: 0; padding: 22px 34px 60px; max-width: 1280px; margin: 0 auto; width: 100%; animation: vfade 280ms ease; } /* Sandro R8: Views faden ein statt abrupt */
@keyframes vfade { from { opacity: 0; } to { opacity: 1; } }
.feed-col { max-width: 680px; margin: 0 auto; }

/* ---------- Topbar: Suche + Avatar ---------- */
.topbar { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
/* Sandro R3: Suche zentriert (Avatar+LIVE haengen fix rechts, nehmen keinen Flex-Platz mehr) */
.search {
  flex: 1; display: flex; align-items: center; gap: 10px; position: relative;
  background: var(--panel); max-width: 560px; margin: 0 auto;
  border-radius: var(--radius-s); padding: 11px 14px; color: var(--muted);
}
.search input { flex: 1; font-size: 13.5px; }
/* Sandro R3: kein Focus-Border in der Suche, Placeholder blendet weich weg (Micro-Animation) */
.search input:focus-visible { outline: none; }
.search input::placeholder { transition: opacity 220ms ease, transform 220ms ease; }
.search input:focus::placeholder { opacity: 0; transform: translateX(6px); }
/* Such-Flyout (Sandro 18.07.): Vorschläge beim Fokus — Zuletzt / Trending / Creators */
.s-fly {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 70;
  background: var(--panel); border-radius: 16px; padding: 8px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .55); max-height: 420px; overflow-y: auto;
}
.sf-lab { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 8px 8px 4px; }
.sf-it { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 8px 10px; border-radius: 10px; font-size: 13.5px; color: var(--ink); transition: background .4s ease; }
.sf-it:hover { background: var(--panel-2); }
.sf-it svg { width: 15px; height: 15px; color: var(--muted); flex: none; }
.sf-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 8px 8px; }
.sf-chip { padding: 6px 13px; border-radius: 999px; background: var(--panel-2); font-size: 12.5px; color: var(--ink); }
.sf-chip:hover { background: rgba(53, 208, 197, .16); color: var(--teal); }
/* width:100% — Hover deckt die volle Zeile, nicht nur die Inhaltsbreite (Sandro R7) */
.sf-cr { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 8px 10px; border-radius: 10px; transition: background .4s ease; }
.sf-cr:hover { background: var(--panel-2); }
.sf-cr img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; }
.sf-cr b { font-size: 13.5px; }
.sf-cr span { font-size: 12px; color: var(--muted); margin-left: auto; }
/* Avatar + APX-Stand als EIN Element oben rechts (Sandro 18.07.);
   R3 19.07.: dockt als eigenstaendiges Element FIX in der Ecke (~15px), auf jeder Page */
.tb-acct { display: flex; align-items: center; gap: 8px; background: var(--panel); border-radius: 999px; padding: 4px 5px 4px 6px;
  position: fixed; top: 15px; right: 15px; z-index: 55; box-shadow: 0 6px 22px rgba(0,0,0,.35);
  transition: right .34s cubic-bezier(.22,.9,.3,1); }
/* Winchester 23.08.: offenes Dock (Chat rechts) schob sich UNTER die fixe
   Konto-Pille (Avatar + APX ueberlappte die Nachrichten) — Pille weicht mit aus. */
body.dockopen .tb-acct { right: calc(var(--dockW) + 18px); }
@media (max-width: 900px) { body.dockopen .tb-acct { display: none; } }
.topbar .spacer { flex: 1; }
.tb-btn {
  display: flex; align-items: center; gap: 8px; color: var(--muted);
  padding: 9px 14px; border-radius: 10px; 
  background: var(--panel-2); font-size: 13px; font-weight: 500;
  transition: color 130ms, border-color 130ms;
}
.tb-btn:hover { color: var(--ink); border-color: #33405a; }
/* Avatar auf Suchleisten-Hoehe + ohne Rest-Luecke verankert (Sandro: "wirkt lost") */
.tb-av { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: var(--panel); box-shadow: 0 0 0 1px var(--line); }
.tb-logo, .tb-burger { display: none; }

/* ---------- Feed ---------- */
.sect-label { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--muted); margin: 4px 0 16px; }
/* Sandro 18.07.: Bubbles +30%, mehr Creators, füllen die Content-Breite */
/* Sandro R3: space-between raus (riss auf breiten Screens 100-200px-Luecken), Abstand fix ~30px */
.creators { display: flex; gap: 22px; margin-bottom: 50px; padding-top: 4px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; } /* Sandro 20.07.: 50px Luft bis zu den Posts; R8: 4px Luft oben (overflow-x clippte den Hover-Ring) */
.creators::-webkit-scrollbar { display: none; }
.creator { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 106px; }
/* Sandro R8: Hover ohne Bewegung — nur WEISSER Ring; R9: noch weicher/langsamer (Easing-Fade) */
.creator img {
  width: 92px; height: 92px; border-radius: 50%; object-fit: cover;
  border: 2px solid transparent; transition: border-color 550ms cubic-bezier(.22, .68, .3, 1);
}
.creator:hover img { border-color: rgba(255, 255, 255, .92); }
.creator .cn { font-size: 13px; font-weight: 600; white-space: nowrap; }
.creator .cc { font-size: 12px; color: var(--muted); } /* Sandro V4: war 11px, nie unter 10 */

.feed { display: flex; flex-direction: column; gap: 28px; max-width: 680px; }
.card {
  background: var(--panel); 
  border-radius: var(--radius); overflow: hidden;
  transition: border-color 130ms;
}
/* Sandro R14: Karte bewegt sich beim Hover NICHT mehr (kein translateY) */
.card:hover { border-color: #2c3547; }
/* Bilder NIE beschneiden (Winchester 18.07.): natürliches Seitenverhältnis, sehr hohe
   Bilder werden gedeckelt und per contain + Ambient-Blur-Backdrop letterboxed. */
.card .ph { position: relative; background: var(--panel-2); overflow: hidden; }
/* Sandro R12: 3-Punkte-Kreis (Blur) oben rechts, erscheint beim Hover ueber dem Post */
.ph-more { position: absolute; top: 12px; right: 12px; z-index: 3; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: rgba(0, 0, 0, .3);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  opacity: 0; transition: opacity 180ms ease, background 130ms; }
.ph-more svg { width: 17px; height: 17px; }
.card:hover .ph-more, .ph-more:focus-visible { opacity: 1; }
.ph-more:hover { background: rgba(0, 0, 0, .5); }
@media (hover: none) { .ph-more { opacity: 1; } } /* Touch: kein Hover — immer sichtbar */
/* Post-Optionen-Overlay */
.pm-list { display: flex; flex-direction: column; gap: 6px; margin: 14px 0 4px; }
.pm-it { display: flex; align-items: center; gap: 13px; width: 100%; text-align: left; padding: 12px 13px;
  border-radius: 13px; background: var(--panel-2); transition: background 130ms; }
.pm-it:hover { background: var(--input); }
.pm-it svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.pm-it b { display: block; font-size: 13.5px; }
.pm-it span { display: block; font-size: 11.5px; color: var(--muted-2); margin-top: 2px; }
.pm-danger svg, .pm-danger b { color: #e0596b; }
.card .ph img.ph-main { position: relative; width: 100%; height: auto; max-height: 640px; object-fit: contain; display: block; }
.card .ph video.ph-main, .alb-s video.ph-main { position: relative; width: 100%; height: auto; max-height: 640px; object-fit: contain; display: block; background: #000; }
.ph-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(26px) saturate(1.15); transform: scale(1.18); opacity: .5; }
.card .cf { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.byline { display: flex; align-items: center; gap: 10px; min-width: 0; }
.byline img, .av { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--panel-2); }
.byline .bn { font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.byline .bn .dot { width: 6px; height: 6px; border-radius: 50%; background: #3ddc84; }
.byline .bt { font-size: 11.5px; color: var(--muted); }
.cf .spacer { flex: 1; }
.apx {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap;
}
/* Sandro R16: Coin = EXAKT der Logo-Tuerkis (#87D9CF wie das Mark oben links) statt
   Teal-Gradient; Dreieck dunkel + optisch zentriert (symmetrische viewBox in APXMARK) */
.apx .coin {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--brandteal);
  display: grid; place-items: center; color: #14141e;
}
.apx .coin svg { width: 14px; height: 14px; stroke-width: 2.6; }
.apx small { color: var(--muted); font-weight: 500; }
/* Sandro R8: APX-Pill IST der Upvote-Button im Post-Detail (Coin links neben der Zahl) */
.vote-apx { cursor: pointer; padding: 7px 14px 7px 8px; border-radius: 999px; background: var(--panel-2); transition: background 220ms ease, box-shadow 260ms ease; }
.vote-apx:hover { background: #2b2e45; }
.vote-apx .vsep { width: 1px; height: 16px; background: var(--line); margin: 0 2px; }
.vote-apx > svg { width: 15px; height: 15px; color: var(--teal); }
/* Uma 20.08. (Winchester-Wahl K2 "Verlauf + Glow"): gevotet = GANZE Pille gefuellt —
   Slider-Fill-Verlauf tuerkis->mint + weicher Schein, Coin invertiert dunkel. Der alte
   1.5px-Ring war zu subtil; Herz-wird-rot-Prinzip: der ganze Button zeigt den Vote. */
.vote-apx.on, .vote-apx.on:hover { background: linear-gradient(90deg, #35d0c5, #a9f3e1);
  box-shadow: 0 6px 18px rgba(53,208,197,.45); color: #14141e; }
.vote-apx.on small { color: rgba(20,20,30,.55); }
.vote-apx.on .coin { background: #14141e; color: #a9f3e1; }
.vote-apx.on .vsep { background: rgba(20,20,30,.35); }
.vote-apx.on > svg { color: #14141e; }
/* Pop im Vote-Moment — Klasse setzt NUR der frische Vote-Erfolg (nicht der Render,
   sonst huepfen beim Feed-Laden alle laengst gevoteten Pillen) */
@keyframes votePop { 0% { transform: scale(1); } 45% { transform: scale(1.14); } 100% { transform: scale(1); } }
.vote-apx.pop { animation: votePop 380ms cubic-bezier(.34,1.56,.64,1); }
/* Tipping-Einstieg links in der Vote-Pill */
/* Sandro R15: Tipping-Kreis exakt so gross wie OK/X (40px), Coin-Icon statt Geschenk */
.vsl-tip { flex: none; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.12); color: var(--ink);
  display: grid; place-items: center; transition: background 160ms, color 160ms; }
.vsl-tip:hover { background: var(--mint); color: #0d2a24; }
.vsl-tip svg { width: 18px; height: 18px; stroke-width: 2; }
/* Sandro R8: Leaderboard zentriert im View */
.lb-wrap { max-width: 780px; margin: 0 auto; }

/* ---------- Post-Detail ---------- */
/* Sandro 18.07.: linke Spalte nutzt die Breite (~72/28), rechte Spalte fix geklemmt */
.post-grid { display: grid; grid-template-columns: minmax(0, 1fr) clamp(300px, 28%, 380px); gap: 26px; align-items: stretch; margin-top: 30px; } /* Sandro R8: Post ruckt etwas runter, klebt nicht oben */
.post-hero { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--panel-2);  }
.post-hero img.ph-main { position: relative; width: 100%; height: auto; max-height: 74vh; object-fit: contain; display: block; }
.post-hero video.ph-main, .post-hero .alb-s video.ph-main { max-height: 74vh; }
.post-meta { display: flex; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.post-meta .spacer { flex: 1; }
.stat { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; }
.stat svg { width: 16px; height: 16px; stroke-width: 1.9; }
.stat.vote-btn { padding: 7px 12px; border-radius: 10px; background: var(--panel-2); transition: color 130ms, background 130ms; }
.stat.vote-btn:hover { color: var(--teal); border-color: var(--teal-deep); }
.cat-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.post-text { color: #c6ccd8; line-height: 1.65; font-size: 13.5px; margin-top: 16px; max-width: 640px; white-space: pre-line; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.tag {
  font-size: 12px; color: var(--muted); background: var(--panel-2);
   border-radius: 999px; padding: 6px 13px;
}

.side { display: flex; flex-direction: column; gap: 22px; min-height: 0; }
.cmt-panel { flex: 1 1 auto; min-height: 280px; display: flex; flex-direction: column; overflow: hidden; }
.cmt-panel h3 { flex: none; }
.cmt-list { flex: 1 1 0; min-height: 0; overflow-y: auto; padding-bottom: 18px; scrollbar-width: thin;
  -webkit-mask-image: linear-gradient(180deg, #000 86%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 86%, transparent 100%); }
.panel {
  background: var(--panel); 
  border-radius: var(--radius); padding: 18px;
}
.panel h3 { font-size: 14px; font-weight: 700; display: flex; align-items: baseline; justify-content: space-between; }
.panel h3 small { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.cmt { display: flex; gap: 10px; margin-top: 16px; }
.cmt .av { width: 30px; height: 30px; }
.cmt .cb { min-width: 0; flex: 1; }
.cmt .ca { font-size: 12.5px; font-weight: 600; }
.cmt .ct { font-size: 12.5px; color: #b7bfcd; line-height: 1.5; margin-top: 3px; }
.cmt .cm { display: flex; align-items: center; gap: 10px; margin-top: 7px; }
.cmt .capx {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600;
  color: var(--teal); background: rgba(53,208,197,.09); border-radius: 999px; padding: 3px 9px;
}
.cmt .capx svg { width: 11px; height: 11px; stroke-width: 2.6; }
.cmt .ctime { font-size: 11px; color: var(--muted-2); }
.cmt-input { display: flex; align-items: center; gap: 10px; margin-top: 14px; background: var(--input); border-radius: var(--radius-s); padding: 9px 12px; flex: none; }
.cmt-input input { flex: 1; font-size: 13px; }
/* Sandro R12: kein Focus-Border — Placeholder fadet weg wie in der Discovery-Suche */
.cmt-input input:focus-visible { outline: none; }
.cmt-input input::placeholder { transition: opacity 220ms ease, transform 220ms ease; }
.cmt-input input:focus::placeholder { opacity: 0; transform: translateX(6px); }
.cmt-input button { color: var(--teal); display: grid; place-items: center; }
.cmt-input svg { width: 17px; height: 17px; stroke-width: 2; }
/* Winchester 20.08.: Kommentar-Diktat — Mikro dezent grau, bei Aufnahme rot + Puls */
/* Winchester 20.08.: eigenen Kommentar loeschen — dezent grau, 1. Tipp armiert rot */
.cmt-del { display: inline-grid; place-items: center; margin-left: 4px; color: var(--muted-2); }
.cmt-del svg { width: 13px; height: 13px; stroke-width: 2; }
.cmt-del:hover { color: var(--ink); }
.cmt-del.arm { color: #e5484d; animation: cmtMicPulse 1s infinite alternate; }
.cmt-mic { color: var(--muted); }
.cmt-mic:hover { color: var(--ink); }
.cmt-mic.rec { color: #e5484d; animation: cmtMicPulse 1s infinite alternate; }
@keyframes cmtMicPulse { from { opacity: 1; } to { opacity: .45; } }

/* Winchester 23.08. (P4): Related Content neu — .rt/.rv-Kollision beseitigt,
   Karten-Look: Thumb + 2-zeilig geklemmter Titel + Meta, Hover hebt sanft an. */
.rel { display: flex; gap: 12px; margin-top: 12px; align-items: center; padding: 8px; border-radius: 14px; transition: background .15s ease, transform .15s ease; }
.rel:hover { background: rgba(255, 255, 255, .04); transform: translateY(-1px); }
.rel img { flex: none; width: 72px; height: 72px; border-radius: 12px; object-fit: cover; background: var(--panel-2); }
.rel-tx { flex: 1; min-width: 0; }
.rel-t { font-size: 13px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rel-v { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.rel-v > svg { width: 12px; height: 12px; color: var(--teal); }

/* ---------- Login ---------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card {
  width: 100%; max-width: 400px; background: var(--panel);
   border-radius: 22px; padding: 38px 34px;
}
.login-card .mark { width: 44px; height: 44px; margin-bottom: 20px; }
.login-card h1 { font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.login-card p { color: var(--muted); font-size: 13px; margin-top: 7px; line-height: 1.5; }
.field { margin-top: 16px; }
.field label { display: block; font-size: 11.5px; font-weight: 600; color: var(--muted); margin-bottom: 7px; letter-spacing: .04em; }
.field input {
  width: 100%; background: var(--input); 
  border-radius: var(--radius-s); padding: 11px 13px; font-size: 14px;
  transition: border-color 130ms;
}
.field input:focus { border-color: var(--teal-deep); }
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  width: auto; min-width: 96px; max-width: 200px; margin-top: 22px;
  background: #fff; color: #14141e;
  font-size: 14px; font-weight: 700; border-radius: var(--radius-s); padding: 11px 22px;
  transition: filter 130ms, transform 130ms;
}
.btn-primary:hover { filter: brightness(.92); }
.btn-primary:active { transform: scale(.985); }
.btn-primary[disabled] { opacity: .55; cursor: wait; }
.login-err { margin-top: 14px; color: var(--red); font-size: 12.5px; display: none; }
.login-note { margin-top: 18px; font-size: 11.5px; color: var(--muted-2); line-height: 1.5; }
/* Login-Screen (Firebase, wie die App) */
.login-wrap { display: flex; justify-content: center; padding: 44px 16px; }
.login-card { width: 100%; max-width: 420px; background: var(--panel); border-radius: var(--radius); padding: 28px 26px; }
.lg-lab { display: block; margin: 16px 0 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.lg-in { width: 100%; background: #2d2e40; color: var(--text); border: none; border-radius: var(--radius-s); padding: 12px 14px; font-size: 14px; }
.lg-in:focus { outline: 2px solid rgba(255,255,255,.25); }
.lg-row { display: flex; gap: 10px; margin-top: 20px; align-items: center; }
.lg-google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 12px; margin-top: 18px; border-radius: 14px; background: #fff; color: #15151c; font-weight: 700; font-size: 14px; transition: filter 130ms; }
.lg-google:hover { filter: brightness(0.94); }
.lg-google:disabled { opacity: 0.6; }
.lg-google svg { flex: none; }
.lg-apple { margin-top: 10px; background: #0b0b0e; color: #fff; border: 1px solid rgba(255,255,255,.13); }
.lg-apple:hover { filter: brightness(1.25); }
/* Wallet-Login + Vault-Wallets (MetaMask/Phantom, Winchester 28.07.) */
.lg-wals { display: flex; gap: 10px; margin-top: 10px; }
.lg-wals .lg-google { margin-top: 0; font-size: 13px; padding: 11px 8px; min-width: 0; }
.wal-row { display: flex; align-items: center; gap: 8px; }
.wal-row svg { flex: none; }
.wal-kind { opacity: 0.55; font-size: 12px; }
.wal-un { margin-left: auto; opacity: 0.55; display: inline-flex; padding: 4px; border-radius: 8px; background: none; color: inherit; cursor: pointer; }
.wal-un:hover { opacity: 1; background: rgba(255, 255, 255, 0.07); }
.wal-un svg { width: 14px; height: 14px; }
.tipp-wal { display: flex; align-items: center; gap: 7px; margin: 10px 0 2px; font-size: 12px; color: rgba(255, 255, 255, 0.62); }
.tipp-wal svg { width: 15px; height: 15px; flex: none; }
.tipp-wal a { color: var(--mint, #a9f3e1); text-decoration: none; }
.wal-acts { display: flex; gap: 10px; margin-top: 12px; }
.wal-acts .btn-ghost { flex: 1; height: 42px; padding: 0 10px; border-radius: 999px; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; white-space: nowrap; }
.wal-acts svg { flex: none; width: 16px; height: 16px; }
.lg-or { display: flex; align-items: center; gap: 12px; margin-top: 14px; color: var(--muted); font-size: 12px; }
.lg-or::before, .lg-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.lg-tabs { display: flex; gap: 8px; margin-top: 14px; }
.lg-tab { flex: 1; padding: 10px; border-radius: 12px; background: var(--panel-2); color: var(--muted); font-weight: 600; font-size: 13px; transition: background 130ms, color 130ms; }
.lg-tab.on { background: #fff; color: #14141e; }

/* ---------- Registrierungs-Flow (22.08., Konzept s1–s7, App-Shell-Stage) ----------
   Randloses Panel 18px auf --panel, Mint-CTA, 8-Dots-Reise, HugeIcons.
   Typo-Leiter: 27px Headline / 14px Body+Controls / 12.5px Hilfetext. */
.rg-stage { min-height: calc(100vh - 40px); display: flex; align-items: center; justify-content: center; padding: 40px 20px; position: relative; }
.rg-glow { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(560px 340px at 50% 16%, rgba(135,217,207,.07), transparent 70%); }
.rg-panel { position: relative; width: 100%; max-width: 660px; background: var(--panel); border-radius: var(--radius); padding: 38px 48px 34px; text-align: center; }
/* Winchester 23.08. — R5-K4 AMBIENT PREVIEW: geblurrter Live-Feed hinter der schwebenden Mint-Glow-Login-Karte */
.rg-amb { position: absolute; inset: -40px; display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 1fr; gap: 10px;
  filter: blur(7px) brightness(.5) saturate(1.1); transform: scale(1.04); pointer-events: none; overflow: hidden; }
.rg-amb img { width: 100%; height: 100%; min-height: 160px; object-fit: cover; border-radius: 14px; }
.rg-panel.rg-glowcard { max-width: 430px; padding: 34px 36px 28px; border: 1px solid rgba(169, 243, 225, .38);
  box-shadow: 0 0 0 1px rgba(169, 243, 225, .06), 0 0 44px rgba(169, 243, 225, .13), 0 24px 60px rgba(0, 0, 0, .55); }
.rg-glowcard .rg-dots { display: none; }
.rg-mark { margin: 0 auto 14px; width: 56px; }
.rg-mark .mark, .rg-mark svg { width: 56px; height: 56px; }
.rg-tag { color: var(--muted); font-size: 14px; margin: 0 0 6px; letter-spacing: .04em; }
.rg-walnote { color: var(--mint); font-size: 12.5px; margin-top: 18px; }
.rg-step { font-size: 12.5px; color: var(--muted); margin-bottom: 12px; }
.rg-dots { display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; }
.rg-dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 10.5px; font-weight: 700; background: #2a2c3e; color: var(--muted); flex: none; }
.rg-dot svg { width: 11px; height: 11px; }
.rg-dot.done { background: rgba(169,243,225,.16); color: var(--mint); }
.rg-dot.cur { background: var(--mint); color: #10131c; box-shadow: 0 0 0 4px rgba(169,243,225,.14); }
.rg-ln { width: 24px; height: 2px; background: #2a2c3e; flex: none; }
.rg-ln.on { background: rgba(169,243,225,.45); }
.rg-h { font-size: 27px; font-weight: 800; letter-spacing: -.015em; margin: 2px 0 8px; }
.rg-left { text-align: left; }
.rg-sub { color: var(--muted); font-size: 14px; line-height: 1.55; }
.rg-form { max-width: 400px; margin: 24px auto 0; text-align: left; }
.rg-form-wide { max-width: 460px; }
.rg-lab { display: block; margin: 14px 0 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.rg-form .lg-in { height: 46px; }
.rg-cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 26px;
  background: var(--mint); color: #10131c; font-size: 14px; font-weight: 700; border-radius: 999px;
  padding: 13px 46px; transition: filter 130ms, transform 130ms; }
.rg-cta:hover { filter: brightness(.95); }
.rg-cta:active { transform: scale(.98); }
.rg-cta[disabled] { opacity: .45; cursor: not-allowed; }
.rg-cta-full { width: 100%; }
.rg-foot { margin-top: 22px; color: var(--muted); font-size: 14px; }
.rg-link { color: var(--ink); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.rg-link:hover { color: var(--mint); }
.rg-link svg { width: 14px; height: 14px; }
.rg-err { margin-top: 12px; color: var(--red); font-size: 12.5px; }
.rg-err[hidden] { display: none; }
/* Join (s1) */
.rg-soc-col { display: grid; gap: 12px; max-width: 380px; margin: 28px auto 0; }
.rg-soc { display: flex; align-items: center; justify-content: center; gap: 12px; height: 54px;
  border-radius: 14px; background: var(--panel-2); color: var(--ink); font-size: 14px; font-weight: 600;
  transition: background 130ms, transform 130ms; }
.rg-soc:hover { background: #2a2c40; transform: translateY(-1px); }
.rg-soc:disabled { opacity: .6; transform: none; }
.rg-soc svg { width: 20px; height: 20px; flex: none; }
/* Passwort-Auge (s2) */
.rg-pwwrap { position: relative; }
.rg-pwwrap .lg-in { padding-right: 44px; }
.rg-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); color: var(--muted); padding: 6px; }
.rg-eye:hover, .rg-eye.on { color: var(--mint); }
.rg-eye svg { width: 18px; height: 18px; display: block; }
/* Birthday (s3) */
.rg-bday { display: grid; grid-template-columns: 1fr 1.5fr 1fr; gap: 14px; max-width: 480px; margin: 28px auto 0; text-align: left; }
.rg-sel { position: relative; }
.rg-sel select { width: 100%; appearance: none; -webkit-appearance: none; background: var(--input); color: var(--ink);
  border: 0; border-radius: var(--radius-s); height: 48px; padding: 0 36px 0 14px; font-family: var(--font); font-size: 14px; cursor: pointer; }
.rg-sel select:focus { outline: 2px solid rgba(169,243,225,.45); }
.rg-chev { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.rg-chev svg { width: 16px; height: 16px; display: block; }
/* Username (s4) */
.rg-unamewrap { position: relative; }
.rg-unamewrap .lg-in { height: 52px; padding-right: 120px; font-size: 14px; }
.rg-ustate { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.rg-ustate.ok { color: var(--mint); }
.rg-ustate.no { color: var(--red); }
.rg-ustate svg { width: 14px; height: 14px; }
.rg-help { margin-top: 16px; color: var(--muted); font-size: 13px; text-align: center; }
.rg-help2 { margin-top: 8px; color: var(--muted); font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 7px; }
.rg-help2 svg { width: 16px; height: 16px; color: var(--brandteal); flex: none; }
.rg-at { color: var(--brandteal); }
.rg-note { margin-top: 10px; color: var(--muted-2); font-size: 12.5px; text-align: center; }
.rg-form .rg-cta { display: flex; width: fit-content; margin: 26px auto 0; }
.rg-form .rg-cta-full { width: 100%; }
/* Welcome (s5) */
.rg-confetti { position: absolute; inset: 0; overflow: hidden; border-radius: var(--radius); pointer-events: none; }
.rg-conf { position: absolute; border-radius: 50%; background: var(--mint); opacity: .45; animation: rgFloat 3.4s ease-in-out infinite alternate; }
@keyframes rgFloat { from { transform: translateY(0); opacity: .2; } to { transform: translateY(-14px); opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .rg-conf { animation: none; } }
.rg-av { display: block; width: 108px; height: 108px; border-radius: 50%; margin: 6px auto 18px; padding: 4px;
  background: rgba(169,243,225,.12); box-shadow: 0 0 0 2px rgba(169,243,225,.55), 0 0 36px rgba(169,243,225,.2); }
.rg-av img { width: 100%; height: 100%; border-radius: 50%; }
.rg-atname { color: var(--brandteal); font-size: 14px; font-weight: 600; margin: 2px 0 6px; }
/* Topics (s6) */
.rg-kick { font-size: 12.5px; letter-spacing: .14em; font-weight: 700; text-transform: uppercase; color: var(--brandteal); margin-bottom: 4px; }
.rg-chips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 26px auto 0; max-width: 560px; }
.rg-chip { position: relative; background: var(--panel-2); border: 2px solid transparent; border-radius: 16px;
  padding: 16px 6px 13px; display: grid; justify-items: center; gap: 10px; color: var(--muted);
  font-size: 12.5px; font-weight: 600; transition: border-color 130ms, color 130ms, transform 130ms; }
.rg-chip > svg { width: 26px; height: 26px; }
.rg-chip:hover { color: var(--ink); transform: translateY(-2px); }
.rg-chip.on { border-color: var(--mint); color: var(--ink); background: rgba(169,243,225,.07); }
.rg-ck { position: absolute; top: 7px; right: 7px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--mint); color: #10131c; display: none; place-items: center; }
.rg-chip.on .rg-ck { display: grid; }
.rg-ck svg { width: 11px; height: 11px; }
.rg-count { margin-top: 18px; color: var(--muted); font-size: 12.5px; }
/* Wallet (s7) + Backup */
.rg-walhero { margin: 24px auto 0; max-width: 560px; background: var(--panel-2); border-radius: 16px;
  padding: 22px 26px; display: flex; align-items: center; gap: 22px; }
.rg-walid { display: flex; align-items: center; gap: 12px; font-size: 19px; font-weight: 700; min-width: 0; }
.rg-walid b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rg-atbadge { width: 44px; height: 44px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; color: var(--brandteal); flex: none; }
.rg-atbadge svg { width: 22px; height: 22px; }
.rg-keyvis { margin-left: auto; position: relative; width: 118px; height: 118px; display: grid; place-items: center; flex: none; }
.rg-keyvis::before { content: ""; position: absolute; inset: -10px; background: radial-gradient(closest-side, rgba(169,243,225,.22), transparent); }
/* Codex-Image2-Schluessel (Winchester 23.08.) — quadratische Kachel, kein Crop */
.rg-keyimg { position: relative; width: 100%; height: 100%; object-fit: cover; border-radius: 18px; display: block;
  box-shadow: 0 10px 28px rgba(135,217,207,.28); }
.rg-panel > .rg-keyvis { width: 128px; height: 128px; margin: 0 auto 22px; }
.rg-privacy { margin: 22px auto 0; max-width: 480px; color: var(--muted); font-size: 12.5px; line-height: 1.6;
  display: flex; align-items: flex-start; justify-content: center; gap: 8px; text-align: left; }
.rg-privacy svg { width: 16px; height: 16px; color: var(--brandteal); flex: none; margin-top: 2px; }
.rg-okbadge { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 50%;
  background: rgba(169,243,225,.14); color: var(--mint); box-shadow: 0 0 0 2px rgba(169,243,225,.4), 0 0 30px rgba(169,243,225,.18); }
.rg-okbadge svg { width: 26px; height: 26px; }
.rg-keylab { max-width: 460px; margin: 20px auto 10px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.rg-keyrow { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; }
.rg-key { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.rg-copy { flex: none; display: inline-flex; align-items: center; gap: 7px; background: var(--panel-2);
  color: var(--ink); border-radius: var(--radius-s); padding: 0 16px; font-size: 13px; font-weight: 600; }
.rg-copy:hover { background: #2a2c40; }
.rg-copy svg { width: 15px; height: 15px; }
.rg-copy[hidden] { display: none; }
.rg-keyswap { display: block; margin: 12px auto 0; background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--brandteal); font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; opacity: .85; }
.rg-keyswap:hover { opacity: 1; }
.rg-keystat { max-width: 460px; margin: 8px auto 0; color: var(--red); font-size: 12.5px; line-height: 1.5; }
.rg-keystat.ok { color: var(--mint); }
.rg-keystat[hidden] { display: none; }
.rg-key.own { border-color: rgba(53,208,197,.55); }
.rg-confirm { display: flex; align-items: flex-start; gap: 9px; max-width: 460px; margin: 16px auto 0;
  color: var(--ink); font-size: 12.5px; line-height: 1.5; cursor: pointer; text-align: left; }
.rg-confirm input { margin-top: 2px; accent-color: var(--mint); }
@media (max-width: 720px) {
  .rg-stage { padding: 20px 14px; align-items: flex-start; }
  .rg-panel { padding: 26px 20px 24px; margin-top: 12px; }
  .rg-h { font-size: 23px; }
  .rg-chips { grid-template-columns: repeat(3, 1fr); }
  .rg-walhero { flex-direction: column; gap: 12px; padding: 18px; }
  .rg-keyvis { margin: 0; }
  .rg-ln { width: 12px; }
}

/* --- Polish R2 (22.08.): Konzept-Skala — groessere Buehne, ruhigere Mitte --- */
.rg-panel { max-width: 720px; padding: 44px 56px 40px; }
.rg-h { font-size: 31px; }
.rg-dots { margin-bottom: 28px; }
.rg-dot { width: 24px; height: 24px; }
.rg-ln { width: 28px; }
.rg-soc-col { max-width: 420px; gap: 14px; margin-top: 34px; }
.rg-soc { height: 56px; }
.rg-form .lg-in { height: 50px; }
.rg-form { margin-top: 28px; }
.rg-sel select { height: 52px; }
.rg-bday { max-width: 500px; margin-top: 32px; }
.rg-cta { padding: 14px 52px; }
.rg-chips { max-width: 600px; gap: 14px; }
.rg-chip { padding: 20px 8px 16px; gap: 12px; }
.rg-chip > svg { width: 30px; height: 30px; }
.rg-walhero { max-width: 600px; padding: 28px 30px; }
.rg-av { width: 116px; height: 116px; }
/* Welcome-Silhouette (Konzept s5): neutrale Person statt Farb-Initialen — ruhig festlich */
.rg-av-idle { display: grid; place-items: center; background: #232537; }
.rg-av-idle svg { width: 54px; height: 54px; color: var(--muted); }
/* Key-Visual (Konzept s7): gezeichneter Schluessel mit Dreieck-Kanon im Kopf, Mint-Glow */
.rg-keysvg { width: 200px; height: 120px; overflow: visible;
  filter: drop-shadow(0 10px 26px rgba(135,217,207,.5)); }
@media (max-width: 720px) {
  .rg-panel { padding: 26px 20px 24px; }
  .rg-h { font-size: 24px; }
  .rg-keysvg { width: 150px; height: 90px; }
}

/* --- Polish R3 (22.08.): Buehne fuellt den Viewport wie im Konzept --- */
.rg-panel { max-width: 780px; padding: 52px 64px 48px; }
.rg-h { font-size: 33px; }
.rg-step { margin-bottom: 14px; }
.rg-dots { margin-bottom: 32px; }
.rg-dot { width: 26px; height: 26px; }
.rg-ln { width: 30px; }
.rg-soc-col { max-width: 460px; margin-top: 38px; }
.rg-soc { height: 60px; }
.rg-form .lg-in { height: 52px; }
.rg-sel select { height: 54px; }
.rg-cta { padding: 15px 56px; }
.rg-chips { gap: 16px; margin-top: 30px; }
.rg-chip { padding: 22px 8px 18px; }
.rg-walhero { padding: 32px 34px; margin-top: 28px; }
.rg-keysvg { width: 220px; height: 132px; }
.rg-av { width: 124px; height: 124px; margin-bottom: 22px; }
.rg-av-idle svg { width: 60px; height: 60px; }
.rg-conf { opacity: .6; }
.rg-foot { margin-top: 26px; }
.rg-privacy { margin-top: 26px; }
@media (max-width: 720px) {
  .rg-panel { padding: 26px 20px 24px; }
  .rg-h { font-size: 24px; }
  .rg-keysvg { width: 160px; height: 96px; }
  .rg-av { width: 104px; height: 104px; }
}

/* ---------- Zustände / Toast ---------- */
.empty { color: var(--muted); padding: 40px 0; text-align: center; font-size: 13.5px; }
.skel { border-radius: var(--radius); background: linear-gradient(100deg, var(--panel) 40%, #1a1f2b 50%, var(--panel) 60%); background-size: 200% 100%; animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
#toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #1b212e;  color: var(--ink);
  border-radius: 12px; padding: 11px 18px; font-size: 13px;
  opacity: 0; pointer-events: none; transition: opacity 180ms, transform 180ms; z-index: 60;
  max-width: min(90vw, 480px); text-align: center;
}
#toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .post-grid { grid-template-columns: 1fr; }
  .cmt-panel { min-height: 0; }
  .cmt-list { max-height: 420px; flex: none; }
}
/* ---------- Mobile (Sandro 18.07., Voice 2): Sidebar wird Burger-Menue oben —
   links Logo, Mitte Suche, rechts Burger; Menuepunkte + AI im Overlay ---------- */
@media (max-width: 640px) {
  .shell { grid-template-columns: 1fr; }
  .rail { display: none; }
  .main { padding: 14px 14px 80px; }
  .topbar { gap: 10px; }
  .search { min-width: 0; } .search input { min-width: 0; width: 100%; } /* Burger ragte 33px raus (H-Scroll Discover mobil) */
  .tb-logo { display: block; flex: none; }
  .tb-logo .mark { width: 54px; height: 54px; margin: 0; }  /* Sandro R8: mobil ~20% kleiner (68 -> 54) */
  .tb-av { display: none; }
  /* Sandro 19.07.: Burger cooler — 2 breite Striche, gleiche Hoehe wie das Logo, kein Kachel-Hintergrund */
  .tb-burger {
    display: grid; place-items: center; flex: none;
    width: 68px; height: 68px; border-radius: 16px;
    background: none; color: var(--ink);
    transition: color 130ms, transform 130ms;
  }
  .tb-burger:active { transform: scale(.94); }
  .tb-burger svg { width: 34px; height: 34px; stroke-width: 2.4; }
  .tb-burger:active, .tb-burger.open { color: #fff; }
  .creators { gap: 18px; }
  .card .ph img.ph-main { max-height: 74vh; }
  .card .ph video.ph-main { max-height: 74vh; }
}

/* Burger-Menue-Overlay (nur mobil sichtbar — Button existiert nur dort) */
.mnav { position: fixed; inset: 0; z-index: 70; background: rgba(4,6,10,.62); backdrop-filter: blur(3px); }
.mnav[hidden] { display: none; }
.mnav-panel {
  position: absolute; top: 0; left: 0; right: 0;
  background: var(--bg); border-bottom: 1px solid var(--line);
  padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 2px;
  animation: pingIn .18s ease-out;
}
.mnav-item {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 11px 10px; border-radius: 12px;
  font-size: 14.5px; font-weight: 600; color: var(--muted);
  transition: color 130ms;
}
.mnav-item:hover { color: var(--ink); }
.mnav-item.on { color: #fff; background: none; }  /* Active nur weiss — wie in der Rail */
.mnav-item .nvi { width: 42px; height: 42px; flex: none; }  /* +40% wie Rail */
.mnav-item[data-nav="create"] { color: var(--ink); }
.mnav-item[data-nav="create"] .nvi { background: #fff; color: #14141e; border-radius: 11px; }
.mn-sphere {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  position: relative; overflow: hidden;
  background: radial-gradient(circle at 32% 26%, #fff 0%, #ffd2f2 14%, #c084ff 42%, #35d0c5 74%, #12345e 100%);
  box-shadow: 0 2px 14px rgba(160,110,255,.45),
              inset 0 -7px 12px rgba(4,8,32,.45),
              inset 0 5px 8px rgba(255,255,255,.28);
  animation: sphPulse 2.6s ease-in-out infinite;
}
/* Sandro 19.07.: conic-Ring auch hier raus — kein Rahmen */
.mn-sphere::before { content: none; }
.mn-sphere::after {
  content: ""; position: absolute; left: 16%; top: 9%; width: 40%; height: 28%;
  border-radius: 50%; filter: blur(1px);
  background: radial-gradient(closest-side, rgba(255,255,255,.95), rgba(255,255,255,0));
}
.mn-av { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: none; }
.mnav-sep { height: 0; margin: 8px 2px; }  /* Sandro 19.07.: Linie raus, nur Luft */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ---------- Sprint 2: Seiten-Kopf ---------- */
.page-h { font-size: 22px; font-weight: 800; margin: 2px 0 20px; }

/* ---------- Discover: 3D-Banner-Karussell (Winchester 18.07., Referenz alte App) ----------
   Seiten-Karten lugen an den Raendern rein (= "hier kann man swipen"),
   Hintergrund-Bilder mit leichter Opacity ueber Farbverlauf. */
/* Sandro 18.07.: Banner 20-30% höher, aktive Karte ~30% schmaler = Nachbarn lugen deutlicher rein */
/* Sandro 20.07. Voice: Cards ~30px weiter runter (Luft zur Suche), Challenges ~28px hoch
   (Hoehe 322->312 + Dots-Zone 38->30 + margin-bottom 18->0 — Kartenmass bleibt gleich) */
/* Sandro Voice 4 (20.07.): +20px Luft oben, Dots-Zone weg (Challenges rueckt ~24px hoch),
   KEINE 3D-Verzerrung mehr (nur kleiner), Seiten weniger transparent, Rundung staerker */
/* Sandro R17: Cards 15px hoeher (288 -> 303, Content darunter rutscht mit) */
.dcar { position: relative; height: 303px; overflow: hidden; margin: 52px 0 0; touch-action: pan-y; }
.dcard {
  position: absolute; top: 6px; bottom: 6px; left: 50%; width: min(54%, 560px);
  border-radius: 32px; overflow: hidden; cursor: pointer; user-select: none; /* Sandro R17: ein Tick weniger rund (36 -> 32) */
  background: var(--panel-2, #232537); /* neutraler Lade-Platzhalter — Banner deckt voll */
  transform: translateX(calc(-50% + var(--dx, 0%))) scale(var(--sc, 1));
  transition: transform .55s cubic-bezier(.22, .9, .3, 1), opacity .4s, filter .55s, box-shadow .4s;
  will-change: transform;
}
/* Shadow NUR auf der mittleren Karte (an den Seiten wirkte er abgeschnitten) */
.dcard.pos0 { --dx: 0%; --sc: 1; z-index: 5; box-shadow: 0 16px 40px rgba(0, 0, 0, .45); }
.dcard.pos1 { --dx: 64%; --sc: .78; z-index: 3; opacity: .68; filter: brightness(.72) saturate(.9); }
.dcard.posm1 { --dx: -64%; --sc: .78; z-index: 3; opacity: .68; filter: brightness(.72) saturate(.9); }
.dcard.pos2 { --dx: 180%; --sc: .8; opacity: 0; z-index: 1; pointer-events: none; }
.dcard.posm2 { --dx: -180%; --sc: .8; opacity: 0; z-index: 1; pointer-events: none; }
/* Sandro 20.07.: Banner IST das Design — volle Deckkraft, kein Dunkel-Overlay.
   Titel IMMER zentriert + ohne Schatten, darunter DISCOVER-Chip (Referenz = APPICS-Banner);
   Music-Banner ist hell -> Text gold statt weiss */
.dc-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.dc-in { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; }
.dc-in h1 { font-size: clamp(26px, 4vw, 44px); font-weight: 800; letter-spacing: .12em; color: #fff; }
.dc-chip { padding: 8px 20px; border-radius: 999px; background: rgba(0, 0, 0, .3); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .18em; }
.dc-in.gold h1 { color: #b28519; } /* Sandro V4: Gold dunkler, Chip-Text bleibt WEISS */
@media (max-width: 640px) { .dcar { height: 247px; } .dcard { width: 58%; } .dcard.pos1 { --dx: 40%; --sc: .68; } .dcard.posm1 { --dx: -40%; --sc: .68; }
  .disc-tabs::before { width: 100vw; } /* mobil keine Rail — Fade darf volle Breite */ }
/* Sandro R3 (loest Variante B ab): fuer Web zu maechtig — zentriert, max 600px, etwas flacher */
/* Sandro R13: Tabs bleiben beim Scrollen sticky, Content zieht drunter durch.
   Sandro R14: Glas-Look — semi-transparentes Weiss + Backdrop-Blur statt Solid;
   sticky-Abstand halbiert (29 -> 14px); im Stuck-Zustand faded ein Gradient ein,
   der den drunter wegscrollenden Content zur Background-Farbe hin ausblendet. */
/* Sandro R15: Default (unten) = Blauton wie der Top-Challenges-Background (--panel-Optik,
   semi-transparent); erst im Stuck-Zustand wird es das Glas-Weiss. */
.disc-tabs { position: sticky; top: 14px; z-index: 24; display: flex; gap: 8px; margin: 55px auto 40px;
  background: rgba(126, 152, 255, .07);
  /* Sandro R18: ein Tick mehr Blur (16 -> 20) */
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-radius: 999px; padding: 4px; width: 100%; max-width: 560px; box-shadow: 0 6px 22px rgba(0,0,0,.28);
  transition: background 300ms ease, max-width 460ms cubic-bezier(.3, 1.18, .4, 1); }
/* Sandro R16: im Stuck ein Tick deckender + Stretch ~25% breiter (560 -> 700px).
   Sandro R18: noch ein Tick heller (.13 -> .17), Hot/Trending im Stuck besser lesbar */
.disc-tabs.stuck { background: rgba(255,255,255,.17); max-width: 700px; }
.disc-tabs.stuck .dtab:not(.on) { color: #d7dae6; }
/* ACHTUNG: backdrop-filter macht .disc-tabs zum Containing Block — position:fixed wuerde
   an der Pill statt am Viewport ankern. Darum absolute mit top:-14px (deckt die Luft
   bis zur Viewport-Kante). Sandro R15: NIE 100vw (erzeugt H-Scrollbar + ragt in die
   Rail) — auf die Content-Spalte geklemmt; weicher Verlauf, oben nicht mehr voll deckend. */
.disc-tabs::before { content: ""; position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  width: min(1280px, calc(100vw - 110px)); height: 128px; z-index: -1;
  pointer-events: none; opacity: 0; transition: opacity 300ms ease;
  background: linear-gradient(180deg, rgba(20,20,30,.88) 0%, rgba(20,20,30,.62) 40%, rgba(20,20,30,.28) 68%, rgba(20,20,30,0) 100%); }
.disc-tabs.stuck::before { opacity: 1; }
.disc-tabs .dtab { flex: 1; text-align: center; position: relative; z-index: 2; }
/* Sandro R9: aktiver weisser Chip GLEITET zum geklickten Tab (Spring-Ease).
   .slid setzt JS beim Init — nur dort verliert .dtab.on sein statisches Weiss;
   Container ohne Init (walTabs, chd-tabs) behalten das alte Chip-Verhalten. */
.dt-ind { position: absolute; top: 4px; bottom: 4px; left: 4px; width: 0; z-index: 1; background: #fff; border-radius: 999px; opacity: 0; transition: left 420ms cubic-bezier(.3, 1.22, .4, 1), width 420ms cubic-bezier(.3, 1.22, .4, 1), opacity 200ms ease; }
.disc-tabs.slid .dtab.on { background: transparent; }
/* Sandro 18.07.: Tabs oben+unten min. 10px mehr Luft */
/* Sandro R8: Tab-Wechsel weicher (laengere Ease), Grid-Inhalt faded ein (.cfade) */
.dtab { padding: 15px 22px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); transition: background 280ms ease, color 280ms ease; }
.dtab:hover { color: var(--ink); }
.dtab.on { background: #fff; color: #14141e; }
.cfade { animation: cfade 340ms ease both; }
@keyframes cfade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* Sandro R10: Scroll-Reveal — Content kommt beim Scrollen weich von unten rein.
   Doppel-Klasse .rv.rv = hoehere Spezifitaet als spaetere .mitem-Transition;
   JS entfernt .rv nach dem Reveal (Cleanup), damit Hover wieder 130ms ist. */
.rv.rv { transition: opacity 560ms ease, transform 560ms cubic-bezier(.22, .7, .3, 1); }
.rv:not(.rv-in) { opacity: 0; transform: translateY(22px); }
.masonry .rv.rv-in:nth-child(4n+2) { transition-delay: 60ms; }
.masonry .rv.rv-in:nth-child(4n+3) { transition-delay: 120ms; }
.masonry .rv.rv-in:nth-child(4n+4) { transition-delay: 180ms; }
/* Sandro 18.07.: einheitliches 3:4-Raster statt Masonry, kein APX auf den Kacheln */
/* Sandro R3: fix 4 Spalten auf Desktop (vorher auto-fill = 5 auf breiten Screens) */
.masonry { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mitem { position: relative; display: block; border-radius: 14px; overflow: hidden; background: var(--panel-2); transition: transform 130ms, border-color 130ms; }
.mitem:hover { transform: translateY(-2px); border-color: var(--teal-deep); }
.mitem img { width: 100%; height: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.mi-apx { position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(10,14,18,.72); color: var(--teal); font-size: 11px; font-weight: 700; }
/* Sandro R9 (20.07.): Challenges, Top Creators und Posts-Grid je 60px schmaler (30px je Seite),
   damit alle Sektionen dieselbe Breite einnehmen wie die Cards oben — nur Desktop */
@media (min-width: 641px) {
  #chalStrip, #creatorsHost, #discHost { margin-left: 30px; margin-right: 30px; }
}

/* ---------- Profil ---------- */
.prof-cover { position: relative; border-radius: 18px; overflow: hidden; background: var(--panel-2);  min-height: 300px; }
.prof-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pc-grad { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,14,18,.05) 30%, rgba(10,14,18,.88) 100%); }
.pc-id { position: relative; padding: 150px 28px 24px; }
.pc-id h1 { font-size: 34px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.pv { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; background: var(--mint); color: #0b3b31; align-items: center; justify-content: center; } /* Sandro 19.07.: gleiche Mint wie Follow */
.pv svg { width: 13px; height: 13px; stroke-width: 3; }
.pc-bio { color: #c6ccd8; font-size: 13.5px; margin-top: 8px; max-width: 560px; line-height: 1.55; }
.pc-chips { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.pcc { padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.09); font-size: 12px; font-weight: 600; }
.pc-site { display: inline-block; margin-top: 10px; color: var(--teal); font-size: 13px; font-weight: 600; }
.pc-links { display: flex; align-items: center; gap: 14px; margin-top: 10px; flex-wrap: wrap; }
.pc-links .pc-site { margin-top: 0; }
.pc-handle { color: #aeb6c4; font-size: 13px; font-weight: 600; }
/* Social-Icons am Profil (Winchester 18.07.: nur VERIFIZIERTE Accounts erscheinen) */
.pc-social { display: flex; gap: 10px; margin-top: 14px; }
.pc-social:empty { display: none; }
.soc-ic {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px;
  background: rgba(255,255,255,.09); color: #fff; flex: none;
  transition: background 130ms, transform 130ms;
}
.soc-ic:hover { background: rgba(255,255,255,.16); transform: translateY(-1px); }
.soc-ic svg { width: 16px; height: 16px; }
.soc-ic.soc-add { color: var(--muted); background: rgba(255,255,255,.05); }
.soc-ic.soc-add:hover { color: var(--ink); }
.soc-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.soc-row .m-in { flex: 1; min-width: 0; }
.soc-row .soc-ic { background: var(--panel-2); }
.soc-act { flex: none; }
.soc-act.soc-rm { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--input); color: var(--muted); }
.soc-act.soc-rm svg { width: 13px; height: 13px; stroke-width: 2; }
.soc-ok { display: inline-flex; align-items: center; gap: 5px; color: var(--teal); font-size: 12px; font-weight: 600; white-space: nowrap; }
.soc-ok svg { width: 13px; height: 13px; stroke-width: 2.6; }
.soc-code { margin: 6px 0 2px 46px; font-size: 12px; color: var(--muted); line-height: 1.5; }
.soc-code b { color: var(--teal); letter-spacing: .04em; }
.soc-rml { color: var(--muted-2); font-size: 11.5px; text-decoration: underline; margin-left: 6px; }
.prof-bar { display: flex; align-items: center; gap: 26px; padding: 16px 22px; margin-top: 14px; background: var(--panel);  border-radius: 16px; }
.prof-bar .spacer { flex: 1; }
.pb-stat b { font-size: 17px; font-weight: 800; display: block; }
.pb-stat span { font-size: 11.5px; color: var(--muted); }
.pb-me { color: var(--muted); font-size: 13px; }
.btn-follow { padding: 10px 26px; border-radius: 999px; background: #fff; color: #14141e; font-weight: 700; font-size: 13.5px; transition: filter 130ms; }
.btn-follow:hover { filter: brightness(.92); }
.btn-follow.is { background: var(--panel-2); color: var(--ink);  }
.prof-tabs { margin: 22px 0 18px; display: flex; gap: 8px; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
/* Sandro 19.07.: Profil-Feed = Masonry mit natürlichen Ratios + Overlay (Name links, votes/$ rechts) */
.sgrid { columns: 280px; column-gap: 16px; }
.sg-item { display: block; position: relative; break-inside: avoid; margin-bottom: 16px; border-radius: 18px;
  overflow: hidden; background: var(--panel-2); transition: transform 130ms; }
.sg-item:hover { transform: translateY(-2px); }
.sg-item > img { display: block; width: 100%; height: auto; }
.sg-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(10,12,20,.72)); }
.sg-ov { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.sg-who { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 13px; font-weight: 600; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.sg-av { width: 26px; height: 26px; flex: none; border-radius: 50%; object-fit: cover; }
.sg-val { display: flex; flex-direction: column; align-items: flex-end; flex: none; line-height: 1.35; }
.sg-val em { font-style: normal; color: #c9cede; font-size: 11.5px; }
.sg-val b { color: #f0c96c; font-size: 12.5px; font-weight: 700; }
@media (max-width: 640px) { .sgrid { columns: 2; column-gap: 10px; } .sg-item { margin-bottom: 10px; border-radius: 14px; }
  .sg-av { width: 20px; height: 20px; } .sg-who { font-size: 11.5px; } }
.pg-item { border-radius: 12px; overflow: hidden; background: var(--panel-2);  aspect-ratio: 1; transition: transform 130ms, border-color 130ms; }
.pg-item:hover { transform: translateY(-2px); border-color: var(--teal-deep); }
.pg-item img { width: 100%; height: 100%; object-fit: cover; }

/* Profil 1:1 nach Figma node 59-1180 (Sandro-Link 19.07.): Spalten 182|470|400,
   24er-Gaps, left-packed (rechts bleibt bewusst leer); Poppins 55 Name, Pill h57,
   Follow mint #a9f3e1, Thumbs r24, Bild r12, Account-Avatar oben rechts. */
/* Sandro-Voice 19.07. R4: Abstand oben/unten = exakt Logo-Abstand der Rail (16px),
   Streifen +8px Luft zur Menübar (22px), Bild +10% breiter (470 -> 517). */
body.profpage .main { max-width: none; padding: 16px 16px 16px 22px; }

/* Konzept p04 = privater Viewing-Room: proaktive Agent-Pings wuerden das
   Identitaets-Dock ueberdecken -> auf Profilseiten aus. */
body.profpage .ag-ping { display: none !important; }

/* ============================================================
   INFINITE CANVAS Profil — R2 (Winchester 28.07., 1:1 nach Konzept p04)
   Zwei zum Zentrum geneigte Werk-Wände (rotateY-Galerie), verschiedene
   Größen/Formate je Slot, Tiefe über Blur/Helligkeit, Fokus-Werk mit
   Caption-Karte, transparente Stats-Zeile, Profilkarte mit großem Avatar,
   Room/List-Toggle. Fly-In (icv-warp) bleibt. Parallax via --mx/--my.
   ============================================================ */
.icv { position: relative; height: calc(100vh - 32px); min-height: 540px; overflow: hidden; border-radius: 18px; background: #0b0c14; }
.icv-bgwrap { position: absolute; inset: 0; overflow: hidden; border-radius: 18px; }
.icv-bg { width: 112%; height: 112%; margin: -6%; object-fit: cover; filter: blur(72px) saturate(1.25) brightness(.34); opacity: 0; animation: icvBgIn 1.1s ease .05s forwards; }
@keyframes icvBgIn { to { opacity: .5; } }
/* Vignette: der Raum läuft zu den Rändern dunkel aus wie im Konzept */
.icv-bgwrap::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 52% at 50% 44%, transparent 0%, rgba(8, 9, 16, .38) 60%, rgba(5, 6, 11, .78) 100%); }

.icv-stage { position: absolute; inset: 0; perspective: 1100px; }

/* Fokus-Werk: leicht über der Mitte, Caption-Karte hängt darunter (table-caption
   clippt sie exakt auf Bildbreite). Sanftes Gegen-Parallax. */
.icv-focus { position: absolute; display: table; left: 50%; top: 43%; margin: 0; z-index: 6;
  transform: translate(calc(-50% + var(--mx, 0) * -6px), calc(-50% + var(--my, 0) * -3.5px));
  transition: transform .64s cubic-bezier(.55, 0, .85, .36), filter .64s ease, opacity .6s ease .04s; }
/* Breiten-Cap direkt am IMG in vw — Prozent-max-width am display:table greift in
   Chrome nicht zuverlässig (Bild lief mobil aus dem Viewport). */
.icv-focus img { display: block; max-width: min(36vw, 560px); max-height: 54vh; border-radius: 18px;
  box-shadow: 0 50px 110px rgba(0, 0, 0, .62), 0 0 0 1px rgba(255, 255, 255, .1), 0 0 90px rgba(140, 160, 255, .12); }
.icv-open { position: relative; display: block; cursor: pointer; }
.icv-chip { position: absolute; top: 12px; right: 12px; padding: 5px 11px; border-radius: 8px; background: rgba(10, 12, 22, .55); backdrop-filter: blur(8px); font-size: 10px; font-weight: 700; letter-spacing: .14em; color: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .16); }
.icv-exp { position: absolute; bottom: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; background: rgba(10, 12, 22, .58); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .25s ease, transform .25s ease; }
.icv-exp svg { width: 15px; height: 15px; color: #fff; }
.icv-open:hover .icv-exp { opacity: 1; transform: scale(1.06); }

/* Caption-Karte (Konzept: Titel, Art · Jahr, Herz/Kommentar/APX, Dots) */
.icv-meta { display: table-caption; caption-side: bottom; padding: 14px 4px 0; }
/* nowrap-Titel darf die table-Wrapper-Box NICHT verbreitern (min-content-Trick),
   sonst schiebt sich das Fokus-Bild aus der Mitte (Mobil-Fang R2). */
.icv-mtop, .icv-mrow { width: 0; min-width: 100%; }
.icv-mtop { display: flex; align-items: flex-start; gap: 10px; }
.icv-mtit { min-width: 0; }
.icv-mtit b { display: block; font-size: 15px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
.icv-mtit span { font-size: 12px; color: rgba(255, 255, 255, .55); }
.icv-mmore { margin-left: auto; flex: none; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, .65); }
.icv-mmore:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.icv-mmore svg { width: 15px; height: 15px; }
.icv-mrow { margin-top: 9px; display: flex; align-items: center; gap: 16px; font-size: 12.5px; color: rgba(255, 255, 255, .72); font-variant-numeric: tabular-nums; }
.icv-mrow > span { display: inline-flex; align-items: center; gap: 6px; }
.icv-mrow svg { width: 14px; height: 14px; }
.icv-mrow .apx { color: var(--mint); }
.icv-mrow .coin svg { width: 13px; height: 13px; }
.icv-dots { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; }
.icv-dots i { width: 14px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .22); transition: background .3s ease, width .3s ease; }
.icv-dots i.on { background: var(--mint); width: 22px; }

/* Schwebende Werke = geneigte Galerie-Panels. Größe je Slot (--fw/--fa),
   Neigung --ry, Parallax-Stärke --pp je Tier (nah bewegt sich mehr). */
.icv-fl { position: absolute; border: 0; padding: 0; background: none; cursor: pointer; border-radius: 12px; opacity: 0;
  transform: translate(calc(-50% + var(--mx, 0) * var(--pp, 0) * 1px), calc(-50% + var(--my, 0) * var(--pp, 0) * .55px)) rotateY(var(--ry, 0deg)) scale(var(--fs, 1));
  transition: transform .8s cubic-bezier(.22, 1, .36, 1), opacity .7s ease, filter .8s ease; will-change: transform, opacity; }
.icv-fl img { display: block; width: var(--fw, 120px); aspect-ratio: var(--fa, 3/4); object-fit: cover; border-radius: 12px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .08), 0 0 46px rgba(120, 140, 255, .1); }
.icv-fl.t0 { z-index: 5; --pp: -16; }
.icv-fl.t1 { z-index: 4; --pp: -9; filter: brightness(.78); }
.icv-fl.t2 { z-index: 2; --pp: -4; filter: blur(1.6px) brightness(.55); }
.icv-live .icv-fl { opacity: 1; }
.icv-live .icv-fl.t2 { opacity: .9; }
.icv-fl:hover { transform: translate(calc(-50% + var(--mx, 0) * var(--pp, 0) * 1px), calc(-50% + var(--my, 0) * var(--pp, 0) * .55px)) rotateY(calc(var(--ry, 0deg) * .35)) scale(1.07); filter: brightness(1.04); z-index: 8; }
.icv-fl:hover img { box-shadow: 0 30px 70px rgba(0, 0, 0, .6), 0 0 0 2px rgba(255, 255, 255, .8), 0 0 40px rgba(169, 243, 225, .3); }
.icv-fl:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
.icv-bdg { position: absolute; right: 7px; bottom: 7px; width: 24px; height: 24px; border-radius: 50%; background: rgba(10, 12, 22, .68); display: flex; align-items: center; justify-content: center; }
.icv-bdg svg { width: 12px; height: 12px; color: #fff; }

/* Einflug + Fly-In-Warp (Kamera fliegt INS Bild) */
.icv-stage:not(.icv-live) .icv-focus { transform: translate(-50%, -50%) scale(.24); filter: blur(12px); opacity: 0; }
.icv-stage:not(.icv-live) .icv-fl { transform: translate(-50%, -50%) rotateY(calc(var(--ry, 0deg) * 1.8)) scale(1.45); }
.icv-warp .icv-focus { transform: translate(-50%, -50%) scale(7.5); filter: blur(16px) brightness(1.35); opacity: 0; z-index: 9; pointer-events: none; }
.icv-warp .icv-fl { transform: translate(-50%, -50%) rotateY(var(--ry, 0deg)) scale(2.7); opacity: 0 !important; pointer-events: none; }
.icv-warp .icv-nav { opacity: 0; }

.icv-nav { position: absolute; top: 45%; transform: translateY(-50%); z-index: 8; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(20, 22, 36, .55); backdrop-filter: blur(12px); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s ease, transform .2s ease, opacity .3s ease; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
.icv-nav svg { width: 18px; height: 18px; }
.icv-nav:hover { background: rgba(255, 255, 255, .92); color: #14141e; transform: translateY(-50%) scale(1.07); }
.icv-nav.prev { left: 26px; } .icv-nav.next { right: 26px; }

/* Raum-Titel oben links */
.icv-head { position: absolute; left: 30px; top: 26px; z-index: 12; }
.icv-head h2 { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .34em; color: #fff; text-transform: uppercase; }
.icv-head p { margin: 5px 0 0; font-size: 11.5px; color: rgba(255, 255, 255, .5); letter-spacing: .02em; }
.icv-count { display: block; margin-top: 10px; font-size: 11px; font-weight: 600; letter-spacing: .08em; color: rgba(255, 255, 255, .45); font-variant-numeric: tabular-nums; }

/* Stats-Zeile oben rechts — transparent (Konzept), APX-Wert in Mint, Follow als Outline-Pill */
.icv-stats { position: absolute; top: 24px; right: 88px; z-index: 12; display: flex; align-items: center; gap: 28px; animation: icvDockIn .7s cubic-bezier(.22, 1, .36, 1) .2s backwards; }
.icv-stats > div { text-align: center; }
.icv-stats b { display: block; font-size: 16px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; text-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
.icv-stats span { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .48); }
.icv-stats .apx b { color: var(--mint); }
.icv-follow { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 22px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .4); background: rgba(20, 22, 36, .35); backdrop-filter: blur(10px); color: #fff; font-size: 13.5px; font-weight: 600; letter-spacing: .02em; cursor: pointer; transition: background .2s ease, color .2s ease, transform .18s ease; }
.icv-follow svg { width: 15px; height: 15px; }
.icv-follow em { font-style: normal; }
.icv-follow b { font-weight: 700; font-size: inherit; color: inherit; display: inline; }
.icv-follow:hover { background: #fff; color: #14141e; transform: translateY(-1px); }
.icv-follow.is { background: rgba(169, 243, 225, .14); border-color: rgba(169, 243, 225, .5); color: var(--mint); }
.icv-msg { width: 42px; height: 42px; min-width: 0; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(20, 22, 36, .35); backdrop-filter: blur(10px); color: #fff; display: flex; align-items: center; justify-content: center; transition: background .2s ease, color .2s ease; }
.icv-msg:hover { background: rgba(255, 255, 255, .92); color: #14141e; }
.icv-msg svg { width: 16px; height: 16px; }

/* Profilkarte unten links — Avatar präsent mit Mint-Ring + Glow (R2) */
.icv-dock { position: absolute; left: 30px; bottom: 26px; z-index: 12; width: min(380px, calc(100% - 60px)); padding: 20px 22px; border-radius: 20px; background: rgba(16, 18, 30, .62); backdrop-filter: blur(22px) saturate(1.3); box-shadow: 0 24px 60px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .08); animation: icvDockIn .7s cubic-bezier(.22, 1, .36, 1) .15s backwards; }
@keyframes icvDockIn { from { transform: translateY(26px); opacity: 0; } }
.icv-idrow { display: flex; align-items: center; gap: 15px; }
.icv-av { width: 78px; height: 78px; border-radius: 50%; object-fit: cover; flex: none;
  box-shadow: 0 0 0 2.5px var(--mint), 0 0 0 7px rgba(169, 243, 225, .13), 0 8px 30px rgba(0, 0, 0, .5), 0 0 44px rgba(169, 243, 225, .2); }
.icv-avi { display: flex; align-items: center; justify-content: center; background: var(--panel-2); font-size: 30px; font-weight: 700; color: var(--mint); }
.icv-id { min-width: 0; }
.icv-id h1 { margin: 0; font-family: Poppins, Inter, sans-serif; font-size: 25px; font-weight: 600; line-height: 1.04; color: #fff; }
.icv-id .pv { vertical-align: 2px; }
.icv-handle { margin-top: 3px; display: flex; gap: 10px; align-items: center; font-size: 13px; color: rgba(255, 255, 255, .62); white-space: nowrap; overflow: hidden; }
.icv-handle span { color: var(--mint); }
.icv-bio { margin: 12px 0 0; font-size: 13px; line-height: 1.55; color: rgba(255, 255, 255, .75); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.icv-more { margin-left: auto; }
.icv-note { margin-top: 14px; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--mint); }
.icv-note svg { width: 13px; height: 13px; flex: none; }

/* Room/List-Umschalter unten rechts + List-Grid-Overlay */
.icv-view { position: absolute; right: 30px; bottom: 30px; z-index: 13; display: flex; padding: 4px; border-radius: 12px; background: rgba(16, 18, 30, .6); backdrop-filter: blur(16px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
.icv-view button { display: inline-flex; align-items: center; gap: 7px; border: 0; background: none; color: rgba(255, 255, 255, .55); font-size: 12px; font-weight: 600; padding: 8px 14px; border-radius: 9px; cursor: pointer; transition: background .2s ease, color .2s ease; }
.icv-view button.on { background: rgba(255, 255, 255, .12); color: #fff; }
.icv-view svg { width: 14px; height: 14px; }
.icv-gridwrap { position: absolute; inset: 0; z-index: 11; overflow-y: auto; padding: 100px 40px 250px; background: rgba(8, 9, 16, .55); backdrop-filter: blur(14px); }
.icv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; max-width: 1080px; margin: 0 auto; }
.icv-grid button { border: 0; padding: 0; background: none; border-radius: 12px; cursor: pointer; overflow: hidden; }
.icv-grid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; transition: transform .25s ease, box-shadow .25s ease; }
.icv-grid button:hover img { transform: scale(1.04); }
.icv-grid button.on img { box-shadow: 0 0 0 2.5px var(--mint); }
.icv-listing .icv-nav, .icv-listing .icv-focus, .icv-listing .icv-fl { opacity: 0 !important; pointer-events: none; }

.icv-empty { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); text-align: center; color: var(--muted); }
.icv-empty svg { width: 34px; height: 34px; margin-bottom: 8px; }
@media (prefers-reduced-motion: reduce) {
  .icv-focus, .icv-fl, .icv-warp .icv-focus, .icv-warp .icv-fl { transition: opacity .25s ease; }
}
@media (max-width: 640px) {
  .icv { height: calc(100dvh - 128px); min-height: 480px; }
  .icv-head { left: 14px; top: 14px; }
  .icv-head h2 { font-size: 11px; letter-spacing: .22em; }
  .icv-head p, .icv-count { display: none; }
  .icv-focus { top: 37%; }
  .icv-focus img { max-width: 74vw; max-height: 36vh; }
  .icv-fl.t2 { display: none; } /* Fern-Ebene mobil aus — sonst zu voll */
  .icv-fl img { width: calc(var(--fw, 100px) * .62); }
  .icv-stats { top: 48px; right: 14px; gap: 14px; } /* eigene Zeile unter dem Titel — kollidiert sonst */
  .icv-stats b { font-size: 13px; }
  .icv-stats .apx { display: none; }
  .icv-follow { height: 36px; padding: 0 14px; font-size: 12px; }
  .icv-msg { width: 36px; height: 36px; }
  .icv-dock { left: 12px; right: 12px; bottom: 86px; width: auto; padding: 14px 16px; } /* FAB-Zone frei */
  .icv-av { width: 56px; height: 56px; }
  .icv-id h1 { font-size: 20px; }
  .icv-note { display: none; }
  .icv-view { right: 12px; bottom: 20px; } /* icon-only: FAB sitzt unten Mitte */
  .icv-view button span { display: none; }
  .icv-view button { padding: 8px 11px; }
  .icv-gridwrap { padding: 70px 14px 260px; }
  .icv-nav.prev { left: 10px; } .icv-nav.next { right: 10px; }
  .icv-nav { top: 38%; width: 40px; height: 40px; }
}
@media (min-width: 641px) { body.profpage .topbar { display: none; } }
/* R5 (Sandro-Voice): Thumbs +12% (182 -> 204), Gap 24 -> 18, Hover OHNE Bewegung — nur heller */
.pshow { display: grid; grid-template-columns: 204px minmax(340px, 517px) minmax(300px, 400px);
  gap: 24px; justify-content: start; align-items: stretch; height: calc(100vh - 32px); }
.pshow > .skel, .pshow > .empty { grid-column: 1 / -1; }
.ps-strip { display: flex; flex-direction: column; gap: 18px; height: 100%; min-height: 0;
  overflow-y: auto; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(180deg, #000 86%, transparent); mask-image: linear-gradient(180deg, #000 86%, transparent); } /* Sandro: unten ausfaden */
.ps-strip::-webkit-scrollbar { display: none; }
.ps-th { position: relative; display: block; flex: none; border-radius: 24px; overflow: hidden;
  background: var(--panel-2); transition: filter 130ms, opacity 130ms; opacity: .92; }
.ps-th img { display: block; width: 100%; height: auto; }
.ps-th:hover { opacity: 1; filter: brightness(1.12); }
.ps-ph { display: grid; place-items: center; height: 120px; width: 100%; color: var(--muted); }
.ps-ph svg { width: 22px; height: 22px; }
.ps-badge { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 24px; height: 24px;
  border-radius: 50%; background: rgba(10,12,20,.6); color: #fff; pointer-events: none; }
.ps-badge svg { width: 12px; height: 12px; }
/* Stage = EIN großes Profilbild volle Höhe — Rundung EINHEITLICH mit Thumbs (Sandro R6: r24, überstimmt Figma-r11) */
.ps-stage { position: relative; height: 100%; min-height: 0; border-radius: 24px; overflow: hidden; background: var(--panel-2); }
.ps-big { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ps-init { position: absolute; inset: 0; display: grid; place-items: center; font-size: 120px; font-weight: 800; color: var(--muted); }
.ps-info { display: flex; flex-direction: column; min-width: 0; height: 100%; min-height: 0; padding: 0 0 2px; }
.ps-head h1 { font-family: "Poppins", var(--font); font-size: clamp(38px, 3.9vw, 55px);
  line-height: .98; font-weight: 600; letter-spacing: -.5px; min-width: 0; overflow-wrap: anywhere; }
.ps-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ps-head .pv { vertical-align: middle; margin-left: 6px; width: 24px; height: 24px; }
.ps-morewrap { position: relative; flex: none; margin-top: 6px; }
.ps-more { width: 38px; height: 38px; border-radius: 50%; background: var(--panel-2); color: var(--ink); font-size: 19px; line-height: 1; letter-spacing: 1px; }
.ps-more:hover { filter: brightness(1.18); }
.ps-menu { position: absolute; right: 0; top: 44px; min-width: 195px; background: var(--panel); border-radius: 14px;
  box-shadow: 0 16px 44px rgba(0,0,0,.55); padding: 6px; z-index: 25; }
.ps-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px;
  font-size: 13.5px; font-weight: 600; color: var(--ink); text-decoration: none; }
.ps-menu a:hover { background: var(--panel-2); }
.ps-menu svg { width: 15px; height: 15px; color: var(--muted); }
.ps-apx { text-decoration: none; }
.ps-mid { flex: 1; min-height: 24px; }
.ps-handle { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; font-size: 15px; font-weight: 500; color: #fff; }
.ps-handle .pc-site { margin-top: 0; color: #86f4da; font-size: 15px; font-weight: 500; }
.pc-bio { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ps-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.ps-pill { display: flex; align-items: center; gap: 44px; margin-top: 30px; padding: 8px 14px 8px 31px;
  border-radius: 999px; background: #fff; color: #040404; box-shadow: 0 14px 34px rgba(0,0,0,.35); }
.ps-st { flex: none; min-width: 0; line-height: 1.3; font-family: "Poppins", var(--font); }
.ps-st b { display: block; font-size: 15.5px; font-weight: 600; color: #040404; }
.ps-st span { font-size: 10.5px; font-weight: 500; color: #7e7e7e; }
.ps-follow { flex: none; margin-left: auto; height: 40px; padding: 0 34px; border-radius: 999px;
  background: var(--mint); color: #000; font-family: "Poppins", var(--font); font-weight: 600;
  font-size: 15px; transition: filter 130ms; }
.ps-follow:hover { filter: brightness(.94); }
.ps-follow.is { background: #e8e9ef; color: #14141e; }
/* Figma header-actions: eigener Account-Avatar oben rechts (nur Desktop-Profilseite) */
.ps-acct { position: fixed; top: 20px; right: 20px; z-index: 30; display: none; }
.ps-acct img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; display: block; }
@media (min-width: 641px) { body.profpage .ps-acct { display: block; } }
@media (max-width: 1080px) {
  .pshow { grid-template-columns: 130px minmax(0, 1fr); gap: 14px; height: auto; }
  .ps-info { grid-column: 1 / -1; grid-row: 1; height: auto; }
  .ps-mid { flex: none; }
  .ps-head h1 { font-size: 34px; }
  .ps-strip { height: auto; max-height: 70vh; }
  .ps-stage { height: auto; min-height: 420px; aspect-ratio: 3 / 4; }
}
@media (max-width: 640px) {
  body.profpage .main { padding-bottom: 80px; }  /* FAB-Freiraum wie überall mobil */
  .pshow { display: flex; flex-direction: column; height: auto; }
  .ps-info { order: -1; height: auto; }
  .ps-strip { flex-direction: row; max-height: none; height: 104px; overflow-x: auto; overflow-y: hidden; }
  .ps-th { height: 104px; border-radius: 14px; }
  .ps-th img { height: 100%; width: auto; }
  .ps-stage { min-height: 0; aspect-ratio: 3 / 4; }
}

/* ---------- Wallet ---------- */
.wal-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.wal-hero { background: linear-gradient(135deg, #14303a 0%, #0f2027 60%, #123a35 100%);  border-radius: 18px; padding: 22px 24px; margin-bottom: 20px; }
.wh-row { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; margin-bottom: 14px; }
/* Balance-Privacy-Auge (Winchester 23.08., Exchange-Muster) */
.wh-eye { margin-left: auto; width: 32px; height: 32px; min-width: 0; padding: 0; border: 0; border-radius: 10px;
  background: rgba(255,255,255,.07); color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.wh-eye:hover { color: #fff; }
.wh-eye[aria-pressed="true"] { color: var(--brandteal); }
.wh-eye svg { width: 17px; height: 17px; }
.wh-main { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.wh-usd { font-size: 38px; font-weight: 800; }
.wh-usd i, .wh-apx i { font-style: normal; color: var(--teal); font-size: .55em; font-weight: 700; }
.wh-apx { text-align: right; }
.wh-apx > div:first-child { font-size: 22px; font-weight: 800; }
.wh-cap { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.wh-btns { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; } /* 3 Pills brachen auf 390px sonst als Min-Content aus der Hero (H-Scroll, Polish-Pass 22.07.) */
.btn-pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 20px; border-radius: 999px; background: rgba(53,208,197,.14); color: var(--teal); font-weight: 700; font-size: 13px;  transition: background 130ms; }
.btn-pill:hover { background: rgba(53,208,197,.24); }
.btn-pill svg { width: 15px; height: 15px; stroke-width: 2.2; }
.wal-list { display: flex; flex-direction: column; gap: 10px; }
.wrow { display: flex; align-items: center; gap: 14px; padding: 13px 16px; background: var(--panel);  border-radius: 14px; }
.wr-ic { display: inline-flex; width: 34px; height: 34px; border-radius: 50%; background: rgba(53,208,197,.12); color: var(--teal); align-items: center; justify-content: center; flex: none; }
.wr-ic svg { width: 16px; height: 16px; stroke-width: 2; }
.wrow > div:nth-child(2) { flex: 1; min-width: 0; }
.wrow b { font-size: 13px; display: block; }
.wrow > div:nth-child(2) span { font-size: 11.5px; color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wr-t { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.wr-v { font-weight: 800; font-size: 14px; white-space: nowrap; }
.wr-v i { font-style: normal; color: var(--teal); font-size: .8em; }
.wp-big { font-size: 30px; font-weight: 800; margin: 8px 0 4px; }
.wp-sub { font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.btn-ghost { display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px; border-radius: 999px; background: var(--panel-2); color: var(--ink); font-weight: 600; font-size: 13px; transition: filter 130ms; }
.btn-ghost svg { width: 15px; height: 15px; stroke-width: 2; }
.btn-ghost:hover { filter: brightness(1.15); }
.btn-primary.slim { margin-top: 6px; padding: 10px 18px; }

/* ---------- Create Post ---------- */
.cre-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.ailab { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 14px; border-radius: 14px; text-align: left; background: linear-gradient(120deg, rgba(53,208,197,.16), rgba(122,92,255,.14));  margin-bottom: 14px; transition: filter 130ms; }
.ailab:hover { filter: brightness(1.12); }
.ai-ic { display: inline-flex; width: 38px; height: 38px; border-radius: 12px; background: var(--teal); color: #06322f; align-items: center; justify-content: center; flex: none; }
.ai-ic svg { width: 20px; height: 20px; stroke-width: 2; }
.ailab b { font-size: 13.5px; display: block; }
.ailab span { font-size: 11.5px; color: var(--muted); }
.lib-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lib-item { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 1; background: var(--panel-2); transition: box-shadow 130ms; }
.lib-item img { width: 100%; height: 100%; object-fit: cover; }
.lib-item.on { box-shadow: 0 0 0 2px var(--teal); }
.li-check { position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--teal); color: #06322f; display: none; align-items: center; justify-content: center; }
.li-check svg { width: 12px; height: 12px; stroke-width: 3; }
.lib-item.on .li-check { display: inline-flex; }
.cre-grid textarea, .cre-grid input {
  width: 100%; background: var(--input);  border-radius: 12px;
  padding: 12px 14px; font-size: 13.5px; color: var(--ink); margin-top: 10px; resize: vertical; font-family: inherit;
}
.cre-grid textarea:focus, .cre-grid input:focus { border-color: var(--teal-deep); outline: none; }
.cat-chips { display: flex; gap: 10px 12px; flex-wrap: wrap; margin-bottom: 4px; }
/* Sandro-Luft: Chip-Reihe direkt nach einem Eingabefeld braucht eigenen Abstand */
.m-in + .cat-chips { margin-top: 12px; }
.catc { padding: 9px 18px; border-radius: 999px;  background: var(--panel-2); font-size: 12px; font-weight: 600; color: var(--muted); transition: background 130ms, color 130ms; }
.catc:hover { color: var(--ink); }
.catc.on { background: #fff; color: #14141e; }
.cre-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
.cre-actions .btn-primary { width: auto; padding: 10px 30px; }
/* ---------- Create 2-Step-Flow (Sandro R13: alles zentriert, Quelle-Wahl als 2 Bloecke) ---------- */
.cre-col { max-width: 640px; margin: 0 auto; }
.cre-h { text-align: center; margin-bottom: 26px; }
.cre-choose { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cre-block { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 38px 18px; border-radius: 20px; text-align: center;
  background: linear-gradient(140deg, rgba(53,208,197,.14), rgba(122,92,255,.12));
  transition: filter 130ms, transform 130ms; }
.cre-block:hover { filter: brightness(1.14); transform: translateY(-2px); }
.cre-block .ai-ic { width: 52px; height: 52px; border-radius: 16px; }
.cre-block .ai-ic svg { width: 25px; height: 25px; }
.cre-block b { font-size: 14px; letter-spacing: .06em; }
.cre-block span { font-size: 11.5px; color: var(--muted); }
.cre-mini-row { display: flex; gap: 10px; justify-content: center; margin-top: 16px; }
.cre-mini { display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 999px;
  background: var(--panel-2); color: var(--muted); font-size: 12.5px; font-weight: 600; transition: background 130ms, color 130ms; }
.cre-mini:hover { background: var(--input); color: var(--ink); }
.cre-mini svg { width: 14px; height: 14px; }
.cre-lib { margin-top: 16px; grid-template-columns: repeat(4, 1fr); }
.cre-back { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 12px; color: var(--muted);
  font-size: 12.5px; font-weight: 600; }
.cre-back:hover { color: var(--ink); }
.cre-back svg { width: 14px; height: 14px; transform: rotate(180deg); }
.cre-panel textarea, .cre-panel input {
  width: 100%; background: var(--input); border-radius: 12px;
  padding: 12px 14px; font-size: 13.5px; color: var(--ink); margin-top: 10px; resize: vertical; font-family: inherit;
}
.cre-panel textarea:focus, .cre-panel input:focus { outline: none; }
.cre-cats { display: inline-flex; margin-top: 4px; }
#creProof .ph-more, #creProof .vs-open { display: none; } /* Preview ist keine echte Card */
#creProof .byline { display: flex; } /* war <a> -> jetzt <span>: display sicherstellen */
@media (max-width: 640px) { .cre-choose { grid-template-columns: 1fr; } .cre-lib { grid-template-columns: repeat(3, 1fr); }
  /* Chips untereinander statt umbrechend mitten im Wort (Polish 23.08.) */
  .cre-mini-row { flex-direction: column; align-items: stretch; }
  .cre-mini { justify-content: center; } }

/* ---------- Responsive Sprint 2 ---------- */
@media (max-width: 1080px) {
  .wal-grid, .cre-grid { grid-template-columns: 1fr; }
}
/* Grid-Blowout-Guard: 1fr = minmax(auto,1fr) — die Wallet-Tabs (Chain-Historie)
   drueckten die Spalte sonst ueber den Viewport (H-Scroll mobil, Polish-Pass 22.07.) */
.wal-grid > * { min-width: 0; }
@media (max-width: 640px) {
  .masonry { grid-template-columns: repeat(2, 1fr); }
  .pc-id h1 { font-size: 26px; }
  .prof-bar { flex-wrap: wrap; gap: 16px; }
  .dh-inner h1 { font-size: 30px; }
  .lib-grid { grid-template-columns: repeat(4, 1fr); }
  /* 3 Wallet-Tabs einzeilig auf 390px: weniger Padding + natuerliche Breiten statt
     Gleichverteilung (flex:1 zwang "Chain-Historie" in den Umbruch) — Polish-Pass 22.07. */
  .dtab { padding: 14px 12px; }
  .disc-tabs .dtab { flex: 1 1 auto; white-space: nowrap; }
}

/* ============================================================
   Sprint 3 — Modals, Vote-Zustände, Tip, AI LAB, Wallet-Pending
   ============================================================ */
.stat.vote-btn.on { color: var(--teal); border-color: var(--teal); background: rgba(53,208,197,.12); }
.stat.vote-btn.dn.on { color: var(--red); border-color: var(--red); background: rgba(255,93,108,.12); }
.stat.tip-btn { padding: 7px 12px; border-radius: 10px; background: var(--panel-2); color: var(--ink); display: inline-flex; align-items: center; gap: 6px; font-weight: 700; transition: background 130ms; }
.stat.tip-btn:hover { background: var(--input); }
.stat.tip-btn svg { width: 15px; height: 15px; stroke-width: 2; }

.modal-ov { position: fixed; inset: 0; background: rgba(4,6,10,.72); backdrop-filter: blur(4px); display: grid; place-items: center; z-index: 92; padding: 18px; } /* ueber Chat-Workspace (78) + globalem Dock (80), 27.07. */
.modal { width: 100%; max-width: 440px; max-height: 88vh; overflow: auto; background: var(--panel);  border-radius: var(--radius); padding: 22px; }
.modal h3 { font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.modal h3 svg { width: 18px; height: 18px; stroke-width: 2; color: var(--teal); }
.m-sub { color: var(--muted); font-size: 12px; line-height: 1.5; margin-bottom: 12px; }
.m-lab { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; margin: 20px 0 8px; }
.m-in { width: 100%; background: var(--input); border-radius: var(--radius-s); padding: 10px 12px; font-size: 14px; }
.m-in:focus { border-color: var(--teal-deep); }
textarea.m-in { resize: vertical; }
.m-err { color: var(--red); font-size: 12.5px; min-height: 16px; margin-top: 8px; }
.m-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; }

.ai-stage { margin-top: 12px; }
.ai-out { border-radius: var(--radius-s);  max-height: 300px; margin: 0 auto; }
.ai-ic.up-ic { background: rgba(127,108,255,.16); color: #a99bff; }

.wr-ic.pend { background: rgba(255,200,90,.14); color: #ffc85a; }
.page-sub { color: var(--muted); font-size: 13px; margin: -12px 0 18px; }

/* ============================================================
   Sprint 4 (Todoroki) — Mitteilungen
   ============================================================ */
.notif-list { display: flex; flex-direction: column; gap: 8px; max-width: 720px; }
.nrow { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; transition: border-color 130ms, transform 130ms; }
.nrow:hover { border-color: #2c3547; transform: translateY(-1px); }
.n-ic { position: relative; display: inline-flex; width: 20px; height: 20px; flex: none; align-items: center; justify-content: center; color: var(--muted); }
.n-ic svg { width: 18px; height: 18px; stroke-width: 2; }
.n-ic.like { color: var(--teal); }
.n-ic.follow { color: #7f9cff; }
.n-ic.comment { color: #f2b24a; }
.n-ic.downvote, .n-ic.fail { color: var(--red); }
.n-av { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--panel-2); flex: none; }
.n-body { flex: 1; min-width: 0; }
.n-name { font-size: 13.5px; font-weight: 700; }
.n-text { font-size: 12.5px; color: #b7bfcd; line-height: 1.45; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; }
.n-time { font-size: 11px; color: var(--muted-2); margin-top: 3px; }
.n-thumb { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; background: var(--panel-2); flex: none; }
.btn-follow.n-fol { padding: 8px 18px; font-size: 12.5px; flex: none; }

/* ============================================================
   Sprint 4 (Todoroki) — Leaderboard (feed-abgeleitet, echt)
   ============================================================ */
.lb-hero { position: relative; border-radius: 18px; overflow: hidden; margin-bottom: 8px;
  background: linear-gradient(135deg, #7a5cff 0%, #5a3ff0 55%, #3f2fd0 100%); }
.lb-hero-in { position: relative; z-index: 1; text-align: center; padding: 30px 20px 26px; }
.lb-hero-in h1 { font-size: 28px; font-weight: 800; letter-spacing: -.01em; }
.lb-pill { display: inline-block; margin-top: 10px; padding: 7px 20px; border-radius: 999px;
  background: #fff; color: #2a1f6e; font-size: 13px; font-weight: 800; }
.lb-pill-usd { margin-left: 8px; font-size: 12px; font-weight: 600; color: rgba(42,31,110,.6); }
.lb-note { margin-top: 12px; font-size: 12px; color: rgba(255,255,255,.82); max-width: 460px; margin-left: auto; margin-right: auto; }
.lb-podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: end;
  max-width: 560px; margin: -34px auto 26px; position: relative; z-index: 2; }
.lb-pod { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.lb-pod-av { position: relative; }
.lb-pod-av img { border-radius: 50%; object-fit: cover; border: 3px solid var(--bg); background: var(--panel-2); }
.lb-pod.p1 .lb-pod-av img { width: 96px; height: 96px; border-color: #ffcf4a; }
.lb-pod.p2 .lb-pod-av img, .lb-pod.p3 .lb-pod-av img { width: 74px; height: 74px; }
.lb-pod.p1 { transform: translateY(-14px); }
.lb-rank { position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%);
  width: 24px; height: 24px; border-radius: 50%; background: #fff; color: #12151d;
  font-size: 12px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--bg); }
.lb-pod.p1 .lb-rank { background: #ffcf4a; }
.lb-pod-name { font-size: 13px; font-weight: 700; margin-top: 6px; }
.lb-pod-apx { font-size: 11.5px; color: var(--teal); font-weight: 700; }
.lb-list { display: flex; flex-direction: column; gap: 8px; max-width: 720px; margin: 0 auto; }
.lb-row { display: flex; align-items: center; gap: 14px; padding: 11px 14px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 14px; transition: border-color 130ms, transform 130ms; }
.lb-row:hover { border-color: #2c3547; transform: translateY(-1px); }
.lb-av { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: var(--panel-2); flex: none; }
.lb-info { flex: 1; min-width: 0; }
.lb-name { font-size: 14px; font-weight: 700; }
.lb-sub { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.lb-badge { width: 34px; height: 34px; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 13px; font-weight: 800; color: var(--muted); flex: none; }

/* ============================================================
   Sprint 4 (Todoroki) — Kontostufe / Gamification
   (echte Profildaten; Stufen-Track = Konzept, klar markiert)
   ============================================================ */
.gam-track { position: relative; display: flex; justify-content: space-between; max-width: 560px;
  margin: 4px 0 6px; padding: 0 8px; }
.gam-track-line { position: absolute; top: 15px; left: 24px; right: 24px; height: 2px; background: var(--line); z-index: 0; }
.gam-stage { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.gam-dot { width: 32px; height: 32px; border-radius: 50%; background: var(--panel-2); border: 2px solid var(--line);
  display: grid; place-items: center; font-size: 13px; font-weight: 800; color: var(--muted); }
.gam-stage-l { font-size: 12px; font-weight: 700; color: var(--muted); }
.gam-concept-note { display: flex; align-items: flex-start; gap: 8px; max-width: 620px; margin: 16px 0 14px;
  font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.gam-concept-note svg { width: 16px; height: 16px; stroke-width: 1.9; color: #a99bff; flex: none; margin-top: 1px; }
.gam-buy { display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border-radius: 12px;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); font-weight: 700; font-size: 13px;
  cursor: not-allowed; opacity: .7; margin-bottom: 22px; }
.gam-buy svg { width: 15px; height: 15px; stroke-width: 2; }
.gam-card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; max-width: 620px; }
.gam-cover { position: relative; min-height: 240px; background: var(--panel-2); }
.gam-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gam-id { position: relative; padding: 130px 22px 20px; }
.gam-id h2 { font-size: 24px; font-weight: 800; }
.gam-rep { display: inline-block; vertical-align: middle; margin-left: 8px; padding: 2px 10px; border-radius: 999px; background: rgba(255,255,255,.14); font-size: 13px; font-weight: 700; color: #e7ebf2; }
.gam-id p { color: #c6ccd8; font-size: 13px; margin-top: 6px; max-width: 460px; line-height: 1.5; }
.gam-stats { display: flex; align-items: center; gap: 26px; padding: 16px 22px; border-top: 1px solid var(--line); }
.gam-stats .spacer { flex: 1; }
.gam-stat b { font-size: 17px; font-weight: 800; display: block; }
.gam-stat span { font-size: 11.5px; color: var(--muted); }
.gam-stats .btn-follow { padding: 9px 20px; font-size: 13px; }

/* ============================================================
   Sprint 5 (Todoroki) — Delegations-Übersicht (Figma delegation-overview)
   Echte Chain-Werte (blockchainProfile). Per-Account-Liste = ehrlicher
   Coming-Soon (kein Endpoint) statt erfundener Zeilen.
   ============================================================ */
.del-wrap { max-width: 620px; margin: 0 auto; }
.del-back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted);
  margin-bottom: 14px; }
.del-back svg { width: 18px; height: 18px; stroke-width: 2; }
.del-back:hover { color: var(--fg); }
.wp-more { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--teal);
  font-weight: 600; margin-top: 12px; }
.wp-more svg { width: 15px; height: 15px; stroke-width: 2.4; }
.del-hero { position: relative; border-radius: 20px; overflow: hidden; padding: 22px 22px 20px;
  background: linear-gradient(135deg, #7a5cff 0%, #5a3ff0 48%, #2f8f88 100%); }
.del-id { display: flex; align-items: center; gap: 12px; }
.del-av { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: rgba(255,255,255,.2); flex: none; }
.del-id b { font-size: 16px; font-weight: 800; display: block; color: #fff; }
.del-id span { font-size: 12px; color: rgba(255,255,255,.75); }
.del-fig { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 18px; }
.del-usd { font-size: 34px; font-weight: 800; color: #fff; letter-spacing: -.01em; }
.del-usd i, .del-apx i { font-style: normal; font-size: 15px; font-weight: 700; opacity: .8; }
.del-apx { font-size: 18px; font-weight: 800; color: #fff; text-align: right; }
.del-apx i { font-size: 11px; display: block; opacity: .7; }
.del-hbtns { display: flex; gap: 12px; margin-top: 18px; }
.del-pill { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px; border-radius: 999px; background: #fff; color: #2a1f6e; font-weight: 800; font-size: 13.5px; }
.del-pill svg { width: 16px; height: 16px; stroke-width: 2.4; }
.del-pill.ghost { background: rgba(0,0,0,.28); color: #fff; }
.del-pill:hover { transform: translateY(-1px); }
.del-pdn { margin-top: 10px; font-size: 11.5px; color: rgba(255,255,255,.82); }
.del-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
  padding: 20px; margin-top: 16px; }
.del-h { font-size: 16px; font-weight: 800; text-align: center; margin-bottom: 14px; }
.del-tabs { display: flex; gap: 6px; padding: 4px; background: var(--panel-2); border-radius: 999px; margin-bottom: 16px; }
.del-tab { flex: 1; padding: 9px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--muted); }
.del-tab.on { background: #fff; color: #12151d; }
.del-sumrow { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; }
.del-sum-lab { font-size: 12px; color: var(--muted); }
.del-sum-val { font-size: 20px; font-weight: 800; margin-top: 4px; }
.del-sum-val i { font-style: normal; font-size: 12px; font-weight: 700; color: var(--teal); }
.del-sum-usd { font-size: 11px; font-weight: 600; color: var(--muted-2); margin-top: 2px; }
.del-soon { display: flex; align-items: flex-start; gap: 12px; margin-top: 12px; padding: 16px;
  border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); }
.del-soon svg { width: 20px; height: 20px; stroke-width: 1.8; color: #a99bff; flex: none; margin-top: 2px; }
.del-soon b { font-size: 13.5px; color: var(--fg); }
.del-soon p { font-size: 12.5px; line-height: 1.55; margin-top: 5px; }
.del-send { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  margin-top: 16px; padding: 15px; border-radius: 16px; background: var(--teal); color: #06322f;
  font-weight: 800; font-size: 14px; }
.del-send svg { width: 18px; height: 18px; stroke-width: 2.2; }
.del-send:hover { transform: translateY(-1px); }

/* ============================================================
   Sprint 5 (Todoroki) — Menschen & Hashtags (Figma search-users)
   Feed-abgeleitet + reale Follower-Zahlen/Follow. Empfehlungen ehrlich
   als „nicht verfügbar" markiert (suggest 500).
   ============================================================ */
.dh-people { position: absolute; right: 16px; bottom: 14px; display: inline-flex; align-items: center;
  gap: 7px; padding: 8px 14px; border-radius: 999px; background: rgba(0,0,0,.28);
  color: #fff; font-size: 12.5px; font-weight: 700; backdrop-filter: blur(4px); }
.dh-people svg { width: 15px; height: 15px; stroke-width: 2.2; }
.dh-people:hover { background: rgba(0,0,0,.42); }
.pp-wrap { max-width: 720px; margin: 0 auto; }
.pp-tabs { display: flex; gap: 6px; padding: 4px; background: var(--panel-2); border-radius: 999px; margin-bottom: 14px; }
.pp-tab { flex: 1; padding: 10px; border-radius: 999px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.pp-tab.on { background: #fff; color: #12151d; }
.pp-search { display: flex; align-items: center; gap: 10px; padding: 11px 14px; margin-bottom: 16px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.pp-search svg { width: 18px; height: 18px; stroke-width: 2; color: var(--muted); flex: none; }
.pp-search input { flex: 1; font-size: 14px; }
.pp-note { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; margin-bottom: 14px;
  border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.pp-note svg { width: 17px; height: 17px; stroke-width: 1.9; color: #a99bff; flex: none; margin-top: 1px; }
.pp-note code { font-size: 11.5px; color: #c6ccd8; background: var(--panel-2); padding: 1px 5px; border-radius: 5px; }
.pp-list { display: flex; flex-direction: column; }
.pp-row { display: flex; align-items: center; gap: 14px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.pp-row:last-child { border-bottom: none; }
.pp-av-l { flex: none; }
.pp-av { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: var(--panel-2); }
.pp-info { flex: 1; min-width: 0; }
.pp-name { font-size: 14px; font-weight: 700; }
.pp-sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.pp-fol.pp-fol { padding: 8px 20px; font-size: 12.5px; flex: none; }
.pp-tagrow { transition: background 120ms; border-radius: 10px; }
.pp-tagrow:hover { background: var(--panel-2); }
.pp-tagrow svg { width: 18px; height: 18px; color: var(--muted-2); flex: none; }
.pp-hash { width: 46px; height: 46px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 20px; font-weight: 800; color: var(--teal); flex: none; }

/* ---------- AI Studio ---------- */
.st-sub { color: var(--muted); font-size: 13px; margin: -10px 0 18px; }
.st-grid { display: grid; grid-template-columns: 290px minmax(0,1fr) 260px; gap: 18px; align-items: start; }
@media (max-width: 1100px) { .st-grid { grid-template-columns: 1fr; } }
.eng { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left;
  padding: 12px;  border-radius: var(--radius-s);
  background: var(--panel-2); margin-bottom: 10px; transition: border-color .13s; }
.eng:hover { border-color: var(--teal-deep); }
.eng.on { background: rgba(53,208,197,.1); box-shadow: 0 0 0 1.5px rgba(53,208,197,.45); }
.eng.soon { opacity: .62; }
.eng b { display: block; font-size: 13px; letter-spacing: .3px; }
.eng span { color: var(--muted); font-size: 12px; }
.eng .soonb { font-style: normal; font-size: 10px; color: #ffc85a; background: rgba(255,200,90,.12);
  border-radius: 6px; padding: 1px 5px; margin-left: 6px; vertical-align: 1px; }
.st-work { min-height: 320px; }
.st-work .ai-out { display: block; max-width: 100%; max-height: 380px; }
video.ai-out { width: 100%; background: #000; }
.pricet { width: 100%; border-collapse: collapse; font-size: 12px; }
/* Sandro-Regel: Wert-Zeilen brechen NIE um — alles eine Zeile, eine Hoehe */
.pricet td { padding: 9px 2px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.pricet td:first-child { overflow: hidden; text-overflow: ellipsis; max-width: 0; width: 60%; }
.pricet td:last-child { width: 40%; }
.pricet td:last-child { text-align: right; color: var(--teal); font-weight: 600; }
.st-note { color: var(--muted); font-size: 12px; line-height: 1.5; margin-top: 12px; }
/* Referenzbilder (AI Lab): Chips mit Thumbnail + Entfernen, dezenter Add-Button */
.ref-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }
.refchip { position: relative; width: 52px; height: 52px; border-radius: 12px; overflow: hidden; background: var(--panel-2); }
.refchip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.refchip.up img { opacity: .4; }
.refchip em { position: absolute; left: 0; right: 0; bottom: 4px; font-size: 9px; font-style: normal; text-align: center; color: var(--mint); }
.refx { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border: 0; border-radius: 50%; background: rgba(0,0,0,.62); color: #fff; font-size: 13px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.refadd { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; padding: 0;
  border: 1px dashed rgba(255, 255, 255, .2); border-radius: 12px; background: none; color: var(--muted); cursor: pointer; min-width: 0;
  transition: color .13s ease, border-color .13s ease; }
.refadd:hover { color: #fff; border-color: rgba(255, 255, 255, .45); }
.refadd svg { width: 17px; height: 17px; }
.page-h svg, .st-work h3 svg { width: 20px; height: 20px; vertical-align: -3px; margin-right: 7px; color: var(--teal); stroke-width: 2; }
.st-work h3 { justify-content: flex-start; gap: 2px; }

/* ---------- Prompt-Mikro (Voice-Diktat, lokale GPU) ---------- */
.prompt-wrap { position: relative; }
.prompt-wrap .m-in { width: 100%; padding-right: 46px; box-sizing: border-box; }
.mic { position: absolute; right: 8px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--input); display: grid; place-items: center; }
.mic svg { width: 17px; height: 17px; stroke-width: 2; color: var(--muted); }
.mic:hover svg { color: var(--teal); }
.mic .mic-dot { display: none; }
.mic.rec { border-color: var(--red); }
.mic.rec svg { color: var(--red); }
.mic.rec .mic-dot { display: block; position: absolute; top: 4px; right: 4px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--red); animation: micpulse 1s infinite; }
@keyframes micpulse { 50% { opacity: .25; } }

/* ---------- 3D-Viewer ---------- */
model-viewer.mv { width: 100%; height: 340px; border-radius: var(--radius-s);  background: #0a0d13; }

/* ---------- APPICS Agent ---------- */
/* Agent Mode (Sandro 19.07.): Sphere-Klick -> Page schiebt nach RECHTS, Panel slidet
   von links rein — Agents oben waehlen, unten schreiben wie im Messenger. */
/* Sandro 24.08. (Voice 2): KEIN Seiten-Slide mehr — Bottom-Sheet wie im Messenger:
   Hintergrund blurt + schiebt nach hinten, Panel dockt von unten an.
   Voice 3: schmaler (70%) + ein Tick hoeher (80vh), Nachrichten max 50% Breite.
   Voice 4: Transition wie im Messenger (msgrZoomIn) — kommt von VORNE-UNTEN:
   startet groesser + tiefer + geblurrt, schrumpft beim Andocken. Kein reiner Slide mehr. */
.ag-pop { position: fixed; left: 50%; bottom: 0; width: 70vw; height: min(80vh, 880px);
  background: var(--panel); border-radius: 26px 26px 0 0; z-index: 61;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 -24px 80px rgba(0,0,0,.55); transform-origin: 50% 92%;
  transform: translate(-50%, 7%) scale(1.05); opacity: 0; filter: blur(12px); visibility: hidden;
  will-change: transform, filter, opacity;
  transition: transform .2s cubic-bezier(.4, 0, 1, 1), opacity .2s ease, filter .2s ease,
    visibility 0s linear .2s; }
body.agopen .ag-pop { visibility: visible;
  animation: agSheetIn .65s cubic-bezier(.22, 1, .36, 1) both; transition: none; }
@keyframes agSheetIn {
  from { transform: translate(-50%, 10%) scale(1.07); opacity: 0; filter: blur(10px); }
  45%  { opacity: 1; }
  to   { transform: translate(-50%, 0) scale(1); opacity: 1; filter: blur(0); }
}
.ag-pop[hidden] { display: none; }
.rail, .main { transition: transform .65s cubic-bezier(.22, 1, .36, 1), filter .65s ease; }
body.agopen { overflow: hidden; } /* Voice 8: Seite hinter dem Chat gar nicht mehr scrollbar */
/* Scrim: unsichtbar (der Blur kommt von .rail/.main), aber faengt Pointer + Wheel + Touch */
.ag-scrim { display: none; position: fixed; inset: 0; z-index: 60; overscroll-behavior: contain; touch-action: none; }
body.agopen .ag-scrim { display: block; }
body.agopen .rail, body.agopen .main { transform: scale(.94); filter: blur(14px) brightness(.68); }
/* Offenes Agent-Popup: Create-FAB weicht (überlappt mobil sonst den Composer) */
body.agopen .cfab { display: none !important; }
/* Sandro R12: minimalistischer — keine Trennlinien, mehr Luft links/rechts (22px), Titel gestapelt */
.ag-head { display: flex; align-items: center; gap: 12px; padding: 20px 22px 10px; }
/* Sandro Voice 9: animierte Sphere im Chat-Kopf links neben Titel + Subline */
.ag-hsph { position: relative; width: 48.5px; height: 48.5px; flex: none; border-radius: 50%; overflow: hidden; } /* 42 +10% +5% (Sandro) */
.ag-ht { display: flex; flex-direction: column; gap: 3px; }
.ag-head b { font-size: 14px; letter-spacing: .01em; }
.ag-sub { color: var(--muted-2); font-size: 12px; }
.ag-x { margin-left: auto; opacity: .6; padding: 4px; } .ag-x:hover { opacity: 1; } .ag-x svg { width: 16px; height: 16px; }
.ag-body { flex: 1; overflow-y: auto; padding: 14px 22px 34px; display: flex; flex-direction: column; gap: 18px;
  /* Sandro Voice 4: unten weich ausfaden statt harter Kante ueber dem Composer */
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 56px), transparent 100%);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 56px), transparent 100%); }
.ag-m { max-width: 50%; padding: 19px 23px; border-radius: 24px; font-size: 13px; line-height: 1.5; }
/* Sandro Voice 5 (Telegram-Stil): AI-Antworten tragen links unten einen runden Avatar
   (Marken-Dreieck); Nachricht INSGESAMT (Avatar + Bubble) deckelt bei 50% (Voice 6). */
.ag-pop .ag-m.assistant { position: relative; margin-left: 44px; max-width: calc(50% - 44px); }
/* Voice 6: Avatar nur an der LETZTEN Bubble einer AI-Gruppe (wie Telegram) */
.ag-pop .ag-m.assistant:has(+ .ag-m.assistant)::before { content: none; }
/* Uhrzeit rechts unten in der Bubble + Datums-Trenner (Telegram-Stil) */
.ag-ts { float: right; margin: 10px -4px -4px 10px; font-size: 10.5px; color: var(--muted-2); }
.ag-m.user .ag-ts { color: rgba(233,238,252,.55); }
.ag-pop .ag-m.assistant .ag-ts { color: rgba(255,255,255,.45); }
.ag-daysep { align-self: center; flex: none; font-size: 11px; font-weight: 600; letter-spacing: .06em;
  color: var(--muted-2); background: rgba(255,255,255,.06); border-radius: 999px; padding: 4px 12px; margin: 6px 0 2px; }
.ag-pop .ag-m.assistant::before { content: ""; position: absolute; left: -44px; bottom: 0;
  width: 34px; height: 34px; border-radius: 50%;
  background: #232537 url(../img/mark.svg) center / cover no-repeat;
  box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.ag-m.assistant { background: var(--panel-2);  align-self: flex-start; }
.ag-m.user { background: rgba(53,208,197,.13);  align-self: flex-end; }
.ag-chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 22px 10px; }
.ag-foot { display: flex; gap: 8px; align-items: center; padding: 12px 22px 20px; }
.ag-foot input { flex: 1; background: var(--input); border-radius: 999px; padding: 12px 16px; font-size: 13px; }
.ag-foot input:focus-visible { outline: none; }
.ag-foot input::placeholder { transition: opacity 220ms ease, transform 220ms ease; }
.ag-foot input:focus::placeholder { opacity: 0; transform: translateX(6px); }
.ag-foot .btn-primary { width: 38px; height: 38px; min-width: 0; max-width: none; flex: none; margin: 0; padding: 0; border-radius: 50%; display: grid; place-items: center; } .ag-foot .btn-primary svg { width: 15px; height: 15px; }
@media (max-width: 640px) {
  .ag-pop { width: 100vw; height: 82vh; border-radius: 18px 18px 0 0; }
  /* Handy: 50% von 100vw waere unlesbar schmal — dort bleiben die Bubbles breiter */
  .ag-m { max-width: 86%; }
}

/* ---------- Kommentar-Screen (Figma comments.png) ---------- */
.cmts-screen { max-width: 620px; margin: 0 auto; padding-bottom: 88px; }
.cmts-head { display: flex; align-items: center; gap: 12px; padding: 6px 2px 18px; }
.cmts-back { width: 34px; height: 34px; display: grid; place-items: center; color: var(--ink); border-radius: 10px; }
.cmts-back:hover { background: var(--panel-2); }
.cmts-back svg { width: 22px; height: 22px; }
.cmts-title { flex: 1; text-align: center; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cmts-count { min-width: 30px; height: 26px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--ink); }
.cmt-row { display: flex; gap: 12px; padding: 15px 2px; border-bottom: 1px solid var(--line); }
.cmt-row:last-child { border-bottom: 0; }
.cmt-av { width: 40px; height: 40px; border-radius: 999px; object-fit: cover; flex: none; background: var(--panel-2); }
.cmt-main { min-width: 0; flex: 1; }
.cmt-top { display: flex; align-items: center; gap: 10px; }
.cmt-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.cmt-apx { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--teal); white-space: nowrap; }
.cmt-apx svg { width: 13px; height: 13px; stroke-width: 2.4; }
.cmt-text { font-size: 13.5px; color: #c2cad6; line-height: 1.55; margin-top: 4px; word-break: break-word; }
.cmt-foot { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.cmt-time { font-size: 11.5px; color: var(--muted-2); }
.cmt-reply { font-size: 12.5px; font-weight: 600; color: var(--teal); background: none; }
.cmt-reply:hover { color: var(--teal-deep); }
.cmts-composer { position: sticky; bottom: 14px; margin-top: 18px; display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 8px 8px 8px 18px; box-shadow: 0 8px 30px rgba(0,0,0,.35); }
.cmts-composer input { flex: 1; background: none; border: 0; color: var(--ink); font-size: 13.5px; outline: none; }
.cmts-send { width: 40px; height: 40px; flex: none; border-radius: 999px; background: var(--teal); color: #06322f; display: grid; place-items: center; transition: filter 130ms; }
.cmts-send:hover:not(:disabled) { filter: brightness(1.08); }
.cmts-send:disabled { opacity: .5; }
.cmts-send svg { width: 17px; height: 17px; }
.cmt-all { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 600; color: var(--teal); }
.cmt-all svg { width: 14px; height: 14px; }
.panel h3 { display: flex; align-items: center; }

/* Agent-Wahl (3 Agents: Kai/Nova/Atlas — SPEC-PRODUKT-V2) */
.ag-tabs { display: flex; gap: 6px; padding: 9px 12px 2px; }
.ag-tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 7px 4px;
   border-radius: 10px; background: var(--panel-2); cursor: pointer; transition: border-color .13s; }
.ag-tab b { font-size: 12.5px; }
.ag-tab span { font-size: 10px; color: var(--muted-2); letter-spacing: .04em; text-transform: uppercase; }
.ag-tab.on { background: rgba(53,208,197,.12); }
.ag-tab.on span { color: var(--teal); }

/* Proaktiver Concierge-Ping */
.ag-ping { position: fixed; left: 100px; bottom: 90px; width: 300px; max-width: calc(100vw - 32px);
  background: var(--panel);  border-radius: 14px; padding: 12px 14px;
  z-index: 59; box-shadow: 0 14px 40px rgba(0,0,0,.45); animation: pingIn .22s ease-out; }
.ag-ping[hidden] { display: none; }
/* Modal offen: schwebende Sphere/Pings dürfen nicht über dem Dialog liegen (Fang 19.07.) */
body.modalon #agFab, body.modalon .ag-ping, body.modalon .ag-pop { visibility: hidden; }
@keyframes pingIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.agp-who { font-size: 12px; color: var(--teal); letter-spacing: .05em; text-transform: uppercase; margin-bottom: 5px; }
.agp-who b { font-size: 12px; }
.agp-txt { font-size: 14px; line-height: 1.45; margin-bottom: 9px; }
.agp-btn { padding: 7px 14px; font-size: 12px; }
.agp-x { position: absolute; top: 8px; right: 8px; opacity: .6; }
.agp-x svg { width: 13px; height: 13px; }
/* Mobil: volle Breite ueber der FAB-Zone — die 300px-Box mitten im Content wirkte
   wie ein Fremdkoerper und deckte Post-Aktionen/Listzeilen ab (Polish 23.08.) */
@media (max-width: 640px) { .ag-ping { left: 12px; right: 12px; bottom: 86px; width: auto; max-width: none; } }

/* Coming-Views (Chat/Quests — ehrlicher Stand, SPEC-gebunden) */
.coming { max-width: 620px; margin: 40px auto 0; text-align: center; padding: 0 16px; }
.coming-ic { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 18px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(53,208,197,.18), rgba(53,208,197,.05));  }
.coming-ic svg { width: 30px; height: 30px; color: var(--teal); stroke-width: 1.8; }
.coming h1 { font-size: 26px; margin-bottom: 8px; }
.coming-sub { color: var(--muted); font-size: 14px; line-height: 1.55; margin-bottom: 22px; }
.coming-feats { display: grid; gap: 10px; text-align: left; margin-bottom: 22px; }
.cf-item { display: flex; align-items: center; gap: 12px; background: var(--panel); 
  border-radius: 13px; padding: 12px 14px; }
.cf-item > svg { width: 20px; height: 20px; color: var(--teal); stroke-width: 1.8; flex: none; }
.cf-item .cf-mark { flex: none; display: grid; place-items: center; color: var(--teal); font-size: 0; }
.cf-item .cf-mark svg { width: 20px; height: 20px; }
.cf-item b { font-size: 13.5px; display: block; }
.cf-item span { font-size: 12px; color: var(--muted-2); }

/* ---------- Quests / Challenges v1 (SPEC-PRODUKT-V2 §6) ---------- */
.q-screen { max-width: 720px; margin: 0 auto; padding-bottom: 88px; }
.q-hero { background: linear-gradient(135deg, rgba(53,208,197,.16), rgba(53,208,197,.04)); border: 1px solid rgba(53,208,197,.32); border-radius: 18px; padding: 20px 22px; margin-bottom: 16px; }
.q-hero-top { display: flex; align-items: center; gap: 12px; }
.q-hero-top h1 { font-size: 26px; margin: 0; }
.q-hero-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--teal); border: 1px solid rgba(53,208,197,.5); border-radius: 999px; padding: 3px 10px; }
.q-hero-badge svg { width: 13px; height: 13px; }
.q-hero-sub { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 8px 0 16px; }
.q-pool { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 13px; padding: 12px 16px; }
.q-pool-l { font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted-2); }
.q-pool-v { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; font-size: 18px; font-weight: 800; color: var(--ink); }
.q-pool-usd { flex-basis: 100%; text-align: right; font-size: 12px; font-weight: 600; color: var(--muted-2); }
.q-pool-v svg { width: 18px; height: 18px; color: var(--teal); }
.q-pool-v em, .q-reward em { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--teal); border: 1px solid rgba(53,208,197,.45); border-radius: 6px; padding: 1px 5px; margin-left: 3px; }
.q-notice { display: flex; gap: 10px; align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--teal); border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.q-notice svg { width: 18px; height: 18px; color: var(--teal); flex: none; margin-top: 1px; }
.q-notice b { color: var(--ink); }
/* Live-Variante: echte laufende Challenges -> gruener Akzent (ehrliches Live-Signal,
   deutlich vom teal Coming-Soon-Hinweis unterscheidbar). */
.q-notice--live { border-left-color: #3ddc84; }
.q-notice--live svg { color: #3ddc84; }
.q-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.q-tab { flex: 1; padding: 10px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel-2); font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer; transition: border-color .13s, color .13s; }
.q-tab.on { border-color: var(--teal); color: var(--teal); background: rgba(53,208,197,.10); }
.q-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.q-card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.q-cover { position: relative; aspect-ratio: 16 / 9; background: var(--panel-2); }
.q-cover-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.q-cover-ph { width: 100%; height: 100%; display: grid; place-content: center; justify-items: center; gap: 6px; background: linear-gradient(135deg, rgba(53,208,197,.10), rgba(53,208,197,.02)); color: var(--muted-2); }
.q-cover-ph svg { width: 26px; height: 26px; color: var(--teal); opacity: .7; }
.q-cover-ph span { font-size: 12px; font-weight: 600; }
.q-badge { position: absolute; top: 10px; left: 10px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(11,15,20,.62); border: 1px solid rgba(53,208,197,.28); backdrop-filter: blur(4px); }
.q-badge svg { width: 17px; height: 17px; color: var(--teal); stroke-width: 1.9; }
.q-body { padding: 13px 16px 15px; }
.q-title { font-size: 15px; font-weight: 700; color: var(--ink); }
.q-desc { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 3px 0 12px; }
.q-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.q-reward { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 5px; font-size: 14px; font-weight: 800; color: var(--ink); }
.q-reward svg { width: 15px; height: 15px; color: var(--teal); }
.q-reward-usd { flex-basis: 100%; font-size: 11px; font-weight: 600; color: var(--muted-2); }
.q-join { padding: 8px 16px; border-radius: 10px; font-size: 13px; font-weight: 600; background: var(--panel-2); border: 1px solid var(--line); color: var(--muted-2); cursor: not-allowed; }
.q-join:disabled { opacity: .7; }
.q-ask { margin: 18px auto 0; display: block; }
@media (max-width: 560px) { .q-hero { padding: 16px; } .q-pool { flex-direction: column; align-items: flex-start; gap: 4px; } }

/* Topbar-Glocke -> Mitteilungen (Notifications ist kein Rail-Tab mehr) */
.tb-bell { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: var(--muted); border: 1px solid var(--line); background: var(--panel-2); transition: color 130ms, border-color 130ms; }
.tb-bell:hover { color: var(--teal); border-color: var(--teal-deep); }
.tb-bell svg { width: 19px; height: 19px; }

/* Messenger M1 (SPEC-MESSENGER-V2) */
/* Sandro R8: Spalte breiter (300 -> 340), Chat als Block ZENTRIERT im View statt oben angeklebt */
.chat-wrap { display: grid; grid-template-columns: 380px 1fr; gap: 14px; height: calc(100vh - 220px); min-height: 460px; max-width: 1180px; margin: calc(3vh + 30px) auto 0; } /* Sandro R12: +30px oben; R13: linke Box breiter */
.ch-side { background: var(--panel);  border-radius: var(--radius); overflow-y: auto; }
.ch-side-h { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 6px; }
.ch-side-h h2 { font-size: 17px; }
.ch-lab { padding: 8px 12px 4px; }
.ch-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 9px 12px;  }
.ch-item:hover { background: var(--panel-2); }
.ch-item.on { background: var(--panel-2); }
.ch-item img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: none; }
.ch-av-ag { width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(53,208,197,.25), rgba(53,208,197,.06));  }
.ch-av-ag svg { width: 17px; height: 17px; color: var(--teal); stroke-width: 2; }
.ch-it { min-width: 0; flex: 1; }
.ch-it b { display: block; font-size: 13.5px; margin-bottom: 4px; } /* Sandro R12: mehr Luft Name->Vorschau */
.ch-it span { display: block; font-size: 11.5px; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-unread { background: var(--teal); color: #06251f; font-size: 11px; font-weight: 700; min-width: 19px; height: 19px;
  border-radius: 10px; display: grid; place-items: center; padding: 0 5px; flex: none; }
.ch-empty { padding: 14px 12px; font-size: 12.5px; color: var(--muted-2); line-height: 1.5; }
.ch-main { background: var(--panel);  border-radius: var(--radius); display: flex; flex-direction: column; overflow: hidden; }
.ch-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.ch-who b { font-size: 14.5px; display: block; }
.ch-who span { font-size: 11.5px; color: var(--muted-2); }
.ch-live { margin-left: auto; font-size: 10px; letter-spacing: .08em; color: var(--teal);
  background: rgba(53,208,197,.12); border-radius: 7px; padding: 3px 7px; }
.ch-back { display: none; opacity: .7; } .ch-back svg { width: 16px; height: 16px; }
.ch-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.ch-st { font-size: 10px; opacity: .65; margin-left: 7px; }
.ch-foot { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); align-items: center; }
.ch-foot input { flex: 1; background: var(--input); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; }
/* Input+Mikro-Wrapper (Sandro R4): Wrapper uebernimmt das flex:1 des Inputs */
.ch-foot .ch-inwrap { flex: 1; min-width: 0; position: relative; display: flex; }
.ch-foot .ch-inwrap input { width: 100%; }
.ch-foot .btn-primary { width: 38px; height: 38px; min-width: 0; max-width: none; flex: none; margin: 0; padding: 0; border-radius: 50%; display: grid; place-items: center; } .ch-foot .btn-primary svg { width: 16px; height: 16px; }
.ch-mic { position: static; width: 38px; height: 38px; border-radius: 50%; background: var(--input); display: grid; place-items: center; flex: none; }
.ch-mic svg { width: 17px; height: 17px; }
.ch-mic.rec { border-color: #e5484d; color: #e5484d; animation: pingIn 1s infinite alternate; }
.ch-picker { max-height: 320px; overflow-y: auto; margin: 8px 0;  border-radius: 12px; }
@media (max-width: 820px) {
  .chat-wrap { grid-template-columns: 1fr; height: calc(100vh - 200px); }
  .ch-main { display: none; }
  .chat-wrap.conv-on .ch-main { display: flex; }
  .chat-wrap.conv-on .ch-side { display: none; }
  .ch-back { display: block; }
}

/* Hivemind — bis zu 3 Agents pro Aufgabe aktivieren (Winchester 18.07.) */
.hv-bar { display: flex; gap: 8px; align-items: stretch; padding: 10px 22px 8px; flex-wrap: wrap; } /* Sandro R12: Linie raus, 22px-Raster */
.ch-hvwrap { flex: none; }
.ch-agmark svg { width: 11px; height: 11px; color: var(--teal); vertical-align: -1px; }
.hv-chip { flex: 1; min-width: 86px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 4px 8px;
   border-radius: 13px; background: var(--panel-2); cursor: pointer; transition: border-color .13s, box-shadow .13s; }
.hv-chip b { font-size: 12.5px; }
.hv-chip span { font-size: 9.5px; color: var(--muted-2); letter-spacing: .05em; text-transform: uppercase; }
.hv-chip em { font-style: normal; font-size: 9px; letter-spacing: .09em; margin-top: 3px; padding: 2px 7px;
  border-radius: 7px; background: var(--input); color: var(--muted-2); }
.hv-chip.on { background: rgba(53,208,197,.12); box-shadow: 0 0 0 1.5px rgba(53,208,197,.5), 0 0 14px rgba(53,208,197,.14); }
.hv-chip.on em { border-color: rgba(53,208,197,.55); color: var(--teal); background: rgba(53,208,197,.10); }
.hv-count { align-self: center; font-size: 11px; color: var(--teal); font-weight: 700; min-width: 26px; text-align: center; }
.ag-src { display: block; font-size: 9.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--teal); margin-bottom: 3px; }
.ag-m.a-creative .ag-src { color: #b98aff; }
.ag-m.a-strategy .ag-src { color: #ffd166; }
/* Sandro 24.08. (Voice 7): zurueck auf dunkle Bubbles — Grund 10% Weiss, Text 80% Weiss,
   Innenleben (Label/Links/Buttons/Zeit) auf dunklen Grund abgestimmt */
.ag-pop .ag-m.assistant { background: rgba(255,255,255,.08); color: rgba(255,255,255,.80); border-radius: 24px 24px 24px 6px; }
/* Voice 10: rechts dieselbe Ecken-Logik gespiegelt (kleine Ecke unten aussen) */
.ag-pop .ag-m.user { border-radius: 24px 24px 6px 24px; }
.ag-pop .ag-m.assistant .ag-src { color: rgba(255,255,255,.55); }
.ag-pop .ag-m.assistant a { color: var(--mint); }
.ag-pop .ag-m.assistant .msg-dock, .ag-pop .ag-m.assistant .msg-say { color: rgba(255,255,255,.75); background: rgba(255,255,255,.08); }

/* Chat-Medien (Bilder + Sprachnachrichten, SPEC-MESSENGER-V2 §3/§4) */
.ag-m.has-img { padding: 5px; background: transparent; }
.ch-img { max-width: 280px; max-height: 320px; border-radius: 11px; display: block; }
.ch-vid { max-width: 300px; max-height: 340px; border-radius: 11px; display: block; background: #000; }
.ch-audio { width: 240px; height: 38px; display: block; }
.ch-tr { margin-top: 6px; font-size: 12px; }
.ch-tr summary { cursor: pointer; color: var(--teal); font-size: 11px; letter-spacing: .04em; }
.ch-tr[open] { color: var(--muted); }

/* Video-Titelbild-Picker (Winchester 18.07.: erster Frame oft dunkel) */
.thumb-prev { margin: 8px 0; }
.thumb-prev img { max-width: 200px; border-radius: 10px; box-shadow: 0 0 0 2px var(--teal); display: block; }

/* Sign-in-Pill (28.07.): nur sichtbar solange KEIN echter Login — Einstieg war sonst versteckt */
.tb-signin { display: flex; align-items: center; padding: 8px 16px; border-radius: 999px;
  background: #fff; color: #15151c; font-size: 14px; font-weight: 700; text-decoration: none;
  transition: filter .13s; }
.tb-signin:hover { filter: brightness(0.94); }
/* Topbar-APX-Chip — lebt jetzt IM Avatar-Pill .tb-acct (Sandro 18.07.) */
.tb-apx { display: flex; align-items: center; gap: 6px; padding: 7px 12px;
  border-radius: 20px;
  font-size: 12px; color: var(--text); text-decoration: none; transition: background .13s; }
.tb-apx:hover { background: rgba(53,208,197,.16); }
/* Sandro R12: kein Logo in der Pill — Betrag im Logo-Tuerkis, "APX" daneben reicht */
.tb-apx b { color: var(--brandteal); }
@media (max-width: 640px) { .tb-acct { display: none; } }

/* Gruppen-Picker (Mehrfachauswahl, Winchester 18.07.) */
.ch-picker .ch-item { position: relative; }
.ch-check { width: 20px; height: 20px; border-radius: 50%; background: var(--input); flex: none;
  display: grid; place-items: center; opacity: .55; }
.ch-check svg { width: 11px; height: 11px; }
.ch-picker .ch-item.on .ch-check { background: var(--teal); color: #06251f; opacity: 1; }
#grpRow { margin-top: 10px; }

/* ---------- Create-Hub (Winchester-GO 18.07., Konzept = alte APPICS-App):
   Plus in der Rail / teal Logo-FAB unten Mitte (mobil) faechert 5 Create-Aktionen
   im Bogen auf. Feder-Animation gestaffelt (transition-delay inline), Backdrop dimmt.
   Positionen (--tx/--ty) setzt bindHub() aus dem Anker-Rect. ---------- */
.chub { position: fixed; inset: 0; z-index: 90; } /* Ebene UEBER der Bar (Sandro 19.07.) — Dim blurrt die Rail mit aus */
.chub[hidden] { display: none; }
.chub-dim { position: absolute; inset: 0; background: rgba(5,7,16,.55); backdrop-filter: blur(7px); opacity: 0; transition: opacity 280ms ease; }
.chub.open .chub-dim { opacity: 1; }
/* Item = 0x0-ANKER exakt auf dem Bogen — Icon absolut zentriert, Label radial aussen.
   So bleibt der Kreis-Mittelpunkt mathematisch auf dem Bogen, egal wie lang das Label ist. */
.chub-it {
  position: fixed; width: 0; height: 0; padding: 0; border: 0; background: none; overflow: visible;
  transform: translate(0, 0) scale(.3); opacity: 0; will-change: transform;
  transition: transform 420ms cubic-bezier(.3, 1.34, .42, 1) var(--d, 0ms), opacity 200ms ease var(--d, 0ms);
}
.chub.open .chub-it { transform: translate(var(--tx, 0px), var(--ty, 0px)) scale(1); opacity: 1; }
/* Schliessen: snappy zurueck, ohne Stagger */
.chub:not(.open) .chub-it { transition: transform 200ms cubic-bezier(.45, 0, .7, 1), opacity 150ms ease; }
.chub-ic {
  position: absolute; left: -27px; top: -27px; width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(35, 37, 55, .92); color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .07);
  backdrop-filter: blur(6px);
  transition: transform 140ms ease, background 140ms ease, box-shadow 140ms ease;
}
.chub-ic svg { width: 24px; height: 24px; stroke-width: 1.8; }
.chub-it:hover .chub-ic, .chub-it:focus-visible .chub-ic {
  background: #383a52; transform: scale(1.09);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .55), 0 0 0 1.5px rgba(125, 233, 214, .55), 0 0 18px rgba(125, 233, 214, .25);
}
.chub-lb {
  position: absolute; left: 0; top: 0;
  /* Nahkante des Labels liegt IMMER bei LR vom Kreis-Mittelpunkt — egal in welche Richtung
     (die 50%-Terme schieben die Label-Box richtungsabhaengig aus dem Kreis heraus) */
  transform: translate(calc(-50% + var(--lx, 0px) + var(--cx1, 0) * 50%), calc(-50% + var(--ly, 0px) + var(--sy1, 0) * 50%));
  font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .9); letter-spacing: .01em;
  opacity: 0; transition: opacity 240ms ease calc(var(--d, 0ms) + 230ms);
}
.chub.open .chub-lb { opacity: 1; }
.chub:not(.open) .chub-lb { transition: opacity 100ms ease; }
/* Schliessen-Button im Layer (ersetzt Plus->X-Morph — Bar liegt jetzt unterm Dim) */
.chub-x {
  position: fixed; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 18px;
  background: #fff; color: #14141e; display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
  transform: scale(.4) rotate(-90deg); opacity: 0;
  transition: transform 320ms cubic-bezier(.3, 1.34, .42, 1), opacity 180ms ease, background 130ms;
}
.chub-x svg { width: 22px; height: 22px; }
.chub-x:hover { background: #e6e8f2; }
.chub.open .chub-x { transform: scale(1) rotate(0deg); opacity: 1; }
/* Mobiler Center-FAB = teal APPICS-Logo wie in der alten App (Brand-Kontinuitaet).
   margin-left statt translateX zum Zentrieren — transform gehoert der Open-Rotation. */
.cfab { display: none; }
@media (max-width: 640px) {
  .cfab {
    display: grid; place-items: center; position: fixed; left: 50%; bottom: 16px;
    margin-left: -29px; width: 58px; height: 58px; border-radius: 50%; z-index: 71;
    background: #7de9d6; color: #0c2320;
    box-shadow: 0 10px 30px rgba(125, 233, 214, .4), 0 4px 14px rgba(0, 0, 0, .5);
    transition: transform 420ms cubic-bezier(.3, 1.34, .42, 1), box-shadow 300ms ease;
  }
  .cfab svg { width: 30px; height: 30px; }
  .cfab.open { transform: rotate(180deg) scale(1.06); box-shadow: 0 10px 34px rgba(125, 233, 214, .55), 0 4px 14px rgba(0, 0, 0, .5); }
}
/* (Labels haengen jetzt radial aussen — die alte column-reverse-Kruecke ist weg.) */

/* ---------- Challenges auf Discover (Sandro R11 20.07.): erste Reihe im Post-Bereich,
   horizontal wischbar, Kacheln im Post-Format (3:4, Radius wie .mitem) ---------- */
.chal-strip { display: flex; gap: 16px; overflow-x: auto; margin-bottom: 16px;
  scrollbar-width: none; scroll-snap-type: x proximity; }
.chal-strip::-webkit-scrollbar { display: none; }
.chal-strip:empty { display: none; }
/* Winchester 16.08.: Kacheln QUADRATISCH (Hoehe = Breite) statt 3:4 */
.chs-card { position: relative; flex: none; width: calc((100% - 48px) / 4); aspect-ratio: 1 / 1;
  border-radius: 14px; overflow: hidden; background: var(--panel-2); display: block; scroll-snap-align: start; }
.chs-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: filter 150ms ease; }
.chs-card:hover > img { filter: brightness(1.12); }
.chs-ov { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; flex-direction: column;
  align-items: flex-start; gap: 9px; padding: 48px 14px 14px;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.62)); }
.chs-ov b { color: #fff; font-size: 15px; font-weight: 700; }
/* Preis-Chip: Blur-Pille, Betrag NICHT fett, Padding allseitig gleich (Sandro R12) */
.chs-chip { padding: 8px; border-radius: 999px; background: rgba(0, 0, 0, .3);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  color: #fff; font-size: 11px; font-weight: 500; letter-spacing: .12em; }
/* Karte 1: Intro — Titel gross+weiss, 2-zeiliger Body, Leaderboard unten mit 20px Abstand (Sandro R12) */
/* Winchester 17.08.: Sandros Kanon-Mark als Wasserzeichen — Polish 23.08.: vom ::before
   (ragte 72px unter die Karte => scrollHeight-Fehlalarm der Probe) auf eine echte
   background-Ebene umgezogen; Opacity .16 ist jetzt in die SVG gebacken. Pixel-identisch. */
.chs-intro { display: flex; flex-direction: column; align-items: center; padding: 18px 16px 0;
  background: var(--panel) url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="7.9 8.7 24.2 22.6" fill="none"%3E%3Cpath d="M15.6095 12.37C17.5591 8.9931 22.4332 8.9931 24.3829 12.37L30.2688 22.5647C32.2184 25.9416 29.7814 30.1626 25.8821 30.1626H14.1102C10.2262 30.1626 7.793 25.9745 9.7009 22.6043L9.7236 22.5647L15.6095 12.37Z" stroke="%2388E0E1" stroke-opacity="0.16" stroke-width="2.05" stroke-linejoin="round"/%3E%3C/svg%3E') right -32% bottom -26% / 118% auto no-repeat; }
/* Winchester 17.08. Test: Beat-Loop-Video fuellt die Karte (cover, quadratische Quelle),
   Scrim dunkelt fuer Titel/CTA ab; das Mark-Wasserzeichen bleibt als Fallback bis das Video laeuft */
.chs-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.chs-vidscrim { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(8,10,14,.58), rgba(8,10,14,.30) 46%, rgba(8,10,14,.66)); }
.chs-mid, .chs-cta { position: relative; z-index: 1; }
/* max-width: align-items:center macht chs-mid max-content-breit — auf Mobil (Kachel ~170px)
   ragte der einzeilige Sub sonst LINKS+RECHTS aus der Karte (Polish-Pass 22.07.) */
.chs-mid { margin: auto 0; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; max-width: 100%; }
/* Sandro R13: Titel einen Tick kleiner, Sub strikt EINZEILIG, Leaderboard weniger fett + Pfeil groesser */
.chs-t { font-size: 16px; font-weight: 800; letter-spacing: .09em; color: #fff; }
.chs-sub { font-size: 12px; line-height: 1.5; color: var(--muted); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Sandro 16.08. nachts: EIN CTA statt drei Links — Mint-Pille mit Glow, Pfeil rutscht beim Hover */
.chs-cta { display: flex; align-items: center; justify-content: center; gap: 9px; align-self: stretch;
  margin: 0 0 14px; padding: 11px 16px; border-radius: 999px;
  background: linear-gradient(135deg, var(--mint), var(--teal)); color: #0d2a24;
  font-size: 13.5px; font-weight: 700; text-decoration: none;
  box-shadow: 0 8px 22px rgba(53, 208, 197, .28), inset 0 1px 0 rgba(255, 255, 255, .4);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease; }
.chs-cta svg { width: 17px; height: 17px; transition: transform 220ms cubic-bezier(.3, 1.2, .4, 1); }
.chs-cta:hover { transform: translateY(-1px); filter: brightness(1.04);
  box-shadow: 0 12px 28px rgba(53, 208, 197, .4), inset 0 1px 0 rgba(255, 255, 255, .4); }
.chs-cta:hover svg { transform: translateX(3px); }
.chs-cta:active { transform: translateY(0); }
.chs-new { display: grid; place-items: center; align-content: center; gap: 6px;
  border: 1.5px dashed rgba(255,255,255,.22); color: var(--muted); font-size: 12.5px;
  font-weight: 600; text-align: center; background: transparent; cursor: pointer; }
.chs-new:hover { color: var(--teal); border-color: var(--teal); }
.chal-plus { font-size: 26px; line-height: 1; }
@media (max-width: 640px) { .chs-card { width: calc((100% - 16px) / 2); } }

/* ---------- Quests = Challenges v1 (SPEC-PRODUKT-V2 §6) ---------- */
.q-pool { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 18px; background: linear-gradient(120deg, rgba(53,208,197,.12), var(--panel)); border: 1px solid rgba(53,208,197,.22); margin-bottom: 16px; }
.q-pool-ic { width: 44px; height: 44px; border-radius: 12px; background: rgba(53,208,197,.16); display: grid; place-items: center; flex: none; }
.q-pool-ic svg { width: 24px; height: 24px; color: var(--teal); }
.q-pool-body { flex: 1; min-width: 0; }
.q-pool-lab { font-size: 12px; color: var(--muted); }
.q-pool-val { font-size: 22px; font-weight: 800; }
.q-pool-val i { font-size: 13px; font-weight: 700; color: var(--teal); font-style: normal; }
.q-pool-usd { font-size: 12px; color: var(--muted); margin-top: 1px; }
.q-preview-badge { flex: none; padding: 4px 10px; border-radius: 999px; background: rgba(10,14,18,.5); color: var(--muted); font-size: 11px; font-weight: 600; }
.q-soon { display: flex; gap: 14px; padding: 15px 17px; border-radius: 16px; background: var(--panel); margin-bottom: 22px; }
.q-soon svg { width: 22px; height: 22px; color: var(--teal); flex: none; margin-top: 2px; }
.q-soon b { display: block; font-size: 14px; margin-bottom: 3px; }
.q-soon p { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.q-soon code { font-family: ui-monospace, monospace; font-size: 11.5px; color: var(--teal); }
.q-sect { margin-bottom: 26px; }
.q-sect-h { font-size: 15px; font-weight: 700; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.q-sect-h svg { width: 18px; height: 18px; color: var(--teal); }
.q-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.q-card { position: relative; border-radius: 16px; overflow: hidden; background: var(--panel); border: 1px solid rgba(255,255,255,.06); display: flex; flex-direction: column; }
.q-cover { width: 100%; height: 132px; object-fit: cover; display: block; }
.q-cover-ph { display: grid; place-items: center; align-content: center; gap: 6px; color: var(--muted); background: var(--panel-2); font-size: 11.5px; }
.q-cover-ph svg { width: 26px; height: 26px; color: rgba(255,255,255,.28); }
.q-cad { position: absolute; top: 10px; left: 10px; padding: 3px 9px; border-radius: 999px; background: rgba(10,14,18,.72); color: #dfe3f0; font-size: 11px; font-weight: 600; }
.q-example { position: absolute; top: 10px; right: 10px; padding: 3px 9px; border-radius: 999px; background: rgba(53,208,197,.16); color: var(--teal); font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.q-time { position: absolute; top: 108px; right: 10px; padding: 3px 9px; border-radius: 999px; background: rgba(10,14,18,.78); color: var(--teal); font-size: 11px; font-weight: 700; }
.q-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.q-title { font-size: 15px; font-weight: 700; }
.q-desc { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.q-prize { display: flex; align-items: center; gap: 5px; font-size: 13px; margin-top: auto; }
.q-prize svg { width: 15px; height: 15px; color: var(--teal); }
.q-prize b { color: var(--teal); }
.q-prize-usd { color: var(--muted); font-size: 11.5px; }
.q-enter { margin-top: 4px; padding: 9px 12px; border-radius: 11px; border: none; background: var(--teal); color: #06201d; font-size: 13px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; transition: filter 130ms; }
.q-enter svg { width: 15px; height: 15px; }
.q-enter:hover { filter: brightness(1.08); }
.q-enter-off { background: var(--panel-2); color: var(--muted); cursor: not-allowed; }
.q-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 6px; }
.q-pick-i { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--panel-2); cursor: pointer; aspect-ratio: 1; }
.q-pick-i img { width: 100%; height: 100%; object-fit: cover; display: block; }
.q-pick-i:hover { border-color: var(--teal); }
@media (max-width: 640px) { .q-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } }

/* ---------- Aktivitäten = Notifications (Sandro 18.07.) ---------- */
/* Sandro 20.07.: Kopfzeile ohne Subline, rechts Filter-Dropdown (Alle/Follow/Rewards/Comments) */
/* Winchester 13.08.: Activity war unruhig — abgeschnittene Kachel-Texte, zwei Bauformen
   oben rechts, halbleere Spalte. Jetzt: breitere Spalte, EINE Bedienhoehe (40px),
   3 Schriftgroessen + Headline (UI-LAWS 2/9), Tagestrenner mit Linie. */
/* padding statt margin: ein margin-top am .act-head kollabiert mit der Spalte und
   waere wirkungslos (gemessen 13.08.: 48 -> 52 statt 76). */
.act-col { max-width: 860px; padding-top: 26px; }
/* Die Topbar-Kontogruppe haengt aus ihrer 0-hohen Zeile heraus (bis y=65) — mit der
   breiteren Spalte stiess "Mark all read" sonst dagegen; Luft macht .act-col (padding). */
.act-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 2px 0 20px; }
.act-head .page-h { margin: 0; font-weight: 700; } /* Sandro R18: ein Tick weniger fett */
/* Filter = kanonische .seg-Komponente (UI-LAWS 1), Hintergrund wie im Creator Lab
   (UI-LAWS 10: rgba(255,255,255,.05)) — nicht breiter als noetig (UI-LAWS 7). */
.act-seg.seg { padding: 4px; background: rgba(255,255,255,.05); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.act-seg.seg::-webkit-scrollbar { display: none; }
.act-seg .seg-tab { flex: none; height: 32px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; white-space: nowrap; }
.act-hint { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--panel); margin-bottom: 18px; transition: background 130ms; }
.act-hint:hover { background: var(--panel-2); }
.act-hint svg { width: 22px; height: 22px; color: #88E0E1; flex: none; }
.act-hint b { display: block; font-size: 14px; }
.act-hint span { font-size: 12.5px; color: var(--muted); }
/* Winchester 13.08.: Zeilen waren zu luftig — dichterer Rhythmus (Pitch 64 statt 76px) */
.act-item { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-radius: 12px; margin-bottom: 6px; background: var(--panel); transition: background 130ms; }
.act-item.new { background: var(--panel-2); box-shadow: inset 2px 0 0 #88E0E1; }
.act-av { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; }
.sect-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.sect-head .sect-label { margin-bottom: 0; }
/* dezent (Winchester/Sandro 19.07.): kein weisser Pill — ruhiger Text-Button, wird erst bei Hover praesent */
.chal-newbtn { background: none; color: var(--muted); font-weight: 600; font-size: 12px; letter-spacing: .04em; border-radius: 999px; padding: 6px 12px; transition: color 130ms, background 130ms, transform 130ms; }
.chal-newbtn:hover { color: var(--ink); background: rgba(255,255,255,.06); }
.chal-newbtn:active { transform: scale(.985); }
.act-item:hover { background: var(--panel-2); }
.act-ic { width: 36px; height: 36px; border-radius: 50%; background: rgba(136,224,225,.14); display: grid; place-items: center; flex: none; }
.act-ic svg { width: 16px; height: 16px; color: #88E0E1; }
.act-tx { flex: 1; font-size: 14px; min-width: 0; }
/* Sandro R18: Zeitzeile 1px mehr Abstand */
.act-t { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.act-th { width: 40px; height: 50px; border-radius: 9px; object-fit: cover; flex: none; }

/* ---------- Activity Konzept B "Hub Cards" (Winchester 27.07.): 2 flache Feature-Karten,
   Tagesgruppen TODAY/YESTERDAY, Mark all read ---------- */
.act-tools { display: flex; align-items: center; gap: 8px; min-width: 0; }
/* Sandro 24.08.: Filter-Dropdown mit Checkboxen (ersetzt die Tab-Leiste) */
.act-dd { position: relative; }
.act-ddbtn { height: 40px; padding: 0 16px; border-radius: 999px; background: rgba(255,255,255,.05);
  color: var(--ink); font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer; transition: background 130ms; }
.act-ddbtn:hover { background: rgba(255,255,255,.09); }
.act-ddbtn svg { width: 14px; height: 14px; transition: transform 160ms ease; }
.act-dd.open .act-ddbtn svg { transform: rotate(180deg); }
.act-ddmenu { position: absolute; right: 0; top: 46px; z-index: 30; min-width: 216px;
  background: var(--panel-2); border-radius: 16px; padding: 10px;
  box-shadow: 0 14px 40px rgba(0,0,0,.45); }
.act-ddrow { display: flex; align-items: center; gap: 12px; padding: 12px 12px; border-radius: 12px;
  font-size: 14px; cursor: pointer; }
.act-ddrow:hover { background: rgba(255,255,255,.06); }
/* Voice 6: Checkboxen eigene Optik — runder, groesser, EXAKT der Logo-Tuerkis (#88E0E1
   wie das Mark oben links), nicht mehr --teal */
.act-ddrow input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; flex: none;
  border-radius: 7px; border: 1.5px solid rgba(255,255,255,.28); background: transparent;
  display: grid; place-items: center; cursor: pointer; transition: background 120ms, border-color 120ms; }
.act-ddrow input:checked { background: #88E0E1; border-color: #88E0E1; }
.act-ddrow input:checked::after { content: ""; width: 5px; height: 9px; margin-top: -2px;
  border: solid #10131c; border-width: 0 2px 2px 0; transform: rotate(45deg); }
/* Erzeugungs-Bild sitzt LINKS als Avatar-Ersatz (eckig-rund statt Kreis) */
.act-avimg { border-radius: 10px; }
/* Gleiche Bauform + gleiche Hoehe (40px) wie der Segmented-Filter daneben */
.act-mar { flex: none; height: 40px; padding: 0 16px; border: 0; border-radius: 999px;
  background: rgba(255,255,255,.05); color: var(--muted); font-size: 14px; font-weight: 500;
  font-family: inherit; white-space: nowrap; cursor: pointer; transition: color 130ms, background 130ms; }
.act-mar.has { color: var(--mint); }
.act-mar:hover { background: rgba(255,255,255,.09); color: var(--ink); }
.hub-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 6px; }
/* Beide Kacheln gleich hoch (Grid streckt) und gleich aufgebaut: Icon · Titel+Subline · Ende */
.hub-card { display: flex; align-items: center; gap: 12px; min-height: 68px; background: var(--panel); border-radius: 14px; padding: 12px 14px; transition: background 130ms; }
.hub-card:hover { background: var(--panel-2); }
.hc-ic { width: 40px; height: 40px; border-radius: 12px; background: rgba(53,208,197,.13); display: grid; place-items: center; flex: none; }
.hc-ic svg { width: 19px; height: 19px; color: var(--mint); }
.hc-tx { flex: 1; min-width: 0; }
.hc-tx b { display: block; color: #fff; font-size: 14px; font-weight: 600; line-height: 1.25; }
/* KEIN nowrap/ellipsis mehr (Winchester 13.08.: Text wurde an der Kachelkante abgeschnitten) */
.hc-tx i { display: block; font-style: normal; color: var(--muted); font-size: 12px; line-height: 1.3; margin-top: 3px; }
.hc-end { display: flex; align-items: center; gap: 10px; flex: none; }
/* Echte Ticketzahl aus /spin/state; ohne Zahl bleibt die Plakette aus (kein Platzhalter) */
.hc-badge { font-size: 12px; font-weight: 600; color: var(--mint); background: rgba(169,243,225,.12);
  border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.hc-badge[hidden] { display: none; }
/* ic() liefert SVGs ohne width/height — ohne diese Regel blaeht sich der Pfeil auf Kartengroesse (Bugklasse 27.07.) */
.hc-end > svg { width: 16px; height: 16px; flex: none; color: var(--muted); }
/* Tagestrenner bekommt Halt: Label + durchgezogene Haarlinie bis zur Spaltenkante */
.act-day { display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 700;
  letter-spacing: .14em; color: var(--muted); margin: 20px 2px 10px; }
.act-day::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.act-day:first-child { margin-top: 14px; }
.act-tm { flex: none; font-size: 12px; color: var(--muted); margin-left: 8px; white-space: nowrap; }
@media (max-width: 640px) {
  .hub-cards { grid-template-columns: 1fr; }
  .act-col { padding-top: 4px; }
  /* Mobil: Titel + "Mark all read" in Zeile 1, der Umschalter darunter in voller
     Lesbarkeit (kein Scroll-Versteck fuer den 4. Tab), aber nicht ueber die volle
     Breite (UI-LAWS 7). display:contents hebt .act-tools ins Grid. */
  .act-head { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; }
  .act-tools { display: contents; }
  .act-head .page-h { grid-area: 1 / 1; }
  .act-dd { grid-area: 1 / 2; justify-self: end; }
  .act-seg.seg { grid-area: 2 / 1 / 3 / -1; justify-self: stretch; width: 100%;
    /* Fade am rechten Rand signalisiert: hier geht es weiter (Polish 23.08.) —
       vorher schnitt der Viewport den letzten Tab mitten im Wort ab. */
    -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent); mask-image: linear-gradient(90deg, #000 90%, transparent); }
  .act-seg .seg-tab { padding: 0 11px; }
}

/* ---------- Messenger-Sidebar: Freunde-Row + Suche + Agents/Groups-Switch (Sandro 18.07.) ---------- */
/* .ch-friends/.ch-fr (Freunde-Row) entfernt — Sandro R8: Suche steht oben */
/* Sandro R18: Suche 2px weiter runter */
.ch-search { position: relative; display: flex; align-items: center; gap: 8px; margin: 10px 12px 4px; padding: 11px 14px; border-radius: 14px; background: var(--input); }
.ch-search svg { width: 15px; height: 15px; color: var(--muted); flex: none; }
.ch-search input { flex: 1; font-size: 13px; }
/* Sandro R12: gleiche Such-Mechanik wie Discovery — Placeholder fadet, Flyout mit Vorschlaegen */
.ch-search input:focus-visible { outline: none; }
.ch-search input::placeholder { transition: opacity 220ms ease, transform 220ms ease; }
.ch-search input:focus::placeholder { opacity: 0; transform: translateX(6px); }
.ch-fly { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 30; }
/* ---- Sandro-Mockup 19.07. (photo_1784453802): linke Chat-Spalte ---- */
/* Ambient-Glow oben (Sphere-Stimmung); Background des Scroll-Containers scrollt nicht mit */
.ch-side {
  position: relative;
  display: flex; flex-direction: column; /* Sandro R13: FAB via margin-top:auto IMMER am Boden der Box */
  background: radial-gradient(420px 200px at 82% -70px, rgba(88, 76, 255, .30), transparent 70%),
              radial-gradient(360px 180px at 18% -80px, rgba(0, 184, 199, .16), transparent 70%),
              var(--panel);
}
.ch-side > * { flex: none; }
/* Karten-Band: Hive/Agents bzw. Gruppen als quadratische Cards */
.ch-cards { display: flex; gap: 12px; padding: 8px 12px 4px; overflow-x: auto; scrollbar-width: none; }
.ch-cards::-webkit-scrollbar { display: none; }
.ch-card { flex: none; width: 104px; text-align: left; padding: 0; }
.ch-card .cc-art {
  position: relative; display: grid; place-items: center; width: 104px; height: 104px;
  border-radius: 20px; overflow: hidden; color: #fff; font-size: 30px; font-weight: 800;
  transition: filter 130ms, transform 130ms;
}
.ch-card:hover .cc-art { filter: brightness(1.12); }
.ch-card.on .cc-art, .ch-card:active .cc-art { transform: scale(.97); }
.ch-card b { display: block; font-size: 13px; margin: 7px 0 1px; }
.ch-card > span:last-child { display: block; font-size: 11.5px; color: var(--muted); }
.cc-hive .sph-vid { border-radius: 0; }
.cc-hive { background: #101322; }
.cc-grp { background: var(--panel-2); }
.cc-grp svg { width: 34px; height: 34px; color: var(--teal); stroke-width: 1.6; }
/* Sandro R12: leerer Gruppen-Slot als Card (gestrichelt) statt Text */
.cc-new { background: transparent; border: 1.5px dashed rgba(255,255,255,.22); color: var(--muted); border-radius: 20px; }
.cc-new svg { width: 26px; height: 26px; }
.ch-card-new:hover .cc-new { color: var(--teal); border-color: var(--teal); filter: none; }
/* Sandro R18: "Neue Gruppe" zentriert zur Box + 2px weiter runter */
.ch-card-new b { text-align: center; margin: 9px 0 1px; }
.cc-badge {
  position: absolute; right: 7px; bottom: 7px; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px; background: #3f5bff; color: #fff; font-size: 12px; font-weight: 700;
  display: grid; place-items: center;
}
/* Gruppen-Einladung (Winchester 20.08.): kein Auto-Add — Karte fragt Join oder Decline */
.gi-card { cursor: default; }
.gi-card .cc-art { outline: 1.5px dashed rgba(53, 208, 197, .5); outline-offset: -1.5px; }
.gi-card > span:nth-of-type(2) { display: block; font-size: 11.5px; color: var(--muted); }
.gi-btns { display: flex; gap: 6px; margin-top: 7px; width: 104px; }
.gi-yes, .gi-no {
  flex: 1; height: 27px; border-radius: 999px; font-size: 12px; font-weight: 700;
  border: 1px solid transparent; cursor: pointer; transition: filter 130ms;
}
.gi-yes { background: linear-gradient(90deg, #35d0c5, #a9f3e1); color: #14141e; }
.gi-no { background: transparent; border-color: rgba(255, 255, 255, .22); color: var(--muted); }
.gi-yes:hover, .gi-no:hover { filter: brightness(1.1); }
.gi-yes:disabled, .gi-no:disabled { opacity: .5; cursor: default; }
/* Invite-Hero 20.08. (Konzept invite-K2-stacked-hero): breite Karte statt 104px-Kachel */
.gi-hero { width: 248px; padding: 14px; background: #1b1d2a; border-radius: 20px;
  border: 1px solid rgba(53,208,197,.22); }
.gi-hero .gi-hrow { display: flex; align-items: center; gap: 10px; }
.gi-avs { display: flex; flex: none; }
.gi-av { width: 34px; height: 34px; border-radius: 50%; background: #232537; display: grid;
  place-items: center; color: var(--mint); border: 2px solid #12141f; margin-left: -10px; }
.gi-av:first-child { margin-left: 0; }
.gi-av svg { width: 15px; height: 15px; }
.gi-hero b { display: block; font-size: 14px; margin: 0; }
.gi-chip { display: inline-block; font-size: 9px; letter-spacing: .08em; font-weight: 800;
  color: #0b1220; background: linear-gradient(90deg, #35d0c5, #a9f3e1); border-radius: 999px;
  padding: 2px 8px; margin-top: 3px; }
.gi-hero .gi-sub { display: block; color: var(--muted); font-size: 12px; margin: 9px 0 10px; }
.gi-join { display: block; width: 100%; height: 34px; border: none; border-radius: 12px;
  font-size: 13px; font-weight: 700; background: linear-gradient(90deg, #35d0c5, #a9f3e1);
  color: #14141e; cursor: pointer; }
.gi-decl { display: block; width: 100%; height: auto; background: none; border: none;
  color: var(--muted); font-size: 12px; margin-top: 7px; cursor: pointer; }
.gi-decl:hover { color: #fff; filter: none; }
/* Zaehler an der Group-Tab-Pille + "invited"-Marke in der Mitgliederliste */
.gi-badge {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px;
  margin-left: 6px; border-radius: 999px; background: #3f5bff; color: #fff;
  font-size: 11px; font-weight: 700;
}
.gi-pend {
  font-style: normal; font-size: 10.5px; color: var(--muted);
  border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; padding: 1px 6px; margin-left: 5px;
}
/* DM-Zeile: Badge am Avatar (blau, wie Mockup), Zeit rechts aussen */
.ch-avw { position: relative; flex: none; display: block; }
.ch-badge {
  position: absolute; right: -4px; bottom: -3px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px; background: #3f5bff; color: #fff; font-size: 11px; font-weight: 700;
  display: grid; place-items: center; border: 2px solid var(--panel);
}
.ch-time { margin-left: auto; flex: none; font-size: 11px; color: var(--muted); align-self: flex-end; padding-bottom: 3px; } /* Sandro R12: unten buendig mit der Vorschau-Zeile */
/* Sandro R4: rechte Spalte der Thread-Zeile — Zeit oben, Unread-Bubble DRUNTER */
.ch-right { margin-left: auto; flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
  align-self: flex-start; padding-top: 2px; }
.ch-right .ch-time { margin-left: 0; align-self: auto; padding-bottom: 0; }
.ch-right .ch-badge { position: static; border: 0; min-width: 16px; height: 16px; padding: 0 4px; font-size: 10px; font-weight: 600; }
/* Realtime (ChatRT): Online-Dot am Avatar (Thread-Liste) + neben dem Namen (Konv-Header) */
.ch-dot {
  position: absolute; right: -2px; top: -2px; width: 10px; height: 10px;
  border-radius: 50%; background: #a9f3e1; border: 2px solid var(--panel);
}
.ch-who .ch-dot { position: static; display: inline-block; margin-left: 6px; vertical-align: 2px; border-color: transparent; }
.ch-who .ch-typing { color: var(--mint); } /* "tippt …" dezent in Mint */
/* Mint-FAB unten LINKS, buendig am Boden der Box (Sandro R13: margin-top auto + sticky) */
.ch-fab {
  position: sticky; bottom: 14px; z-index: 3; display: grid; place-items: center;
  margin: 10px auto 14px 16px; margin-top: auto; width: 54px; height: 54px; border-radius: 50%;
  background: var(--mint); color: #0d2a24; font-size: 26px; font-weight: 600;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .45); transition: transform 130ms, filter 130ms;
}
.ch-fab:hover { transform: scale(1.07); filter: brightness(1.05); }
.ch-fab svg { width: 22px; height: 22px; display: block; } /* Sandro R8: Plus exakt zentriert (SVG statt Text-Glyphe) */
.tb-spacer { flex: 1; }
/* .ch-seg (Agents|Groups-Umschalter) entfernt — R7 20.07.: Agents leben im Agent Mode. */

/* ---------- Challenge-Flow v2 (Winchesters Figma 19.07.) ---------- */
/* Create-Modal */
.chc-top { display: flex; gap: 12px; margin: 14px 0 4px; }
.chc-cover { width: 84px; height: 84px; flex: none; border-radius: 12px; background: #2d2e40; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 11px; overflow: hidden; }
.chc-cover svg { width: 20px; height: 20px; }
.chc-cover.has { padding: 0; }
.chc-cover img { width: 100%; height: 100%; object-fit: cover; }
.chc-descwrap { position: relative; flex: 1; }
.chc-desc { height: 84px; resize: none; }
.chc-mic { position: absolute; right: 8px; bottom: 8px; }
.chc-phead { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.chc-prow { display: flex; gap: 8px; margin-top: 8px; }
.chc-plab { width: 110px; flex: none; }
.chc-ptxt { flex: 1; }
/* Türkises Plus als eigene Zeile in der Preis-Liste (Winchester 19.07.: "in der Reihe, clean") */
.chc-prowadd { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 8px; padding: 9px 12px;
  border-radius: 12px; border: 1.5px dashed rgba(255,255,255,.16); background: transparent; color: var(--muted);
  font-size: 12.5px; font-weight: 600; transition: color 130ms, border-color 130ms; }
.chc-prowadd:hover { color: var(--ink); border-color: var(--teal); }
.chc-pplus { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: var(--teal); color: #14141e; font-size: 15px; font-weight: 700; line-height: 1; }
/* Guide-Box + KI-Buttons */
.chc-guide { display: flex; align-items: center; gap: 12px; margin: 12px 0 4px; padding: 12px 14px;
  border-radius: 14px; background: rgba(0,184,199,.08); }
.chc-guide.open { display: block; }
.chc-gtxt { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.chc-gtxt b { display: flex; align-items: center; gap: 7px; color: var(--teal); font-size: 12.5px; letter-spacing: .03em; }
.chc-gtxt b svg { width: 15px; height: 15px; }
.chc-gtxt span { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.chc-guide .chc-descwrap { margin-top: 10px; }
.chc-guide .m-in { margin-top: 8px; }
.chc-gbtn { flex: none; padding: 9px 16px; border-radius: 999px; background: #fff; color: #14141e;
  font-weight: 700; font-size: 12.5px; transition: filter 130ms; }
.chc-gbtn:hover { filter: brightness(.92); }
/* Cover-Generierung = Zeile in der Box-Hierarchie (Winchester 19.07.: Alignment wie die Preis-Zeile) */
.chc-gencover { margin-top: 10px; }
.chc-gencover .chc-pplus svg { width: 13px; height: 13px; }
.chc-gencover:disabled { opacity: .45; cursor: default; }
.chc-gencover:disabled:hover { color: var(--muted); border-color: rgba(255,255,255,.16); }
.chc-gchint { margin-left: auto; font-style: normal; color: #f0c96c; font-size: 10.5px; letter-spacing: .04em; white-space: nowrap; }
.chc-pronote { margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: rgba(240,201,108,.08);
  color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.chc-pronote b { color: #f0c96c; }
.chc-prook { margin-left: 6px; padding: 5px 12px; border-radius: 999px; background: #fff; color: #14141e; font-size: 11.5px; font-weight: 700; }
/* Kai-Avatar in der Guide-Box (Sphere-Verwandtschaft, teal) */
.chc-gav { width: 34px; height: 34px; flex: none; border-radius: 50%; align-self: flex-start;
  background: radial-gradient(circle at 32% 26%, #fff 0%, #b8fff4 18%, #00B8C7 55%, #0a3540 100%); }
.chc-guide.open .chc-gav { display: none; }
.chc-dgen { position: absolute; right: 44px; bottom: 8px; width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 50%; background: var(--panel-2); color: var(--teal); }
.chc-dgen svg { width: 15px; height: 15px; }
.chc-dgen.busy { animation: dgenspin 1s linear infinite; }
@keyframes dgenspin { to { transform: rotate(360deg); } }
.modal { max-height: 86vh; overflow-y: auto; }
/* Detailseite */
.chd-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.chd-hero { border-radius: var(--radius); overflow: hidden; background: var(--panel); max-height: 380px; position: relative; }
.chd-hero img { width: 100%; max-height: 380px; object-fit: cover; display: block; }
/* Winchester 23.07.: Banner-Ausschnitt per Drag waehlbar ("CHALLENGE"-Schriftzug war abgeschnitten) */
.chd-hero img.pannable { cursor: grab; user-select: none; -webkit-user-drag: none; touch-action: none; }
.chd-hero img.dragging { cursor: grabbing; }
.chd-hint { position: absolute; right: 14px; top: 12px; background: rgba(20,20,30,.62); color: #fff;
  font-size: 11px; letter-spacing: .4px; padding: 6px 12px; border-radius: 999px;
  pointer-events: none; opacity: 0; transition: opacity .25s; backdrop-filter: blur(6px); }
.chd-hero:hover .chd-hint, .chd-hint.show { opacity: 1; }
.chd-desc { color: var(--muted); font-size: 14px; line-height: 1.6; margin-top: 10px; max-width: 720px; }
.chd-prz { display: flex; align-items: center; gap: 14px; background: var(--panel); border-radius: 12px; padding: 11px 14px; margin-top: 8px; max-width: 720px; }
.chd-prz b { flex: none; min-width: 96px; font-size: 13px; }
.chd-prz span { color: var(--muted); font-size: 13px; }
.chd-cds { display: flex; gap: 8px; margin-top: 16px; }
.chd-cd { background: var(--panel-2); border-radius: 10px; padding: 8px 14px; font-weight: 700; font-size: 13.5px; letter-spacing: .03em; }
.chd-cd.off { color: var(--muted); font-weight: 600; }
.chd-join { margin-top: 18px; }
/* Leaderboard */
.chd-podium { display: flex; justify-content: center; align-items: flex-end; gap: 26px; padding: 18px 0 24px; }
.chd-pod { display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; text-align: center; }
.chd-pod img { width: 74px; height: 74px; border-radius: 50%; object-fit: cover; border: 3px solid var(--panel-2); }
.chd-pod.r1 img { width: 96px; height: 96px; border-color: var(--teal); }
.chd-pod b { font-size: 13px; }
.chd-pv { color: var(--muted); font-size: 11.5px; }
.chd-prank { position: absolute; top: -4px; left: 50%; transform: translateX(26px); background: var(--teal); color: #14141e;
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; z-index: 1; }
.chd-pod.r1 .chd-prank { transform: translateX(34px); }
.chd-rank { width: 34px; height: 34px; border-radius: 50%; background: var(--panel-2); display: grid; place-items: center; font-weight: 700; font-size: 13.5px; flex: none; }

/* ============ STORIES (Winchester-GO 19.07.: 24h + Glut-Mechanik) ============ */
/* Sandro R10: Stories = EXAKT die Top-Content-Creators-Darstellung (92px, gap 22, Name 13px) */
/* Sandro R12: ~20px mehr Luft zwischen Stories und dem ersten Post */
#storyHost { margin-bottom: 22px; }
.st-row { display: flex; gap: 22px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; }
.st-row::-webkit-scrollbar { display: none; }
.st-ring { position: relative; background: none; border: 0; cursor: pointer; display: flex; flex-direction: column;
  align-items: center; gap: 8px; min-width: 106px; color: var(--ink); flex: none; }
.st-av { width: 92px; height: 92px; border-radius: 50%; padding: 3px; background: rgba(255,255,255,.22);
  display: block; position: relative; transition: transform 130ms; }
/* Sandro R8: Hover ohne Groessen-/Positionswechsel — weisser Ring faded weich ein */
.st-ring .st-av { transition: box-shadow 260ms ease; }
.st-ring:hover .st-av { box-shadow: 0 0 0 2px #fff; }
.st-ring.t1 .st-av { background: linear-gradient(135deg, #87D9CF, #1fa89f); }
/* Sandro R12: kein Braun/Gold mehr — Ring im Logo-Tuerkis */
.st-ring.t2 .st-av { background: var(--brandteal); box-shadow: 0 0 12px rgba(135,217,207,.32); }
.st-ring.seen .st-av { opacity: .45; }
.st-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid var(--bg); display: block; }
.st-n { font-size: 13px; font-weight: 600; color: var(--ink); max-width: 106px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; } /* Sandro R13: 2px mehr Luft zum Kreis */
/* Sandro R12: Kreis groesser + Plus als SVG exakt zentriert (Glyphen-Zentrierung war schief) */
.st-plus { position: absolute; right: 1px; bottom: 1px; width: 28px; height: 28px; border-radius: 50%; background: #fff;
  color: #14141e; display: grid; place-items: center; border: 2px solid var(--bg); }
.st-plus svg { width: 13px; height: 13px; display: block; }
/* APPICS-Story: echtes Logo (Dreieck) auf Logo-Tile statt Bild */
.st-logo { width: 100%; height: 100%; border-radius: 50%; background: #232537; border: 2px solid var(--bg);
  display: grid; place-items: center; color: var(--brandteal); }
.st-logo svg { width: 44%; height: 44%; }
.stc-row { display: flex; gap: 12px; align-items: stretch; margin-top: 6px; }
.stc-cap { flex: 1; }
.stc-recap { display: flex; align-items: center; gap: 12px; justify-content: space-between; margin-top: 16px;
  padding: 12px 14px; border-radius: 14px; background: var(--panel-2); }
.stc-recap b { display: flex; align-items: center; gap: 7px; font-size: 13px; }
.stc-recap b svg { width: 15px; height: 15px; color: var(--teal); }
.stc-recap span { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
/* Viewer */
.stv { position: fixed; inset: 0; z-index: 320; background: rgba(5,7,12,.93); display: flex; align-items: center; justify-content: center; }
.stv-frame { position: relative; width: min(432px, 100vw); height: min(88vh, 828px); background: #000;
  border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
@media (max-width: 480px) { .stv-frame { width: 100vw; height: 100vh; border-radius: 0; } }
.stv-bars { position: absolute; top: 8px; left: 10px; right: 10px; display: flex; gap: 4px; z-index: 6; }
.stv-bar { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.28); overflow: hidden; }
.stv-bar i { display: block; height: 100%; width: 0; background: #fff; }
.stv-head { position: absolute; top: 18px; left: 12px; right: 48px; display: flex; align-items: center; gap: 9px;
  z-index: 6; color: #fff; text-shadow: 0 1px 5px rgba(0,0,0,.65); }
.stv-head img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.stv-head b { font-size: 13.5px; display: block; }
.stv-head span { font-size: 11px; opacity: .8; display: block; }
.stv-glut { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px;
  border-radius: 999px; background: rgba(0,0,0,.4); font-size: 12px; }
.stv-glut svg { width: 13px; height: 13px; }
.stv-glut.t1 { color: #87D9CF; }
.stv-glut.t2 { color: #FFD166; box-shadow: 0 0 10px rgba(255,209,102,.4); }
.stv-recap { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; padding: 3px 8px;
  border-radius: 999px; background: rgba(53,208,197,.22); color: #87D9CF; }
.stv-recap svg { width: 11px; height: 11px; }
.stv-x { position: absolute; top: 14px; right: 8px; z-index: 7; background: none; border: 0; color: #fff;
  width: 38px; height: 38px; cursor: pointer; opacity: .85; }
.stv-x svg { width: 20px; height: 20px; }
.stv-img { flex: 1; position: relative; overflow: hidden; background: #000; }
.stv-img img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(34px); opacity: .5; }
.stv-img img.main { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
/* Video-Story (25.08.): <video> fuellt die Buehne wie das Bild; Play-Badge auf dem Picker */
.stv-img video.main { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: transparent; }
.chc-cover { position: relative; }
.chc-cover .stc-play { position: absolute; right: 5px; bottom: 5px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(8, 8, 14, .72); color: #fff; display: grid; place-items: center; pointer-events: none; }
.chc-cover .stc-play svg { width: 12px; height: 12px; }
.stv-tap { position: absolute; top: 0; bottom: 0; cursor: pointer; }
.stv-tap.l { left: 0; width: 32%; }
.stv-tap.r { right: 0; width: 68%; left: auto; }
.stv-chal { position: absolute; bottom: 118px; left: 12px; z-index: 6; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; border-radius: 999px; background: rgba(255,209,102,.92); color: #14141e; font-size: 12px;
  font-weight: 700; text-decoration: none; }
.stv-chal svg { width: 13px; height: 13px; }
.stv-cap { position: absolute; bottom: 76px; left: 12px; right: 12px; z-index: 6; color: #fff; font-size: 13.5px;
  text-shadow: 0 1px 5px rgba(0,0,0,.7); }
.stv-foot { position: absolute; bottom: 0; left: 0; right: 0; z-index: 6; display: flex; align-items: center; gap: 7px;
  padding: 14px 12px; background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.stv-foot input { flex: 1; min-width: 0; background: rgba(255,255,255,.14); border: 0; border-radius: 999px;
  padding: 10px 15px; color: #fff; font-size: 13px; }
.stv-foot input::placeholder { color: rgba(255,255,255,.55); }
/* R20 (Sandro-IG-Screenshot 28.07.): Desktop-Story-Viewer = Zug aus Cards — Nachbar-Ringe
   als Previews links/rechts + Chevrons; Winchester: Flow endet nie (For-you-Frames). */
.stv-side { display: none; position: absolute; top: 50%; transform: translateY(-50%); width: 150px; height: 266px;
  border-radius: 16px; overflow: hidden; padding: 0; border: 0; cursor: pointer; background: #000;
  transition: filter 130ms; }
.stv-side:hover { filter: brightness(1.15); }
/* Klasse "spv" statt "pv" — .pv ist global der Verified-Badge (border-radius 50% = Oval-Falle) */
.stv-side .spv { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.42); }
.stv-side .pav { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -78%); width: 52px; height: 52px;
  border-radius: 50%; padding: 2.5px; background: rgba(255,255,255,.35); display: block; }
.stv-side .pav.t1 { background: #87D9CF; }
.stv-side .pav.t2 { background: #FFD166; }
.stv-side .pav img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.stv-side .pn { position: absolute; left: 8px; right: 8px; top: calc(50% + 12px); color: #fff; font-size: 12px;
  font-weight: 600; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stv-side .pt { position: absolute; left: 8px; right: 8px; top: calc(50% + 30px); color: rgba(255,255,255,.7);
  font-size: 10.5px; text-align: center; }
.stv-side.spm1 { right: calc(50% + 236px); }
.stv-side.sp1 { left: calc(50% + 236px); }
.stv-side.spm2 { right: calc(50% + 406px); width: 118px; height: 210px; opacity: .75; }
.stv-side.sp2 { left: calc(50% + 406px); width: 118px; height: 210px; opacity: .75; }
.stv-nav { display: none; position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px;
  border-radius: 50%; background: rgba(255,255,255,.92); color: #14141e; border: 0; cursor: pointer;
  place-items: center; z-index: 8; transition: filter 130ms; }
.stv-nav:hover { filter: brightness(.9); }
.stv-nav svg { width: 18px; height: 18px; stroke-width: 2.4; }
.stv-nav.nl { left: calc(50% - 258px); }
.stv-nav.nr { right: calc(50% - 258px); }
@media (min-width: 1040px) {
  .stv-side, .stv-nav { display: grid; }
  .stv-side.spm2, .stv-side.sp2 { display: none; }
}
@media (min-width: 1460px) { .stv-side.spm2, .stv-side.sp2 { display: grid; } }
.stv-postgo { min-width: 0; width: auto; margin: 0 auto; padding: 10px 26px; border-radius: 999px; font-size: 13px; }
.stv-re, .stv-send { width: 38px; height: 38px; min-width: 0; border-radius: 50%; border: 0; background: rgba(255,255,255,.14);
  color: #fff; cursor: pointer; display: grid; place-items: center; flex: none; transition: transform 130ms, background 130ms; }
.stv-re svg, .stv-send svg { width: 17px; height: 17px; }
.stv-re:hover, .stv-re.on { background: rgba(255,209,102,.9); color: #14141e; transform: scale(1.08); }
.stv-send { background: #fff; color: #14141e; }
.stv-own { color: #fff; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.stv-own svg { width: 14px; height: 14px; opacity: .85; }
/* ============ BADGES (Matrix 19.07., bewusst schwer) ============ */
.bdg-row { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; margin: 14px 0 2px; }
.bdg { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px;
  background: var(--panel); font-size: 12.5px; color: var(--muted); border: 0; cursor: pointer; transition: transform 130ms; }
.bdg:hover { transform: translateY(-1px); }
.bdg svg { width: 14px; height: 14px; }
.bdg em { font-style: normal; font-weight: 700; font-size: 11px; padding: 2px 7px; border-radius: 999px; background: rgba(255,255,255,.08); }
.bdg.t0 { opacity: .42; }
.bdg.t1 { color: #d99a62; }
.bdg.t1 em { background: rgba(217,154,98,.18); }
.bdg.t2 { color: #ccd2e0; }
.bdg.t2 em { background: rgba(204,210,224,.16); }
.bdg.t3 { color: #FFD166; }
.bdg.t3 em { background: rgba(255,209,102,.18); }
.bdg.t4 { color: #ffe9b3; background: linear-gradient(120deg, rgba(135,217,207,.22), rgba(255,209,102,.25));
  box-shadow: 0 0 14px rgba(255,209,102,.3); }
.bdg-budget { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #FFD166;
  padding: 7px 13px; border-radius: 999px; background: rgba(255,209,102,.1); }
.bdg-budget .coin svg { width: 14px; height: 14px; }
.bdgm-row { display: flex; gap: 13px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.bdgm-row:last-of-type { border-bottom: 0; }
.bdgm-row .bdg { cursor: default; flex: none; min-width: 132px; justify-content: center; }
.bdgm-tx b { font-size: 13px; display: block; }
.bdgm-tx span { display: block; font-size: 12px; color: var(--teal); margin-top: 2px; }
.bdgm-tx small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 3px; }
/* Hall of Fame */
.hof-row { display: flex; gap: 10px; overflow-x: auto; padding: 8px 2px 12px; scrollbar-width: none; }
.hof-row::-webkit-scrollbar { display: none; }
.hof-it { position: relative; width: 92px; height: 128px; border-radius: 14px; overflow: hidden; border: 0;
  cursor: pointer; flex: none; padding: 0; background: var(--panel); box-shadow: 0 0 0 2px rgba(255,209,102,.55); }
.hof-it img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hof-em { position: absolute; bottom: 5px; right: 6px; display: inline-flex; align-items: center; gap: 3px;
  font-size: 11px; font-weight: 700; color: #FFD166; background: rgba(0,0,0,.55); padding: 2px 7px; border-radius: 999px; }
.hof-em svg { width: 11px; height: 11px; }
/* Post bearbeiten/löschen (19.07.) */
.del-btn { color: #e0596b; }
.del-btn:hover { background: rgba(224,89,107,.14); }
.btn-danger { background: #e0596b; color: #fff; }
.btn-danger:hover { background: #c94759; }

/* ===== LIVE (Sprint LIVE-1) ===== */
/* Sandro R12: LIVE wandert aus der Topbar in die Ecke unten rechts (Topbar cleaner) */
.live-fab{position:fixed;right:24px;bottom:22px;z-index:40;display:flex;align-items:center;gap:7px;
  padding:11px 17px;border-radius:999px;background:rgba(27,29,42,.82);
  backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
  color:#ff5470;font-weight:700;font-size:12px;letter-spacing:.4px;text-decoration:none;
  box-shadow:0 10px 26px rgba(0,0,0,.4);transition:transform 130ms,filter 130ms}
.live-fab svg{width:15px;height:15px}
.live-fab:hover{transform:scale(1.05);filter:brightness(1.15)}
/* nicht im Messenger (Composer) und nicht auf der Live-Seite selbst; weicht offenem Agent-Panel */
.sh-chat .live-fab,.sh-live .live-fab{display:none}
body.agopen .live-fab,body.modalon .live-fab{display:none}
.lv-golive{display:flex;align-items:center;gap:14px;margin:14px 0}
.lv-hint{color:#8E92B2;font-size:13px}
.lv-setup{background:#1b1d2a;border-radius:16px;padding:16px;margin-bottom:18px;display:flex;flex-direction:column;gap:10px;max-width:640px}
.lv-setup-row{display:flex;gap:10px}
.lv-video{width:100%;max-height:60vh;border-radius:12px;background:#000;aspect-ratio:16/9;object-fit:contain}
.lv-obs summary{cursor:pointer;color:#8E92B2;font-size:13px}
.lv-obs code{display:block;margin-top:8px;padding:10px;background:#232537;border-radius:8px;font-size:12px;word-break:break-all;user-select:all}
.lv-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px;margin-top:10px}
.lv-empty{color:#8E92B2}
.lv-card{display:block;background:#1b1d2a;border-radius:16px;overflow:hidden;text-decoration:none;color:inherit;transition:transform .13s}
.lv-card:hover{transform:translateY(-2px)}
.lv-thumb{position:relative;aspect-ratio:16/9;background:linear-gradient(135deg,#232537,#171826);display:flex;align-items:center;justify-content:center;color:#8E92B2}
.lv-thumb>svg{width:38px;height:38px;opacity:.5}
.lv-badge{position:absolute;top:10px;left:10px;background:#ff2d55;color:#fff;font-size:11px;font-weight:800;letter-spacing:.6px;padding:3px 9px;border-radius:6px}
.lv-view{position:absolute;top:10px;right:10px;display:flex;align-items:center;gap:5px;background:rgba(10,10,18,.65);color:#fff;font-size:12px;padding:3px 9px;border-radius:6px}
.lv-view svg{width:13px;height:13px}
.lv-meta{padding:11px 13px;display:flex;flex-direction:column;gap:2px}
.lv-meta b{font-size:14px}
.lv-meta span{color:#8E92B2;font-size:12px}
.lv-watch{display:grid;grid-template-columns:1fr minmax(280px,340px);gap:16px;align-items:start;margin-top:8px}
.lv-stage{background:#1b1d2a;border-radius:16px;overflow:hidden;position:relative}
.lv-stage .lv-video{display:block}
.lv-overlay-host{position:absolute;inset:0;pointer-events:none}
.lv-stagebar{display:flex;align-items:center;gap:12px;padding:12px 14px}
.lv-stagebar .lv-view{position:static}
.lv-stagebar b{flex:1;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lv-tipbtn{display:flex;align-items:center;gap:7px}
.lv-tipbtn svg{width:15px;height:15px}
/* Chat-Panel wird von LiveUI (css/live-ui.css) gestylt; hier nur die Grid-Höhe. */
.lv-side{height:min(560px,70vh)}
@media (max-width:900px){.lv-watch{grid-template-columns:1fr}.lv-side{height:46vh}}
@media (max-width:640px){.live-fab{right:14px;bottom:88px;padding:9px 13px}} /* ueber dem Create-FAB-Streifen */

/* Bugklasse-Killer: hidden-Attribut schlaegt IMMER display-Regeln (Beenden-Button-Fang 19.07.) */
[hidden]{display:none!important}

/* ============ SANDRO R3 (19.07.): Upvote-Slider, Leaderboard, Plus->X ============ */

/* Upvote-Pfeil auf der Feed-Card (oeffnet den Slider) */
.vs-open { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--panel-2); color: var(--muted); transition: background 130ms, color 130ms; flex: none; }
.vs-open:hover { color: var(--ink); background: rgba(53,208,197,.18); }
.vs-open.on { background: var(--teal); color: #14141e; }
.vs-open svg { width: 17px; height: 17px; stroke-width: 2.2; }

/* Leaderboard */
.chd-podium { display: flex; justify-content: center; align-items: flex-end; gap: 26px; padding: 18px 0 24px; }
.chd-pod { display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; text-align: center; }
.chd-pod img { width: 74px; height: 74px; border-radius: 50%; object-fit: cover; border: 3px solid var(--panel-2); }
.chd-pod.r1 img { width: 96px; height: 96px; border-color: var(--teal); }
.chd-pod b { font-size: 13px; }
.chd-pv { color: var(--muted); font-size: 11.5px; }
.chd-prank { position: absolute; top: -4px; left: 50%; transform: translateX(26px); background: var(--teal); color: #14141e;
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; z-index: 1; }
.chd-pod.r1 .chd-prank { transform: translateX(34px); }
.chd-rank { width: 34px; height: 34px; border-radius: 50%; background: var(--panel-2); display: grid; place-items: center; font-weight: 700; font-size: 13.5px; flex: none; }

/* Upvote "Power-Pill" (Sandro 19.07.): horizontal, elastisches Aufgehen, Fill+Glow, Burst */
.vsl { position: fixed; transform: translateX(-50%) scale(.24); transform-origin: 50% 100%;
  z-index: 120; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px;
  border-radius: 999px; background: rgba(20, 20, 30, .42);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 48px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.06);
  opacity: 0; transition: transform 380ms cubic-bezier(.28, 1.4, .4, 1), opacity 160ms ease; }
.vsl.open { transform: translateX(-50%) scale(1); opacity: 1; }
.vsl-val { font-size: 13px; font-weight: 500; color: #b9bdcf; font-variant-numeric: tabular-nums; min-width: 44px; text-align: center; }
.vsl-track { position: relative; width: 168px; height: 26px; border-radius: 999px; background: rgba(255,255,255,.12);
  overflow: hidden; cursor: ew-resize; touch-action: none; }
.vsl-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; overflow: hidden;
  /* Sandro R16: Verlauf zieht weiter durch — links Tuerkis nach hell-tuerkis/fast Weiss */
  background: linear-gradient(90deg, #35d0c5, #a9f3e1 62%, #ecfdf9);
  box-shadow: 0 0 14px rgba(125,233,214,.35);
  transition: width 300ms cubic-bezier(.3,.9,.3,1); }
.vsl-shine { position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(105deg, transparent 32%, rgba(255,255,255,.4) 47%, transparent 62%);
  transform: translateX(-110%); animation: vslShine 1.9s ease-in-out 300ms infinite; }
@keyframes vslShine { 0% { transform: translateX(-110%); } 55%, 100% { transform: translateX(110%); } }
.vsl-tick { position: absolute; top: 50%; width: 3px; height: 3px; margin: -1.5px 0 0 -1.5px; border-radius: 50%;
  background: rgba(255,255,255,.32); pointer-events: none; }
.vsl-knob { position: absolute; top: 50%; transform: translateY(-50%); width: 20px; height: 20px;
  border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.5); pointer-events: none;
  transition: left 300ms cubic-bezier(.3,.9,.3,1); }
/* Uma 20.08.: waehrend des Ziehens folgen Fill+Knob dem Finger DIREKT (Transitions aus),
   sonst hinkt der Knob 300ms nach und Drag fuehlt sich wie Nur-Klicken an */
.vsl.drag .vsl-fill, .vsl.drag .vsl-knob { transition: none; }
.vsl.drag .vsl-track { cursor: grabbing; }
.vsl-ok { display: grid; place-items: center; width: 40px; height: 40px; min-width: 0; border-radius: 50%;
  background: #fff; color: #14141e; transition: transform 130ms, box-shadow 130ms; }
.vsl-ok:hover { transform: scale(1.09); box-shadow: 0 0 0 4px rgba(125,233,214,.25); }
.vsl-ok:active { transform: scale(.94); }
.vsl-ok svg { width: 18px; height: 18px; stroke-width: 2.4; }
/* Sandro R13: expliziter Abbrechen-Button im Slider.
   Sandro R14: exakt so gross wie der Absenden-Button (40px), glasig statt solid */
.vsl-x { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #d7dae6; transition: background 130ms, color 130ms; }
.vsl-x:hover { background: rgba(255,255,255,.22); color: var(--ink); }
.vsl-x svg { width: 16px; height: 16px; stroke-width: 2.4; } /* Sandro R15: X-Strichstaerke = Pfeil (2.4) */
/* Power-Bar (27.07., wie alte iOS-App): verbleibende Votes unter der Pill.
   Ticks via repeating-linear-gradient — gleiche Optik wie der ⚡-Balken der App. */
.vsl-pow { position: absolute; left: 50%; top: calc(100% + 10px); transform: translateX(-50%);
  display: flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px;
  background: rgba(13,16,24,.78); backdrop-filter: blur(6px); white-space: nowrap; }
.vsl-pow svg { width: 13px; height: 13px; color: var(--mint); flex: none; }
.vsl-pow b { font-size: 10.5px; font-weight: 600; color: #d7dae6; letter-spacing: .3px; }
.vp-bar { width: 92px; height: 12px; border-radius: 3px; overflow: hidden; background: rgba(255,255,255,.09); }
.vp-fill { display: block; height: 100%; transition: width 400ms ease;
  background: repeating-linear-gradient(90deg, var(--mint) 0 3px, transparent 3px 6px); }
.vsl-pow.low svg, .vsl-pow.low b { color: #ff9d7a; }
.vsl-pow.low .vp-fill { background: repeating-linear-gradient(90deg, #ff9d7a 0 3px, transparent 3px 6px); }
/* Sandro R14: waehrend der Slider offen ist, blurrt + dunkelt das Post-Bild darunter weich ein */
.ph .ph-main, .post-hero .ph-main { transition: filter 340ms ease; }
.vsl-dim .ph-main { filter: blur(14px) brightness(.55); }
/* Tip-Modal (Sandro R13): mehr Luft um Text+Felder, Buttons einheitlich links/rechts */
.tip-m .m-sub { margin: 16px 0 20px; }
.tip-m .m-lab { margin-top: 18px; }
.tip-m .m-err { margin-top: 12px; }
.tip-m .m-actions { justify-content: space-between; margin-top: 26px; }
.btn-pill { min-width: 132px; padding: 12px 24px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  background: var(--panel-2); color: var(--ink); transition: filter 130ms, background 130ms; text-align: center; }
.btn-pill:hover { background: var(--input); }
.btn-pill-primary { background: #fff; color: #14141e; }
.btn-pill-primary:hover { background: #fff; filter: brightness(.92); }
/* Sandro R16: Tipping oeffnet KEIN eigenes Modal mehr — Glas-Overlay IM Post-Bild,
   gleicher Look wie die Vote-Pill (dunkles Semi-Transparent + Backdrop-Blur),
   Text in Weiss und Grau statt blauem Panel-Background */
.tipp { position: fixed; z-index: 120; width: min(340px, calc(100vw - 32px));
  transform: translate(-50%, -50%) scale(.9); opacity: 0;
  transition: transform 340ms cubic-bezier(.28, 1.3, .4, 1), opacity 160ms ease;
  padding: 20px 20px 16px; border-radius: 24px; background: rgba(20, 20, 30, .42);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 48px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.06); }
.tipp.open { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.tipp h4 { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 15px; font-weight: 700; }
.tipp h4 svg { width: 17px; height: 17px; stroke-width: 2; color: var(--brandteal); }
.tipp .tipp-sub { color: #b9bdcf; font-size: 12px; line-height: 1.5; margin: 6px 0 14px; }
.tipp .tipp-sub b { color: #fff; font-weight: 600; }
.tipp .tipp-lab { display: block; font-size: 11px; font-weight: 600; letter-spacing: .06em; color: #b9bdcf; text-transform: uppercase; }
.tipp .tipp-in { width: 100%; background: rgba(255,255,255,.1); border: none; border-radius: 12px;
  color: #fff; padding: 10px 12px; margin: 5px 0 12px; font-size: 13.5px; }
.tipp .tipp-in::placeholder { color: rgba(255,255,255,.38); }
.tipp .tipp-in:focus { outline: none; background: rgba(255,255,255,.16); }
.tipp .tipp-err { color: #ff8d8d; font-size: 12px; min-height: 14px; }
.tipp .tipp-act { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.tipp .tipp-x { flex: none; display: grid; place-items: center; width: 40px; height: 40px; min-width: 0; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #d7dae6; transition: background 130ms, color 130ms; }
.tipp .tipp-x:hover { background: rgba(255,255,255,.22); color: var(--ink); }
.tipp .tipp-x svg { width: 16px; height: 16px; stroke-width: 2.4; }
.tipp .tipp-go { min-width: 0; padding: 11px 24px; border-radius: 999px; background: #fff; color: #14141e;
  font-size: 13px; font-weight: 600; transition: filter 130ms; }
.tipp .tipp-go:hover { filter: brightness(.92); }
/* Sandro R18/R19: Drei-Punkte am Feed-Post = klassisches Dropdown am Button.
   R19: dezent-glasig wie der Drei-Punkte-Kreis (.ph-more) — semi-transparent + Blur,
   kein Blauton mehr; Eintraege ohne Icons. */
/* Auftauch-Kurve fuer Overlay-Menues (kam aus dem alten Activity-Filter-Dropdown,
   das 13.08. durch die .seg-Komponente ersetzt wurde — Keyframes bleiben, .pmenu nutzt sie). */
@keyframes fselIn { from { opacity: 0; transform: scale(.92) translateY(-4px); } to { opacity: 1; transform: none; } }
.pmenu { position: fixed; z-index: 90; min-width: 200px; padding: 8px; border-radius: 18px;
  background: rgba(8, 10, 16, .45);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 16px 44px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.08);
  transform-origin: top right; animation: fselIn 180ms cubic-bezier(.3,1.25,.4,1) both; }
.pmenu-it { display: block; width: 100%; padding: 10px 14px;
  border-radius: 12px; font-size: 13px; font-weight: 500; color: #fff; text-align: left;
  transition: background 120ms; }
.pmenu-it:hover { background: rgba(255,255,255,.1); }
.pmenu-it.pm-danger { color: #ff9d9d; }
/* Aktivitaeten-Empty in Augenhoehe (Sandro R13) */
.act-mid { margin-top: 22vh; text-align: center; }
/* Partikel-Burst beim Bestaetigen */
.vsl-p { position: fixed; width: 7px; height: 7px; margin: -3.5px; border-radius: 50%; z-index: 130;
  background: #7de9d6; pointer-events: none; box-shadow: 0 0 8px rgba(125,233,214,.8);
  animation: vslBurst 600ms cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes vslBurst {
  0% { transform: translate(0,0) scale(1); opacity: 1; }
  100% { transform: translate(var(--dx, 20px), var(--dy, -20px)) scale(.3); opacity: 0; }
}

/* Leaderboard */
.lb { display: flex; flex-direction: column; gap: 10px; max-width: 680px; }
.lb-row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 16px;
  background: var(--panel); transition: background 130ms; }
.lb-row:hover { background: var(--panel-2); }
.lb-rank { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--panel-2); font-weight: 800; font-size: 13px; flex: none; }
.lb-row.r1 .lb-rank { background: linear-gradient(135deg, #FFD166, #c9821e); color: #14141e; }
.lb-row.r2 .lb-rank { background: linear-gradient(135deg, #e6e8f2, #9aa0b8); color: #14141e; }
.lb-row.r3 .lb-rank { background: linear-gradient(135deg, #e0a370, #9c5a2d); color: #14141e; }
.lb-row img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: var(--panel-2); }
.lb-name { font-weight: 600; font-size: 14px; min-width: 0; }
.lb-name small { display: block; font-weight: 400; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.lb-apx { margin-left: auto; display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13.5px; color: var(--teal); }

/* ---------- Such-Filter-Chips (Sandro 19.07.): kombinierbar, X loescht ---------- */
.s-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: -6px 0 18px; }
.s-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 8px 7px 14px; border-radius: 999px;
  background: var(--panel-2); color: var(--ink); font-size: 13px; font-weight: 600; }
.s-chip-x { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.10); color: var(--muted); font-size: 14px; line-height: 1; transition: background 130ms, color 130ms; }
.s-chip-x:hover { background: rgba(255,255,255,.22); color: #fff; }

/* ---------- Mobil: Progressive-Blur am unteren Viewport-Rand (Sandro 19.07.) ---------- */
@media (max-width: 640px) {
  body::after {
    content: ""; position: fixed; left: 0; right: 0; bottom: 0; height: 84px; z-index: 60;
    pointer-events: none;
    backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
    mask-image: linear-gradient(180deg, transparent, #000 82%);
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 82%);
  }
}

/* ---------- Album Phase 1 (19.07.): Karussell in Feed-Karte + Post-View ---------- */
.alb { position: relative; }
.alb-tr { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.alb-tr::-webkit-scrollbar { display: none; }
.alb-s { flex: 0 0 100%; min-width: 100%; position: relative; overflow: hidden; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; }
.alb-s img.ph-main { position: relative; width: 100%; height: auto; max-height: 640px; object-fit: contain; display: block; }
.post-hero .alb-s img.ph-main { max-height: 74vh; }
.alb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; min-width: 0; padding: 0; border-radius: 50%; border: 0; background: rgba(10,12,20,.55); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; transition: opacity .13s ease; z-index: 3; }
.alb-nav svg { width: 17px; height: 17px; }
.alb:hover .alb-nav, .alb-nav:focus-visible { opacity: 1; }
.alb-prev { left: 10px; }
.alb-next { right: 10px; }
.alb-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; gap: 5px; justify-content: center; z-index: 3; pointer-events: none; }
.alb-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.45); transition: background .13s ease; }
.alb-dots i.on { background: #fff; }
.alb-count { position: absolute; top: 10px; right: 10px; background: rgba(10,12,20,.55); color: #fff; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; z-index: 3; pointer-events: none; }
@media (max-width: 640px) { .alb-nav { display: none; } } /* mobil: swipen */

/* Create: Album-Streifen unter der Live-Preview */
.alb-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.alb-chip { position: relative; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--panel-2); flex: 0 0 auto; }
.alb-chip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.alb-chip b { position: absolute; left: 0; right: 0; bottom: 0; font-size: 9px; letter-spacing: .04em; text-align: center; background: rgba(10,12,20,.62); color: #fff; padding: 2px 0; }
.alb-chip button { position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; min-width: 0; padding: 0; border-radius: 50%; border: 0; background: rgba(10,12,20,.72); color: #fff; font-size: 10px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.alb-chip.add { border: 1px dashed rgba(255,255,255,.28); background: none; color: #8E92B2; font-size: 22px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.alb-chip .vbadge { top: 3px; bottom: auto; left: 3px; right: auto; width: 18px; height: 18px; border-radius: 50%; background: rgba(10,12,20,.72); font-size: 8px; display: flex; align-items: center; justify-content: center; padding: 0; }
/* Album-Steuerung 20.08.: ★ = zum Cover machen (oben links), ‹ › = verschieben (unten),
   Cover-✕ = entfernen; ▶-Badge rueckt nach oben links (Platz fuer die Pfeile). */
.alb-chip .mkc { top: 3px; right: auto; left: 3px; font-size: 10px; color: #ffd66e; }
.alb-chip .mvl { top: auto; bottom: 3px; right: auto; left: 3px; font-size: 12px; }
.alb-chip .mvr { top: auto; bottom: 3px; right: 3px; font-size: 12px; }
.alb-chip.cover b { background: rgba(61,219,196,.85); color: #0b1220; font-weight: 700; }

/* ---------- Discovery Challenges-Header (Winchester 19.07., Konzept A "Editorial"):
   grosse Headline + Teal-Subline links, Leaderboard-Pill mit Trophy rechts — eine Achse,
   symmetrischer Rhythmus statt Mini-Label vs. Textlink ---------- */
.chal-head { display: flex; align-items: center; justify-content: space-between; margin: 30px 0 22px; } /* Sandro R10: +4px Luft zu den Karten */
.chal-hgroup { display: flex; flex-direction: column; gap: 4px; }
.sect-h2 { font-size: 27px; font-weight: 650; letter-spacing: -.01em; color: var(--ink); margin: 0; line-height: 1.1; }
.sect-sub { font-size: 13px; font-weight: 500; color: var(--teal); letter-spacing: .01em; }
/* Sandro R9 (20.07.): dezenter — kein Background/Trophy, weisser Text + weisser Pfeil
   mit Luft zum Text; Hover schiebt nur den Pfeil leicht nach rechts */
.lb-pill { display: inline-flex; align-items: center; gap: 10px; background: none; color: #fff; font-size: 13.5px; font-weight: 600; padding: 6px 2px; text-decoration: none; transition: opacity 160ms ease; }
.lb-pill svg { width: 16px; height: 16px; color: #fff; transition: transform 220ms cubic-bezier(.3, 1.2, .4, 1); }
.lb-pill:hover { opacity: .85; }
.lb-pill:hover svg { transform: translateX(3px); }
.lb-pill:active svg { transform: translateX(1px); }
@media (max-width: 640px) {
  .sect-h2 { font-size: 21px; }
  .lb-pill { font-size: 12.5px; }
  .chal-head { margin: 22px 0 14px; }
}

/* Content-Löschen (19.07.): Kommentar / Story / Chat-Nachricht */
.cm-del { margin-left: auto; width: 22px; height: 22px; min-width: 0; padding: 0; border: 0; border-radius: 6px; background: none; color: #8E92B2; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.cm-del:hover { color: #ff6b6b; background: rgba(255,107,107,.1); }
.cm-del svg { width: 14px; height: 14px; }
.stv-del { margin-left: 10px; width: 34px; height: 34px; min-width: 0; padding: 0; border: 0; border-radius: 50%; background: rgba(10,12,20,.55); color: #ff8585; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.stv-del svg { width: 16px; height: 16px; }
.ag-m .ch-del { position: absolute; top: -7px; right: -7px; width: 18px; height: 18px; min-width: 0; padding: 0; border: 0; border-radius: 50%; background: rgba(20,20,30,.9); color: #8E92B2; font-size: 10px; line-height: 1; cursor: pointer; display: none; align-items: center; justify-content: center; }
.ag-m:hover .ch-del { display: inline-flex; }
.ag-m .ch-del:hover { color: #ff6b6b; }
.ag-m { position: relative; }
.ch-delnote { color: #8E92B2; font-size: 12.5px; }

/* ---------- Playground vor Signup (Winchester-GO 23.07.): Gast-Screen #/playground
   + Banner-Link im Gast-Feed. Sandro-Sprache: Panel-Flaechen, keine Borders. ---------- */
.pg-col { max-width: 680px; }
.pg-banner { display: flex; align-items: center; gap: 10px; background: var(--panel); border-radius: var(--radius); padding: 13px 16px; margin-bottom: 16px; color: var(--ink); text-decoration: none; font-size: 13.5px; transition: filter 130ms; }
.pg-banner:hover { filter: brightness(1.12); }
.pg-banner svg { width: 16px; height: 16px; color: var(--teal); flex: none; }
.pg-banner svg:last-child { margin-left: auto; color: var(--muted); }
.pg-actions { align-items: center; justify-content: space-between; }
.pg-note { color: var(--muted); font-size: 12.5px; }
.pg-out { display: block; width: 100%; max-height: 62vh; object-fit: contain; background: #12141d; border-radius: var(--radius-s); margin-top: 14px; }
.pg-limit { font-weight: 700; font-size: 14px; margin-top: 14px; }
.pg-cta { justify-content: flex-start; }
/* --- PLAYGROUND A (Winchester 27.07., Konzept A/Yamamoto): Prompt-Hero links,
   lebende Inspirations-Wand rechts (echte Gäste-Werke + kuratierte Beispiele) --- */
.pga { display: grid; grid-template-columns: minmax(320px, 440px) minmax(0, 1fr); gap: 34px; max-width: 1240px; margin: 0 auto; align-items: start; }
.pga-left { position: sticky; top: 76px; }
.pga-badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; background: var(--panel); font-size: 12px; font-weight: 600; color: var(--ink); }
.pga-badge svg { width: 13px; height: 13px; color: var(--mint); }
.pga-h { margin: 16px 0 0; font-size: clamp(34px, 3.4vw, 46px); line-height: 1.06; font-weight: 700; letter-spacing: -.01em; }
.pga-h em { font-style: normal; font-family: "Playfair Display", serif; font-weight: 500; color: var(--mint); letter-spacing: .01em; }
.pga-sub { margin: 12px 0 20px; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.pga-labrow { display: flex; align-items: baseline; justify-content: space-between; }
.pga-count { color: var(--muted); font-size: 11.5px; }
.pg-inwrap { position: relative; }
.pg-in { font-size: 15px; padding: 16px 46px 16px 16px; border-radius: 14px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); transition: box-shadow .25s ease; resize: vertical; }
.pg-in:focus { box-shadow: 0 0 0 1.5px rgba(169, 243, 225, .55), 0 0 34px rgba(169, 243, 225, .12); outline: none; }
.pg-spark { position: absolute; top: 14px; right: 14px; pointer-events: none; }
.pg-spark svg { width: 18px; height: 18px; color: var(--mint); filter: drop-shadow(0 0 8px rgba(169, 243, 225, .6)); animation: pgSpark 2.6s ease-in-out infinite; }
@keyframes pgSpark { 0%, 100% { opacity: .55; transform: scale(1); } 50% { opacity: 1; transform: scale(1.15); } }
.pg-go { min-width: 170px; height: 48px; font-size: 15px; transition: transform .18s ease, box-shadow .18s ease; }
.pg-go:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(255, 255, 255, .16); }
.pg-apx { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 12.5px; color: var(--muted); }
.pg-apx b { color: var(--mint); }
.pg-apx svg { width: 15px; height: 15px; color: var(--mint); flex: none; }
.pga-go { width: 100%; margin-top: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.pga-go svg { width: 15px; height: 15px; }
.pga-notes { margin-top: 10px; }
.pga-exlab { margin-top: 22px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pga-exs { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.pga-exbtn { display: flex; align-items: center; gap: 9px; text-align: left; padding: 11px 13px; border-radius: 12px; background: var(--panel); color: var(--ink); font-size: 12.5px; line-height: 1.35; transition: filter 130ms, transform 130ms; }
.pga-exbtn:hover { filter: brightness(1.14); transform: translateY(-1px); }
.pga-exbtn svg { width: 13px; height: 13px; color: var(--mint); flex: none; }
.pga-wall { columns: 3 200px; column-gap: 14px; }
.pga-card { position: relative; break-inside: avoid; margin: 0 0 14px; border-radius: 14px; overflow: hidden; background: var(--panel); box-shadow: 0 0 0 1px rgba(255, 255, 255, .05); transition: transform .22s ease, box-shadow .22s ease; }
.pga-card:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(0, 0, 0, .45), 0 0 0 1.5px rgba(169, 243, 225, .45); }
.pga-imgw { position: relative; }
.pga-imgw img { display: block; width: 100%; }
.pga-live { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(10, 12, 22, .72); backdrop-filter: blur(8px); color: var(--mint); font-size: 10.5px; font-weight: 700; }
.pga-live svg { width: 11px; height: 11px; }
.pga-use { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: #14141e; font-size: 11px; font-weight: 700; opacity: 0; transform: translateY(4px); transition: opacity .22s ease, transform .22s ease; pointer-events: none; }
.pga-use svg { width: 12px; height: 12px; }
.pga-card:hover .pga-use { opacity: 1; transform: none; }
.pga-card figcaption { padding: 10px 12px 12px; font-size: 11.5px; line-height: 1.45; color: rgba(255, 255, 255, .82); }
.pga-hit { position: absolute; inset: 0; background: none; border: 0; cursor: pointer; }
@media (max-width: 900px) {
  .pga { grid-template-columns: 1fr; gap: 24px; }
  .pga-left { position: static; }
  .pga-wall { columns: 2 160px; }
}

/* --- QUIET STAGE Profil (Konzept p07/yoruichi, Vergleichs-Variante 27.07.):
   Avatar auf offener Bühne, Name als XXL-Serifen-Typo dahinter --- */
.qs { position: relative; min-height: calc(100vh - 28px); padding-bottom: 46px; }
.qs-hero { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(20px, 4vh, 44px) 16px 8px; }
.qs-nameline { display: flex; align-items: center; justify-content: center; width: 100%; min-width: 0; }
.qs-n { z-index: 1; font-family: "Playfair Display", serif; font-weight: 500; font-size: clamp(40px, 7.6vw, 112px); line-height: .95; letter-spacing: .015em; color: var(--mint); text-transform: uppercase; white-space: nowrap; text-shadow: 0 0 44px rgba(169, 243, 225, .18); }
.qs-avw { position: relative; z-index: 2; flex: none; width: clamp(110px, 14.5vw, 200px); height: clamp(110px, 14.5vw, 200px); margin: 0 clamp(-22px, -1.2vw, -10px); border-radius: 50%; padding: 4px; background: #10121e; box-shadow: 0 0 0 2px rgba(169, 243, 225, .8), 0 0 54px rgba(169, 243, 225, .25), 0 18px 44px rgba(0, 0, 0, .5); }
.qs-av { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; background: #181a28; }
.qs-avi { display: flex; align-items: center; justify-content: center; font-family: "Playfair Display", serif; font-size: clamp(40px, 5vw, 72px); color: var(--mint); }
.qs-idrow { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; font-size: 16.5px; font-weight: 600; }
.qs-bio { margin: 9px 0 0; max-width: 460px; color: var(--muted); font-size: 12.8px; line-height: 1.55; }
.qs-follow { position: absolute; right: clamp(16px, 6vw, 96px); top: 58%; display: inline-flex; align-items: center; gap: 9px; padding: 10px 20px; border-radius: 999px; background: none; color: #fff; font-size: 13px; font-weight: 600; box-shadow: 0 0 0 1.2px rgba(255, 255, 255, .4); transition: background .2s ease, color .2s ease; text-decoration: none; }
.qs-follow svg { width: 14px; height: 14px; }
.qs-follow:hover, .qs-follow.is { background: #fff; color: #14141e; }
.qs-follow b { color: inherit; }
.qs-stats { display: flex; margin-top: clamp(16px, 3vh, 30px); }
.qs-stats > div { padding: 0 clamp(20px, 3.4vw, 46px); }
.qs-stats > div + div { border-left: 1px solid rgba(255, 255, 255, .14); }
.qs-stats b { display: block; font-family: "Playfair Display", serif; font-weight: 500; font-size: clamp(24px, 2.6vw, 36px); color: var(--mint); letter-spacing: .04em; }
.qs-stats span { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }
.qs-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(130px, 21vw, 226px); grid-auto-flow: dense; gap: 12px; margin-top: clamp(14px, 2.6vh, 26px); }
.qs-it { position: relative; display: block; border-radius: 10px; overflow: hidden; background: var(--panel-2); }
.qs-it.s2 { grid-column: span 2; }
.qs-it img { width: 100%; height: 100%; object-fit: cover; transition: filter .25s ease; }
.qs-it:hover img { filter: brightness(1.12); }   /* Sandro-Regel: keine Bewegung auf Profil-Thumbs */
.qs-it .icv-bdg { position: absolute; top: 8px; right: 8px; }
.qs-empty { margin: 60px auto; }
.qs-view { position: fixed; right: 30px; bottom: 30px; z-index: 40; }
@media (max-width: 640px) {
  .qs-follow { position: static; margin-top: 14px; }
  .qs-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 132px; }
  .qs-view { right: 12px; bottom: 84px; }
  .qs-view button span { display: none; }
  .qs-view button { padding: 8px 11px; }
}


/* ---------- Jojo-Testrunde 23.07.: Button-Konsistenz in Button-Reihen ----------
   .btn-primary bringt global margin-top:22px + eigene Höhe mit; neben .btn-ghost in
   einer Flex-Reihe (Login .lg-row, Modals .m-actions) standen die Paare deshalb
   verschieden groß und auf verschiedenen Höhen. In Reihen: EINE Höhe, EINE Form. */
.lg-row .btn-primary, .m-actions .btn-primary { margin-top: 0; }
.lg-row .btn-primary, .m-actions .btn-primary,
.lg-row .btn-ghost, .m-actions .btn-ghost {
  height: 46px; padding: 0 22px; border-radius: 999px;
  font-size: 14px; display: inline-flex; align-items: center; justify-content: center;
}
.lg-row, .m-actions { align-items: center; }

/* Story-Nutzerwechsel: Instagram-artiger Cube-Übergang (Jojo 23.07.) */
.stv-swap-l { animation: stvSwapL .42s cubic-bezier(.2,.7,.3,1); }
.stv-swap-r { animation: stvSwapR .42s cubic-bezier(.2,.7,.3,1); }
@keyframes stvSwapL {
  from { transform: perspective(1000px) rotateY(18deg) translateX(52%) scale(.9); opacity: .35; }
  to   { transform: none; opacity: 1; }
}
@keyframes stvSwapR {
  from { transform: perspective(1000px) rotateY(-18deg) translateX(-52%) scale(.9); opacity: .35; }
  to   { transform: none; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .stv-swap-l, .stv-swap-r { animation: none; } }

/* ---------- Jojo-Testrunde 2 (23.07.) ---------- */
/* Feed-Card: Caption sichtbar, 2 Zeilen geklemmt; #Hashtags klickbar in Mint */
.card-cap { padding: 0 14px 12px; font-size: 13.5px; line-height: 1.45; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cap-tag { color: var(--mint, #a9f3e1); font-weight: 600; }
.cap-tag:hover { text-decoration: underline; }
/* Post-Detail: Hashtag-/Kategorie-Chips sind Links */
a.tag:hover, a.statlink:hover { filter: brightness(1.25); text-decoration: none; }
/* Vote-Pill + Tip-Overlay ANKERN im Post (scrollen mit) statt fixed im Viewport */
.vsl.vsl-in { position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(.24); transform-origin: 50% 50%; }
.vsl.vsl-in.open { transform: translate(-50%, -50%) scale(1); }
.tipp.tipp-in { position: absolute; left: 50%; top: 50%; }
/* Discovery-Carousel: Multi-Step-Swipe animiert schneller */
.dcar-fast .dcard { transition-duration: .2s !important; }
/* Create-Post: Button-Reihe konsistent (wie .m-actions) */
.cre-actions { display: flex; gap: 10px; justify-content: flex-end; align-items: center; margin-top: 16px; }
.cre-actions .btn-primary { margin-top: 0; }
.cre-actions .btn-primary, .cre-actions .btn-ghost {
  height: 46px; padding: 0 22px; border-radius: 999px;
  font-size: 14px; display: inline-flex; align-items: center; justify-content: center; }
/* AI Lab: Engine-Karten brauchen Luft zur Panel-Kante (Auswahl-Ring klebte am Rand) */
.st-engines { padding: 20px 18px; }
.st-engines h3 { margin-bottom: 14px; }
/* Challenge-Preise strukturiert: Label | Wert | Typ | Dauer */
.chc-prow { flex-wrap: wrap; }
.chc-pval { width: 110px; flex: none; }
.chc-ptype { width: 118px; flex: none; }
.chc-pdur { width: 110px; flex: none; }
@media (max-width: 640px) { .chc-plab, .chc-pval, .chc-ptype, .chc-pdur { flex: 1 1 45%; width: auto; } }

/* ---------- APPICS-Kalender (Jojo 23.07.): gebrandeter Deadline-Picker statt
   nativem Browser-Kalender — Panel-Look, weiße Auswahl (Button-Sprache),
   Teal-Ring für heute, klappt im Flow unter dem Feld auf. ---------- */
#chalDl { cursor: pointer; }
.apxcal { background: var(--panel-2); border-radius: 16px; padding: 14px; margin-top: 8px; animation: calIn .16s ease; }
@keyframes calIn { from { opacity: 0; transform: translateY(-4px); } }
.apxcal-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.apxcal-h b { font-size: 14px; letter-spacing: .02em; }
.apxcal-nav { width: 30px; height: 30px; border-radius: 50%; background: var(--input); color: var(--ink); display: grid; place-items: center; transition: filter 130ms; }
.apxcal-nav:hover { filter: brightness(1.25); }
.apxcal-nav svg { width: 15px; height: 15px; }
.apxcal-w { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 10.5px; font-weight: 600; letter-spacing: .06em; color: var(--muted); margin-bottom: 4px; }
.apxcal-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.apxcal-d { height: 34px; border-radius: 50%; font-size: 12.5px; font-weight: 600; color: var(--ink); display: grid; place-items: center; transition: background 120ms, color 120ms; }
.apxcal-d:hover:not([disabled]) { background: var(--input); }
.apxcal-d[disabled] { color: var(--muted-2); opacity: .45; cursor: default; }
.apxcal-d.today { box-shadow: inset 0 0 0 1.5px var(--teal); }
.apxcal-d.sel { background: #fff; color: #14141e; box-shadow: none; }
.apxcal-clear { margin-top: 10px; font-size: 12px; font-weight: 600; color: var(--muted); transition: color 130ms; }
.apxcal-clear:hover { color: var(--ink); }

/* ---------- Editor "Mix & Post" (AI Lab, Prototyp 23.07.) ---------- */
.mx-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0 4px; }
@media (max-width: 700px) { .mx-slots { grid-template-columns: 1fr; } }
.mx-slot { background: var(--panel-2); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.mx-slot b { display: flex; align-items: center; gap: 7px; font-size: 13px; }
.mx-slot b svg { width: 16px; height: 16px; color: var(--teal); stroke-width: 2; }
.mx-slot span { font-size: 12px; color: var(--muted); }
.mx-slot .btn-ghost { align-self: flex-start; min-width: 0; padding: 6px 14px; font-size: 12px; }
#mxCv { width: 100%; height: auto; border-radius: 12px; background: #000; display: block; margin-top: 10px; }
.mx-tl { position: relative; margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.mx-track { position: relative; height: 42px; border-radius: 10px; background: #20222f; overflow: hidden; }
.mx-clip { position: absolute; inset: 4px; background: rgba(53, 208, 197, .2); border-radius: 8px; display: flex; align-items: center; padding: 0 12px; font-size: 11px; letter-spacing: .4px; color: #b8ecf1; }
.mx-wave { position: absolute; inset: 0; width: 100%; height: 100%; }
.mx-ph { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; border-radius: 1px; opacity: 0; pointer-events: none; }
/* Tonspur-Zoom (Sandro 17.08.): Maske steht, die Musik gleitet darunter; Kanten ziehbar */
.mx-audio { position: relative; height: 64px; border-radius: 15px; background: #171927; overflow: hidden; margin-top: 6px; cursor: grab; touch-action: none; user-select: none; }
.mx-audio:active { cursor: grabbing; }
.mx-audio .mx-wave { position: absolute; inset: 0; width: 100%; height: 100%; }
.mx-sel { position: absolute; top: 3px; bottom: 3px; border-radius: 10px; background: rgba(53, 208, 197, .08);
  box-shadow: inset 0 0 0 1.5px rgba(53, 208, 197, .85), 0 0 18px rgba(53, 208, 197, .22); pointer-events: none; }
.mx-selh { position: absolute; top: 0; bottom: 0; width: 16px; left: -8px; pointer-events: auto; cursor: ew-resize; display: flex; align-items: center; justify-content: center; }
.mx-selh.r { left: auto; right: -8px; }
.mx-selh::after { content: ""; width: 4px; height: 46%; border-radius: 3px; background: var(--teal); }
.mx-sellab { position: absolute; right: 7px; top: 5px; font-size: 10px; letter-spacing: .4px; color: #9ff1ea; background: rgba(8, 12, 18, .55); padding: 2px 7px; border-radius: 8px; white-space: nowrap; }
.mx-aph { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; border-radius: 1px; opacity: 0; pointer-events: none; transition: opacity 140ms ease; }
.mx-alab { margin: 6px 2px 0; font-size: 11px; color: var(--muted); }
/* Slider-Pillen (Sandro 17.08., Referenz-Screenshot): Label in der Zeile, Fuellung =
   Wert, Strich-Griff an der Kante, Punkte-Raster im Rest, Wert rechts */
.mx-row { position: relative; height: 46px; border-radius: 15px; background: #1d1f2b; margin-top: 10px; display: flex; align-items: center; overflow: hidden; font-size: 12.5px; }
.mx-row::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .13) 1.2px, transparent 1.7px); background-size: 38px 100%; background-position: 19px 50%; background-repeat: repeat-x; }
.mx-row .mx-fill { position: absolute; top: 0; bottom: 0; left: 0; width: var(--p, 0%); background: #223038; border-radius: 15px 0 0 15px; }
.mx-row .mx-stripe { position: absolute; top: 27%; bottom: 27%; width: 4px; border-radius: 3px; background: var(--teal);
  left: min(max(var(--p, 0%), 10px), calc(100% - 14px)); box-shadow: 0 0 8px rgba(53, 208, 197, .5); }
.mx-row label { position: relative; z-index: 2; padding-left: 16px; color: #cfd2e6; pointer-events: none; }
.mx-row input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: ew-resize; }
.mx-row input[type=checkbox] { position: relative; z-index: 2; margin-left: auto; accent-color: var(--teal); width: 17px; height: 17px; }
.mx-row output { position: relative; z-index: 2; margin-left: auto; padding: 0 16px 0 10px; text-align: right; font-variant-numeric: tabular-nums; color: #fff; font-weight: 600; pointer-events: none; }
.mx-toggle::before, .mx-toggle .mx-fill { display: none; }
.mx-toggle input[type=checkbox] { margin-right: 4px; }
.mx-toggle output { margin-left: 0; width: auto; color: var(--muted); font-weight: 400; }
.mx-row:focus-within { box-shadow: 0 0 0 1.5px rgba(53, 208, 197, .45); }
.mx-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; align-items: center; }
.mx-actions .btn-primary, .mx-actions .btn-ghost { min-width: 0; }

/* AI Lab — Music Studio */
.mus-track{ background:var(--panel-2); border-radius:var(--radius-s); padding:12px 14px; margin-top:12px; display:flex; gap:12px; align-items:flex-start; }
.mus-cover{ width:76px; height:76px; border-radius:12px; object-fit:cover; flex:none; } /* Suno-Cover (brandingfrei) */
.mus-body{ flex:1; min-width:0; }
.mus-track .mus-meta{ display:flex; justify-content:space-between; align-items:baseline; margin-bottom:8px; }
.mus-track .mus-meta b{ font-size:14px; }
.mus-track .mus-meta span{ color:var(--muted); font-size:12px; }
.mus-track audio{ width:100%; height:36px; }
.mus-track .m-actions{ margin-top:10px; }
.m-adv{ margin-top:12px; }
.m-adv summary{ cursor:pointer; color:var(--muted); font-size:12px; text-transform:uppercase; letter-spacing:.08em; padding:6px 0; }

/* ---------- 3D-Posts (23.07.): 360°-Viewer im Feed/Detail + Song-Leiste darunter ---------- */
.ph-3d{ position:relative; display:block; width:100%; }
.ph-3d .p3d-ph{ display:flex; align-items:center; justify-content:center; min-height:320px; color:var(--muted); background:var(--panel-2); }
.ph-3d .p3d-ph svg{ width:64px; height:64px; opacity:.5; }
.p3d-go{ position:absolute; left:50%; bottom:16px; transform:translateX(-50%); display:inline-flex; align-items:center; gap:8px;
  padding:10px 18px; border:0; border-radius:999px; background:rgba(20,20,30,.78); color:#fff; font-weight:600; font-size:13px;
  cursor:pointer; backdrop-filter:blur(8px); transition:background 130ms ease; }
.p3d-go:hover{ background:rgba(20,20,30,.94); }
.p3d-go svg{ width:16px; height:16px; }
.ph-3d model-viewer.mvp{ width:100%; height:100%; min-height:280px; display:block; background:var(--panel-2); --poster-color:transparent; }
.p3d-song{ display:flex; align-items:center; gap:10px; padding:10px 14px; background:var(--panel-2); border-radius:var(--radius-s); margin:10px 14px 0; }
.card .p3d-song{ margin:10px 14px 0; }
.post-hero + .p3d-song{ margin:12px 0 0; }
.p3d-song svg{ width:16px; height:16px; color:var(--muted); flex:none; }
.p3d-song span{ font-size:12px; color:var(--muted); white-space:nowrap; }
.p3d-song audio{ flex:1; min-width:0; height:36px; }
.p3d-att{ display:flex; align-items:center; gap:8px; cursor:pointer; }

/* Stale-SPA-Wächter: Reload-Leiste bei neuem Deploy */
.upd-bar{ position:fixed; left:50%; bottom:18px; transform:translateX(-50%); z-index:400; display:flex; align-items:center; gap:14px;
  background:var(--panel-2); padding:10px 12px 10px 18px; border-radius:999px; box-shadow:0 8px 30px rgba(0,0,0,.45); }
.upd-bar span{ font-size:13px; white-space:nowrap; }
.upd-bar .btn-primary{ margin:0; width:auto; min-width:0; padding:8px 16px; font-size:13px; }

/* AGENTS ACT Phase 1 (27.07.): Action-Buttons unter Agent-Bild-Nachrichten */
.aimg-acts { display: flex; gap: 8px; margin-top: 9px; flex-wrap: wrap; }
.aimg-b { background: #fff; color: #14141e; border: 0; border-radius: 999px; padding: 7px 14px; font-size: 12px; font-weight: 600; cursor: pointer; min-width: 0; }
.aimg-b:hover { filter: brightness(.9); }
.aimg-b:disabled { opacity: .6; cursor: default; }

/* ===== AGENTS ACT Welle 2 (27.07., Winchester "Go alle vier") ===== */
/* Karten (type acard) — Flows G+H */
.acard { background: var(--panel-2); border-radius: 14px; padding: 14px 16px; min-width: 240px; max-width: 360px; }
.ac-title { display: block; font-size: 14px; font-weight: 700; }
.ac-sub { display: block; font-size: 11px; opacity: .55; margin-top: 2px; }
.ac-big { font-size: 28px; font-weight: 800; color: var(--mint); margin: 8px 0 4px; letter-spacing: .5px; }
.ac-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.ac-row:last-of-type { border-bottom: 0; }
.ac-l { font-size: 11px; font-weight: 700; opacity: .6; flex: none; min-width: 34px; }
.ac-row em { font-style: normal; font-size: 12.5px; flex: 1; min-width: 0; }
a.ac-row:hover em { color: var(--mint); }
.ac-gen { flex: none; background: transparent; color: var(--mint); border: 1px solid var(--mint); border-radius: 999px; padding: 3px 10px; font-size: 10.5px; font-weight: 700; cursor: pointer; min-width: 0; }
.ac-gen:hover { background: var(--mint); color: #14141e; }
.ac-gen:disabled { opacity: .5; cursor: default; }
.ac-ctas { display: flex; gap: 8px; margin-top: 11px; flex-wrap: wrap; }
.ac-cta { background: #fff; color: #14141e; border: 0; border-radius: 999px; padding: 7px 14px; font-size: 12px; font-weight: 600; cursor: pointer; min-width: 0; }
.ac-cta:hover { filter: brightness(.9); }

/* Flow E: Create-Co-Pilot */
.copilot { background: var(--panel-2); border-radius: 14px; padding: 13px 15px; margin-top: 16px; }
.cp-head { display: flex; align-items: center; gap: 10px; }
.cp-head b { font-size: 12px; letter-spacing: 1.2px; flex: 1; }
.cp-orb { width: 22px; height: 22px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 32% 28%, #d8fff4, var(--mint) 45%, #3f8f7d 90%); box-shadow: 0 0 12px rgba(169,243,225,.45); }
.cp-go { background: #fff; color: #14141e; border: 0; border-radius: 999px; padding: 7px 14px; font-size: 12px; font-weight: 600; cursor: pointer; min-width: 0; }
.cp-go:disabled { opacity: .6; }
.cp-body { margin-top: 11px; }
.cp-wait { font-size: 12.5px; opacity: .6; padding: 4px 0; }
.cp-lab { font-size: 10.5px; font-weight: 700; letter-spacing: 1px; opacity: .55; margin: 10px 0 6px; }
.cp-cap { display: block; width: 100%; text-align: left; background: var(--panel); color: inherit; border: 0; border-radius: 10px; padding: 9px 12px; font-size: 12.5px; margin-bottom: 6px; cursor: pointer; min-width: 0; }
.cp-cap:hover { outline: 1px solid var(--mint); }
.cp-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cp-tag.on { background: var(--mint); color: #14141e; }
.cp-best { display: flex; align-items: center; gap: 8px; margin-top: 11px; font-size: 12.5px; }
.cp-best svg { width: 15px; height: 15px; color: var(--mint); flex: none; }
.cp-best span { opacity: .55; font-size: 11.5px; }

/* Flow F (27.07. von Discover in den Chat umgezogen): Novas Fundstuecke als
   Mini-Thumbnail-Grid in der Agent-Karte */
.ac-thumbs { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; margin: 4px 0 8px; padding-bottom: 2px; }
.ac-thumbs::-webkit-scrollbar { display: none; }
.ac-th { flex: none; width: 86px; height: 112px; border-radius: 10px; overflow: hidden; position: relative; }
.ac-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ac-th:hover img { filter: brightness(1.12); }
.ac-th span { position: absolute; left: 6px; right: 6px; bottom: 5px; font-size: 9.5px; font-weight: 600; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- DOCK: rechtes Aufklapp-Panel (Winchester 27.07., Canvas-Prinzip wie
   Mission Control / ChatGPT): Dokumente, Agent-Karten, Bilder, Webseiten. ---------- */
:root { --dockW: 440px; }
.dock { position: fixed; top: 0; right: 0; bottom: 0; width: var(--dockW); max-width: 100vw; z-index: 80;
  background: #1b1d2a; display: flex; flex-direction: column;
  transform: translateX(calc(100% + 12px)); transition: transform .34s cubic-bezier(.22,.9,.3,1), width .2s ease;
  box-shadow: -22px 0 48px rgba(0,0,0,.42); }
body.dockopen .dock { transform: none; }
.dock-head { display: flex; align-items: center; gap: 8px; padding: 14px 14px 10px 20px; }
.dock-title { flex: 1; min-width: 0; font-weight: 600; font-size: 15px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-b { width: 34px; height: 34px; min-width: 0; flex: none; border-radius: 10px; border: 0; padding: 0;
  background: #232537; color: #8E92B2; display: grid; place-items: center; cursor: pointer; text-decoration: none; }
.dock-b:hover { color: #fff; }
.dock-b svg { width: 17px; height: 17px; }
.dock-body { flex: 1; min-height: 0; overflow: auto; padding: 6px 20px 26px; }
.dock-body.web { display: flex; flex-direction: column; padding: 4px 12px 12px; }
.dock-body.web iframe { flex: 1; width: 100%; border: 0; border-radius: 14px; background: #fff; }
.dock-note { font-size: 11.5px; color: #8E92B2; padding: 8px 8px 0; flex: none; }
.dock-body.img { display: grid; align-content: start; justify-items: center; }
.dock-body.img img { max-width: 100%; border-radius: 14px; }
.dock-doc { font-size: 14.5px; line-height: 1.65; color: #d9dcee; }
.dock-doc h3 { margin: 18px 0 6px; font-size: 19px; }
.dock-doc h4 { margin: 15px 0 4px; font-size: 15px; color: #a9f3e1; }
.dock-doc p { margin: 8px 0; }
.dock-doc ul { margin: 8px 0; padding-left: 20px; }
.dock-doc .acard { max-width: none; }
/* Karte im Dock = Lese-Ansicht — interaktive Buttons leben im Chat (#chBody-Delegation) */
.dock-body .ac-dock, .dock-body .ac-gen, .dock-body .ac-ctas { display: none; }
.dock-tab { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 79;
  width: 26px; height: 76px; min-width: 0; padding: 0; border: 0; border-radius: 12px 0 0 12px;
  background: #232537; color: #a9f3e1; display: grid; place-items: center; cursor: pointer;
  box-shadow: -8px 0 22px rgba(0,0,0,.3); }
.dock-tab svg { width: 16px; height: 16px; }
/* max-width MUSS mitschrumpfen — margin-right allein verliert gegen die 1280px-Box
   (Grid-Track > max-width: der Rand laeuft ins Leere, Box ragt unters Panel) */
body.dockopen .main { max-width: min(1280px, calc(100% - var(--dockW) - 18px)); margin-right: calc(var(--dockW) + 18px); }
.msg-link { color: #a9f3e1; text-decoration: underline; text-underline-offset: 2px; word-break: break-all; }
.msg-dock { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; min-width: 0; padding: 5px 11px;
  border: 0; border-radius: 999px; background: rgba(169,243,225,.12); color: #a9f3e1;
  font-size: 11.5px; font-weight: 600; cursor: pointer; }
.msg-dock svg { width: 13px; height: 13px; }
.acard { position: relative; }
.ac-dock { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; min-width: 0; padding: 0;
  border: 0; border-radius: 9px; background: rgba(255,255,255,.06); color: #8E92B2;
  display: grid; place-items: center; cursor: pointer; }
.ac-dock:hover { color: #fff; }
.ac-dock svg { width: 14px; height: 14px; }
@media (max-width: 900px) {
  .dock { width: 100vw !important; }
  body.dockopen .main { margin-right: auto; max-width: 1280px; }
}

/* ================= VOICE-TUTORIAL + ADS (27.07.) ================= */
/* Kai-Orb (CSS-only, Mint->Violett wie die AI-Sphere) */
.tut-orb { width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 32% 28%, #d9fff4, #48c9b0 46%, #6b4ae0 92%);
  box-shadow: 0 0 18px rgba(169,243,225,.4); }
.tut-orb.big { width: 58px; height: 58px; }
#tut { position: fixed; inset: 0; z-index: 2000; pointer-events: none; }
#tut.tut-min .tut-hole, #tut.tut-min .tut-card { display: none; }
.tut-hole { position: fixed; border-radius: 14px; pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(6,10,18,.74), 0 0 0 2px rgba(169,243,225,.55), 0 0 26px rgba(169,243,225,.35);
  transition: left .28s ease, top .28s ease, width .28s ease, height .28s ease; }

/* ============ KAI-GLAS (Winchester-Order 13.08.) ============
   "Der ganze Bereich muss slick, sexy, Glas, Milchglas, durchgehend, nice,
   reflektierend, 3D." — EINE Oberflaeche fuer BEIDE Kaesten unten links:
   die Intro-Karte (.ksp-card) und die Tour-Karte (.tut-card).
   Grund #0F0F0F/#000 · Panel #1C1B1B · Schrift #FFF/#C4C4C4 · Akzent var(--mint).
   Tiefe entsteht aus vier Lagen, NICHT aus einem Farbverlauf:
     1 backdrop-filter blur+saturate  = echtes Milchglas
     2 halbtransparenter dunkler Grund = Panel-Ton, der den Hintergrund durchlaesst
     3 helle Innenkante oben (1px inset) = Glaskante, die Licht faengt
     4 weicher Schlagschatten nach unten = die Karte schwebt ueber der Seite      */
.tut-card, .ksp-card {
  position: fixed; pointer-events: auto; overflow: hidden; isolation: isolate;
  border-radius: 24px; color: #fff; padding: 18px 20px 14px;
  background:
    radial-gradient(160px 120px at 42px 40px, rgba(169,243,225,.13), rgba(169,243,225,0) 72%),
    linear-gradient(180deg, rgba(255,255,255,.055) 0%, rgba(255,255,255,0) 42%),
    linear-gradient(158deg, rgba(28,27,27,.80) 0%, rgba(15,15,15,.88) 62%, rgba(0,0,0,.90) 100%);
  -webkit-backdrop-filter: blur(28px) saturate(1.7);
  backdrop-filter: blur(28px) saturate(1.7);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.20),
    inset 0 0 0 1px rgba(255,255,255,.07),
    inset 0 -26px 46px -32px rgba(169,243,225,.22),
    0 2px 6px rgba(0,0,0,.45),
    0 26px 60px -22px rgba(0,0,0,.85);
}
/* Reflexion: ein sehr subtiler Glanzstreifen (max 14 % Weiss) wandert beim
   Erscheinen EINMAL ueber die Karte und bleibt danach ausserhalb stehen.
   Kein Discolicht, keine Dauerschleife. */
.tut-card::before, .ksp-card::before {
  content: ""; position: absolute; top: 0; left: -62%; width: 58%; height: 100%;
  pointer-events: none;
  background: linear-gradient(104deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.05) 36%,
    rgba(255,255,255,.14) 50%, rgba(255,255,255,.05) 64%, rgba(255,255,255,0) 100%);
}
.ksp-card::before, .tut-card.tut-in::before { animation: kaiSheen 1.1s cubic-bezier(.3,.05,.2,1) .18s both; }
@keyframes kaiSheen { from { transform: translateX(0); } to { transform: translateX(320%); } }
/* Lichtkante oben: dieselbe Linie wie der inset-Schatten, in der Mitte mintfarben
   angehaucht — das ist der Punkt, an dem Glas als Glas gelesen wird. */
.tut-card::after, .ksp-card::after {
  content: ""; position: absolute; top: 0; left: 16px; right: 16px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.5) 20%,
    rgba(169,243,225,.85) 50%, rgba(255,255,255,.5) 80%, rgba(255,255,255,0));
  opacity: .6;
}
/* 3D: die Karte kippt beim Einblenden leicht auf den Betrachter zu. */
@keyframes kaiIn {
  from { opacity: 0; transform: perspective(900px) translateY(18px) scale(.965) rotateX(7deg); }
  to   { opacity: 1; transform: perspective(900px) translateY(0) scale(1) rotateX(0deg); }
}
@keyframes kaiInC {
  from { opacity: 0; transform: translate(-50%,-50%) perspective(900px) translateY(18px) scale(.965) rotateX(7deg); }
  to   { opacity: 1; transform: translate(-50%,-50%) perspective(900px) translateY(0) scale(1) rotateX(0deg); }
}
/* Mobil ist die zentrierte Karte nur senkrecht zentriert (links/rechts 12px). */
@keyframes kaiInM {
  from { opacity: 0; transform: perspective(900px) translateY(calc(-50% + 18px)) scale(.965) rotateX(7deg); }
  to   { opacity: 1; transform: perspective(900px) translateY(-50%) scale(1) rotateX(0deg); }
}
.tut-card { left: 24px; bottom: 24px; width: min(430px, calc(100vw - 32px)); }
.tut-card.tut-in { animation: kaiIn .32s cubic-bezier(.22,1,.36,1) both; }
.tut-card.center { left: 50%; bottom: auto; top: 50%; transform: translate(-50%,-50%); }
.tut-card.center.tut-in { animation-name: kaiInC; }
/* Weg-zeigen-Moment (B4): der Einstieg liegt unten rechts (.live-fab) — die Karte
   raeumt nach oben, sonst deckt sie auf schmalen Schirmen genau das ab, worauf sie
   zeigt. */
.tut-card.tut-hi { bottom: auto; top: 22px; }
.tut-top { display: flex; align-items: center; gap: 11px; }
/* Kais Kugel sitzt IM Glas: Lichtpunkt oben links, Kernschatten unten rechts. */
.tut-card .tut-orb, .ksp-orb { position: relative;
  box-shadow: 0 0 24px rgba(169,243,225,.38), inset -4px -6px 13px rgba(0,0,0,.5),
    inset 3px 4px 11px rgba(255,255,255,.34); }
.tut-name { font-weight: 800; letter-spacing: .6px; font-size: 14px; color: #fff; }
.tut-role { font-size: 12px; color: #C4C4C4; }
/* Kais Stimme (Winchester 13.08.: "die Sprachwellen sind ein blasser Strich"):
   erkennbare Kapsel statt loser Striche. Ruhezustand = flache graue Balken,
   sobald Kai spricht (.on) atmen sie mintfarben mit Glow. */
.kai-wave { display: inline-flex; align-items: center; gap: 3px; flex: none;
  height: 26px; padding: 0 11px; border-radius: 999px;
  background: rgba(169,243,225,.07); box-shadow: inset 0 0 0 1px rgba(169,243,225,.15); }
.kai-wave i { width: 3px; height: 6px; border-radius: 2px; background: rgba(255,255,255,.3);
  transform-origin: 50% 50%; transition: background .2s ease, box-shadow .2s ease; }
.kai-wave i:nth-child(2) { height: 12px; animation-delay: .11s; }
.kai-wave i:nth-child(3) { height: 17px; animation-delay: .22s; }
.kai-wave i:nth-child(4) { height: 11px; animation-delay: .33s; }
.kai-wave i:nth-child(5) { height: 7px; animation-delay: .44s; }
.kai-wave.on i, .ksp-card .kai-wave i { background: var(--mint);
  box-shadow: 0 0 9px rgba(169,243,225,.55); animation: kaiWave 1.05s ease-in-out infinite; }
@keyframes kaiWave { 0%,100% { transform: scaleY(.42); } 50% { transform: scaleY(1.45); } }
.tut-wave { margin-left: auto; }
.tut-mute { width: 40px; height: 40px; flex: none; border: none; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; color: #fff;
  background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
  transition: background .14s ease, color .14s ease; }
.tut-mute:hover { background: rgba(169,243,225,.15); color: var(--mint); }
.tut-mute svg { width: 17px; height: 17px; }
.tut-text { font-size: 14px; line-height: 1.55; color: #C4C4C4; margin: 12px 0 14px; }
.tut-text b { color: #fff; }
.tut-acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
/* EINE Bedienhoehe, EINE Schriftgroesse, KEIN Umbruch (UI-LAWS 9 + Winchester 13.08.:
   "Start the tour" brach auf drei Zeilen). Ursache nachgemessen: ic() liefert SVGs
   ohne width/height — das Icon zog den Knopf ueber die Zeile, der Flex-Container
   schrumpfte ihn auf min-content (134px). Darum feste Icongroesse + nowrap. */
.tut-acts .btn-primary, .tut-acts .btn-ghost, .tut-acts .tut-skip,
.ksp-card .m-actions .btn-primary, .ksp-card .m-actions .btn-ghost {
  height: 40px; min-height: 40px; padding: 0 17px; margin: 0;
  width: auto; min-width: 0; max-width: none; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14px; border-radius: 999px; white-space: nowrap; }
.tut-acts .btn-primary svg, .tut-acts .btn-ghost svg,
.ksp-card .m-actions .btn-primary svg, .ksp-card .m-actions .btn-ghost svg {
  width: 16px; height: 16px; flex: none; }
.tut-acts .btn-ghost, .ksp-card .m-actions .btn-ghost {
  background: rgba(255,255,255,.07); color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.09); }
.tut-acts .btn-ghost:hover, .ksp-card .m-actions .btn-ghost:hover {
  background: rgba(255,255,255,.13); filter: none; }
.tut-acts .btn-primary, .ksp-card .m-actions .btn-primary {
  background: linear-gradient(180deg, #fff, #e9efec); color: #0F0F0F;
  box-shadow: 0 8px 20px -10px rgba(255,255,255,.5); }
/* Lade-Zustand des Weiter-Buttons (Winchester-Feedback 28.07. B2): solange die
   Ziel-Route nachlaedt, ist "Next" sichtbar gesperrt statt scheinbar bereit —
   sonst tippt man ein zweites Mal und ueberspringt einen Step. */
.tut-acts .btn-primary.tut-load { opacity: .55; cursor: progress; display: inline-flex; align-items: center; gap: 8px; }
.tut-spin { width: 12px; height: 12px; border-radius: 50%; flex: none;
  border: 2px solid rgba(16,19,28,.35); border-top-color: #10131c; animation: tutspin .7s linear infinite; }
@keyframes tutspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .tut-spin { animation: none; } }
/* Interaktiver Step (B1): "Next" wartet sichtbar auf die echte Aktion, darunter
   steht die Aufgabe — nach der Aktion wird daraus die Bestaetigung. */
.tut-acts .btn-primary.tut-wait { opacity: .45; cursor: not-allowed; }
.tut-hint { display: flex; gap: 7px; align-items: flex-start; margin-top: 12px;
  font-size: 12px; line-height: 1.45; color: var(--mint); }
.tut-hint::before { content: "\2192"; opacity: .8; }
.tut-hint.got { color: #7fe3a8; }
.tut-hint.got::before { content: "\2713"; }
.tut-skip { margin-left: auto; background: none; border: none; color: #C4C4C4; cursor: pointer; }
.tut-skip:hover { color: #fff; }
/* Fortschritt: Zahl links, mintfarbener Faden ueber die restliche Breite —
   der Kasten sagt auf einen Blick, wie weit die Tour ist. */
.tut-prog { display: flex; align-items: center; gap: 12px; margin-top: 14px;
  font-size: 12px; letter-spacing: .8px; color: #C4C4C4; white-space: nowrap; }
.tut-progbar { flex: 1 1 auto; height: 3px; border-radius: 99px; overflow: hidden;
  background: rgba(255,255,255,.1); }
.tut-progbar i { display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, rgba(169,243,225,.45), var(--mint));
  box-shadow: 0 0 10px rgba(169,243,225,.5);
  transition: width .38s cubic-bezier(.22,1,.36,1); }
/* Uma 20.08. "improve button": Text brach zweizeilig um, Play-Icon zu wuchtig —
   jetzt einzeilig (nowrap), Icon in dunkler Muenze, weicher Schatten + Hover-Lift */
.tut-resume { position: fixed; right: 18px; bottom: 18px; z-index: 2001; pointer-events: auto;
  background: var(--mint); color: #10131c; border: none; border-radius: 999px; padding: 9px 18px 9px 10px;
  font-weight: 700; font-size: 13.5px; letter-spacing: .2px; white-space: nowrap;
  display: inline-flex; gap: 9px; align-items: center; cursor: pointer;
  box-shadow: 0 8px 24px rgba(169,243,225,.22), 0 2px 8px rgba(0,0,0,.35);
  transition: transform 140ms ease, box-shadow 140ms ease; }
.tut-resume:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(169,243,225,.3), 0 3px 10px rgba(0,0,0,.4); }
.tut-resume:active { transform: translateY(0) scale(.97); }
.tut-resume svg { width: 13px; height: 13px; flex: none; box-sizing: content-box;
  padding: 7px; border-radius: 50%; background: #10131c; color: var(--mint); }
.tut-hello { text-align: center; }
.tut-hello .tut-orb { margin: 4px auto 12px; }
/* --- KAI SPOTLIGHT-INTRO (Winchester 28.07., Konzept k1) --- */
/* KEIN opacity mehr auf dem Overlay selbst (13.08.): ein Vorfahr mit opacity < 1
   ist ein eigener Backdrop-Root — die Karte haette durch ihr Milchglas nichts mehr
   zu sehen bekommen als die Abdunklung. Deshalb blenden die Kinder einzeln ein. */
.ksp { position: fixed; inset: 0; z-index: 460; }
.ksp-hole, .ksp-line { opacity: 0; transition: opacity .3s ease; }
.ksp.on .ksp-hole, .ksp.on .ksp-line { opacity: 1; }
.ksp-hole { position: fixed; border-radius: 18px; box-shadow: 0 0 0 200vmax rgba(5, 7, 14, .82), 0 0 0 2px rgba(169, 243, 225, .85), 0 0 44px 6px rgba(169, 243, 225, .38); animation: kspPulse 2.2s ease-in-out infinite; pointer-events: none; }
.ksp-hole.r { border-radius: 50%; }
@keyframes kspPulse {
  0%, 100% { box-shadow: 0 0 0 200vmax rgba(5, 7, 14, .82), 0 0 0 2px rgba(169, 243, 225, .85), 0 0 44px 6px rgba(169, 243, 225, .38); }
  50% { box-shadow: 0 0 0 200vmax rgba(5, 7, 14, .82), 0 0 0 3px rgba(169, 243, 225, 1), 0 0 66px 14px rgba(169, 243, 225, .55); }
}
.ksp-line { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; }
/* Der Faden zur Kugel (Winchester 13.08.: "duenne gestrichelte Linie ohne Wirkung"):
   Mint-Perlen, die zur Kugel wandern, mit Glow — sichtbar, aber edel. */
.ksp-line line { stroke: rgba(169, 243, 225, .8); stroke-width: 1.75; stroke-linecap: round;
  stroke-dasharray: 1.5 8; filter: drop-shadow(0 0 5px rgba(169, 243, 225, .7));
  animation: kspDash 1.1s linear infinite; }
.ksp-line circle { fill: var(--mint); filter: drop-shadow(0 0 9px rgba(169, 243, 225, .95));
  transform-box: fill-box; transform-origin: center; animation: kspDot 1.8s ease-in-out infinite; }
@keyframes kspDash { to { stroke-dashoffset: -19; } }
@keyframes kspDot { 0%, 100% { transform: scale(.7); opacity: .8; } 50% { transform: scale(1.25); opacity: 1; } }
/* Glas + Geometrie kommen aus dem gemeinsamen KAI-GLAS-Block weiter oben.
   Hier steht nur, was die Intro-Karte zusaetzlich braucht. */
.ksp-card { opacity: 0; transform: perspective(900px) translateY(16px) scale(.97) rotateX(6deg);
  transition: transform .34s cubic-bezier(.22, 1, .36, 1), opacity .28s ease; }
.ksp.on .ksp-card { opacity: 1; transform: perspective(900px) translateY(0) scale(1) rotateX(0deg); }
.ksp-card.center { left: 50% !important; top: 50% !important; width: min(400px, calc(100vw - 32px));
  transform: translate(-50%, -50%) perspective(900px) scale(.97) rotateX(6deg) !important; }
.ksp.on .ksp-card.center { transform: translate(-50%, -50%) perspective(900px) scale(1) rotateX(0deg) !important; }
.ksp-card h3 { margin: 11px 0 8px; font-size: 18px; font-weight: 700; color: #fff; letter-spacing: -.2px; }
.ksp-card p { margin: 0; font-size: 14px; line-height: 1.55; color: #C4C4C4; }
/* display:block, sonst bleibt der <span> inline und die Kugel misst 0x0 —
   in der Intro-Karte fehlte Kai dadurch komplett (nachgemessen 13.08.). */
.ksp-orb { display: block; width: 52px; height: 52px; }
.ksp-wave { margin: 14px 0 2px; }
.ksp-card .m-actions { margin-top: 14px; justify-content: flex-start; }
/* Der Mute-Hinweis ist eine ruhige Fusszeile, kein loser Absatz: durchgehendes
   Band bis an beide Glaskanten, abgesetzt durch eine Haarlinie. */
.ksp-foot { display: flex; align-items: center; gap: 9px; margin: 16px -20px -14px; padding: 11px 20px;
  border-top: 1px solid rgba(255,255,255,.08); background: rgba(0,0,0,.3);
  font-size: 12px; line-height: 1.35; color: #C4C4C4; }
.ksp-foot svg { width: 14px; height: 14px; flex: none; color: var(--mint); }
@media (prefers-reduced-motion: reduce) {
  .ksp-hole, .ksp-line line, .ksp-line circle, .kai-wave i { animation: none; }
  .tut-card, .ksp-card, .tut-card::before, .ksp-card::before { animation: none; }
  .ksp-card { transition: opacity .2s ease; transform: none; }
  .ksp.on .ksp-card { transform: none; }
}
.tut-hello p { color: #c7cbe0; font-size: 13.5px; line-height: 1.55; }
.tut-hello .m-actions { justify-content: center; }
.tut-hello .m-actions .btn-primary, .tut-hello .m-actions .btn-ghost { min-width: 0; width: auto; }
/* .tut-note entfernt 13.08.: der lose Absatz unter den Knoepfen ist jetzt die
   Fusszeile .ksp-foot — die Klasse hatte keinen Nutzer mehr. */
/* Learn-Hub */
.learn-head { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.learn-sub { color: #8E92B2; font-size: 13px; margin-top: 2px; }
.learn-reward { margin-left: auto; display: inline-flex; gap: 7px; align-items: center;
  background: rgba(255,209,102,.12); color: #ffd166; font-size: 12.5px; font-weight: 700;
  padding: 8px 14px; border-radius: 999px; white-space: nowrap; }
.learn-reward svg { width: 15px; height: 15px; }
.learn-acts { margin: 16px 0; }
.learn-acts .btn-primary, .learn-acts .btn-ghost { min-width: 0; width: auto; margin: 0; }
/* Journey-Pfad 20.08. (Konzept K2): vertikale Reise mit Verbindungslinie; aktueller
   Schritt aufgeklappt (YOU ARE HERE) mit Resume-Knopf, Belohnung = letzter Meilenstein. */
.learn-mute { min-width: 0; width: auto; margin-left: auto; }
.learn-path { position: relative; margin-top: 22px; max-width: 580px; }
.learn-path::before { content: ""; position: absolute; left: 19px; top: 10px; bottom: 26px;
  width: 2px; background: linear-gradient(180deg, rgba(53,208,197,.55), rgba(122,92,255,.3)); }
.lp-row { position: relative; display: flex; gap: 16px; padding-bottom: 24px; }
.lp-node { position: relative; z-index: 1; flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: #232537; display: grid; place-items: center; font-weight: 800; font-size: 14px;
  color: #cfd2e8; box-shadow: 0 0 0 5px var(--bg, #12141f); }
.lp-node svg { width: 16px; height: 16px; }
.lp-row.done .lp-node { background: rgba(169,243,225,.16); color: var(--mint); }
.lp-row.cur .lp-node { background: linear-gradient(135deg, #35d0c5, #7a5cff); }
.lp-dot { width: 12px; height: 12px; border-radius: 50%; background: #fff; animation: lpPulse 1.8s infinite; }
@keyframes lpPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.55); } 50% { box-shadow: 0 0 0 9px rgba(255,255,255,0); } }
.lp-body { padding-top: 2px; min-width: 0; }
.lp-body b { display: block; font-size: 14.5px; }
.lp-d { display: block; color: #8E92B2; font-size: 12.5px; line-height: 1.4; margin-top: 2px; }
.lp-here { display: inline-block; font-size: 9.5px; letter-spacing: .14em; font-weight: 800;
  color: #0b1220; background: linear-gradient(90deg, #35d0c5, #a9f3e1); padding: 2px 9px;
  border-radius: 999px; margin-bottom: 7px; }
.lp-row.cur .lp-body { flex: 1; background: #1b1d2a; border: 1px solid rgba(53,208,197,.28);
  border-radius: 16px; padding: 14px 16px; }
.lp-resume { min-width: 0; width: auto; margin: 12px 0 0; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.lp-resume svg { width: 15px; height: 15px; flex: none; }
.lp-go { background: none; border: none; padding: 0; margin-top: 7px; display: inline-flex;
  gap: 6px; align-items: center; color: var(--mint); font-size: 12.5px; font-weight: 700; cursor: pointer; }
.lp-go svg { width: 13px; height: 13px; }
.lp-row.lp-reward .lp-node { background: rgba(255,209,102,.14); color: #ffd166; }
.lp-reward.done .lp-node { background: rgba(169,243,225,.16); color: var(--mint); }
.learn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.learn-c { text-align: left; background: #1b1d2a; border: none; border-radius: 16px; padding: 16px;
  color: #e8ebf7; cursor: pointer; display: flex; flex-direction: column; gap: 6px; transition: background .13s; }
.learn-c:hover { background: #222437; }
.learn-c b { font-size: 14.5px; }
.learn-c > span:nth-of-type(2) { color: #8E92B2; font-size: 12.5px; line-height: 1.4; }
.lc-n { width: 30px; height: 30px; border-radius: 50%; background: #232537; display: grid;
  place-items: center; font-weight: 800; font-size: 13px; margin-bottom: 4px; }
.learn-c.done .lc-n { background: rgba(169,243,225,.16); color: var(--mint); }
.lc-go { margin-top: 6px; display: inline-flex; gap: 6px; align-items: center; color: var(--mint);
  font-size: 12.5px; font-weight: 700; }
.lc-go svg { width: 14px; height: 14px; }
/* .learn-banner entfernt 27.07. — Quests nutzt jetzt .hub-card (Konzept B) */
/* Listen-Button an Agent-Antworten */
.msg-say { display: inline-flex; align-items: center; gap: 6px; margin: 8px 0 0 6px;
  background: #232537; color: #c7cbe0; border: none; border-radius: 8px; padding: 6px 10px;
  font-size: 12px; cursor: pointer; }
.msg-say svg { width: 13px; height: 13px; }
.msg-say.saying { background: var(--mint); color: #10131c; }
/* Feed-Ad-Karte */
.ad-card { position: relative; }
.ad-tag { position: absolute; top: 12px; left: 12px; z-index: 2; background: rgba(10,12,20,.72);
  backdrop-filter: blur(6px); color: #c7cbe0; font-size: 11px; letter-spacing: .5px;
  padding: 4px 11px; border-radius: 999px; }
.ad-badge { position: absolute; right: 12px; top: 12px; z-index: 2; background: var(--mint);
  color: #10131c; font-weight: 800; font-size: 12px; padding: 5px 11px; border-radius: 999px; }
.ad-card .ph { position: relative; }
.ad-card .ph img.ph-main { width: 100%; display: block; aspect-ratio: 4/3; object-fit: cover; }
.ad-cf { align-items: center; }
.ad-brand { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; min-width: 0; }
.ad-brand span { color: #8E92B2; font-size: 12.5px; }
.ad-cta { margin-left: auto; min-width: 0; width: auto; padding: 9px 16px; text-decoration: none;
  display: inline-flex; align-items: center; flex: none; }
.ad-foot { padding: 0 14px 12px; font-size: 11px; color: #6d7191; }
/* Story-Ad-Frame */
.stv-adav { width: 34px; height: 34px; border-radius: 50%; background: #232537; display: grid;
  place-items: center; color: var(--mint); flex: none; }
.stv-adav svg { width: 16px; height: 16px; }
.stv-adcopy { position: absolute; left: 16px; right: 16px; bottom: 118px; text-align: center;
  font-size: 14.5px; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.7); z-index: 3; }
.stv-adcta { position: absolute; left: 50%; bottom: 64px; transform: translateX(-50%); z-index: 3;
  min-width: 0; width: auto; padding: 11px 26px; text-decoration: none; display: inline-flex; align-items: center; }
.stv-adfoot { position: absolute; bottom: 38px; width: 100%; text-align: center; font-size: 11px;
  color: rgba(255,255,255,.65); z-index: 3; }
/* Video-Pre-Roll */
.preroll { position: absolute; inset: 0; z-index: 6; background: #0c0f18; border-radius: inherit; overflow: hidden; }
.preroll > img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.pr-top { position: absolute; top: 10px; left: 10px; background: rgba(10,12,20,.72); padding: 5px 11px;
  border-radius: 8px; font-size: 12px; color: #e8ebf7; }
.pr-info { position: absolute; left: 12px; bottom: 12px; right: 130px; display: flex; flex-direction: column;
  gap: 2px; font-size: 13.5px; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.8); }
.pr-info span { font-size: 12px; color: #cfd3e8; }
.pr-skip { position: absolute; right: 12px; bottom: 12px; background: rgba(20,22,34,.88); color: #fff;
  border: none; border-radius: 8px; padding: 9px 15px; cursor: pointer; font-size: 12.5px; }
.pr-skip:disabled { opacity: .55; cursor: default; }
@media (max-width: 640px) {
  .tut-card { left: 12px; right: 12px; bottom: 12px; width: auto; }
  /* Auch die ZENTRIERTE Karte (kein Ziel auf dem Schirm): ohne diese Zeile schlaegt
     .tut-card.center mit left:50% durch, right:12px bleibt stehen — die Karte wurde
     auf die halbe Breite gequetscht (183px bei 390er Schirm, nachgemessen 13.08.). */
  .tut-card.center { left: 12px; right: 12px; top: 50%; bottom: auto; transform: translateY(-50%); }
  .tut-card.center.tut-in { animation-name: kaiInM; }
  .tut-resume { bottom: 84px; }  /* nicht unter FAB/Bottom-Nav */
  .learn-head { flex-wrap: wrap; }
  .learn-reward { margin-left: 0; }
}
.tut-hello .m-actions .btn-primary, .tut-hello .m-actions .btn-ghost { white-space: nowrap; }

/* ---------- Challenge-Create-Einstiege (Winchester-GO 27.07.): Pill auf der
   Discover-TOP-CHALLENGES-Karte + Button im All-Challenges-Board-Header.
   button.lb-pill: Reset, damit der Button exakt wie die <a>-Pills rendert. ---------- */
button.lb-pill { border: 0; background: none; cursor: pointer; font-family: inherit; }
.qx-head .chb-new {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: #14141e; border: 0; border-radius: 999px;
  padding: 10px 18px; font: 600 13.5px/1 'Inter', system-ui, sans-serif;
  cursor: pointer; transition: opacity 160ms ease, transform 130ms ease;
}
.qx-head .chb-new:hover { opacity: .9; }
.qx-head .chb-new:active { transform: scale(.985); }
.qx-head .chb-new svg { width: 15px; height: 15px; }
@media (max-width: 640px) { .qx-head .chb-new span { display: none; } .qx-head .chb-new { padding: 10px 12px; } }

/* ---------- APPICS SPIN (27.07.): Ticket-Reel, Pity-Leiste, Earn/Voucher-Panels.
   Rarity: common=Mint, mid=neutral, rare=Violett, jackpot=Gold. ---------- */
.spin-wrap { max-width: 980px; margin: 0 auto; }
.sp-head { display: flex; align-items: center; gap: 14px; }
.sp-head .page-h { margin-bottom: 0; }
.sp-tickets { margin-left: auto; background: var(--mint, #a9f3e1); color: #0c3f39; font-weight: 700; font-size: 14px; padding: 8px 16px; border-radius: 999px; }
.sp-pity { display: flex; align-items: center; gap: 14px; margin: 14px 0 10px; flex-wrap: wrap; }
.sp-pity-l { font-size: 13px; font-weight: 600; color: #ffd166; }
.sp-pity-l em { font-style: normal; color: #8e92b2; font-weight: 500; }
.sp-segs { display: flex; gap: 5px; }
.sp-seg { width: 26px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .08); }
.sp-seg.on { background: #ffd166; }
.sp-reel-wrap { position: relative; overflow: hidden; border-radius: 18px; background: #10111a; padding: 26px 0; margin-top: 8px; }
.sp-mark { position: absolute; left: 50%; top: 6px; bottom: 6px; width: 2px; background: var(--mint, #a9f3e1); z-index: 2; border-radius: 2px; box-shadow: 0 0 12px rgba(169, 243, 225, .8); }
.sp-reel { display: flex; gap: 10px; will-change: transform; padding-left: 12px; }
.sp-card { flex: none; width: 116px; height: 128px; border-radius: 14px; background: #1b1d2a; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 8px; }
.sp-card b { font-size: 11.5px; line-height: 1.25; font-weight: 600; }
.sp-ic svg { width: 30px; height: 30px; }
.sp-common .sp-ic svg { color: var(--mint, #a9f3e1); }
.sp-mid .sp-ic svg { color: #eef0f6; }
.sp-rare { background: #221d33; } .sp-rare .sp-ic svg { color: #b9a2ff; }
.sp-jackpot { background: linear-gradient(160deg, #2b2410, #1b1d2a 70%); box-shadow: inset 0 0 0 1px rgba(255, 209, 102, .5); }
.sp-jackpot .sp-ic svg { color: #ffd166; }
.sp-card.sp-win { box-shadow: 0 0 0 2px var(--mint, #a9f3e1), 0 0 22px rgba(169, 243, 225, .5); }
.sp-actions { display: flex; justify-content: center; margin: 16px 0 6px; }
.sp-actions .btn-primary { margin-top: 0; }
.sp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.sp-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line, rgba(255,255,255,.07)); }
.sp-row:last-child { border-bottom: 0; }
.sp-row > svg { width: 20px; height: 20px; color: var(--mint, #a9f3e1); flex: none; }
.sp-row > div { flex: 1; min-width: 0; }
.sp-row b { display: block; font-size: 13.5px; }
.sp-row span { display: block; font-size: 12px; color: #8e92b2; margin-top: 2px; }
.sp-claim { background: #fff; color: #14141e; border: 0; border-radius: 999px; padding: 8px 14px; font: 600 12.5px/1 'Inter', system-ui, sans-serif; cursor: pointer; flex: none; }
.sp-claim:hover { opacity: .9; }
.sp-done { font-size: 12px; color: #8e92b2; flex: none; }
.sp-exp { flex: none; font-size: 11.5px; font-weight: 600; color: #8e92b2; background: rgba(255, 255, 255, .06); padding: 5px 10px; border-radius: 999px; }
.sp-exp.urgent { color: #ff8a8a; background: rgba(255, 90, 90, .12); }
.sp-note { font-size: 11.5px; color: #8e92b2; margin: 12px 0 0; }
.sp-v-rare > svg { color: #b9a2ff; } .sp-v-jackpot > svg { color: #ffd166; }
.sp-result { text-align: center; padding: 6px 4px; }
.sp-result .sp-ic svg { width: 44px; height: 44px; }
.sp-result h3 { margin: 10px 0 2px; }
.sp-result b { font-size: 16px; }
.sp-result p { color: #8e92b2; font-size: 13px; }
.sp-result.sp-jackpot { background: none; box-shadow: none; }
.sp-result .m-actions { justify-content: center; }
.st-vban { display: flex; align-items: center; gap: 10px; background: rgba(169, 243, 225, .1); border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; font-size: 13px; }
.st-vban svg { width: 18px; height: 18px; color: var(--mint, #a9f3e1); flex: none; }
.spin-banner svg:first-child { color: #ffd166; }
@media (max-width: 700px) { .sp-cols { grid-template-columns: 1fr; } .sp-card { width: 96px; height: 112px; } }
/* .page-sub hat global margin-top -12px (für page-h mit 20px-Bottom) — im Spin-Header ist die h1 margin 0 */
.spin-wrap .page-sub { margin: 8px 0 14px; }

/* ===== SYNAPSE Gehirntraining — Warte-Overlay + Kai-Offer (27.07.) ===== */
.syn-ov { position: fixed; inset: 0; z-index: 1400; background: rgba(15,16,24,.55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.syn-ov iframe { width: 100%; height: 100%; border: 0; display: block; }
body.synopen .cfab { display: none; }
.syn-offer { position: fixed; right: 20px; bottom: 20px; z-index: 1200; background: #1b1d2a; border-radius: 18px; padding: 16px 18px; width: 320px; max-width: calc(100vw - 40px); box-shadow: 0 18px 50px rgba(0,0,0,.5); animation: synIn .32s cubic-bezier(.3,1.34,.42,1); }
@keyframes synIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.syn-offer .so-h { display: flex; align-items: center; gap: 8px; color: #12e6c8; font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.syn-offer .so-h svg { width: 16px; height: 16px; }
.syn-offer .so-t { color: #c9cbdd; font-size: 13.5px; line-height: 1.45; }
.syn-offer .so-b { display: flex; gap: 10px; margin-top: 12px; }
.syn-offer .so-b .btn-primary { min-width: 0; width: auto; margin: 0; padding: 9px 18px; font-size: 13px; }
.syn-offer .so-no { background: none; border: 0; color: #8E92B2; font-size: 13px; cursor: pointer; padding: 9px 10px; }
@media (max-width: 640px) { .syn-offer { right: 12px; left: 12px; width: auto; bottom: 84px; } }

/* ============ CHAT DOCKED WORKSPACE (CW10 byakuya) + THUMB SHEET mobil (CM01 kisuke), 27.07. ============
   Chat dockt als Overlay RECHTS ueber die aktuelle Seite (~55%-Split): Threads | Konversation | Inspector.
   Mobil: Bottom-Sheet mit einem Gespraech — Griff hochziehen = Vollbild. */
:root { --chwkW: min(clamp(880px, 55vw, 1200px), calc(100vw - 96px)); }
.chwk { position: fixed; top: 0; right: 0; bottom: 0; width: var(--chwkW); z-index: 78;
  display: flex; flex-direction: column; background: var(--panel); border-left: 1px solid var(--line);
  box-shadow: -26px 0 60px rgba(0,0,0,.5);
  transform: translateX(103%); transition: transform 320ms cubic-bezier(.32,.72,.28,1); visibility: hidden; }
body.chwkopen .chwk { transform: none; visibility: visible; }
body.chwkopen .main { max-width: none; margin: 0 calc(var(--chwkW) + 14px) 0 0; }
.chwk-grip { display: none; }
/* Sandro 28.07.: zweispaltig — Konversation LINKS, Thread-Liste RECHTS (order dreht die DOM-Reihenfolge) */
.chwk-cols { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 288px; position: relative; }
.chwk .ch-side { order: 2; border-radius: 0; border-left: 1px solid var(--line); overflow-y: auto; }
.chwk .ch-main { order: 1; }
.chwk-lh { display: flex; align-items: center; justify-content: space-between; padding: 14px 8px 2px 16px; }
.chwk-lh b { font-size: 14px; letter-spacing: .01em; }
.chwk .ch-main { border-radius: 0; background: var(--bg); }
.chwk .ch-head { gap: 10px; }
.ch-hav { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: none; }
.chwk .ch-who { flex: 1; min-width: 0; }
.chwk .ch-live { margin-left: 0; flex: none; }
/* Agent-Stack im Konversations-Head (K/N/A) + Dropdown */
.ch-agstack { position: relative; flex: none; }
.ch-agmini { display: flex; align-items: center; padding: 5px 9px; border-radius: 999px; background: var(--panel-2); }
.agm { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 11px;
  font-weight: 800; color: #fff; border: 2px solid var(--panel); margin-left: -7px; opacity: .4; overflow: hidden; }
.agm:first-child { margin-left: 0; }
.agm.on { opacity: 1; box-shadow: 0 0 0 1.5px rgba(53,208,197,.55); }
.ch-agmini > svg { width: 13px; height: 13px; margin-left: 5px; color: var(--muted); }
.ch-agdrop { position: absolute; top: calc(100% + 10px); right: 0; z-index: 40; width: 264px;
  background: var(--panel-2); border-radius: 16px; padding: 8px 12px 12px; box-shadow: 0 18px 44px rgba(0,0,0,.55); }
.ch-inbox { display: none; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; flex: none;
  border: 1px solid rgba(53,208,197,.55); color: var(--mint); font-size: 12.5px; font-weight: 600; background: transparent; }
.ch-inbox svg { width: 14px; height: 14px; }
.ch-infob { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--panel-2); color: var(--muted); flex: none; }
.ch-infob:hover { color: #fff; }
.ch-infob svg { width: 16px; height: 16px; }
/* Inspector (Details | Docs): Sandro 28.07. — nie dauerhaft sichtbar, nur als Overlay via Icon (#chInfoBtn) */
.chwk .ch-insp { display: none; flex-direction: column; min-height: 0; background: var(--panel);
  position: absolute; top: 0; right: 0; bottom: 0; width: min(340px, 86vw); z-index: 6;
  border-left: 1px solid var(--line); box-shadow: -18px 0 40px rgba(0,0,0,.45); }
.chwk.insp-on .ch-insp { display: flex; }
.ci-x { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none;
  background: transparent; color: var(--muted); }
.ci-x:hover { color: #fff; background: var(--panel-2); }
.ci-x svg { width: 15px; height: 15px; }
.ci-tabs { display: flex; gap: 6px; padding: 12px 14px 8px; flex: none; align-items: center; }
.ci-tab { flex: 1; padding: 8px 10px; border-radius: 10px; background: transparent; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.ci-tab.on { background: var(--panel-2); color: #fff; }
.ci-body { flex: 1; min-height: 0; overflow-y: auto; padding: 6px 16px 18px; }
.ci-empty { font-size: 12.5px; color: var(--muted-2); line-height: 1.65; padding: 10px 2px; }
.ci-card { text-align: center; padding: 16px 6px 8px; }
.ci-card img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; }
.ci-gav { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto;
  background: linear-gradient(135deg, rgba(53,208,197,.25), rgba(53,208,197,.06)); }
.ci-gav svg { width: 30px; height: 30px; color: var(--teal); }
.ci-card b { display: block; margin-top: 10px; font-size: 15.5px; }
.ci-card > span { display: block; font-size: 11.5px; color: var(--teal); margin-top: 2px; }
.ci-prof { display: inline-block; margin-top: 12px; font-size: 12px; font-weight: 600; padding: 7px 15px;
  border-radius: 999px; background: var(--panel-2); color: #fff; }
.ci-prof:hover { background: var(--input); }
.ci-sec { font-size: 10px; letter-spacing: .12em; color: var(--muted-2); margin: 16px 0 6px; display: flex; justify-content: space-between; }
.ci-sec em { font-style: normal; color: var(--teal); }
.ci-list { display: flex; flex-direction: column; gap: 2px; }
.ci-mem { display: flex; align-items: center; gap: 9px; padding: 6px 2px; font-size: 13px; }
.ci-mem img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.ci-ag { display: flex; align-items: center; gap: 9px; padding: 7px 2px; }
.ci-agav { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 14px; color: #fff; flex: none; overflow: hidden; }
.ci-agav img, .agm img { width: 100%; height: 100%; }
.ci-agt { flex: 1; min-width: 0; }
.ci-agt b { display: block; font-size: 13px; }
.ci-agt span { font-size: 10.5px; color: var(--muted-2); }
.agt-sw { width: 38px; height: 22px; border-radius: 999px; background: var(--input); position: relative; flex: none;
  transition: background 140ms; padding: 0; }
.agt-sw i { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: #8e92b2; transition: transform 160ms, background 140ms; }
.agt-sw.on { background: rgba(53,208,197,.35); }
.agt-sw.on i { transform: translateX(16px); background: var(--mint); }
.ci-hint { font-size: 11px; color: var(--muted-2); line-height: 1.55; margin-top: 8px; }
.ci-doc { margin-top: 4px; }
.ci-doc img { max-width: 100%; border-radius: 12px; }
.ci-doc.web iframe { width: 100%; height: 46vh; border: 0; border-radius: 12px; background: #fff; }
.ci-body .dock-note { padding: 8px 0 0; }
.ci-body .dock-note a { color: var(--teal); }
.ci-docit { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 8px;
  border-radius: 10px; font-size: 12.5px; color: var(--muted); }
.ci-docit.on, .ci-docit:hover { background: var(--panel-2); color: #fff; }
.ci-docit svg { width: 14px; height: 14px; flex: none; }
.ci-docit span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* (Sandro 28.07.: keine feste Inspector-Spalte mehr — Overlay-Regeln oben gelten auf allen Desktop-Breiten) */
/* ---- CM01 THUMB SHEET (mobil): Bottom-Sheet, Griff, eine Ebene je Zustand ---- */
@media (max-width: 640px) {
  :root { --chwkW: 100vw; }
  .chwk { left: 0; right: 0; top: auto; bottom: 0; width: 100%; height: 76dvh; border-left: 0;
    border-radius: 22px 22px 0 0; box-shadow: 0 -18px 50px rgba(0,0,0,.55);
    transform: translateY(105%); transition: transform 300ms cubic-bezier(.32,.72,.28,1), height 220ms ease, border-radius 220ms ease; }
  body.chwkopen .chwk { transform: none; }
  .chwk.full { height: 100dvh; border-radius: 0; }
  .chwk-grip { display: grid; place-items: center; height: 24px; flex: none; touch-action: none;
    background: transparent; border: 0; padding: 0; width: 100%; cursor: grab; }
  .chwk-grip i { width: 44px; height: 4.5px; border-radius: 3px; background: rgba(255,255,255,.22); }
  .chwk-cols { display: block; }
  .chwk .ch-side { position: absolute; inset: 0; border-left: 0; }
  .chwk .ch-main { display: none; position: absolute; inset: 0; }
  .chwk.conv-on .ch-main { display: flex; }
  .chwk.conv-on .ch-side { display: none; }
  .chwk .ch-insp { display: none !important; }
  .chwk .ch-infob { display: none; }
  .chwk .ch-inbox { display: inline-flex; }
  .chwk .ch-back { display: none; }
  .chwk .ch-agdrop { position: fixed; left: 12px; right: 12px; top: auto; width: auto; }
  body.chwkopen .main { margin: 0; }
  body.chwkopen .cfab { display: none; }
}

/* ============ MESSENGER VIEW (Sandro-Figma 95:855, 28.07.) ============
   Eigener View statt Dock: zentrierte 3-Panel-Karte (361 Threads | flex Konversation | 361 Profil),
   r24, auf --bg. Figma-Werte: Suchpill #26252d h40 r44 · Tabs-Pill #26252d, aktiv hell #f0f0f2/#151520 ·
   Row-Aktiv rgba(38,37,45,.6)+Border-links #86f4da · Bubbles 14px r14 weiss/#3f374d mit Tail-Assets ·
   Profil: Avatar 115, Name 24, View-Profile 135x40 Border weiss, Links @weiss/site #86f4da. */
.msgr { position: relative; display: grid; grid-template-columns: 361px minmax(0, 1fr) 361px;
  /* Sandro R7 29.07.: +20px hoeher, unterer Abstand bleibt */
  max-width: 1306px; margin: 10px auto 18px; height: min(806px, calc(100dvh - 130px)); min-height: 540px;
  /* Sandro 28.07. R2: Karte vertikal ZENTRIERT im Viewport (mitte/mitte statt oben angeklebt) */
  border-radius: 24px; overflow: hidden; background: #1d1c26; border: 1px solid #000;
  box-shadow: 0 30px 60px rgba(0,0,0,.45), 0 100px 80px rgba(0,0,0,.08); }
@media (min-width: 641px) {
  /* Sandro R4: Chat-Bereich BREITER — .main-1280er-Deckel fuer den Messenger anheben.
     R6 29.07.: NICHT angedockt — unten derselbe Abstand wie links/rechts (34px = .main-Seitenpadding),
     Karte sitzt unten mit sichtbaren runden Ecken, Abstand oben bleibt (margin-top:auto). */
  body:has(#msgr) .main { display: flex; flex-direction: column; min-height: 100dvh; padding-bottom: 34px; max-width: 1680px; }
  /* Winchester 07.08.: Karte war unten angeklebt (margin-top:auto) — jetzt vertikal mittig */
  .msgr { margin: auto; width: 100%; max-width: 1560px; }
}
.msgr .ch-side { border-radius: 0; display: flex; flex-direction: column; overflow: hidden; padding: 0;
  background: linear-gradient(2deg, rgba(25,13,44,.35) 0%, rgba(46,34,67,0) 55%), #1b1b23; }
.msgr-top { display: flex; align-items: center; gap: 12px; padding: 19px; flex: none;
  border-bottom: 1px solid rgba(255,255,255,.08); }
.msgr .ch-search.msgr-search { flex: 1; margin: 0; background: #26252d; border-radius: 44px; height: 40px; padding: 0 15px; }
.msgr .msgr-search input { color: #fff; font-size: 13px; letter-spacing: .26px; }
.msgr .msgr-search input::placeholder { color: rgba(255,255,255,.5); }
.msgr-plus { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1.26px solid rgba(255,255,255,.2);
  background: transparent; color: #fff;
  display: grid; place-items: center; cursor: pointer; transition: background .3s ease; }
/* Sandro 28.07. R2: "+" als SVG statt Text-Glyph — Font-Baseline sass nie exakt mittig im Kreis */
.msgr-plus svg { width: 17px; height: 17px; display: block; }
.msgr-plus:hover { background: rgba(255,255,255,.08); }
/* ===== Segmented Tabs = EINE Komponente (Sandro 29.07.: "Komponenten wiederverwenden") =====
   Kanon: .seg > .seg-tab. Der Messenger (Direct|Group) und das AI Lab (Type/Model)
   teilen sich dieselben Regeln — Aliase .msgr-tabs/.mtab und .stx-seg bleiben nur als
   JS-/Layout-Haken bestehen. Neue Tab-Umschalter IMMER mit .seg bauen, nie neu erfinden. */
.seg, .msgr-tabs, .stx-seg { display: flex; padding: 6px; background: #26252d; border-radius: 50px; flex: none; }
.seg-tab, .mtab, .stx-seg button { flex: 1; min-width: 0; border: 0; cursor: pointer;
  padding: 9px 15px 10px; border-radius: 40px; background: transparent; font-size: 14px; font-weight: 500;
  letter-spacing: .28px; color: rgba(179,179,179,.65); transition: background .3s ease, color .3s ease; }
.seg-tab:hover, .mtab:hover, .stx-seg button:hover { color: #fff; }
.seg-tab.on, .mtab.on, .stx-seg button.on { background: #f0f0f2; color: #151520; }
.msgr-tabs { margin: 21px 19px 0; }
.msgr-list { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 0 14px; margin-top: 13px; }  /* Sandro R8: +5px Luft zu den Tabs */
.msgr.tab-group #chThreads { display: none; }
.msgr:not(.tab-group) #chGroups { display: none; }
/* Sandro 16.08.: dritter Tab AGENTS (Default) — Kai/Nova/Atlas als eigene 1:1-Threads */
.msgr.tab-agents #chThreads { display: none; }
.msgr:not(.tab-agents) #chAgents { display: none; }
/* Agent-Dock (Winchester-Voice 23.08.): im Direct-Tab bleiben die Agents RECHTS
   angedockt statt zu verschwinden — Menschen + Agents kombinierbar */
.ag-dock { position: absolute; right: 373px; top: 50%; transform: translateY(-50%); z-index: 6;
  display: none; flex-direction: column; align-items: center; gap: 11px; padding: 12px 8px;
  background: rgba(29,28,38,.92); border: 1px solid var(--line); border-radius: 999px;
  box-shadow: 0 12px 34px rgba(0,0,0,.4); backdrop-filter: blur(6px); }
.msgr:not(.tab-agents):not(.tab-group) .ag-dock { display: flex; }
.agd-lab { font-size: 8.5px; letter-spacing: .14em; color: var(--muted); font-weight: 800; }
.agd-btn { position: relative; width: 42px; height: 42px; border-radius: 50%; padding: 0; border: 0;
  cursor: pointer; background: none; box-shadow: 0 0 0 2px rgba(53,208,197,.3); transition: transform .18s ease, box-shadow .18s ease; }
.agd-btn:hover { transform: scale(1.08); box-shadow: 0 0 0 2px rgba(53,208,197,.7), 0 0 18px rgba(53,208,197,.25); }
.agd-btn img, .agd-btn > span { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: grid; place-items: center; color: #fff; font-weight: 700; }
.agd-badge { position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px;
  background: var(--brandteal); color: #06231f; font-size: 9.5px; font-weight: 800; font-style: normal; display: grid; place-items: center; }
.agd-badge:empty { display: none; }
@media (max-width: 1240px) { .ag-dock { right: 12px; } }
@media (max-width: 640px) { .ag-dock { display: none !important; } }
/* Agent-Welten (Winchester 23.08.): Dashboard-Streifen im Agenten-Chat — je Agent
   seine Bereiche mit echten API-Zahlen, Akzentfarbe je Agent */
.ag-world { display: flex; gap: 10px; padding: 12px 16px 4px; overflow-x: auto; flex: none; }
.agw-card { flex: 1 1 0; min-width: 195px; background: rgba(38,37,45,.55); border: 1px solid var(--line);
  border-radius: 14px; padding: 10px 13px; }
.ag-world.a-guide .agw-card { border-color: rgba(15,208,192,.28); }
.ag-world.a-creative .agw-card { border-color: rgba(179,136,255,.3); }
.ag-world.a-strategy .agw-card { border-color: rgba(255,209,102,.3); }
.agw-h { display: flex; align-items: center; gap: 7px; }
.agw-h svg { width: 13px; height: 13px; color: var(--mint); flex: none; }
.agw-h b { font-size: 12px; }
.agw-h span { margin-left: auto; color: var(--muted); font-size: 10.5px; white-space: nowrap; }
.agw-thumbs { display: flex; gap: 6px; margin: 8px 0 2px; }
.agw-thumbs a { width: 44px; height: 44px; border-radius: 10px; overflow: hidden; flex: none;
  box-shadow: 0 0 0 1px var(--line); }
.agw-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.agw-big { font-size: 19px; font-weight: 800; margin: 7px 0 0; color: var(--mint); }
.agw-line { margin: 7px 0 0; color: var(--muted); font-size: 11.5px; line-height: 1.45;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agw-go { display: inline-flex; align-items: center; gap: 4px; margin: 7px 10px 0 0; padding: 0; border: 0;
  background: none; color: var(--brandteal); font-size: 11.5px; font-weight: 700; cursor: pointer; }
.agw-go svg { width: 12px; height: 12px; }
.agw-go:hover { text-decoration: underline; text-underline-offset: 3px; }
.agw-cr { display: block; color: var(--ink); text-decoration: none; }
.agw-cr:hover { color: var(--mint); }
.ch-agav { display: inline-flex; align-items: center; justify-content: center; flex: none;
  border-radius: 50%; color: #0d1412; font-weight: 700; }
.msgr .ch-item .ch-agav { width: 47px; height: 47px; font-size: 17px; }
.ch-head .ch-agav { width: 38px; height: 38px; font-size: 15px; }
.mp-agav { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
  border-radius: 50%; color: #0d1412; font-weight: 700; font-size: 30px; }
.msgr .ch-badge.ch-ai { font-size: 9px; letter-spacing: .6px; }
.msgr #chGroups.ch-cards { display: none; }
.msgr.tab-group #chGroups.ch-cards { display: flex; flex-direction: column; gap: 0; padding: 0; overflow: visible; }
.msgr .ch-item { padding: 14px 19px 14px 27px; gap: 14px; border-left: 1px solid transparent; }
.msgr .ch-item:hover { background: rgba(38,37,45,.4); }
.msgr .ch-item.on { background: rgba(38,37,45,.6); border-left-color: #86f4da; }
.msgr .ch-item img { width: 47px; height: 47px; }
.msgr .ch-it b { font-size: 13.8px; letter-spacing: .28px; }
.msgr .ch-it span { font-size: 11px; color: #8a8a8a; letter-spacing: .22px; }
.msgr .ch-time { font-size: 11px; color: #8a8a8a; }  /* Positionierung macht .ch-right (R4) */
.msgr .ch-badge { background: #80e9d1; color: #1c2b28; }  /* Sandro R4: solide Mint-Bubble wie Design */
/* Gruppen im Group-Tab als Zeilen statt Karten */
.msgr .ch-card { display: flex; width: 100%; align-items: center; gap: 14px; text-align: left;
  padding: 14px 19px 14px 27px; border-left: 1px solid transparent; border-radius: 0; }
.msgr .ch-card:hover { background: rgba(38,37,45,.4); }
.msgr .ch-card.on { background: rgba(38,37,45,.6); border-left-color: #86f4da; }
.msgr .ch-card .cc-art { width: 47px; height: 47px; border-radius: 50%; margin: 0; flex: none; }
.msgr .ch-card b { font-size: 13.8px; }
.msgr .ch-card span { font-size: 11px; color: #8a8a8a; }
/* Invite-Hero 20.08.: .msgr .ch-card macht Karten zur ZEILE (genau das quetschte
   Join/Decline zur Doppel-Pille) — Hero bleibt auch hier gestapelte Karte. */
.msgr .ch-card.gi-hero { display: block; width: auto; margin: 10px 16px 6px; padding: 14px;
  border-left: 0; background: #1b1d2a; border: 1px solid rgba(53,208,197,.22); border-radius: 20px; }
.msgr .ch-card.gi-hero:hover { background: #1b1d2a; }
.msgr .gi-hero .gi-hrow { display: flex; align-items: center; gap: 10px; }
.msgr .gi-hero b { font-size: 14px; }
.msgr .gi-hero .gi-chip { font-size: 9px; color: #0b1220; }
.msgr .gi-hero .gi-sub { display: block; font-size: 12px; color: var(--muted); margin: 9px 0 10px; }
.msgr .gi-hero .gi-join { display: block; width: 100%; }
.msgr .gi-hero .gi-decl { display: block; width: 100%; margin-top: 7px; color: var(--muted); }
/* Mitte: Konversation — Head desktop unsichtbar (Infos leben rechts), sanfter Glow unten */
.msgr .ch-main { border-radius: 0; background: #2c2a30; position: relative; }
/* Sandro 28.07. R3: Gradient unten = SEIN Original-Bild aus dem Design (bg-messenger.png,
   584x726@2x = exakt die Mittelspalte, Alpha-Fade 0->31% mit Grain) als Spalten-Overlay */
.msgr .ch-main::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url(../img/messenger/bg-messenger.webp) center bottom / 100% 100% no-repeat; }
.msgr .ch-head { display: none; }
.msgr .ch-body { padding: 26px 30px 14px; gap: 10px; position: relative; }
/* Demo-Konversation (Sandro 28.07.: Testdaten 1:1 wie Screen-Design) */
.msgr .ch-body.ch-demo { justify-content: flex-end; }
/* Sandro R7 29.07.: Tages-Label BUENDIG mit der Bubble-Kante (kein 16px-Einzug mehr) */
.msgr .ch-dayl { font-size: 11.5px; color: #8a8a8a; letter-spacing: .23px; padding: 0 0 1px; }
.msgr .ch-dayl.me { align-self: flex-end; padding: 0 0 1px; }
.msgr .ch-it .ch-typing { color: #86f4da; }
/* Sandro R4: Tail-Haken RAUS (sein Okay: "entweder rausnehmen oder exakt") — stattdessen
   cleane asymmetrische Radien, untere Aussenecke eng */
.msgr .ag-m { max-width: 380px; border-radius: 14px; font-size: 14px; line-height: 1.4; padding: 13px 18px; position: relative; }
.msgr .ag-m.assistant { background: #fff; color: #1f1f1f; border-radius: 14px 14px 14px 5px; }
.msgr .ag-m.user { background: #3f374d; color: #fafafa; border-radius: 14px 14px 5px 14px; }
.msgr .ag-m.assistant .msg-dock { color: #444; }
.msgr .ch-foot { border-top: 0; padding: 16px 22px 20px; gap: 12px; }
.msgr .ch-foot input { background: linear-gradient(90deg, rgba(153,153,153,0) 32%, rgba(255,255,255,.1) 120%), rgba(255,255,255,.05);
  border-radius: 44px; height: 44px; padding: 0 52px 0 20px; font-size: 13px; color: #fff; }
.msgr .ch-foot input::placeholder { color: rgba(255,255,255,.29); }
/* Sandro R8: Plus WEISS wie der Such-Plus oben, Hover-Border weiss mit weichem Easing */
.msgr #chImgBtn { background: transparent; border: 1.26px solid rgba(255,255,255,.3); width: 40px; height: 40px;
  color: #fff; transition: border-color .45s ease, background .45s ease; }
/* Sandro R4: Composer wie Figma — Mikro sitzt IM Eingabefeld rechts, Senden erst bei Eingabe */
.msgr .ch-inwrap .ch-mic { position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; background: transparent; }
/* Sandro R5/R8: Hover im Composer = WEISS (Plus-Kreis + Mikro), weich animiert */
.msgr #chImgBtn:hover { border-color: #fff; color: #fff; background: transparent; }
.msgr .ch-foot .ch-mic svg { transition: color .45s ease; }
.msgr .ch-foot .ch-mic:hover svg { color: #fff; }
/* Sandro R5/R7: Such-Overlay glasig — R7: ein Tick DUNKLER + mehr Blur; Hover = volle
   Zeilenbreite (nur Fly-Padding seitlich), ~10% Schwarz, weich animiert */
.msgr .ch-fly { background: rgba(30,29,38,.55); backdrop-filter: blur(32px); -webkit-backdrop-filter: blur(32px);
  box-shadow: 0 18px 48px rgba(0,0,0,.35); }
.msgr .ch-fly .sf-it:hover, .msgr .ch-fly .sf-cr:hover { background: rgba(0,0,0,.12); }
.msgr .ch-fly .sf-lab { color: rgba(255,255,255,.55); }
.msgr .ch-foot #chSend { display: none; }
.msgr .ch-foot:has(#chIn:not(:placeholder-shown)) #chSend { display: grid; }
.msgr .ch-infob { display: none; }
/* Rechts: Profil-Panel */
.msgr-r { position: relative; background: #1d1c26; overflow: hidden auto; }
.mp-bg { position: absolute; inset: -40px; background-size: cover; background-position: center;
  filter: blur(46px); opacity: .18; pointer-events: none; }
.mp-dots { position: absolute; top: 19px; right: 19px; width: 36px; height: 36px; border-radius: 50%; z-index: 2;
  background: rgba(255,255,255,.06); color: #fff; display: grid; place-items: center;
  text-decoration: none; cursor: pointer; }
/* Sandro R4: Punkte als SVG statt "…"-Glyph — Baseline sass nie mittig im Kreis */
.mp-dots svg { width: 19px; height: 19px; display: block; }
.mp-dots:hover { background: rgba(255,255,255,.12); }
/* Sandro 16.08. abends: statt der drei Punkte ein X (button) — schliesst zurueck zur Discovery */
button.mp-x { border: 0; padding: 0; font: inherit; }
.mp-x svg { width: 17px; height: 17px; }
.mp-x:active { transform: scale(.92); }

/* ---------- Messenger Zoom-Uebergang (Sandro 16.08. abends): Discovery <-> Konversation
   mit Tiefe + Motion-Blur. Rein transform/opacity/filter, einmalig ~0.2-0.45s, kein Loop;
   prefers-reduced-motion killt alles global (Zeile ~462). Blur bleibt auf den zwei
   View-Containern begrenzt. */
@keyframes msgrZoomIn {
  from { transform: scale(1.07); opacity: 0; filter: blur(14px); }
  55%  { opacity: 1; }
  to   { transform: none; opacity: 1; filter: blur(0); }
}
.msgr.zoom-in { animation: msgrZoomIn .44s cubic-bezier(.16, 1, .3, 1) both; transform-origin: 50% 42%; will-change: transform, filter; }
@keyframes msgrZoomOut {
  from { transform: none; opacity: 1; filter: blur(0); }
  to   { transform: scale(1.06); opacity: 0; filter: blur(12px); }
}
.msgr.zoom-out { animation: msgrZoomOut .19s cubic-bezier(.4, 0, 1, 1) both; transform-origin: 50% 42%; will-change: transform, filter; pointer-events: none; }
@keyframes mhFallBack {
  from { transform: none; opacity: 1; filter: blur(0); }
  to   { transform: scale(.94); opacity: 0; filter: blur(10px); }
}
.mh.mh-out { animation: mhFallBack .17s cubic-bezier(.4, 0, 1, 1) both; transform-origin: 50% 40%; will-change: transform, filter; pointer-events: none; }
@keyframes mhRise {
  from { transform: scale(.94); opacity: 0; filter: blur(10px); }
  60%  { opacity: 1; }
  to   { transform: none; opacity: 1; filter: blur(0); }
}
.mh.mh-in { animation: mhRise .4s cubic-bezier(.16, 1, .3, 1) both; transform-origin: 50% 40%; will-change: transform, filter; }
.mp-in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 114px 40px 30px; }  /* Sandro R8: Profilbild + alles darunter 50px tiefer */
.mp-avw { width: 115px; height: 115px; border-radius: 50%; overflow: hidden; flex: none; background: var(--panel-2); }
.mp-av { width: 100%; height: 100%; object-fit: cover; display: block; }
.mp-gav { width: 115px; height: 115px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, rgba(134,244,218,.25), rgba(134,244,218,.06)); }
.mp-gav svg { width: 40px; height: 40px; color: #86f4da; }
.mp-name { font-size: 24px; color: #fff; letter-spacing: .48px; margin-top: 22px; font-weight: 600; }
.mp-sub { font-size: 12px; color: #9f9f9f; letter-spacing: .24px; margin-top: 8px; }
.mp-view { margin-top: 22px; width: 135px; height: 40px; line-height: 38px; border: 1px solid #fff; border-radius: 41px;
  color: #fff; font-size: 14px; font-weight: 600; text-align: center; text-decoration: none;
  transition: background .65s ease, color .65s ease; }  /* Sandro R8: noch weicher */
.mp-view:hover { background: #fff; color: #111; }
.mp-bio { margin-top: 22px; font-size: 12px; line-height: 1.45; color: #9f9f9f; letter-spacing: .24px; min-height: 0; }
.mp-bio:empty { display: none; }
.mp-links { display: flex; justify-content: space-between; width: 100%; max-width: 236px; margin-top: 24px; font-size: 14px; }
.mp-links span { color: #fff; }
.mp-links a { color: #86f4da; text-decoration: none; }
.mp-links a:hover { text-decoration: underline; }
.mp-mem { width: 100%; margin-top: 18px; text-align: left; }
.mp-sec { font-size: 10px; letter-spacing: .12em; color: var(--muted-2); margin: 28px 0 4px; display: flex;
  justify-content: space-between; width: 100%; }
.mp-sec em { font-style: normal; color: #86f4da; }
.mp-in .ci-ag { width: 100%; }
.mp-in .ci-hint { text-align: left; width: 100%; }
.mp-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%;
  gap: 12px; color: var(--muted-2); font-size: 12.5px; padding: 30px; text-align: center; }
.mp-empty svg { width: 26px; height: 26px; opacity: .5; }
/* Sandro R7 29.07.: Profil-Panel bei schmalen Views NICHT weg — Kreis-Pfeil oben rechts,
   Panel schiebt sich als Drawer von rechts ueber die Konversation */
.msgr-ptg { display: none; position: absolute; top: 19px; right: 19px; z-index: 6;
  width: 36px; height: 36px; border-radius: 50%; place-items: center; padding: 0;
  background: rgba(255,255,255,.06); color: #fff; border: 0; cursor: pointer;
  transition: right .5s cubic-bezier(.22,.9,.3,1), background .3s ease; }
.msgr-ptg:hover { background: rgba(255,255,255,.12); }
.msgr-ptg svg { width: 18px; height: 18px; display: block; transition: transform .5s cubic-bezier(.22,.9,.3,1); }
.msgr.prof-on .msgr-ptg { right: calc(min(361px, 86%) + 14px); }
.msgr.prof-on .msgr-ptg svg { transform: rotate(180deg); }
@media (max-width: 1240px) {
  .msgr { grid-template-columns: 320px minmax(0, 1fr); }
  .msgr-r { position: absolute; top: 0; right: 0; bottom: 0; width: 361px; max-width: 86%; z-index: 5;
    transform: translateX(103%); transition: transform .5s cubic-bezier(.22,.9,.3,1);
    box-shadow: -28px 0 60px rgba(0,0,0,.45); }
  .msgr.prof-on .msgr-r { transform: none; }
  .msgr-ptg { display: grid; }
}
@media (max-width: 900px) { .msgr { grid-template-columns: 280px minmax(0, 1fr); } }
@media (max-width: 640px) {
  .msgr { display: block; height: calc(100dvh - 132px); min-height: 0; margin: 0 0 12px; border-radius: 18px; border: 0; }
  .msgr .ch-side { height: 100%; }
  .msgr .ch-main { display: none; height: 100%; }
  .msgr.conv-on .ch-main { display: flex; }
  .msgr.conv-on .ch-side { display: none; }
  /* R7: Drawer bleibt auch mobil verfuegbar — Toggle nur in der offenen Konversation */
  .msgr:not(.conv-on) .msgr-ptg { display: none; }
  .msgr .ch-head { display: flex; padding: 12px; border-bottom: 1px solid var(--line); }
  .msgr .ch-back { display: inline-flex; }
}

/* ============ CURATED MUSEUM Profil (Konzept p02/kisuke, 28.07.) ============
   Kuratoren-Spalte links (Mint-Ring-Avatar, Serifen-Name, Bio, Tags, Stats, FOLLOW ->),
   rechts Salon-Galerie: Tabs GALLERY/COLLECTIONS/ABOUT, Sort-Dropdown, gemischte Kacheln. */
.cmv { position: relative; }
.cmv-wrap { display: grid; grid-template-columns: 268px minmax(0, 1fr); height: calc(100vh - 32px);
  min-height: 540px; border-radius: 18px; overflow: hidden; background: #10131c; box-shadow: 0 0 0 1px var(--line); }
.cmv-side { display: flex; flex-direction: column; padding: 28px 24px 22px; overflow-y: auto;
  background: linear-gradient(180deg, #0d1512 0%, #0a0e12 60%, #090b10 100%); border-right: 1px solid var(--line); }
.cmv-eyebrow { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--mint); margin-bottom: 24px; }
.cmv-avw { display: block; width: 138px; height: 138px; border-radius: 50%; padding: 5px; flex: none;
  box-shadow: 0 0 0 1.5px rgba(169,243,225,.55), 0 0 40px rgba(169,243,225,.13); }
.cmv-av { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.cmv-avi { display: grid; place-items: center; font-family: "Playfair Display", serif; font-size: 54px; color: var(--mint); background: var(--panel-2); }
.cmv-name { font-family: "Playfair Display", serif; font-weight: 500; font-size: 31px; line-height: 1.05; color: #fff; margin: 16px 0 3px; }
.cmv-name .pv { vertical-align: 4px; }
.cmv-handle { font-size: 12px; color: var(--muted); }
.cmv-bio { font-size: 12.5px; line-height: 1.65; color: #b9bdd4; margin-top: 14px; }
.cmv-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.cmv-tags span { font-size: 9.5px; letter-spacing: .13em; padding: 5px 9px; border-radius: 7px;
  background: rgba(169,243,225,.08); color: var(--mint); }
.cmv-stats { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.cmv-stats > div { display: flex; align-items: baseline; gap: 10px; }
.cmv-stats svg { width: 15px; height: 15px; color: var(--mint); align-self: center; flex: none; }
.cmv-stats .coin { align-self: center; display: grid; place-items: center; width: 15px; flex: none; }
.cmv-stats .coin svg { width: 14px; height: 14px; }
.cmv-stats b { font-family: "Playfair Display", serif; font-size: 20px; font-weight: 500; color: #fff; }
.cmv-stats span:last-child { font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); }
.cmv-follow { margin-top: auto; width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(169,243,225,.55); background: transparent;
  color: var(--mint); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  transition: background 140ms; }
.cmv-follow:hover { background: rgba(169,243,225,.1); }
.cmv-follow.is { background: rgba(169,243,225,.14); }
.cmv-follow svg { width: 15px; height: 15px; }
.cmv-stats { margin-bottom: 26px; } /* Luft zwischen Stats und Follow, wenn die Spalte kurz ist */
.cmv-main { display: flex; flex-direction: column; min-height: 0; }
.cmv-top { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 20px 28px 0; border-bottom: 1px solid var(--line); }
.cmv-tabs { display: flex; gap: 26px; }
.cmv-tab { background: none; padding: 4px 0 14px; font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted-2); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color 140ms; }
.cmv-tab.on { color: #fff; border-color: var(--mint); }
.cmv-tab:hover { color: #fff; }
.cmv-sortw { position: relative; padding-bottom: 10px; }
.cmv-sort { display: inline-flex; align-items: center; gap: 6px; background: none; font-size: 10.5px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cmv-sort b { color: #fff; font-weight: 600; }
.cmv-sort svg { width: 12px; height: 12px; }
.cmv-sortd { position: absolute; right: 0; top: calc(100% + 4px); z-index: 22; min-width: 160px;
  background: var(--panel-2); border-radius: 12px; padding: 6px; box-shadow: 0 16px 40px rgba(0,0,0,.5); }
.cmv-sortd button { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 8px;
  font-size: 12.5px; color: var(--muted); background: none; }
.cmv-sortd button.on, .cmv-sortd button:hover { background: var(--input); color: #fff; }
.cmv-body { flex: 1; min-height: 0; overflow-y: auto; padding: 22px 28px 32px; }
.cmv-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 148px; gap: 14px; grid-auto-flow: dense; }
.cmv-it { position: relative; display: block; border-radius: 14px; overflow: hidden; background: var(--panel-2); }
.cmv-it.c2 { grid-column: span 2; }
.cmv-it.r2 { grid-row: span 2; }
.cmv-it img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .32s ease; }
.cmv-it:hover img { transform: scale(1.045); }
.cmv-it::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 52%, rgba(5,7,10,.8)); }
.cmv-it .icv-bdg { z-index: 2; }
.cmv-cap { position: absolute; left: 13px; right: 58px; bottom: 11px; z-index: 2; display: flex; flex-direction: column; gap: 1px; }
.cmv-cap b { font-size: 10px; font-weight: 600; letter-spacing: .13em; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmv-cap em { font-style: normal; font-size: 9.5px; color: rgba(255,255,255,.55); }
.cmv-lk { position: absolute; right: 13px; bottom: 11px; z-index: 2; display: inline-flex; align-items: center; gap: 4px;
  font-size: 10.5px; color: rgba(255,255,255,.78); }
.cmv-lk svg { width: 12px; height: 12px; }
.cmv-sec h3 { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 20px 0 12px; }
.cmv-sec:first-child h3 { margin-top: 0; }
.cmv-sec h3 em { font-style: normal; color: var(--mint); margin-left: 4px; }
.cmv-sec { margin-bottom: 8px; }
.cmv-about { max-width: 620px; padding-top: 8px; }
.cmv-about p { font-size: 14.5px; line-height: 1.8; color: #c7cbe0; }
.cmv-abst { display: flex; gap: 44px; margin-top: 28px; }
.cmv-abst b { display: block; font-family: "Playfair Display", serif; font-size: 31px; font-weight: 500; color: var(--mint); }
.cmv-abst span { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); }
.cmv-about .cmv-tags { margin-top: 24px; }
.cmv-empty { display: grid; place-items: center; gap: 10px; padding: 70px 0; color: var(--muted-2); }
.cmv-empty svg { width: 34px; height: 34px; }
/* Mobil: Kuratoren-Spalte oben, Galerie darunter im 2er-Raster */
@media (max-width: 900px) {
  .cmv-wrap { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .cmv-side { border-right: 0; border-bottom: 1px solid var(--line); padding: 24px 20px 20px; overflow: visible; }
  .cmv-avw { width: 108px; height: 108px; }
  .cmv-follow { margin-top: 22px; }
  .cmv-main { min-height: 62vh; }
  .cmv-body { overflow: visible; padding: 18px 16px 26px; }
  .cmv-top { padding: 16px 16px 0; overflow-x: auto; }
  .cmv-tabs { gap: 18px; }
  .cmv-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 128px; }
}

/* ===== AI LAB START-VIEW (Sandro-Figma 28.07., node 71-81) ===== */
/* Sandro 29.07. R24: Raster ZENTRIERT (margin:auto) und Cards eine Stufe kleiner (~+8%) */
body:has(.lab-start) .main { max-width: none; padding-left: 24px; padding-right: 24px; }
.lab-start { max-width: 1300px; margin: 0 auto; min-height: calc(100dvh - 210px); display: flex; flex-direction: column; justify-content: center; } /* Sandro 28.07.: vertikal zentriert wie im Design */
.lab-h { font-family: Poppins, Inter, sans-serif; font-size: 40px; font-weight: 600; letter-spacing: .3px; margin: 26px 0 10px; }
.lab-sub { color: var(--muted); font-size: 16px; margin: 0 0 34px; }
.lab-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 27px; }
.lab-card { position: relative; aspect-ratio: 298 / 444; border-radius: 24px; overflow: hidden; border: 0; padding: 0;
  background-size: cover; background-position: center; cursor: pointer; text-align: left; color: #fff; display: block; }
/* Sandro 28.07.: Karte bleibt STILL — nur das Artwork zoomt weich (Bild als ::before-Layer, background:inherit
   zieht das inline background-image der Karte; Texte/Button liegen als spaetere Positionierte drueber) */
.lab-card::before { content: ""; position: absolute; inset: 0; background: inherit;
  transition: transform 1.9s cubic-bezier(.19, 1, .22, 1); will-change: transform; } /* Sandro R3: noch weicher, langer Auslauf (easeOutExpo) */
.lab-card:hover::before { transform: scale(1.12); } /* Sandro R2: Zoom deutlicher */
.lab-card.light { color: #0e0e0e; }
.lab-ct { position: absolute; left: 24px; right: 24px; top: 26px; display: block; pointer-events: none; }
.lab-ct b { display: block; font-size: 26px; font-weight: 500; letter-spacing: 0; font-family: Poppins, Inter, sans-serif; }
/* Polish 23.08.: Subline ging im Artwork unter (.62 auf buntem Grund = unleserlich) —
   Deckkraft rauf + Halo in der Karten-Helligkeit, Titel bekommt denselben Halt. */
.lab-ct i { font-style: normal; display: block; margin-top: 7px; font-size: 13px; letter-spacing: .1px; opacity: .82; }
.lab-ct b, .lab-ct i { text-shadow: 0 1px 14px rgba(0, 0, 0, .5); }
.lab-card.light .lab-ct b, .lab-card.light .lab-ct i { text-shadow: 0 1px 12px rgba(255, 255, 255, .65); }
.lab-vibe { position: absolute; left: 50%; transform: translateX(-50%); bottom: 50px; width: 142px; height: 44px; line-height: 44px;
  border-radius: 40px; background: #fff; color: #000; font-size: 12px; font-weight: 600; letter-spacing: .24px; text-align: center;
  transition: background 1.4s cubic-bezier(.19, 1, .22, 1), color 1.4s cubic-bezier(.19, 1, .22, 1); pointer-events: none; } /* Sandro R3: faedet zum Ende weich ein */
/* Sandro 28.07.: Button waechst NICHT — er wird weich schwarz mit weissem Text */
.lab-card:hover .lab-vibe { background: #0c0c0c; color: #fff; }
.lab-back { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 14px; padding: 0; margin: 2px 0 8px; display: block; min-width: 0; }
.lab-back:hover { color: #fff; }
@media (max-width: 1100px) { .lab-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .lab-start { min-height: 0; display: block; } .lab-h { font-size: 30px; margin-top: 6px; } .lab-cards { gap: 16px; } .lab-vibe { bottom: 26px; } .lab-sub { margin-bottom: 22px; } }

/* ===== AI LAB — Sandro 29.07. (Image Lab / 3D Verse): Formular links, Galerie rechts;
   Winchester 29.07.: Editor-Einstieg in JEDEM Bereich (image, music, video, 3d) ===== */
.st-grid { grid-template-columns: 290px minmax(0, 1fr) minmax(300px, 420px); }
.pricebox { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.pricebox > summary { cursor: pointer; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); list-style: none; }
.pricebox > summary::-webkit-details-marker { display: none; }
.pricebox > summary:hover { color: #fff; }
.pricebox[open] > summary { margin-bottom: 10px; }

.st-work h3 { display: flex; align-items: center; gap: 10px; }
.ws-ed { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; min-width: 0;
  background: none; border: 0; color: var(--mint); font: inherit; font-size: 14px; cursor: pointer;
  padding: 6px 10px; border-radius: 999px; transition: background .13s ease, color .13s ease; }
.ws-ed:hover { background: rgba(169, 243, 225, .12); }
.ws-ed svg { width: 15px; height: 15px; }

.ex-chips { margin: 8px 0 4px; align-items: center; }
.ex-lab { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }

.st-gal { padding: 0; }
.st-gal .gal-h { margin-bottom: 14px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px 18px; }
.gal-it { position: relative; margin: 0; cursor: pointer; }
.gal-med { position: relative; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; background: var(--panel-2);
  display: flex; align-items: center; justify-content: center; }
.gal-med img, .gal-med video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Konzept: Titel unter der Karte links, ⋯ rechts */
/* Sandro 29.07. R21: kein ⋯ mehr, Titel eine Spur groesser */
.gal-it figcaption { display: flex; align-items: center; gap: 8px;
  padding: 9px 2px 0; font-size: 14px; color: #e8e8f2; }
.gal-it figcaption > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gal-au { display: grid; place-items: center; width: 100%; height: 100%; color: var(--mint); }
.gal-au svg { width: 34px; height: 34px; }
/* Song-Cover liegt UEBER dem Noten-Icon — faellt es weg (onerror), bleibt das Icon */
.gal-aucov { position: absolute; inset: 0; }

/* ---------- Musikplayer K1 GLASS CAPSULE (Winchester-Abnahme 09.08.):
   schwebende zentrierte Glas-Kapsel — starker Blur, Lichtkante oben, Mint-Glow
   unterm Play. Liegt bereit sobald Songs da sind, Play startet den ersten. ---------- */
.musbar { position: fixed; left: 50%; bottom: 16px; z-index: 72;
  transform: translateX(calc(-50% + 30px)); /* optische Mitte der Content-Flaeche (Rail links) */
  width: min(920px, calc(100vw - 150px));
  display: flex; align-items: center; gap: 16px; padding: 11px 18px;
  border-radius: 24px;
  background: rgba(18, 20, 32, .5);
  backdrop-filter: blur(28px) saturate(1.6); -webkit-backdrop-filter: blur(28px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, .12);
  border-top-color: rgba(255, 255, 255, .3); /* Lichtkante oben */
  box-shadow: 0 22px 60px rgba(0, 0, 0, .6), 0 4px 16px rgba(0, 0, 0, .4),
    inset 0 1px 0 rgba(255, 255, 255, .12); }
/* Lichtschein unter der Kapsel */
.musbar::after { content: ""; position: absolute; left: 8%; right: 8%; bottom: -26px; height: 26px;
  background: radial-gradient(50% 100% at 50% 0, rgba(169, 243, 225, .16), transparent 70%);
  pointer-events: none; }
/* Inhalt darf nie unter der Kapsel verschwinden */
body.has-musbar #app { padding-bottom: 104px; }
.mb-cov { position: relative; width: 52px; height: 52px; flex: none; border-radius: 15px;
  overflow: hidden; background: var(--panel-2);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .14),
    0 6px 26px rgba(169, 243, 225, .18); }
.mb-cov img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mb-covph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--mint); }
.mb-covph svg { width: 22px; height: 22px; }
.mb-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mb-title { font-size: 14px; font-weight: 600; letter-spacing: .1px; color: #e8e8f2;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mb-sub { font-size: 11px; color: rgba(232, 232, 242, .48); margin-top: -1px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mb-seek { display: flex; align-items: center; gap: 8px; }
.mb-seek span { font-size: 11px; color: rgba(232, 232, 242, .55); font-variant-numeric: tabular-nums; flex: none; }
.mb-seek input { flex: 1; min-width: 0; appearance: none; -webkit-appearance: none; height: 5px;
  border-radius: 999px; background: rgba(255, 255, 255, .13); outline: none; cursor: pointer; }
.mb-seek input::-webkit-slider-thumb { -webkit-appearance: none; width: 13px; height: 13px;
  border-radius: 50%; background: var(--mint); border: none;
  box-shadow: 0 0 10px rgba(169, 243, 225, .9); }
.mb-seek input::-moz-range-thumb { width: 13px; height: 13px; border-radius: 50%;
  background: var(--mint); border: none; box-shadow: 0 0 10px rgba(169, 243, 225, .9); }
.mb-ctl { display: flex; align-items: center; gap: 2px; flex: none; }
.mb-b { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: none; border: none; color: #e8e8f2; cursor: pointer; }
.mb-b:hover { background: rgba(255, 255, 255, .08); }
.mb-b:disabled { opacity: .3; cursor: default; }
.mb-b.mb-play { width: 44px; height: 44px;
  background: linear-gradient(180deg, #d2fff2, #8ce8d2); color: #0b1210;
  box-shadow: 0 6px 20px rgba(169, 243, 225, .45), inset 0 1px 0 rgba(255, 255, 255, .8),
    inset 0 -2px 5px rgba(0, 60, 45, .25); }
.mb-b.mb-play:hover { background: linear-gradient(180deg, #e2fff6, #9cf0dc); }
.mb-b.mb-play svg { width: 18px; height: 18px; }
.mb-x { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: none; border: none; color: rgba(232, 232, 242, .5); cursor: pointer; flex: none; }
.mb-x:hover { color: #e8e8f2; background: rgba(255, 255, 255, .08); }
.mb-x svg { width: 16px; height: 16px; }
@media (max-width: 640px) {
  /* keine Rail am Telefon -> Kapsel exakt mittig, fast volle Breite */
  .musbar { transform: translateX(-50%); width: calc(100vw - 20px); bottom: 12px;
    gap: 10px; padding: 9px 12px; border-radius: 20px; }
  .mb-cov { width: 44px; height: 44px; border-radius: 12px; }
  .mb-b { width: 34px; height: 34px; }
  .mb-b.mb-play { width: 40px; height: 40px; }
  .mb-seek span { display: none; } /* schmal halten: nur der Balken */
  /* Create-FAB weicht der Kapsel aus (Regel: Fixed-Bottom immer gegen FAB pruefen) */
  body.has-musbar .cfab { bottom: 92px; }
}
/* #-Referenzmenue im Prompt (Higgsfield-Muster) */
.refmen { position: absolute; left: 14px; right: 14px; bottom: 8px; z-index: 30;
  display: flex; flex-wrap: wrap; gap: 6px; padding: 8px;
  background: rgba(14, 16, 24, .98); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.refmen-it { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px; color: #e8e8f2; font-size: 13px; cursor: pointer; }
.refmen-it:hover { border-color: var(--mint); background: rgba(148, 250, 226, .08); }
.refmen-it img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.refmen-empty { font-size: 12px; color: rgba(232, 232, 242, .6); padding: 4px 6px; }
/* Abgelaufener S3-Link (07.08.): ehrlicher Zustand statt Broken-Image-Icon */
.gal-gone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  width: 100%; height: 100%; padding: 14px; text-align: center; color: rgba(232, 232, 242, .55); }
.gal-gone svg { width: 26px; height: 26px; opacity: .5; }
.gal-gone b { font-size: 13px; font-weight: 600; color: rgba(232, 232, 242, .8); }
.gal-gone i { font-style: normal; font-size: 11.5px; }
.gal-act { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: rgba(10, 10, 16, .62); opacity: 0; transition: opacity .13s ease; }
.gal-it:hover .gal-act, .gal-act.show { opacity: 1; }
.gal-b { display: inline-flex; align-items: center; gap: 6px; min-width: 0; padding: 7px 12px; border-radius: 999px;
  border: 0; background: #fff; color: #0e0e0e; font-size: 12px; font-weight: 600; cursor: pointer; text-decoration: none; }
.gal-b:hover { background: var(--mint); }
.gal-b svg { width: 14px; height: 14px; }
.gal-it.ex { cursor: pointer; }
.gal-it.ex:hover .gal-med { outline: 1px solid rgba(255, 255, 255, .22); outline-offset: -1px; }
@media (max-width: 1100px) { .st-gal { order: 3; } }
@media (max-width: 640px) { .gal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; } .ws-ed { padding: 6px 8px; } }
/* Mobil-Override MUSS nach dem 3-Spalten-Block stehen (gleiche Spezifitaet, Reihenfolge entscheidet) */
@media (max-width: 1100px) { .st-grid { grid-template-columns: 1fr; } }

/* ---------- AI Lab Workspace nach Konzept (Winchester 29.07., photo_1785330574) ---------- */
/* Sandro 29.07. R9: Eingabe-Spalte = HALBE Breite, Seite nutzt den Platz aus
   (nur ~24px Luft zur Sidebar statt zentriertem 1280er-Deckel) */
body:has(.st-grid.stx) .main { max-width: none; padding-left: 24px; padding-right: 24px; }
/* Sandro 29.07. R24: Eingabe links 40%, Galerie rechts 60% */
.st-grid.stx { grid-template-columns: minmax(0, 40fr) minmax(0, 60fr); gap: 28px; }
.stx-left .st-work { padding: 26px 26px 28px; }
.stx-left .pricebox { margin-top: 14px; padding: 14px 18px; border-top: 0; }
.stx-head { display: flex; align-items: center; justify-content: flex-start; gap: 12px; min-height: 36px; }
/* Sandro 29.07. R22: runder Pfeil neben dem Bereichsnamen fuehrt zurueck zur Uebersicht */
.stx-back { flex: none; width: 34px; height: 34px; min-width: 0; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .07); color: var(--muted); display: grid; place-items: center; cursor: pointer;
  transition: background .13s ease, color .13s ease; }
.stx-back:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.stx-back svg { width: 17px; height: 17px; }
.stx-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .16em; color: var(--teal); }
/* Sandro 29.07. R21: Headline einzeilig und komplett weiss */
.stx-h { font-size: 33px; line-height: 1.08; font-weight: 700; margin: 22px 0 12px; letter-spacing: -.01em;
  color: #fff; white-space: nowrap; }
.stx-h em { font-style: normal; color: inherit; }
@media (max-width: 900px) { .stx-h { white-space: normal; font-size: 28px; } }
.stx-sub { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.stx-ta { min-height: 132px; border-radius: 14px; resize: vertical; }
.stx-pw .m-in { padding-bottom: 30px; }
/* Sandro 29.07. R21: Zaehler LINKS auf der Hoehe des Diktier-Mikros (Mikro: bottom 10px, 34px hoch) */
.stx-count { position: absolute; left: 14px; bottom: 10px; height: 34px; display: flex; align-items: center;
  font-size: 12px; color: var(--muted); pointer-events: none; }
.stx-ratios { display: flex; gap: 8px; margin-bottom: 6px; }
.rt { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  height: 62px; padding: 0; border: 1px solid transparent; border-radius: 12px; background: var(--input);
  color: var(--muted); cursor: pointer; transition: border-color .13s ease, color .13s ease; }
.rt-g { display: block; border: 1.6px solid currentColor; border-radius: 4px; }
.rt-l { font-size: 11px; font-weight: 600; }
.rt:hover { color: #fff; }
.rt.on { color: #fff; border-color: var(--teal); background: rgba(53, 208, 197, .08); }
.rt.on .rt-g { border-color: var(--teal); }
.stx-row { margin: 2px 0 4px; }
/* Segmented-Control im AI Lab: erbt die .seg-Komponente (siehe oben, Sandro 29.07.) */
.stx-seg { margin-top: 2px; }
/* Sandro 29.07. R21: Tab-Umschalter NICHT ueber die volle Breite ziehen */
.seg.stx-half { width: 50%; min-width: 240px; max-width: 100%; background: rgba(255, 255, 255, .05); }
/* Sandro 29.07. R22: EINE Bedienhoehe (48px) und EINE Schriftgroesse (14px) fuer alle
   Buttons im Lab, Generate voll rund und ohne Stern. */
.stx-go { width: 100%; max-width: none; height: 48px; border-radius: 999px; font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 14px; }
/* Winchester 25.08.: Brand-Konsistenz — ALLE Auswahl-Buttons im Lab tragen EIN Muster
   (die mit Sandro gebaute dir-grid-Optik): 42px hoch, 12px-Radius, 14px Schrift,
   aktiv = Mint-Rahmen + Mint-Schleier. Vorher wichen die Advanced-Chips (Engine/
   Length/Lyrics/Voice) und der Type-Umschalter ab (weiss gefuellt, 999px-Pille). */
.stx-left .cat-chips .catc { height: 42px; padding: 0 16px; font-size: 14px; border-radius: 12px;
  background: var(--input); border: 1px solid transparent; color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center; }
.stx-left .cat-chips .catc:hover { color: #fff; }
.stx-left .cat-chips .catc.on { background: rgba(53, 208, 197, .08); border-color: var(--teal); color: #fff; }
/* Sandro 29.07. R24: Direction = gleich grosse Kacheln ueber die volle Breite, Text mittig,
   Auswahl mit Mint-Rahmen und leichtem Mint-Schleier (wie die Format-Kacheln). */
.dir-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.stx-left .dir-grid .catc { height: 42px; padding: 0 6px; border-radius: 12px; justify-content: center;
  background: var(--input); border: 1px solid transparent; color: var(--muted); }
.stx-left .dir-grid .catc:hover { color: #fff; }
.stx-left .dir-grid .catc.on { background: rgba(53, 208, 197, .08); border-color: var(--teal); color: #fff; }
.stx-left .seg, .stx-left .stx-seg { padding: 0; background: transparent; border-radius: 0; gap: 8px; }
.stx-left .seg-tab, .stx-left .stx-seg button { height: 42px; padding: 0 15px; font-size: 14px; font-weight: 600; border-radius: 12px;
  background: var(--input); border: 1px solid transparent; color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center; }
.stx-left .seg-tab:hover, .stx-left .stx-seg button:hover { color: #fff; background: var(--input); }
.stx-left .seg-tab.on, .stx-left .stx-seg button.on { background: rgba(53, 208, 197, .08); border-color: var(--teal); color: #fff; }
.stx-price { margin-top: 8px; }
/* Beispiel-Overlay im AI Lab (Sandro 29.07.): links Cover, rechts Prompt + Uebernehmen.
   Schriftgroessen bewusst nur drei: Prompt 18, Button/Label 14, Fussnote 12. */
.exov { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center;
  padding: 24px; background: rgba(8, 8, 14, .72); backdrop-filter: blur(6px); }
/* Sandro 29.07. R21: breiter, flacher, Bild kleiner mit Luft ringsum, links oben angesetzt */
.exov-card { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 0;
  width: min(1160px, 100%); max-height: 72vh; overflow: hidden; border-radius: 24px; background: var(--panel); }
.exov-med { background: #101018; padding: 26px; display: flex; align-items: flex-start; justify-content: flex-start; min-height: 0; }
.exov-med video { width: 100%; height: auto; max-height: calc(72vh - 52px); border-radius: 10px; }
.exov-med img { width: 100%; height: auto; max-height: calc(72vh - 52px); object-fit: contain; object-position: left top;
  border-radius: 16px; display: block; }
.exov-side { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 34px 30px 30px; min-height: 0; overflow-y: auto; }
.exov-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.06); color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.exov-x:hover { background: rgba(255,255,255,.12); color: #fff; }
.exov-x svg { width: 16px; height: 16px; }
.exov-eye { font-size: 12px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; color: var(--teal); }
.exov-p { margin: 0; font-size: 18px; line-height: 1.45; color: #fff; }
.exov-use { width: 100%; max-width: none; height: 48px; flex: none; border-radius: 14px; font-size: 14px; }
.exov-note { margin: 0 0 auto; font-size: 12px; color: var(--muted); }
@media (max-width: 820px) {
  .exov-card { grid-template-columns: 1fr; max-height: 90vh; overflow-y: auto; }
  .exov-med { padding: 18px; }
  .exov-med img { max-height: 34vh; }
  .exov-side { padding: 22px 20px 24px; }
}
/* Sandro 29.07. R9: BASIC zuerst — alles Weitere lebt hinter "Advanced" und faltet
   sich weich auf (grid-template-rows 0fr->1fr = animierbare Hoehe ohne max-height-Rateri) */
.stx-adv { margin-top: 14px; }
.stx-advt { display: flex; align-items: center; gap: 8px; width: auto; min-width: 0; padding: 8px 0;
  border: 0; background: none; color: var(--muted); font-size: 12px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; cursor: pointer; transition: color .3s ease; }
.stx-advt:hover { color: #fff; }
.stx-advt svg { width: 13px; height: 13px; transition: transform .42s cubic-bezier(.22,.9,.3,1); }
.stx-advt.on { color: #fff; }
.stx-advt.on svg { transform: rotate(180deg); }
.stx-advb { display: grid; grid-template-rows: 0fr; opacity: 0;
  transition: grid-template-rows .42s cubic-bezier(.22,.9,.3,1), opacity .3s ease; }
.stx-advb > div { overflow: hidden; min-height: 0; }
.stx-advb.on { grid-template-rows: 1fr; opacity: 1; }
/* Song-Cover sind IMMER quadratisch (Sandro 29.07.), Bilder bleiben hochformatig */
.gal-grid.sq .gal-med { aspect-ratio: 1 / 1; }
/* Sandro 29.07. R24: die Bilder rechts sollen ueber die Breite gehen — weniger, dafuer
   grosse Karten statt vieler kleiner Spalten (Galerie ist jetzt 60% der Seite). */
.st-gal .gal-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
@media (max-width: 1100px) { .st-grid.stx { grid-template-columns: 1fr; } }

/* ---------- Job-Tray (Winchester 06.08.): laufende Generierung bleibt beim Stoebern
   sichtbar — unten links, unter dem Spiel-Overlay (1400), ueber dem Content. */
.jobtray { position: fixed; left: 18px; bottom: 18px; z-index: 1300; display: none; flex-direction: column; gap: 8px; }
.jt-pill { display: flex; align-items: center; gap: 9px; padding: 11px 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: rgba(10,10,10,.92); color: #fff; font-size: 13px; cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 6px 24px rgba(0,0,0,.35); }
.jt-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint, #a9f3e1); animation: jtPulse 1.2s ease-in-out infinite; flex: none; }
.jt-back { opacity: .55; font-size: 12px; margin-left: 4px; }
.jt-pill.done { background: var(--mint, #a9f3e1); color: #08251f; border-color: transparent; font-weight: 600; }
.jt-pill.fail { border-color: rgba(248,98,130,.55); }
@keyframes jtPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.6); opacity: .5; } }
@media (max-width: 700px) { .jobtray { left: 12px; bottom: 78px; } }

/* ============ LIVE = STUDIO (Winchester-Abnahme 13.08., Konzept L-D) ============
   Formregeln der Tafel, gemessen: EINE Bedienhoehe 48px (.lvs-ctl/.lvs-in/.lvs-tab),
   DREI Schriftgroessen 26/14/12, EIN Akzent (var(--mint)), kein Zeilenumbruch in
   Knoepfen (white-space:nowrap). Alle sichtbaren Texte sind Englisch. */
/* padding statt margin: der obere Rand der Kopfzeile wuerde als erstes Kind
   sonst aus .lvs herauskollabieren (klassische Margin-Collapse-Falle). */
.lvs{--h:48px;padding-top:26px;padding-bottom:18px}
/* Der Konto-Block der Topbar (.tb-acct) schwebt rechts oben ueber dem Inhalt
   (gemessen 13.08.: unten 65px) — die Status-Pillen der Studio-Kopfzeile lagen
   darunter und wurden verdeckt. Die Kopfzeile startet deshalb darunter. */
.lvs-head{display:flex;align-items:center;gap:14px;margin:0 0 14px}
.lvs-h{font-size:26px;font-weight:800;letter-spacing:-.4px;margin:0}
.lvs-stat{margin-left:auto;display:flex;gap:8px;flex-wrap:wrap}
.lvs-pill{display:inline-flex;align-items:center;gap:7px;height:30px;padding:0 12px;border-radius:999px;
  background:var(--panel-2);color:var(--muted);font-size:12px;white-space:nowrap}
.lvs-pill.on{color:var(--mint)}
.lvs-dot{width:7px;height:7px;border-radius:50%;background:var(--muted-2);flex:none}
.lvs-pill.on .lvs-dot{background:var(--mint)}
.lvs-dot.beat{animation:lvsBeat 1.6s ease-in-out infinite}
@keyframes lvsBeat{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.45;transform:scale(.8)}}
.lvs-grid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:16px;align-items:start}
.lvs-col{min-width:0;display:flex;flex-direction:column;gap:12px}

/* Buehne */
.lvs-stage{position:relative;border-radius:var(--radius);overflow:hidden;background:#0b0b12;aspect-ratio:16/9}
.lvs-stage video{width:100%;height:100%;object-fit:cover;display:none;background:#0b0b12}
.lvs-stage video.on{display:block}
.lvs-nocam{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;
  background:radial-gradient(120% 90% at 50% 30%,#1c1e2c 0%,#0f0f18 70%);text-align:center;padding:20px}
.lvs-nocam span{width:54px;height:54px;border-radius:50%;background:var(--panel-2);display:grid;place-items:center;margin-bottom:4px}
.lvs-nocam span svg{width:24px;height:24px;stroke:var(--muted)}
.lvs-nocam b{font-size:14px}
.lvs-nocam p{font-size:12px;color:var(--muted);margin:0 0 6px}
.lvs-tag{position:absolute;top:12px;display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 11px;border-radius:999px;
  background:rgba(10,10,18,.66);backdrop-filter:blur(8px);font-size:12px;color:#fff;white-space:nowrap}
.lvs-tag.tl{left:12px}
.lvs-tag.tr{right:12px}
.lvs-tag.tr svg{width:13px;height:13px}
.lvs-tag.live{color:var(--mint)}
.lvs-titleover{position:absolute;left:12px;bottom:12px;max-width:min(62%,420px);padding:9px 14px;border-radius:12px;
  background:rgba(10,10,18,.62);backdrop-filter:blur(8px);font-size:12px;color:#fff;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lvs-toast{position:absolute;right:12px;bottom:12px;display:flex;align-items:center;gap:7px;height:38px;padding:0 14px;
  border-radius:999px;background:rgba(10,10,18,.72);backdrop-filter:blur(8px);border:1px solid rgba(169,243,225,.5);
  color:#fff;font-size:12px;white-space:nowrap;opacity:0;transform:translateY(6px);transition:opacity .28s,transform .28s}
.lvs-toast.in{opacity:1;transform:none}
.lvs-toast svg{width:15px;height:15px;stroke:var(--mint)}
.lvs-toast b{color:var(--mint)}

/* Bedienleiste */
.lvs-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.lvs-sp{flex:1 1 auto;min-width:0}
.lvs-ctl{height:var(--h);padding:0 18px;border:0;border-radius:999px;background:var(--panel-2);color:var(--ink);
  font-size:14px;font-weight:600;display:inline-flex;align-items:center;gap:8px;white-space:nowrap;cursor:pointer;
  transition:background .14s,color .14s,transform .12s}
.lvs-ctl svg{width:17px;height:17px;stroke:currentColor}
.lvs-ctl:hover{background:#2c2e42}
.lvs-ctl:active{transform:scale(.98)}
.lvs-ctl.off{color:var(--muted-2)}
.lvs-ctl.off svg{opacity:.5}
.lvs-ctl.ghost{background:transparent;box-shadow:inset 0 0 0 1px rgba(255,255,255,.13);color:var(--muted)}
.lvs-ctl.ghost:hover{color:var(--ink);background:rgba(255,255,255,.04)}
.lvs-ctl.go{background:var(--mint);color:#101018;min-width:212px;justify-content:center}
.lvs-ctl.go:hover{background:#bdf7e9}
.lvs-ctl.icon{padding:0;width:var(--h);justify-content:center;flex:none}
.lvs-ctl[disabled]{opacity:.45;cursor:not-allowed}
.lvs-meter{display:inline-flex;align-items:flex-end;gap:3px;height:22px;padding:0 2px}
.lvs-meter i{width:3px;height:6px;border-radius:2px;background:var(--panel-2);transition:height .09s,background .09s}
.lvs-meter i:nth-child(2){height:9px}.lvs-meter i:nth-child(3){height:12px}.lvs-meter i:nth-child(4){height:16px}
.lvs-meter i:nth-child(5){height:12px}.lvs-meter i:nth-child(6){height:9px}.lvs-meter i:nth-child(7){height:6px}
.lvs-meter i.on{background:var(--mint)}
.lvs-obs{background:var(--panel);border-radius:var(--radius-s);padding:12px 14px}
.lvs-obs b{font-size:12px;color:var(--muted);letter-spacing:.5px}
.lvs-obs code{display:block;margin-top:7px;padding:10px;background:var(--panel-2);border-radius:8px;font-size:12px;
  word-break:break-all;user-select:all}

/* Streifen mit fremden Streams */
.lvs-strip{background:var(--panel);border-radius:var(--radius);padding:12px 14px 14px}
.lvs-striphead{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.lvs-striphead b{font-size:12px;letter-spacing:.7px;color:var(--muted)}
.lvs-cnt{font-size:12px;color:var(--muted-2);background:var(--panel-2);border-radius:999px;padding:3px 9px}
.lvs-link{background:none;border:0;color:var(--muted);font-size:12px;cursor:pointer;padding:6px 2px}
.lvs-link:hover{color:var(--ink)}
.lvs-row{display:flex;gap:10px;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
.lvs-row::-webkit-scrollbar{display:none}
.lvs-row.all{flex-wrap:wrap;overflow:visible}
.lvs-card{flex:0 0 168px;text-decoration:none;color:inherit;display:flex;flex-direction:column;gap:3px}
.lvs-card .lvs-thumb{position:relative;aspect-ratio:16/9;border-radius:10px;background:linear-gradient(135deg,#232537,#171826)}
.lvs-card b{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:5px}
.lvs-card>span{font-size:12px;color:var(--muted)}
.lvs-live{position:absolute;top:7px;left:7px;display:inline-flex;align-items:center;gap:4px;font-size:12px;font-weight:800;
  letter-spacing:.5px;color:var(--mint);background:rgba(10,10,18,.6);border-radius:6px;padding:2px 7px}
.lvs-live svg{width:11px;height:11px;stroke:var(--mint)}
.lvs-eye{position:absolute;top:7px;right:7px;display:inline-flex;align-items:center;gap:4px;font-size:12px;color:#fff;
  background:rgba(10,10,18,.6);border-radius:6px;padding:2px 7px}
.lvs-eye svg{width:11px;height:11px}
.lvs-none{font-size:12px;color:var(--muted);margin:0;padding:6px 0}

/* Regler-Panel */
.lvs-panel{background:var(--panel);border-radius:var(--radius);padding:16px;display:flex;flex-direction:column;gap:16px;
  position:sticky;top:14px}
.lvs-sec{display:flex;flex-direction:column;gap:8px;min-width:0}
.lvs-lab{font-size:12px;letter-spacing:.7px;color:var(--muted)}
.lvs-labrow{display:flex;align-items:baseline;gap:8px}
.lvs-labrow .lvs-sub{margin-left:auto}
.lvs-sub{font-size:12px;color:var(--muted-2)}
.lvs-right{margin-left:auto}
.lvs-in{height:var(--h);width:100%;border:0;border-radius:12px;background:var(--input);color:var(--ink);
  font-size:14px;font-family:var(--font);padding:0 14px}
.lvs-in:focus{outline:2px solid rgba(169,243,225,.45);outline-offset:0}
select.lvs-in{appearance:none;background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);
  background-position:calc(100% - 18px) 21px,calc(100% - 13px) 21px;background-size:5px 5px,5px 5px;background-repeat:no-repeat;padding-right:34px}
.lvs-seg{display:flex;gap:6px;background:rgba(255,255,255,.05);border-radius:999px;padding:5px}
.lvs-tab{flex:1;height:38px;border:0;border-radius:999px;background:transparent;color:var(--muted);font-size:14px;
  font-family:var(--font);cursor:pointer;white-space:nowrap;transition:background .14s,color .14s}
.lvs-tab.on{background:rgba(169,243,225,.14);color:var(--mint);box-shadow:inset 0 0 0 1px rgba(169,243,225,.55)}
.lvs-tab[disabled]{opacity:.4;cursor:not-allowed}
.lvs-last{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px;margin-top:2px}
.lvs-big{flex:0 0 100%;display:flex;align-items:baseline;gap:6px}
.lvs-big b{font-size:26px;font-weight:800;letter-spacing:-.5px}
.lvs-big small{font-size:12px;color:var(--muted)}
.lvs-prog{height:4px;border-radius:999px;background:rgba(255,255,255,.08);overflow:hidden}
.lvs-prog i{display:block;height:100%;background:var(--mint);transition:width .5s}
.lvs-note{font-size:12px;color:var(--muted-2);margin:0}
.lvs-tips{display:flex;flex-direction:column;gap:6px;max-height:210px;overflow:auto}
.lvs-tip{display:flex;align-items:center;gap:8px;background:var(--panel-2);border-radius:12px;padding:8px 10px}
.lvs-av{width:26px;height:26px;border-radius:8px;background:#343751;display:grid;place-items:center;font-size:12px;font-weight:700;flex:none}
.lvs-nm{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lvs-amt{margin-left:auto;font-size:12px;color:var(--mint);white-space:nowrap}
.lvs-ago{font-size:12px;color:var(--muted-2);flex:none;width:26px;text-align:right}
.lvs-chatsec{flex:1;min-height:0}
.lvs-chat{display:flex;flex-direction:column;gap:5px;height:180px;overflow:auto;font-size:12px;line-height:1.45}
.lvs-msg b{color:var(--brandteal);font-weight:600}
.lvs-msg.sys{color:var(--muted-2)}
.lvs-send{display:flex;gap:8px}
.lvs-send .lvs-in{flex:1;min-width:0}

@media (max-width:1100px){.lvs-grid{grid-template-columns:1fr}.lvs-panel{position:static}}
@media (max-width:640px){
  .lvs-h{font-size:22px}
  .lvs-ctl{padding:0 14px}
  .lvs-ctl.go{min-width:0;flex:1 1 100%;order:9}
  .lvs-ctl.ghost{flex:1 1 auto}
  .lvs-stage{aspect-ratio:4/5}
  .lvs-titleover{max-width:78%}
}

/* Multi-Chain-Tipping (Winchester 13.08.): Asset-Chips im Tip-Dialog — Glas-Pillen,
   Auswahl = Mint-Rahmen + Mint-Schleier (dir-grid-Muster), gesperrt = gedimmt. */
.tipp-seg { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 12px; }
.tipp-seg .tipc { min-width: 0; padding: 8px 13px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.85); font-size: 12px; font-weight: 700; letter-spacing: 0.02em; }
.tipp-seg .tipc:hover { background: rgba(255, 255, 255, 0.14); }
.tipp-seg .tipc.on { background: rgba(148, 250, 226, 0.14); border-color: #94FAE2; color: #fff; }
.tipp-seg .tipc.dis { opacity: 0.38; }
.tip-m .tipp-wal { margin: 8px 0 4px; }

/* Uma/Winchester 15.08.: Challenge-Cover zoombar + minimierbar, Draft-Hinweis */
.chc-cover.min { width: 38px; height: 38px; border-radius: 9px; }
.cover-zoom { position: fixed; inset: 0; z-index: 120; background: rgba(4,6,10,.9); backdrop-filter: blur(6px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 20px; }
.cover-zoom img { max-width: min(92vw, 720px); max-height: 70vh; border-radius: 14px; object-fit: contain;
  box-shadow: 0 18px 60px rgba(0,0,0,.5); }
/* Winchester 17.08.: die drei Buttons EXAKT auf einer Linie — .btn-primary bringt global
   margin-top:22px + eckigen Radius + andere Hoehe mit, und align-items:stretch zog die
   Ghosts auf die Aussenhoehe des Primary. Hier lokal neutralisiert: eine Hoehe, eine
   Baseline, eine Pill-Optik (Close bleibt als Primaer weiss). */
.cover-zoom .cz-b { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: center; }
.cover-zoom .cz-b button { margin: 0; height: 44px; min-width: 0; padding: 0 20px; border-radius: 999px;
  font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
.chc-draft { color: var(--muted); font-size: 13px; }
.chc-draft button { background: none; border: none; color: #7de9cf; cursor: pointer; font-size: 13px; text-decoration: underline; padding: 0; }

/* ===== Bild-Detail-Lightbox (Sandro 16.08., R2-Konzept 1 GLASS PANEL): randlos,
   Felder als Ton-in-Ton-Flaechen, sanfte Verlaeufe statt Linien ===== */
.glx { position: fixed; inset: 0; z-index: 130; display: grid; grid-template-columns: minmax(0, 1fr) 340px; }
.glx-bg { position: absolute; inset: 0; background: linear-gradient(160deg, rgba(10,12,24,.78), rgba(4,6,15,.86)); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); }
.glx-x { position: absolute; top: 18px; left: 18px; z-index: 2; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255,255,255,.08); color: #e7ebf4; display: grid; place-items: center; cursor: pointer; }
.glx-x:hover { background: rgba(255,255,255,.16); }
.glx-x svg { width: 18px; height: 18px; }
.glx-stage { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 56px 28px 24px; min-width: 0; }
.glx-img { max-width: 100%; max-height: calc(100vh - 180px); border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.55); display: block; }
.glx-nav { display: flex; align-items: center; gap: 14px; }
.glx-arr { width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255,255,255,.08); color: #e7ebf4; display: grid; place-items: center; cursor: pointer; }
.glx-arr:hover { background: rgba(255,255,255,.16); }
.glx-arr[disabled] { opacity: .35; cursor: default; }
.glx-arr svg { width: 16px; height: 16px; }
.glx-count { font-size: 12px; color: #aab2c5; min-width: 46px; text-align: center; }
.glx-side { position: relative; z-index: 1; margin: 14px 14px 14px 0; border-radius: 22px; padding: 22px 18px; overflow-y: auto;
  background: linear-gradient(180deg, rgba(20,24,40,.72), rgba(10,13,24,.82)); backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
  box-shadow: 0 24px 60px rgba(0,0,0,.4); display: flex; flex-direction: column; gap: 16px; }
.glx-lab { display: flex; align-items: center; justify-content: space-between; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #8b93a7; margin-bottom: 7px; }
.glx-namew { position: relative; }
.glx-name { width: 100%; border: 0; outline: 0; border-radius: 12px; background: rgba(255,255,255,.06); color: #eef1f8; font: inherit; font-size: 13px; padding: 11px 38px 11px 12px; }
.glx-name:focus { background: rgba(255,255,255,.1); }
.glx-auto { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border: 0; border-radius: 8px; background: transparent; color: var(--mint); cursor: pointer; display: grid; place-items: center; }
.glx-auto svg { width: 14px; height: 14px; }
.glx-chip { display: inline-flex; align-items: center; border-radius: 999px; background: rgba(255,255,255,.07); color: #dbe1ee; font-size: 12px; padding: 7px 12px; }
.glx-cols { display: flex; gap: 8px; align-items: center; }
.glx-sw { width: 26px; height: 26px; border-radius: 50%; border: 0; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.glx-sw:hover { transform: scale(1.12); }
/* Winchester 16.08.: Note- und Prompt-Box GLEICH hoch und einen Tick hoeher */
.glx-note, .glx-prompt { min-height: 118px; }
.glx-note { width: 100%; border: 0; outline: 0; resize: vertical; border-radius: 12px; background: rgba(255,255,255,.06); color: #eef1f8; font: inherit; font-size: 12.5px; line-height: 1.5; padding: 11px 12px; }
.glx-note:focus { background: rgba(255,255,255,.1); }
.glx-prompt { border-radius: 12px; background: rgba(255,255,255,.06); color: #b9c1d4; font-size: 12.5px; line-height: 1.5; padding: 11px 12px; max-height: 200px; overflow-y: auto; white-space: pre-wrap; }
.glx-pact { display: inline-flex; gap: 4px; }
.glx-ib { width: 24px; height: 24px; border: 0; border-radius: 7px; background: transparent; color: #8b93a7; cursor: pointer; display: grid; place-items: center; }
.glx-ib:hover { color: #eef1f8; background: rgba(255,255,255,.08); }
.glx-ib svg { width: 13px; height: 13px; }
.glx-tags { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.glx-tag { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; background: rgba(169,243,225,.12); color: var(--mint); font-size: 11.5px; padding: 6px 10px; }
.glx-tag button { border: 0; background: transparent; color: inherit; opacity: .6; cursor: pointer; padding: 0; line-height: 1; font-size: 12px; }
.glx-tag button:hover { opacity: 1; }
.glx-tagin { flex: 1; min-width: 90px; border: 0; outline: 0; background: transparent; color: #eef1f8; font: inherit; font-size: 12px; padding: 6px 2px; }
.glx-foot { margin-top: auto; display: flex; gap: 10px; padding-top: 4px; }
.glx-share { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 12px; background: rgba(255,255,255,.08); color: #eef1f8; font-size: 13px; padding: 11px 12px; cursor: pointer; }
.glx-share:hover { background: rgba(255,255,255,.14); }
.glx-delete { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 12px; background: linear-gradient(180deg, rgba(255,92,92,.18), rgba(255,92,92,.1)); color: #ff8f8f; font-size: 13px; padding: 11px 14px; cursor: pointer; }
.glx-delete:hover { background: linear-gradient(180deg, rgba(255,92,92,.28), rgba(255,92,92,.16)); }
.glx-share svg, .glx-delete svg { width: 15px; height: 15px; }
.glx-modal { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; background: rgba(4,6,15,.55); }
.glx-mcard { width: min(320px, 86vw); border-radius: 20px; background: linear-gradient(180deg, #171b2b, #10131f); box-shadow: 0 26px 70px rgba(0,0,0,.6); padding: 24px 22px; text-align: center; }
.glx-mico { width: 44px; height: 44px; margin: 0 auto 12px; border-radius: 50%; background: rgba(255,92,92,.14); color: #ff8f8f; display: grid; place-items: center; }
.glx-mico svg { width: 20px; height: 20px; }
.glx-mt { font-size: 15px; font-weight: 600; color: #eef1f8; margin: 0 0 4px; }
.glx-ms { font-size: 12px; color: #8b93a7; margin: 0 0 18px; }
.glx-mrow { display: flex; gap: 10px; }
.glx-mrow button { flex: 1; border: 0; border-radius: 999px; font-size: 13px; padding: 11px 0; cursor: pointer; }
.glx-mcancel { background: rgba(255,255,255,.08); color: #eef1f8; }
.glx-mdel { background: linear-gradient(180deg, #ff6b6b, #e04848); color: #fff; }
@media (max-width: 860px) {
  .glx { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .glx-side { margin: 0; border-radius: 22px 22px 0 0; max-height: 46vh; }
  .glx-img { max-height: 42vh; }
  .glx-stage { padding: 56px 16px 16px; }
}

/* Activity: eigene Erzeugungen (Winchester 16.08.) — Engine-Icon statt Avatar + Zaehler-Zeile */
.act-ico { display: grid; place-items: center; background: rgba(169,243,225,.1); color: var(--mint); }
.act-ico svg { width: 18px; height: 18px; }
.act-sum { display: flex; align-items: center; gap: 9px; margin: 2px 0 14px; padding: 11px 14px; border-radius: 12px; background: rgba(255,255,255,.05); color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.act-sum svg { width: 14px; height: 14px; flex: none; color: var(--mint); }

/* Infinite Studio Canvas: Atmosphaere (Winchester 16.08.) — die Panels driften minimal,
   das Blur-Ambiente atmet. Drift lebt auf dem INNEREN img (der Button-Transform gehoert
   dem Parallax); Parameter kommen als --dx/--dy/--dr/--dd/--dl je Slot aus dem JS. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes icvDrift {
    from { transform: translate3d(0, 0, 0) rotate(0deg); }
    to { transform: translate3d(var(--dx, 4px), var(--dy, -5px), 0) rotate(var(--dr, .4deg)); }
  }
  .icv-live .icv-fl img { animation: icvDrift var(--dd, 9s) var(--dl, 0s) ease-in-out infinite alternate; }
  .icv-fl:hover img { animation-play-state: paused; }
  @keyframes icvBgBreath {
    from { transform: scale(1) translate3d(0, 0, 0); }
    to { transform: scale(1.07) translate3d(1.2%, -.8%, 0); }
  }
  .icv-bg { animation: icvBgIn 1.1s ease .05s forwards, icvBgBreath 26s ease-in-out 1.1s infinite alternate; }
}

/* ---------- MESSENGER-HOME (Winchester-Konzept 16.08., photo_1786905329):
   Uebersicht beim Chat-Klick — Stories, Agents/Groups-Pillen, Hero-Karten
   (Bild/Video/3D-faehig), Direct Messages 2-spaltig. ---------- */
.mh { max-width: 1240px; margin: 0 auto; padding: 18px 26px 90px; position: relative; }
.mh-stories { display: flex; gap: 22px; align-items: center; justify-content: center;
  padding: 6px 0 18px; overflow-x: auto; scrollbar-width: none; }
.mh-stories::-webkit-scrollbar { display: none; }
.mh-story { position: relative; flex: 0 0 auto; width: 78px; height: 78px; border-radius: 50%;
  padding: 0; border: 0; background: var(--panel); cursor: pointer; }
.mh-story img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.mh-story i { position: absolute; right: 4px; bottom: 4px; width: 13px; height: 13px;
  border-radius: 50%; background: #56e39f; border: 3px solid var(--bg); }
.mh-story.mh-add { border: 2px dashed rgba(169,243,225,.65); background: transparent;
  color: var(--mint); display: flex; align-items: center; justify-content: center; }
.mh-story.mh-add svg { width: 26px; height: 26px; }
.mh-bar { display: flex; align-items: center; gap: 14px; margin: 4px 0 18px; }
.mh-search { flex: 1; max-width: 420px; }
.mh-pills { margin-left: auto; display: flex; gap: 8px; background: var(--panel);
  border-radius: 999px; padding: 5px; }
.mh-pill { border: 0; background: transparent; color: var(--muted); font-weight: 700;
  font-size: 14px; padding: 9px 22px; border-radius: 999px; cursor: pointer; }
.mh-pill.on { background: var(--mint); color: #10131c; }
.mh-cards { display: grid; grid-template-columns: 1.9fr 1fr 1fr; gap: 18px; }
.mh-card { position: relative; border: 0; padding: 0; border-radius: 26px; overflow: hidden;
  height: 340px; cursor: pointer; text-align: left; isolation: isolate;
  transition: transform .25s ease, box-shadow .25s ease; }
.mh-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(0,0,0,.45); }
.mh-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.mh-artletter { display: flex; align-items: center; justify-content: center; font-size: 120px; font-weight: 800; color: rgba(255,255,255,.16); letter-spacing: 2px; }
.mh-shade { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(10,12,20,0) 42%, rgba(10,12,20,.86) 100%); }
.mh-cinfo { position: absolute; left: 22px; bottom: 20px; z-index: 2; display: flex;
  flex-direction: column; gap: 8px; }
.mh-card.wide .mh-cinfo { left: 30px; bottom: 28px; }
.mh-cinfo b { color: #fff; font-size: 24px; letter-spacing: .2px; }
.mh-card.wide .mh-cinfo b { font-size: 40px; }
.mh-mem { display: inline-flex; align-items: center; gap: 7px; color: rgba(255,255,255,.85);
  font-size: 13.5px; font-weight: 600; }
.mh-mem svg { width: 17px; height: 17px; }
.mh-badge { width: 34px; height: 34px; border-radius: 50%; background: #2f6bff; color: #fff;
  font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.mh-role { position: absolute; top: 18px; right: 20px; z-index: 2; color: rgba(255,255,255,.9);
  font-size: 12.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
  background: rgba(12,14,24,.55); backdrop-filter: blur(6px); padding: 7px 13px; border-radius: 999px; }
.mh-h { color: var(--ink); font-size: 17px; margin: 26px 2px 12px; }
.mh-dm { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.mh-row { display: flex; align-items: center; gap: 13px; border: 0; text-align: left;
  background: var(--panel); border-radius: 16px; padding: 11px 16px; cursor: pointer; }
.mh-row:hover { background: var(--panel-2); }
.mh-row img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.mh-rt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mh-rt b { color: var(--ink); font-size: 14.5px; }
.mh-rt span { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; max-width: 300px; }
.mh-rr { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.mh-ago { color: var(--muted-2); font-size: 11.5px; }
.mh-rb { min-width: 22px; height: 22px; border-radius: 50%; background: #2f6bff; color: #fff;
  font-size: 11.5px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.mh-fab { position: fixed; right: 34px; bottom: 34px; width: 64px; height: 64px; border-radius: 50%;
  border: 0; background: var(--mint); color: #10131c; cursor: pointer; z-index: 40;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 30px rgba(0,0,0,.4); }
.mh-fab svg { width: 26px; height: 26px; }
@media (max-width: 980px) {
  .mh-cards { grid-template-columns: 1fr 1fr; }
  .mh-card { height: 240px; }
  .mh-card.wide { grid-column: 1 / -1; height: 280px; }
  .mh-dm { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .mh { padding: 12px 14px 90px; }
  .mh-cards { grid-template-columns: 1fr; }
  .mh-story { width: 62px; height: 62px; }
  .mh-pill { padding: 8px 16px; }
}

/* ---------- Challenges-Arena (Sandro-Konzept 16.08. abends, photo_1786908397):
   Stat-Leiste (Prizepool gross + echter Countdown + Participants), Hero-Banner mit
   Featured Challenge, Teaser-Karten. Sandro: heller + kontrastreicher als die
   Konzept-Tafel, Hausschrift, keine neuen Farben ausser den Haus-Tokens. ---------- */
.cha { max-width: 1240px; margin: 0 auto; padding: 6px 26px 60px; }
.cha-head { display: flex; align-items: center; gap: 14px; margin: 6px 0 18px; }
.cha-head h2 { font-size: 24px; font-weight: 800; margin: 0; }
.cha-preview { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700;
  color: var(--brandteal); background: rgba(135,217,207,.1); padding: 6px 12px; border-radius: 999px; }
.cha-preview svg { width: 13px; height: 13px; }
.cha-head .chb-new { margin-left: auto; display: inline-flex; align-items: center; gap: 8px;
  background: var(--mint); color: #0b2b22; font-weight: 800; font-size: 13.5px;
  padding: 10px 18px; border-radius: 999px; border: 0; cursor: pointer; }
.cha-head .chb-new svg { width: 15px; height: 15px; }
.cha-head .chb-new:hover { filter: brightness(1.06); }
.cha-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
.cha-stat { background: var(--panel-2); border-radius: var(--radius); padding: 16px 20px 14px;
  display: flex; flex-direction: column; gap: 3px; }
.cha-lbl { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.cha-lbl svg { width: 14px; height: 14px; color: var(--brandteal); }
.cha-stat b { font-size: 26px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.cha-stat .cha-apx { color: var(--brandteal); }
.cha-stat .cha-cd { color: var(--mint); }
.cha-sub { font-size: 12px; color: var(--muted); }
.cha-hero { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 300px;
  display: flex; align-items: stretch; margin-bottom: 26px; background: var(--panel-2); }
.cha-hart { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cha-hshade { position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(18,19,28,.94) 0%, rgba(18,19,28,.72) 38%, rgba(18,19,28,.12) 72%, rgba(18,19,28,0) 100%); }
.cha-hin { position: relative; z-index: 1; align-self: center; padding: 34px 40px; max-width: 560px; }
.cha-feat { display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--mint); margin-bottom: 10px; }
.cha-hin h3 { font-size: clamp(26px, 3vw, 38px); font-weight: 800; line-height: 1.08; margin: 0 0 10px; }
.cha-hin p { font-size: 14.5px; line-height: 1.5; color: #c9cce2; margin: 0 0 18px; }
.cha-hrow { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cha-cta { display: inline-flex; align-items: center; gap: 9px; background: var(--mint); color: #0b2b22;
  font-weight: 800; font-size: 14px; padding: 12px 22px; border-radius: 999px; text-decoration: none; }
.cha-cta svg { width: 16px; height: 16px; }
.cha-cta:hover { filter: brightness(1.06); }
.cha-hleft { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--mint); }
.cha-hleft svg { width: 14px; height: 14px; }
.cha-h { font-size: 15px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 14px; }
.cha-hend { margin-top: 28px; color: var(--muted); }
.cha-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.cha-card { display: flex; flex-direction: column; background: var(--panel-2); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .18s ease, background .18s ease; }
.cha-card:hover { transform: translateY(-3px); background: #2a2c42; }
.cha-card.ended { opacity: .55; }
.cha-cov { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.cha-cov img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cha-chip { position: absolute; left: 12px; bottom: 12px; font-size: 10.5px; font-weight: 800;
  letter-spacing: .09em; color: #0b2b22; background: var(--mint); padding: 5px 10px; border-radius: 999px; }
.cha-hrow .cha-chip { position: static; }
.cha-cbody { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; }
.cha-cbody b { font-size: 15.5px; font-weight: 800; line-height: 1.25; }
.cha-meta { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.cha-bar { height: 4px; border-radius: 999px; background: rgba(255,255,255,.09); overflow: hidden; }
.cha-bar i { display: block; height: 100%; border-radius: 999px; background: var(--brandteal); }
.cha-join { align-self: flex-start; margin-top: 2px; background: var(--mint); color: #0b2b22;
  font-size: 12.5px; font-weight: 800; padding: 7px 16px; border-radius: 999px; }
@media (max-width: 900px) {
  .cha { padding: 4px 14px 70px; }
  .cha-stats { grid-template-columns: 1fr; gap: 10px; }
  .cha-stat { flex-direction: row; align-items: baseline; gap: 10px; justify-content: space-between; flex-wrap: wrap; }
  .cha-stat b { font-size: 21px; }
  .cha-hin { padding: 24px 20px; }
  .cha-hero { min-height: 240px; }
  .cha-hshade { background: linear-gradient(90deg, rgba(18,19,28,.94) 0%, rgba(18,19,28,.78) 55%, rgba(18,19,28,.3) 100%); }
}

/* ---------- Telos-Gate-Modal (Sandro 16.08.): breiter, luftiger, sauberes Spacing.
   Root-Cause des alten Ueberlapps: .page-sub traegt global margin-top:-12px (fuer
   Seiten-Header gebaut) und zog den Subtext ueber die Modal-h3 — deshalb eigene
   tg-Familie statt page-sub im Modal. ---------- */
.modal-tg { max-width: 560px; padding: 30px 34px; }
.tg-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.tg-badge { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 16px; display: grid; place-items: center; background: rgba(53,208,197,.13); color: var(--teal); }
.tg-badge svg { width: 22px; height: 22px; stroke-width: 1.8; }
.modal-tg h3 { margin: 0; font-size: 17px; }
.tg-kick { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.tg-sub { color: var(--muted); font-size: 13.5px; line-height: 1.6; margin: 0 0 24px; }
.tg-lab { display: block; margin: 0 0 10px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tg-in { padding: 13px 16px; border-radius: 14px; }
.tg-in + .tg-in { margin-top: 10px; }
.tg-actions { margin-top: 16px; }
.tg-actions .btn-primary, .tg-actions .btn-ghost, .tg-alt .btn-ghost {
  width: 100%; max-width: none; margin-top: 0; height: 46px; padding: 0 22px;
  border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
}
.tg-actions-row { display: flex; gap: 10px; }
.tg-actions-row .btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.tg-actions-row .btn-ghost svg { width: 15px; height: 15px; }
.tg-or { display: flex; align-items: center; gap: 14px; margin: 26px 0 22px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.tg-or::before, .tg-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.tg-note { color: var(--muted); font-size: 12.5px; line-height: 1.55; margin: -2px 0 14px; }
.tg-err { margin-top: 14px; color: var(--red); font-size: 12.5px; display: none; }

/* Kompaktes Key-Signatur-Modal (Winchester 23.08.: "kleiner ziehen, schicker,
   Beispiel-Nummern userfreundlicher") — nur der Sign-Prompt, Setup-Modal bleibt. */
.modal-tg-key { max-width: 408px; padding: 24px 26px 22px; }
.modal-tg-key .tg-sub { font-size: 13px; margin-bottom: 16px; }
.modal-tg-key .tg-badge { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 14px; }
.modal-tg-key .tg-badge svg { width: 19px; height: 19px; }
.modal-tg-key h3 { font-size: 16px; }
.tg-hint { margin: 9px 2px 0; font-size: 11.5px; line-height: 1.5; color: var(--muted); }
.tg-hint b { font-weight: 600; color: inherit; opacity: .85; font-family: ui-monospace, monospace; }
.modal-tg-key .tg-actions { margin-top: 18px; }

/* Agent-Portraits statt Buchstaben-Kreis (Winchester 16.08.) + Karten-Video-Zoom:
   1px-Subpixel-Spalt liess den Teal-Kartengradient an Ryns rechter Kante blitzen
   (Sandro) — scale(1.02) deckt alle Kanten. */
.ch-agpic { object-fit: cover; border-radius: 50%; background: #202230; }
.mh-card video.mh-art { transform: scale(1.02); }

/* ---------- Tab-Chip-Animation vereinheitlicht (Sandro 16.08.): Discovery-Slider
   (.dt-ind) auch fuer Messenger-Home-Pills (Agents/Groups) und msgr-Tabs
   (Direct/Agents/Group). Buttons ueber den Chip heben, statische on-Farbe weicht
   dem gleitenden Chip. ---------- */
.mh-pills, .msgr-tabs { position: relative; }
.mh-pills .mh-pill, .msgr-tabs .mtab { position: relative; z-index: 2; }
.mh-pills.slid .mh-pill.on, .msgr-tabs.slid .mtab.on { background: transparent; }
.mh-pills .dt-ind { background: var(--mint); top: 5px; bottom: 5px; }
.msgr-tabs .dt-ind { background: #f0f0f2; top: 6px; bottom: 6px; }

/* ---------- iPad/kleines Fenster (Winchester 16.08.): unter 1240px lebt das
   Schliessen-X im zugezogenen Profil-Drawer — eigenes X im Chat-Bereich, solange
   der Drawer zu ist; Pfeil-Toggle rueckt daneben. ---------- */
.msgr-x { display: none; position: absolute; top: 19px; right: 19px; z-index: 6;
  width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.07); color: var(--ink); place-items: center; }
.msgr-x:hover { background: rgba(255,255,255,.12); }
.msgr-x svg { width: 18px; height: 18px; display: block; }
@media (max-width: 1240px) {
  .msgr.conv-on:not(.prof-on) .msgr-x { display: grid; }
  .msgr.conv-on:not(.prof-on) .msgr-ptg { right: 64px; }
}
@media (max-width: 640px) {
  .msgr:not(.conv-on) .msgr-x { display: none; }
}

/* ---------- Create-Post-Overlay (Sandro 18.08., Threads-Referenz): legt sich wie ein
   Feed-Post ueber den aktuellen Screen — Hintergrund geblurrt + dunkel ---------- */
body.cpo-open { overflow: hidden; }
.cpo { position: fixed; inset: 0; z-index: 88; display: grid; place-items: center; padding: 22px;
  background: rgba(4, 6, 10, .62); backdrop-filter: blur(14px) saturate(.92); animation: cpoIn .22s ease; }
@keyframes cpoIn { from { opacity: 0; } }
/* Sandro 18.08. R2: Karte ~20% breiter (560 -> 680) · R3: +20% hoeher, Medienbuehne fuellt */
.cpo-card { width: 100%; max-width: 680px; height: min(90vh, 810px); max-height: 94vh; display: flex; flex-direction: column;
  background: var(--panel); border-radius: 24px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55); animation: cpoCard .3s cubic-bezier(.3, 1.25, .4, 1); }
@keyframes cpoCard { from { transform: translateY(20px) scale(.965); opacity: 0; } }
.cpo-head { display: flex; align-items: center; padding: 15px 18px; flex: none; }
.cpo-head b { flex: 1; text-align: center; font-size: 15px; }
/* Sandro R3: schliessen = IMMER rundes X oben rechts, nie "Cancel"/"Close"-Text */
.cpo-x { width: 34px; height: 34px; flex: none; border: 0; border-radius: 50%; background: var(--panel-2);
  color: var(--muted); cursor: pointer; display: grid; place-items: center; transition: background 140ms, color 140ms; }
/* Sandro R4: X einen Tick dicker als der 1.5er-Icon-Default */
.cpo-x svg { width: 15px; height: 15px; stroke-width: 2.25; }
.cpo-x:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.cpo-hsp { width: 34px; flex: none; }
/* Sandro R11: feste Buehne (Feed-Deckel 640px), KEINE Scrollbars — grosse Bilder
   werden eingepasst, dahinter liegt das Medium geblurrt wie .ph-bg im Feed */
.cpo-med { position: relative; background: #0b0d16; min-height: 300px; max-height: 640px; display: grid; place-items: center; overflow: hidden; flex: 1; }
.cpo-medbg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: blur(26px) saturate(1.15) brightness(.62); transform: scale(1.18); opacity: .6; }
/* ABSOLUT fuellen: im Grid messen sich Zeilen am Inhalt, %-Hoehen loesen sich nie auf
   (DAS war die Scrollbar-Ursache) — absolute Prozente messen am relativen Container */
.cpo-med .cpo-pic { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: contain; }
.cpo-opts3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 30px 18px; width: 100%; }
/* Sandro R4: mit Drafts als vierter Quelle wird das Raster 2x2 */
.cpo-opts3.has4 { grid-template-columns: repeat(2, 1fr); }
/* Sandro R4: Quell-Boxen ~15% hoeher — wir haben den Platz */
.cpo-opt { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; padding: 33px 10px; border-radius: 18px;
  background: var(--panel-2); border: 1px dashed rgba(255, 255, 255, .16); color: #e5e8f6; cursor: pointer;
  font-size: 12.5px; font-weight: 700; transition: transform .16s ease, border-color .16s ease; }
.cpo-opt:hover { transform: translateY(-2px); border-color: var(--teal); }
/* Sandro R3: Icons weiss, nicht tuerkis */
.cpo-opt svg { width: 26px; height: 26px; color: #fff; }
.cpo-opt span { color: var(--muted); font-weight: 400; font-size: 11px; text-align: center; line-height: 1.35; }
.cpo-pick { width: 100%; padding: 12px 14px; }
.cpo-pickbar { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.cpo-back { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--panel-2); color: #fff; cursor: pointer; display: grid; place-items: center; flex: none; }
.cpo-back svg { width: 15px; height: 15px; transform: rotate(180deg); }
.cpo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 8px; max-height: 44vh; overflow: auto; }
/* Sandro R8: weicher Hover mit Expo-Easing — Ring blendet sanft ein, Bild zoomt
   minimal, Kachel hebt leicht ab (statt hartem Aufpoppen des Rings) */
/* Sandro R9 (photo_1787052660): Kacheln ruhen bei 70% Opacity, Hover = 100% — Ease-Out */
.cpo-cell { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 1; background: #141724; border: 0; padding: 0; cursor: pointer; opacity: .7;
  transition: transform .5s cubic-bezier(.16, 1, .3, 1), box-shadow .5s cubic-bezier(.16, 1, .3, 1), opacity .45s cubic-bezier(.16, 1, .3, 1); }
.cpo-cell img, .cpo-cell video { width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .65s cubic-bezier(.16, 1, .3, 1); }
.cpo-cell::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 2px var(--teal); border-radius: 12px;
  opacity: 0; pointer-events: none; transition: opacity .45s cubic-bezier(.16, 1, .3, 1); }
.cpo-cell:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0, 0, 0, .38); opacity: 1; }
.cpo-cell:hover::after { opacity: 1; }
.cpo-cell:hover img, .cpo-cell:hover video { transform: scale(1.05); }
.cpo-vb { position: absolute; right: 7px; top: 7px; width: 24px; height: 24px; border-radius: 50%; background: rgba(8, 12, 18, .68);
  display: grid; place-items: center; pointer-events: none; }
.cpo-vb svg { width: 12px; height: 12px; color: #fff; }
.cpo-vb.big { right: auto; top: auto; width: 54px; height: 54px; position: absolute; }
.cpo-vb.big svg { width: 24px; height: 24px; }
.cpo-change { position: absolute; right: 10px; top: 10px; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; border: 0; border-radius: 999px; background: rgba(8, 12, 18, .72); color: #fff; font-size: 12px; cursor: pointer; backdrop-filter: blur(6px); }
.cpo-change svg { width: 14px; height: 14px; }
/* ---------- Voice-Memo (Sandro 19.08.): Aufnahme + Wellenform + Trimmen im Overlay ---------- */
.cpo-voice { flex: none; padding: 10px 18px 0; }
/* Sandro R2: Einstieg versteckter — Plus-Kreis im Diktier-Stil, Menue Emoji/Voice/AI */
.cpo-plus { width: 34px; height: 34px; flex: none; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .08); color: #fff; display: grid; place-items: center; transition: background 140ms; }
.cpo-plus svg { width: 16px; height: 16px; }
.cpo-plus:hover { background: rgba(255, 255, 255, .16); }
.cpo-plusmenu { position: absolute; right: 8px; bottom: calc(100% + 10px); z-index: 5; min-width: 200px;
  padding: 8px; border-radius: 16px; background: rgba(20, 24, 34, .92); backdrop-filter: blur(18px) saturate(1.1);
  border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 18px 46px rgba(0, 0, 0, .5);
  display: flex; flex-direction: column; gap: 2px; animation: cpoCard .22s cubic-bezier(.3, 1.25, .4, 1); }
.cpo-pm-it { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border: 0; border-radius: 11px;
  background: none; color: #eef1fa; font-size: 13px; font-weight: 600; cursor: pointer; text-align: left; }
.cpo-pm-it:hover { background: rgba(255, 255, 255, .09); }
.cpo-pm-it[disabled] { opacity: .55; cursor: default; }
/* Sandro R3: ueberall SVG-Icons im GLEICHEN neutralen Kreis (Diktier-Stil) — nichts Buntes */
.cpo-pm-ic { width: 27px; height: 27px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: rgba(255, 255, 255, .1); color: #fff; }
.cpo-pm-ic svg { width: 14px; height: 14px; }
.cpo-emojis { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; max-width: 296px; }
.cpo-emo { border: 0; background: none; font-size: 19px; padding: 5px; border-radius: 9px; cursor: pointer; }
.cpo-emo:hover { background: rgba(255, 255, 255, .12); }
.cpo-vmrow { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 14px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.cpo-vmrow.rec { cursor: pointer; border-color: rgba(224, 89, 107, .5); }
.cpo-vmdot { width: 10px; height: 10px; border-radius: 50%; background: #e0596b; flex: none; animation: vmPulse 1.1s ease infinite; }
@keyframes vmPulse { 50% { opacity: .35; transform: scale(.8); } }
.cpo-vmrow.rec b { font-size: 13px; min-width: 86px; }
.cpo-vmhint { color: var(--muted); font-size: 12px; flex: 1; }
.cpo-vmstop { width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(224, 89, 107, .9); cursor: pointer; display: grid; place-items: center; flex: none; }
.cpo-vmstop span { width: 11px; height: 11px; border-radius: 2px; background: #fff; display: block; }
.cpo-vmplay { width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; display: grid; place-items: center; flex: none; }
.cpo-vmplay svg { width: 14px; height: 14px; }
.vm-pause { width: 10px; height: 12px; display: block; border-left: 3.5px solid #fff; border-right: 3.5px solid #fff; }
.cpo-vmwavewrap { position: relative; flex: 1; height: 40px; }
.cpo-vmwavewrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.cpo-vmhandle { position: absolute; top: -3px; bottom: -3px; width: 12px; margin-left: -6px; cursor: ew-resize; touch-action: none; }
.cpo-vmhandle::after { content: ""; position: absolute; left: 4px; top: 0; bottom: 0; width: 4px; border-radius: 3px; background: var(--teal); }
.cpo-vmdur { font-size: 12px; color: var(--muted); min-width: 34px; text-align: right; }
.cpo-vmdel { width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .08); color: #ff9d9d; cursor: pointer; display: grid; place-items: center; flex: none; }
.cpo-vmdel svg { width: 12px; height: 12px; stroke-width: 2.25; }
.cpo-vmsug { padding-top: 8px; }
.cpo-vmusesug { display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(53, 208, 197, .3); border-radius: 999px;
  background: rgba(53, 208, 197, .1); color: #cdeeea; font-size: 12px; padding: 7px 13px; cursor: pointer; }
.cpo-vmusesug svg { width: 13px; height: 13px; color: var(--teal); }
.cpo-vmusesug:hover { border-color: var(--teal); color: #fff; }

/* Voice-Caption-Leiste im FEED (Sandro R3: ganz unten in der Karte, unter der
   Post-Beschreibung — und OHNE Border) */
.ph-vmemo { display: flex; align-items: center; gap: 10px; margin: 8px 12px 12px;
  padding: 8px 12px; border-radius: 14px; background: rgba(255, 255, 255, .06); }
/* Sandro R4: Play-Button dezent — weiss 10% statt Farbverlauf, Icon drauf */
.vm-play { width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1);
  color: #fff; cursor: pointer; display: grid; place-items: center; flex: none; transition: background 140ms; }
.vm-play:hover { background: rgba(255, 255, 255, .18); }
.vm-play svg { width: 13px; height: 13px; }
.vm-wave { flex: 1; height: 26px; }
.vm-dur { font-size: 11.5px; color: #dfe3f0; flex: none; }

/* Sandro R4: kein Icon mehr, nur Text — und einen Tick praesenter.
   R5 (19.08.): 5px hochgerueckt + 5px mehr Luft nach unten, Chevron zeigt das Dropdown an */
.cpo-optbtn { display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; color: var(--muted);
  font-size: 13px; cursor: pointer; padding: 11px 18px 7px; align-self: flex-start; }
.cpo-optbtn > svg { width: 13px; height: 13px; margin-left: -4px; opacity: .85; }
.cpo-optbtn:hover { color: #fff; }
.cpo-optbtn.miss { color: #ff9d9d; }
.cpo-optcat { padding: 4px 11px; border-radius: 999px; font-size: 11px; font-weight: 700; }
/* Sandro R3: Kategorien + Optionen = eigenes GLAS-Panel ueber der Karte
   (semi-transparent weiss + Background-Blur), nicht mehr inline aufgeklappt */
.cpo-catov { z-index: 92; background: rgba(6, 8, 13, .45); }
/* Sandro R5 (19.08.): Overlays vereinheitlicht — Glas mit VERLAUF (oben solider,
   nach unten transparenter) + Background-Blur = mehr Tiefe; gilt fuer Category UND My creations */
.cpo-catcard { position: relative; width: 100%; max-width: 620px; padding: 26px 26px 28px; border-radius: 24px;
  background: linear-gradient(180deg, rgba(27, 29, 42, .96) 0%, rgba(27, 29, 42, .78) 55%, rgba(27, 29, 42, .55) 100%);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(26px) saturate(1.15); box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
  animation: cpoCard .3s cubic-bezier(.3, 1.25, .4, 1); }
.cpo-catcard .cpo-x { position: absolute; right: 16px; top: 16px; background: rgba(255, 255, 255, .12); color: #fff; }
.cpo-catcard .cpo-x:hover { background: rgba(255, 255, 255, .22); }
/* Sandro R4: Hashtag-Feld hoeher, nicht mehr so schmal.
   R5: rundere Ecken statt kantig + Placeholder in richtigem Grau */
.cpo-catcard input { width: 100%; background: rgba(10, 13, 20, .55); padding: 15px 16px;
  border-radius: 16px; color: #e9ecf5; }
.cpo-catcard input::placeholder { color: #949cb0; }
.cpo-lab { font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #cfd4e2; margin: 0 0 12px; }
.cpo-lab + .cat-chips { margin-bottom: 26px; }
/* Kategorie-Chips in ihren ECHTEN App-Farben (CAT_COLORS-Kanon): Farbpunkt im
   Ruhezustand, gewaehlt = Chip fuellt sich mit der Kategorie-Farbe */
.cpo-cats { gap: 9px; }
.cpo-catcard .cpo-catc { background: rgba(10, 13, 20, .5); color: #dde2ef; }
.cpo-catcard .cpo-catc.on { background: var(--cc); color: var(--cf); }
.cpo-catc { position: relative; padding: 8px 13px 8px 27px; border-radius: 999px; background: var(--panel-2);
  border: 1px solid transparent; color: var(--muted); font-size: 12px; font-weight: 600; cursor: pointer;
  transition: background 140ms, color 140ms, border-color 140ms, transform 140ms; }
.cpo-catc::before { content: ""; position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  width: 9px; height: 9px; border-radius: 50%; background: var(--cc);
  box-shadow: 0 0 7px color-mix(in srgb, var(--cc) 65%, transparent); }
.cpo-catc:hover { color: #fff; border-color: color-mix(in srgb, var(--cc) 60%, transparent); transform: translateY(-1px); }
.cpo-catc.on { background: var(--cc); color: var(--cf); border-color: color-mix(in srgb, var(--cc) 70%, #fff 12%); }
.cpo-catc.on::before { background: var(--cf); box-shadow: none; }
.cpo-err { margin: 4px 16px 0; }
/* Assistant-Vorschlaege: 3 klickbare Caption-Ideen ueber der Eingabe */
.cpo-sug { position: relative; display: flex; flex-direction: column; gap: 7px; padding: 8px 16px 2px; }
.cpo-sugload { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12.5px; padding: 2px 0; }
.cpo-sugload svg { width: 14px; height: 14px; color: var(--teal); animation: cpoSugPulse 1.1s ease infinite; }
@keyframes cpoSugPulse { 50% { opacity: .35; transform: scale(.88); } }
.cpo-sugc { text-align: left; background: var(--panel-2); border: 1px solid rgba(53, 208, 197, .22);
  border-radius: 14px; padding: 9px 34px 9px 12px; color: #e2e7f5; font-size: 12.5px; line-height: 1.4;
  cursor: pointer; transition: border-color 140ms, transform 140ms; }
.cpo-sugc:hover { border-color: var(--teal); transform: translateY(-1px); }
.cpo-sugx { position: absolute; right: 18px; top: 8px; width: 24px; height: 24px; border-radius: 50%;
  border: 0; background: var(--panel-2); color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.cpo-sugx svg { width: 12px; height: 12px; }
.cpo-sugx:hover { color: #fff; }

/* Post Assistant (Sandro R5 19.08.): Overlay im Category-Stil, Topics als Akkordeon —
   Topic antippen klappt die laengere Caption auf, Button uebernimmt sie */
.cpo-aicard { max-width: 560px; }
.cpo-aibody { display: flex; flex-direction: column; gap: 8px; min-height: 120px; }
.cpo-aiit { border-radius: 16px; background: rgba(10, 13, 20, .5); overflow: hidden; }
.cpo-aitop { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
  padding: 13px 16px; border: 0; background: none; color: #eef1fa; font-size: 13.5px; font-weight: 600;
  cursor: pointer; text-align: left; }
.cpo-aitop:hover { color: #fff; background: rgba(255, 255, 255, .04); }
.cpo-aitop svg { width: 14px; height: 14px; flex: none; color: var(--muted);
  transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
.cpo-aiit.open .cpo-aitop svg { transform: rotate(180deg); }
.cpo-aipanel { padding: 0 16px 14px; }
.cpo-aipanel p { margin: 0 0 12px; color: #ccd2e2; font-size: 13px; line-height: 1.55; }
.cpo-aiuse { width: auto; min-width: 0; max-width: none; margin: 0; border-radius: 999px;
  padding: 9px 18px; font-size: 12.5px; }
.cpo-airetry { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; margin-top: 4px;
  border: 0; background: none; color: var(--muted); font-size: 12.5px; cursor: pointer; padding: 4px 2px; }
.cpo-airetry:hover { color: #fff; }
.cpo-airetry svg { width: 13px; height: 13px; color: var(--teal); }
/* Sandro 18.08. R2: Caption = echtes Textfeld statt Chat-Pille · R3: Avatar+Name OBEN,
   Feld volle Breite, Post-Button DARUNTER — alles mit mehr Luft */
.cpo-bar { display: flex; flex-direction: column; gap: 11px; align-items: stretch; padding: 14px 18px 18px; flex: none; }
.cpo-who { display: flex; align-items: center; gap: 10px; }
.cpo-who b { font-size: 13.5px; }
.cpo-av { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; }
.cpo-inwrap { position: relative; /* Anker fuer das Plus-Menue */ flex: 1; display: flex; align-items: flex-end; gap: 6px; background: var(--panel-2);
  border: 1px solid rgba(255, 255, 255, .07); border-radius: 18px; padding: 10px 8px 8px 14px; min-width: 0;
  transition: border-color 140ms; }
.cpo-inwrap:focus-within { border-color: rgba(53, 208, 197, .45); }
.cpo-inwrap textarea { flex: 1; background: none; border: 0; resize: none; color: #fff; font-size: 14px;
  line-height: 1.5; min-height: 64px; max-height: 150px; outline: none; padding: 2px 0; min-width: 0; }
.cpo-tools { display: flex; gap: 6px; flex: none; }
/* .mic ist global absolut (Chat-Composer) — hier sitzt es im Flex-Flow des Feldes */
.cpo-mic { position: static; right: auto; bottom: auto; width: 34px; height: 34px; flex: none;
  background: rgba(255, 255, 255, .08); }
.cpo-mic svg { color: #fff; }
/* Sandro R4: Icon weiss + Hintergrund lebt — rotierendes Farbband unter dem Sparkle */
.cpo-ai { position: relative; overflow: hidden; width: 34px; height: 34px; flex: none; border: 0; border-radius: 50%;
  cursor: pointer; background: #35d0c5; color: #fff; display: grid; place-items: center;
  transition: transform 140ms, box-shadow 140ms; }
.cpo-ai::before { content: ""; position: absolute; inset: -40%;
  background: conic-gradient(from 0deg, #35d0c5, #7a6cf0, #4aa8ff, #35d0c5);
  animation: cpoAiSpin 3.2s linear infinite; }
@keyframes cpoAiSpin { to { transform: rotate(360deg); } }
.cpo-ai svg { width: 16px; height: 16px; position: relative; z-index: 1;
  filter: drop-shadow(0 1px 3px rgba(10, 14, 22, .45)); }
.cpo-ai:hover { transform: scale(1.08); box-shadow: 0 0 14px rgba(53, 208, 197, .45); }
.cpo-post { border-radius: 999px; padding: 13px 22px; min-width: 0; width: 100%; max-width: none; margin-top: 0; flex: none; font-size: 14px; }
/* My-creations-Browser: zweites, groesseres Overlay UEBER der Post-Karte.
   Sandro R5 (19.08.): gleiche Glas-Optik wie das Category-Overlay — Verlauf + Blur */
.cpo-lib { z-index: 90; }
.cpo-libcard { max-width: 1020px; height: min(88vh, 900px);
  background: linear-gradient(180deg, rgba(27, 29, 42, .96) 0%, rgba(27, 29, 42, .78) 55%, rgba(27, 29, 42, .55) 100%);
  border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(26px) saturate(1.15); }
/* Sandro R5 (photo_1787048439): eine Kopfzeile — Titel links, Filter exakt in der
   Kartenmitte (absolut zentriert), X rechts; alles auf einer horizontalen Achse */
/* Sandro R7: Titel ganz raus — Kopf = Filter in der Kartenmitte + X rechts */
.cpo-libhead { position: relative; justify-content: flex-end; padding: 14px 18px; }
/* Sandro R13 (19.08.): Tab-Navigation 5px runter */
.cpo-libhead .cpo-libseg { position: absolute; left: 50%; top: calc(50% + 5px); transform: translate(-50%, -50%); width: min(380px, 52%);
  background: rgba(255, 255, 255, .08); }
.cpo-libseg { max-width: 380px; position: relative; }
.cpo-libseg .seg-tab { position: relative; z-index: 2; }
.cpo-libseg.slid .seg-tab.on { background: transparent; }
.cpo-libbody { flex: 1; overflow: auto; padding: 22px 16px 16px; }
/* Sandro R8b (photo_1787052319): das Raster darf NICHT selbst scrollen/klippen —
   sonst schneidet die Hover-Anhebung die oberste Reihe ab; scrollen tut .cpo-libbody */
.cpo-libgrid { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; max-height: none; overflow: visible; }

/* Sandro R10: leerer Zustand — Text mittig in der Flaeche, Create-Button darunter
   R11: Teaser-Titel + grosser Hero-Button mit Engine-Background, mehr Abstand */
.cpo-libempty { height: 100%; min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.cpo-libempty h4 { margin: 0 0 10px; font-size: 21px; letter-spacing: -.01em; }
.cpo-libempty p { margin: 0 0 30px; color: var(--muted); font-size: 14px; line-height: 1.55; max-width: 400px; }
.cpo-libcreate { width: auto; min-width: 0; max-width: none; margin: 0; border-radius: 999px; padding: 12px 28px; font-size: 13.5px; }
/* Sandro R12: Button richtig RUND (Pille) und etwas kleiner */
.cpo-libhero { position: relative; overflow: hidden; width: min(340px, 78%); height: 68px; border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px; cursor: pointer; background: #10131d; display: grid; place-items: center; padding: 0;
  transition: transform .5s cubic-bezier(.16, 1, .3, 1), box-shadow .5s cubic-bezier(.16, 1, .3, 1); }
.clh-bg { position: absolute; inset: 0; background-size: cover; background-position: center 30%;
  filter: brightness(.68) saturate(1.1); transition: transform .65s cubic-bezier(.16, 1, .3, 1), filter .5s cubic-bezier(.16, 1, .3, 1); }
.cpo-libhero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 8, 13, .1), rgba(6, 8, 13, .48)); }
.clh-lab { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 9px; color: #fff; font-size: 14px; font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .55); }
.clh-lab svg { width: 15px; height: 15px; }
.cpo-libhero:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(0, 0, 0, .45); }
.cpo-libhero:hover .clh-bg { transform: scale(1.06); filter: brightness(.8) saturate(1.15); }
/* helle Variante (Video-Room-Verlauf): Background ungefiltert zeigen, Text dunkel wie auf der Room-Karte */
.cpo-libhero.light .clh-bg { filter: none; }
.cpo-libhero.light::after { background: none; }
.cpo-libhero.light .clh-lab { color: #0c1118; text-shadow: none; }
.cpo-libhero.light:hover .clh-bg { transform: scale(1.06); filter: brightness(1.03); }

/* --- Draft-Nachfrage beim Schliessen (Sandro R4): kleines Glas-Panel ZUOBERST --- */
.cpo-askov { z-index: 96; background: rgba(6, 8, 13, .5); }
.cpo-askcard { position: relative; width: 100%; max-width: 420px; padding: 28px 26px 24px; border-radius: 24px;
  background: rgba(255, 255, 255, .1); backdrop-filter: blur(22px) saturate(1.1);
  border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 26px 70px rgba(0, 0, 0, .5);
  animation: cpoCard .3s cubic-bezier(.3, 1.25, .4, 1); }
.cpo-askcard > b { display: block; font-size: 16px; margin-bottom: 8px; padding-right: 40px; }
.cpo-askcard p { margin: 0 0 20px; color: #cfd4e2; font-size: 13px; line-height: 1.55; }
.cpo-askcard .cpo-askx { position: absolute; right: 16px; top: 16px; background: rgba(255, 255, 255, .12); color: #fff; }
.cpo-askrow { display: flex; gap: 10px; }
.cpo-asksave { flex: 1; border-radius: 999px; padding: 12px 18px; min-width: 0; max-width: none; margin: 0; font-size: 13.5px; }
.cpo-askdrop { flex: 1; border: 0; border-radius: 999px; padding: 12px 18px; cursor: pointer; font-size: 13.5px; font-weight: 600;
  background: rgba(255, 255, 255, .1); color: #ffb1b1; transition: background 140ms, color 140ms; }
.cpo-askdrop:hover { background: rgba(255, 120, 120, .18); color: #ffd3d3; }

/* --- Drafts-Browser (Sandro R4) --- */
.cpo-draftcard { max-width: 760px; height: min(80vh, 700px); }
.cpo-dcell { cursor: pointer; }
.cpo-dtxt { display: grid; place-items: center; width: 100%; height: 100%; color: var(--muted); }
.cpo-dtxt svg { width: 26px; height: 26px; }
.cpo-dcap { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 8px; font-size: 11px; color: #eef1fa;
  text-align: left; background: linear-gradient(transparent, rgba(5, 7, 12, .85));
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cpo-ddel { position: absolute; right: 7px; top: 7px; width: 26px; height: 26px; border: 0; border-radius: 50%;
  background: rgba(8, 12, 18, .72); color: #ff9d9d; cursor: pointer; display: grid; place-items: center;
  z-index: 2; /* ueber dem :hover::after-Rahmen der Zelle, sonst faengt der die Klicks */ }
.cpo-ddel svg { width: 12px; height: 12px; stroke-width: 2.25; }
.cpo-ddel:hover { background: rgba(255, 90, 90, .85); color: #fff; }
.cpo-dcell .cpo-vb { right: auto; left: 7px; }
@media (max-width: 640px) {
  .cpo { padding: 0; }
  .cpo-card { max-width: none; height: 100dvh; max-height: none; border-radius: 0; }
  .cpo-med { max-height: none; flex: 1; }
  .cpo-opts3 { grid-template-columns: 1fr; }
  .cpo-libcard { height: 100dvh; }
  /* R5: schmales Fenster — Filter faellt aus der Mitte in eine eigene Zeile darunter */
  .cpo-libhead { flex-wrap: wrap; }
  .cpo-libhead .cpo-libseg { position: static; transform: none; width: 100%; order: 3; margin-top: 15px; } /* R13: +5px runter auch mobil */
}

/* --- Polish R4 (22.08.): Mobile — Dots passen in 390px, keine FABs ueber dem Flow --- */
.shell:has(.rg-stage) .cfab, .shell:has(.rg-stage) #agFab { display: none; }
@media (max-width: 720px) {
  .rg-dot { width: 20px; height: 20px; font-size: 9px; }
  .rg-ln { width: 10px; }
  .rg-dots { margin-bottom: 24px; }
  .rg-stage { padding-top: 28px; }
}

/* Winchester 23.08.: ✨-Fix-Chip — Ein-Tipp-Autokorrektur (assist /polish) an jedem Textfeld */
.fix-chip {
  position: fixed; z-index: 1200; display: none; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(53, 208, 197, .45);
  background: rgba(16, 22, 30, .92); color: var(--mint); font-size: 12px; font-weight: 600;
  cursor: pointer; backdrop-filter: blur(6px); box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
  transition: color .15s, border-color .15s;
}
.fix-chip.on { display: inline-flex; }
.fix-chip:hover { color: #10131c; background: var(--mint); }
.fix-chip.busy { pointer-events: none; opacity: .75; }
.fix-chip.done { color: #10131c; background: var(--mint); border-color: var(--mint); }
.fix-chip > svg { width: 13px; height: 13px; }
.fix-flash { animation: fixflash .9s ease; }
@keyframes fixflash {
  0% { box-shadow: 0 0 0 2px rgba(53, 208, 197, .75); }
  100% { box-shadow: 0 0 0 2px rgba(53, 208, 197, 0); }
}

/* Winchester 23.08.: APX-Welcome-Offer nach dem Tutorial (+10% Extra-APX, 25–1000$) */
.apxo { text-align: center; padding: 6px 4px; }
.apxo-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  border: 1px solid rgba(53, 208, 197, .4); background: rgba(53, 208, 197, .1);
  color: var(--mint); font-size: 11px; font-weight: 700; letter-spacing: .04em; margin-bottom: 14px;
}
.apxo-badge > svg { width: 12px; height: 12px; }
.apxo h3 { margin: 0 0 6px; font-size: 24px; }
.apxo-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 16px 0 12px; }
.apxo-chip {
  padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .04); color: var(--tx, #e8e9f2); font-size: 14px; font-weight: 600; cursor: pointer;
}
.apxo-chip.on { background: var(--mint); border-color: var(--mint); color: #10131c; }
.apxo-inrow { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 4px 0 8px; }
.apxo-inrow > span:first-child { font-size: 18px; font-weight: 700; color: var(--mint); }
.apxo-inrow input {
  width: 110px; padding: 9px 12px; border-radius: 12px; border: 1px solid rgba(53, 208, 197, .35);
  background: rgba(255, 255, 255, .05); color: #fff; font-size: 18px; font-weight: 700; text-align: center;
}
.apxo-minmax { font-size: 11px; color: var(--tx-dim, #9aa0b4); }
.apxo-calc { margin: 2px 0 10px; font-size: 14px; color: var(--tx, #e8e9f2); }
.apxo-calc b { color: var(--mint); }
.apxo-note { margin-top: 12px; font-size: 11px; line-height: 1.5; color: var(--tx-dim, #9aa0b4); }
.apxo-banner {
  display: flex; align-items: center; gap: 10px; margin: 0 0 16px; padding: 12px 16px;
  border-radius: 16px; border: 1px solid rgba(53, 208, 197, .35);
  background: linear-gradient(90deg, rgba(53, 208, 197, .12), rgba(53, 208, 197, .04));
}
.apxo-banner > svg { width: 16px; height: 16px; color: var(--mint); flex: none; }
.apxo-banner > span { flex: 1; font-size: 13px; }
.apxo-banner .btn-primary { padding: 7px 14px; font-size: 13px; flex: none; }

/* Winchester 23.08. (P3): Key-Felder maskiert OHNE type=password — verhindert den
   Google-"Passwort speichern?"-Dialog (Private Keys gehoeren nie in den Passwort-Manager).
   -webkit-text-security greift in Chrome/Edge/Safari; Firefox zeigt Klartext (bewusst
   akzeptiert, kein Passwort-Manager-Trigger dort). */
.key-mask { -webkit-text-security: disc; }

/* Winchester 23.08. (P1): Adresse + Key zusammen notieren (Wallet-live-Screen) */
.rg-notebox { margin: 18px 0 6px; padding: 14px 16px; border-radius: 16px; border: 1px solid rgba(53, 208, 197, .25); background: rgba(53, 208, 197, .05); text-align: left; }
.rg-noterow { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.rg-noterow > label { flex: none; width: 78px; font-size: 11px; letter-spacing: .04em; color: var(--tx-dim, #9aa0b4); text-transform: uppercase; }
.rg-noterow > input { flex: 1; min-width: 0; }

/* Winchester 23.08. (P5): Post = Primaeraktion im AI-Lab-Viewer (mint), Share/Delete sekundaer */
.glx-post { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 12px; background: var(--mint); color: #10131c; font-size: 13px; font-weight: 700; padding: 11px 12px; cursor: pointer; }
.glx-post:hover { filter: brightness(1.06); }
.glx-post svg { width: 15px; height: 15px; }

/* Winchester 23.08. (P6): Ryn-Caption-Vorschlag im Composer */
.cpo-ryntip { display: flex; align-items: flex-start; gap: 10px; margin: 10px 0 0; padding: 11px 12px; border-radius: 14px; border: 1px solid rgba(53, 208, 197, .3); background: rgba(53, 208, 197, .07); }
.crt-orb { flex: none; width: 22px; height: 22px; border-radius: 50%; margin-top: 1px; background: radial-gradient(circle at 32% 30%, #d9fff5, var(--teal) 58%, #12405c); box-shadow: 0 0 10px rgba(53, 208, 197, .5); }
.crt-tx { flex: 1; min-width: 0; font-size: 12.5px; line-height: 1.5; color: var(--tx, #e8e9f2); }
.crt-tx i { color: var(--mint); font-style: normal; font-weight: 600; }
.crt-sug { display: block; margin-top: 5px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .06); font-weight: 600; }
.crt-acts { flex: none; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.crt-use { border: 0; border-radius: 999px; padding: 6px 14px; background: var(--mint); color: #10131c; font-size: 12px; font-weight: 700; cursor: pointer; }
.crt-x { border: 0; border-radius: 50%; width: 24px; height: 24px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: var(--tx-dim, #9aa0b4); cursor: pointer; }
.crt-x svg { width: 12px; height: 12px; }

/* Wallet rechte Leiste (Winchester 23.08., WL2-Entscheid): Cockpit + Hero unten rechts */
.wp-info { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; margin-left: 8px; border-radius: 50%; border: 1px solid rgba(142, 146, 178, .5); color: var(--muted); font-size: 10px; font-weight: 600; cursor: help; vertical-align: 2px; }
.sp-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; font-size: 13px; color: var(--muted); border-bottom: 1px solid rgba(255, 255, 255, .05); }
.sp-row:last-of-type { border-bottom: 0; }
.sp-row svg { width: 15px; height: 15px; flex: none; color: var(--teal); }
.sp-row b { margin-left: auto; color: var(--ink); font-size: 13px; }
.sp-acts { margin-top: 10px; }
.side-hero { background: linear-gradient(135deg, rgba(31, 168, 159, .45), rgba(20, 48, 58, .92) 55%, var(--panel)); border: 1px solid rgba(53, 208, 197, .35); border-radius: 18px; padding: 18px; }
.side-hero .sh-lab { display: flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .4px; text-transform: uppercase; color: var(--mint); }
.side-hero .sh-lab svg { width: 15px; height: 15px; }
.sh-addr { display: flex; align-items: center; gap: 8px; margin: 10px 0 8px; }
.sh-addr b { font-size: 19px; color: #fff; letter-spacing: .3px; overflow-wrap: anywhere; }
.sh-copy { width: 30px; height: 30px; min-width: 0; padding: 0; border: 0; border-radius: 9px; background: rgba(255, 255, 255, .08); color: var(--mint); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.sh-copy:hover { background: rgba(255, 255, 255, .15); color: #fff; }
.sh-copy svg { width: 15px; height: 15px; }
.sh-chip { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; color: var(--mint); background: rgba(53, 208, 197, .12); border-radius: 999px; padding: 4px 10px; }
.sh-chip b { color: #fff; font-weight: 600; }
.sh-note { margin: 12px 0 0; font-size: 11.5px; line-height: 1.45; color: rgba(238, 240, 246, .55); }

/* Agent-Bereiche mit echten Zahlen + Direktsprung-Buttons (Winchester 23.08.) */
.mh-badge:empty { display: none; }
.ag-link { display: inline-flex; align-items: center; gap: 6px; color: var(--mint); border-color: rgba(53, 208, 197, .45); }
.ag-link svg { width: 14px; height: 14px; }
.ag-live { font-style: normal; display: inline-flex; align-items: center; gap: 5px; margin-left: 10px; color: var(--brandteal); font-size: 11.5px; }
.ag-live:empty { display: none; }
.ag-live svg { width: 13px; height: 13px; }

/* Onboarding Step 4: Avatar-Kreis = Upload (Jojo 23.08.) */
.rg-avup { position: relative; cursor: pointer; border: 0; animation: rgAvPulse 1.9s ease-in-out infinite alternate; }
.rg-avup .rg-avph { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: #232537; }
.rg-avup .rg-avph svg { width: 54px; height: 54px; color: var(--muted); }
.rg-avup img { object-fit: cover; display: block; }
.rg-avcam { position: absolute; right: 0; bottom: 2px; width: 34px; height: 34px; border-radius: 50%; background: var(--mint); color: #14141e; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0, 0, 0, .4); }
.rg-avcam svg { width: 17px; height: 17px; }
.rg-avhint { font-size: 12.5px; color: var(--brandteal); margin: -6px 0 12px; }
@keyframes rgAvPulse {
  from { box-shadow: 0 0 0 2px rgba(169, 243, 225, .55), 0 0 36px rgba(169, 243, 225, .2); }
  to { box-shadow: 0 0 0 5px rgba(169, 243, 225, .85), 0 0 52px rgba(169, 243, 225, .38); }
}
@media (prefers-reduced-motion: reduce) { .rg-avup { animation: none; } }

/* ================= VOLLE AGENT-SCREENS 23.08. (Konzepte agent-screens-20260823) ================= */
/* ---- C5 Earnings-Dashboard (Yuna) ---- */
.ed-wrap { max-width: 1180px; margin: 0 auto; padding: 0 18px 40px; }
.ed-headr { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ed-recapbtn { display: inline-flex; align-items: center; gap: 8px; background: var(--panel-2); color: var(--mint);
  border: 0; border-radius: 12px; padding: 10px 16px; font-weight: 700; cursor: pointer; }
.ed-recapbtn:hover { background: var(--input); }
.ed-recapbtn svg { width: 17px; height: 17px; }
.ed-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 18px 0; }
.ed-card { background: var(--panel); border-radius: 16px; padding: 16px 18px; }
.ed-ct { display: flex; align-items: center; justify-content: space-between; }
.ed-lab { color: var(--muted); font-size: 13px; font-weight: 600; }
.ed-ic { width: 36px; height: 36px; border-radius: 50%; background: var(--panel-2); display: inline-flex; align-items: center; justify-content: center; }
.ed-ic svg { width: 17px; height: 17px; stroke: var(--teal); }
.ed-val { font-size: 27px; font-weight: 800; margin: 8px 0 4px; letter-spacing: -.02em; }
.ed-val i { font-style: normal; font-size: 13px; color: var(--teal); font-weight: 700; margin-left: 2px; }
.ed-sub { color: var(--muted); font-size: 12.5px; }
.ed-sub .up { color: var(--teal); font-style: normal; font-weight: 700; }
.ed-sub .dn { color: var(--red); font-style: normal; font-weight: 700; }
.ed-mid { display: grid; grid-template-columns: 1fr 300px; gap: 14px; align-items: stretch; }
.ed-chart { padding: 18px 20px; }
.ed-chart h3 { margin: 0 0 10px; font-size: 17px; }
.ed-chart svg { width: 100%; height: auto; display: block; }
.ed-ax { fill: var(--muted-2); font-size: 12px; }
.ed-grid { stroke: rgba(255,255,255,.05); stroke-dasharray: 3 4; }
.ed-insight { border-radius: 18px; padding: 22px; background: linear-gradient(160deg, rgba(53,208,197,.12), rgba(27,29,42,.9));
  box-shadow: inset 0 0 0 1.5px rgba(53,208,197,.45), 0 0 34px rgba(53,208,197,.12); display: flex; flex-direction: column; gap: 14px; }
.ed-iic { width: 46px; height: 46px; border-radius: 50%; background: rgba(53,208,197,.15); display: inline-flex; align-items: center; justify-content: center; }
.ed-iic svg { width: 22px; height: 22px; stroke: var(--mint); }
.ed-insight p { margin: 0; font-size: 19px; line-height: 1.45; font-weight: 600; }
.ed-insight em { color: var(--teal); font-style: normal; font-weight: 800; }
.ed-bot { display: grid; grid-template-columns: 1fr 1.2fr; gap: 14px; margin-top: 14px; }
.ed-break { padding: 18px 20px; position: relative; }
.ed-break h3 { margin: 0 0 14px; font-size: 17px; }
.ed-bar { display: flex; height: 12px; border-radius: 8px; overflow: hidden; background: var(--panel-2); max-width: 62%; }
.ed-bar i { display: block; height: 100%; }
.ed-leg { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; color: var(--muted); font-size: 13px; }
.ed-leg i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; }
.ed-donut { position: absolute; right: 22px; bottom: 20px; width: 84px; height: 84px; border-radius: 50%; }
.ed-donut::after { content: ""; position: absolute; inset: 13px; border-radius: 50%; background: var(--panel); }
.ed-recent { padding: 18px 20px; }
.ed-rh { display: flex; align-items: center; justify-content: space-between; }
.ed-rh h3 { margin: 0; font-size: 17px; }
.ed-rh a { color: var(--muted); font-size: 13px; display: inline-flex; align-items: center; gap: 4px; text-decoration: none; }
.ed-rh a svg { width: 14px; height: 14px; }
.ed-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.ed-row:last-of-type { border-bottom: 0; }
.ed-ric { width: 36px; height: 36px; border-radius: 10px; background: var(--panel-2); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ed-ric svg { width: 16px; height: 16px; stroke: var(--teal); }
.ed-row div { flex: 1; min-width: 0; }
.ed-row b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-row div span { color: var(--muted-2); font-size: 12px; }
.ed-row em { font-style: normal; font-weight: 800; color: var(--teal); white-space: nowrap; }
.ed-foot { display: block; margin-top: 10px; color: var(--muted-2); font-size: 11.5px; }
/* ---- B5 "Your week" Recap-Modal ---- */
.yr-ov { position: fixed; inset: 0; z-index: 240; background: rgba(10,11,18,.66); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center; padding: 20px; }
.yr-card { position: relative; width: 760px; max-width: 100%; max-height: 92vh; overflow: hidden auto; border-radius: 24px;
  background: linear-gradient(165deg, #1d2030, #141722 55%, #0f2226); padding: 26px 30px 24px;
  box-shadow: 0 30px 80px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.06); }
.yr-cf { position: absolute; top: -14px; width: 9px; height: 13px; border-radius: 2px; opacity: .9; pointer-events: none;
  animation: yrFall 3s linear infinite; }
@keyframes yrFall { 0% { transform: translateY(-10px) rotate(0deg); opacity: 0; } 8% { opacity: .95; }
  100% { transform: translateY(560px) rotate(340deg); opacity: 0; } }
.yr-x { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.08); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; z-index: 2; }
.yr-x svg { width: 16px; height: 16px; }
.yr-head { display: flex; align-items: center; gap: 16px; }
.yr-yuna { width: 74px; height: 74px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px rgba(53,208,197,.5), 0 0 26px rgba(53,208,197,.3); }
.yr-head h2 { margin: 0; font-size: 34px; letter-spacing: -.02em; }
.yr-head h2::after { content: ""; display: block; width: 64px; height: 4px; margin-top: 6px; border-radius: 3px; background: var(--teal); }
.yr-range { color: var(--muted); font-size: 13px; }
.yr-mid { display: grid; grid-template-columns: 1fr 190px; gap: 14px; margin: 20px 0 16px; }
.yr-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: 14px; overflow: hidden; }
.yr-tile { background: rgba(255,255,255,.04); padding: 16px 14px 10px; display: flex; flex-direction: column; gap: 4px; }
.yr-tile svg { width: 18px; height: 18px; stroke: var(--teal); }
.yr-tile span { color: var(--muted); font-size: 12.5px; }
.yr-tile b { font-size: 26px; font-weight: 800; }
.fs-spark { width: 100%; height: 30px; margin-top: 6px; }
.fs-spark polyline { fill: none; stroke: var(--teal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.yr-best { display: block; background: rgba(255,255,255,.045); border-radius: 14px; padding: 12px; text-decoration: none; color: var(--ink); }
.yr-best > span { display: block; font-weight: 700; font-size: 13.5px; margin-bottom: 8px; }
.yr-best img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.yr-bm { display: flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--muted); font-size: 12.5px; }
.yr-bm svg { width: 14px; height: 14px; }
.yr-none p { color: var(--muted-2); font-size: 12.5px; margin: 20px 0; }
.yr-foot { display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,.045); border-radius: 16px; padding: 14px 16px; }
.yr-ins { display: flex; align-items: center; gap: 12px; flex: 1; }
.yr-ins > span { width: 44px; height: 44px; border-radius: 50%; background: rgba(53,208,197,.16); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.yr-ins svg { width: 20px; height: 20px; stroke: var(--mint); }
.yr-ins i { display: block; font-style: normal; color: var(--muted); font-size: 12px; }
.yr-ins p { margin: 2px 0 0; font-size: 16.5px; font-weight: 600; }
.yr-ins p b { color: var(--teal); }
.yr-share { flex: none; padding: 12px 26px; border-radius: 12px; font-size: 15px; }
/* ---- MG2 Mini-Games ---- */
.gm-wrap { max-width: 1180px; margin: 0 auto; padding: 0 18px 40px; display: grid; grid-template-columns: 260px 1fr; gap: 16px; align-items: start; }
.gm-lb { padding: 16px; position: sticky; top: 76px; }
.gm-lbh { display: flex; align-items: center; justify-content: space-between; }
.gm-lbh h3 { margin: 0; font-size: 18px; }
.gm-lbh svg { width: 19px; height: 19px; stroke: #ffd166; }
.gm-lbtag { display: inline-block; margin: 6px 0 10px; color: var(--muted-2); font-size: 12px; background: var(--panel-2); border-radius: 8px; padding: 5px 9px; }
.gm-row { display: flex; align-items: center; gap: 9px; padding: 8px 8px; border-radius: 10px; }
.gm-row.you { background: rgba(53,208,197,.13); box-shadow: inset 0 0 0 1.5px rgba(53,208,197,.5); }
.gm-rank { width: 16px; color: var(--muted); font-weight: 700; font-size: 13px; text-align: center; }
.gm-row img { width: 26px; height: 26px; border-radius: 50%; }
.gm-row b { flex: 1; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gm-row.you b { color: var(--mint); }
.gm-pts { font-weight: 800; font-size: 13px; }
.gm-row svg { width: 13px; height: 13px; stroke: #ffd166; flex: none; }
.gm-lbfoot { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; color: var(--muted); font-size: 12.5px; text-decoration: none; }
.gm-lbfoot svg { width: 13px; height: 13px; }
.gm-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.gm-stats { display: flex; gap: 10px; margin-top: 34px; }
.gm-stat { display: inline-flex; align-items: center; gap: 7px; background: var(--panel); border-radius: 12px; padding: 9px 14px; font-weight: 800; }
.gm-stat svg { width: 16px; height: 16px; stroke: #ffd166; }
.gm-stat.gm-tk svg { stroke: var(--teal); }
.gm-feat { position: relative; display: grid; grid-template-columns: 1fr 340px; gap: 20px; background: linear-gradient(150deg, #1c1f31, #151726 70%);
  border-radius: 20px; padding: 26px 28px; margin: 14px 0 20px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); overflow: visible; }
.gm-featbg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; border-radius: 20px;
  opacity: .38; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, rgba(0,0,0,.5) 45%, #000 78%); mask-image: linear-gradient(90deg, transparent, rgba(0,0,0,.5) 45%, #000 78%); }
.gm-featl, .gm-pad { position: relative; z-index: 1; }
.gm-chip { display: inline-flex; align-items: center; gap: 6px; color: var(--mint); background: rgba(53,208,197,.13);
  border-radius: 9px; padding: 5px 10px; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; }
.gm-chip svg { width: 13px; height: 13px; }
.gm-featl h2 { margin: 12px 0 8px; font-size: 40px; letter-spacing: -.02em; line-height: 1.02; }
.gm-featl p { margin: 0 0 16px; color: var(--muted); max-width: 380px; line-height: 1.5; }
.gm-meta { display: flex; gap: 22px; margin-bottom: 18px; }
.gm-meta span { display: grid; grid-template-columns: 18px auto; grid-template-rows: auto auto; column-gap: 8px; align-items: center; }
.gm-meta svg { width: 16px; height: 16px; stroke: var(--muted); grid-row: 1 / 3; }
.gm-meta i { font-style: normal; color: var(--muted-2); font-size: 11px; }
.gm-meta b { font-size: 13.5px; }
.gm-play { padding: 12px 44px; font-size: 16px; border-radius: 12px; }
.gm-pad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; align-self: center; transform: rotate(-4deg); }
.gm-pad i { aspect-ratio: 1; border-radius: 13px; background: #232537; box-shadow: inset 0 0 0 1px rgba(255,255,255,.05), 0 6px 14px rgba(0,0,0,.25); }
.gm-pad i.lit { background: linear-gradient(150deg, #7ee8d8, #2ba79e); box-shadow: 0 0 26px rgba(53,208,197,.6); }
.gm-coach { position: absolute; right: 16px; bottom: 12px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; z-index: 2; }
.gm-bub { max-width: 190px; background: var(--ink); color: #191b28; border-radius: 13px; padding: 10px 13px; font-size: 13px; font-weight: 600; line-height: 1.35; position: relative; }
.gm-bub::after { content: ""; position: absolute; right: 22px; bottom: -6px; width: 12px; height: 12px; background: var(--ink); transform: rotate(45deg); border-radius: 2px; }
.gm-coach img { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px rgba(53,208,197,.5), 0 8px 18px rgba(0,0,0,.4); }
.gm-moreh { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.gm-moreh h3 { margin: 0; font-size: 19px; }
.gm-all { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; color: var(--teal); font-weight: 700; font-size: 13.5px; cursor: pointer; }
.gm-all svg { width: 14px; height: 14px; }
.gm-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gm-tile { border: 0; text-align: left; background: var(--panel); border-radius: 15px; padding: 12px; cursor: pointer;
  display: flex; flex-direction: column; gap: 9px; color: var(--ink); transition: transform .15s ease; }
.gm-tile:hover { transform: translateY(-3px); }
.gm-area { align-self: flex-start; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; color: var(--muted);
  background: var(--panel-2); border-radius: 7px; padding: 4px 8px; }
.gm-art { position: relative; overflow: hidden; height: 84px; border-radius: 11px; display: flex; align-items: center; justify-content: center; }
.gm-art svg { width: 26px; height: 26px; stroke: #fff; opacity: .9; }
.gm-art .gm-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gm-tile.t0 .gm-art { background: linear-gradient(140deg, #2b6cb0, #234a7d); }
.gm-tile.t1 .gm-art { background: linear-gradient(140deg, #b7791f, #8f5a14); }
.gm-tile.t2 .gm-art { background: linear-gradient(140deg, #6b46c1, #4c3193); }
.gm-tile.t3 .gm-art { background: linear-gradient(140deg, #2ba79e, #1d7b74); }
.gm-tile.t4 .gm-art { background: linear-gradient(140deg, #c05374, #8d3a54); }
.gm-tile.t5 .gm-art { background: linear-gradient(140deg, #3a3d55, #262838); }
.gm-tile b { font-size: 13.5px; }
/* ---- TK1 Ticket-Stubs (Spin-Seite) ---- */
.tk-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 20px; }
.tk-stub { position: relative; border-radius: 14px; padding: 14px;
  background: linear-gradient(175deg, rgba(53,208,197,.07), rgba(35,37,55,.9)); box-shadow: inset 0 0 0 1px rgba(169,243,225,.14); }
.tk-stub::before, .tk-stub::after { content: ""; position: absolute; top: 50%; width: 20px; height: 20px; border-radius: 50%;
  background: var(--panel); transform: translateY(-50%); box-shadow: inset 0 0 0 1px rgba(169,243,225,.1); }
.tk-stub::before { left: -12px; } .tk-stub::after { right: -12px; }
.tk-stub.done { opacity: .78; }
.tk-top { display: flex; align-items: flex-start; justify-content: space-between; }
.tk-ic { position: relative; overflow: hidden; width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1.5px rgba(53,208,197,.4); }
.tk-ic svg { width: 20px; height: 20px; stroke: var(--teal); }
.tk-ic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.tk-ic::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(53,208,197,.4); pointer-events: none; }
.tk-stamp { color: rgba(53,208,197,.75); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  border: 1.5px dashed rgba(53,208,197,.5); border-radius: 50px; padding: 8px 7px; transform: rotate(12deg); }
.tk-t { display: block; font-size: 17px; margin: 12px 0 12px; }
.tk-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tk-ring { position: relative; width: 46px; height: 46px; border-radius: 50%; flex: none;
  background: conic-gradient(var(--teal) var(--p, 0deg), rgba(255,255,255,.09) 0); }
.tk-ring i { position: absolute; inset: 5px; border-radius: 50%; background: var(--panel-2);
  display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 11.5px; font-weight: 800; }
.tk-foot .sp-claim { margin: 0; }
/* Status-Text darf umbrechen statt aus dem Stub zu laufen ("Join one first" abgeschnitten, Winchester-Foto 23.08.) */
.tk-foot .sp-done { flex: 1 1 auto; min-width: 0; text-align: right; white-space: normal; line-height: 1.3; }
/* ---- C7 Collab-Matcher (Nova) ---- */
.cw-wrap { max-width: 1180px; margin: 0 auto; padding: 0 18px 40px; display: grid; grid-template-columns: 1fr 330px; gap: 16px; align-items: start; }
.cw-main { padding: 22px 26px 20px; }
.cw-pair { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 26px 0 8px; }
.cw-side { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 170px; }
.cw-big { width: 148px; height: 148px; border-radius: 50%; padding: 4px; background: radial-gradient(closest-side, transparent 78%, rgba(53,208,197,.16) 79%);
  box-shadow: 0 0 0 2px rgba(53,208,197,.55), 0 0 40px rgba(53,208,197,.22); }
.cw-big img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.cw-side b { font-size: 19px; margin-top: 6px; }
.cw-chip { color: var(--muted); font-size: 12.5px; background: var(--panel-2); border-radius: 8px; padding: 4px 10px; }
.cw-link { flex: 1; max-width: 110px; height: 2px; background: linear-gradient(90deg, rgba(53,208,197,.15), rgba(53,208,197,.8), rgba(53,208,197,.15)); border-radius: 2px; }
.cw-nova { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cw-nova img { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgba(122,111,240,.65), 0 0 26px rgba(122,111,240,.35); }
.cw-nova span { color: var(--muted); font-size: 12.5px; font-weight: 700; }
.cw-pcts { display: flex; justify-content: center; gap: 12px; margin: 22px 0 18px; }
.cw-pcts > span { display: grid; grid-template-columns: 20px auto; grid-template-rows: auto auto; column-gap: 9px; align-items: center;
  background: rgba(255,255,255,.045); border-radius: 14px; padding: 13px 20px; }
.cw-pcts svg { width: 18px; height: 18px; stroke: var(--teal); grid-row: 1 / 3; }
.cw-pcts b { font-size: 22px; font-weight: 800; }
.cw-pcts i { font-style: normal; color: var(--muted-2); font-size: 11.5px; }
.cw-act { display: flex; justify-content: center; align-items: center; gap: 14px; }
.cw-ask { border: 0; background: none; color: var(--teal); font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.cw-ask svg { width: 14px; height: 14px; }
.cw-note { text-align: center; color: var(--muted-2); font-size: 12px; margin: 16px 0 0; }
.cw-rail { padding: 18px; position: sticky; top: 76px; margin-top: 34px; }
.cw-rail h3 { margin: 0 0 12px; font-size: 16.5px; }
.cw-crcard { background: rgba(255,255,255,.04); border-radius: 14px; padding: 13px; margin-bottom: 12px; }
.cw-crtop { display: flex; align-items: center; gap: 10px; }
.cw-crtop img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.cw-crtop div { flex: 1; min-width: 0; }
.cw-crtop b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cw-crtop div span { color: var(--muted-2); font-size: 12px; }
.cw-pct { font-style: normal; font-weight: 800; font-size: 18px; color: var(--teal); }
.cw-tags { margin: 10px 0 2px; }
.cw-tags i { display: block; font-style: normal; color: var(--muted-2); font-size: 11px; margin-bottom: 5px; }
.cw-tags span { display: inline-block; background: var(--panel-2); border-radius: 8px; padding: 4px 10px; font-size: 12px; margin: 0 6px 4px 0; }
.cw-go { width: 100%; margin-top: 9px; border: 0; border-radius: 10px; padding: 9px 0; background: rgba(53,208,197,.13);
  color: var(--mint); font-weight: 700; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(53,208,197,.35); }
.cw-go:hover { background: rgba(53,208,197,.2); }
/* ---- Responsive ---- */
@media (max-width: 980px) {
  .ed-cards { grid-template-columns: repeat(2, 1fr); }
  .ed-mid, .ed-bot { grid-template-columns: 1fr; }
  .gm-wrap { grid-template-columns: 1fr; }
  .gm-lb { position: static; order: 2; }
  .gm-feat { grid-template-columns: 1fr; }
  .gm-grid { grid-template-columns: repeat(2, 1fr); }
  .cw-wrap { grid-template-columns: 1fr; }
  .cw-rail { position: static; }
  .yr-mid { grid-template-columns: 1fr; }
  .cw-pair { flex-wrap: wrap; }
}


/* ============================================================
   SIDE-PROFILE (Konzept 23.08., Winchesters Wahl = neuer DEFAULT-Profil-Stil)
   Linke feste Identitaets-Saeule (Charcoal-Panel, grosse Radien, borderlos):
   Brand, Portrait mit Dreieck-Wasserzeichen, Name + @handle + Verified,
   Mint-FOLLOW-Pill, Stats (Posts/Followers/APX Earned), CREATOR BADGES,
   SOCIALS (Winchester-Ergaenzung: verified=mint, verlinkt=grau, Metriken
   via Somega-Stub), Bio, Ort/Website, Aktions-Icons — rechts Masonry-Raster
   mit Likes/Comments links + APX-Chip rechts.
   ============================================================ */
.spv { position: relative; }
.spv-wrap { display: flex; gap: 34px; align-items: flex-start; }

/* ---- linke Identitaets-Saeule ---- */
.spv-side { position: sticky; top: 16px; flex: none; width: clamp(390px, 32vw, 520px); /* Winchester 23.08.: "etwas breiter" (vorher 28vw/440) */
  height: calc(100vh - 32px); overflow-y: auto; scrollbar-width: none;
  display: flex; flex-direction: column;
  background: var(--panel); border-radius: 36px; overflow-x: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .38); }
.spv-side::-webkit-scrollbar { width: 0; }
.spv-brand { display: flex; align-items: center; gap: 10px; padding: 16px 22px 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .24em; color: var(--ink); }
.spv-mark { width: 24px; height: 24px; flex: none; display: inline-flex; color: #88E0E1; }
.spv-mark svg { width: 100%; height: 100%; }
.spv-hero { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--panel-2); flex: none; } /* Winchester 23.08.: Portrait VERTIKAL wie in der App (vorher 1/1.02 quadratisch) */
.spv-pic { width: 100%; height: 100%; object-fit: cover; display: block; }
.spv-pici { display: flex; align-items: center; justify-content: center; font-size: 72px; font-weight: 700; color: var(--muted); }
.spv-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 42%, rgba(27, 29, 42, .5) 72%, rgba(27, 29, 42, .97) 100%); }
.spv-wm { position: absolute; right: -40px; top: 9%; width: 210px; height: 210px;
  color: var(--mint); opacity: .14; pointer-events: none; }
.spv-wm svg { width: 100%; height: 100%; }
.spv-idblock { padding: 16px 24px 20px; margin-top: -96px; position: relative; }
.spv-name { font-size: clamp(28px, 2.5vw, 36px); font-weight: 800; letter-spacing: .01em; line-height: 1.08;
  text-shadow: 0 2px 18px rgba(10, 12, 22, .7); }
.spv-handlerow { margin-top: 6px; display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.spv-handlerow .pv { width: 18px; height: 18px; }
.spv-handlerow .pv svg { width: 11px; height: 11px; }
.spv-follow { margin-top: 18px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 20px; border-radius: 999px; background: var(--mint); color: #10131c;
  font-size: 14px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(169, 243, 225, .22);
  transition: filter .25s ease, transform .25s ease; }
.spv-follow:hover { filter: brightness(1.07); transform: translateY(-1px); }
.spv-follow svg { width: 16px; height: 16px; }
.spv-follow .spv-i-add { display: inline-flex; }
.spv-follow .spv-i-done { display: none; }
.spv-follow.is .spv-i-add { display: none; }
.spv-follow.is .spv-i-done { display: inline-flex; }
.spv-follow.is { background: rgba(169, 243, 225, .12); color: var(--mint); box-shadow: inset 0 0 0 2px rgba(169, 243, 225, .55); }
.spv-stats { margin-top: 22px; display: flex; gap: 10px;
  background: var(--panel-2); border-radius: 999px; padding: 13px 18px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .3); }
.spv-stats > div { flex: 1; min-width: 0; }
.spv-stats b { display: block; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.spv-stats span { display: flex; align-items: center; gap: 5px; margin-top: 3px; font-size: 11.5px; color: var(--muted); }
.spv-stats .coin { width: 13px; height: 13px; flex: none; display: inline-flex; color: var(--mint); }
.spv-stats .coin svg { width: 100%; height: 100%; }

/* ---- Sektionen: Badges + Socials ---- */
.spv-sec { padding: 22px 24px 0; }
.spv-sec h4 { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 11px; }
.spv-badges { display: flex; gap: 8px; }
.spv-bdg { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.spv-bdgic { width: 46px; height: 46px; border-radius: 50%; background: var(--panel-2);
  display: flex; align-items: center; justify-content: center; color: var(--muted);
  transition: transform .25s ease; }
.spv-bdg:hover .spv-bdgic { transform: translateY(-2px); }
.spv-bdgic svg { width: 20px; height: 20px; }
.spv-bdg.t1 .spv-bdgic, .spv-bdg.t2 .spv-bdgic, .spv-bdg.t3 .spv-bdgic {
  color: var(--mint); box-shadow: 0 0 0 1.5px rgba(169, 243, 225, .35), 0 0 20px rgba(169, 243, 225, .12); }
.spv-bdg > span:last-child { font-size: 8.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted);
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.spv-socs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.spv-soc { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 13px;
  background: var(--panel-2); text-align: left; min-width: 0; transition: background .25s ease; }
.spv-soc:hover { background: #282b3e; }
.spv-socic { width: 30px; height: 30px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .05); color: var(--muted); }
.spv-socic svg { width: 15px; height: 15px; }
.spv-soc.on .spv-socic { color: var(--mint); box-shadow: 0 0 0 1.5px rgba(169, 243, 225, .4), 0 0 14px rgba(169, 243, 225, .1); }
.spv-soc.off { opacity: .55; }
.spv-soct { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.spv-soct > b { font-size: 12px; font-weight: 600; white-space: nowrap; }
.spv-soct > span { font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spv-soct i { font-style: normal; opacity: .5; }
.spv-fol { font-weight: 600; color: var(--muted-2); }
.spv-soc.on .spv-fol { color: var(--mint); }
.spv-socv { flex: none; margin-left: auto; width: 16px; height: 16px; border-radius: 50%;
  background: var(--mint); color: #0b3b31; display: flex; align-items: center; justify-content: center; }
.spv-socv svg { width: 9px; height: 9px; stroke-width: 3.5; }
.spv-socadd { flex: none; margin-left: auto; width: 16px; height: 16px; color: var(--muted); display: flex; }
.spv-socadd svg { width: 100%; height: 100%; }
.spv-socnote { margin-top: 10px; font-size: 11px; line-height: 1.5; color: var(--muted-2); }

/* ---- Bio / Ort / Aktionen ---- */
.spv-bio { padding: 14px 22px 0; margin-top: auto; font-size: 13.5px; line-height: 1.6; color: #c9ccda; }
.spv-loc { padding: 10px 22px 0; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--muted); }
.spv-loc > span, .spv-loc > a { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.spv-loc a:hover { color: var(--mint); }
.spv-loc svg { width: 14px; height: 14px; flex: none; }
.spv-actions { display: flex; gap: 12px; padding: 16px 22px 20px; }
.spv-act { width: 42px; height: 42px; border-radius: 50%; background: var(--panel-2); color: var(--ink);
  display: flex; align-items: center; justify-content: center; transition: color .25s ease, background .25s ease, transform .25s ease; }
.spv-act:hover { color: var(--mint); transform: translateY(-1px); }
.spv-act.is { color: var(--mint); }
.spv-act svg { width: 18px; height: 18px; }
.spv-morewrap { position: relative; margin-top: 0; }
.spv-morewrap .ps-menu { left: 0; right: auto; bottom: 52px; top: auto; }
.spv-morewrap .ps-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px;
  border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--ink); text-align: left; }
.spv-morewrap .ps-menu button:hover { background: var(--panel-2); }

/* ---- rechtes Masonry-Raster ---- */
.spv-main { flex: 1; min-width: 0; }
.spv-grid { columns: 3; column-gap: 16px; }
.spv-tile { position: relative; display: block; margin-bottom: 16px; border-radius: 20px; overflow: hidden;
  background: var(--panel-2); break-inside: avoid; box-shadow: 0 14px 34px rgba(0, 0, 0, .3); }
.spv-tile img { width: 100%; transition: transform .6s cubic-bezier(.2, .6, .2, 1); }
.spv-tile:hover img { transform: scale(1.045); }
.spv-tile .icv-bdg { z-index: 2; }
.spv-tmeta { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; justify-content: space-between;
  gap: 10px; padding: 30px 14px 12px; font-size: 12px; color: #fff; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, transparent, rgba(8, 10, 18, .55) 55%, rgba(8, 10, 18, .85)); }
.spv-tl { display: inline-flex; align-items: center; gap: 12px; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.spv-tl > span { display: inline-flex; align-items: center; gap: 5px; }
.spv-tl svg { width: 13px; height: 13px; }
.spv-tapx { display: inline-flex; align-items: center; gap: 5px; color: var(--mint); font-weight: 600; letter-spacing: .05em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.spv-tapx .coin { width: 12px; height: 12px; display: inline-flex; }
.spv-tapx .coin svg { width: 100%; height: 100%; }
.spv-empty { padding: 90px 0; }

/* Stil-Umschalter: fix unten rechts (die Seite scrollt, .icv-view ist sonst absolut) */
.spv-view { position: fixed; right: 30px; bottom: 30px; }

/* ---- Responsive ---- */
@media (max-width: 1200px) { .spv-grid { columns: 2; } }
@media (max-width: 900px) {
  .spv-wrap { flex-direction: column; gap: 18px; }
  .spv-side { position: static; width: 100%; }
  .spv-hero { aspect-ratio: 16 / 10; }
  .spv-idblock { margin-top: -40px; }
  .spv-view { right: 12px; bottom: 20px; }
}
@media (max-width: 480px) {
  .spv-brand { padding: 14px 18px 8px; }
  .spv-idblock { padding: 10px 18px 14px; }
  .spv-sec { padding: 14px 18px 0; }
  .spv-bio, .spv-loc { padding-left: 18px; padding-right: 18px; }
  .spv-actions { padding: 14px 18px 16px; }
  .spv-soc { padding: 7px 8px; gap: 8px; }
  .spv-socic { width: 26px; height: 26px; }
  .spv-socic svg { width: 13px; height: 13px; }
  .spv-soct > b { font-size: 11px; }
  .spv-grid { column-gap: 10px; }
  .spv-tile { margin-bottom: 10px; border-radius: 14px; }
  .spv-tmeta { padding: 22px 10px 9px; font-size: 10.5px; }
  .spv-tl { gap: 8px; }
}

/* 3D-Kachel in "Your creations" (25.08.): Badge auf dem Quellfoto-Thumb */
.gal-3db { position: absolute; top: 8px; left: 8px; padding: 2px 8px; border-radius: 999px;
  background: rgba(20, 24, 32, .72); color: var(--mint, #7ef0c9); font-size: 11px; font-weight: 700;
  letter-spacing: .06em; pointer-events: none; }
