.install-handoff {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(14, 35, 24, .78);
  padding: 22px;
  place-items: center;
  display: grid;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.install-handoff[hidden] { display: none; }

.install-handoff-card {
  background: #fffdfa;
  color: #16221b;
  width: min(560px, 100%);
  border-radius: 24px;
  border-top: 9px solid #e5b84d;
  padding: 30px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .35);
}

.install-handoff-card .eyebrow {
  color: #1d6b45;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px;
  font-weight: 900;
}

.install-handoff-card h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 7vw, 48px);
  line-height: 1;
  margin: 8px 0 14px;
}

.install-handoff-card > p { color: #657069; line-height: 1.6; }

.install-code {
  background: #edf6ef;
  border: 2px dashed #1d6b45;
  border-radius: 12px;
  margin: 20px 0;
  padding: 16px;
  text-align: center;
}

.install-code small { color: #657069; display: block; margin-bottom: 6px; }
.install-code strong { color: #1d6b45; font-size: 22px; letter-spacing: .08em; }
.handoff-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }

.handoff-button {
  cursor: pointer;
  background: #1d6b45;
  color: #fff;
  border: 0;
  border-radius: 10px;
  min-height: 48px;
  padding: 12px 15px;
  text-align: center;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
}

.handoff-button.secondary { background: #246bd2; }
.handoff-close { cursor: pointer; color: #657069; background: transparent; border: 0; width: 100%; padding: 12px; margin-top: 10px; font: inherit; font-weight: 800; }
body.install-handoff-open { overflow: hidden; }

@media (max-width: 580px) {
  .handoff-actions { grid-template-columns: 1fr; }
}
