.gif-color-editor-page{
  max-width:1280px;
  margin:0 auto;
  padding:34px 18px 46px;
  color:var(--text);
}
.gif-color-editor-page *{
  box-sizing:border-box;
}
.gif-color-editor-page h1{
  margin:0 0 12px;
  text-align:center;
  font-size:clamp(32px,5vw,52px);
  line-height:1.05;
  text-shadow:0 0 24px rgba(120,90,255,.22);
}
.gce-intro{
  max-width:860px;
  margin:0 auto 24px;
  text-align:center;
  color:#c9c9d6;
  font-size:clamp(15px,2vw,18px);
  line-height:1.6;
}
.gce-upload{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:130px;
  margin:0 0 18px;
  padding:22px;
  text-align:center;
  border:2px dashed rgba(255,255,255,.18);
  border-radius:20px;
  background:linear-gradient(135deg,rgba(120,90,255,.12),rgba(0,220,255,.06)),var(--content);
  box-shadow:0 16px 38px rgba(0,0,0,.16);
  cursor:pointer;
  transition:.18s ease;
}
.gce-upload:hover,
.gce-upload.gce-dragover{
  border-color:var(--link);
  box-shadow:0 0 0 4px rgba(120,90,255,.12),0 18px 42px rgba(0,0,0,.22);
  transform:translateY(-1px);
}
.gce-upload-label{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  font-weight:800;
  color:#fff;
  cursor:pointer;
}
.gce-upload input{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  opacity:0;
  cursor:pointer;
}
.gce-upload p{
  margin:0;
  color:#bfc0cf;
  font-size:14px;
}
.gce-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 380px;
  gap:18px;
  align-items:start;
}
.gce-preview-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:18px;
}
.gce-panel,
.gce-section{
  padding:16px;
  background:var(--content);
  border:1px solid rgba(255,255,255,.08);
  border-radius:18px;
  box-shadow:0 16px 38px rgba(0,0,0,.18);
}
.gce-panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.gce-panel-head h2{
  margin:0;
  color:var(--link);
  font-size:19px;
}
.gce-panel-head span,
.gce-panel-head > span{
  color:#b9bac8;
  font-size:13px;
}
.gce-preview-wrap{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:300px;
  overflow:auto;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.08);
  background:
    linear-gradient(45deg,rgba(255,255,255,.045) 25%,transparent 25%),
    linear-gradient(-45deg,rgba(255,255,255,.045) 25%,transparent 25%),
    linear-gradient(45deg,transparent 75%,rgba(255,255,255,.045) 75%),
    linear-gradient(-45deg,transparent 75%,rgba(255,255,255,.045) 75%);
  background-size:22px 22px;
  background-position:0 0,0 11px,11px -11px,-11px 0;
}
.gce-preview-wrap img{
  display:none;
  max-width:100%;
  max-height:520px;
  object-fit:contain;
}
#gceFrameCanvas{
  display:none;
  max-width:100%;
  max-height:520px;
}
.gce-empty-preview{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  color:#9fa0b2;
  text-align:center;
  pointer-events:none;
}
.gce-empty-preview i{
  font-size:38px;
  color:var(--link);
  opacity:.85;
}
.gce-controls{
  position:sticky;
  top:12px;
}
.gce-check{
  display:flex;
  align-items:center;
  gap:7px;
  color:#d6d6e2;
  font-size:14px;
  cursor:pointer;
  user-select:none;
}
.gce-check input{
  accent-color:var(--link);
}
.gce-control-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.gce-wide{
  grid-column:1/-1;
}
.gce-control-card,
.gce-mini-field{
  padding:12px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  background:rgba(255,255,255,.045);
}
.gce-control-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:9px;
}
.gce-control-head span,
.gce-mini-field span{
  color:#d7d7e5;
  font-weight:700;
  font-size:13px;
}
.gce-control-head b{
  color:#fff;
  font-size:13px;
}
.gce-control-card input[type="range"]{
  width:100%;
  accent-color:var(--link);
}
.gce-toggle-grid{
  grid-column:1/-1;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
}
.gce-toggle{
  position:relative;
  cursor:pointer;
}
.gce-toggle input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.gce-toggle span{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:42px;
  padding:10px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  background:rgba(255,255,255,.045);
  color:#d8d8e6;
  font-weight:800;
  font-size:13px;
  transition:.16s ease;
}
.gce-toggle input:checked + span{
  color:#fff;
  border-color:rgba(120,90,255,.65);
  background:rgba(120,90,255,.2);
  box-shadow:0 0 0 3px rgba(120,90,255,.12);
}
.gce-mini-field{
  display:flex;
  flex-direction:column;
  gap:7px;
}
.gce-mini-field input,
.gce-mini-field select{
  width:100%;
  min-height:40px;
  padding:8px 10px;
  color:#fff;
  border:1px solid rgba(255,255,255,.1);
  border-radius:11px;
  background:#171724;
  outline:none;
}
.gce-mini-field select option{
  color:#fff;
  background:#171724;
}
.gce-mini-field input:focus,
.gce-mini-field select:focus{
  border-color:var(--link);
  box-shadow:0 0 0 3px rgba(120,90,255,.14);
}
.gce-presets{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:8px;
  margin-top:12px;
}
.gce-presets button{
  min-height:36px;
  padding:8px;
  color:#d9d9e7;
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px;
  background:rgba(255,255,255,.055);
  cursor:pointer;
  font-weight:800;
  transition:.16s ease;
}
.gce-presets button:hover{
  color:#fff;
  border-color:rgba(120,90,255,.5);
  background:rgba(120,90,255,.14);
}
.gce-progress{
  height:9px;
  margin-top:14px;
  overflow:hidden;
  border-radius:999px;
  background:rgba(255,255,255,.08);
}
#gceProgressBar{
  width:0%;
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,var(--link),#27d7ff);
  transition:width .18s ease;
}
.gce-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:14px;
}
.gce-actions button{
  min-height:42px;
  padding:10px 12px;
  border:0;
  border-radius:13px;
  color:#fff;
  font-weight:900;
  cursor:pointer;
  transition:.16s ease;
}
.gce-actions button:hover{
  transform:translateY(-1px);
  filter:brightness(1.08);
}
.gce-actions button:disabled{
  opacity:.45;
  cursor:not-allowed;
  transform:none;
  filter:none;
}
.gce-action-primary{
  background:linear-gradient(135deg,var(--link),#8d6cff);
}
.gce-action-download{
  background:linear-gradient(135deg,#18a957,#29d978);
}
.gce-action-soft{
  background:linear-gradient(135deg,#2e3146,#414561);
}
.gce-action-danger{
  background:linear-gradient(135deg,#9e2f42,#d94b5f);
}
.gce-status{
  margin-top:12px;
  padding:11px 12px;
  min-height:42px;
  display:flex;
  align-items:center;
  color:#cfd0dd;
  border:1px solid rgba(255,255,255,.08);
  border-radius:13px;
  background:rgba(0,0,0,.16);
  font-size:14px;
}
.gce-section{
  margin-top:22px;
}
.gce-section h2{
  margin:0 0 12px;
  color:var(--link);
}
.gce-section ul{
  margin:0;
  padding-left:20px;
}
.gce-section li{
  margin-bottom:8px;
  color:#c9c9d6;
  line-height:1.55;
}
@media(max-width:980px){
  .gce-layout{
    grid-template-columns:1fr;
  }
  .gce-controls{
    position:relative;
    top:auto;
  }
}
@media(max-width:620px){
  .gif-color-editor-page{
    padding:26px 12px 38px;
  }
  .gce-panel,
  .gce-section{
    padding:13px;
    border-radius:16px;
  }
  .gce-panel-head{
    align-items:flex-start;
    flex-direction:column;
  }
  .gce-preview-wrap{
    min-height:240px;
  }
  .gce-control-grid,
  .gce-actions{
    grid-template-columns:1fr;
  }
  .gce-toggle-grid,
  .gce-presets{
    grid-template-columns:1fr;
  }
}
