.feed-compose{display:flex;align-items:center;gap:14px;padding:16px 0;border-bottom:1px solid var(--line);margin-bottom:10px}.feed-compose>span{flex:1;color:var(--muted)}#live-history .message.mine>p{text-align:right}#live-history .message{margin:16px 0}#live-history .message .bubble{margin-bottom:5px}#live-history .post-photo-open{max-width:100%}#live-history .feed-post-photo{max-height:350px;object-fit:cover}#live-message label.ib{cursor:pointer;flex:none}#live-message-error{margin-top:8px}.comment{padding:14px 0;border-top:1px solid var(--line)}

/* Full-bleed media and stable comment input on phones. */
[data-live-post] .post-carousel{background:transparent;align-items:flex-start}
[data-live-post] .post-carousel figure{flex:0 0 100%;min-width:0}
[data-live-post] .post-carousel .feed-post-photo{width:100%;height:auto;max-height:none;object-fit:cover;margin:0;border-radius:0;aspect-ratio:4/5}
#live-comment{display:grid;gap:12px;margin-top:16px;min-width:0}
#live-comment .field{margin:0}
#live-comment textarea,#live-message textarea{font-size:16px;line-height:1.5;width:100%;min-width:0;max-width:100%}
#live-comment textarea{min-height:96px;resize:vertical}
#live-comment>.btn{margin:0;min-height:46px}
@media(max-width:760px){#app :is(input,textarea,select){font-size:16px}}

#app:has(#live-comment textarea:focus){padding-bottom:var(--composer-keyboard-space,140px)!important}

/* Comments stay over the feed; only their list scrolls. */
html.social-comments-open,html.social-comments-open body{overflow:hidden;overscroll-behavior:none}
dialog.social-comments-sheet{position:fixed;inset:auto;left:50%;transform:translateX(-50%);margin:0;width:min(100%,480px);max-width:100%;max-height:none;padding:0;border:1px solid var(--line);border-bottom:0;border-radius:22px 22px 0 0;background:var(--paper);overflow:hidden;box-shadow:0 -8px 40px #0002}
dialog.social-comments-sheet[open]{display:flex;flex-direction:column}
dialog.social-comments-sheet::backdrop{background:#0006}
.social-comments-head{position:relative;flex:none;padding:22px 50px 14px;border-bottom:1px solid var(--line);text-align:center;touch-action:pan-x}
.social-comments-grip{position:absolute;top:8px;left:calc(50% - 18px);height:4px;width:36px;border-radius:8px;background:var(--muted);opacity:.5}
.social-comments-head h2{font:800 15px/1.4 Manrope,sans-serif;margin:0;letter-spacing:0;text-transform:none}
.social-comments-count{font-weight:400;color:var(--muted);font-size:12px;margin-left:5px}
.social-comments-head button{position:absolute;right:8px;top:10px;width:44px;height:44px;font-size:25px;color:var(--ink)}
.social-comments-list{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:8px 18px;scrollbar-width:thin}
.social-comment{display:flex;gap:10px;padding:12px 0;align-items:flex-start}
.social-comment>.avatar{width:32px;height:32px;flex:none}.social-comment>div{min-width:0;flex:1}
.social-comment b{font-size:12px}.social-comment p{margin:4px 0;font-size:13px;line-height:1.5;overflow-wrap:anywhere;white-space:normal}.social-comment small{font-size:10px;color:var(--muted)}
.social-comments-list .social-comments-empty{padding:35px 0;text-align:center;color:var(--muted);font-size:13px}
#social-comment{flex:none;padding:12px 14px max(12px,env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--paper)}
.social-comment-compose{display:flex;align-items:center;gap:10px}.social-comment-compose>.avatar{width:32px;height:32px}
#social-comment textarea{flex:1;min-width:0;width:0;min-height:44px;max-height:100px;resize:none;border:1px solid var(--line);border-radius:22px;padding:11px 13px;font:400 16px/20px Manrope,sans-serif;background:var(--surface);color:var(--ink)}
#social-comment button{font-size:12px;font-weight:800;min-width:52px;padding:0;color:var(--icon-accent,var(--ink))}
#social-comment .form-error{font-size:12px;margin:6px 0 0;color:var(--bad)}#social-comment .form-error:empty{display:none}

dialog.social-comments-sheet:focus{outline:none}
#social-comment textarea:focus{outline:none;border-color:var(--icon-accent);box-shadow:0 0 0 1px var(--icon-accent)}

/* Keep the composer joined to the keyboard, with no feed showing beneath it. */
dialog.social-comments-sheet.keyboard-open::backdrop{background:var(--paper)}
dialog.social-comments-sheet.keyboard-open{border-radius:18px 18px 0 0}
.social-comments-count:empty{display:none}
#social-comment{margin:0;padding:10px 14px max(10px,env(safe-area-inset-bottom))}
.keyboard-open #social-comment{padding-bottom:10px}
#social-comment textarea{display:block;margin:0;min-height:40px;max-height:96px;padding:9px 12px;border-radius:20px;line-height:20px;box-shadow:none}
#social-comment textarea:focus{outline:none;border-color:var(--line);box-shadow:none}
#social-comment button:disabled{opacity:.35}
.social-comment-compose>.avatar{flex:none;width:30px;height:30px}
.social-comments-list:has(.social-comments-empty){display:flex;align-items:center;justify-content:center}
.social-comments-list .social-comments-empty{padding:24px 12px;line-height:1.6}

@media(max-width:760px){
 html.live-chat-screen,html.live-chat-screen body{overflow:hidden;overscroll-behavior:none}
 .live-chat-screen #app{position:fixed;top:var(--live-chat-top,0px);left:50%;transform:translateX(-50%);width:100%;max-width:480px;height:var(--live-chat-height,100dvh);min-height:0;display:flex;flex-direction:column;padding:12px 16px 92px!important;overflow:hidden;background:var(--paper)}
 .live-chat-screen #app>.app-head{flex:none;margin:0;padding-bottom:10px;border-bottom:1px solid var(--line)}
 .live-chat-screen #app>.notice{flex:none;margin:8px 0}
 .live-chat-screen #live-history{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 4px 8px;overflow-anchor:auto}
 .live-chat-screen #live-message{position:static;inset:auto;flex:none;margin:0 -16px;padding:10px 14px;border-top:1px solid var(--line);background:var(--paper);align-items:flex-end}
 .live-chat-screen #live-message textarea{margin:0;min-height:44px;max-height:100px;padding:10px 12px;font-size:16px;line-height:22px}
 .live-chat-screen #live-message textarea:focus{outline:none;box-shadow:none;border-color:var(--line)}
 .live-chat-screen #live-message :is(button,label){flex:none}
 .live-chat-screen :is(#live-photo-note,#live-message-error){flex:none;margin:0;font-size:12px;padding:0 0 6px}
 .live-chat-screen :is(#live-photo-note,#live-message-error):empty{display:none}
 .live-chat-keyboard #app{padding-bottom:0!important}
 .live-chat-keyboard #nav{display:none}
}

#app #live-message button[aria-label="Envoyer le message"] .icon{color:#171b16!important}
#app #live-message button[aria-label="Envoyer le message"] .icon .accent-stroke{stroke:#171b16}
#app #live-message button[aria-label="Envoyer le message"] .icon .accent-fill{fill:#171b16}

/* Keep floating preferences clear of the private-message composer. */
.live-chat-screen .audience-app-settings{display:none!important}


/* Public member identity: avatar first, options aligned at the top right. */
.public-profile-header{margin:8px 0 20px;min-width:0}
.public-profile-top{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.public-profile-top>.avatar{width:80px;height:80px;flex:0 0 80px}
.public-profile-menu{flex:0 0 44px;font-size:22px;font-weight:800;line-height:1}
.public-profile-header h1.compact{margin:16px 0 8px;overflow-wrap:anywhere}
.public-profile-bio{margin-top:14px;overflow-wrap:anywhere}

.message-list-item .grow{min-width:0}
.message-list-preview{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.message-draft-label{font-weight:600;color:var(--ink);font-style:italic}
