/* Shared mobile shell for Chrome and the Android WebView. */
#oeMobileMenuBtn,
#oeMobileDrawerBackdrop,
#mobileDrawerLogoutBtn { display: none; }

@media (max-width: 900px) {
  html, body {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
  }
  body { margin: 0 !important; padding: 0 !important; }
  body.oe-mobile-drawer-open { overflow: hidden !important; }
  #app.app {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 0 !important;
  }
  #app > .side { display: none !important; }
  #app > .side.oe-mobile-open {
    display: flex !important;
    position: fixed !important;
    z-index: 10001 !important;
    inset: 0 0 0 auto !important;
    width: min(86vw, 340px) !important;
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 0 !important;
    padding: 10px !important;
    overflow: hidden !important;
    box-shadow: -18px 0 40px rgba(0,0,0,.45) !important;
  }
  #app > .side.oe-mobile-open .list {
    overflow-y: auto !important;
    min-height: 0 !important;
    padding-bottom: 12px !important;
  }
  #oeMobileDrawerBackdrop {
    position: fixed !important;
    z-index: 10000 !important;
    inset: 0 !important;
    background: rgba(0,0,0,.58) !important;
    backdrop-filter: blur(2px);
  }
  #oeMobileDrawerBackdrop.open { display: block !important; }
  #app > .main {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    min-width: 0 !important;
    min-height: 0 !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    gap: 0 !important;
  }
  #app .toolbar {
    direction: rtl !important;
    display: flex !important;
    flex: 0 0 auto !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 7px !important;
    min-height: 58px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 7px 9px !important;
    border-width: 0 0 1px !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  #app .toolbar .path,
  #app .toolbar #openNew { display: none !important; }
  #app .toolbar > #suStartBtn[style*="none"] { display: none !important; }
  #app .toolbar #mobileSessionExitBtn[style*="none"] { display: none !important; }
  #app .toolbar > #suStartBtn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0 !important;
    gap: 0 !important;
  }
  #app .toolbar > #suStartBtn .su-footprints { font-size: 21px !important; }
  #app .toolbar > #suStartBtn > span:last-child { display: none !important; }
  #app .toolbar .oe-account { flex: 0 1 auto; min-width: 0; }
  #app .toolbar .oe-account .who {
    display: block !important;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: right;
    color: #eef8ff;
  }
  #app .toolbar > .btn,
  #app .toolbar .bale-header-group,
  #oeMobileMenuBtn {
    flex: 0 0 44px !important;
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    border-radius: 11px !important;
    box-shadow: none !important;
  }
  #oeMobileMenuBtn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 21px !important;
    background: #1c2f47 !important;
  }
  #app .toolbar .bale-header-group { display: inline-flex !important; }
  #app .toolbar #bale-bell-btn {
    width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
  }
  #app .toolbar #refreshBtn { font-size: 0 !important; }
  #app .toolbar #refreshBtn::after { content: '🏠'; font-size: 20px !important; }
  #app .viewer,
  #app #viewerWrap {
    position: relative !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    width: 100% !important;
    border: 0 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
  }
  #app .viewer iframe { width: 100% !important; height: 100% !important; }
  #app .splash { border-radius: 0 !important; }
  #mobileDrawerLogoutBtn {
    display: flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 44px !important;
    margin-top: 8px !important;
    background: #8b2432 !important;
  }
}
