/* ===== PWA Install Overlay ===== */
#pwa-install-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f4f4;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1a1a1a;
  padding: 24px 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
#pwa-install-overlay * { box-sizing: border-box; margin: 0; padding: 0; }

.pwa-wrap {
  width: 100%;
  max-width: 400px;
}

.pwa-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.pwa-card h1 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}
.pwa-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 24px;
}

.pwa-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}
.pwa-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
}
.pwa-step span {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pwa-note {
  font-size: 13px;
  color: #888;
  text-align: center;
}

.pwa-help {
  margin-top: 20px;
  text-align: center;
}
.pwa-help p {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #1a1a1a;
}
.pwa-help a {
  display: block;
  padding: 12px;
  margin-top: 8px;
  border-radius: 12px;
  background: #e8f0fe;
  color: #1a6ddf;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.pwa-help a:active {
  background: #d4e4fc;
}

@media all and (display-mode: standalone) {
  #pwa-install-overlay { display: none !important; }
}
@media all and (display-mode: fullscreen) {
  #pwa-install-overlay { display: none !important; }
}
