
/* Beta 1.0 v9 — restore centered desktop chat; preserve mobile layout. */
@media (min-width: 651px) {
 body[data-page="chat"] main#shell .chat {
   --chat-lane-width:min(760px, calc(100% - 48px));
 }
 body[data-page="chat"] main#shell .chat > .chatHeader.telegramHeader,
 body[data-page="chat"] main#shell .chat > form.composer#sendForm {
   left:50%!important;right:auto!important;
   width:var(--chat-lane-width)!important;
   transform:translateX(-50%)!important;
 }
 body[data-page="chat"] main#shell .chat > .messages {
   left:50%!important;right:auto!important;
   width:var(--chat-lane-width)!important;
   transform:translateX(-50%)!important;
   padding-left:0!important;padding-right:0!important;
 }
 body[data-page="chat"] main#shell .chat > .pinnedMessageBar:not([hidden]){
   left:50%!important;right:auto!important;
   width:var(--chat-lane-width)!important;
   transform:translateX(-50%)!important;
 }
}
/* On phones, allow tapping the account/avatar without drawer interference. */
@media (max-width: 600px) {
 body>.bookmarkDock,body>.world-shared-dock {pointer-events:auto!important;}
 body>.bookmarkDock .profileWrap,body>.world-shared-dock .profileWrap,
 body>.bookmarkDock .profileTrigger,body>.world-shared-dock .profileTrigger,
 body>.bookmarkDock a[href*="account"],body>.world-shared-dock a[href*="account"]{
   pointer-events:auto!important;touch-action:manipulation!important;
   position:relative!important;z-index:2!important;
 }
 body[data-page="profile"] main {position:relative!important;z-index:1!important;padding-top:95px!important;}
 body[data-page="profile"] #authView {display:block;max-width:520px;width:100%;margin:0 auto;}
 body[data-page="profile"] #authView[hidden] {display:none!important;}
 body[data-page="profile"] #authView input,
 body[data-page="profile"] #authView button {touch-action:manipulation;}
}
