.chat-action-sheet{width:min(520px,calc(100% - 24px));max-height:88dvh;padding:20px;border:1px solid #efcbd5;border-radius:26px;background:#fff9fb;color:#421e2b;box-shadow:0 24px 80px #40132833;overflow:auto}.chat-action-sheet::backdrop{background:#30152366;backdrop-filter:blur(8px)}.chat-action-sheet>header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}.chat-action-sheet h2{font-size:21px;margin:0}.chat-sheet-body{display:grid;gap:12px;min-width:0}.chat-photo-choice{display:grid;gap:5px;padding:16px;text-align:left;border:1px solid #efcfda;border-radius:18px;background:#fff;color:#64162b;cursor:pointer;min-height:52px;font:inherit}.chat-photo-choice:hover{background:#ffe8ef;border-color:#e73553}.chat-photo-choice small{font-size:12px;color:#7b5967}.chat-send-preview{display:block;max-height:36dvh;width:100%;object-fit:contain;border-radius:18px;background:#f8e9ee}.chat-send-modes{display:grid;gap:10px}.chat-photo-warning,.chat-photo-rule{font-size:12px;color:#795963;margin:4px}.chat-reaction-picker{grid-template-columns:repeat(3,1fr)}.chat-reaction-picker button{font-size:28px;min-height:60px;border:1px solid #eed0da;border-radius:18px;background:#fff;cursor:pointer}.product-chat .chat-peer-link{display:flex;align-items:center;gap:12px;flex:1;min-width:0;text-align:left;color:inherit;background:transparent;border:0;padding:0;cursor:pointer}.chat-peer-link .chat-peer{display:grid}.product-chat .reaction-count{display:inline-flex;align-items:center;padding:4px 8px;border-radius:12px;background:#f7e6ed;font-size:13px}.product-chat .view-once{display:flex;gap:10px;align-items:center;min-height:56px;padding:12px 16px;border:1px solid #eeb7c7;border-radius:18px;background:#fff1f6;color:#741832;font-weight:750}.product-chat .view-once>span{font-size:27px}.chat-profile-preview .fc-profile{min-height:450px;height:65dvh}.chat-profile-preview .fc-details{overflow:auto}.chrome-link{position:relative}.app-chrome .chrome-unread-dot{position:absolute;top:0;right:0;display:grid;place-items:center;min-width:18px;height:18px;padding:0 4px;border-radius:12px;background:#e73553;color:#fff;font-size:10px;font-weight:800;line-height:1;border:2px solid #fff}.app-chrome .chrome-unread-dot[hidden]{display:none}.chat-action-sheet button:focus-visible,.chat-peer-link:focus-visible{outline:3px solid #e73553;outline-offset:3px}
/* Mobile conversations use the available keyboard viewport. Desktop retains navigation. */
@media(max-width:999px){
/* v493: the chat keeps the standard floating back button + bell (top bar only); dock and title context stay hidden */
body.app-host:has(#app>.product-chat) .app-chrome :is(.chrome-dock,.fc-mobile-dock,.chrome-desktop-context,.chrome-mobile-top .chrome-event-context){display:none!important}
body.app-host:has(#app>.product-chat){overflow:hidden}
body.app-host:has(#app>.product-chat) #app{position:fixed;top:var(--chat-viewport-top,0px);left:0;right:0;margin:0!important;padding:0!important;height:var(--chat-viewport-height,100dvh);min-height:0;overflow:hidden}
body.app-host #app>.shell.product-chat{box-sizing:border-box;display:flex;flex-direction:column;width:100%;max-width:920px;height:var(--chat-viewport-height,100dvh);min-height:0;margin:0 auto;padding:var(--app-safe-top,env(safe-area-inset-top)) 0 var(--app-safe-bottom,env(safe-area-inset-bottom));overflow:hidden;border:0;border-radius:0;background:var(--app-background);box-shadow:none}
}
@media(min-width:1000px){
 body.app-host #app>.shell.product-chat{width:calc(100% - 48px);max-width:1100px;height:calc(100dvh - 176px);min-height:320px;margin:8px auto 96px;padding:0;border:1px solid var(--line);border-radius:28px}
}
body.app-host #app>.product-chat>header{display:flex;align-items:center;gap:10px;flex:none;margin:0;padding:12px 16px;border-radius:0;background:#fff8fabd;border-bottom:1px solid var(--line)}
body.app-host #app>.product-chat>.messages{flex:1;min-height:0;height:auto;overflow-y:auto;overscroll-behavior:contain;padding:12px 16px;scrollbar-width:thin}
body.app-host #app>.product-chat>form{flex:none;margin:0;padding:12px;gap:8px;background:#fff8fad9;border-top:1px solid var(--line)}
.product-chat .chat-back{margin:0;width:44px;height:44px;padding:10px;flex:none}
.chat-back svg{width:24px;height:24px}
.product-chat .chat-delete{display:block;margin:2px 0 0 auto;padding:8px;width:36px;height:36px;min-height:36px;border:0;border-radius:50%;background:transparent;color:var(--muted);box-shadow:none}
.chat-delete svg{width:18px;height:18px}
.product-chat .chat-delete:hover{background:var(--rose);color:var(--burgundy)}
.chat-delete:focus-visible,.chat-back:focus-visible{outline:2px solid var(--red);outline-offset:2px}
.chat-action-sheet.chat-profile-dialog{width:min(620px,calc(100% - 20px));max-height:calc(100dvh - 20px);padding:12px;scrollbar-width:thin}
.chat-profile-dialog>header{position:sticky;top:-12px;z-index:5;margin:0;padding:10px 8px 14px;background:#fff9fb}
.chat-profile-dialog .chat-profile-preview{gap:24px}
.chat-profile-dialog .chat-profile-preview .fc-profile{height:auto;min-height:0;border:0}
.chat-profile-dialog .chat-profile-preview .fc-profile .fc-media{height:min(65dvh,660px);min-height:280px}
.chat-profile-dialog .chat-profile-preview .fc-details{height:auto;overflow:visible;padding:12px 20px 24px}
.chat-profile-dialog .chat-profile-preview .fc-summary h2{font-size:clamp(26px,5vw,36px)}
@media(max-width:450px){.chat-action-sheet.chat-profile-dialog{width:calc(100% - 12px);max-height:calc(100dvh - 12px);padding:6px;border-radius:24px}.chat-profile-dialog>header{top:-6px;padding:8px 8px 12px}.chat-profile-dialog>header h2{font-size:19px}.chat-profile-dialog .chat-profile-preview .fc-profile .fc-media{height:62dvh;min-height:240px}}

.chat-media-button{display:grid;place-items:center;padding:0}
.chat-media-button svg{width:24px;height:24px}

.product-chat .chat-media-button{box-sizing:border-box;width:48px;min-width:48px;height:48px;min-height:48px;flex:0 0 48px;aspect-ratio:1;border-radius:50%;padding:0}

.product-chat .chat-reaction-control{display:inline-flex;align-items:center;justify-content:center;gap:4px;font-size:20px;line-height:1;padding:6px 10px;color:var(--burgundy)}

.chat-reaction-control .chat-add-reaction{width:20px;height:20px;display:block}

.product-chat{position:relative}:is(.product-chat,.chrome-message-panel)>.chat-sheet-contained{position:absolute;z-index:30;inset:auto 12px 12px;margin:0;width:auto;max-width:none;max-height:calc(100% - 24px);box-sizing:border-box;box-shadow:0 0 0 100vmax #30152355,0 12px 40px #40132833}:is(.product-chat,.chrome-message-panel):has(>.chat-sheet-contained[open]){isolation:isolate;overflow:hidden}

.chrome-message-row,.conversation-list a[href^="#/chat/"]{touch-action:pan-y;transition:transform .16s,background .16s}.chrome-message-row[data-swipe-action=unread],.conversation-list a[href^="#/chat/"][data-swipe-action=unread]{background:#deecff}.chrome-message-row[data-swipe-action=delete],.conversation-list a[href^="#/chat/"][data-swipe-action=delete]{background:#ffe1e7}

.chat-swipe-shell{position:relative;overflow:hidden;min-width:0;border-radius:18px;isolation:isolate;background:#2778d8}.chat-swipe-shell[data-action=unmatch]{background:#da304b}.chat-swipe-shell>a{position:relative;z-index:1;box-sizing:border-box;width:100%;margin:0;transition:transform .22s ease!important;background:#fff9fb!important}.chat-swipe-shell.is-dragging>a{transition:none!important;user-select:none}.chat-swipe-action{position:absolute;inset:0 auto 0 0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;width:88px;border:0;border-radius:0;padding:8px;color:#fff;background:transparent;font:inherit;font-size:12px;font-weight:700;cursor:pointer;box-shadow:none}.chat-swipe-shell[data-action=unmatch]>.chat-swipe-action{left:auto;right:0}.chat-swipe-action svg{width:23px;height:23px;flex:none}.chat-swipe-shell.is-armed .chat-swipe-action svg{transform:scale(1.12)}.chat-swipe-action:focus-visible{outline:2px solid #fff;outline-offset:-5px}.chrome-message-panel{position:fixed}.panel-confirm-layer{position:absolute;inset:0;z-index:100;display:grid;place-items:center;padding:16px;border-radius:inherit;background:#47233235;backdrop-filter:blur(5px)}.panel-confirm-dialog[open]{position:relative;inset:auto;margin:0;width:100%;max-width:480px;max-height:100%;box-sizing:border-box;padding:22px}.panel-confirm-dialog h2{font-size:21px}.panel-confirm-dialog .page-actions{display:flex;gap:10px}.panel-confirm-dialog .page-actions>button{flex:1 1 0;white-space:nowrap}.product-chat:has(>.panel-confirm-layer){position:relative}
@media(prefers-reduced-motion:reduce){.chat-swipe-shell>a{transition:none!important}}

.chat-swipe-shell>.chat-swipe-action>span{color:inherit;font-size:12px;line-height:1.2}.chat-swipe-shell>.chat-swipe-action{height:100%;margin:0}
.panel-confirm-layer{grid-template-columns:minmax(0,1fr);min-width:0}.panel-confirm-dialog[open]{min-width:0}.product-chat .panel-confirm-dialog>form{display:block;min-width:0;padding:0;margin:0;border:0;background:transparent}.panel-confirm-dialog .page-actions{width:100%;margin:18px 0 0}

/* v350: dialogs inside the chat panel fit the visible panel; the title stays visible and the body scrolls. */
.panel-confirm-layer{grid-template-rows:minmax(0,1fr);overflow:hidden}.panel-confirm-dialog[open]{align-self:center;max-height:100%;overflow:auto;overscroll-behavior:contain}
.panel-confirm-dialog[open]>form>footer{position:static;margin-bottom:0;padding:12px 0 0;background:transparent}

/* v493: chat header runs full-bleed up under the status bar with the soft glass fade used elsewhere;
   peer avatar/name sit in the top-bar row between the floating back button and bell. */
@media(max-width:999px){
html body.app-host #app>.shell.product-chat{padding-top:0}
html body.app-host #app>.shell.product-chat>header{position:relative;z-index:2;flex:none;box-sizing:border-box;margin:0;min-height:0;padding:calc(var(--app-safe-top,env(safe-area-inset-top,0px)) + 12px) 74px 14px!important;border:0!important;
 background:linear-gradient(180deg,rgba(255,248,250,.94) 0%,rgba(255,248,250,.82) 62%,rgba(255,248,250,0) 100%)!important;
 -webkit-backdrop-filter:blur(18px) saturate(160%);backdrop-filter:blur(18px) saturate(160%);
 -webkit-mask-image:linear-gradient(180deg,#000 calc(100% - 8px),transparent);mask-image:linear-gradient(180deg,#000 calc(100% - 8px),transparent)}
html body.app-host #app>.shell.product-chat>header{min-height:calc(var(--app-safe-top,env(safe-area-inset-top,0px)) + 80px);align-items:center}
html body.app-host #app>.shell.product-chat>header>.chat-back{display:none!important}
html body.app-host #app>.shell.product-chat>header+*{margin-top:-14px}
}

/* v494 iOS-style chat header: avatar centred in the top-bar row between back and bell, name below, then the
   presence line only. The three-dot menu is gone; tapping avatar or name opens the profile/options sheet. */
@media(max-width:999px){
html body.app-host #app>.shell.product-chat>header{justify-content:center;padding:calc(var(--app-safe-top,env(safe-area-inset-top,0px)) + 4px) 74px 16px!important}
html body.app-host #app>.shell.product-chat>header .chat-safety-menu{display:none!important}
html body.app-host #app>.shell.product-chat>header .chat-peer-link{flex:0 1 auto;flex-direction:column;align-items:center;gap:4px;text-align:center;max-width:100%;-webkit-tap-highlight-color:transparent}
html body.app-host #app>.shell.product-chat>header .chat-peer-link>:first-child{width:50px;height:50px;min-width:50px;border-radius:50%;box-shadow:0 0 0 2px #fff,0 6px 18px rgba(100,22,43,.18);transition:transform .18s ease}
html body.app-host #app>.shell.product-chat>header .chat-peer-link:active>:first-child{transform:scale(.94)}
html body.app-host #app>.shell.product-chat>header .chat-peer{align-items:center;gap:1px}
html body.app-host #app>.shell.product-chat>header .chat-peer b{font-size:15px;line-height:1.2;font-weight:700;letter-spacing:-.01em;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body.app-host #app>.shell.product-chat>header .chat-peer small{font-size:12px;line-height:1.2;justify-content:center}
html body.app-host #app>.shell.product-chat>.chat-receipt-note{display:none}
}
.chat-profile-options{display:grid;gap:8px;margin-top:14px}.chat-profile-safety{width:100%;justify-content:center;color:#a01f3d}
/* v502 chat: tapping the avatar opens the person's full profile like the Entdecken card (fixed, not swipeable);
   report/block stays reachable below the card. */
@media(max-width:999px){
 .chat-action-sheet.chat-profile-dialog.chat-profile-full{position:fixed!important;inset:0!important;width:100%!important;max-width:none!important;height:100%!important;max-height:none!important;margin:0!important;border:0!important;border-radius:0!important;padding:calc(var(--app-safe-top,env(safe-area-inset-top,0px)) + 8px) 12px calc(var(--app-safe-bottom,env(safe-area-inset-bottom,0px)) + 16px)!important;background:#fff8fa!important;overflow-y:auto;overscroll-behavior:contain;z-index:2147480000}
 .chat-profile-full>header{position:sticky!important;top:0!important;display:flex;justify-content:flex-end;padding:0 0 8px!important;background:transparent!important;pointer-events:none}
 .chat-profile-full>header h2{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
 .chat-profile-full>header button{pointer-events:auto}
 .chat-profile-full .chat-profile-preview .fc-profile{border-radius:var(--fc-sheet-radius,28px)!important;overflow:hidden;touch-action:pan-y}
 .chat-profile-full .chat-profile-preview .fc-profile .fc-media{height:min(72dvh,700px)!important}
 .chat-profile-full .chat-profile-options{display:grid;gap:8px;padding:8px 4px 0}.chat-profile-full .chat-profile-options .ghost{width:100%}
}
@media(max-width:999px){.chat-profile-full>header button{width:44px;height:44px;border-radius:50%;font-size:22px;background:rgba(255,255,255,.72);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}.chat-action-sheet.chat-profile-full::backdrop{background:#fff8fa}}
/* v519 chat profile = the Entdecken card gesture: the collapsed card owns vertical drags (no browser pan, which used to
   cancel the pointer swipe and scroll the sheet instead); expanded details scroll natively like on Entdecken. */
html body dialog.chat-profile-full .chat-profile-preview .fc-profile{touch-action:pinch-zoom!important}
html body dialog.chat-profile-full .chat-profile-preview .fc-profile.is-expanded{touch-action:pan-y!important}
html body dialog.chat-profile-full{overscroll-behavior:contain}
/* v519 the old sheet X never shows behind the bell-morphed X (the generic close-button rule out-ranked the hide rule) */
html body dialog.has-bell-x.chat-profile-full>header>button,html body dialog.has-bell-x.chat-action-sheet>header>button[aria-label]{display:none!important}
html body dialog.has-bell-x.chat-profile-full>header{min-height:52px}
/* v524: profile view from a chat = a normal vertically scrolling page. The card starts at the standard first-content
   height (36pt below the bell-X row, like every screen); photo card first, Über mich etc. always expanded below. */
@media(max-width:999px){
 html body dialog.chat-action-sheet.chat-profile-dialog.chat-profile-full{padding-top:var(--app-content-top,calc(var(--app-safe-top,env(safe-area-inset-top,0px)) + 92px))!important}
 html body dialog.chat-profile-full.has-bell-x>header{position:absolute!important;inset:0 auto auto 0!important;width:1px!important;height:0!important;min-height:0!important;margin:0!important;padding:0!important;overflow:hidden!important}
 html body dialog.chat-profile-full:not(.has-bell-x)>header{position:fixed!important;top:calc(var(--app-safe-top,env(safe-area-inset-top,0px)) + 6px)!important;right:16px!important;min-height:0!important;padding:0!important;z-index:6}
}
html body dialog.chat-profile-full .chat-profile-preview .fc-profile[data-fc-static]{touch-action:pan-y!important;transform:none!important}
html body dialog.chat-profile-full .chat-profile-preview .fc-profile[data-fc-static] .fc-details{animation:none!important}
html body dialog.chat-profile-full .chat-profile-preview .fc-profile[data-fc-static] :is([data-fc-collapse],[data-fc-expand]){display:none!important}
