@media (max-width: 768px) {
  html.wm-android-native,
  html.wm-android-native body {
    width: 100%;
    min-width: 0;
    overflow-x: clip;
  }

  html.wm-android-native .wm-layout-stable,
  html.wm-android-native .wm-stable-main,
  html.wm-android-native .wm-stable-content {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  html.wm-android-native .wm-stable-topbar {
    display: grid !important;
    grid-template-columns: 40px minmax(0, 1fr) !important;
    grid-template-rows: 40px auto !important;
    column-gap: 8px !important;
    row-gap: 6px !important;
    width: 100% !important;
    min-height: 94px !important;
    height: auto !important;
    padding: 6px 10px 8px !important;
    overflow: visible !important;
  }

  html.wm-android-native .wm-stable-menu-btn {
    display: inline-flex !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: center !important;
  }

  html.wm-android-native .wm-stable-page-title {
    display: block !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
    max-width: 100% !important;
    font-size: 15px !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  html.wm-android-native .wm-stable-top-actions {
    display: flex !important;
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    width: 100% !important;
    min-width: 0 !important;
    gap: 4px !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
  }

  html.wm-android-native .wm-stable-top-actions > * {
    flex: 0 0 auto !important;
    min-width: 0 !important;
  }

  html.wm-android-native .wm-stable-ai-btn,
  html.wm-android-native .wm-stable-icon-btn,
  html.wm-android-native .wm-stable-user-btn {
    display: inline-flex !important;
    position: relative !important;
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    height: 38px !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: center !important;
  }

  html.wm-android-native .wm-stable-lang,
  html.wm-android-native .wm-runtime-lang-select {
    width: 56px !important;
    min-width: 56px !important;
    max-width: 56px !important;
    height: 38px !important;
    padding: 0 2px !important;
    font-size: 11px !important;
  }

  html.wm-android-native #wm-native-update-badge {
    width: 70px !important;
    min-width: 70px !important;
    max-width: 70px !important;
    height: 38px !important;
    padding: 0 3px !important;
    font-size: 11px !important;
    gap: 3px !important;
    border: 1px solid #bad3f2 !important;
    border-radius: 7px !important;
    background: #eef5ff !important;
    color: #245b9a !important;
    font-weight: 750 !important;
    line-height: 1 !important;
    cursor: pointer !important;
  }

  html.wm-android-native #wm-native-update-badge:disabled {
    cursor: wait !important;
    opacity: .72 !important;
  }

  html.wm-android-native #wm-native-update-badge[aria-label^="发现应用更新"] {
    border-color: #6256e0 !important;
    background: #6256e0 !important;
    color: #fff !important;
  }

  html.wm-android-native:has(#wm-native-update-badge) #wm-web-update-badge {
    display: none !important;
  }

  html.wm-android-native .wm-stable-badge {
    position: absolute !important;
    top: -5px !important;
    right: -5px !important;
    margin: 0 !important;
    min-width: 16px !important;
    height: 16px !important;
    padding: 0 3px !important;
    font-size: 10px !important;
  }

  html.wm-android-native .wm-stable-content {
    padding: 10px 10px 82px !important;
    overflow-x: clip !important;
  }

  html.wm-android-native .wm-stable-content > *,
  html.wm-android-native .wm-page-header > *,
  html.wm-android-native .daily-header > * {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  html.wm-android-native .wm-mobile-quick-nav {
    left: 8px !important;
    right: 8px !important;
    bottom: 8px !important;
    width: auto !important;
    min-height: 58px !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
    backdrop-filter: none !important;
    box-shadow: 0 2px 12px rgba(34, 48, 74, .12) !important;
  }

  html.wm-android-native .wm-mobile-quick-nav button {
    min-width: 0 !important;
    min-height: 48px !important;
    padding: 3px 1px !important;
    white-space: nowrap !important;
  }

  html.wm-android-native.wm-android-keyboard-open .wm-mobile-quick-nav {
    display: none !important;
  }

  html.wm-android-native .workbench.wm-stable-workbench {
    min-height: 0 !important;
    padding: 0 !important;
  }

  html.wm-android-native .wm-stable-toolbar,
  html.wm-android-native .wm-stable-hero,
  html.wm-android-native .wm-stable-card,
  html.wm-android-native .wm-stable-task {
    min-height: 0 !important;
    padding: 12px !important;
    box-shadow: none !important;
    overflow-wrap: anywhere !important;
  }

  html.wm-android-native .wm-stable-grid,
  html.wm-android-native .wm-stable-form-grid,
  html.wm-android-native .wm-form-grid,
  html.wm-android-native .wm-im-shell,
  html.wm-android-native .wm-mail-shell,
  html.wm-android-native .wm-approval-shell {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html.wm-android-native .wm-stable-grid > * {
    grid-column: 1 !important;
    min-width: 0 !important;
  }

  html.wm-android-native .wm-stable-actions.hero-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
  }

  html.wm-android-native .wm-stable-actions.hero-actions > * {
    flex: 1 1 110px !important;
    min-width: 0 !important;
    width: auto !important;
  }

  html.wm-android-native .el-dialog,
  html.wm-android-native .wm-stable-modal,
  html.wm-android-native .wm-im-modal {
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
    max-height: calc(100dvh - 20px) !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
  }

  html.wm-android-native .el-dialog__body {
    max-height: calc(100dvh - 140px) !important;
    overflow-y: auto !important;
  }

  html.wm-android-native .wm-table-wrapper,
  html.wm-android-native .el-table {
    max-width: 100% !important;
    overflow-x: auto !important;
  }
}

@media (max-width: 360px) {
  html.wm-android-native .wm-stable-content {
    padding-inline: 8px !important;
  }

  html.wm-android-native .wm-stable-topbar {
    padding-inline: 8px !important;
  }
}
