.im-banner-host {
  position: fixed;
  left: 12px;
  right: 12px;
  top: calc(10px + var(--safe-top, env(safe-area-inset-top, 0px)));
  z-index: 2000;
  pointer-events: none;
}
body.qa-on .im-banner-host {
  top: calc(52px + var(--safe-top, env(safe-area-inset-top, 0px)));
}
.im-banner-veil {
  position: fixed;
  inset: 0;
  z-index: 1999;
  background: rgba(0, 0, 0, .2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}
.im-banner-veil.is-on {
  opacity: 1;
  pointer-events: auto;
}
.im-banner-veil[hidden] { display: none; }
.im-banner {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 1;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  backdrop-filter: saturate(180%) blur(22px);
  box-shadow: 0 12px 32px rgba(0, 18, 56, .2);
  transform: translate3d(0, 0, 0);
  opacity: 1;
  touch-action: none;
  will-change: transform, opacity;
  transition:
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 280ms ease,
    box-shadow 240ms ease;
}
.im-banner.is-prep {
  transform: translate3d(0, -130%, 0);
  opacity: 0;
}
.im-banner.is-out {
  transform: translate3d(0, -130%, 0);
  opacity: 0;
  pointer-events: none;
}
.im-banner.is-drag { transition: none; }
.im-banner.is-back {
  transform: translate3d(0, 11px, 0) scale(0.96);
  opacity: .86;
  box-shadow: 0 6px 16px rgba(0, 18, 56, .12);
  pointer-events: none;
}
.im-banner.is-back-2 {
  transform: translate3d(0, 20px, 0) scale(0.92);
  opacity: .7;
  box-shadow: none;
  pointer-events: none;
}
.im-banner-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px 12px;
}
.im-banner-face {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: #e8eef8;
  color: #007AFF;
  font-size: 16px;
  font-weight: 700;
  line-height: 40px;
  text-align: center;
}
.im-banner-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.im-banner-main {
  min-width: 0;
  flex: 1 1 auto;
}
.im-banner-main b {
  display: block;
  overflow: hidden;
  color: #1c1c1e;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.im-banner-main span {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: #636366;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.im-banner-badge {
  flex: 0 0 auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #ff3b30;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
.im-banner-badge[hidden] { display: none; }
.im-banner-peek {
  max-height: 0;
  overflow: hidden;
  padding: 0 12px;
  transition: max-height 360ms cubic-bezier(0.22, 1, 0.36, 1), padding 360ms ease;
}
.im-banner.is-open .im-banner-peek {
  max-height: 148px;
  padding: 0 12px 12px;
}
.im-banner-line {
  margin: 0;
  padding: 6px 0 0;
  color: #3a3a3c;
  font-size: 13px;
  line-height: 1.35;
  word-break: break-word;
}
.im-banner-line + .im-banner-line {
  border-top: 0.5px solid rgba(60, 60, 67, .12);
  margin-top: 6px;
}
.im-banner-line b {
  display: block;
  margin-bottom: 2px;
  color: #8e8e93;
  font-size: 11px;
  font-weight: 600;
}
.im-banner-hint {
  margin: 8px 0 0;
  color: #8e8e93;
  font-size: 11px;
  text-align: center;
}
@media (prefers-reduced-motion: reduce) {
  .im-banner,
  .im-banner-peek,
  .im-banner-veil {
    transition: opacity 180ms ease;
  }
  .im-banner,
  .im-banner.is-prep,
  .im-banner.is-out,
  .im-banner.is-back,
  .im-banner.is-back-2 {
    transform: none;
  }
}
