.meai-pwa-banner,
.meai-pwa-help,
.meai-pwa-banner *,
.meai-pwa-help * {
  box-sizing: border-box;
}

.meai-pwa-banner {
  position: fixed;
  z-index: 2147483000;
  left: max(12px, env(safe-area-inset-left));
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  max-width: 680px;
  margin: 0 auto;
  padding: 14px 14px 14px 16px;
  border: 1px solid rgba(148, 163, 184, .35);
  border-radius: 18px;
  background: rgba(255, 255, 255, .97);
  color: #0f172a;
  box-shadow: 0 22px 65px rgba(15, 23, 42, .24);
  backdrop-filter: blur(14px);
  font-family: inherit;
}

.meai-pwa-banner__icon,
.meai-pwa-help__icon {
  display: block;
  border-radius: 14px;
}

.meai-pwa-banner__copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.meai-pwa-banner__copy strong {
  font-size: 15px;
  line-height: 1.25;
}

.meai-pwa-banner__copy span {
  color: #475569;
  font-size: 13px;
  line-height: 1.35;
}

.meai-pwa-banner__action,
.meai-pwa-help__done {
  min-height: 42px;
  border: 0;
  border-radius: 11px;
  padding: 10px 15px;
  background: #0f172a;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  white-space: nowrap;
}

.meai-pwa-banner__close,
.meai-pwa-help__close {
  position: absolute;
  top: 3px;
  right: 5px;
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  color: #64748b;
  font: inherit;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}

.meai-pwa-help {
  position: fixed;
  z-index: 2147483100;
  inset: 0;
  display: grid;
  place-items: end center;
  padding: 18px max(14px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  background: rgba(15, 23, 42, .56);
  font-family: inherit;
}

.meai-pwa-help__panel {
  position: relative;
  width: min(100%, 520px);
  border-radius: 24px;
  padding: 26px;
  background: #fff;
  color: #0f172a;
  box-shadow: 0 28px 85px rgba(15, 23, 42, .34);
}

.meai-pwa-help__panel h2 {
  margin: 18px 0 14px;
  font-size: 23px;
  line-height: 1.2;
}

.meai-pwa-help__panel p {
  margin: 0 0 14px;
  color: #334155;
  line-height: 1.5;
}

.meai-pwa-help__panel ol {
  margin: 0 0 22px;
  padding-left: 22px;
  color: #334155;
  line-height: 1.65;
}

.meai-pwa-help__done {
  width: 100%;
}

.is-pwa-standalone [data-pwa-install] {
  display: none !important;
}

@media (max-width: 560px) {
  .meai-pwa-banner {
    grid-template-columns: 46px minmax(0, 1fr);
    padding-right: 42px;
  }

  .meai-pwa-banner__icon {
    width: 46px;
    height: 46px;
  }

  .meai-pwa-banner__action {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .meai-pwa-banner,
  .meai-pwa-help__panel {
    animation: meai-pwa-enter .22s ease-out both;
  }

  @keyframes meai-pwa-enter {
    from { opacity: 0; transform: translateY(14px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }
}
