.pwa-install-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(94, 216, 202, 0.42);
  border-radius: 999px;
  color: #cffff8;
  background: rgba(20, 171, 158, 0.12);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.pwa-install-button:hover,
.pwa-install-button:focus-visible {
  border-color: rgba(94, 216, 202, 0.82);
  background: rgba(20, 171, 158, 0.22);
}

.pwa-status-stack {
  position: fixed;
  z-index: 1200;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  width: min(390px, calc(100vw - 2rem));
  gap: 0.75rem;
  pointer-events: none;
}

.pwa-status-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(104, 192, 236, 0.28);
  border-radius: 16px;
  color: #e8f7ff;
  background: rgba(5, 22, 34, 0.96);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  pointer-events: auto;
}

.pwa-status-card strong,
.pwa-status-card span {
  display: block;
}

.pwa-status-card span {
  margin-top: 0.15rem;
  color: #abc5d5;
  font-size: 0.82rem;
  line-height: 1.4;
}

.pwa-status-card.is-offline {
  border-color: rgba(244, 180, 77, 0.42);
}

.pwa-status-action {
  flex: none;
  min-height: 36px;
  padding: 0.45rem 0.75rem;
  border: 0;
  border-radius: 10px;
  color: #031019;
  background: #58d8ca;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
}

.pwa-install-dialog {
  width: min(440px, calc(100vw - 2rem));
  padding: 0;
  border: 1px solid rgba(104, 192, 236, 0.34);
  border-radius: 20px;
  color: #eaf7ff;
  background: #081d2c;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
}

.pwa-install-dialog::backdrop {
  background: rgba(0, 8, 14, 0.76);
  backdrop-filter: blur(4px);
}

.pwa-dialog-content {
  padding: 1.4rem;
}

.pwa-dialog-content h2 {
  margin: 0 0 0.65rem;
}

.pwa-dialog-content p,
.pwa-dialog-content ol {
  color: #b7cddd;
  line-height: 1.55;
}

.pwa-dialog-content ol {
  padding-left: 1.35rem;
}

.pwa-dialog-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.2rem;
}

.pwa-dialog-close {
  min-height: 40px;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(104, 192, 236, 0.3);
  border-radius: 10px;
  color: #eaf7ff;
  background: rgba(104, 192, 236, 0.08);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.pwa-install-button[hidden],
.pwa-status-card[hidden],
.pwa-install-dialog[hidden] {
  display: none !important;
}

@media (max-width: 720px) {
  .pwa-install-button {
    min-height: 42px;
    padding-inline: 0.72rem;
  }

  .pwa-status-stack {
    right: 0.75rem;
    bottom: 0.75rem;
    width: calc(100vw - 1.5rem);
  }

  .pwa-status-card {
    align-items: flex-start;
  }
}
