/* Phones: the chat list takes the whole screen and its header scrolls away with it. An open chat gets the bottom bar's space too. */
@media (max-width:720px){
 html body main#app.sidebar-open #chatSidebar.sidebar{width:100vw;max-width:100vw;min-width:0;padding:6px 10px 10px;display:grid;grid-template-columns:auto auto 1fr;grid-auto-rows:max-content;align-content:start;gap:2px 8px;overflow:hidden auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
 html body main#app.sidebar-open #chatSidebar.sidebar>*{grid-column:1/-1;flex:none;min-height:0}
 html body #chatSidebar .mobile-sidebar-heading{position:absolute;top:6px;right:8px;margin:0;padding:0;border:0;z-index:2}
 html body #chatSidebar .mobile-sidebar-heading strong{display:none}
 html body #chatSidebar .sidebar-top{margin:0;padding:2px 44px 2px 2px;min-height:40px;align-items:center}
 html body #chatSidebar .polish-heading{margin:0;min-height:38px;padding-block:0}
 html body #chatSidebar .polish-search{margin:0 0 2px}
 html body #chatSidebar .room-filters{margin:0;min-height:36px}
 html body main#app.sidebar-open #chatSidebar #openSaved{grid-column:1;width:auto;margin:0;min-height:34px}
 html body main#app.sidebar-open #chatSidebar #wordGameEntry129{grid-column:2;width:auto;margin:0;min-height:34px}
 html body main#app.sidebar-open #chatSidebar .chat-folder-bar{grid-column:3;justify-self:end;width:auto;margin:0;min-height:34px;padding:0;border:0}
 html body main#app.sidebar-open #chatSidebar .chat-folder-bar:has(.chat-folder-tabs:not([hidden])){grid-column:1/-1;justify-self:stretch}
 html body #chatSidebar #rooms,html body #chatSidebar .people-section{max-height:none;min-height:0;overflow:visible}
 html body #chatSidebar>footer{display:none}
 html body #chatSidebar #rooms .room-preview{max-width:none}
 html[data-look] body main#app:not(.sidebar-open):not(.tool-open){height:100dvh}
 html body main#app:not(.sidebar-open):not(.tool-open)~.design-mobile-nav{display:none}
 html body main#app:not(.sidebar-open):not(.tool-open) #compose{margin-bottom:env(safe-area-inset-bottom)}
 html[data-look] body #toolsPanel{border-radius:0}
 html[data-look] body #toolsPanel .tools-heading{padding-inline:12px}
 html body #profileDialog .profile-actions78>:is(button,a){display:flex;align-items:center;width:100%;min-height:48px;padding:10px 4px 10px 19px!important;font-size:14px;font-weight:600;text-decoration:none;text-align:left}
}
