.install-sheet {
  position: fixed;
  inset: 0;
  z-index: 24;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease);
}

.install-sheet[hidden] {
  display: none !important;
}

.install-sheet.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.install-sheet__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 6, 10, 0.08), rgba(4, 6, 10, 0.42));
}

.install-sheet__dialog {
  position: absolute;
  left: 50%;
  bottom: calc(var(--safe-bottom) + var(--menu-h) + 16px);
  transform: translate(-50%, 18px);
  width: min(520px, calc(100% - 20px));
  display: grid;
  gap: 14px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(190, 206, 236, 0.12);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(16, 20, 28, 0.98), rgba(8, 10, 16, 0.98)),
    rgba(255, 255, 255, 0.03);
  box-shadow:
    0 24px 44px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px) saturate(122%);
  -webkit-backdrop-filter: blur(20px) saturate(122%);
  transition: transform var(--ease), opacity var(--ease);
}

.install-sheet.is-visible .install-sheet__dialog {
  transform: translate(-50%, 0);
}

.install-sheet__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(239, 243, 249, 0.76);
  font: inherit;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color var(--ease), background var(--ease), color var(--ease);
}

.install-sheet__close:hover,
.install-sheet__close:focus-visible {
  border-color: rgba(125, 183, 255, 0.28);
  background: rgba(125, 183, 255, 0.08);
  color: var(--ink-0);
  outline: none;
}

.install-sheet__icon {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 24% 20%, rgba(143, 209, 255, 0.34), transparent 46%),
    linear-gradient(145deg, rgba(71, 122, 255, 0.98), rgba(82, 210, 255, 0.8));
  box-shadow:
    0 18px 36px rgba(44, 94, 214, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.install-sheet__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.install-sheet__title {
  margin: 0;
  color: var(--ink-0);
  font-size: 1.34rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.install-sheet__copy {
  margin: -4px 0 0;
  color: rgba(225, 231, 239, 0.72);
  font-size: 0.94rem;
  line-height: 1.45;
  text-wrap: pretty;
}

.install-sheet__benefits {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.install-sheet__benefit {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(238, 242, 247, 0.88);
  font-size: 0.83rem;
  line-height: 1.35;
}

.install-sheet__benefit-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(111, 171, 255, 1), rgba(115, 230, 255, 0.92));
  box-shadow: 0 0 0 4px rgba(103, 175, 255, 0.1);
}

.install-sheet__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 10px;
  margin-top: 4px;
}

.install-sheet__primary,
.install-sheet__secondary {
  min-height: 52px;
  border-radius: 18px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 730;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform var(--ease), border-color var(--ease), background var(--ease), color var(--ease), opacity var(--ease);
}

.install-sheet__primary {
  border-color: rgba(107, 173, 255, 0.34);
  background:
    linear-gradient(135deg, rgba(74, 123, 255, 0.98), rgba(82, 214, 255, 0.86)),
    rgba(255, 255, 255, 0.04);
  color: #f7fbff;
  box-shadow: 0 16px 30px rgba(41, 96, 206, 0.24);
}

.install-sheet__primary:hover,
.install-sheet__primary:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.install-sheet__primary[disabled] {
  opacity: 0.72;
  cursor: wait;
  transform: none;
}

.install-sheet__secondary {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(239, 243, 249, 0.86);
}

.install-sheet__secondary:hover,
.install-sheet__secondary:focus-visible {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  outline: none;
}

@media (min-width: 769px) {
  .install-sheet {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .install-sheet__dialog {
    width: calc(100% - 16px);
    bottom: calc(var(--safe-bottom) + var(--menu-h) + 10px);
    padding: 16px 16px 14px;
    border-radius: 24px;
  }

  .install-sheet__icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
  }

  .install-sheet__title {
    font-size: 1.18rem;
  }

  .install-sheet__copy {
    font-size: 0.86rem;
  }

  .install-sheet__benefit {
    font-size: 0.77rem;
  }

  .install-sheet__actions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .install-sheet__primary,
  .install-sheet__secondary {
    min-height: 48px;
    font-size: 0.8rem;
    border-radius: 16px;
  }
}
