  :root {
    /* Primärfarbe + abgeleitete Töne */
    --primary: #7ED957;
    --primary-soft: #EAF8E2;   /* Flächen, aktive Zustände */
    --category-line: #BFE3A8;  /* Rand der Kategorie-Chips im Filter (Kategorien = grün, Anlässe = warm) */
    /* Anlässe (Umzug, Feier …): warmer Ton, klar unterscheidbar von Kategorien (grün); Kontrast Text 6,6 : 1 */
    --occasion-soft: #FCEFD9;
    --occasion-ink: #7A4E0E;
    --occasion-line: #EFCB8F;
    --primary-ink: #2E6B17;    /* Grün für Text/Icons auf Weiß (lesbar) */
    /* Freunde: Flieder – sonst nirgends vergeben; hell für dunkle Karten */
    --friend: #7C5CD6;
    --friend-soft: #F1EDFC;
    --friend-light: #C9B8F5;

    --bg-desk: #eef0ec;
    --bg: #ffffff;
    --surface: #f6f7f5;
    --page: #E9EDE5;          /* Seitenhintergrund FIND/SHARE (leicht grünstichiges Grau) */
    --text: #1d2318;
    --muted: #7a8274;
    --line: #e7eae4;

    --radius: 20px;
    --tabbar-h: 84px;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  body {
    font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--bg-desk);
    color: var(--text);
    min-height: 100vh;
    display: grid;
    place-items: center;
    -webkit-font-smoothing: antialiased;
  }
  button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

  /* Gerätrahmen: auf dem Desktop ein Phone-Mockup, auf echten Handys Vollbild */
  .phone {
    width: 390px;
    height: 844px;
    background: var(--page);
    border-radius: 44px;
    box-shadow: 0 0 0 10px #151815, 0 24px 60px rgba(0,0,0,.22);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
  }
  @media (max-width: 480px) {
    body { display: block; }
    .phone { width: 100%; height: 100vh; height: 100dvh; border-radius: 0; box-shadow: none; }
  }
  /* Nachgebaute Statusleiste ("9:41 ●●●") gehört nur zum Handy-Mockup auf dem Desktop. Auf echten Handys –
     im Browser (schmaler Bildschirm, Rahmen weg) wie vom Home-Bildschirm (Vollbild, siehe <head>) – zeigt das
     Handy Uhrzeit und Akku selbst, sie würde doppelt erscheinen. (.phone davor: schlägt die .statusbar-Regel unten) */
  @media (max-width: 480px) { .phone .statusbar { display: none; } }
  .standalone .statusbar { display: none; }

  .statusbar {
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    font-size: 14px;
    font-weight: 700;
  }

  /* Screens: genau einer ist sichtbar, Wechsel über go('id') */
  .screen { display: none; flex: 1; flex-direction: column; overflow-y: auto; scrollbar-width: none; }
  .screen.active { display: flex; }

  /* Scrollen in FIND (später auch SHARE): Such-/Filterzeile bzw. Kopf von My posts bleibt stehen,
     der Rest scrollt weg; die Kopfzeile kommt beim Hochscrollen zurück ("Quick Return", R-3.9).
     Nur Verschiebungen (transform), keine Größenänderung – nichts wackelt. */
  /* stehende Leiste: volle Breite, immer im Seitengrün (unsichtbar, solange sie an ihrem Platz ist) –
     so verdeckt sie durchscrollende Karten ohne Umschalten. Abstände wie vorher: 4 + 10 = 14 px oben,
     unten 6 px Luft, die per negativem Rand nichts verschieben. */
  .scroll-bar { position: sticky; top: var(--bar-top, 0px); z-index: 6; background: var(--page);
                margin: 4px 0 -6px; padding: 10px 20px 6px; }
  /* die echte Kopfzeile bleibt oben angeheftet und wird nur nach oben weggeschoben (setupQuickReturn);
     die stehende Leiste klebt direkt darunter (--bar-top) */
  .has-qr > .screen-header { position: sticky; top: 0; z-index: 8; background: var(--page);
                             transform: translateY(var(--head-offset, 0px)); }

  .screen-header {
    padding: 12px 24px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  /* Profil-Avatar oben rechts (Initialen) */
  .avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--text);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .5px;
    display: grid; place-items: center;
    flex-shrink: 0;
  }
  .avatar.large { width: 96px; height: 96px; font-size: 34px; }
  .header-actions { display: flex; align-items: center; gap: 10px; }
  .chat-btn {
    width: 40px; height: 40px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--bg); color: var(--text);
    box-shadow: 0 0 0 1px #E1E6DC;
  }
  .chat-btn:active { background: var(--surface); }

  /* Unterseiten-Kopf mit Zurück-Pfeil */
  .subpage-header {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
  }
  .back-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: grid; place-items: center;
  }
  .back-btn:active { background: var(--surface); }
  .subpage-header h1 { font-size: 20px; font-weight: 800; }
  .screen-header h1 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
  }
  .screen-header p { color: var(--muted); margin-top: 2px; font-size: 15px; }

  /* Wischgesten (R-7.1c): FIND ↔ SHARE gleitet von der Seite herein */
  @keyframes swipeInRight { from { transform: translateX(40%); opacity: .4; } to { transform: none; opacity: 1; } }
  @keyframes swipeInLeft  { from { transform: translateX(-40%); opacity: .4; } to { transform: none; opacity: 1; } }
  .screen.swipe-in-right { animation: swipeInRight .24s ease-out; }
  .screen.swipe-in-left  { animation: swipeInLeft .24s ease-out; }
  .screen[data-notab] { touch-action: pan-y; }   /* waagerechte Geste gehört uns (Randwischen), senkrecht scrollt die Seite */

  /* Feature-Schalter (nur Entwicklung/Tests): ausgeschaltete Features verschwinden ganz */
  .no-friends .needs-friends { display: none !important; }
  .no-impact .needs-impact { display: none !important; }
  .no-sendPosts .needs-sendPosts { display: none !important; }
  .no-occasions .needs-occasions { display: none !important; }
  .no-personFilter .needs-personFilter { display: none !important; }
  .no-appearance .needs-appearance { display: none !important; }
  .no-pricePerPerson .needs-pricePerPerson { display: none !important; }
  .no-appearance .needs-appearance + .st-row { border-top: 0; }   /* ausgeblendete erste Zeile: keine Trennlinie über der nächsten */

  /* Freunde-Kasten (R-9.6) – Flieder = Freunde; grauer Grund innen, damit die weißen Gruppen sich abheben (wie im Profil) */
  #friendsModal { background: var(--page); }
  /* Überschrift bleibt beim Scrollen stehen – man weiß immer, wo man ist */
  #friendsBody > .subpage-header { position: sticky; top: 0; z-index: 3; background: var(--page); padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px solid rgba(29,35,24,.14); }   /* leiser Strich = sichtbare Kante beim Scrollen */
  .fr-title { display: flex; align-items: center; gap: 8px; }
  .fr-title svg { color: var(--friend); }
  .fr { padding: 0 16px 32px; }
  .fr-search { display: flex; align-items: center; gap: 8px; background: var(--bg); border-radius: 16px; padding: 0 14px; color: var(--muted); }
  .fr-search input { flex: 1; border: none; background: none; font: inherit; font-size: 15px; font-weight: 600; padding: 13px 0; color: var(--text); outline: none; min-width: 0; }
  /* Variante B (23.10.2026): Flieder nur als Kennzeichen (wer ist Freund*in), Grün für Handlungen */
  .fr-add { margin-top: 18px; padding: 2px 12px 14px; border-radius: 22px; background: var(--primary-soft); }
  .fr-add .fr-label { color: var(--primary-ink); margin: 12px 4px 6px; }
  #frInvite[hidden], .fr-qr[hidden] { display: none; }
  #frInvite { margin-top: 10px; }   /* ohne Erklärsatz (24.10.2026): QR-Code bzw. Teilen-Text erklären sich selbst */
  .fr-acts { display: flex; gap: 8px; }
  .fr-acts button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 11px; border-radius: 16px; background: var(--bg); color: var(--primary-ink); font-size: 14px; font-weight: 800; }
  .fr-acts button[aria-expanded="true"] { box-shadow: inset 0 0 0 2px var(--primary); }
  .fr-qr { margin-top: 8px; background: var(--bg); border-radius: 18px; padding: 16px; text-align: center; }
  .fr-qr-code { width: 150px; height: 150px; margin: 0 auto 10px; padding: 8px; border-radius: 12px; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--text); }
  .fr-qr p { font-size: 13px; font-weight: 600; color: var(--muted); line-height: 1.45; }
  .fr-label { font-size: 13px; font-weight: 800; color: var(--muted); letter-spacing: .3px; text-transform: uppercase; margin: 18px 8px 6px; }
  .fr-group { background: var(--bg); border-radius: 18px; overflow: hidden; }
  .fr-row { display: flex; align-items: center; gap: 12px; padding: 11px 14px; }
  .fr-row + .fr-row { border-top: 1px solid var(--line); }
  .fr-row .av-lg { width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-size: 14px; font-weight: 800; color: var(--text); }
  .fr-who { flex: 1; min-width: 0; }
  .fr-who b { display: block; font-size: 15px; font-weight: 800; }
  .fr-who small { display: block; font-size: 13px; font-weight: 600; color: var(--muted); overflow-wrap: anywhere; }
  .fr-who small.fr-mutual { font-size: 12px; font-weight: 700; color: var(--friend); }   /* darf umbrechen – nie abschneiden (CLAUDE.md) */
  .fr-btn { padding: 7px 13px; border-radius: 99px; font-size: 13px; font-weight: 800; background: var(--primary-soft); color: var(--primary-ink); flex-shrink: 0; }
  /* Anfragen: Haken (annehmen) und Kreuz (ablehnen) statt Wörtern – lässt den Namen Platz */
  .fr-icon-btn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: var(--surface); color: var(--muted); }
  .fr-icon-btn.solid { background: var(--primary); color: var(--text); }   /* annehmen = primärgrün wie Match (nie weiße Schrift auf Grün) */
  .fr-icon-btn:active, .fr-btn:active { filter: brightness(.95); }
  .fr-toggle { display: flex; align-items: center; justify-content: center; gap: 4px; width: 100%; padding: 10px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 800; color: var(--muted); }
  .fr-toggle svg { transition: transform .2s; }
  .fr-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .fr-state { font-size: 13px; font-weight: 700; color: var(--muted); flex-shrink: 0; }
  .fr-more { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); flex-shrink: 0; }
  .fr-more:active { background: var(--surface); }
  .fr-empty { padding: 18px 14px; font-size: 14px; font-weight: 600; color: var(--muted); text-align: center; }

  /* Profil einer anderen Person (R-9.9): Kasten wie die Detailansicht, liegt über Detail- und Freunde-Kasten */
  #personBackdrop { z-index: 17; }
  #personModal { z-index: 18; background: var(--page); }
  #personBody > .pp-head { position: sticky; top: 0; z-index: 3; background: var(--page); }
  .pp-head h1 { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 20px; }
  .pp-head h1 svg { color: var(--friend); }
  .pp-card .pf-band { position: relative; }
  .pp-more { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--primary-ink); }
  .pp-more:active { background: rgba(255,255,255,.6); }
  #ppContent { padding-bottom: 24px; }
  /* großes Profilbild: bei Freund*innen Flieder-Ring + kleines Freunde-Symbol unten rechts */
  .pp-avatar { position: relative; width: 88px; margin: -44px auto 0; }
  .pp-avatar .pf-avatar { margin: 0; }
  .pp-avatar.is-friend .pf-avatar { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--friend); }
  /* Freundschaftsstatus: Pille mittig auf der unteren Kante des Profilbilds (immer dieselbe Stelle, R-9.9) */
  .pp-avatar { margin-bottom: 18px; }   /* Luft zwischen Status-Pille und Name */
  .pp-status { position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 3px; white-space: nowrap;
    padding: 2px 8px 2px 6px; border-radius: 99px; font-size: 11px; font-weight: 800; background: var(--primary-soft); color: var(--primary-ink); box-shadow: 0 0 0 2.5px var(--bg); }
  .pp-status svg { width: 12px; height: 12px; }
  .pp-status.solid { background: var(--primary); color: var(--text); }
  .pp-status.sent, .fr-pending-pill { background: var(--surface); color: var(--muted); }
  /* ausstehende eigene Anfrage: graue Pille mit Uhr – antippen zieht sie zurück (R-9.6) */
  .fr-pending-pill { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; padding: 6px 11px 6px 9px; border-radius: 99px; font-size: 12px; font-weight: 800; }
  .fr-pending { margin-top: 10px; }
  .fr-pending .fr-toggle { border-top: none; justify-content: space-between; padding: 12px 14px; color: var(--muted); }
  .fr-pending .fr-toggle span { display: flex; align-items: center; gap: 6px; }
  .fr-pending .fr-row { border-top: 1px solid var(--line); }
  .pp-status.friend { background: var(--friend-soft); color: var(--friend); }
  .pp-dist { display: flex; align-items: center; justify-content: center; gap: 3px; }
  /* gemeinsame Share Rings: dunkelgrüne Pille (Farbe eigener Share Rings) über den offenen Posts */
  .pp-rings { margin-top: 14px; }
  .pf-pill.is-ring { background: var(--ring-bg); color: var(--ring-text); }
  .pp-friends { margin: 18px 12px 0; box-shadow: inset 0 0 0 1.5px var(--line); }
  .pp-mutual { margin-top: 2px; font-size: 13px; font-weight: 700; color: var(--friend); }
  /* in fremden Profilen tragen nur meine Freund*innen (= gemeinsame) den Flieder-Ring */
  .pp-friends .pf-frow .pf-friend .avatar { box-shadow: none; }
  .pp-friends .pf-frow .pf-friend.mine .avatar { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4.5px var(--friend); }
  .pp-friends .pf-frow.all { grid-template-columns: repeat(5, 1fr); row-gap: 12px; }
  .pp-impact { margin: 14px 12px 0; }
  .fr-row.is-link { cursor: pointer; }
  .dt-member[role="button"] { cursor: pointer; }
  /* Personenfilter in der Explore-Suchleiste (R-9.2a) */
  .person-back[hidden], .person-chip[hidden] { display: none; }
  .search-row.has-person .search-toggle { display: none; }
  .person-chip { display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0; padding: 3px 4px 3px 3px; border-radius: 99px; background: var(--primary-soft); color: var(--primary-ink); font-size: 13px; font-weight: 800; }
  .person-chip .av { width: 22px; height: 22px; margin: 0; font-size: 9px; border: none; }
  .person-chip button { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: var(--primary-ink); }
  .person-result { margin: 0 4px 2px; font-size: 14px; font-weight: 700; color: var(--muted); }

  /* Profil (R-9.1a): weißer Grund = öffentlich sichtbar, grauer Seitengrund = nur ich */
  .pf-top { display: flex; justify-content: space-between; align-items: center; padding: 4px 12px; flex-shrink: 0; }
  /* Profilkarte = was andere sehen: weiß, leicht eingerückt, dünne graue Linie rundum (Abgrenzung ich / andere) */
  .pf-public { background: var(--bg); margin: 0 8px; border-radius: 26px; box-shadow: 0 0 0 1px rgba(29,35,24,.16); padding: 0 0 20px; flex-shrink: 0; overflow: hidden; }
  .pf-band { height: 76px; background: var(--primary-soft); }   /* Gestaltung, kein Titelbild (R-9.1a) */
  .pf-body { padding: 0 24px; text-align: center; }
  .pf-avatar { width: 88px; height: 88px; font-size: 30px; margin: -44px auto 0; box-shadow: 0 0 0 4px var(--bg); }   /* halb über dem Streifen */
  .pf-name { font-size: 22px; font-weight: 800; margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 2px; }
  .pf-pencil { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); margin-right: -34px; }
  .pf-pencil:active { background: var(--surface); }
  .pf-meta { color: var(--muted); font-size: 14px; font-weight: 600; margin-top: 2px; }
  .pf-bio { font-size: 15px; font-weight: 600; line-height: 1.45; margin-top: 10px; }
  .pf-rings { font: inherit; color: inherit; }            /* antippbar, aber ruhig wie der Rest der Zeile */
  .pf-stats-label { margin-top: 16px; font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .3px; }
  .pf-stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
  /* Farbcodierung der Art wie in FIND: Wish hellgrün, Invitation Salbeigrün */
  .pf-pill { display: inline-flex; align-items: center; gap: 5px; padding: 6px 13px 6px 10px; border-radius: 99px; font-size: 14px; font-weight: 800; }
  .pf-pill.is-light { background: var(--primary-soft); color: var(--primary-ink); }
  .pf-pill.is-dark { background: var(--invite-bg); color: var(--invite-text); }
  .pf-pill:active { filter: brightness(.96); }
  /* "Show on profile": Kästchen-Chips an der Grenze öffentlich / privat */
  .pf-showrow { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 16px 0; font-size: 13px; font-weight: 700; color: var(--muted); }
  .pf-check { padding: 5px 12px; border-radius: 99px; background: var(--bg); box-shadow: inset 0 0 0 1.5px #D6DDD0; font-size: 13px; font-weight: 700; color: var(--muted); }
  .pf-check[aria-checked="true"] { background: var(--primary); box-shadow: none; color: var(--text); }
  .pf-private { display: flex; align-items: center; gap: 6px; margin: 18px 28px 8px; color: var(--muted); font-size: 13px; font-weight: 700; }
  .pf-private[hidden], .pf-showrow[hidden] { display: none; }
  /* Freunde-Kasten: eine Version; privat weiß auf grauem Grund, öffentlich mit dünnem Rand im weißen Bereich */
  /* Freunde-Kasten: kein Flieder-Rahmen (Flieder tragen schon die Ringe und das Symbol, R-9.6);
     öffentlich weiß auf Weiß → dezente graue Linie, damit er sich abhebt */
  .pf-friendsbox { cursor: pointer; margin: 0 16px 12px; padding: 14px 16px; border-radius: 22px; background: var(--bg); flex-shrink: 0; }
  .pf-public .pf-friendsbox { margin: 18px 12px 0; box-shadow: inset 0 0 0 1.5px var(--line); }
  .pf-fhead { display: flex; justify-content: space-between; align-items: center; }
  .pf-fhead h2 { font-size: 17px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
  .pf-fhead h2 svg { color: var(--friend); }
  .pf-fadd { position: relative; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-ink); }   /* Handlung = grün */
  .pf-fadd:active { filter: brightness(.95); }
  .pf-fdot { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--friend); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg); }
  .pf-frow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 12px; text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); }
  .pf-frow .avatar { width: 46px; height: 46px; font-size: 15px; margin: 0 auto 4px; }
  .pf-frow .pf-friend { font: inherit; color: inherit; }
  .pf-frow .pf-friend .avatar { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4.5px var(--friend); }   /* Freunde: Flieder-Ring wie überall */
  .pf-frow .more { font: inherit; color: inherit; }
  .pf-frow .more .avatar { background: var(--surface); color: var(--primary-ink); }
  .pf-fempty { margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
  .pf-impact { margin: 0 16px 24px; padding: 16px; border-radius: 22px; background: var(--ring-bg); color: var(--ring-text); flex-shrink: 0; }
  .pf-public .pf-impact { margin: 14px 12px 0; }
  .pf-public > .pf-body + .pf-impact { margin-top: 18px; }
  .pf-impact-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
  .pf-impact-head h2 { font-size: 17px; font-weight: 800; display: flex; align-items: center; }
  .pf-impact .info-btn { color: var(--ring-muted); }
  .pf-impact .info-btn.on { color: var(--ring-bg); background: var(--ring-muted); }
  .pf-levels { display: flex; gap: 6px; margin: 14px 0 16px; }
  .pf-only-me { display: flex; align-items: center; gap: 5px; margin: -8px 0 12px; font-size: 12px; font-weight: 700; color: var(--ring-muted); }
  .pf-only-me[hidden] { display: none; }
  .pf-levels button { padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--ring-line); color: var(--ring-text); white-space: nowrap; }
  .pf-levels button[aria-checked="true"] { background: var(--primary); color: var(--text); box-shadow: none; }
  .pf-circles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; font-size: 13px; font-weight: 700; color: var(--ring-muted); }
  .pf-circles span { display: grid; place-items: center; width: 78px; height: 78px; margin: 0 auto 6px; border-radius: 50%; border: 3px solid var(--primary); color: var(--ring-text); font-size: 17px; font-weight: 800; }
  .pf-impact-note { margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--ring-muted); text-align: center; }
  .pf-impact-note:empty { display: none; }
  .pf-impact-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.16); }
  .pf-review { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ring-muted); }
  .pf-share { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--ring-text); background: var(--ring-soft); }
  .pf-share:active { filter: brightness(1.1); }

  /* Einstellungen (R-9.5): weiße Gruppen auf grauem Grund, Abschnittsüberschrift darüber, Unterseiten mit › */
  .st { padding: 0 16px 28px; }
  .st-label { font-size: 13px; font-weight: 800; color: var(--muted); letter-spacing: .3px; text-transform: uppercase; margin: 18px 8px 6px; }
  .st-group { background: var(--bg); border-radius: 18px; overflow: hidden; }
  .st-group + .st-group { margin-top: 18px; }
  .st-langs + .st-group-tight { margin-top: 8px; }
  .st-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 14px; text-align: left; font-size: 15px; font-weight: 700; }
  .st-row + .st-row { border-top: 1px solid var(--line); }
  .st-row:active { background: var(--surface); }
  .st-row > svg:first-child { flex-shrink: 0; color: var(--primary-ink); }
  .st-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
  .st-text small { font-size: 13px; font-weight: 600; color: var(--muted); margin-top: 1px; display: flex; align-items: center; gap: 4px; }
  .st-end { margin-left: auto; display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; font-weight: 600; white-space: nowrap; }
  .st-row.danger, .st-row.danger > svg:first-child { color: #B4352B; }
  .st-note { font-size: 13px; font-weight: 600; color: var(--muted); line-height: 1.45; margin: 8px 8px 0; }
  .st-legal { display: flex; justify-content: center; gap: 6px; margin-top: 20px; font-size: 13px; font-weight: 600; color: var(--muted); }
  .st-legal button { color: var(--muted); font-weight: 700; }
  /* Sprache: zwei Felder nebeneinander, Sprachname statt Flagge; aktiv = nur ein dünner dunkler Rahmen (Form statt Farbe) */
  .st-langs { display: flex; gap: 8px; }
  .st-langs button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 8px; border-radius: 14px; background: var(--bg); font-size: 15px; font-weight: 700; color: var(--muted); }
  .st-langs b { font-size: 11px; font-weight: 800; color: var(--muted); }
  .st-langs button[aria-checked="true"] { color: var(--text); font-weight: 800; box-shadow: inset 0 0 0 1.5px var(--text); }
  .st-langs button[aria-checked="true"] b { color: var(--text); }
  .st-choice { border-top: 1px solid var(--line); padding: 2px 0 12px; }
  .st-choice button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 0; text-align: left; font-size: 15px; font-weight: 700; }
  .st-choice button[aria-checked="true"] .po-radio { border: 6px solid var(--primary-ink); }
  .st-choice .st-note { margin: 4px 0 0; }
  .st-switch { width: 44px; height: 26px; border-radius: 13px; background: #D3DACD; position: relative; flex-shrink: 0; transition: background .2s; }
  .st-switch span { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .2s; }
  .st-switch[aria-checked="true"] { background: var(--primary); }
  .st-switch[aria-checked="true"] span { left: 21px; }
  /* Unterseiten als Kästen von unten (nutzen .sheet des Filter-Sheets; eigener Hintergrund #stBackdrop) */
  .sheet.st-sheet { z-index: 23; }
  /* Kasten "Post senden" (R-3.10): Mini-Karte · Nachricht · Suche · wischbare Personenreihe · Link · Senden */
  .sd-preview { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; }
  .sd-preview.is-light { background: var(--primary-soft); }
  .sd-preview.is-dark { background: var(--invite-bg); color: var(--invite-text); }
  .sd-thumb { width: 44px; height: 44px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: #2B302A; color: #E3E9DF; flex-shrink: 0; }
  .sd-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .sd-thumb img.ph-art { width: 38px; height: 38px; object-fit: contain; }
  .sd-preview strong { display: block; font-size: 15px; font-weight: 800; }
  .sd-preview small { font-size: 12px; font-weight: 700; opacity: .85; display: inline-flex; align-items: center; gap: 4px; }
  .sd-msg { width: 100%; margin-top: 10px; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; font: inherit; font-size: 14px; font-weight: 600; resize: none; color: var(--text); background: var(--bg); }
  /* "Senden an" trennt die Empfänger (Suche + Reihe) sichtbar von der Nachricht darüber */
  .sd-to { font-size: 15px; font-weight: 800; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
  .sd-search { margin-top: 8px; background: var(--surface); }
  .sd-label { font-size: 13px; font-weight: 800; color: var(--muted); margin: 14px 0 8px; }
  .sd-label[hidden] { display: none; }
  .sd-people { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px 2px; }
  .sd-person { flex: 0 0 58px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font-size: 12px; font-weight: 700; line-height: 1.2; }
  .sd-person .sd-av { position: relative; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 800; color: var(--text); }
  .sd-person .sd-av.is-friend { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--friend); }
  .sd-person.on .sd-av::after { content: ''; position: absolute; right: -3px; bottom: -3px; width: 18px; height: 18px; border-radius: 50%;
    border: 2px solid var(--bg); background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%231d1d1d%27 stroke-width=%273.4%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27m5 12 5 5 9-10%27/%3E%3C/svg%3E") center/11px no-repeat; }
  .sd-person[disabled] { cursor: default; }
  .sd-person[disabled] .sd-av, .sd-person[disabled] .sd-name { opacity: .4; }
  .sd-why { font-size: 10.5px; font-weight: 700; color: var(--muted); }
  .sd-empty { font-size: 13px; color: var(--muted); padding: 6px 0; }
  .sd-ext { display: flex; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
  .sd-ext button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px; border-radius: 12px; background: var(--surface); font-weight: 800; font-size: 13px; }
  .sd-send { margin-top: 14px; }
  .sd-send:disabled { opacity: .45; }
  .st-sheet.open { transform: none; }
  #stBackdrop { z-index: 22; }
  #stBackdrop.open { opacity: 1; pointer-events: auto; }
  .st-sheet .sheet-head { padding-bottom: 8px; }
  .st-sheet .sheet-body { padding-bottom: 28px; }
  .st-close { width: 36px; height: 36px; margin-right: -8px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
  .st-close:active { background: var(--surface); }
  .st-sheet .st-group { border-radius: 0; overflow: visible; }
  .st-sheet .st-row { padding: 13px 0; }
  .st-sheet .st-label { margin: 18px 0 2px; }
  .st-sheet .st-note { margin: 4px 0 0; }
  .st-lead { font-size: 15px; font-weight: 600; color: var(--muted); line-height: 1.5; }
  /* Aktive Einladungslinks: Markierung, ob eine Freundschaftsanfrage dabei ist (Flieder = Freunde) */
  .st-note-top { margin: 0 4px 10px; }
  .inv-row { align-items: flex-start; }
  .inv-tag { display: inline-flex; align-items: center; gap: 3px; align-self: flex-start; margin-top: 6px; padding: 1px 8px; border-radius: 99px; background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 800; line-height: 18px; }
  .inv-tag.friend { background: var(--friend-soft); color: var(--friend); }
  .inv-revoke { flex-shrink: 0; padding: 7px 12px; border-radius: 99px; background: #FBEAE8; color: #B4352B; font-size: 13px; font-weight: 800; }
  .st-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 12px 24px 36px; }
  .st-empty .empty-icon { width: 72px; height: 72px; }
  .st-empty h3 { font-size: 17px; font-weight: 800; }
  .st-empty p { color: var(--muted); font-size: 14px; line-height: 1.5; }
  .st-why h3, .st-card h3 { font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
  .st-why h3 svg, .st-card h3 svg { color: var(--primary-ink); }
  .st-why p, .st-card p { font-size: 14px; font-weight: 600; color: var(--muted); line-height: 1.5; margin-top: 4px; }
  .st-explain { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 6px; }
  .st-toggle { display: flex; align-items: center; gap: 6px; width: 100%; padding: 10px 0; font-size: 16px; font-weight: 800; text-align: left; }
  .st-toggle > svg:first-child { color: var(--primary-ink); }
  .st-toggle > svg:last-child { margin-left: auto; color: var(--muted); transform: rotate(90deg); transition: transform .2s; }
  .st-toggle[aria-expanded="true"] > svg:last-child { transform: rotate(-90deg); }
  .st-explain-why { font-size: 14px; font-weight: 600; color: var(--muted); line-height: 1.5; }
  .st-explain .st-why { margin-top: 18px; }
  .st-see { display: flex; gap: 8px; margin: 10px 0; }
  .st-see-box { flex: 1; min-width: 0; background: var(--surface); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
  .st-see-box small { margin-top: auto; font-size: 12px; font-weight: 700; color: var(--muted); line-height: 1.35; }
  .st-see-member { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; }
  .st-see-member .avatar { width: 26px; height: 26px; font-size: 10px; }
  .st-see-dist { margin: auto 0; display: flex; align-items: center; gap: 4px; font-size: 24px; font-weight: 800; color: var(--primary-ink); }
  .st-see-map { display: block; width: 100%; height: auto; border-radius: 8px; background: #DFE7D8; }
  .st-fields { margin-top: 4px; }
  .st-fields .field { padding: 0; border: none; }
  .st-fields .field-label { font-size: 14px; }
  .st-field-row { display: flex; gap: 10px; margin-top: 12px; }
  .st-field-row .field:first-child { flex: 0 0 38%; }
  .st-field-row .field:last-child { flex: 1; min-width: 0; }
  .field.st-message { padding: 0; border: none; margin-top: 4px; }
  .st-message .text-input { min-height: 110px; }
  .st-alt { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--muted); }
  .st-alt button { display: inline-flex; align-items: center; gap: 4px; color: var(--primary-ink); font-weight: 800; }
  .st-save { margin-top: 16px; }
  /* Profil bearbeiten (R-9.11): Foto oben mittig, Vor-/Nachname nebeneinander (gleich breit), Bio mit Zähler */
  .ep-photo { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 4px 0 6px; }
  .ep-avatar { position: relative; border-radius: 50%; }
  .ep-avatar .avatar { width: 88px; height: 88px; font-size: 30px; }
  .ep-cam { position: absolute; right: -2px; bottom: -2px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
            background: #fff; color: var(--text); box-shadow: 0 0 0 1px var(--line), 0 2px 6px rgba(0,0,0,.12); }
  .ep-photo-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin-top: 10px; }
  .ep-photo-actions button { font-size: 15px; font-weight: 800; color: var(--primary-ink); padding: 4px 0; }
  .ep-photo-actions .is-muted { color: var(--muted); }
  .ep-photo-actions [hidden] { display: none; }
  .ep-photo .st-note { margin: 6px 0 0; }
  #shEditProfile .st-field-row .field { flex: 1 1 0; min-width: 0; }
  #shEditProfile .st-fields > .field { margin-top: 12px; }
  #shEditProfile textarea.text-input { resize: none; min-height: 84px; }
  .ep-count { font-size: 12px; font-weight: 700; color: var(--muted); text-align: right; margin-top: 4px; }
  #shEditProfile .st-group { margin-top: 12px; }

  /* Leerer Zustand – Platzhalter, bis Inhalte festgelegt sind */
  .empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 32px 40px 48px;
    text-align: center;
  }
  .empty-icon {
    width: 88px; height: 88px;
    border-radius: 50%;
    background: var(--primary-soft);
    display: grid; place-items: center;
    color: var(--primary-ink);
  }
  .empty p { color: var(--muted); line-height: 1.5; font-size: 15px; }

  /* FIND: Matches-Bereich */
  /* leer: neutral weiß mit dezentem Rand – klar anders als die hellgrünen Wish-Karten, aber zurückhaltend.
     (Mit echten Matches kann der Kasten später präsenter werden.) */
  .matches {
    margin: 8px 20px 0;
    padding: 14px 16px 16px;
    background: var(--bg);
    border: 1px solid #E1E6DC;
    border-radius: var(--radius);
  }
  .matches-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 10px;
  }
  .matches-head h2 { font-size: 17px; font-weight: 800; }
  .matches-count { color: var(--muted); font-weight: 700; }
  .matches { cursor: pointer; display: flex; flex-direction: column; flex-shrink: 0; }
  .matches-head { align-items: center; }
  .matches-toggle {
    width: 32px; height: 32px; margin: -6px -6px -6px 0; border-radius: 50%;
    display: grid; place-items: center; color: var(--muted);
    transition: transform .3s, background .2s;
  }
  .matches-toggle:active { background: var(--surface); }
  .matches-full[hidden] { display: none; }

  /* aufgeklappt: Kasten füllt den Platz unter "Find", der Rest des Screens tritt zurück */
  #find.matches-open { overflow: hidden; }
  #find.matches-open .segmented, #find.matches-open .find-view { display: none; }
  #find.matches-open .matches { flex: 1 1 auto; min-height: 0; margin: 8px 10px 12px; padding: 14px 12px 12px; cursor: default; overflow: hidden; }
  #find.matches-open .matches-toggle { transform: rotate(180deg); }
  #find.matches-open .matches-list, #find.matches-open .matches-empty { display: none; }
  #find.matches-open .matches-full {
    flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none;
    display: flex; flex-direction: column; gap: 22px;
    margin: 0 -12px -12px; padding: 18px 8px 16px;
  }
  .matches-full .lcard { padding: 36px 12px 14px; gap: 12px; }
  .matches-full .lc-main { gap: 12px; }
  .matches-full .lc-thumb { width: 64px; height: 64px; border-radius: 14px; }
  .matches-full .lc-thumb svg { width: 28px; height: 28px; }
  /* Platzhalter: Meilensteine / Fortschritt der Match-Phase (Gestaltung folgt) */
  .lc-progress-ph {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 10px 12px; border-radius: 12px;
    border: 1.5px dashed rgba(46,107,23,.28);
    font-size: 13px; font-weight: 800; color: #5E7F4E;
  }
  .is-dark .lc-progress-ph { border-color: rgba(242,251,236,.3); color: var(--ring-muted); }
  .lc-match-foot { display: flex; align-items: center; }
  .unmatch-btn { font-size: 13px; font-weight: 700; color: var(--muted); padding: 4px 2px; }
  .is-dark .unmatch-btn { color: var(--ring-muted); }
  .matches-full .feed-empty { flex: 1; justify-content: center; }
  /* Status statt Aktionen auf Karten in der Match-Übersicht */
  .lc-status { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #5E7F4E; }
  .is-dark .lc-status { color: var(--ring-muted); }
  .lc-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }
  .matches-empty[hidden], .matches-list[hidden] { display: none; }

  /* Match-Karten im Kasten: wischbar, nächste angeschnitten; Farbcodierung wie in Explore */
  .matches-list {
    display: flex; gap: 10px;
    margin: 0 -16px; padding: 2px 16px 2px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .mcard {
    flex: 0 0 84%;
    min-width: 0;          /* Inhalt (Namen, Avatare) darf die Karte nicht breiter machen – sonst verschwindet der Anschnitt */
    scroll-snap-align: start;
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px;
    border-radius: 16px;
  }
  .matches-list.single .mcard { flex-basis: 100%; }
  .mcard.is-light { background: var(--primary-soft); box-shadow: inset 0 0 0 1.5px var(--primary); }
  .mcard.is-dark { background: var(--ring-bg); color: var(--ring-text); }
  .mc-thumb { flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; }
  .mc-thumb.placeholder { background: #2B302A; color: #E3E9DF; }
  .mc-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .mc-body { flex: 1; min-width: 0; align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; gap: 4px; }
  .mc-title { font-size: 15px; font-weight: 800; line-height: 1.2; }
  .mc-body .lc-avatars { align-self: flex-end; }

  .mcard.is-light .av { border-color: var(--primary-soft); }
  .mcard.is-dark .av { border-color: var(--ring-bg); }

  /* Rückfrage-Dialog */
  .ask-wrap {
    position: absolute; inset: 0; z-index: 50;
    display: grid; place-items: center; padding: 24px;
    background: rgba(20,24,18,.4);
    opacity: 0; transition: opacity .2s;
  }
  .ask-wrap.show { opacity: 1; }
  .ask {
    width: 100%; max-width: 320px;
    padding: 22px 20px 16px; border-radius: 22px;
    background: var(--bg); text-align: center;
    transform: scale(.96); transition: transform .2s;
  }
  .ask-wrap.show .ask { transform: none; }
  .ask h3 { font-size: 18px; font-weight: 800; }
  .ask p { font-size: 14px; color: var(--muted); line-height: 1.45; margin-top: 6px; }
  .ask-actions { display: flex; gap: 8px; margin-top: 18px; }
  .ask-btn { flex: 1; padding: 11px 10px; border-radius: 12px; font-size: 15px; font-weight: 800; background: var(--surface); }
  .ask-btn.primary { background: var(--primary); color: var(--text); }
  .ask-btn.primary.danger { background: #FBE3E1; color: #B4352B; }

  /* kurze Rückmeldung (Toast) */
  .toast {
    position: absolute; left: 20px; right: 20px; bottom: calc(var(--tabbar-h) + 14px);
    padding: 12px 16px; border-radius: 14px;
    background: var(--text); color: #fff;
    font-size: 14px; font-weight: 700; text-align: center;
    opacity: 0; transform: translateY(8px); pointer-events: none;
    transition: opacity .25s, transform .25s;
    z-index: 40;
  }
  .toast.show { opacity: 1; transform: none; }
  /* mit Aktion ("Rückgängig"): Text links, Knopf rechts, antippbar */
  .toast.has-action { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; }
  .toast.has-action.show { pointer-events: auto; }
  .toast-action { flex-shrink: 0; padding: 4px 2px; color: var(--primary); font-size: 14px; font-weight: 800; }
  .matches-empty {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .match-icon {
    flex-shrink: 0;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--primary-soft);
    display: grid; place-items: center;
    color: var(--primary-ink);
  }
  .match-icon svg circle { fill: var(--primary-soft); }
  .matches-empty p { font-size: 14px; color: var(--muted); line-height: 1.4; }

  /* FIND: Umschalter Explore / Wishlist */
  .segmented {
    display: flex;
    margin: 20px 20px 0;
    padding: 4px;
    background: #DCE2D6;
    border-radius: 14px;
  }
  .segment {
    flex: 1;
    padding: 9px 0;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--muted);
    transition: background .2s, color .2s;
  }
  .segment.active {
    background: var(--bg);
    color: var(--text);
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
  }
  .find-view { display: none; flex: 1; flex-direction: column; }
  .find-view.active { display: flex; }

  /* EXPLORE: Such-Zeile (eingeklappt: Lupe links + Filter rechts; ausgeklappt: Suchleiste) */
  #find-explore { position: relative; }
  .search-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 4px;
    border-radius: 14px;
    transition: background .2s;
  }
  .icon-btn {
    width: 40px; height: 40px;
    border-radius: 12px;
    display: grid; place-items: center;
    flex-shrink: 0;
    position: relative;
  }
  .icon-btn:active { background: var(--line); }
  .search-input, .search-close { display: none; }
  .search-row .filter-btn { margin-left: auto; }
  .search-row.open { background: var(--bg); }
  .search-row.open .search-toggle { pointer-events: none; color: var(--muted); }
  .search-row.open .search-input {
    display: block;
    flex: 1;
    min-width: 0;
    border: none;
    background: none;
    font: inherit;
    font-size: 16px;
    color: var(--text);
    outline: none;
  }
  .search-input::-webkit-search-cancel-button { display: none; }
  .search-row.open .search-close { display: grid; width: 32px; color: var(--muted); }
  .search-row.open .filter-btn { margin-left: 0; border-left: 1px solid var(--line); border-radius: 0 12px 12px 0; }
  .badge {
    position: absolute;
    top: 4px; right: 3px;
    min-width: 17px; height: 17px;
    padding: 0 4px;
    border-radius: 9px;
    background: var(--primary);
    color: var(--text);
    font-size: 11px;
    font-weight: 800;
    display: grid; place-items: center;
  }
  .badge[hidden] { display: none; }

  /* Autofill-Vorschläge */
  .suggestions {
    position: absolute;
    top: calc(100% + 6px);
    left: 0; right: 0;
    background: var(--bg);
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(0,0,0,.14);
    padding: 6px;
    z-index: 5;
  }
  .suggestion {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 10px;
    text-align: left;
    font-size: 15px;
  }
  .suggestion:active, .suggestion:hover { background: var(--surface); }
  .suggestion small { color: var(--muted); font-size: 13px; }
  .suggestion .tag {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-ink);
    background: var(--primary-soft);
    padding: 3px 9px;
    border-radius: 99px;
  }
  .suggestion .tag.occasion { display: inline-flex; align-items: center; gap: 4px; color: var(--occasion-ink); background: var(--occasion-soft); }
  .suggestion-none { padding: 11px 12px; color: var(--muted); font-size: 14px; }

  /* "Need something for …": Anlässe als wischbare Chip-Reihe über dem Feed */
  .occasion-row { padding: 12px 0 0; }
  .occasion-row[hidden] { display: none; }
  .occasion-row h3 { font-size: 14px; font-weight: 800; color: var(--muted); padding: 0 20px; }
  .occasion-chips { display: flex; gap: 8px; overflow-x: auto; padding: 8px 20px 2px; scrollbar-width: none; }
  .occasion-chips::-webkit-scrollbar { display: none; }
  .chip.occasion { background: var(--occasion-soft); color: var(--occasion-ink); border-color: var(--occasion-line); }
  .chip.occasion svg { flex-shrink: 0; }

  /* aktive Filter-Chips */
  .active-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 20px 0;
    margin: 0 -20px;                    /* in der stehenden Leiste (.scroll-bar): wischbar bis an den Rand */
    scrollbar-width: none;
  }
  .active-chips:empty { display: none; }
  .chip {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 99px;
    font-size: 14px;
    font-weight: 700;
    background: var(--surface);
    color: var(--text);
    border: 1.5px solid transparent;
  }
  .chip.on { background: var(--primary-soft); border-color: var(--primary); }
  .chip.removable { background: var(--primary-soft); padding-right: 8px; }
  /* Kategorie-Chips im Filter: kompakt (alle 10 auf einen Blick) und grün umrandet wie das "Category"-Etikett der Suchvorschläge */
  #catOptions { gap: 6px; }
  #catOptions .chip { padding: 5px 10px; font-size: 13px; background: var(--bg); border-color: var(--category-line); color: var(--primary-ink); }
  #catOptions .chip.on { background: var(--primary-soft); border-color: var(--primary); }
  .chip.removable svg { color: var(--primary-ink); }

  /* Filter-Sheet */
  .sheet-backdrop {
    position: absolute; inset: 0;
    background: rgba(20,24,18,.35);
    opacity: 0; pointer-events: none;
    transition: opacity .25s;
    z-index: 20;
  }
  .sheet {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    max-height: 88%;
    background: var(--bg);
    border-radius: 28px 28px 0 0;
    display: flex; flex-direction: column;
    transform: translateY(100%);
    transition: transform .3s cubic-bezier(.2,.8,.2,1);
    z-index: 21;
  }
  /* nur das Filter-Sheet – die Einstellungs-Kästen (.st-sheet) öffnen sich einzeln über .open */
  .sheet-open #sheetBackdrop { opacity: 1; pointer-events: auto; }
  .sheet-open #filterSheet { transform: none; }
  .sheet-handle { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 10px auto 0; position: relative; }
  /* Griff + Kopfzeile ziehen den Kasten nach unten (bindSheetDrag); unsichtbar größere Greiffläche, weil 5 px kaum zu treffen sind */
  .sheet-handle::before { content: ''; position: absolute; inset: -14px -60px -10px; }
  .sheet-handle, .sheet-head { touch-action: none; }
  .sheet.dragging { transition: none; }
  .sheet-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 24px 4px;
  }
  .sheet-head h2 { font-size: 22px; font-weight: 800; }
  .link-btn { font-weight: 700; color: var(--primary-ink); font-size: 15px; }
  .sheet-body { overflow-y: auto; padding: 0 24px 8px; scrollbar-width: none; }
  .filter-group { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .filter-group h3 { font-size: 16px; font-weight: 800; }
  .hint { color: var(--muted); font-size: 13px; margin-top: 2px; }
  .chip-set { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
  .range { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
  .range-dash { color: var(--muted); }
  .money {
    flex: 1;
    display: flex; align-items: center; gap: 6px;
    background: var(--surface);
    border-radius: 12px;
    padding: 0 12px;
    color: var(--muted);
    font-weight: 700;
    font-size: 14px;
  }
  .money input {
    width: 100%; min-width: 0;
    border: none; background: none; outline: none;
    font: inherit; font-size: 16px; color: var(--text);
    padding: 11px 0;
    -moz-appearance: textfield;
  }
  .money input::-webkit-inner-spin-button, .money input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
  /* Doppel-Schieberegler (Gruppengröße) */
  .group-title { display: flex; align-items: baseline; justify-content: space-between; }
  .dual-value { font-weight: 800; font-size: 15px; color: var(--primary-ink); }
  /* Doppel-Regler, schlicht: dünne Spur, kleine Griffe. --thumb = Greiffläche (fingerfreundlich, 26 px),
     sichtbar ist nur ein 18-px-Kreis mit feinem grünem Ring (transparenter Rand vergrößert die Greiffläche) */
  .dual-range { position: relative; height: 28px; margin-top: 8px; --thumb: 26px; }
  .dual-range .track {
    position: absolute; left: 0; right: 0; top: 50%;
    height: 4px; margin-top: -2px;
    border-radius: 2px;
    background: var(--line);
  }
  .dual-range .fill { position: absolute; top: 0; bottom: 0; border-radius: 2px; background: var(--primary); }
  .dual-range input {
    position: absolute; inset: 0;
    width: 100%; height: 100%; margin: 0;
    background: none;
    pointer-events: none;
    -webkit-appearance: none; appearance: none;
  }
  .dual-range input::-webkit-slider-runnable-track { background: none; }
  .dual-range input::-webkit-slider-thumb {
    -webkit-appearance: none;
    pointer-events: auto;
    width: var(--thumb); height: var(--thumb);
    border-radius: 50%;
    border: 4px solid transparent;
    background: var(--bg) padding-box;
    box-shadow: inset 0 0 0 1.5px var(--primary-ink), 0 1px 3px rgba(0,0,0,.12);
    cursor: grab;
  }
  .dual-range input::-moz-range-track { background: none; }
  .dual-range input::-moz-range-thumb {
    pointer-events: auto;
    width: var(--thumb); height: var(--thumb);
    box-sizing: border-box;
    border-radius: 50%;
    border: 4px solid transparent;
    background: var(--bg) padding-box;
    box-shadow: inset 0 0 0 1.5px var(--primary-ink);
    cursor: grab;
  }  .range-ends { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; font-weight: 700; padding: 0 6px; }

  .more-toggle {
    width: 100%;
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 0;
    font-weight: 800; font-size: 16px;
  }
  .more-toggle svg { transition: transform .2s; }
  .more-toggle.open svg { transform: rotate(180deg); }
  .more .filter-group { padding-top: 0; border-bottom: none; }
  .ppp-row {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin-top: 12px;
    font-size: 14px;
  }
  .ppp-row small { color: var(--muted); font-size: 12px; }
  .ppp-row .money { flex: 0 0 132px; white-space: nowrap; }
  .sheet-foot { padding: 12px 24px 28px; border-top: 1px solid var(--line); }
  .primary-btn {
    width: 100%;
    padding: 15px;
    border-radius: 16px;
    background: var(--primary);
    color: var(--text);
    font-size: 16px;
    font-weight: 800;
  }
  .primary-btn:active { filter: brightness(.95); }

  /* Eigene Distanz ("…"-Chip) */
  .dist-custom { margin-top: 10px; }
  .dist-input {
    display: flex; align-items: center;
    background: var(--surface);
    border-radius: 12px;
    padding: 0 6px 0 14px;
  }
  .dist-input input {
    flex: 1; min-width: 0;
    border: none; background: none; outline: none;
    font: inherit; font-size: 16px; color: var(--text);
    padding: 11px 0;
  }
  .unit-toggle {
    display: flex;
    flex-shrink: 0;
    padding: 3px;
    background: var(--line);
    border-radius: 99px;
  }
  .unit-toggle button {
    min-width: 40px;
    padding: 5px 10px;
    border-radius: 99px;
    font-size: 14px;
    font-weight: 700;
    color: var(--muted);
    transition: background .2s, color .2s;
  }
  .unit-toggle button.on {
    background: var(--bg);
    color: var(--text);
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
  }
  .field-error { color: #c0392b; font-size: 13px; font-weight: 600; margin-top: 6px; }
  /* Hinweis statt Fehler (z. B. über dem fairen Höchstwert, R-1.6): ruhig, nicht rot – posten bleibt möglich */
  .field-hint { color: var(--muted); font-size: 13px; font-weight: 600; margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: var(--surface); }
  .field-hint[hidden] { display: none; }

  /* (i)-Symbol + Sprechblase für Zusatzinfos (überall gleich) */
  .info-btn {
    display: inline-grid; place-items: center;
    width: 26px; height: 26px;
    margin: -4px 0 -4px 2px;
    vertical-align: middle;
    border-radius: 50%;
    color: var(--muted);
  }
  .info-btn:active, .info-btn.on { color: var(--primary-ink); background: var(--primary-soft); }
  .info-pop {
    position: absolute;
    z-index: 30;
    max-width: 280px;
    padding: 10px 14px;
    border-radius: 14px;
    background: var(--text);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
  }
  .info-pop::before {
    content: "";
    position: absolute;
    top: -6px; left: var(--arrow-x, 20px);
    width: 12px; height: 12px;
    background: inherit;
    transform: rotate(45deg);
    border-radius: 2px;
  }
  /* zu wenig Platz unter dem Symbol (z. B. unten in einem Kasten von unten): Sprechblase darüber, Spitze unten */
  .info-pop.is-above::before { top: auto; bottom: -6px; }

  /* Unterseiten ohne Tab-Leiste (Formulare) */
  .phone.no-tabbar .tabbar { display: none; }

  /* WISHLIST */
  .list-head {
    display: flex; align-items: center; justify-content: space-between;
    margin: 0;
    padding: 4px 4px 4px 2px;
    min-height: 48px;
  }
  /* My posts: Chips Wishes / Invitations mit Anzahl; weiß, aktiv in der Farbe der Art + × */
  .kind-chips { display: flex; gap: 8px; }
  .kind-chips .chip { background: var(--bg); border-color: #D6DDD0; }
  .kind-chips .chip small { font-size: 14px; font-weight: 800; color: var(--muted); }
  .kind-empty { text-align: center; padding: 28px 16px; }
  .kind-empty p { font-size: 15px; font-weight: 600; color: var(--muted); margin-bottom: 14px; }
  .kind-chips .chip.on[data-kind="buy"] { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-ink); }
  .kind-chips .chip.on[data-kind="own"] { background: var(--invite-bg); border-color: var(--invite-bg); color: var(--invite-text); }
  .kind-chips .chip.on small { color: inherit; opacity: .8; }
  .add-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--text);
    display: grid; place-items: center;
  }
  .add-btn:active { filter: brightness(.95); }
  .wish-list { display: flex; flex-direction: column; gap: 12px; padding: 4px 20px 24px; }
  .wish-list:empty { display: none; }
  .empty h3 { font-size: 18px; font-weight: 800; }
  .empty[hidden] { display: none; }
  .primary-btn.compact { width: auto; padding: 12px 22px; margin-top: 4px; }

  .type-tag {
    display: inline-block;
    font-size: 12px; font-weight: 800;
    padding: 3px 10px;
    border-radius: 99px;
    background: var(--surface);
    color: var(--text);
  }

  /* Dialog-Kasten (Post-Formular, Detailansicht, Freunde): Hintergrund abgedunkelt.
     Oberkante so tief, dass die Kopfzeile darunter ganz sichtbar bleibt (FIND-Kopf endet bei 107 px, Profil-Knöpfe bei 96 px) –
     man sieht, wo man herkommt; unten und seitlich gleich schmaler Rand → schwebende Karte. Nicht mittig: das wäre die Rückfrage (ask). */
  .modal-backdrop {
    position: absolute; inset: 0;
    background: rgba(20,24,18,.4);
    opacity: 0; pointer-events: none;
    transition: opacity .25s;
    z-index: 15;
  }
  .modal {
    position: absolute;
    top: 112px; left: 10px; right: 10px; bottom: 10px;
    background: var(--bg);
    border-radius: 28px;
    box-shadow: 0 16px 48px rgba(0,0,0,.25);
    overflow: hidden;
    display: flex; flex-direction: column;
    opacity: 0; pointer-events: none;
    transform: translateY(24px) scale(.98);
    transition: opacity .25s, transform .3s cubic-bezier(.2,.8,.2,1);
    z-index: 16;
  }
  .modal-backdrop.open { opacity: 1; pointer-events: auto; }
  .modal.open { opacity: 1; pointer-events: auto; transform: none; }
  .modal-step { display: none; flex: 1; min-height: 0; flex-direction: column; overflow-y: auto; scrollbar-width: none; }
  .modal-step.active { display: flex; }
  .modal-step .subpage-header { padding-top: 14px; }
  /* Kopf der Post-Formulare: Farbe der Art (R-6.1), bleibt beim Scrollen oben */
  .form-head { position: sticky; top: 0; z-index: 3; padding: 14px 16px 12px 8px; gap: 6px; }
  .form-head.is-light { background: var(--primary-soft); }
  .form-head.is-dark { background: var(--ring-bg); color: var(--ring-text); }
  .form-head.is-dark .back-btn:active { background: rgba(255,255,255,.14); }
  .form-head .dt-typeline { flex: 1; min-width: 0; }
  .form-head .lc-type { font-size: 13px; padding: 3px 10px 3px 8px; }
  .form-head + .form-body { padding-top: 16px; }

  /* FEED-KARTEN (Explore; später analog Wishlist + Your matches)
     Farbe = existiert der Gegenstand schon?  hell: Buy together (Wunsch weiß, Match getönt + "Existing match"-Marke)
                                              dunkelgrün: Share what I own + Share Ring */
  /* Dunkle Töne = Gegenstand existiert schon.
     --ring-*   kräftiges Dunkelgrün: NUR eigene Share Rings (Bereich SHARE)
     --invite-* gedämpftes Salbeigrün: Invitations, bei denen ich (noch) kein Mitglied bin
                (Explore, My posts, Matches, Detailansicht) – wirkt wie ein Ring, gehört mir aber nicht */
  :root {
    --ring-bg: #2E6B17; --ring-soft: #3F8526; --ring-text: #F2FBEC; --ring-muted: #C9EBB6; --ring-line: #6DAF4F;
    --invite-bg: #527445; --invite-soft: #63865A; --invite-text: #F7FAF5; --invite-muted: #E8F0E2; --invite-line: #8BAE7C;
  }
  /* .is-dark = Invitation: setzt die Ring-Variablen auf die blassere Invitation-Palette (gilt für Element + Inhalt).
     Eigene Share Rings bekommen später .is-ring und behalten das kräftige Dunkelgrün. */
  .is-dark { --ring-bg: var(--invite-bg); --ring-soft: var(--invite-soft); --ring-text: var(--invite-text);
             --ring-muted: var(--invite-muted); --ring-line: var(--invite-line); }
  .feed { display: flex; flex-direction: column; gap: 22px; padding: 22px 20px 28px; }
  .lcard {
    position: relative;
    display: flex; flex-direction: column; gap: 14px;
    padding: 36px 16px 16px;                 /* oben Platz für das Etikett in der Ecke (.lc-corner) */
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--bg);
  }
  /* Buy together immer hellgrün; bestehende Gruppe = Marke + Rand in Primärgrün (hell und dunkel gleich) */
  .lcard.is-light { background: var(--primary-soft); border-color: #D3ECC5; }
  .lcard.is-light.has-badge { border: 1.5px solid var(--primary); }
  .lcard.is-dark { background: var(--ring-bg); border-color: var(--ring-bg); color: var(--ring-text); }
  .lcard.is-dark.has-badge { border: 1.5px solid var(--primary); }   /* bestehende Gruppe: immer Primärgrün (≈ 3:1 auf Salbeigrün, R-6.1) */
  .lc-main { display: flex; align-items: flex-start; gap: 14px; }   /* Bild oben bündig mit dem Titel */
  /* Bildfläche: eigenes Foto oder hinterlegtes Produktbild; bei Freitext ein schlichtes Icon */
  /* Etikett Wish/Invitation: klein oben links in der Kartenecke – eine Angabe zur Art der Karte, nicht zum Produkt */
  .lcard .lc-corner { position: absolute; top: 10px; left: 12px; gap: 3px; font-size: 10.5px; padding: 1px 7px 1px 5px; }
  .lc-thumb {
    flex-shrink: 0;
    width: 76px; height: 76px; border-radius: 16px;
    display: grid; place-items: center;
    background: var(--surface); color: var(--muted);
    overflow: hidden;
  }
  /* Foto-Platzhalter: dunkler Grund, helles Icon – für alle Kartenarten gleich */
  .lc-thumb.placeholder { background: #2B302A; color: #E3E9DF; }
  .lc-body { flex: 1; min-width: 0; }
  .lc-type {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 12px; font-weight: 800;
    padding: 2px 9px 2px 7px;
    border-radius: 99px;
    background: var(--surface); color: var(--muted);
  }
  .is-light .lc-type { background: var(--bg); color: var(--primary-ink); }
  .is-dark .lc-type { background: rgba(255,255,255,.14); color: var(--ring-text); }
  .lc-title {
    font-size: 21px; font-weight: 800; line-height: 1.2;   /* passt ein Wort nicht, wird der Titel kleiner (fitTitle), nie abgeschnitten */
  }
  /* Distanz und Preis als zwei klar getrennte Angaben */
  .lc-facts { display: flex; flex-direction: column; gap: 3px; margin-top: 6px; }
  .lc-fact { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 700; color: var(--muted); }
  .is-light .lc-fact { color: #4F7F3A; }
  .is-dark .lc-fact { color: var(--ring-muted); }
  .lc-count {
    flex-shrink: 0; align-self: flex-start;
    display: inline-flex; align-items: center; gap: 4px;
    margin-top: 2px;
    font-size: 18px; font-weight: 800; white-space: nowrap;
  }
  .is-dark .lc-count { color: var(--ring-text); }
  .lc-action {
    min-width: 112px;
    padding: 9px 22px;
    border-radius: 12px;
    background: var(--primary);
    color: var(--text);
    font-size: 15px; font-weight: 800;
  }
  .lc-action:active { filter: brightness(.95); }
  /* "Existing match": ragt über die obere rechte Ecke und sitzt auf dem Rand */
  .lc-badge {
    position: absolute; top: -12px; right: 16px;
    display: inline-flex; align-items: center; gap: 5px;
    padding: 2px 10px 2px 2px;
    border-radius: 99px;
    background: var(--bg);
    border: 1.5px solid var(--primary);
    font-size: 11px; font-weight: 800; color: var(--primary-ink);
  }
  .lc-badge-icon {
    width: 20px; height: 20px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--primary-soft);
  }
  /* "Existing Share Ring": gleiche Marke, dunkelgrün – Gegenstand existiert + Gruppe besteht */
  .lc-badge.ring { background: var(--ring-soft); border: 1.5px solid var(--primary); color: var(--ring-text); }
  .lc-badge.ring .lc-badge-icon { background: rgba(255,255,255,.16); color: var(--ring-text); }

  /* rechte Spalte: Mitgliederzahl auf Titelhöhe, darunter bis zu 3 Avatare (+N) */
  .lc-side {
    flex-shrink: 0; align-self: flex-start;
    display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
    padding-top: 27px;
  }
  .lc-side .lc-count { margin-top: 0; align-self: flex-end; }
  .lc-avatars { display: flex; }
  .av {
    width: 26px; height: 26px; border-radius: 50%;
    margin-left: -6px;
    display: grid; place-items: center;
    font-size: 10px; font-weight: 800; letter-spacing: .3px;
    color: var(--text);
    border: 2px solid var(--bg);
  }
  .av:first-child { margin-left: 0; }
  .is-light .av { border-color: var(--primary-soft); }
  .is-dark .av { border-color: var(--ring-bg); }
  .av.more { background: var(--surface); color: var(--muted); }
  .is-light .av.more { background: var(--bg); color: var(--primary-ink); }
  .is-dark .av.more { background: var(--ring-soft); color: var(--ring-text); }
  /* Freunde (R-9.6): nur ein Flieder-Ring um den Avatar – kein Abzeichen (ein Haken läse sich wie "bestätigt/verifiziert").
     Zusätzliche Signale: Freunde stehen vorn, "Friend"-Etikett in der Detailansicht, Vorlese-Text "Anna, friend".
     Der Rand des Avatars in Kartenfarbe bildet eine kleine Lücke, damit der Ring als Markierung erkennbar ist. */
  .av.is-friend, .av-lg.is-friend { position: relative; z-index: 1; box-shadow: 0 0 0 2.5px var(--friend); }
  .av-lg.is-friend { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4.5px var(--friend); }
  .is-dark .av.is-friend { box-shadow: 0 0 0 2.5px var(--friend-light); }
  /* "Who's in": Name zuerst lesen, Etikett kleiner auf gleicher Höhe daneben */
  .dt-name-line { display: flex; align-items: center; gap: 7px; }    /* Etikett mittig zur Namenszeile */
  .dt-friend { display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px; border-radius: 99px; background: var(--friend-soft); color: var(--friend); font-size: 11px; font-weight: 800; line-height: 16px; }

  /* Wishlist: eigene Karte → "Edit" statt "Match", als Nebenaktion */
  .lc-action.secondary { background: var(--bg); color: var(--primary-ink); box-shadow: inset 0 0 0 1.5px var(--primary); }

  /* Aktionszeile: Merken-Herz + Match, rechtsbündig */
  .lc-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
  .lc-heart {
    width: 40px; height: 40px; border-radius: 12px;
    display: grid; place-items: center;
    background: var(--bg); color: var(--primary-ink);
    transition: transform .15s;
  }
  .lc-heart:active { transform: scale(.9); }
  /* Papierflieger (Post senden, R-3.10): gleiche Form wie das Herz, links daneben; ausgegraut = gerade nicht sendbar */
  .lc-send { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--bg); color: var(--primary-ink); transition: transform .15s; }
  .lc-send:active { transform: scale(.9); }
  .lc-send.off { opacity: .4; }
  .is-dark .lc-send { background: var(--ring-soft); color: var(--ring-text); }
  .dt-foot .lc-send { background: var(--primary-soft); }
  .lc-heart.on { color: #E5484D; }
  .lc-heart.on svg { fill: currentColor; }
  .is-dark .lc-heart { background: var(--ring-soft); color: var(--ring-text); }
  .is-dark .lc-heart.on { color: #FF8A8E; }

  /* Vorschlag nach Suche/Filter: eigenen Wunsch einstellen */
  .wish-cta {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 22px 20px;
    border: 1.5px dashed #BFE3AB;
    border-radius: 22px;
    text-align: center;
  }
  .wish-cta.empty { padding: 32px 22px; background: var(--bg); border-style: solid; border-color: var(--line); }
  .wish-cta h3 { font-size: 17px; font-weight: 800; }
  .wish-cta p { font-size: 14px; color: var(--muted); line-height: 1.45; max-width: 280px; }
  .wish-cta .primary-btn { margin-top: 8px; }
  .wish-cta-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-ink); margin-bottom: 6px; }

  /* Feed leer (z. B. "Saved only" ohne gemerkte Karten) */
  .feed-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 40px 24px; text-align: center; color: var(--muted); }
  .feed-empty h3 { font-size: 17px; font-weight: 800; color: var(--text); }
  .feed-empty p { font-size: 14px; line-height: 1.4; }

  /* Filter-Chip mit Icon (z. B. "Saved only") */
  .chip-icon { display: inline-flex; align-items: center; gap: 6px; }
  /* "Saved only": weiß mit rotem Rand und roter Schrift (wie das Herz); aktiv = Herz gefüllt, Rand kräftiger */
  #fSavedOnly { background: var(--bg); border-color: #F2B8BA; color: #D13A40; }
  #fSavedOnly.on { background: var(--bg); border-color: #E5484D; box-shadow: inset 0 0 0 1px #E5484D; }
  #fSavedOnly.on svg { fill: #E5484D; stroke: #E5484D; }
  /* "With friends": wie "Saved only", in Flieder (Freunde-Farbe, R-9.6) */
  #fWithFriends { background: var(--bg); border-color: var(--friend-light); color: var(--friend); }
  #fWithFriends.on { background: var(--friend-soft); border-color: var(--friend); box-shadow: inset 0 0 0 1px var(--friend); }
  /* "Wishes only" / "Invitations only": in der Farbcodierung der Art; aktiv = grüner Rand */
  #fTypeOnly { margin-top: 8px; }
  #fTypeOnly .chip[data-type="wish"] { background: var(--primary-soft); color: var(--primary-ink); border-color: #CFEABF; }
  #fTypeOnly .chip[data-type="own"]  { background: var(--invite-bg); color: var(--invite-text); border-color: var(--invite-bg); }
  #fTypeOnly .chip.on { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
  /* Distanz-Chips: weiß mit dünnem Rand */
  #fDistOptions .chip, #wDistOptions .chip { background: var(--bg); border-color: #D6DDD0; }
  #fDistOptions .chip.on, #wDistOptions .chip.on { background: var(--primary-soft); border-color: var(--primary); }

  /* DETAILANSICHT (Kasten über dem Feed). Farbe nur im Kopfbanner, Inhalt weiß (Lesbarkeit) */
  .lcard.clickable { cursor: pointer; }
  .dt-media {
    position: relative; flex-shrink: 0;
    height: 116px;                       /* nur Icon: niedrig, Icon klein */
    display: grid; place-items: center;
    background: #2B302A; color: #E3E9DF;
  }
  .dt-media.has-photo { height: 210px; }
  .dt-media img { width: 100%; height: 100%; object-fit: cover; }
  /* Platzhalter-Zeichnung (R-8.3): feste Größe, nicht auf die Fläche gestreckt */
  .dt-media img.ph-art { width: 104px; height: 104px; object-fit: contain; }
  .mc-thumb img.ph-art { width: 40px; height: 40px; object-fit: contain; }
  .dt-close {
    position: absolute; top: 12px; left: 12px;   /* scrollt mit dem Bild weg; schließen geht auch per Tipp neben den Kasten */
    width: 38px; height: 38px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--bg); color: var(--text);
    box-shadow: 0 1px 4px rgba(0,0,0,.1);
  }
  /* Kopfbanner bleibt beim Scrollen stehen (wie der Kopf der Post-Formulare, R-1.2b); das Bild scrollt weg */
  /* klebt 13 px über der Oberkante: so verschwindet die Marke "Existing …" (ragt 13 px über das Banner)
     beim Andocken von selbst ganz nach oben weg, oben bleiben 11 px Luft – ohne Skript */
  .dt-head { position: sticky; top: -13px; z-index: 3; padding: 24px 20px 10px; }
  /* Kategorie + "Posted …": Teil des Banners, scrollt aber unter Etikett + Titel weg – das Banner wird so
     im Scrolltempo kompakter, ohne dass sich etwas in der Größe ändert (nichts wackelt) */
  .dt-meta { padding: 0 20px 16px; }
  .dt-meta.is-light { background: var(--primary-soft); }
  .dt-meta.is-dark { background: var(--ring-bg); color: var(--ring-text); }
  .dt-meta .dt-cat { margin-top: 0; }
  .dt-head.is-light { background: var(--primary-soft); }
  .dt-head.is-dark { background: var(--ring-bg); color: var(--ring-text); }
  .dt-head .lc-badge { top: -13px; }                 /* sitzt auf der Grenze Bild/Banner, rechtsbündig */
  .dt-head.has-badge.is-light { box-shadow: inset 0 1.5px 0 var(--primary); }
  .dt-head.has-badge.is-dark { box-shadow: inset 0 1.5px 0 var(--primary); }
  /* Etikett + kurze Erklärung der Art (Wish / Invitation) */
  .dt-typeline { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
  .dt-typehint { font-size: 12px; font-weight: 700; color: #5E7F4E; }
  .is-dark .dt-typehint { color: var(--ring-muted); }
  .dt-title { font-size: 24px; font-weight: 800; margin-top: 8px; line-height: 1.15; }
  .dt-cat { font-size: 15px; font-weight: 700; color: var(--muted); margin-top: 2px; }
  .dt-started { font-size: 12px; color: var(--muted); margin-top: 2px; }
  .is-light .dt-cat, .is-light .dt-started { color: #5E7F4E; }
  .is-dark .dt-cat, .is-dark .dt-started { color: var(--ring-muted); }

  /* Fotogalerie (wischbar, Punkte zeigen die Position) */
  .dt-gallery { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .dt-gallery img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
  .dt-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
  .dt-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.5); }
  .dt-dots span.on { background: #fff; }

  /* Spezifikationen als Liste (Invitation) */
  .dt-spec-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 14px; }
  .dt-spec-row + .dt-spec-row { border-top: 1px solid var(--line); }
  .dt-spec-row span:first-child { color: var(--muted); font-weight: 700; }
  .dt-spec-row span:last-child { font-weight: 700; text-align: right; }
  .dt-cond { padding: 2px 9px; border-radius: 99px; background: var(--primary-soft); color: var(--primary-ink); font-size: 12px; font-weight: 800; }

  /* Kosten (Invitation) */
  .dt-free { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--primary-soft); color: var(--primary-ink); }
  .dt-free strong { display: block; font-size: 16px; font-weight: 800; color: var(--text); }
  .dt-free small { font-size: 13px; color: var(--muted); }
  .dt-fair { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--primary-ink); }

  .dt-body { padding: 4px 20px 8px; }
  .dt-sec { padding: 18px 0; border-bottom: 1px solid var(--line); }
  .dt-sec:last-child { border-bottom: none; }
  .dt-sec h3 { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
  .dt-sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
  .dt-sec-head h3 { margin-bottom: 0; }
  .dt-sec-head span { font-size: 13px; font-weight: 700; color: var(--muted); }
  .dt-text { font-size: 15px; line-height: 1.5; }
  .dt-spec { margin-top: 8px; padding: 6px 12px; border-radius: 12px; background: var(--surface); }
  /* "Specifications" gleichrangig zu "About this …" (gleiche Überschrift, aber ohne Trennlinie davor) */
  .dt-subhead { font-size: 16px; font-weight: 800; margin-top: 18px; }
  .dt-sec h3:first-child + .dt-subhead, .dt-sec > .dt-subhead:first-child { margin-top: 0; }
  .dt-spec small { display: block; font-size: 12px; font-weight: 800; color: var(--muted); margin-bottom: 2px; }
  .dt-spec p { font-size: 14px; }

  /* Kennzahlen: antippen scrollt zum Abschnitt */
  .dt-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 18px 0; border-bottom: 1px solid var(--line); }
  .dt-fact {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 12px 6px 10px;
    border-radius: 16px;
    background: var(--primary-soft);
    color: var(--text);
  }
  .dt-fact:active { filter: brightness(.96); }
  .dt-fact-icon { color: var(--primary-ink); margin-bottom: 2px; }
  .dt-fact strong { font-size: 17px; font-weight: 800; white-space: nowrap; }
  .dt-fact small { font-size: 12px; color: #5E7F4E; font-weight: 700; }

  /* Who's in */
  .dt-member { display: flex; align-items: center; gap: 12px; padding: 7px 0; }
  .dt-member .av-lg {
    width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
    display: grid; place-items: center;
    font-size: 13px; font-weight: 800; color: var(--text);
  }
  .dt-member-name { flex: 1; min-width: 0; font-size: 16px; font-weight: 800; }
  .dt-member-name small { display: block; font-size: 12px; font-weight: 700; color: var(--primary-ink); }
  .dt-member-dist { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--muted); }
  .dt-hint { font-size: 14px; color: var(--muted); margin-top: 8px; }

  /* Distanzregel */
  .dt-rule { display: flex; align-items: center; gap: 12px; }
  .dt-rule-icon { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-ink); }
  .dt-rule strong { display: block; font-size: 16px; font-weight: 800; }
  .dt-rule small { display: block; font-size: 13px; font-weight: 700; color: var(--muted); }
  .dt-explain { font-size: 14px; color: var(--muted); line-height: 1.45; margin-top: 10px; }

  /* Kosten */
  .dt-total { display: flex; align-items: baseline; justify-content: space-between; }
  .dt-total span { font-size: 14px; font-weight: 700; color: var(--muted); }
  .dt-total strong { font-size: 18px; font-weight: 800; }
  .dt-split { margin-top: 12px; border-radius: 16px; background: var(--surface); padding: 4px 14px; }
  .dt-split-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
  .dt-split-row + .dt-split-row { border-top: 1px solid var(--line); }
  .dt-split-row span { font-size: 14px; font-weight: 700; }
  .dt-split-row small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); }
  .dt-split-row strong { font-size: 16px; font-weight: 800; white-space: nowrap; }

  .dt-foot {
    position: sticky; bottom: 0; z-index: 5;
    padding: 12px 20px 16px;
    background: var(--bg);
    border-top: 1px solid var(--line);
  }
  .dt-foot .lc-actions .lc-action { flex: 1; }
  .dt-foot .lc-heart { background: var(--primary-soft); }
  .dt-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 8px; }

  /* NEUER WUNSCH – Schritt 1 */
  .type-step { padding: 12px 20px 24px; display: flex; flex-direction: column; gap: 12px; }
  .type-step h2 { font-size: 24px; font-weight: 800; margin: 4px 4px 8px; }
  .type-card {
    display: flex; align-items: center; gap: 14px;
    width: 100%; text-align: left;
    padding: 18px 16px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
  }
  .type-card:not(:disabled):active { border-color: var(--primary); background: var(--primary-soft); }
  .type-card:disabled { opacity: .5; cursor: default; }
  .type-icon {
    flex-shrink: 0;
    width: 52px; height: 52px; border-radius: 16px;
    background: var(--primary-soft); color: var(--primary-ink);
    display: grid; place-items: center;
  }
  .type-text { flex: 1; display: flex; flex-direction: column; gap: 3px; }
  .type-text strong { font-size: 17px; font-weight: 800; }
  .type-text small { font-size: 14px; color: var(--muted); line-height: 1.35; }
  .type-card .chev { color: var(--muted); flex-shrink: 0; }
  /* Farbige Auswahlkarten in der Farbcodierung der Art (Wish hellgrün, Invitation Salbeigrün) */
  .type-card.is-wish { background: var(--primary-soft); border-color: #CFEABF; }
  .type-card.is-wish .type-icon { background: var(--bg); }
  .type-card.is-wish .type-text strong { color: #173404; }
  .type-card.is-wish .type-text small, .type-card.is-wish .chev { color: #4F7F3A; }
  .type-card.is-wish:active { border-color: var(--primary); }
  .type-card-wrap.is-invite { --type-hint-bg: #4A6A3E; border-radius: var(--radius); overflow: hidden; background: var(--invite-bg); }
  .type-card.is-invite { background: var(--invite-bg); border: none; border-radius: 0; color: var(--invite-text); }
  .type-card.is-invite .type-icon { background: var(--invite-soft); color: var(--invite-text); }
  .type-card.is-invite .type-text small, .type-card.is-invite .chev { color: var(--invite-muted); }
  .type-card.is-invite:not(:disabled):active { background: #4A6A3E; border-color: transparent; }
  /* abgesetzter Hinweis unten in der Invitation-Karte */
  .type-hint {
    display: flex; align-items: flex-start; gap: 8px;
    padding: 10px 16px 12px;
    background: var(--type-hint-bg);
    border-top: 1px solid rgba(255,255,255,.18);
    font-size: 13px; line-height: 1.45; color: var(--invite-muted);
  }
  .type-hint svg { flex-shrink: 0; margin-top: 2px; }
  .soon-tag { font-size: 12px; font-weight: 800; color: var(--muted); background: var(--surface); padding: 3px 9px; border-radius: 99px; }

  /* NEUER WUNSCH – Formular */
  .form-body { flex: 1; padding: 0 24px 16px; }
  .field { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .field:last-child { border-bottom: none; }
  .field-label { display: block; font-size: 16px; font-weight: 800; }
  .group-title .field-label { display: inline; }
  .req { color: var(--primary-ink); }
  .opt { color: var(--muted); font-weight: 600; }
  .field .hint + .chip-set, .field .hint + .dual-range { margin-top: 12px; }
  .text-input {
    display: block; width: 100%;
    margin-top: 10px;
    border: 1.5px solid transparent;
    background: var(--surface);
    border-radius: 12px;
    padding: 12px 14px;
    font: inherit; font-size: 16px; color: var(--text);
    outline: none;
    resize: none;
  }
  .text-input:focus { border-color: var(--primary); background: var(--bg); }
  .field.invalid .text-input { border-color: #c0392b; }
  .item-wrap { position: relative; }
  .auto-cat { margin-top: 8px; font-size: 14px; color: var(--muted); }
  .auto-cat .tag { font-size: 12px; font-weight: 700; color: var(--primary-ink); background: var(--primary-soft); padding: 3px 9px; border-radius: 99px; margin-left: 4px; }
  #wCatPick { margin-top: 12px; }
  #wCatPick .chip-set { margin-top: 8px; }
  /* Felder nur für eine Inseratsart (data-for="buy" | "own") */
  .field[data-for][hidden] { display: none; }
  .sub-label { display: block; font-size: 13px; font-weight: 800; color: var(--muted); margin-top: 14px; }
  .sub-label + .text-input, .sub-label + .chip-set { margin-top: 6px; }
  .year-input { max-width: 140px; }
  /* Spezifikationsfelder aus dem Katalog */
  .unit-field { display: flex; align-items: center; gap: 8px; max-width: 220px; }
  .unit-field .text-input { margin-top: 6px; }
  .unit-field span { margin-top: 6px; font-weight: 700; color: var(--muted); }
  .spec-scales { margin-top: 6px; }
  .spec-scales + .chip-set, .spec-scales + .unit-field { margin-top: 8px; }
  .spec-more-toggle { padding: 14px 0 0; font-size: 15px; color: var(--primary-ink); justify-content: flex-start; gap: 6px; }
  .spec-more-toggle[hidden], #specMore[hidden] { display: none; }

  /* Fotos */
  .photo-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
  .photo-tile {
    position: relative;
    width: 76px; height: 76px; border-radius: 14px; overflow: hidden;
    background: var(--surface);
  }
  .photo-tile img { width: 100%; height: 100%; object-fit: cover; }
  .photo-tile .photo-del {
    position: absolute; top: 4px; right: 4px;
    width: 22px; height: 22px; border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(20,24,18,.65); color: #fff;
  }
  .photo-tile.first::after {
    content: "Cover"; position: absolute; left: 4px; bottom: 4px;
    font-size: 10px; font-weight: 800; color: #fff;
    background: rgba(20,24,18,.6); padding: 1px 6px; border-radius: 99px;
  }
  .photo-add {
    width: 76px; height: 76px; border-radius: 14px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    border: 1.5px dashed #BFE3AB; color: var(--primary-ink);
    font-size: 11px; font-weight: 800;
  }

  /* Preisoptionen (Invitation) */
  .price-options { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
  .price-opt {
    display: flex; align-items: center; gap: 12px;
    width: 100%; text-align: left;
    padding: 12px 14px;
    border: 1.5px solid var(--line); border-radius: 14px;
  }
  .price-opt.on { border-color: var(--primary); background: var(--primary-soft); }
  .po-radio {
    flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%;
    border: 2px solid #B9C3B2;
  }
  .price-opt.on .po-radio { border: 6px solid var(--primary-ink); }
  .po-text strong { display: block; font-size: 15px; font-weight: 800; }
  .po-text small { font-size: 13px; color: var(--muted); }
  .po-input { padding: 4px 0 4px 34px; }            /* eingerückt: gehört sichtbar zu "Entry price" */
  .po-linked { display: flex; align-items: flex-start; gap: 6px; }
  .po-field { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
  .po-label { min-height: 50px;   /* gleiche Höhe links/rechts, damit die Felder auf einer Linie liegen */ font-size: 12px; font-weight: 700; color: var(--muted); line-height: 1.3; }
  .po-label strong { display: block; font-size: 13px; font-weight: 800; color: var(--text); }
  .po-field .money { flex: none; }
  .po-link { flex-shrink: 0; margin-top: 64px; color: var(--muted); }

  .form-section { font-size: 13px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); padding: 24px 0 0; }
  /* Löschen beim Bearbeiten (R-1.9): unter "Speichern", weiß mit roter Schrift wie "Konto löschen" – nicht gefüllt,
     damit es nicht mit dem grünen Knopf konkurriert */
  .form-delete { width: 100%; margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 8px;
                 padding: 12px; border-radius: 14px; border: 1.5px solid #F1CFCB; background: var(--bg); color: #B4352B; font-weight: 800; font-size: 15px; }
  .form-delete[hidden] { display: none; }
  .form-delete:active { background: #FBE3E1; }
  .form-foot {
    position: sticky; bottom: 0;
    z-index: 5; /* über den Reglern */
    padding: 12px 24px 28px;
    background: var(--bg);
    border-top: 1px solid var(--line);
  }

  /* Tab-Leiste */
  .tabbar {
    height: var(--tabbar-h);
    flex-shrink: 0;
    display: flex;
    border-top: 1px solid var(--line);
    background: var(--bg);
    padding: 8px 24px 22px;
  }
  .tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.2px;
  }
  .tab-icon {
    width: 64px; height: 32px;
    border-radius: 16px;
    display: grid; place-items: center;
    transition: background .2s;
  }
  .tab.active { color: var(--text); }
  .tab.active .tab-icon { background: var(--primary); color: var(--text); }

  /* ================= SHARE – Übersicht meiner Share Rings (R-9c.4, Variante A vom 31.10.2026) =================
     Gerüst wie die Karten in FIND (Bild links, Titel, Angaben, Fußzeile) – damit man sich sofort zurechtfindet; den
     Unterschied machen Inhalt und Farbe: nur eigene Share Rings sind kräftig dunkelgrün (--ring-bg, R-6.1), Ort und
     Status als Chips statt Distanz/Preis, Übergabe + Chat statt Herz + Matchen. Weiß heißt "betrifft mich":
     weißer Rahmen und weißer Ort-Chip, wenn der Gegenstand bei mir ist; weißes Saldo. Gefüllter Knopf = jetzt handeln
     (Übergeben, Abholen), umrandet = planen (Reservieren). */
  /* Überblickszeile unter "Teilen": "Was betrifft mich gerade?" – Pillen Gesamtsaldo + meine Reservierungen (später auch "Was steht an") */
  .sr-overview { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px; }
  /* Scan-Symbol links neben dem "+" (R-9c.7): beides Aktionen zu meinen Share Rings; die Überblickszeile bleibt für das, was mich betrifft */
  .sr-scan { margin-left: auto; margin-right: 8px; flex-shrink: 0; }
  .no-itemTags .needs-itemTags { display: none !important; }
  .sr-overview[hidden] { display: none; }
  .sr-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px 7px 11px; border-radius: 99px;
              background: var(--bg); color: var(--text); font-size: 15px; font-weight: 800; border: 1.5px solid #D6DDD0; }
  .sr-pill svg { color: var(--primary-ink); }
  .sr-pill:active { filter: brightness(.96); }
  /* Schulden: Schrift dezent rot – bei Geld gängig (Banking), heißt "du bist mit Zahlen dran", nicht "Fehler"; Minuszeichen bzw.
     "Du schuldest" bleiben das zweite Signal. Gilt oben und auf den Karten (Jakob 31.10.2026) */
  .sr-pill.is-owe span, .sr-balance.is-owe { color: #B3261E; }
  /* Überschrift + "+" scrollen mit weg (R-3.9: stehen bleibt nur Lupe + Schnellfilter) */
  .sr-head { margin: 14px 20px 0; }
  .sr-heading { font-size: 20px; font-weight: 800; color: var(--text); }
  /* Stehende Zeile: Lupe links, Chips daneben (seitlich wischbar); beim Suchen nimmt die Suchleiste die ganze Breite,
     die Chips rutschen in die Zeile darunter – wie in FIND */
  .sr-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 4px; }
  .sr-bar .search-row { flex-shrink: 0; padding: 0; }
  .sr-bar.searching .search-row { padding: 4px; }
  .sr-bar.searching .search-row { flex: 1 1 100%; }
  /* passt nicht alles (z. B. Englisch), ist die Reihe bis an den Bildschirmrand wischbar – wie die Anlass-Reihe in Explore */
  .sr-kinds { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; padding: 2px 20px 2px 0; margin-right: -20px; }
  .sr-kinds::-webkit-scrollbar { display: none; }
  .sr-bar.searching .sr-kinds { flex-basis: 100%; }
  .sr-kinds .chip { padding: 5px 10px; font-size: 13.5px; gap: 5px; }
  .sr-kinds .chip small { font-size: 13.5px; }
  /* Jeder Chip in der Farbe dessen, was er filtert (Jakob 01.11.2026): "Bei mir" weiß mit Mini-Avatar (wie der Ort-Chip "Bei dir"),
     "Verfügbar" grün (wie der Status-Chip), "Offene Einladung" salbeigrün mit Paket (wie die Marke). Aktiv = kräftiger dunkelgrüner
     Rand + × – die Farbe bleibt, damit man weiterhin sieht, wonach gefiltert wird (wie "Wishes/Invitations only" in Explore, R-3.4) */
  .sr-kinds .chip.is-atMe { background: var(--bg); color: var(--text); padding-left: 4px; }
  .sr-kinds .chip.is-free { background: var(--primary); border-color: var(--primary); color: #173404; }
  .sr-kinds .chip.is-free small { color: #173404; opacity: .75; }
  .sr-kinds .chip.is-open { background: var(--invite-bg); border-color: var(--invite-bg); color: var(--invite-text); padding-left: 8px; }
  .sr-kinds .chip.is-open small { color: var(--invite-text); opacity: .8; }
  .sr-kinds .chip.on { border-color: var(--ring-bg); box-shadow: 0 0 0 1px var(--ring-bg); padding-right: 8px; }
  .sr-kinds .chip.is-open.on { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
  .sr-filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 8px 4px 2px; }
  .sr-filter-row[hidden] { display: none; }
  .sr-results { font-size: 14px; font-weight: 700; color: var(--muted); }
  .sr-nomatch { text-align: center; padding: 36px 24px; }
  .sr-nomatch[hidden] { display: none; }
  .sr-nomatch p { font-size: 15px; font-weight: 600; color: var(--muted); margin-bottom: 14px; }
  .sr-list { display: flex; flex-direction: column; gap: 22px; padding: 22px 20px 28px; }
  .sr-list:empty { display: none; }
  .sr-card {
    position: relative;
    display: flex; flex-direction: column; gap: 12px;
    padding: 16px 14px 14px;
    border-radius: 22px;
    background: var(--ring-bg); color: var(--ring-text);
    border: 2px solid var(--ring-bg);
    cursor: pointer;
  }
  .sr-card.is-with-me { border-color: var(--ring-text); }
  /* "Open invitation" = der Share Ring sucht neue Mitglieder und steht in FIND als Invitation → Marke in Invitation-Salbeigrün */
  .lc-badge.sr-invite { background: var(--invite-bg); border-color: var(--primary); color: var(--invite-text); }
  .lc-badge.sr-invite .lc-badge-icon { background: rgba(255,255,255,.16); color: var(--invite-text); }
  .sr-main { display: flex; align-items: flex-start; gap: 13px; }
  /* Bild so hoch wie Titel + Ort + Status (87 px), damit es unten mit dem Status-Chip abschließt (Jakob 31.10.2026); fest, damit alle
     Karten gleich aussehen – steht der Gegenstand unter einem eigenen Gruppennamen, wird das Bild nicht noch größer */
  .sr-main .lc-thumb { width: 87px; height: 87px; border-radius: 17px; }
  .sr-main .lc-thumb img.ph-art { width: 74px; height: 74px; object-fit: contain; }
  .sr-body { flex: 1; min-width: 0; }
  .sr-title { font-size: 18px; font-weight: 800; line-height: 1.2; }
  .sr-item { margin-top: 1px; font-size: 13px; font-weight: 600; color: var(--ring-muted); }
  /* Ort und Status immer in zwei Zeilen. Status: gebraucht = Bernstein, frei = Grün – die Bedeutung trägt der Text ("dran bis" /
     "in 2 Tagen dran" / "Frei"), die Farbe kommt dazu (WCAG 1.4.1; ein Punkt im Chip war eher verwirrend, Jakob 31.10.2026).
     Bernstein aus der warmen Farbfamilie der Anlässe */
  .sr-chips { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 9px; }
  .sr-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 10px 3px 4px; border-radius: 99px;
    font-size: 13px; font-weight: 800; line-height: 1.3;
  }
  .sr-chip.sr-loc { background: rgba(255,255,255,.14); color: var(--ring-text); }
  /* weiße Elemente auf der Karte ("Bei dir", Saldo) mit schwarzer Schrift – wie die Gesamtsaldo-Pille oben; Geld: Schwarz = normal,
     Rot = Schulden; Grün bleibt für "Verfügbar" und die Aktionsknöpfe (Jakob 31.10.2026) */
  .sr-chip.sr-loc.is-me { background: var(--ring-text); color: var(--text); }
  .sr-chip.is-use { background: #F5B94A; color: #412402; padding-left: 10px; }
  .sr-chip.is-free { background: var(--primary); color: #173404; padding-left: 10px; }
  /* Haken = ich kann ihn nutzen, Uhr = gerade belegt (Symbol vorn im Status-Chip, R-9c.4); kommende Reservierung nur als leiser
     Zusatz daneben – Verfügbarkeit statt Knappheit (R-6.6) */
  .sr-chip.is-free, .sr-chip.is-use { padding-left: 7px; gap: 5px; }
  .sr-status-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
  .sr-hint { font-size: 12.5px; font-weight: 700; color: var(--ring-muted); }
  /* Antippbare Teile der Karte (Ort, Status, Saldo, Chat, Knopf): unsichtbar größere Antippfläche, ohne größer auszusehen */
  .sr-tap { position: relative; }
  .sr-tap::after { content: ""; position: absolute; inset: -7px -6px; }
  .av.sr-mini { width: 20px; height: 20px; margin: 0; border: none; font-size: 8.5px; letter-spacing: 0; }
  .sr-store { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; background: rgba(255,255,255,.18); }
  /* Mitglieder: Avatare + Vornamen (bis 4, darüber "+N") – Menschen im Vordergrund */
  .sr-members { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ring-muted); }
  .sr-avatars { display: flex; flex-shrink: 0; }
  .sr-avatars .av { width: 24px; height: 24px; font-size: 9.5px; border-color: var(--ring-bg); }
  .sr-avatars .av.more { background: var(--ring-soft); color: var(--ring-text); }
  .sr-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .sr-balance { padding: 4px 10px; border-radius: 99px; background: var(--ring-text); color: var(--text); font-size: 12.5px; font-weight: 800; white-space: nowrap; }
  .sr-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
  .sr-chat { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.14); color: var(--ring-text); }
  .sr-btn { min-width: 112px; padding: 9px 18px; border-radius: 12px; background: var(--primary); color: var(--text); font-size: 14px; font-weight: 800; }
  .sr-btn.is-plan { background: transparent; box-shadow: inset 0 0 0 1.5px var(--primary); color: var(--ring-text); }
  .sr-chat:active, .sr-btn:active { filter: brightness(.95); }

  /* ================= SHARE RING – Detailseite (R-9c.6) =================
     Bild scrollt weg · grüner Kopf (Zurück, Name, Chat) bleibt stehen · Rahmendaten im Grün scrollen unter dem Namen weg
     (wie Kategorie/„Posted“ in der Explore-Detailansicht, R-1.2b) · darunter weiße Kästen auf dem Seitengrün. */
  .rd { min-height: 100%; padding-bottom: 18px; }
  .rd-media { height: 170px; display: grid; place-items: center; background: var(--surface); overflow: hidden; }
  .rd-media.placeholder { background: #2B302A; color: #E3E9DF; }
  .rd-media img.ph-art { width: 124px; height: 124px; object-fit: contain; }
  .rd-photo { width: 100%; height: 100%; object-fit: cover; }
  /* Zurück: runder weißer Knopf in der Bildecke wie beim Schließen der Detailansicht (.dt-close); bleibt beim Scrollen stehen und sitzt
     dann links im grünen Kopf – gut auffindbar. Der Name steht linksbündig und rückt erst nach rechts, wenn der Knopf im Kopf
     ankommt (.is-docked, Jakob 02.11.2026) */
  .rd-float { position: sticky; top: 0; height: 0; z-index: 7; }
  .rd-back { position: absolute; top: 11px; left: 12px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
             background: var(--bg); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.18); }
  .rd-back:active { filter: brightness(.94); }
  .rd-head { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 6px; padding: 10px 12px 10px 16px;
             background: var(--ring-bg); color: var(--ring-text); transition: padding-left .15s ease; }
  .rd-head.is-docked { padding-left: 60px; }
  .rd-head h1 { flex: 1; min-width: 0; font-size: 20px; font-weight: 800; line-height: 1.2; }
  .rd-chat { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.14); color: var(--ring-text); flex-shrink: 0; }
  .rd-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 2px 14px 14px; background: var(--ring-bg); }
  .rd-open { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 10px 12px; border-radius: 14px; text-align: left;
             background: rgba(255,255,255,.12); color: var(--ring-text); font-size: 14px; font-weight: 800; }
  .rd-open small { font-size: 12.5px; font-weight: 700; color: var(--ring-muted); }
  .rd-avs { display: flex; }
  .rd-avs .av { width: 22px; height: 22px; font-size: 8.5px; border-color: #45793A; }
  .rd-avs .av.more { background: var(--ring-soft); color: var(--ring-text); }
  .rd-body { display: flex; flex-direction: column; gap: 12px; padding: 14px 14px 0; }
  .rd-card { padding: 14px; border-radius: 20px; background: var(--bg); }
  .rd-card h2 { font-size: 16px; font-weight: 800; }
  /* Nutzung: links Verlauf · Mitte Jetzt · rechts Kalender (ohne Reservieren nur Verlauf + Jetzt); Wischen per Scroll-Snap,
     eigener Scroll-Bereich → die Randgeste "zurück" der Seite (R-7.1c) greift hier nicht */
  .rd-panes { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -14px; touch-action: pan-x pan-y; }
  .rd-panes::-webkit-scrollbar { display: none; }
  .rd-pane { flex: 0 0 100%; scroll-snap-align: center; padding: 0 14px; min-height: 150px; }
  .rd-now { display: flex; flex-direction: column; align-items: center; padding-top: 12px; }
  .rd-loc { display: flex; align-items: center; justify-content: center; gap: 9px; font-size: 20px; font-weight: 800; color: var(--text); }
  .rd-loc .av { width: 30px; height: 30px; margin: 0; border: none; font-size: 11px; }
  .rd-store { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--surface); color: var(--primary-ink); }
  .rd-status { margin-top: 9px; padding: 4px 12px 4px 9px; font-size: 13.5px; }
  .rd-hint { margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
  .rd-btns { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
  /* groß = der Knopf, der auch auf der Karte steht (gefüllt = jetzt handeln, umrandet = planen); klein + umrandet = der andere */
  .rd-btn { min-width: 150px; padding: 11px 22px; border-radius: 13px; background: var(--primary); color: var(--text); font-size: 15px; font-weight: 800; }
  .rd-btn.is-plan { background: transparent; box-shadow: inset 0 0 0 1.5px var(--primary); color: var(--primary-ink); }
  .rd-btn-sm { padding: 7px 14px; border-radius: 11px; box-shadow: inset 0 0 0 1.5px var(--primary); color: var(--primary-ink); font-size: 13px; font-weight: 800; }
  .rd-btn-sm.is-act { background: var(--primary); box-shadow: none; color: var(--text); }   /* klein, aber gefüllt = jetzt handeln (Jakob 01.11.2026) */
  .rd-btn:active, .rd-btn-sm:active { filter: brightness(.95); }
  .rd-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; font-size: 13px; font-weight: 800; color: var(--primary-ink); }
  .rd-nav button, .rd-nav span:empty { min-width: 70px; }
  .rd-nav button:last-child { text-align: right; }
  .rd-dots { display: flex; gap: 6px; }
  .rd-dots i { width: 7px; height: 7px; border-radius: 50%; background: #D6DDD0; }
  .rd-dots i.on { background: var(--primary-ink); }
  /* Kosten | Aufgaben nebeneinander (Beiträge in Geld und in Einsatz); nur eins an → ganze Breite */
  .rd-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .rd-tiles.is-single { grid-template-columns: 1fr; }
  .rd-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 13px; border-radius: 18px; background: var(--bg); text-align: left; }
  .rd-tile h3 { font-size: 13px; font-weight: 800; color: var(--muted); }
  .rd-tile p { font-size: 18px; font-weight: 800; color: var(--text); }
  .rd-tile p.is-owe { color: #B3261E; }
  .rd-tile p.rd-tile-soon { font-size: 14px; line-height: 1.3; }
  .rd-tile small { font-size: 12.5px; font-weight: 700; color: var(--muted); }
  /* "Share Ring verwalten" als schlanke Kachel: Überschrift, darunter grau untereinander, was dort passiert – keine einzelnen Links,
     die ganze Kachel ist ein Ziel (selten gebraucht, soll nicht mit Nutzung und Kosten konkurrieren; Jakob 02.11.2026) */
  .rd-manage { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; padding: 11px 14px 12px; border-radius: 18px;
               background: var(--bg); text-align: left; font-size: 13px; font-weight: 700; line-height: 1.35; color: var(--muted); }
  .rd-manage-h { margin-bottom: 2px; font-size: 16px; font-weight: 800; color: var(--text); }
  /* Nutzung auf der Kachel: links "Vorher" (letzter Aufenthalt), rechts "Danach" (nächste 3 Bedarfe) – ganze Seite antippbar → Nutzungskasten */
  .ru-pane { display: flex; flex-direction: column; justify-content: flex-start; width: 100%; min-height: 150px; padding-top: 10px; text-align: left; }
  .ru-pane[role="button"] { cursor: pointer; }
  /* "Bedarf eintragen" rechts neben "Als Nächstes dran" (statt unten hineingequetscht, Jakob 09.11.2026) */
  .ru-pane-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .ru-pane-top .ru-pane-h { margin-bottom: 0; }
  .ru-pane-btn { flex-shrink: 0; padding: 8px 15px; font-size: 13.5px; }
  .ru-pane-h { font-size: 13px; font-weight: 800; color: var(--muted); margin-bottom: 2px; }
  .ru-tap { cursor: pointer; }   /* ganze Kachel → Nutzungskasten; Knöpfe und Status-Chip haben eigene Ziele */

  /* ================= SHARE RING – Kasten eines Bereichs (R-9c.6, gemeinsamer Baustein js/76-ring-detail.js) =================
     Für ALLE Bereiche der Detailseite gleich: Kasten auf dem Seitengrün, Kopf bleibt stehen (Zurück · Bereich + Share Ring ·
     optional Symbol oben rechts), Abschnitte .rb-sec weiß mit Überschrift in Großbuchstaben (Jakob 02.11.2026). */
  .rb { background: var(--page); }
  .rb-head { position: sticky; top: 0; z-index: 3; background: var(--page); padding-bottom: 10px; border-bottom: 1px solid rgba(29,35,24,.14); }
  .rb-head h1 { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
  .rb-head h1 small { font-size: 13px; font-weight: 700; color: var(--muted); }
  .rb-thumb { display: flex; flex-shrink: 0; }
  .rb-action { flex-shrink: 0; color: var(--primary-ink); }   /* weißer Kreis wie Chat und Glocke (.chat-btn) */
  .rb-action[hidden] { display: none; }
  .rb-content { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px 20px; }
  .rb-sec { padding: 12px 14px; border-radius: 20px; background: var(--bg); }
  /* Abschnitts-Überschriften (z. B. VORHER · JETZT · DANACH) in Großbuchstaben wie die Tab-Leiste (FINDEN / TEILEN): Wegweiser, die nicht mit den Namen konkurrieren */
  .rb-sec h2, .ru-now h2 { font-size: 13px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--primary-ink); margin-bottom: 4px; }
  /* ---- Nutzungskasten (js/77-ring-use.js): senkrecht Vorher · Jetzt · Danach; Jetzt als dunkelgrüner Block wie die Karte (eigener
     Share Ring, R-6.1) – eingebettet zwischen Vorher und Danach. Jeder Knopf bei seiner Zeit; Listen statt Kalender (Jakob 01.11.2026) ---- */
  /* Abstufung statt neuer Farben: Vorher ohne Kasten und gedämpft (die Vergangenheit verblasst), Jetzt dunkelgrün, Danach weiß (hier wird geplant) */
  .rb-sec.ru-past { background: transparent; padding: 4px 14px 0; }
  .ru-past .ru-row { color: var(--muted); }
  .ru-list { list-style: none; margin: 0; padding: 0; position: relative; }
  /* feine senkrechte Linie durch die Avatare – nur im Vorher (lückenlose Dokumentation, wo er war); im Danach bewusst nicht,
     sonst wirkte es, als gäbe es zwischen den Bedarfen keine Lücke – Knappheit (R-6.6, Jakob 01.11.2026) */
  .ru-past .ru-list::before { content: ""; position: absolute; left: 12px; top: 20px; bottom: 20px; width: 2px; border-radius: 1px; background: #CFD8C8; }
  .ru-row > .av, .ru-row > .ru-store { position: relative; z-index: 1; }
  .ru-row { display: flex; align-items: center; gap: 9px; padding: 7px 0; font-size: 14.5px; font-weight: 700; color: var(--text); }
  .rb-sec:not(.ru-past) .ru-row + .ru-row { border-top: 1px solid var(--line); }
  .ru-row .av { width: 26px; height: 26px; margin: 0; border: none; font-size: 10px; flex-shrink: 0; }
  .ru-store { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--surface); color: var(--primary-ink); flex-shrink: 0; }
  .ru-empty { padding: 8px 0; font-size: 14px; font-weight: 700; color: var(--muted); }
  /* Aufklappen wie bei den Freundschaftsanfragen (.fr-toggle); im Vorher oben mit Pfeil nach oben (die Liste wächst nach oben) */
  .ru-toggle { margin-top: 4px; }
  .ru-toggle.is-up svg { transform: rotate(180deg); }
  .ru-past .ru-toggle { margin: 0 0 4px; border-top: none; border-bottom: 1px solid rgba(29,35,24,.14); }
  /* "+ Übergabe nachtragen" bewusst unauffällig: selten gebraucht, soll kein Aufrechnen fördern (Jakob 01.11.2026) */
  .ru-add { display: block; margin-top: 4px; padding: 4px 0; font-size: 12.5px; font-weight: 700; color: var(--muted); }
  /* Lager-Zeilen leise (schließen Lücken, überdecken die Personen nicht); "nachgetragen von …" klein darunter */
  .ru-row.is-storage { padding: 4px 0; font-size: 12.5px; color: var(--muted); }
  .ru-row.is-storage .ru-store { width: 22px; height: 22px; margin: 0 2px; }
  .ru-row > span { min-width: 0; }
  .ru-by { display: block; font-size: 11.5px; font-weight: 700; color: var(--muted); }

  /* ================= Nachtragen, wo er war (R-9c.6, js/77-ring-use.js) =================
     Kasten von unten wie die Übergabe: Satz mittig (+ Zeitraum per Datumsfeldern – Übergangslösung bis zum Kalender; "bis" mit der
     Vorgabe "jetzt"), darunter die Vorschau der letzten Stationen: grün neu, Bernstein was sich ändert. */
  #lateBackdrop.open { opacity: 1; pointer-events: auto; }
  .late .ho-mid { margin: 4px 0 10px; }
  .late-preview { width: 100%; margin-top: 18px; text-align: left; }
  .late-preview h2 { font-size: 13px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--primary-ink); margin-bottom: 4px; }
  .late-more { margin: 0 0 4px; border-top: none; border-bottom: 1px solid var(--line); }
  .ru-row.is-new { margin: 2px -8px; padding: 7px 8px; border-radius: 12px; background: var(--primary-soft); box-shadow: inset 0 0 0 1.5px var(--primary); }
  /* geändert: kein Einfärben – nur das betroffene Datum durchgestrichen, das neue grün daneben (Jakob 09.11.2026) */
  .ru-row.is-chg s { color: var(--muted); }
  .ru-row.is-chg ins { text-decoration: none; color: var(--primary-ink); font-weight: 800; }
  .late-pick { position: relative; display: flex; flex-direction: column; align-items: center; width: 100%; }
  /* nach der ersten Wahl legt sich die Auswahlliste über den Rest, statt den Kasten höher zu machen */
  .ho-list.is-over { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 6; margin: 0; max-height: 260px; overflow-y: auto;
                     background: var(--bg); box-shadow: 0 10px 28px rgba(0,0,0,.18); }
  /* Tipp neben die übergelegte Liste schließt sie wieder (die bisherige Wahl bleibt); fixed = über dem ganzen Kasten (er ist verschoben) */
  .late-scrim { position: fixed; inset: 0; z-index: 5; }
  .late-pick:has(.is-over) { z-index: 6; }
  .late-more.is-down { margin: 4px 0 0; border-top: 1px solid var(--line); border-bottom: none; }
  .ru-row.is-gone { margin: 2px -8px; padding: 7px 8px; border-radius: 12px; background: var(--occasion-soft); color: var(--occasion-ink); }
  .ru-row.is-gone > span { text-decoration: line-through; }
  .ru-mark { margin-left: auto; padding-left: 8px; flex-shrink: 0; font-style: normal; font-size: 11.5px; font-weight: 800; }
  .late-list .ru-row + .ru-row { border-top: 1px solid var(--line); }
  .late-list .ru-row.is-new, .late-list .ru-row.is-gone,
  .late-list .ru-row.is-new + .ru-row, .late-list .ru-row.is-gone + .ru-row { border-top: none; }
  /* Link im Übergabe-Kasten: leise unter dem oberen Chip ("Nicht bei Anna? Nachtragen") */
  .ho-late { margin-top: 6px; padding: 2px 6px; font-size: 12px; font-weight: 700; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
  .rb-sec .rd-btn { display: block; width: 100%; margin-top: 10px; }
  .ru-now { display: flex; flex-direction: column; align-items: center; padding: 12px 14px 14px; border-radius: 20px; background: var(--ring-bg); color: var(--ring-text); }
  .ru-now h2 { align-self: flex-start; color: var(--ring-muted); }
  .ru-loc { display: flex; align-items: center; justify-content: center; gap: 9px; font-size: 20px; font-weight: 800; color: var(--ring-text); }
  .ru-loc .av { width: 30px; height: 30px; margin: 0; border: none; font-size: 11px; }
  .ru-loc .rd-store { background: rgba(255,255,255,.18); color: var(--ring-text); }
  /* Chat-Symbol neben "Bei Anna" (Kachel + Nutzungskasten) – nur das Symbol führt zum Direktchat (Jakob 09.11.2026) */
  /* ohne Kreis – ein Kreis würde mit dem Avatar konkurrieren; das Symbol steht dicht am Namen (Jakob 09.11.2026) */
  .loc-chat { position: relative; display: grid; place-items: center; margin-left: -3px; flex-shrink: 0; color: var(--text); }
  .loc-chat::after { content: ""; position: absolute; inset: -12px; }   /* unsichtbar größere Antippfläche */
  .ru-loc .loc-chat { color: var(--ring-text); }
  .ru-now .rd-hint { color: var(--ring-muted); }
  .ru-now .rd-btn { margin-top: 14px; }

  /* ================= SHARE RING – Übergabe-Kasten (R-9c.4, js/77-ring-use.js) =================
     Kasten von unten, ein Satz mittig in drei Zeilen: Chip (wer gibt, fest) · Text · Chip (wer bekommt; hellgrün umrandet = änderbar,
     weiß umrandet = "Auswählen"). Darunter ggf. die Auswahlliste, der leise Hinweis, "Übergabe mit … abmachen" (umrandet = planen)
     und der gefüllte Hauptknopf (jetzt handeln). Kein Kopf (Jakob 09.11.2026). */
  #hoBackdrop.open { opacity: 1; pointer-events: auto; }
  .ho-sheet.open { transform: none; }
  .ho { display: flex; flex-direction: column; align-items: center; padding: 12px 20px 24px; text-align: center; }
  /* kleine graue Zeile oben = Wort des gedrückten Knopfs (Zusammenhang Knopf ↔ Kasten, Jakob 09.11.2026) */
  .ho-entry { margin-bottom: 12px; font-size: 13px; font-weight: 800; color: var(--muted); }
  .ho-chip { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 4px 13px 4px 4px; border-radius: 99px;
             background: var(--surface); font-size: 16px; font-weight: 800; color: var(--text); }
  .ho-chip .av { width: 30px; height: 30px; margin: 0; border: none; font-size: 11px; flex-shrink: 0; }
  .ho-chip.is-edit { background: var(--primary-soft); box-shadow: inset 0 0 0 1.5px var(--primary); }
  .ho-chip.is-pick { background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--primary); color: var(--primary-ink); padding-left: 14px; }
  .ho-chip svg { flex-shrink: 0; }
  .ho-store { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: #E1E7DC; color: var(--primary-ink); flex-shrink: 0; }
  .ho-mid { margin: 10px 0; font-size: 17px; font-weight: 700; line-height: 1.35; color: var(--text); }
  .ho-list { list-style: none; margin: 10px 0 0; padding: 0; width: 100%; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-align: left; }
  .ho-list li + li { border-top: 1px solid var(--line); }
  .ho-list button { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 12px; font-size: 14.5px; font-weight: 700; color: var(--text); }
  .ho-list button.on { background: var(--primary-soft); }
  .ho-list .av, .ho-list .ho-store { width: 26px; height: 26px; margin: 0; border: none; font-size: 10px; }
  .ho-list small { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--muted); }
  .ho-hint { margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--muted); }
  .ho-btns { display: flex; flex-direction: column; gap: 10px; width: 100%; margin-top: 18px; }
  .ho-btns .rd-btn { width: 100%; }
  .ho-chat { display: flex; align-items: center; justify-content: center; gap: 7px; }
  .rd-btn:disabled { background: var(--surface); color: var(--muted); cursor: default; }

  /* ================= Bedarf eintragen / ändern (R-9c.4, js/77-ring-use.js) =================
     Kasten von unten: Kalender gleich sichtbar, belegte Tage leise in Bernstein (ohne Namen), halb belegte halb, eigene hellgrün,
     Auswahl im Primärgrün (Anfang/Ende abgerundet wie ein Balken); darunter Vorschläge als Chips, Satz, Uhrzeit, Status-Chip
     wie auf der Karte (Jakob 09.11.2026). */
  #bookBackdrop.open { opacity: 1; pointer-events: auto; }
  .book { align-items: stretch; }
  .book .ho-entry { text-align: center; margin-bottom: 6px; }
  /* Markierungen des Bedarfs im gemeinsamen Kalender: belegt (Bernstein), halb belegt (schräg halb, egal wann am Tag), eigener Bedarf
     grün umrandet statt Fläche (Form + Farbe, Jakob 09.11.2026) */
  .cal-day.is-full { background: #FBE7C2; color: #7A4E0E; }
  .cal-day.is-part { background: linear-gradient(135deg, #FBE7C2 50%, transparent 50%); color: #7A4E0E; }
  /* eigener Bedarf: hellgrüne Fläche + kleiner Punkt unter der Zahl – OHNE Rand, denn hellgrün mit Rand heißt im Share-Ring-
     Kalender "gewählter Tag" (Jakob 11.11.2026); Punkt = Form, nicht nur Farbe */
  .cal-day.is-mine { position: relative; background: var(--primary-soft); color: var(--primary-ink); font-weight: 900; }
  .cal-day.is-mine::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--primary-ink); }
  .bk-legend { display: flex; justify-content: center; gap: 14px; margin-top: 8px; font-size: 12px; font-weight: 700; color: var(--muted); }
  .bk-legend i { display: inline-block; width: 11px; height: 11px; margin-right: 5px; border-radius: 3px; vertical-align: -1px; }
  .bk-legend i.is-full { background: #FBE7C2; }
  .bk-legend i.is-mine { position: relative; background: var(--primary-soft); }
  .bk-legend i.is-mine::after { content: ""; position: absolute; left: 3.5px; bottom: 1.5px; width: 4px; height: 4px; border-radius: 50%; background: var(--primary-ink); }
  /* Schnellwahl oben unter der grauen Zeile, vor dem Kalender (Jakob 09.11.2026) */
  .bk-chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
  /* Zusammenfassung (Bedarf, Nachtragen): abgesetzt mit feiner Linie und Abstand (Jakob 09.11.2026) */
  .bk-sum { display: flex; flex-direction: column; margin-top: 14px; padding-top: 4px; border-top: 1px solid var(--line); }
  .bk-chip { padding: 6px 14px; border-radius: 99px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); font-size: 13.5px; font-weight: 800; color: var(--text); }
  .bk-chip.on { background: var(--primary-soft); box-shadow: inset 0 0 0 1.5px var(--primary); }
  .bk-max { margin-top: 10px; text-align: center; font-size: 12.5px; font-weight: 700; color: var(--muted); }
  .bk-hint { margin-top: 12px; text-align: center; font-size: 13px; font-weight: 700; color: var(--muted); }
  .bk-when { margin-top: 14px; text-align: center; font-size: 16px; font-weight: 800; color: var(--text); }
  .bk-link { align-self: center; margin-top: 6px; font-size: 13.5px; font-weight: 800; color: var(--primary-ink); }
  .bk-link.is-quiet { color: var(--muted); margin-top: 0; }
  /* Uhrzeit-Zeilen "ab · Di., 3. Nov. · [09:00]" – Uhrzeit sichtbar beim zugehörigen Tag (Jakob 09.11.2026) */
  .tw-rows { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 8px 0 2px; }
  .tw-row { display: grid; grid-template-columns: 30px auto 80px; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--text); }
  .tw-row .tw-label { text-align: right; }
  .bk-when .bk-chip.is-sm { margin-left: 6px; vertical-align: 1px; }
  .bk-chip.is-sm { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; font-size: 12.5px; }
  .late .bk-sum { width: 100%; }
  .late-cal { width: 100%; margin-top: 12px; }

  /* ================= Kalender und Uhrzeit – gemeinsame Bausteine (js/30-controls.js, Jakob 09.11.2026) =================
     Eigene Gestaltung statt der Felder des Handys. Kalender: Monat mit Pfeilen, seitlich wischbar (der neue Monat gleitet herein),
     Auswahl im Primärgrün als Balken (Anfang/Ende abgerundet), heute unterstrichen, außerhalb der Grenzen blass. Bereiche legen eigene
     Markierungen (is-full …) bei ihrem Abschnitt an. Uhrzeit: Feld + Drehrad, das direkt darunter aufklappt (Einrasten per scroll-snap). */
  .cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; font-size: 16px; color: var(--text); }
  .cal-nav { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--text); }
  .cal-nav:disabled { color: var(--line); cursor: default; }
  .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 3px; touch-action: pan-y; text-align: center; }
  .cal-wd { padding: 2px 0 4px; font-size: 11.5px; font-weight: 800; color: var(--muted); }
  .cal-day { height: 36px; font-size: 14.5px; font-weight: 700; color: var(--text); }
  .cal-day.is-today { font-weight: 900; text-decoration: underline; text-underline-offset: 3px; }
  .cal-day.is-out, .cal-day:disabled { background: none; box-shadow: none; color: #C3C9C1; cursor: default; }
  .cal-day.is-sel { background: var(--primary); box-shadow: none; color: #173404; font-weight: 900; border-radius: 0; }
  .cal-day.is-sel.is-first { border-radius: 10px 0 0 10px; }
  .cal-day.is-sel.is-last { border-radius: 0 10px 10px 0; }
  .cal-day.is-sel.is-first.is-last { border-radius: 10px; }
  .cal-grid.is-slide-next { animation: calSlideNext .22s ease-out; }
  .cal-grid.is-slide-prev { animation: calSlidePrev .22s ease-out; }
  @keyframes calSlideNext { from { transform: translateX(28px); opacity: 0; } }
  @keyframes calSlidePrev { from { transform: translateX(-28px); opacity: 0; } }
  @media (prefers-reduced-motion: reduce) { .cal-grid.is-slide-next, .cal-grid.is-slide-prev { animation: none; } }
  /* das Drehrad legt sich ÜBER den Inhalt darunter (spart Höhe, Jakob 09.11.2026) */
  .tw { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; }
  .tw.is-open { z-index: 8; }
  .tw-wheel { position: absolute; top: calc(100% + 4px); left: 50%; transform: translateX(-50%); box-shadow: 0 10px 28px rgba(20,40,20,.22); }
  .tw-label { font-size: 12px; font-weight: 800; color: var(--muted); }
  .tw-field { min-width: 74px; padding: 6px 12px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); background: var(--bg); font-size: 16px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
  .tw-field.on { background: var(--primary-soft); box-shadow: inset 0 0 0 1.5px var(--primary); }
  .tw-field:disabled { color: var(--muted); background: var(--surface); box-shadow: none; cursor: default; }
  .tw-wheel { display: flex; align-items: center; gap: 2px; padding: 0 6px; border-radius: 14px; background: var(--surface); }
  .tw-wheel > b { font-weight: 900; color: var(--text); }
  .tw-bar { position: absolute; left: 6px; right: 6px; top: 50%; height: 30px; transform: translateY(-50%); border-radius: 9px; box-shadow: inset 0 0 0 1.5px var(--primary); background: rgba(255,255,255,.6); pointer-events: none; }
  .tw-col { position: relative; height: 150px; width: 44px; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; padding: 60px 0; box-sizing: border-box; text-align: center;
            -webkit-mask-image: linear-gradient(transparent, #000 35%, #000 65%, transparent); mask-image: linear-gradient(transparent, #000 35%, #000 65%, transparent); }
  .tw-col::-webkit-scrollbar { display: none; }
  .tw-col span { display: block; height: 30px; line-height: 30px; scroll-snap-align: center; font-size: 16px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; cursor: pointer; }
  .bk-status { align-self: center; margin-top: 10px; }
  .ho-btns .rd-btn.is-danger { background: transparent; box-shadow: inset 0 0 0 1.5px #D9534F; color: #B23B37; }
  /* ================= Share-Ring-Kalender (R-9c.4 Kalenderansichten, js/77-ring-use.js) =================
     Wochenzeilen: Tageszahl oben, darunter bis zu zwei Bahnen mit Balken (Avatar am Anfang, Name ab zwei Tagen); Vergangenes blass
     (= wo er war), Kommendes kräftig (= Bedarfe). Balken lassen Tipps durch (der Tag darunter wird gewählt). */
  .rc .cal-head { margin-bottom: 2px; }
  .rc-wds { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
  .rc-month { touch-action: pan-y; }
  .rc-month.is-slide-next { animation: calSlideNext .22s ease-out; }
  .rc-month.is-slide-prev { animation: calSlidePrev .22s ease-out; }
  .rc-week { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); height: 58px; border-top: 1px solid var(--line); }
  .rc-day { display: flex; justify-content: center; align-items: flex-start; padding-top: 3px; border-radius: 10px; font-size: 13px; color: var(--text); }
  .rc-day b { font-weight: 800; }
  .rc-day.is-past { color: var(--muted); }
  .rc-day.is-today b { font-weight: 900; text-decoration: underline; text-underline-offset: 3px; }
  .rc-day.is-sel { background: var(--primary-soft); box-shadow: inset 0 0 0 1.5px var(--primary); }
  .rc-day.is-out, .rc-day.is-empty { color: #C3C9C1; cursor: default; }
  .rc-bar { position: absolute; top: 21px; height: 17px; display: flex; align-items: center; gap: 4px; padding: 0 3px 0 1px; border-radius: 9px;
            font-size: 10.5px; font-weight: 800; color: var(--text); white-space: nowrap; overflow: hidden; pointer-events: none; box-sizing: border-box; }
  .rc-bar.lane-1 { top: 39px; }
  .rc-bar.is-past { opacity: .45; }
  .rc-bar.cont-l { border-top-left-radius: 0; border-bottom-left-radius: 0; }
  .rc-bar.cont-r { border-top-right-radius: 0; border-bottom-right-radius: 0; }
  .rc-bar.is-one { justify-content: center; padding: 0; }
  .rc-bar .av { width: 15px; height: 15px; margin: 0; border: none; font-size: 6.5px; flex-shrink: 0; }
  .rc-bar.is-part .av { box-shadow: 0 0 0 1.5px #fff, 0 0 0 2.5px #F5B94A; }   /* nur ein Teil des Tages (mit Uhrzeit) */
  .rc-store { width: 15px; height: 15px; border-radius: 5px; display: grid; place-items: center; background: #E1E7DC; color: var(--primary-ink); flex-shrink: 0; }
  .rc-more { position: absolute; top: 3px; width: calc(100% / 7); padding-right: 4px; text-align: right; font-size: 9.5px; font-weight: 800; color: var(--muted); pointer-events: none; box-sizing: border-box; }
  .rc-dayview { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
  .rc-dayview h3 { font-size: 15px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
  .rc-dayview h3 small { font-size: 12px; color: var(--muted); font-weight: 700; }
  .rc-dayview .ru-row.is-quiet { color: var(--muted); }
  .rc-dayview .ru-row.is-quiet .av { opacity: .55; }
  .rc-tl { position: relative; margin: 14px 0 8px 26px; border-left: 1px solid var(--line); }
  .rc-hr { position: absolute; left: -26px; width: 20px; transform: translateY(-50%); text-align: right; font-size: 10.5px; font-weight: 700; color: var(--muted); }
  .rc-ev, .rc-free { position: absolute; left: 6px; right: 0; display: flex; align-items: center; gap: 6px; padding: 0 8px; border-radius: 9px; box-sizing: border-box; overflow: hidden; }
  .rc-ev { background: #FBE7C2; font-size: 12.5px; font-weight: 800; color: var(--text); }
  .rc-ev.is-mine { background: var(--primary-soft); box-shadow: inset 0 0 0 1.5px var(--primary); cursor: pointer; }
  .rc-ev .av { width: 20px; height: 20px; margin: 0; border: none; font-size: 8px; flex-shrink: 0; }
  .rc-free { background: var(--surface); font-size: 12px; font-weight: 700; color: var(--muted); justify-content: center; }
  .rc-book { width: 100%; margin-top: 14px; }
  .rc-mine { display: block; margin: 8px auto 0; }
  /* ================= Meine Bedarfe – persönlicher Kalender (R-9c.4, js/77-ring-use.js) =================
     Zeilen mit Bild + Name des Share Rings (statt Avatar), Zeitraum, leise Zusatzzeile; rechts „›“ zum Kalender des Share Rings. */
  .mc-row { display: flex; align-items: center; padding: 7px 0; }
  .rb-sec .mc-row + .mc-row { border-top: 1px solid var(--line); }
  .mc-row.is-past { opacity: .55; }
  .mc-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; text-align: left; font: inherit; color: var(--text); }
  .mc-text { display: flex; flex-direction: column; min-width: 0; font-size: 14px; font-weight: 700; line-height: 1.3; }
  .mc-text b { font-weight: 800; }
  .mc-arrow { margin-left: auto; flex-shrink: 0; color: var(--muted); }
  /* Bild ganz zeigen (contain) statt anzuschneiden (Jakob 11.11.2026) */
  .rt-thumb { display: grid; place-items: center; flex-shrink: 0; border-radius: 9px; overflow: hidden; background: #2A3328; color: #E3E9DF; }
  .rt-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .rt-thumb img.ph-art { width: 92%; height: 92%; object-fit: contain; }   /* Katalog-Zeichnung ganz zeigen */
  .rt-thumb svg { width: 78%; height: 78%; }
  .mc-me .av { width: 34px; height: 34px; margin: 0 2px 0 0; border: none; font-size: 12px; }
  /* "Jetzt" im Kasten dunkelgrün wie im Nutzungskasten (Jakob 11.11.2026) */
  .mc-now { background: var(--ring-bg); }
  .mc-now h2 { color: var(--ring-muted); }
  .mc-now .mc-main, .mc-now .mc-arrow { color: var(--ring-text); }
  .mc-now .ru-by { color: var(--ring-muted); }
  .mc-bar { height: 30px; background: var(--primary-soft); font-size: 11px; }
  .mc-bar .rt-thumb { border-radius: 6px; }
  .mc-past { padding-bottom: 0; }
  /* Kopf im Kasten "Bedarf eintragen" aus Meine Bedarfe: welcher Share Ring (+ Auswahl) und "Zur Nutzung ›" */
  .bk-ringhead { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 12px; }
  .bk-ringhead .ho-list { margin-top: 0; }
  .bk-ringhead .ho-list button { gap: 10px; }
  .bk-ring .rt-thumb { border-radius: 50%; }
  .bk-touse { margin-top: 0; }
  /* eigener Bedarf im Nutzungskasten: antippbar → "Bedarf ändern" */
  .ru-edit { display: flex; align-items: center; gap: inherit; width: 100%; text-align: left; font: inherit; color: inherit; }
  .ru-edit svg { margin-left: auto; color: var(--muted); flex-shrink: 0; }

  /* ================= QR-Scanner (R-9c.7, js/77-ring-use.js, Schalter itemTags) =================
     Eigene Seite, ganzflächig und dunkel wie ein Kamerabild; Zurück-Pfeil weiß im halbtransparenten Kreis; Sucher mit vier grünen
     Ecken (leuchtet beim Erkennen kurz auf); darunter leise die Erklärung; Beispiel-Codes unten NUR im Prototyp. */
  .scanner { position: relative; align-items: center; background: #151A13; color: #fff; text-align: center; }
  .sc-back { position: absolute; top: 14px; left: 12px; background: rgba(255,255,255,.16); color: #fff; }
  .sc-back:active { background: rgba(255,255,255,.26); }
  .sc-hint { margin: 84px 32px 0; font-size: 16px; font-weight: 700; line-height: 1.35; }
  .sc-finder { position: relative; width: 210px; height: 210px; margin-top: 34px; flex-shrink: 0; }
  .sc-finder i { position: absolute; width: 42px; height: 42px; border: 4px solid var(--primary); transition: border-color .2s, transform .2s; }
  .sc-finder i:nth-child(1) { top: 0; left: 0; border-right: none; border-bottom: none; border-radius: 14px 0 0 0; }
  .sc-finder i:nth-child(2) { top: 0; right: 0; border-left: none; border-bottom: none; border-radius: 0 14px 0 0; }
  .sc-finder i:nth-child(3) { bottom: 0; left: 0; border-right: none; border-top: none; border-radius: 0 0 0 14px; }
  .sc-finder i:nth-child(4) { bottom: 0; right: 0; border-left: none; border-top: none; border-radius: 0 0 14px 0; }
  .sc-finder.found { background: rgba(126,217,87,.18); border-radius: 14px; }
  .sc-finder.found i { transform: scale(.94); }
  .sc-info { margin-top: 26px; padding: 6px 10px; font-size: 13.5px; font-weight: 700; color: #C9D2C3; text-decoration: underline; text-underline-offset: 3px; }
  .sc-demo { margin: auto 14px 18px; padding: 10px; width: calc(100% - 28px); border-radius: 16px; background: rgba(255,255,255,.08); }
  .sc-demo p { margin-bottom: 8px; font-size: 12.5px; font-weight: 700; color: #C9D2C3; }
  .sc-demo div { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
  .sc-code { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: rgba(255,255,255,.16); color: #fff; font-size: 13px; font-weight: 700; }
  .sc-code:active { background: rgba(255,255,255,.26); }
  /* Erklärung als Kasten von unten */
  #qrBackdrop.open { opacity: 1; pointer-events: auto; }
  .qr-sheet.open { transform: none; }
  .qr-info { padding-bottom: 26px; }
  .qr-info ol { list-style: none; margin: 8px 0 18px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
  .qr-info li { display: flex; align-items: center; gap: 12px; }
  .qr-info li span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: var(--primary-soft); color: var(--primary-ink); font-weight: 800; }
  .qr-info li p { font-size: 15px; font-weight: 700; line-height: 1.35; }
  .qr-setup { display: flex; align-items: center; gap: 4px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14.5px; font-weight: 700; color: var(--muted); }

  /* ================= MATCH – Detailseite eines Wish-Matches (R-4.10, js/52-match-detail.js) =================
     Gerüst wie die Share-Ring-Seite (.rd-*), aber in der Wish-Farbe: Kopf hellgrün mit dunkler Schrift · Kopfdaten des Matches
     (Wer ist dabei, Gruppe, Umkreis mit Stift, zwei Sprungmarken) · zwei große Kacheln · „Share Ring gründen“ fest unten.
     Kasten: #matchBoxModal in der Optik des Share-Ring-Kastens (.rb, .rb-sec). */
  .md { display: flex; flex-direction: column; flex-shrink: 0; padding-bottom: 0; }
  .md > * { flex-shrink: 0; }
  .md-head { background: var(--primary-soft); color: var(--text); }
  .md-head h1 { display: flex; flex-direction: column; }
  .md-head h1 small { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 800; color: var(--primary-ink); }
  .md-head .rd-chat { background: var(--bg); color: var(--primary-ink); }
  .md-meta { display: flex; flex-direction: column; gap: 8px; padding: 2px 14px 14px; background: var(--primary-soft); }
  .md-who { display: flex; flex-direction: column; gap: 6px; padding: 9px 12px; border-radius: 14px; background: var(--bg); }
  .md-who > small { font-size: 12.5px; font-weight: 800; color: var(--muted); }
  .md-who-row { display: flex; align-items: center; gap: 6px; }
  .md-who-row .md-avs { flex: 1; }
  .md-who-row .av { width: 32px; height: 32px; font-size: 11.5px; }
  .md-val { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 10px; background: var(--surface);
            font-size: 14px; font-weight: 800; white-space: nowrap; }
  .md-val svg { color: var(--muted); }
  .md-val:active { filter: brightness(.95); }
  .md-jumps { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: -2px; }
  .md-jump { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: var(--bg); font-size: 13px; font-weight: 800; color: var(--text); }
  .md-jump.is-done { color: var(--primary-ink); }
  .md-n { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; display: grid; place-items: center; background: var(--occasion-soft); color: var(--occasion-ink); font-size: 11px; }
  .md-ck { width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-ink); color: #fff; }
  .md-body { flex: 1; }
  .md-avs { display: inline-flex; }
  .md-avs .av.is-off { opacity: .35; }
  .md-tile { display: flex; flex-direction: column; gap: 8px; width: 100%; padding: 14px; border-radius: 20px; background: var(--bg); text-align: left; scroll-margin-top: 80px; }
  .md-tile:active { filter: brightness(.98); }
  .md-tile-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; }
  .md-sum { font-size: 18px; font-weight: 800; line-height: 1.25; }
  .md-lines { display: flex; flex-direction: column; gap: 5px; }
  .md-lines div { display: flex; gap: 10px; font-size: 14px; font-weight: 700; line-height: 1.35; }
  .md-lines b { flex: 0 0 84px; font-size: 12.5px; font-weight: 800; color: var(--muted); padding-top: 1px; }
  .md-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 4px; }
  .md-foot small { font-size: 12.5px; font-weight: 700; color: var(--muted); text-align: right; }
  .md-pill { flex-shrink: 0; padding: 3px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 800; }
  .md-pill.is-ok { background: var(--primary-soft); color: var(--primary-ink); }
  .md-pill.is-new { background: var(--occasion-soft); color: var(--occasion-ink); }
  .md-pill.is-open { background: var(--surface); color: var(--muted); }
  .md-gobar { position: sticky; bottom: 0; z-index: 4; padding: 18px 14px 14px; background: linear-gradient(rgba(233,237,229,0), var(--page) 30%); text-align: center; }
  .md-gobar .rd-btn { width: 100%; padding: 13px; }
  .md-gobar .rd-btn.is-plan:disabled { background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--primary); color: var(--primary-ink); }
  .md-gobar p { margin-top: 6px; font-size: 12.5px; font-weight: 700; color: var(--muted); line-height: 1.35; }
  /* Kasten */
  .md-about p { font-size: 14.5px; font-weight: 700; line-height: 1.45; margin-bottom: 8px; }
  .md-about h2 + p { margin-top: 2px; }
  .md-about small { font-size: 12px; font-weight: 700; color: var(--muted); }
  .md-fast { padding: 12px 14px; border-radius: 20px; background: var(--primary-soft); }
  .md-fast p { font-size: 13.5px; font-weight: 700; line-height: 1.4; margin-bottom: 8px; }
  .md-point + .md-point { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
  .md-point-row { display: flex; align-items: flex-start; gap: 10px; }
  .md-point-row p { flex: 1; font-size: 14.5px; font-weight: 700; line-height: 1.45; }
  .md-point .av { width: 22px; height: 22px; font-size: 8.5px; }
  .md-other { margin-top: 4px; font-size: 12.5px; font-weight: 800; color: var(--primary-ink); }
  .md-others { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
  .md-decide { margin: 4px -6px 0; padding: 10px; border-radius: 16px; box-shadow: inset 0 0 0 2px #E9B866; }
  .md-flag { font-size: 12.5px; font-weight: 800; color: var(--occasion-ink); margin-bottom: 4px; }
  .md-opt { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 6px; padding: 10px 12px; border-radius: 14px; background: var(--surface); text-align: left; }
  .md-opt.is-sel { background: var(--primary-soft); }
  .md-radio { width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; box-shadow: inset 0 0 0 2px #C8D0C1; }
  .md-opt.is-sel .md-radio { box-shadow: inset 0 0 0 6px var(--primary-ink); }
  .md-opt-tx { flex: 1; display: flex; flex-direction: column; gap: 1px; font-size: 14px; font-weight: 800; line-height: 1.35; }
  .md-opt-tx small { font-size: 12px; font-weight: 700; color: var(--muted); }
  .md-boxfoot { padding: 4px 0 6px; text-align: center; }
  .md-boxfoot .rd-btn { width: 100%; }
  .md-boxfoot p { margin-top: 6px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
  .mc-open { cursor: pointer; }
  /* Feinschliff 12.11.2026 (Jakob): Sprechblase zum Chat, „…“, Kachel mit Bild bzw. Symbolen, Haken je Punkt, Mitglieder-Kasten */
  .md-bubble-wrap { position: relative; height: 0; z-index: 6; }
  .md-bubble { position: absolute; right: 8px; bottom: 12px; max-width: 220px; padding: 8px 12px; border-radius: 14px; background: var(--bg); color: var(--text);
               font-size: 13px; font-weight: 700; line-height: 1.35; text-align: left; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
  .md-bubble::after { content: ''; position: absolute; right: 18px; bottom: -7px; border: 7px solid transparent; border-bottom: 0; border-top-color: var(--bg); }
  .md-who { cursor: pointer; }
  .md-closed { font-size: 12px; font-weight: 800; color: var(--occasion-ink); }
  .md-val svg:first-of-type { color: var(--text); }
  .md-tile.is-item { box-shadow: inset 0 0 0 2px var(--category-line); }
  .md-tile-top { display: flex; align-items: center; gap: 12px; }
  .md-tile-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  .md-thumb { width: 52px; height: 52px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; flex-shrink: 0; background: var(--surface); }
  .md-thumb.placeholder { background: #2B302A; color: #E3E9DF; }
  .md-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .md-thumb.placeholder img.ph-art { width: 86%; height: 86%; object-fit: contain; }
  .md-thumb.is-small { width: 34px; height: 34px; border-radius: 10px; }
  .md-sum { font-size: 17px; }
  .md-pill { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; }
  .md-lines.has-icons div { align-items: flex-start; }
  .md-lines.has-icons b { flex-basis: 74px; }
  .md-ico { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; flex-shrink: 0; background: var(--primary-soft); color: var(--primary-ink); }
  .md-foot .rd-btn-sm { flex-shrink: 0; }
  .md-ready { display: flex; justify-content: center; gap: 8px; margin-bottom: 8px; }
  .md-ready-av { position: relative; display: inline-flex; opacity: .4; }
  .md-ready-av.is-on { opacity: 1; }
  .md-ready-av .av { width: 30px; height: 30px; margin: 0; font-size: 11px; }
  .md-ready-av i { position: absolute; right: -3px; bottom: -3px; width: 16px; height: 16px; border-radius: 50%; display: none; place-items: center;
                   background: var(--primary-ink); color: #fff; border: 2px solid var(--page); }
  .md-ready-av.is-on i { display: grid; }
  .md-gobar .rd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
  /* Kasten */
  .md-boxicon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-ink); }
  .md-boxstate { padding: 0 4px; font-size: 13px; font-weight: 800; color: var(--muted); }
  .md-areah { display: flex; align-items: center; gap: 6px; }
  .md-point-row { align-items: center; }
  .md-point-tx { flex: 1; display: flex; flex-direction: column; gap: 3px; }
  .md-point-tx p { font-size: 14.5px; font-weight: 700; line-height: 1.45; }
  .md-point-tx small { font-size: 12px; font-weight: 700; color: var(--muted); }
  .md-changed { align-self: flex-start; padding: 2px 8px; border-radius: 99px; background: var(--occasion-soft); color: var(--occasion-ink); font-size: 12px; font-weight: 800; }
  .md-avs.is-small .av { width: 22px; height: 22px; font-size: 8.5px; }
  .md-check { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; color: transparent; box-shadow: inset 0 0 0 2px #C8D0C1; }
  .md-check:hover { color: #C8D0C1; }
  .md-check.is-on { background: var(--primary); color: var(--text); box-shadow: none; }
  .md-decide.is-voted { box-shadow: inset 0 0 0 2px var(--category-line); }
  .md-decide.is-voted .md-flag { color: var(--muted); }
  .md-member { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
  .md-member + .md-member { border-top: 1px solid var(--line); }
  .md-member .av { width: 34px; height: 34px; margin: 0; font-size: 12px; }
  .md-member-tx { display: flex; flex-direction: column; }
  .md-member strong { font-size: 14.5px; font-weight: 800; }
  .md-member small { font-size: 12.5px; font-weight: 700; color: var(--muted); }
  .md-set { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 10px; padding: 10px 0; }
  .md-set + .md-set { border-top: 1px solid var(--line); }
  .md-set-row span { display: flex; flex-direction: column; }
  .md-set-row strong { font-size: 14.5px; font-weight: 800; }
  .md-set-row small, .md-set-k { font-size: 12.5px; font-weight: 700; color: var(--muted); }
  .md-set-k { font-size: 14px; font-weight: 800; color: var(--text); }
  .md-step { display: flex; align-items: center; gap: 10px; }
  .md-step button { width: 32px; height: 32px; border-radius: 50%; background: var(--surface); font-size: 18px; font-weight: 800; }
  .md-step button.is-min { color: #C8D0C1; }
  .md-step strong { min-width: 96px; text-align: center; font-size: 14.5px; }
  .md-hint { grid-column: 1 / -1; font-size: 12.5px; font-weight: 700; color: var(--occasion-ink); }
  .md-save { width: 100%; margin-top: 4px; }
  .md-leave { align-self: center; padding: 6px 12px 0; font-size: 13.5px; font-weight: 800; color: var(--muted); }
  /* Wish-Match-Karte in „Deine Matches“ (R-4.10, Vorschlag B 13.11.2026): Sprungmarken, unten Verlassen | Gründen; Zahl auf der Mini-Karte */
  .mc-jumps .md-jump { background: var(--bg); }
  .md-jump .md-n, .md-jump .md-ck { margin-left: 2px; }
  .mc-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
  .mc-foot .rd-btn-sm:disabled { background: var(--surface); box-shadow: none; color: var(--muted); cursor: default; }
  .mc-ready { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 800; color: var(--primary-ink); }
  /* Ring-Fortschritt (Meilensteine, Jakob 13.11.2026): Match-Symbol, das sich mit jedem geeinigten Schritt schließt */
  .md-ring { flex-shrink: 0; overflow: visible; }
  .md-ring-arcs path { fill: none; stroke: #B3BEAA; stroke-width: 2.8; stroke-linecap: round; }
  .md-ring-arcs path.is-on { stroke: var(--primary-ink); }
  .md-ring-dots circle { fill: var(--bg); stroke: #B3BEAA; stroke-width: 1.6; }
  .md-ring-dots circle.is-on { fill: var(--primary); stroke: var(--primary-ink); }
  .md-ring-ck { fill: none; stroke: var(--primary-ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .mc-prog { display: flex; align-items: center; gap: 10px; }
  .mc-state { font-size: 12px; font-weight: 800; line-height: 1.25; }
  .mc-state.is-todo { color: var(--occasion-ink); }
  .mc-state.is-wait { color: var(--muted); }
  .mc-state.is-ok { color: var(--primary-ink); }
  .mc-body.is-wish { flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; }
  .mc-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
  .mc-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
  .mc-body.is-wish .lc-avatars { align-self: auto; }
  .mc-body.is-wish .av { width: 22px; height: 22px; font-size: 8.5px; }
