.code-install-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(7, 20, 27, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.code-install-overlay.is-open {
  display: flex;
}

.code-install-dialog {
  position: relative;
  width: min(100%, 420px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  background: #ffffff;
  color: #18323b;
  box-shadow: 0 28px 80px rgba(7, 20, 27, 0.34);
  text-align: start;
}

.code-install-accent {
  height: 5px;
  background: #f47a20;
}

.code-install-content {
  padding: 28px;
}

.code-install-close {
  position: absolute;
  inset-block-start: 16px;
  inset-inline-end: 16px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  color: #475569;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.code-install-close:hover {
  border-color: #f47a20;
  background: #fff7ed;
  color: #c2410c;
}

.code-install-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-inline-end: 44px;
}

.code-install-logo {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  object-fit: contain;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  padding: 5px;
}

.code-install-kicker {
  margin: 0 0 4px;
  color: #f47a20;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.code-install-title {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.35;
}

.code-install-description {
  margin: 20px 0 0;
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.8;
}

.code-install-manual {
  display: none;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #e2e8f0;
}

.code-install-manual.is-visible {
  display: block;
}

.code-install-manual-title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 900;
  color: #18323b;
}

.code-install-manual-text {
  margin: 0;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.8;
}

.code-install-actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 10px;
  margin-top: 24px;
}

.code-install-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.code-install-btn:active {
  transform: scale(0.98);
}

.code-install-btn:disabled {
  cursor: wait;
  opacity: 0.65;
}

.code-install-btn-primary {
  background: #f47a20;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(244, 122, 32, 0.24);
}

.code-install-btn-primary:hover {
  background: #df6815;
}

.code-install-btn-secondary {
  border-color: #dbe3ea;
  background: #f8fafc;
  color: #334155;
}

.code-install-btn-secondary:hover {
  border-color: #b8c5cf;
  background: #eef2f6;
}

@media (max-width: 520px) {
  .code-install-overlay {
    align-items: flex-end;
    padding: 12px;
  }

  .code-install-content {
    padding: 24px 20px 20px;
  }

  .code-install-title {
    font-size: 20px;
  }

  .code-install-description {
    margin-top: 16px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .code-install-overlay.is-open .code-install-dialog {
    animation: codeInstallEnter 0.28s ease-out both;
  }

  @keyframes codeInstallEnter {
    from { opacity: 0; transform: translateY(18px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }
}
