html {
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
}

.ppx-editor-body {
  margin: 0;
  background: #07111f;
  overflow: hidden;
}

.ppx-nav-link {
  border-radius: 0.75rem;
  padding: 0.65rem 0.9rem;
  color: #64748b;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: 160ms ease;
}

.ppx-nav-link:hover {
  background: #f8fafc;
  color: #0f172a;
}

.ppx-button-primary,
.ppx-button-secondary {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  padding: 0.7rem 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  transition: 160ms ease;
}

.ppx-button-primary {
  background: #1768d7;
  color: #fff;
  box-shadow: 0 10px 26px rgba(23, 104, 215, .18);
}

.ppx-button-primary:hover {
  background: #2d86f5;
  transform: translateY(-1px);
}

.ppx-button-secondary {
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
}

.ppx-button-secondary:hover {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1553ae;
}

.ppx-field {
  display: block;
}

.ppx-field > span {
  display: block;
  margin-bottom: .5rem;
  color: #475569;
  font-size: .75rem;
  font-weight: 700;
}

.ppx-field input,
.ppx-field select,
.ppx-field textarea {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: .75rem;
  background: #fff;
  color: #0f172a;
  font-size: .875rem;
  outline: none;
  transition: 160ms ease;
}

.ppx-field input,
.ppx-field select {
  height: 3rem;
  padding: 0 .875rem;
}

.ppx-field textarea {
  padding: .875rem;
  resize: vertical;
}

.ppx-field input:focus,
.ppx-field select:focus,
.ppx-field textarea:focus {
  border-color: #5ba6ff;
  box-shadow: 0 0 0 4px rgba(45, 134, 245, .1);
}

.ppx-editor-grid {
  background-image:
    linear-gradient(rgba(45, 134, 245, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 134, 245, .055) 1px, transparent 1px);
  background-size: 24px 24px;
}

.ppx-canvas-element {
  position: absolute;
  user-select: none;
}

.ppx-canvas-element.is-selected::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 2px solid #2d86f5;
  border-radius: 8px;
  pointer-events: none;
  box-shadow: 0 0 0 3px rgba(45, 134, 245, .14);
}

.ppx-pin::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  border: 2px solid rgba(45, 134, 245, .35);
  animation: ppx-ping 1.8s cubic-bezier(0, 0, .2, 1) infinite;
}

@keyframes ppx-ping {
  75%, 100% {
    transform: scale(1.55);
    opacity: 0;
  }
}

@media (max-width: 767px) {
  .ppx-button-primary,
  .ppx-button-secondary {
    justify-content: center;
  }
}
