/* ============================================================
   CLINK — APP-HÜLLE (Shell)
   Verwandelt den Single-Page-Generator in eine Mehr-Ansichten-App:
   Studio (Generator) · Feed · Profil · Optionen.
   Eigene "Chrome"-Variablen, damit Black/White umschaltbar ist,
   OHNE den dunklen Generator (Editor bleibt bewusst dunkel) zu brechen.
   ============================================================ */

/* Theme-fähige Chrome-Farben (Header, Tab-Leiste, Feed, Profil, Optionen).
   Der Generator nutzt weiter --bg/--surface/--text (immer dunkel, wie ein Foto-Editor). */
:root {
  --chrome-bg: #080808;
  --chrome-surface: #101010;
  --chrome-border: #1f1f1f;
  --chrome-text: #f0f0f0;
  --chrome-muted: #6f6f6f;
  --tabbar-h: 56px;
}
:root[data-theme="light"] {
  --chrome-bg: #f4f4f2;
  --chrome-surface: #ffffff;
  --chrome-border: #e4e4df;
  --chrome-text: #0a0a0a;
  --chrome-muted: #8a8a85;
}

/* ── Layout-Gerüst: body als feste Spalte (Header · Ansicht · Tab-Leiste) ── */
/* html bekommt die Theme-Farbe: in der Home-Bildschirm-App (standalone) malt
   iOS ALLES außerhalb des body schwarz — mit html-Hintergrund verschwindet
   der schwarze Balken unter der Tab-Leiste. */
html, body { height: 100%; }
html { background: var(--chrome-bg); }
body {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  background: var(--chrome-bg);
}

/* Header folgt dem Theme — und weicht der Dynamic Island / Statusleiste aus
   (safe-area-inset-top ist am Mac/älteren Geräten 0 → ändert dort nichts). */
/* NUR die App-Top-Bar — nacktes „header" würde auch die Post-Köpfe im Feed
   treffen (<header class="post-head">) und ihnen das Safe-Area-Polster geben
   (am iPhone ~50px → fetter schwarzer Balken über dem Namen). */
body > header {
  flex: 0 0 auto;
  background: var(--chrome-bg);
  border-bottom-color: var(--chrome-border);
  transition: background .2s, border-color .2s;
  padding-top: calc(16px + env(safe-area-inset-top));
}
.logo { color: var(--chrome-text); }
.header-sub { color: var(--chrome-muted); }

/* ── Ansichten ── */
.view:not(.view--active) { display: none !important; }

/* Weiche Übergänge beim Ansichts-Wechsel (Block 18-F: Politur verkauft edel).
   Nur Opazität/Position, kurz gehalten; bei reduzierter Bewegung deaktiviert. */
@media (prefers-reduced-motion: no-preference) {
  .app-view.view--active,
  main#view-create.view--active { animation: viewIn 0.22s ease both; }
  @keyframes viewIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: none; }
  }
  .logo { animation: logoIn 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  @keyframes logoIn {
    from { opacity: 0; letter-spacing: 0.7em; }
    to   { opacity: 1; letter-spacing: 0.4em; }
  }
}

/* ── Members-Only-Onboarding (einmalig) ── */
.onboard {
  position: fixed; inset: 0; z-index: 400;
  background: #050505; color: #f0f0f0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0; text-align: center;
  font-family: 'Space Mono', 'Courier New', monospace;
  transition: opacity 0.6s ease;
  padding: env(safe-area-inset-top) 20px env(safe-area-inset-bottom);
}
.onboard.ob-out { opacity: 0; pointer-events: none; }
.ob-diamond { font-size: 13px; opacity: 0; animation: obFade 0.9s ease 0.2s both; }
.ob-logo {
  margin-top: 26px; font-size: 21px; font-weight: 700;
  letter-spacing: 0.5em; text-indent: 0.5em;
  opacity: 0; animation: obTrack 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.45s both;
}
.ob-line { margin-top: 18px; font-size: 9px; letter-spacing: 0.5em; text-indent: 0.5em; color: #8a8a85; opacity: 0; animation: obFade 0.9s ease 1.1s both; }
.ob-no { margin-top: 8px; font-size: 9px; letter-spacing: 0.3em; color: #55554f; opacity: 0; animation: obFade 0.9s ease 1.35s both; }
.ob-enter {
  margin-top: 44px; background: none; cursor: pointer;
  border: 1px solid #2c2c2c; color: #f0f0f0;
  font-family: inherit; font-size: 10px; letter-spacing: 0.34em; text-indent: 0.34em;
  padding: 13px 42px;
  opacity: 0; animation: obFade 0.9s ease 1.7s both;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.ob-enter:hover { border-color: #f0f0f0; background: #f0f0f0; color: #050505; }
@keyframes obFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes obTrack {
  from { opacity: 0; letter-spacing: 1.1em; }
  to   { opacity: 1; letter-spacing: 0.5em; }
}
@media (prefers-reduced-motion: reduce) {
  .ob-diamond, .ob-logo, .ob-line, .ob-no, .ob-enter { animation: none; opacity: 1; }
}

/* Studio = der Generator (main). Bleibt dunkel, füllt den Platz zwischen Header & Tab-Leiste. */
main#view-create {
  height: auto;
  flex: 1 1 auto;
  min-height: 0;
  background: var(--bg);
}

/* White-Theme — Naht-Politur (Entscheidung 29.06.2026):
   Der Editor bleibt bewusst dunkel (Lightroom), darf aber in der hellen Hülle
   nicht wie ein ungestylter schwarzer Block "bluten". Er bekommt darum
   absichtliche Kanten: ein zarter heller Lichtsaum oben & unten gibt dem
   dunklen Editor eine definierte Ober-/Unterlippe gegen Header & Tab-Leiste,
   ein kräftigerer Divider macht die Trennung sauber. Reine Schatten/Border —
   KEIN Layout-Eingriff (Bottom-Sheet & Canvas-Absolutpositionen bleiben heil). */
:root[data-theme="light"] body > header {
  border-bottom-color: #d8d8d2;
}
:root[data-theme="light"] .app-nav {
  border-top-color: #d8d8d2;
}
:root[data-theme="light"] main#view-create {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}

/* Feed / Profil / Optionen */
.app-view {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--chrome-bg);
  color: var(--chrome-text);
}
.app-view.view--active { display: flex; flex-direction: column; }

/* ── Tab-Leiste unten ── */
.app-nav {
  flex: 0 0 auto;
  display: flex;
  background: var(--chrome-surface);
  border-top: 1px solid var(--chrome-border);
  padding-bottom: env(safe-area-inset-bottom);
  transition: background .2s, border-color .2s;
}
.nav-btn {
  flex: 1;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 8.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--chrome-muted);
  padding: 15px 4px 14px;
  position: relative;
  transition: color .15s;
}
.nav-btn.nav-active { color: var(--chrome-text); }
.nav-btn.nav-active::after {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 18px; height: 1.5px;
  background: var(--chrome-text);
}

/* ── Empty-States (Feed/Profil — bewusst ruhig & edel) ── */
.app-empty {
  margin: auto;
  max-width: 300px;
  text-align: center;
  padding: 40px 24px;
}
.app-empty-mark {
  font-size: 11px;
  letter-spacing: 0.5em;
  color: var(--chrome-muted);
  margin-bottom: 28px;
}
.app-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 1px solid var(--chrome-border);
  background: var(--chrome-surface);
  margin: 0 auto 24px;
}
.app-empty-title {
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--chrome-text);
  margin-bottom: 12px;
}
.app-empty-text {
  font-size: 12px;
  line-height: 1.7;
  color: var(--chrome-muted);
  margin-bottom: 24px;
}
.app-cta {
  background: var(--chrome-text);
  color: var(--chrome-bg);
  border: none;
  font-family: inherit;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 11px 22px;
  cursor: pointer;
}

/* ── Optionen / Einstellungen ── */
.app-settings {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 26px 22px 40px;
}
.set-block { margin-bottom: 26px; }
.set-label {
  font-size: 8.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--chrome-muted);
  margin-bottom: 12px;
}
.set-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}
.set-name { font-size: 12.5px; color: var(--chrome-text); }
.set-value { font-size: 12px; color: var(--chrome-muted); }
.set-hint { font-size: 11px; color: var(--chrome-muted); line-height: 1.6; }
.set-links { display: flex; gap: 18px; }
.set-link {
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 11px; letter-spacing: 0.1em;
  color: var(--chrome-muted); padding: 6px 0;
  text-decoration: underline; text-underline-offset: 3px;
}
.set-link:hover { color: var(--chrome-text); }
/* Zurückhaltend, aber klar als unwiderrufliche Aktion erkennbar — kein lautes Rot. */
.set-link--danger { display: block; margin-top: 4px; color: #9a5b5b; }
.set-link--danger:hover { color: #c46f6f; }
.set-foot {
  text-align: center;
  margin-top: 30px;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--chrome-muted);
}

/* ── Login / Registrierung / Profil ── */
.app-auth, .app-profile {
  margin: auto;
  width: 100%;
  max-width: 340px;
  padding: 40px 28px;
  text-align: center;
}
.auth-form, .profile-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
  text-align: left;
}
.app-view .field {
  background: var(--chrome-surface);
  border: 1px solid var(--chrome-border);
  color: var(--chrome-text);
  font-family: inherit;
  font-size: 13px;
  padding: 11px 12px;
  width: 100%;
  outline: none;
  margin-bottom: 0;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .12s;
}
.app-view .field::placeholder { color: var(--chrome-muted); }
.app-view .field:focus { border-color: var(--chrome-text); }
.app-view .btn-primary {
  background: var(--chrome-text);
  color: var(--chrome-bg);
  border: none;
  font-family: inherit;
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 12px;
  cursor: pointer;
  margin-top: 4px;
  width: 100%;
}
/* Login/Registrieren: Submit etwas kräftiger, damit der Einstieg auffällt */
#profileSignedOut .btn-primary { padding: 15px; font-size: 10.5px; letter-spacing: 0.24em; }
/* Umschalt-Zeile: die Frage klein, der Registrieren-Button GROSS & auffällig */
/* Alters-/AGB-Zustimmung bei der Registrierung */
.auth-consent {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 10.5px; line-height: 1.5; color: var(--chrome-muted);
  padding: 2px 0 4px; cursor: pointer;
}
.auth-consent[hidden] { display: none; }
.auth-consent input { margin-top: 2px; flex-shrink: 0; accent-color: var(--chrome-text); }
.auth-legal-link {
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--chrome-text); font-family: inherit; font-size: inherit;
  text-decoration: underline; text-underline-offset: 2px;
}
.auth-switch { margin-top: 22px; text-align: center; }
.auth-switch-q { display: block; font-size: 11px; color: var(--chrome-muted); margin-bottom: 10px; }
.auth-toggle {
  display: block; width: 100%;
  background: none; border: 1px solid var(--chrome-text); border-radius: 10px;
  color: var(--chrome-text); font-family: inherit;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700;
  padding: 15px; cursor: pointer;
  transition: background 0.14s, color 0.14s;
}
.auth-toggle:hover { background: var(--chrome-text); color: var(--chrome-bg); }

/* Studio-Login-Hinweis (nur ausgeloggt): dezente Karte, tippbar */
.studio-auth-hint {
  display: flex; flex-direction: column; gap: 4px; text-align: left;
  width: 100%; margin: 4px 0 2px;
  background: rgba(201,162,74,0.06); border: 1px solid rgba(201,162,74,0.32);
  border-radius: 12px; padding: 13px 15px; cursor: pointer;
  font-family: inherit;
}
.studio-auth-hint:hover { border-color: rgba(201,162,74,0.6); }
.studio-auth-hint[hidden] { display: none; }   /* sonst schlägt display:flex das hidden-Attribut */

/* ══ SIDEQUESTS ══════════════════════════════════════════════ */
.quests-chip {
  display: inline-flex; align-items: center; gap: 7px; align-self: center;
  margin: 12px auto 0; padding: 7px 15px; cursor: pointer;
  background: rgba(201,162,74,0.06); border: 1px solid rgba(201,162,74,0.4);
  border-radius: 999px; color: #c9a24a; font-family: inherit;
  font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase;
  transition: border-color 0.14s, background 0.14s;
}
.quests-chip:hover { border-color: #c9a24a; background: rgba(201,162,74,0.12); }
.quests-chip[hidden] { display: none; }
.qc-mark { font-size: 8px; }
.qc-count { color: var(--chrome-muted); letter-spacing: 0.14em; }

.quests-wrap { max-width: 520px; }
.quests-head { text-align: center; font-size: 12px; color: var(--chrome-muted); margin-bottom: 18px; }
.quests-head b { color: #c9a24a; font-size: 15px; }
.qh-bar { height: 3px; border-radius: 3px; background: var(--chrome-border); margin: 10px auto 0; max-width: 220px; overflow: hidden; }
.qh-bar span { display: block; height: 100%; background: #c9a24a; }

.quests-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quest-tile {
  border: 1px solid var(--chrome-border); border-radius: 12px; padding: 14px 13px;
  background: var(--chrome-surface); display: flex; flex-direction: column; gap: 6px;
  opacity: 0.62;
}
.quest-tile.is-done { opacity: 1; border-color: rgba(201,162,74,0.5); background: rgba(201,162,74,0.05); }
.quest-noir.is-done { border-color: rgba(201,162,74,0.75); box-shadow: inset 0 0 0 1px rgba(201,162,74,0.18); }
.qt-glyph { font-size: 20px; line-height: 1; color: var(--chrome-muted); }
.is-done .qt-glyph { color: #c9a24a; }
.is-secret .qt-glyph { opacity: 0.5; }
.qt-title { font-size: 11.5px; letter-spacing: 0.06em; color: var(--chrome-text); }
.is-done .qt-title { color: #e9d9b0; }
.qt-desc { font-size: 10px; line-height: 1.45; color: var(--chrome-muted); flex: 1; }
.qt-bar { height: 3px; border-radius: 3px; background: var(--chrome-border); overflow: hidden; margin-top: 2px; }
.qt-bar span { display: block; height: 100%; background: var(--chrome-muted); }
.qt-status { font-size: 8.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--chrome-muted); }
.qt-status.qt-done { color: #c9a24a; }

/* Feier-Moment */
.quest-toast {
  position: fixed; left: 0; right: 0;
  bottom: calc(var(--tabbar-h, 56px) + 18px + env(safe-area-inset-bottom));
  z-index: 1400; display: flex; justify-content: center; padding: 0 16px;
  animation: qToastIn 0.42s cubic-bezier(0.2,0.8,0.3,1.2) both;
}
.quest-toast.out { animation: qToastOut 0.4s ease forwards; }
/* Nur die Bewegung animieren, NICHT die Sichtbarkeit — sonst bleibt der Toast
   unsichtbar, falls die Animation (z. B. im Hintergrund-Tab) nicht durchläuft. */
@keyframes qToastIn { from { transform: translateY(30px); } to { transform: none; } }
@keyframes qToastOut { to { opacity: 0; transform: translateY(30px); } }
.qtoast-in {
  background: #0d0d0f; border: 1px solid rgba(201,162,74,0.55); border-radius: 16px;
  padding: 16px 18px; text-align: center; max-width: 320px; width: 100%;
  box-shadow: 0 18px 50px rgba(0,0,0,0.5);
}
.qtoast-glyph { font-size: 26px; color: #c9a24a; line-height: 1; }
.qtoast-k { font-size: 8.5px; letter-spacing: 0.24em; text-transform: uppercase; color: #c9a24a; margin-top: 8px; }
.qtoast-t { font-size: 15px; color: #f0e6cd; margin-top: 4px; letter-spacing: 0.02em; }
.qtoast-x { font-size: 10px; color: var(--chrome-muted); margin-top: 3px; }
.qtoast-btn {
  margin-top: 12px; background: #c9a24a; color: #14110a; border: none; border-radius: 8px;
  font-family: inherit; font-size: 9.5px; letter-spacing: 0.2em; font-weight: 700;
  padding: 10px 20px; cursor: pointer;
}
.sah-title { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: #c9a24a; }
.sah-text { font-size: 11.5px; line-height: 1.5; color: var(--chrome-muted); }

.pf-field { display: flex; flex-direction: column; gap: 5px; }
.pf-field span {
  font-size: 8.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--chrome-muted);
}
.auth-status, .pf-status {
  font-size: 11px;
  line-height: 1.5;
  color: var(--chrome-muted);
  min-height: 1em;
  margin-top: 4px;
}
/* Residency-Chips (mehrere Länder wählbar) */
.pf-flags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 2px; }
.pf-flags-empty { font-size: 11px; color: var(--chrome-muted); }
.pf-flag-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--chrome-surface); border: 1px solid var(--chrome-border);
  border-radius: 999px; padding: 5px 10px;
  font-size: 15px; line-height: 1; cursor: pointer;
  color: var(--chrome-text);
}
.pf-flag-x { font-size: 9px; color: var(--chrome-muted); }
.pf-flag-chip:hover .pf-flag-x { color: var(--chrome-text); }
.sig-flag { letter-spacing: 0.08em; }
.auth-status.err, .pf-status.err { color: #e0726a; }
.auth-status.ok, .pf-status.ok { color: #6ab07f; }
#authToggle, #logoutBtn { margin-top: 18px; }
.app-avatar--lg {
  width: 96px; height: 96px;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; color: var(--chrome-text);
}
.profile-name { font-size: 16px; color: var(--chrome-text); margin-top: 6px; letter-spacing: 0.02em; }
.profile-handle { font-size: 12px; color: var(--chrome-muted); margin-top: 2px; }
/* Base · Signature · Residency: eine ruhige Info-Zeile statt doppelter Karte */
.profile-facts { font-size: 12px; color: var(--chrome-muted); margin-top: 8px; line-height: 1.6; }
.profile-facts:empty { display: none; }
.pfx-dot { opacity: 0.5; margin: 0 2px; }
/* Aktions-Reihe: drei kompakte, GLEICH große Buttons (kein Riesen-CTA mehr) */
.profile-actions { display: flex; gap: 8px; margin: 16px 0 2px; }
.pa-btn {
  flex: 1; min-width: 0;
  background: none; border: 1px solid var(--chrome-border); border-radius: 8px;
  color: var(--chrome-text); font-family: inherit;
  font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 10px 4px; cursor: pointer;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: border-color 0.12s, color 0.12s;
}
.pa-btn:hover { border-color: var(--chrome-text); }
.pa-btn--gold { color: #c9a24a; border-color: rgba(201,162,74,0.4); }
.pa-btn--gold:hover { border-color: #c9a24a; }
#editProfileLink { margin-top: 10px; }

/* ── Studio: Posten-Feedback ── */
.post-feedback { text-align: center; font-size: 10.5px; color: var(--muted); min-height: 1em; margin-top: 6px; }
.post-feedback.ok { color: #6ab07f; }
.post-feedback.err { color: #e0726a; }

/* ── „Heute unterwegs" ── */
/* Feed-Suche oben (Instagram-Logik): kleine runde Leiste, Vorschläge direkt darunter */
.feed-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--chrome-surface);
  border: 1px solid var(--chrome-border);
  border-radius: 999px;
  padding: 9px 14px;
  margin-bottom: 12px;
}
.fs-icon { color: var(--chrome-muted); flex-shrink: 0; }
.fs-input {
  flex: 1; min-width: 0;
  background: none; border: none; outline: none;
  font-family: inherit; font-size: 12.5px;
  color: var(--chrome-text);
}
.fs-input::placeholder { color: var(--chrome-muted); }
.fs-results:empty { display: none; }
.fs-results { margin-bottom: 12px; }
/* Abende auf fremden Profilen: Karte + Like-Leiste als Einheit */
.up-post { margin-bottom: 18px; }
.up-post .like-bar { padding: 8px 2px 0; }

.tonight-bar:empty { display: none; }
/* Story-Gefühl: weiche Rundung + zarter Gold-Rand (24h aktiv, wie ein Story-Ring) */
.tonight-bar {
  background: var(--chrome-surface);
  border: 1px solid rgba(201,162,74,0.28);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 16px;
}
.tn-head { font-size: 8.5px; letter-spacing: 0.22em; text-transform: uppercase; color: #c9a24a; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.tn-24h { margin-left: auto; font-size: 8px; letter-spacing: 0.18em; color: var(--chrome-muted); border: 1px solid var(--chrome-border); border-radius: 999px; padding: 3px 8px; }
.tn-you { font-size: 13.5px; line-height: 1.5; color: var(--chrome-text); display: flex; align-items: center; gap: 10px; }
.tn-you b { font-weight: 700; }
.tn-clear { background: none; border: none; color: var(--chrome-muted); font-family: inherit; font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; margin-left: auto; flex-shrink: 0; }
/* Eingabe als runde Story-Zeile: Pille + Senden-Pfeil, nichts Eckiges */
.tn-form { display: flex; gap: 8px; align-items: center; }
.tn-form .tn-input { flex: 1; border-radius: 999px; padding: 11px 16px; }
.tn-go {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  background: var(--chrome-text); color: var(--chrome-bg);
  border: none; cursor: pointer; font-size: 14px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.tn-go:hover { opacity: 0.85; }
.tn-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.tn-row { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; cursor: pointer; padding: 4px 0; }
.tn-name { color: var(--chrome-text); }
.tn-place { color: var(--chrome-muted); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tn-empty { font-size: 11px; color: var(--chrome-muted); margin-top: 4px; }

/* ── Der CLINK (virtuell anstoßen) ── */
.tn-row { align-items: center; }
.tn-clink {
  background: none; cursor: pointer;
  border: 1px solid var(--chrome-border); color: var(--chrome-text);
  font-family: inherit; font-size: 8.5px; letter-spacing: 0.16em;
  padding: 5px 10px; white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.tn-clink:hover { background: var(--chrome-text); color: var(--chrome-bg); border-color: var(--chrome-text); }
.tn-clink--done { opacity: 0.4; cursor: default; }
.tn-clink--done:hover { background: none; color: var(--chrome-text); border-color: var(--chrome-border); }
.tn-count { font-size: 10px; color: var(--chrome-muted); white-space: nowrap; }
.tn-clinked { font-size: 11px; color: var(--chrome-muted); margin-top: 8px; }

/* ── Feed ── */
.feed-wrap { width: 100%; max-width: 460px; margin: 0 auto; padding: 18px 16px 40px; }
/* Der obere Container (Tonight/Suche/Strips) und der Posts-Container sind BEIDE
   .feed-wrap — ihre 40px+18px Polster stapelten sich zu einem toten schwarzen
   Balken über dem ersten Post. Polster zwischen beiden zusammenziehen. */
.feed-wrap:not(#feedWrap) { padding-bottom: 0; }
#feedWrap { padding-top: 10px; }
.feed-loading { text-align: center; color: var(--chrome-muted); font-size: 11px; padding: 40px 0; letter-spacing: 0.1em; }
.post-card {
  background: var(--chrome-surface);
  border: 1px solid var(--chrome-border);
  border-radius: 6px;
  padding: 14px;
  margin-bottom: 13px;
}
.post-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.post-ava {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--chrome-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--chrome-text); flex-shrink: 0;
}
.post-meta { flex: 1; min-width: 0; }
.post-name { font-size: 12.5px; color: var(--chrome-text); }
.post-sub { font-size: 10.5px; color: var(--chrome-muted); }
.post-del { background: none; border: none; color: var(--chrome-muted); font-size: 14px; line-height: 1; cursor: pointer; padding: 7px; }
.post-caption { font-size: 12px; color: var(--chrome-text); margin-top: 12px; line-height: 1.5; }

/* CLINK-Mini-Karte (gerenderter Abend) */
.clink-mini {
  font-family: 'Space Mono', monospace;
  border-radius: 4px;
  padding: 18px 16px;
}
.cm--bon { background: #f4f1ea; color: #15140f; }
.cm--wallet { background: linear-gradient(150deg,#1a1a1d,#0c0c0e); color: #ece9e2; border: 1px solid #2a2a2e; }
.cm-title { text-align: center; font-size: 11px; letter-spacing: 0.45em; font-weight: 700; }
.cm-rule { height: 1px; background: currentColor; opacity: 0.25; margin: 12px 0; }
.cm-venue { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; }
.cm-when { font-size: 10px; opacity: 0.7; margin-top: 3px; letter-spacing: 0.06em; }
.cm-drinks { margin-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.cm-drink { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: 0.03em; gap: 10px; }
.cm-drink i { opacity: 0.55; font-style: normal; font-size: 9px; }
.cm-extras { margin-top: 10px; font-size: 9px; letter-spacing: 0.14em; opacity: 0.55; }
.cm-with { margin-top: 12px; font-size: 9px; letter-spacing: 0.2em; opacity: 0.7; }

/* Post-Bild: die echte Komposition (Foto + Overlay) aus dem Studio.
   GANZES Bild (kein Zuschnitt — sonst gehen Details verloren), nur etwas
   kompakter als früher (max-width 300 statt 320). */
.post-media {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  border-radius: 10px;
  border: 1px solid var(--chrome-border);
}

/* Kommentare */
.post-comments { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.comment { font-size: 12px; line-height: 1.5; color: var(--chrome-text); }
.c-id { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; }
.c-ava {
  width: 18px; height: 18px; border-radius: 50%;
  border: 1px solid var(--chrome-border);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 8px; color: var(--chrome-text); flex-shrink: 0;
  background-size: cover; background-position: center;
}
.c-name { color: var(--chrome-muted); margin-right: 6px; }
.comment-form { margin-top: 12px; display: flex; align-items: center; gap: 8px; }
.comment-form .c-input { flex: 1; min-width: 0; font-size: 12px; padding: 9px 11px; }
/* GIF-Knopf erscheint erst beim Kommentieren (Fokus im Feld), kompakt inline */
.comment-form .c-gif-btn { display: none; flex-shrink: 0; }
.comment-form.commenting .c-gif-btn { display: inline-flex; }

/* ── Signatur-Karte (Identität, Centurion-Look) ── */
.profile-signature { margin: 16px 0 4px; }
.sig-card {
  background: linear-gradient(150deg, #20201f, #0a0a0b);
  border: 1px solid #34332f;
  border-radius: 8px;
  padding: 16px 18px 18px;
  color: #ece9e2;
  text-align: left;
  font-family: 'Space Mono', monospace;
}
.sig-top { display: flex; justify-content: space-between; align-items: center; }
.sig-brand { font-size: 11px; letter-spacing: 0.22em; font-weight: 700; }
.sig-member { font-size: 8px; letter-spacing: 0.3em; opacity: 0.5; }
.sig-name { font-size: 19px; letter-spacing: 0.02em; margin-top: 22px; }
.sig-handle { font-size: 11px; opacity: 0.55; margin-top: 2px; }
.sig-fields { display: flex; gap: 26px; margin-top: 18px; flex-wrap: wrap; }
.sig-fields span { display: block; font-size: 7.5px; letter-spacing: 0.22em; opacity: 0.5; }
.sig-fields b { display: block; font-size: 12px; font-weight: 400; margin-top: 4px; letter-spacing: 0.04em; }

/* ── Season-Recap ── */
.recap-wrap { display: flex; align-items: center; justify-content: center; }
.recap-card {
  background: linear-gradient(160deg, #1b1b1e, #08080a);
  border: 1px solid #2e2e32;
  border-radius: 10px;
  padding: 40px 30px;
  color: #ece9e2;
  text-align: center;
  width: 100%; max-width: 360px;
  font-family: 'Space Mono', monospace;
}
.recap-h { font-size: 10px; letter-spacing: 0.4em; opacity: 0.6; }
.recap-big { font-size: 72px; font-weight: 700; line-height: 1; margin: 22px 0 4px; }
.recap-cap { font-size: 11px; opacity: 0.6; letter-spacing: 0.1em; margin-bottom: 26px; }
.recap-row { display: flex; justify-content: space-between; font-size: 13px; padding: 9px 0; border-top: 1px solid rgba(255,255,255,0.08); letter-spacing: 0.04em; }
.recap-row span { opacity: 0.6; }
.recap-cities { font-size: 10px; opacity: 0.5; margin-top: 18px; line-height: 1.7; letter-spacing: 0.08em; }
.recap-foot { margin-top: 26px; font-size: 10px; letter-spacing: 0.3em; opacity: 0.45; }

/* ── Profil-Historie (eigene Abende) ── */
.profile-history { display: flex; flex-direction: column; gap: 12px; margin-bottom: 8px; }
.hist-item { position: relative; }
.hist-item .post-del { position: absolute; top: 8px; right: 8px; }

/* ── Fremdes Profil (Overlay) ── */
.up-modal {
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(0,0,0,0.78);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 0; overflow-y: auto;
}
.up-modal[hidden] { display: none; }
.up-card {
  position: relative;
  background: var(--chrome-bg);
  width: 100%; max-width: 460px;
  min-height: 100%;
  /* oben Platz für Dynamic Island / Statusleiste, unten für den Home-Balken */
  padding: calc(56px + env(safe-area-inset-top)) 18px calc(40px + env(safe-area-inset-bottom));
}
.up-close {
  position: absolute; top: calc(14px + env(safe-area-inset-top)); right: 16px;
  background: none; border: none; color: var(--chrome-muted);
  font-size: 17px; cursor: pointer; padding: 6px;
}
.up-head { text-align: center; margin-bottom: 26px; }
.up-head .app-avatar--lg { margin-bottom: 12px; }
.up-name { font-size: 17px; color: var(--chrome-text); letter-spacing: 0.02em; }
.up-handle { font-size: 12px; color: var(--chrome-muted); margin-top: 2px; }
.up-bio { font-size: 12px; color: var(--chrome-muted); margin-top: 10px; }
.up-action { margin-top: 16px; }
.up-history { display: flex; flex-direction: column; gap: 12px; }

/* ── Freunde ── */
.friend-id { cursor: pointer; }
.friends-area { margin-top: 0; }
.friends-area .friend-list, .friends-area .suggest-list { text-align: left; }
.friends-area #friendSearch { margin-bottom: 10px; }

/* ── Profil: EIN Abstands-Rhythmus für alle Sektionen ──
   Jede Sektion beginnt mit einem zentrierten .set-label im selben Abstand —
   das nimmt dem Profil das „zusammengestückelt"-Gefühl. */
.app-profile .set-label,
.app-profile .set-label.pf-section {
  text-align: center;
  margin: 36px 0 14px;
}
.app-profile .suggest-area,
.app-profile .invites-area { margin-top: 0; }
.app-profile .invites-hint { text-align: center; }
.app-profile .friend-list { text-align: left; }
/* Abmelden/Konto löschen: beide zentriert, klarer Abstand zum Inhalt */
#logoutBtn { margin-top: 36px; }
.set-link--danger { margin: 4px auto 0; }
.friend-list { display: flex; flex-direction: column; margin-bottom: 6px; }
.friend-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 9px 0;
  border-bottom: 1px solid var(--chrome-border);
}
.friend-id { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; row-gap: 2px; align-items: center; min-width: 0; }
.friend-ava {
  grid-row: 1 / span 2;
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--chrome-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--chrome-text); flex-shrink: 0;
  background-size: cover; background-position: center;
}
.friend-name { font-size: 12.5px; color: var(--chrome-text); }
.friend-handle { font-size: 10.5px; color: var(--chrome-muted); }

/* ── Profilbild & Avatare (Bild als Data-URL, cover-beschnitten) ── */
.post-ava, .app-avatar { background-size: cover; background-position: center; overflow: hidden; }
.app-avatar--pick { cursor: pointer; }
.app-profile .app-avatar--lg { margin-bottom: 8px; }
.pf-ava-hint { text-align: center; font-size: 8.5px; letter-spacing: 0.12em; color: var(--chrome-muted); opacity: 0.85; margin: 0 0 16px; }

/* ── Freunde-Block im Feed ── */
.feed-friends { margin-top: 14px; }
.feed-friends .field { margin-bottom: 8px; }
.feed-friends .set-label { margin-bottom: 8px; }
.feed-friends .friend-list { margin-bottom: 10px; }
.feed-friends .friend-list:empty { display: none; }
.friend-actions { display: flex; gap: 6px; flex-shrink: 0; }
.fr-btn {
  background: var(--chrome-text); color: var(--chrome-bg);
  border: none; font-family: inherit; font-size: 8.5px;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 7px 12px; cursor: pointer; flex-shrink: 0;
}
.fr-btn.ghost { background: transparent; color: var(--chrome-muted); border: 1px solid var(--chrome-border); }
.friend-tag { font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--chrome-muted); }
.friend-empty { font-size: 11px; color: var(--chrome-muted); padding: 6px 0; }

/* Segmented Theme-Switch (eigene, theme-bewusste Variante) */
.set-theme { width: 160px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.set-theme .seg-btn {
  background: var(--chrome-bg);
  border: 1px solid var(--chrome-border);
  color: var(--chrome-muted);
  font-family: inherit;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  padding: 9px;
  cursor: pointer;
  transition: border-color .12s, color .12s;
}
.set-theme .seg-btn.seg-active {
  border-color: var(--chrome-text);
  color: var(--chrome-text);
}

/* ══ TEILEN (Profil-Signatur + Season-Recap als Bild) ══ */
/* Aktions-Reihe unter der Signatur: zwei GLEICH breite Buttons, ein Rhythmus */
.share-pair { display: flex; gap: 8px; margin: 16px 0 2px; }
.share-pair .btn-add { flex: 1; min-width: 0; width: auto; }
/* Off-screen-Story-Rahmen für die Aufnahme — NUR Vollfarben (iOS-Export-Regel) */
.share-frame {
  position: fixed; left: -9999px; top: 0;
  width: 360px;
  padding: 46px 34px 30px;
  background: #060607;
  font-family: 'Space Mono', monospace;
}
.share-frame .sig-card { background: #141413; }     /* Gradient → Vollfarbe fürs Rendern */
.share-frame .recap-card { background: #101013; max-width: none; }
.share-foot {
  margin-top: 22px;
  text-align: center;
  font-size: 10px; letter-spacing: 0.26em;
  color: #8d8d86;
}

/* ══ GEMEINSAME NACHT — offene Markierungen im Profil ══ */
#tagInbox { width: 100%; }
.tag-invite {
  display: flex; align-items: center; gap: 10px;
  background: var(--chrome-card, rgba(255,255,255,0.04));
  border: 1px solid var(--chrome-border, #26262a);
  border-radius: 10px;
  padding: 11px 12px;
  margin: 10px 0 0;
  text-align: left;
}
.tag-invite-text { flex: 1; min-width: 0; font-size: 11.5px; line-height: 1.5; }
.tag-invite-text b { font-weight: 700; }
.tag-invite .fr-btn { flex: none; }
.tag-badge {
  display: inline-block;
  font-size: 8.5px; letter-spacing: 0.22em;
  opacity: 0.55; margin-top: 6px;
}

/* ══ MODERATION — Melden / Blockieren (App-Store-Pflicht 1.2) ══ */
.post-head { position: relative; }
.comment { position: relative; }
.post-more, .c-more {
  background: none; border: none; cursor: pointer;
  color: var(--chrome-muted, #8b8b8b);
  font-size: 14px; letter-spacing: 0.08em;
  padding: 2px 6px; line-height: 1;
}
.c-more { font-size: 11px; opacity: 0.55; margin-left: 4px; }
.post-more:hover, .c-more:hover { color: var(--chrome-text, #eee); opacity: 1; }
.mod-menu {
  position: absolute; right: 0; top: calc(100% + 4px); z-index: 40;
  background: var(--chrome-bg, #101012);
  border: 1px solid var(--chrome-border, #2a2a2e);
  border-radius: 8px;
  min-width: 150px;
  overflow: hidden;
}
.comment .mod-menu { top: 20px; }
.mod-menu button {
  display: block; width: 100%;
  background: none; border: none; cursor: pointer;
  color: inherit; text-align: left;
  font-family: inherit; font-size: 11.5px; letter-spacing: 0.04em;
  padding: 10px 13px;
}
.mod-menu button + button { border-top: 1px solid var(--chrome-border, #2a2a2e); }
.mod-menu button:hover { background: rgba(255,255,255,0.05); }
.mod-menu [data-modblock], .mod-menu .mod-danger { color: #b06a6a; }
/* ···-Menü in der Profil-Historie: liegt auf der hellen Karte → dunkel & tippbar */
.hist-item .post-more { color: rgba(0,0,0,0.55); font-size: 16px; padding: 8px 10px; }
.hist-item .post-more:hover { color: rgba(0,0,0,0.85); }
.hist-item .mod-menu { right: 6px; top: 34px; }
.up-mod { display: flex; gap: 16px; justify-content: center; margin-top: 10px; }
.up-mod .set-link { font-size: 10.5px; }

/* ══ NOIR-ABZEICHEN (Profil) ══ */
.noir-badge {
  display: inline-block; margin: 8px auto 0;
  font-family: 'Space Mono', monospace;
  font-size: 10px; letter-spacing: 0.24em;
  color: #d9c48c;
  border: 1px solid rgba(217,196,140,0.4);
  border-radius: 20px; padding: 5px 14px;
}
.noir-badge[hidden] { display: none; }

/* ══ SHOP (CLINK Noir + Drops) ══ */
.shop-open { margin: 12px 0 4px; letter-spacing: 0.14em; }
.shop-wrap { max-width: 460px; }
.shop-head { text-align: center; font-family: 'Space Mono', monospace; font-size: 13px; letter-spacing: 0.3em; opacity: 0.8; margin: 4px 0 20px; }
.shop-member { text-align: center; font-size: 11px; letter-spacing: 0.14em; color: #d9c48c; margin-bottom: 16px; }
.shop-card {
  border-radius: 14px; padding: 22px 20px 20px; margin-bottom: 16px;
  border: 1px solid var(--chrome-border, #2a2a2e);
  font-family: 'Space Mono', monospace;
}
.shop-card--noir { background: linear-gradient(160deg, #1a1a1c, #0a0a0b); border-color: #3a3730; }
.shop-card--drop { background: var(--chrome-card, rgba(255,255,255,0.03)); }
.shop-tag { font-size: 8.5px; letter-spacing: 0.32em; opacity: 0.55; }
.shop-title { font-size: 22px; letter-spacing: 0.08em; font-weight: 700; margin: 6px 0 10px; }
.shop-card--noir .shop-title { color: #ece4cf; }
.shop-blurb { font-size: 11.5px; line-height: 1.6; opacity: 0.72; margin-bottom: 14px; }
.shop-perks { list-style: none; padding: 0; margin: 0 0 18px; }
.shop-perks li { font-size: 11.5px; line-height: 1.5; padding: 6px 0 6px 18px; position: relative; border-top: 1px solid rgba(255,255,255,0.06); }
.shop-perks li:before { content: '◆'; position: absolute; left: 0; font-size: 8px; top: 8px; opacity: 0.5; }
.shop-buy { width: 100%; }
.shop-owned { text-align: center; font-size: 12px; letter-spacing: 0.1em; color: #7bbd7b; padding: 10px; }
.shop-drops-label { font-size: 9px; letter-spacing: 0.3em; opacity: 0.5; margin: 6px 0 12px; }
.shop-foot { font-size: 10px; line-height: 1.6; opacity: 0.45; margin-top: 12px; text-align: center; }

/* ══ BENACHRICHTIGUNGEN (Glocke im Header + Modal) ══ */
body > header { position: relative; }
.notif-bell {
  /* auf HÖHE DES LOGOS, nicht auf halber Header-Höhe (sonst rutscht das Icon
     in die Statusleisten-/Batterie-Zone, weil oben die safe-area-Polsterung sitzt) */
  position: absolute; top: calc(50% + env(safe-area-inset-top) / 2); right: calc(16px + env(safe-area-inset-right));
  transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: var(--chrome-text, #eee); padding: 6px;
  display: flex; align-items: center; justify-content: center;
}
.notif-bell[hidden] { display: none; }
.notif-dot {
  position: absolute; top: 4px; right: 4px;
  width: 8px; height: 8px; border-radius: 50%;
  background: #e05b5b;
  border: 1.5px solid var(--chrome-bg, #0b0b0d);
}
.notif-dot[hidden] { display: none; }
.notif-wrap { max-width: 460px; }
.notif-title { font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; opacity: 0.7; margin: 2px 0 16px; }
.notif-row {
  display: flex; align-items: center; gap: 11px;
  padding: 12px 4px; cursor: pointer;
  border-bottom: 1px solid var(--chrome-border, #23232733);
}
.notif-row.unread { background: rgba(224,91,91,0.06); border-radius: 8px; padding-left: 10px; }
.notif-ava {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: #2a2a2e center/cover no-repeat;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}
.notif-text { font-size: 12.5px; line-height: 1.45; }
.notif-text b { font-weight: 700; }
.notif-time { display: block; font-size: 10px; opacity: 0.45; margin-top: 3px; letter-spacing: 0.06em; }

/* ══ CO-OP-POST (beide Autoren im Feed-Kopf) ══ */
.post-head--collab { align-items: center; }
.collab-avas { display: flex; align-items: center; }
.collab-avas .collab-ava { margin-left: -10px; border: 2px solid var(--chrome-bg, #0b0b0d); background-size: cover; background-position: center; }
.collab-avas .collab-ava:first-child { margin-left: 0; }
.post-name .pn-part { cursor: pointer; }
.post-name .pn-amp { opacity: 0.5; font-weight: 400; }
.collab-badge {
  display: inline-block;
  font-size: 8px; letter-spacing: 0.2em; font-weight: 700;
  color: #d9c48c; margin-right: 6px;
  vertical-align: 1px;
}

/* ══ POST BEARBEITEN + KOMMENTAR-LÖSCHEN ══ */
/* Eigene Post-Aktionen (✎ ⌗ ✕): gleiche Größe, echte Tippflächen */
.post-ownbtns { display: inline-flex; gap: 4px; margin-left: auto; }
.post-edit, .post-arch { background: none; border: none; color: var(--chrome-muted); font-size: 14px; line-height: 1; cursor: pointer; padding: 7px; }
.post-edit:hover, .post-arch:hover { color: var(--chrome-text, #eee); }
/* Archiv-Buttons im Profil (aktive Abende: Icons oben rechts) */
.hist-ownbtns { position: absolute; top: 8px; right: 8px; display: inline-flex; gap: 4px; align-items: center; z-index: 2; }
.hist-ownbtns .post-del { position: static; top: auto; right: auto; }
/* Archiv-Bereich (nur eigenes Profil) */
.archive-block { margin-top: 20px; border-top: 1px solid var(--chrome-border); }
.archive-summary { cursor: pointer; font-size: 9px; letter-spacing: 0.28em; color: var(--chrome-muted); padding: 14px 0 6px; list-style: none; text-transform: uppercase; text-align: center; }
.archive-summary::-webkit-details-marker { display: none; }
.hist-item--arch { opacity: 0.72; margin-top: 12px; }
.hist-item--arch .hist-ownbtns { position: static; justify-content: flex-end; padding: 8px 4px 0; }
.hist-item--arch .fr-btn { font-size: 9px; padding: 6px 12px; }
.c-del { background: none; border: none; color: var(--chrome-muted); font-size: 10px; cursor: pointer; padding: 2px 4px; opacity: 0.5; margin-left: 2px; }
.c-del:hover { color: #c98686; opacity: 1; }
.edit-form { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--chrome-border, #23232733); }
.edit-form .ef-caption { min-height: 54px; resize: vertical; font-family: inherit; }
.edit-form .field-row { display: flex; gap: 8px; }
.edit-form .field-row .field { flex: 1; min-width: 0; }
.edit-form .btn-pair { display: flex; gap: 8px; }
.edit-form .btn-pair > * { flex: 1; }
.ef-hint { font-size: 10px; color: var(--chrome-muted); line-height: 1.5; }

/* ══ POST-COMPOSER + HASHTAGS ══ */
.compose-wrap, .hashtag-wrap { max-width: 460px; }
#composeCaption { min-height: 90px; resize: vertical; font-family: inherit; width: 100%; }
.compose-hint { font-size: 10.5px; color: var(--chrome-muted); line-height: 1.5; margin: 8px 0 14px; }
/* Feedback & Kontakt */
.fb-intro { font-size: 11px; color: var(--chrome-muted); line-height: 1.6; margin: 0 0 14px; }
#feedbackModal .field { margin-bottom: 10px; }
#fbBody { min-height: 120px; resize: vertical; line-height: 1.5; }
#composeConfirm { width: 100%; }
.tag-link { color: #8ab4d8; cursor: pointer; }
.mention-link { color: #d9c48c; cursor: pointer; }
.tag-link:hover, .mention-link:hover { text-decoration: underline; }
.ht-item { margin-bottom: 16px; }
.ht-by { font-size: 11px; color: var(--chrome-muted); letter-spacing: 0.06em; margin-bottom: 6px; cursor: pointer; }

/* ══ NOIR sichtbarer Status (Gold-Name + Gold-Finish + Vorschau) ══ */
.noir-name { color: #c9a24a; }
.btn-color.noir-gold { color: #c9a24a; border-color: rgba(201,162,74,0.55); }
.btn-color.noir-gold.active { background: #c9a24a; border-color: #c9a24a; color: #14110a; }
.shop-preview { margin: 6px 0 16px; text-align: center; }
.shop-preview .btn-add { border-color: rgba(201,162,74,0.5); color: #c9a24a; letter-spacing: 0.12em; }
.shop-preview-hint { font-size: 10px; color: var(--chrome-muted); margin-top: 8px; line-height: 1.5; }
/* Noir-Abzeichen im Profil in Gold statt neutral */
.noir-badge { color: #c9a24a; border-color: rgba(201,162,74,0.45); }

/* ══ FOUNDING MEMBER (Status-Nummer) ══ */
.founding-tag {
  display: inline-block; font-size: 7.5px; letter-spacing: 0.22em; font-weight: 700;
  color: #14110a; background: #c9a24a; border-radius: 3px;
  padding: 2px 5px; margin-left: 6px; vertical-align: 1px;
}
.shop-member .founding-tag { vertical-align: 2px; }

/* ══ DROP-VERKNAPPUNG (limitierte Editionen) ══ */
.shop-tagrow { display: flex; align-items: center; justify-content: space-between; }
.drop-badge { font-size: 8px; letter-spacing: 0.2em; font-weight: 700; padding: 3px 7px; border-radius: 3px; border: 1px solid var(--chrome-border); color: var(--chrome-muted); }
.drop-badge.live { color: #7bbd7b; border-color: rgba(123,189,123,0.4); }
.drop-edition { font-size: 9px; letter-spacing: 0.28em; color: var(--chrome-muted); margin: 4px 0 14px; }
.drop-soon { text-align: center; font-size: 11px; letter-spacing: 0.14em; color: var(--chrome-muted); padding: 10px; border: 1px dashed var(--chrome-border); border-radius: 8px; }
.shop-card--soon { opacity: 0.82; }
.shop-owned b { color: #c9a24a; font-weight: 700; }

/* ══ INVITE-SYSTEM (exklusiver Zugang) ══ */
.invites-area { margin-top: 26px; }
.invites-hint { font-size: 11px; color: var(--chrome-muted); line-height: 1.5; margin-bottom: 12px; }
.invite-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.invite-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border: 1px solid var(--chrome-border); border-radius: 8px; padding: 10px 12px;
}
.invite-row.used { opacity: 0.5; }
.invite-code { font-family: 'Space Mono', monospace; font-size: 13px; letter-spacing: 0.14em; }
.invite-status { font-size: 10px; letter-spacing: 0.14em; color: var(--chrome-muted); }

/* ══ NOIR-PROFIL (Gold-Signatur-Karte) ══ */
.sig-card--noir {
  background: linear-gradient(150deg, #201d16, #0b0a07);
  border-color: #6a5a2e;
}
.sig-card--noir .sig-brand { color: #e6d3a0; }
.sig-card--noir .sig-member { color: #c9a24a; opacity: 1; }
.sig-card--noir .sig-name { color: #f0e6cd; }

/* ══ SEASON-RECAP: Zeitraum + Noir-Gold ══ */
.recap-span { font-size: 10px; letter-spacing: 0.18em; opacity: 0.5; margin-top: 6px; }
.recap-card--noir {
  background: linear-gradient(160deg, #1e1a12, #0a0906);
  border-color: #6a5a2e;
}
.recap-card--noir .recap-h, .recap-card--noir .recap-foot { color: #c9a24a; opacity: 0.9; }
.recap-card--noir .recap-big { color: #f0e6cd; }
.recap-card--noir .recap-row b { color: #e6d3a0; }

/* ══ EINSTELLUNGEN: Zahnrad im Header ══ */
.header-gear {
  position: absolute; top: calc(50% + env(safe-area-inset-top) / 2); right: calc(16px + env(safe-area-inset-right));
  transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: var(--chrome-muted); padding: 6px;
  display: flex; align-items: center; justify-content: center;
}
.header-gear:hover { color: var(--chrome-text); }
.header-gear[hidden] { display: none; }
/* Reihenfolge rechts: Zahnrad (16) · Glocke (50) · Chat (84) */
.notif-bell { right: calc(50px + env(safe-area-inset-right)); }
.chat-btn {
  position: absolute; top: calc(50% + env(safe-area-inset-top) / 2);
  right: calc(84px + env(safe-area-inset-right)); transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--chrome-text, #eee);
  padding: 6px; display: flex; align-items: center; justify-content: center;
}
.chat-btn[hidden] { display: none; }
.settings-wrap { max-width: 460px; }
.settings-wrap .app-settings { padding: 8px 0 0; }
/* Profil-bearbeiten-Formular lebt jetzt im Zahnrad-Menü */
.settings-wrap .profile-form { margin-top: 12px; }

/* ── Gesendeter Abend im Chat: klickbar + Viewer ── */
.chat-postwrap { background: none; border: 0; padding: 0; margin: 0; display: block; cursor: pointer; text-align: inherit; }
.chat-postwrap:active { opacity: .85; }
.chat-postby { display: flex; align-items: center; gap: 8px; margin: 2px 0 12px; cursor: pointer; }
#chatPostBody { max-height: 70vh; overflow-y: auto; }
.chat-post--big { width: 100%; border-radius: 10px; display: block; }

/* ── Habit-Loop: erste Mission (Studio) + Erste-Abend-Feier ── */
.mission {
  position: relative;
  margin: 10px 0 4px;
  padding: 13px 14px 14px;
  border: 1px solid rgba(201,162,74,0.4);
  border-radius: 12px;
  background: rgba(201,162,74,0.06);
}
.mission[hidden] { display: none; }
.mission-x {
  position: absolute; top: 6px; right: 8px;
  background: none; border: 0; color: var(--muted);
  font-size: 13px; cursor: pointer; line-height: 1; padding: 4px;
}
.mission-h {
  font-size: 12px; letter-spacing: 0.14em; font-weight: 700;
  color: #c9a24a; text-transform: uppercase;
}
.mission-h::before { content: '◆ '; }
.mission-t { font-size: 12px; line-height: 1.55; color: var(--fg); opacity: 0.82; margin: 6px 0 11px; }
.mission-go {
  width: 100%; padding: 9px; border-radius: 9px;
  background: #c9a24a; border: 0; color: #14110a;
  font-family: inherit; font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; cursor: pointer;
}
.mission-go:active { transform: scale(0.985); }
@keyframes missionPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(201,162,74,0); } 50% { box-shadow: 0 0 0 4px rgba(201,162,74,0.5); } }
.mission-pulse { animation: missionPulse 1s ease-in-out 2; border-color: #c9a24a !important; }

.firstrun {
  position: fixed; inset: 0; z-index: 4000;
  display: flex; align-items: center; justify-content: center;
  background: #080808;
  animation: frIn 0.4s ease;
}
@keyframes frIn { from { opacity: 0; } to { opacity: 1; } }
.firstrun.fr-out { opacity: 0; transition: opacity 0.5s ease; }
.fr-inner { text-align: center; padding: 2em; max-width: 340px; }
.fr-diamond { font-size: 34px; color: #c9a24a; animation: frPop 0.7s ease; }
@keyframes frPop { 0% { transform: scale(0.3); opacity: 0; } 60% { transform: scale(1.15); } 100% { transform: scale(1); opacity: 1; } }
.fr-h {
  margin-top: 18px; font-size: 22px; font-weight: 700;
  letter-spacing: 0.16em; color: #f3efe6; font-family: 'Space Mono', monospace;
}
.fr-sub { margin-top: 10px; font-size: 13px; letter-spacing: 0.1em; color: #9a958a; }
.fr-no { margin-top: 22px; font-size: 12px; letter-spacing: 0.3em; color: #c9a24a; }
.fr-btn {
  margin-top: 30px; padding: 11px 34px;
  background: none; border: 1px solid rgba(201,162,74,0.55); border-radius: 999px;
  color: #c9a24a; font-family: 'Space Mono', monospace; font-size: 12px;
  letter-spacing: 0.22em; cursor: pointer;
}
.fr-btn:active { transform: scale(0.97); }
