#login:has(#android-app-download:not([hidden])) {
  margin-bottom: calc(90px + env(safe-area-inset-bottom));
}

#android-app-download:not([hidden]) {
  position: fixed;
  z-index: 20;
  inset-inline: max(12px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-right));
  bottom: calc(10px + env(safe-area-inset-bottom));
  max-width: 460px;
  margin-inline: auto;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  color: #17382e;
  border: 1px solid #dbe6df;
  border-radius: 16px;
  box-shadow: 0 6px 24px #17382e22;
}

.app-download-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-download-name {
  display: grid;
  gap: 2px;
  line-height: 1.2;
}

.app-download-name small {
  color: #69746e;
  font-size: 12px;
  font-weight: 400;
}

.app-download-brand img {
  border-radius: 10px;
}

#android-app-download a,
#wechat-download-guide button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: #17382e;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

#wechat-download-guide {
  position: fixed;
  inset: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) auto auto;
  width: min(330px, calc(100% - 24px));
  box-sizing: border-box;
  margin: 0;
  padding: 20px;
  color: #17382e;
  background: #fff;
  border: 0;
  border-radius: 16px;
}

#wechat-download-guide::backdrop {
  background: #10251d99;
}

#wechat-download-guide h2 {
  margin: 0 32px 12px 0;
  font-size: 20px;
}

#wechat-download-guide ol {
  padding-inline-start: 22px;
  line-height: 1.8;
}

#wechat-download-guide form {
  display: flex;
  justify-content: flex-end;
}

.wechat-download-arrow {
  position: absolute;
  top: 8px;
  right: 15px;
  font-size: 28px;
}
