/* PWA install — compact pill above the mobile tab bar. Never in splash or header. */
.pwa-pill {
  position: fixed;
  z-index: 55;
  left: 16px;
  right: 16px;
  bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto;
  padding: 10px 10px 10px 12px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--card, #121a2b) 92%, transparent);
  border: 1px solid var(--line, #ffffff14);
  box-shadow: 0 12px 32px #00000059;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: var(--text, #f4f7fb);
  font-family: Outfit, system-ui, sans-serif;
}
@media (min-width: 1024px) {
  .pwa-pill {
    left: auto;
    right: 24px;
    bottom: 24px;
    margin: 0;
    width: min(360px, calc(100vw - 48px));
  }
}
.pwa-pill .pwa-logo {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
.pwa-pill .pwa-copy { min-width: 0; flex: 1; }
.pwa-pill .pwa-copy strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.pwa-pill .pwa-copy span {
  display: block;
  margin-top: 1px;
  font-size: 11px;
  line-height: 1.3;
  color: var(--muted, #93a0b5);
}
.pwa-pill .pwa-cta {
  flex: none;
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: var(--accent, #22e58b);
  color: var(--accent-ink, #052014);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: -0.02em;
  padding: 8px 12px;
  cursor: pointer;
  white-space: nowrap;
}
.pwa-pill .pwa-x {
  flex: none;
  appearance: none;
  border: 0;
  background: 0;
  color: var(--muted, #93a0b5);
  font-size: 18px;
  line-height: 1;
  padding: 4px;
  cursor: pointer;
}

.pwa-sheet {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.pwa-sheet[hidden] { display: none !important; }
.pwa-sheet-bg { position: absolute; inset: 0; background: #0009; }
.pwa-sheet-card {
  position: relative;
  width: min(100%, 420px);
  background: var(--card, #121a2b);
  color: var(--text, #f4f7fb);
  border: 1px solid var(--line, #ffffff14);
  border-radius: 28px 28px 0 0;
  padding: 12px 20px calc(22px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -16px 40px #00000066;
  font-family: Outfit, system-ui, sans-serif;
}
.pwa-sheet-handle {
  width: 42px; height: 4px; border-radius: 99px;
  background: color-mix(in srgb, var(--muted, #93a0b5) 50%, transparent);
  margin: 4px auto 14px;
}
.pwa-sheet-card h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.pwa-steps { list-style: none; margin: 12px 0 16px; padding: 0; display: grid; gap: 10px; }
.pwa-steps li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14px; line-height: 1.4; font-weight: 600;
}
.pwa-step-ico {
  flex: none;
  width: 36px; height: 36px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: var(--accent-dim, #22e58b22);
  color: var(--accent, #22e58b);
}
.pwa-step-ico svg { width: 20px; height: 20px; display: block; }
.pwa-sheet-card .pwa-later {
  display: block; width: 100%;
  appearance: none; border: 0; background: 0;
  color: var(--muted, #93a0b5);
  font-weight: 700; padding: 8px; cursor: pointer;
}
