.cv-float {
  position:fixed;bottom:24px;right:24px;z-index:80;
  border:1px solid #d1aaff;border-radius:24px;
  padding:14px 20px;background:#603990;color:white;
  cursor:pointer;box-shadow:0 8px 22px #0008;
}
.cv-editor{max-width:1120px;margin:auto;padding:20px 0 90px}
.cv-head,.cv-bar{
  display:flex;gap:9px;align-items:center;
  flex-wrap:wrap;margin-bottom:16px;
}
.cv-head{justify-content:space-between}
.cv-head h2{margin-right:auto}
.cv-block{
  padding:16px;margin:22px 0;background:#160e28c9;
  border:1px solid #b894ed77;border-radius:17px;
}
.cv-bar{
  padding-bottom:12px;border-bottom:1px solid #ffffff2a;
}
.cv-btn,.cv-select{
  padding:8px 12px;border:1px solid #ae8bd6;
  background:#37204c;color:#f4ecff;
  border-radius:9px;cursor:pointer;
}
.cv-grip{
  cursor:grab;color:#bca3df;
  font-size:22px;margin-right:auto;
}
.cv-input,.cv-title,.cv-caption{
  width:100%;min-width:0;box-sizing:border-box;
  border:1px solid transparent;
  border-bottom:1px solid #ba92e46b;
  background:transparent;color:#f1eaff;
  font:inherit;line-height:1.7;padding:8px;
  resize:vertical;
}
.cv-input{min-height:140px}
.cv-title{font-size:26px;font-weight:700}
.cv-caption{font-size:13px}
.cv-split,.cv-columns{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:25px;align-items:center;
}
.cv-split.right .cv-picture{order:2}
.cv-picture{min-width:0;text-align:center}
.cv-picture img{
  width:100%;max-height:520px;object-fit:contain;
  border-radius:14px;display:block;margin-bottom:8px;
}
.cv-content{min-width:0}
.cv-content input:focus,.cv-content textarea:focus{
  outline:1px solid #a884dd;
}
.cv-gallery{display:flex;flex-wrap:wrap;gap:10px}
.cv-gallery img{
  height:100px;width:150px;object-fit:cover;
  border-radius:8px;
}
.cv-gallery>div{display:grid;gap:5px}
.cv-mask{
  position:fixed;inset:0;z-index:9000;
  background:#07050cde;display:grid;
  place-items:center;padding:15px;
}
.cv-popup{
  max-width:670px;width:100%;max-height:85vh;
  overflow:auto;box-sizing:border-box;padding:25px;
  background:#1c102c;border:1px solid #c8a5ee;
  border-radius:18px;display:grid;gap:15px;
}
.cv-popup .cv-gallery button{
  background:transparent;border:1px solid #b78adb;
  cursor:pointer;padding:3px;
}
.cv-state{color:#d9b2ff;margin:18px 0}
@media(max-width:700px){
  .cv-split,.cv-columns,
  .codex-block-split{
    grid-template-columns:1fr!important;
  }
  .cv-split.right .cv-picture{order:initial}
}
