.content{
  display:flex;
  gap:20px;
}

.left{
  width:35%;
}

.right{
  width:65%;
}

.pre{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  max-height:75vh;
  overflow:auto;
}

.section{
  background:#fafafa;
  padding:15px;
  border-radius:10px;
  border:1px solid #eee;
}

label{
  font-size:13px;
  font-weight:bold;
  display:block;
  margin-bottom:8px;
}

input{
  width:100%;
  padding:10px;
  border:1px solid #ccc;
  border-radius:6px;
  box-sizing:border-box;
}

.btns{
  display:flex;
  gap:10px;
  margin-top:15px;
}

.app{
  flex:1;
  padding:12px;
  border:none;
  border-radius:4px;
  cursor:pointer;
  color:#fff;
  background:linear-gradient(135deg,#0a3d62,#07517d);
}


#preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-height: 80vh;
  overflow: auto;
}

.page {
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
}

.page img {
  width: 100%;
  display: block;
}

.small-btn {
  width: 100%;
  padding: 6px;
  border: none;
  background: #0a3d62;
  color: white;
  cursor: pointer;
}


@media(max-width:768px){
  .content{
    flex-direction:column;
  }
  .left,.right{
    width:100%;
    grid-template-columns:repeat(2,1fr);
  }
}