/* SILEUS visual editor - advanced edit mode */
body.visual-editing .ep{display:none!important}
body.visual-editing{--ve-accent:rgba(210,218,235,.72)}
body.visual-editing .ve-editable{
  outline:1px dashed rgba(210,218,235,.18);
  outline-offset:4px;
  cursor:pointer;
}
body.visual-editing .ve-editable:hover{
  outline-color:rgba(210,218,235,.42);
  box-shadow:0 0 0 9999px rgba(255,255,255,0);
}
body.visual-editing .ve-selected{
  outline:1px solid rgba(220,226,240,.82)!important;
  outline-offset:5px;
  box-shadow:0 0 24px rgba(180,198,230,.12);
}
.ve-panel{
  position:fixed;
  top:14px;
  right:14px;
  bottom:72px;
  z-index:1800;
  width:min(360px,calc(100vw - 28px));
  display:none;
  flex-direction:column;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.08);
  border-radius:18px;
  background:rgba(8,8,13,.92);
  backdrop-filter:blur(26px) saturate(1.2);
  -webkit-backdrop-filter:blur(26px) saturate(1.2);
  box-shadow:0 30px 80px rgba(0,0,0,.42);
  color:rgba(238,241,248,.8);
  font-family:'Noto Sans SC',-apple-system,sans-serif;
  letter-spacing:1px;
}
body.visual-editing .ve-panel{display:flex}
.ve-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:14px 16px;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.ve-title{font-size:12px;color:rgba(255,255,255,.86);letter-spacing:2px}
.ve-sub{font-size:10px;color:rgba(255,255,255,.28);margin-top:2px}
.ve-close,.ve-btn{
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.035);
  color:rgba(238,241,248,.72);
  border-radius:9px;
  font-size:11px;
  font-family:inherit;
  letter-spacing:1px;
  padding:7px 10px;
  cursor:pointer;
  transition:.2s ease;
}
.ve-close{width:30px;height:30px;border-radius:50%;padding:0}
.ve-btn:hover,.ve-close:hover{border-color:rgba(255,255,255,.18);color:rgba(255,255,255,.94);background:rgba(255,255,255,.07)}
.ve-body{overflow:auto;padding:12px 14px 18px}
.ve-section{padding:12px 0;border-bottom:1px solid rgba(255,255,255,.055)}
.ve-section:last-child{border-bottom:0}
.ve-section-title{
  font-size:10px;
  color:rgba(255,255,255,.28);
  text-transform:uppercase;
  letter-spacing:2px;
  margin-bottom:10px;
}
.ve-row{display:grid;grid-template-columns:82px 1fr;gap:8px;align-items:center;margin:8px 0}
.ve-row label{font-size:10px;color:rgba(255,255,255,.42)}
.ve-input,.ve-select,.ve-textarea{
  width:100%;
  min-width:0;
  border:1px solid rgba(255,255,255,.075);
  border-radius:9px;
  background:rgba(255,255,255,.04);
  color:rgba(255,255,255,.86);
  padding:8px 9px;
  outline:none;
  font-family:inherit;
  font-size:11px;
}
.ve-textarea{min-height:76px;resize:vertical;line-height:1.7}
.ve-input[type="color"]{height:34px;padding:3px}
.ve-input[type="range"]{padding:0}
.ve-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.ve-actions{display:flex;flex-wrap:wrap;gap:8px}
.ve-chip{
  border:1px solid rgba(255,255,255,.08);
  border-radius:999px;
  background:rgba(255,255,255,.035);
  color:rgba(255,255,255,.62);
  padding:6px 10px;
  cursor:pointer;
  font-size:10px;
}
.ve-chip.active{border-color:rgba(220,226,240,.45);color:rgba(255,255,255,.9);background:rgba(210,218,235,.08)}
.ve-ruler-x,.ve-ruler-y{
  position:fixed;
  z-index:1700;
  pointer-events:none;
  display:none;
  background:linear-gradient(90deg,rgba(210,218,235,.16),rgba(210,218,235,.02));
}
body.visual-editing .ve-ruler-x,body.visual-editing .ve-ruler-y{display:block}
.ve-ruler-x{left:0;right:0;top:50%;height:1px}
.ve-ruler-y{top:0;bottom:0;left:50%;width:1px;background:linear-gradient(180deg,rgba(210,218,235,.16),rgba(210,218,235,.02))}
.ve-layer-note{font-size:10px;color:rgba(255,255,255,.25);line-height:1.7;margin-top:8px}
.ve-hidden{display:none!important}
body.visual-editing .ve-locked{outline-color:rgba(255,160,160,.22)!important;cursor:not-allowed}

@media(max-width:700px){
  .ve-panel{
    top:auto;
    left:8px;
    right:8px;
    bottom:74px;
    width:auto;
    max-height:54vh;
    border-radius:18px 18px 10px 10px;
  }
  .ve-row{grid-template-columns:72px 1fr}
}
