/* The social composer follows the visible keyboard without moving the live. */
body[data-page="social"].social-keyboard-open .content{padding-bottom:0!important;}
body[data-page="social"].social-keyboard-open #social{flex:0 1 auto;height:var(--social-visible-height);max-height:var(--social-visible-height);padding-bottom:0;}
body[data-page="social"].social-keyboard-open #social .social-private-log{min-height:0;}
body[data-page="social"].social-keyboard-open #social .social-private-form{margin-bottom:0;}
/* In a very short landscape keyboard viewport, keep the back action and
   composer usable. Normal chrome returns as soon as the keyboard fit clears.
   At80px:2px top +14px optional status +2px gap +24px thread header +
   32px composer +4px content gaps leaves2px for the internally scrolling log. */
body[data-page="social"].social-keyboard-compact #social{padding-top:2px;gap:2px;}
body[data-page="social"].social-keyboard-compact #social :is(.social-heading,.social-tabs,.social-thread-tools){display:none;}
body[data-page="social"].social-keyboard-compact #social .social-status:empty{display:none;}
body[data-page="social"].social-keyboard-compact #social .social-status{min-height:0;max-height:14px;margin:0;font-size:10px;line-height:14px;overflow:auto;}
body[data-page="social"].social-keyboard-compact #social .social-content{gap:2px;}
body[data-page="social"].social-keyboard-compact #social .social-thread-heading{flex:0 0 24px;min-height:24px;height:24px;gap:5px;}
body[data-page="social"].social-keyboard-compact #social .social-thread-heading .social-avatar{width:24px;height:24px;flex-basis:24px;}
body[data-page="social"].social-keyboard-compact #social .social-thread-heading strong{font-size:12px;}
body[data-page="social"].social-keyboard-compact #social .social-thread-heading :is(.social-thread-back,.social-more){min-width:24px;width:24px;min-height:24px;height:24px;padding:0;font-size:21px;}
body[data-page="social"].social-keyboard-compact #social .social-private-form{margin-top:0;gap:4px;}
body[data-page="social"].social-keyboard-compact #social .social-private-form textarea{min-height:32px;height:32px;max-height:32px;padding:6px 8px;font-size:16px;line-height:18px;resize:none;}
body[data-page="social"].social-keyboard-compact #social .social-private-form .social-pill{min-height:32px;height:32px;padding:6px 8px;font-size:11px;}
body[data-page="social"].social-keyboard-compact #social .social-thread-connect{flex:1 1 auto;min-height:0;max-height:32px;margin-top:0;}
/* Even a zero-height flex log otherwise retains its16px vertical padding,
   pushing the32px composer beyond an80px keyboard viewport. */
body[data-page="social"].social-keyboard-compact #social .social-private-log{padding-block:0;min-height:0;}

/* Keep unread counts attached to their actual navigation button. */
[data-home-message]{position:relative;}
