.app-install-shell {
  position: fixed;
  inset: auto 1rem 1rem auto;
  z-index: 1400;
  pointer-events: none;
}

.app-install-launcher,
.app-install-dialog,
.app-install-backdrop {
  pointer-events: auto;
}

.app-install-launcher {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0.72rem 1rem;
  border: 1px solid rgba(22, 157, 255, 0.22);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(248, 251, 255, 0.96) 0%, rgba(234, 244, 255, 0.98) 45%, rgba(232, 248, 235, 0.96) 100%);
  color: #113054;
  font-weight: 700;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.app-install-launcher:hover,
.app-install-launcher:focus {
  transform: translateY(-1px);
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.22);
}

.app-install-launcher__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(22, 157, 255, 0.16), rgba(103, 216, 100, 0.16));
}

.app-install-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 13, 25, 0.45);
  backdrop-filter: blur(6px);
}

.app-install-dialog {
  position: fixed;
  right: 1rem;
  bottom: calc(1rem + 60px);
  width: min(24rem, calc(100vw - 2rem));
  padding: 1.15rem 1.15rem 1rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(22, 157, 255, 0.18);
  background: linear-gradient(180deg, rgba(251, 253, 255, 0.98) 0%, rgba(240, 247, 255, 0.98) 100%);
  color: #12233b;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.22);
}

.app-install-dialog__close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: rgba(18, 35, 59, 0.08);
  color: inherit;
  font-size: 1.15rem;
  line-height: 1;
}

.app-install-dialog__eyebrow {
  display: inline-flex;
  margin-bottom: 0.7rem;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(22, 157, 255, 0.12), rgba(103, 216, 100, 0.12));
  color: #48698f;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-install-dialog__title {
  margin: 0 0 0.55rem;
  padding-right: 2rem;
  font-size: 1.22rem;
  line-height: 1.2;
}

.app-install-dialog__copy,
.app-install-dialog__hint {
  margin: 0;
  color: #536985;
  line-height: 1.55;
}

.app-install-steps {
  margin: 0.9rem 0 0;
  padding-left: 1.15rem;
  color: #213954;
}

.app-install-steps li + li {
  margin-top: 0.45rem;
}

.app-install-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.app-install-dialog__hint {
  margin-top: 0.7rem;
  font-size: 0.88rem;
}

html.dark-mode .app-install-launcher {
  border-color: rgba(31, 199, 255, 0.18);
  background: linear-gradient(135deg, rgba(18, 33, 58, 0.96) 0%, rgba(21, 45, 81, 0.97) 48%, rgba(18, 66, 47, 0.9) 100%);
  color: #eef4ff;
  box-shadow: 0 18px 36px rgba(2, 6, 23, 0.42);
}

html.dark-mode .app-install-launcher__icon {
  background: linear-gradient(135deg, rgba(22, 157, 255, 0.22), rgba(103, 216, 100, 0.22));
}

html.dark-mode .app-install-dialog {
  border-color: rgba(31, 199, 255, 0.16);
  background: linear-gradient(180deg, rgba(14, 28, 50, 0.98) 0%, rgba(11, 23, 42, 0.98) 100%);
  color: #f3f8ff;
  box-shadow: 0 26px 56px rgba(2, 6, 23, 0.48);
}

html.dark-mode .app-install-dialog__eyebrow {
  color: #b4dfff;
}

html.dark-mode .app-install-dialog__copy,
html.dark-mode .app-install-dialog__hint {
  color: #a9bad1;
}

html.dark-mode .app-install-steps {
  color: #dbe7f8;
}

html.dark-mode .app-install-dialog__close {
  background: rgba(255, 255, 255, 0.08);
  color: #f3f8ff;
}

@media (max-width: 991.98px) {
  .app-install-shell {
    inset: auto 0.75rem calc(0.75rem + env(safe-area-inset-bottom, 0px)) auto;
  }

  .app-install-launcher {
    min-height: 42px;
    padding: 0.68rem 0.92rem;
  }

  .app-install-launcher__label {
    display: none;
  }

  .app-install-dialog {
    right: 0.75rem;
    left: 0.75rem;
    bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px) + 56px);
    width: auto;
  }
}
