
/* V29.1 Voting Manager + Nominee Builder */
.mlos-vm-wrap{
  --vm-deep:#051f20;
  --vm-dark:#0b2b26;
  --vm-green:#0d533b;
  --vm-lime:#9dff38;
  --vm-line:#d8e4de;
  --vm-muted:#60766c;
  max-width:1440px;
  margin:0 auto;
  padding:26px;
}
.mlos-vm-hero{
  padding:42px;
  border-radius:34px;
  background:linear-gradient(135deg,var(--vm-deep),var(--vm-dark));
  color:#fff;
  box-shadow:0 24px 70px rgba(5,31,32,.16);
  margin-bottom:18px;
}
.mlos-vm-hero span,
.mlos-vm-panel-head span,
.mlos-vm-poll-card span,
.mlos-vm-preview small{
  color:var(--vm-lime);
  text-transform:uppercase;
  letter-spacing:.14em;
  font-weight:1000;
  font-size:.78rem;
}
.mlos-vm-hero h1{
  margin:.2rem 0 .5rem;
  font-size:clamp(2.2rem,6vw,4.8rem);
  line-height:.92;
  letter-spacing:-.06em;
}
.mlos-vm-hero p{
  max-width:860px;
  margin:0;
  color:#d9eee2;
  line-height:1.55;
}
.mlos-vm-actions,
.mlos-vm-submit-row,
.mlos-vm-poll-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}
.mlos-vm-actions{
  margin:0 0 18px;
}
.mlos-vm-actions a,
.mlos-vm-btn,
.mlos-vm-mini{
  min-height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:9px 14px;
  border-radius:15px;
  border:1px solid var(--vm-line);
  background:#fff;
  color:var(--vm-deep);
  text-decoration:none;
  font-weight:1000;
  cursor:pointer;
}
.mlos-vm-actions a.primary,
.mlos-vm-btn.primary{
  background:var(--vm-lime);
  border-color:var(--vm-lime);
  color:var(--vm-deep);
}
.mlos-vm-mini{
  min-height:36px;
  padding:7px 11px;
  font-size:.86rem;
}
.mlos-vm-mini.danger{
  background:#fff1f1;
  border-color:#f0b8b8;
  color:#9a2525;
}
.mlos-vm-panel{
  background:#fff;
  border:1px solid var(--vm-line);
  border-radius:26px;
  box-shadow:0 18px 44px rgba(5,31,32,.08);
  overflow:visible;
  margin-bottom:20px;
}
.mlos-vm-panel-head{
  padding:22px;
  border-bottom:1px solid var(--vm-line);
  background:#fbfdfb;
  border-radius:26px 26px 0 0;
}
.mlos-vm-panel-head h2{
  margin:.2rem 0 .4rem;
  color:var(--vm-deep);
}
.mlos-vm-panel-head p{
  margin:0;
  color:var(--vm-muted);
  line-height:1.5;
}
.mlos-vm-body{
  padding:18px;
}
.mlos-vm-form{
  display:grid;
  gap:16px;
}
.mlos-vm-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.mlos-vm-form label{
  display:grid;
  gap:7px;
  font-weight:900;
  color:var(--vm-deep);
}
.mlos-vm-form input,
.mlos-vm-form select,
.mlos-vm-form textarea{
  width:100%;
  min-height:48px;
  padding:12px 14px;
  border:1px solid var(--vm-line);
  border-radius:16px;
  background:#fff;
  color:var(--vm-deep);
  font:inherit;
}
.mlos-vm-form textarea{
  min-height:100px;
}
.mlos-vm-custom-count{
  display:none!important;
}
.mlos-vm-form[data-custom-count="1"] .mlos-vm-custom-count{
  display:grid!important;
}
.mlos-vm-nominee-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px;
  border:1px solid #bde8c6;
  background:#f2fff5;
  border-radius:18px;
}
.mlos-vm-nominee-toolbar strong{
  display:block;
  color:var(--vm-deep);
}
.mlos-vm-nominee-toolbar span{
  display:block;
  color:#49675b;
  font-size:.9rem;
}
.mlos-vm-nominee-slots{
  display:grid;
  gap:12px;
}
.mlos-vm-slot{
  display:grid;
  grid-template-columns:42px minmax(0,1fr) 310px;
  gap:14px;
  align-items:start;
  padding:14px;
  border:1px solid var(--vm-line);
  border-radius:22px;
  background:#fbfdfb;
  position:relative;
}
.mlos-vm-slot.is-hidden{
  display:none!important;
}
.mlos-vm-slot-number{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:15px;
  background:#e8f5ee;
  color:var(--vm-green);
  font-weight:1000;
}
.mlos-vm-slot-fields{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  min-width:0;
}
.mlos-vm-custom-name{
  display:none!important;
}
.mlos-vm-form[data-poll-type="general"] .mlos-vm-entity-field{
  display:none!important;
}
.mlos-vm-form[data-poll-type="general"] .mlos-vm-custom-name{
  display:grid!important;
}
.mlos-vm-search-results{
  position:absolute;
  z-index:50;
  left:70px;
  right:335px;
  top:78px;
  display:none;
  max-height:280px;
  overflow:auto;
  border:1px solid var(--vm-line);
  border-radius:18px;
  background:#fff;
  box-shadow:0 22px 60px rgba(5,31,32,.16);
}
.mlos-vm-search-results.is-open{
  display:grid;
}
.mlos-vm-search-item{
  display:grid;
  grid-template-columns:42px 1fr;
  gap:10px;
  padding:10px;
  border-bottom:1px solid #edf3ef;
  cursor:pointer;
}
.mlos-vm-search-item:hover{
  background:#f2fff5;
}
.mlos-vm-search-item img,
.mlos-vm-preview img{
  width:42px;
  height:42px;
  border-radius:14px;
  object-fit:cover;
  background:#e8f5ee;
}
.mlos-vm-search-item strong{
  display:block;
  color:var(--vm-deep);
}
.mlos-vm-search-item small{
  display:block;
  color:var(--vm-muted);
}
.mlos-vm-preview{
  display:grid;
  grid-template-columns:58px 1fr;
  gap:12px;
  align-items:center;
  padding:12px;
  border:1px dashed var(--vm-line);
  border-radius:20px;
  background:#fff;
  min-height:92px;
}
.mlos-vm-avatar,
.mlos-vm-preview img{
  width:58px;
  height:58px;
  border-radius:18px;
  display:grid;
  place-items:center;
  background:#e8f5ee;
  color:var(--vm-green);
  font-weight:1000;
}
.mlos-vm-preview strong{
  color:var(--vm-deep);
}
.mlos-vm-preview small{
  color:var(--vm-muted);
  letter-spacing:0;
  text-transform:none;
  font-weight:800;
}
.mlos-vm-polls{
  display:grid;
  gap:12px;
}
.mlos-vm-poll-card{
  display:grid;
  grid-template-columns:1fr auto;
  gap:14px;
  align-items:center;
  padding:16px;
  border:1px solid var(--vm-line);
  border-radius:20px;
  background:#fbfdfb;
}
.mlos-vm-poll-card h3{
  margin:.2rem 0 .3rem;
  color:var(--vm-deep);
}
.mlos-vm-poll-card p{
  margin:.15rem 0;
  color:var(--vm-muted);
}
.mlos-vm-poll-card small{
  color:#7a8d85;
}
.mlos-vm-empty{
  display:grid;
  gap:5px;
  padding:24px;
  border:1px dashed var(--vm-line);
  border-radius:20px;
  background:#fbfdfb;
  text-align:center;
}
.mlos-vm-empty strong{
  color:var(--vm-deep);
}
.mlos-vm-empty span{
  color:var(--vm-muted);
}

/* Public voting polish */
.mlos-poll-card{
  border-radius:28px!important;
  overflow:hidden;
}
.mlos-nominee-choice{
  border-radius:22px!important;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.mlos-nominee-choice:hover{
  transform:translateY(-2px);
  box-shadow:0 16px 34px rgba(5,31,32,.10);
}
.mlos-nominee-visual{
  width:68px!important;
  height:68px!important;
  border-radius:22px!important;
}
.mlos-nominee-visual img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  border-radius:inherit!important;
}
.mlos-nominee-visual.is-small{
  width:42px!important;
  height:42px!important;
  border-radius:14px!important;
}

@media(max-width:980px){
  .mlos-vm-grid{
    grid-template-columns:1fr 1fr;
  }
  .mlos-vm-slot{
    grid-template-columns:42px minmax(0,1fr);
  }
  .mlos-vm-preview{
    grid-column:2;
  }
  .mlos-vm-search-results{
    left:70px;
    right:14px;
  }
  .mlos-vm-poll-card{
    grid-template-columns:1fr;
  }
}
@media(max-width:680px){
  .mlos-vm-wrap{padding:14px}
  .mlos-vm-hero{padding:26px;border-radius:24px}
  .mlos-vm-grid{
    grid-template-columns:1fr;
  }
  .mlos-vm-slot{
    grid-template-columns:1fr;
  }
  .mlos-vm-slot-number{
    width:36px;
    height:36px;
  }
  .mlos-vm-preview{
    grid-column:auto;
  }
  .mlos-vm-search-results{
    position:relative;
    left:auto;
    right:auto;
    top:auto;
    margin-top:6px;
  }
}


/* V29.2 smart search polish */
.mlos-vm-search-item small::after{
  content:"";
}
.mlos-vm-slot.needs-selection{
  border-color:#9dff38;
  box-shadow:0 0 0 3px rgba(157,255,56,.24);
}
.mlos-vm-search-results.is-open{
  animation:mlosVmSearchIn .16s ease both;
}
@keyframes mlosVmSearchIn{
  from{opacity:0;transform:translateY(-3px)}
  to{opacity:1;transform:translateY(0)}
}

/* V29.3 search reliability */
.mlos-vm-search-item span.mlos-vm-avatar{
  flex-shrink:0;
}
.mlos-vm-search-results .mlos-vm-search-item small{
  line-height:1.35;
}
