.mobile-list-header,.mobile-bottom-nav,.mobile-settings-extra {display:none;}
@media (max-width:760px), (max-width:1000px) and (max-height:500px) {
  body.client-active > .topbar {display:none;}
  .sidebar > .self,.sidebar > .sidebar-heading,.sidebar > .tabs,.sidebar > .social-tools,.sidebar > .sidebar-footer,.sidebar > #native-rooms-button,.sidebar > #join-room-button {display:none!important;}
  .mobile-list-header {display:flex;align-items:center;justify-content:space-between;gap:8px;padding:calc(8px + env(safe-area-inset-top)) 16px 4px;flex-shrink:0;}
  .mobile-list-header .mobile-nav-button {flex:0 0 44px;max-width:44px;border:0;background:transparent;}
  .mobile-list-header h2 {margin:0;font-size:22px;line-height:1.3;}
  .sidebar > .search {margin:4px 16px 8px;min-height:40px;border-radius:12px;padding:8px 12px;}
  .sidebar .contact-list {flex:1;padding:0 8px 8px;}
  .sidebar .contact {min-height:52px;padding:8px 10px;gap:10px;}
  .sidebar .contact .avatar {width:32px;height:32px;font-size:12px;flex-shrink:0;}
  .sidebar .contact-main {display:flex;align-items:center;min-width:0;}
  .sidebar .contact-uin,.sidebar .contact-meta {display:none;}
  .sidebar .contact-name {flex:1;min-width:0;}
  .sidebar .contact-status {display:flex;align-items:center;gap:5px;color:var(--muted);font-size:11px;white-space:nowrap;max-width:42%;overflow:hidden;}
  .sidebar .contact-status .dot {flex-shrink:0;}
  .mobile-bottom-nav {display:flex;align-items:center;justify-content:space-around;flex-shrink:0;gap:2px;border-top:1px solid var(--line);background:var(--panel);padding:5px max(8px,env(safe-area-inset-right)) max(5px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));}
  .mobile-nav-button {position:relative;display:grid;place-items:center;flex:1;max-width:80px;min-width:44px;height:48px;min-height:44px;border:0;border-radius:14px;background:transparent;color:var(--muted);padding:10px;box-shadow:none;}
  .mobile-nav-button svg {width:25px;height:25px;}
  .mobile-nav-button.active {color:var(--green);background:var(--bg);}
  .mobile-nav-button:hover {color:var(--text);background:var(--bg);}
  .mobile-nav-button:focus-visible {outline:2px solid var(--green);outline-offset:-2px;}
  .mobile-nav-badge {position:absolute;top:2px;right:10px;border-radius:12px;min-width:17px;height:17px;padding:0 4px;font-size:10px;line-height:17px;background:var(--green);color:var(--panel);font-weight:700;}
  .mobile-nav-badge[hidden] {display:none;}
  .mobile-settings-extra {display:block;padding-bottom:16px;margin-bottom:16px;border-bottom:1px solid var(--line);}
  .mobile-account-name {font-size:18px;}
  .mobile-settings-extra .account-settings-list {grid-template-columns:1fr 1fr;gap:8px;}
  .mobile-settings-extra .ghost {min-height:44px;text-align:center;justify-content:center;}
  body.client-active:not(:has(.conversation)) .toast {bottom:calc(70px + env(safe-area-inset-bottom));}
}
