@media(max-width:600px){
  /* Lists keep their size; keyboard movement pans the full phone. */
  html,body{width:100%;height:100%;min-height:0;overflow:hidden;overscroll-behavior:none}
  body{position:fixed;inset:0}
  .phone-stage{position:fixed;top:var(--app-top,0px);left:0;right:0;width:100%;height:var(--app-vh,100dvh);margin:0;transform:none}
  .phone,.phone-screen{height:100%;min-height:0}
  /* iOS focuses fields smaller than 16px by zooming the whole page. */
  .phone-screen :is(input:not([type=checkbox]):not([type=radio]),textarea,select,[contenteditable="true"]){font-size:16px!important}
  .phone-screen.font-large .native-composer input{font-size:17px!important}
}

/* The conversation renderer owns anchoring, including delayed media loads. */
.chat-history,.dm-history{overflow-anchor:none;scroll-behavior:auto}
