
/* NUJIZ ENHANCEMENT STUDIO V2 */

.nes-legacy{
  display:none!important;
}

#nesStudio{
  --nes-bg:#ffffff;
  --nes-card:#f5f6fa;
  --nes-text:#172033;
  --nes-muted:#596579;
  --nes-border:#dce1eb;
  --nes-purple:#7950ed;
  display:grid;
  gap:14px;
  margin-bottom:18px;
}

html[data-theme="dark"] #nesStudio{
  --nes-bg:#191e29;
  --nes-card:#232a38;
  --nes-text:#f5f6ff;
  --nes-muted:#bac5d9;
  --nes-border:#394357;
}

#nesStudio *{
  box-sizing:border-box;
}

#nesStudio .nes-header{
  background:linear-gradient(135deg,#7744e9,#44239f);
  border:1px solid #9673ff;
  border-radius:17px;
  padding:22px 17px;
}

html body #nesStudio .nes-header *,
html[data-theme="dark"] body #nesStudio .nes-header *{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}

#nesStudio .nes-header small{
  font-size:11px;
  font-weight:800;
  opacity:.85;
}

#nesStudio .nes-header h3{
  font-size:21px;
  margin:12px 0 6px;
  font-weight:900;
}

#nesStudio .nes-header p{
  font-size:14px;
  line-height:1.7;
  margin:0;
}

#nesStudio .nes-section{
  background:var(--nes-bg);
  border:1px solid var(--nes-border);
  border-radius:15px;
  padding:12px;
}

html body #nesStudio h4,
html body #nesStudio strong,
html[data-theme="dark"] body #nesStudio h4,
html[data-theme="dark"] body #nesStudio strong{
  color:var(--nes-text)!important;
  -webkit-text-fill-color:var(--nes-text)!important;
}

#nesStudio h4{
  font-size:16px;
  font-weight:800;
  margin:0 0 13px;
}

#nesStudio .nes-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

#nesStudio .nes-card{
  display:flex;
  flex-direction:column;
  padding:0!important;
  overflow:hidden;
  border:1px solid var(--nes-border)!important;
  background:var(--nes-card)!important;
  border-radius:12px;
  cursor:pointer;
  text-align:start;
  min-width:0;
  width:100%;
  box-shadow:none;
  transition:border-color .2s,box-shadow .2s;
}

#nesStudio .nes-card.selected{
  border:2px solid #9267ff!important;
  box-shadow:0 0 0 2px #8050ed24;
}

#nesStudio .nes-thumb{
  position:relative;
  width:100%;
  aspect-ratio:4/3;
  background:#11141c;
  overflow:hidden;
  display:grid;
  place-items:center;
}

#nesStudio .nes-thumb canvas{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  object-fit:contain!important;
  border:0!important;
  border-radius:0!important;
}

#nesStudio .nes-icon,
#nesStudio .nes-check{
  position:absolute;
  top:7px;
  display:grid;
  place-items:center;
  width:25px;
  height:25px;
  border-radius:8px;
  background:#161827c9;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}

#nesStudio .nes-icon{
  inset-inline-start:7px;
}

#nesStudio .nes-check{
  inset-inline-end:7px;
  background:#7950ed;
  border-radius:50%;
  visibility:hidden;
}

#nesStudio .selected .nes-check{
  visibility:visible;
}

#nesStudio .nes-card-text{
  display:grid;
  gap:5px;
  padding:10px;
  width:100%;
}

#nesStudio .nes-card-text strong{
  font-size:14px;
  font-weight:800;
  line-height:1.5;
}

html body #nesStudio .nes-card-text small,
html body #nesStudio .nes-hint,
html body #nesStudio .nes-dimensions small,
html body #nesStudio #nesLimit{
  color:var(--nes-muted)!important;
  -webkit-text-fill-color:var(--nes-muted)!important;
  font-size:12px;
  line-height:1.6;
}

#nesStudio .nes-card:last-child{
  grid-column:1/-1;
  display:grid;
  grid-template-columns:35% 1fr;
  align-items:center;
}

#nesStudio .nes-hint{
  margin:12px 0 0;
}

#nesStudio .nes-scales{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:6px;
}

#nesStudio .nes-scales button{
  padding:12px 3px!important;
  border:1px solid var(--nes-border)!important;
  border-radius:9px;
  background:var(--nes-card)!important;
  cursor:pointer;
}

#nesStudio .nes-scales button.selected{
  border-color:#946cff!important;
  background:#7950ed!important;
}

html body #nesStudio .nes-scales button.selected strong{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}

#nesStudio .nes-dimensions{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:8px;
  text-align:center;
  background:var(--nes-card);
  border-radius:10px;
  padding:12px 6px;
  margin-top:12px;
}

#nesStudio .nes-dimensions div{
  display:grid;
  gap:5px;
}

#nesStudio .nes-dimensions strong{
  font-size:14px;
  font-variant-numeric:tabular-nums;
}

#nesStudio .nes-dimensions>span{
  color:var(--nes-purple)!important;
}

#nesStudio #nesLimit:not([hidden]){
  display:block;
  margin-top:8px;
}

#nesStudio .nes-adjust-title{
  margin:8px 0 0;
}

@media(max-width:600px){

  #nesStudio .nes-header h3{
    font-size:19px;
  }

  #nesStudio .nes-grid{
    gap:8px;
  }

  #nesStudio .nes-card-text{
    padding:8px;
  }

  #nesStudio .nes-card-text strong{
    font-size:14px;
  }

  #nesStudio .nes-section{
    padding:10px;
  }
}
