@media (max-width: 820px) {
  html,
  body,
  #root {
    width: 100% !important;
    max-width: 100% !important;
    height: 100dvh !important;
    overflow: hidden !important;
    background: #fff !important;
  }

  body:has([class*="_login_"]) .mr-14.text-center,
  body:has([class*="_login_"]) .app-drag.relative.h-10,
  body:has([class*="_login_"]) .absolute.bottom-3.right-3 {
    display: none !important;
  }

  body:has([class*="_login_"]) .min-h-\[420\] {
    min-height: 0 !important;
    width: auto !important;
  }

  body:has([class*="_login_"]) .flex.flex-1.items-center.justify-center {
    align-items: flex-start !important;
    justify-content: center !important;
    width: 100% !important;
    overflow: auto !important;
    padding: 16px 16px 24px !important;
    box-sizing: border-box !important;
  }

  body:has([class*="_login_"]) [class*="_login_"] {
    width: 100% !important;
    max-width: 420px !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    padding: 22px 16px 8px !important;
    box-sizing: border-box !important;
    background: #fff !important;
  }

  .no-mobile.flex.items-center.justify-center {
    display: none !important;
  }

  html.im-phone .no-mobile.app-drag {
    display: flex !important;
    width: 100% !important;
    flex: none !important;
    box-sizing: border-box !important;
    padding-top: env(safe-area-inset-top) !important;
  }

  html.im-phone .no-mobile.app-drag .w-1\/3 {
    width: auto !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  html.im-phone .no-mobile.app-drag .ml-8 {
    margin-left: 12px !important;
    flex: none !important;
  }

  html.im-phone .ant-layout-sider.no-mobile {
    display: block !important;
    position: fixed !important;
    z-index: 40 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: calc(56px + env(safe-area-inset-bottom)) !important;
    flex: none !important;
    border-right: 0 !important;
    border-top: 1px solid #e8eaef !important;
    padding-bottom: env(safe-area-inset-bottom) !important;
    box-sizing: border-box !important;
  }

  html.im-phone .ant-layout-sider.no-mobile .ant-layout-sider-children {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    width: 100% !important;
    height: 56px !important;
    padding: 0 !important;
  }

  html.im-phone .ant-layout-sider.no-mobile .mt-6.flex.flex-col {
    margin-top: 0 !important;
    width: 100% !important;
    height: 56px !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-around !important;
  }

  html.im-phone .ant-layout-sider.no-mobile .mb-6 {
    margin-bottom: 0 !important;
  }

  html.im-phone .ant-layout:has(.ant-layout-sider.no-mobile) {
    padding-bottom: calc(56px + env(safe-area-inset-bottom)) !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
  }

  html.im-phone aside.relative.bg-white {
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
  }

  html.im-phone [class*="_sider_resize_"] {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  html.im-in-conv aside.relative.bg-white {
    display: none !important;
  }

  html.im-in-conv .ant-layout.flex-row > :not(aside) {
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .chat-drawer .ant-drawer-content-wrapper,
  .ant-drawer .ant-drawer-content-wrapper {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100vw !important;
  }

  .ant-modal {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    margin: 12px auto !important;
  }

  .w-\[680px\],
  .w-\[380px\],
  .w-\[350px\],
  .h-\[450px\] {
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
  }

  input,
  textarea,
  select,
  .ant-input {
    font-size: 16px !important;
  }

  .im-back {
    display: none;
  }

  html.im-in-conv .im-back {
    display: flex !important;
    position: fixed;
    z-index: 45;
    top: 8px;
    left: 8px;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 18px;
    background: #fff;
    color: #0c1c33;
    font-size: 28px;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(12, 28, 51, 0.16);
  }
}
