.pwa-install-button {
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(8, 145, 178, 0.34);
  border-radius: 0.75rem;
  background: #0f172a;
  color: #f8fafc;
  padding: 0.45rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.pwa-install-button:hover {
  border-color: rgba(34, 211, 238, 0.8);
  background: #172554;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.2);
  transform: translateY(-1px);
}

.pwa-install-button:active {
  transform: translateY(0);
}

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

.pwa-install-button svg {
  height: 1rem;
  width: 1rem;
  flex: 0 0 1rem;
}

.pwa-install-dialog {
  width: min(calc(100% - 2rem), 28rem);
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 1rem;
  background: #ffffff;
  color: #172033;
  padding: 0;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
}

.pwa-install-dialog::backdrop {
  background: rgba(15, 23, 42, 0.64);
  backdrop-filter: blur(4px);
}

.pwa-install-dialog-inner {
  position: relative;
  padding: 1.5rem;
}

.pwa-install-dialog-icon {
  display: grid;
  height: 3rem;
  width: 3rem;
  place-items: center;
  border-radius: 0.75rem;
  background: #0f172a;
  color: #67e8f9;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.18);
}

.pwa-install-dialog-icon svg {
  height: 1.5rem;
  width: 1.5rem;
}

.pwa-install-dialog-title {
  margin: 1rem 2.5rem 0 0;
  color: #0f172a;
  font-size: 1.35rem;
  font-weight: 950;
  line-height: 1.2;
}

.pwa-install-dialog-body {
  margin: 0.6rem 0 0;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.6;
}

.pwa-install-steps {
  display: grid;
  gap: 0.75rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.pwa-install-step {
  display: grid;
  grid-template-columns: 1.85rem minmax(0, 1fr);
  align-items: start;
  gap: 0.65rem;
  color: #334155;
  font-size: 0.9rem;
  line-height: 1.5;
}

.pwa-install-step-number {
  display: grid;
  height: 1.85rem;
  width: 1.85rem;
  place-items: center;
  border-radius: 999px;
  background: #e0f2fe;
  color: #075985;
  font-size: 0.75rem;
  font-weight: 950;
}

.pwa-install-dialog-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  display: grid;
  height: 2.25rem;
  width: 2.25rem;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 0.65rem;
  background: #f8fafc;
  color: #334155;
}

.pwa-install-dialog-close:hover {
  background: #eef2ff;
  color: #0f172a;
}

.pwa-install-dialog-close svg {
  height: 1rem;
  width: 1rem;
}

html[data-theme="dark"] .pwa-install-button {
  border-color: rgba(103, 232, 249, 0.42);
  background: #e2e8f0;
  color: #0f172a;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .pwa-install-button:hover {
  border-color: #67e8f9;
  background: #ffffff;
}

html[data-theme="dark"] .pwa-install-dialog {
  border-color: rgba(148, 163, 184, 0.32);
  background: #0f172a;
  color: #e5edf7;
}

html[data-theme="dark"] .pwa-install-dialog-title {
  color: #f8fafc;
}

html[data-theme="dark"] .pwa-install-dialog-body,
html[data-theme="dark"] .pwa-install-step {
  color: #cbd5e1;
}

html[data-theme="dark"] .pwa-install-dialog-close {
  border-color: rgba(148, 163, 184, 0.34);
  background: #172033;
  color: #cbd5e1;
}

html[data-theme="dark"] .pwa-install-dialog-close:hover {
  background: #1e293b;
  color: #ffffff;
}

@media (display-mode: standalone) {
  .pwa-install-button {
    display: none !important;
  }
}

@media (max-width: 30rem) {
  .pwa-install-dialog-inner {
    padding: 1.25rem;
  }
}
