.gif-watermark-page{
  max-width:1280px;
  margin:0 auto;
  padding:34px 18px 46px;
  color:var(--text);
}
.gif-watermark-page *{
  box-sizing:border-box;
}
.gif-watermark-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,.24);
}
.gwt-intro{
  max-width:860px;
  margin:0 auto 24px;
  text-align:center;
  color:#cfd0dc;
  font-size:clamp(15px,2vw,18px);
  line-height:1.6;
}
.gwt-upload{
  position:relative;
  margin:0 auto 20px;
  padding:22px 18px;
  border:2px dashed rgba(255,255,255,.16);
  border-radius:20px;
  background:
    radial-gradient(circle at top left,rgba(140,90,255,.16),transparent 38%),
    linear-gradient(135deg,rgba(255,255,255,.055),rgba(255,255,255,.025));
  text-align:center;
  transition:.2s ease;
  cursor:pointer;
}
.gwt-upload:hover,.gwt-upload.gwt-dragover{
  border-color:var(--link);
  box-shadow:0 0 28px rgba(120,90,255,.18);
  transform:translateY(-1px);
}
.gwt-upload-label{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  color:#fff;
  font-weight:800;
  font-size:18px;
  cursor:pointer;
}
.gwt-upload input{
  position:absolute;
  inset:0;
  opacity:0;
  cursor:pointer;
}
.gwt-upload p{
  margin:8px 0 0;
  color:#aaaabb;
  font-size:14px;
}
.gwt-layout{
    display:grid;
    grid-template-columns:minmax(0,1fr) 390px;
    gap:18px;
    align-items:start;
}
.gwt-left{
    display:grid;
    gap:18px;
}
.gwt-panel,.gwt-section{
  background:
    linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.018)),
    var(--content);
  border:1px solid rgba(255,255,255,.085);
  border-radius:18px;
  box-shadow:0 16px 38px rgba(0,0,0,.18);
}
.gwt-panel{
  padding:14px;
}
.gwt-panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.gwt-panel-head h2{
  margin:0;
  color:var(--link);
  font-size:18px;
  line-height:1.2;
}
.gwt-panel-head span{
  color:#aeb0c2;
  font-size:13px;
  white-space:nowrap;
}
.gwt-preview-wrap,.gwt-canvas-wrap{
  position:relative;
  min-height:360px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:auto;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.08);
  background:
    linear-gradient(45deg,rgba(255,255,255,.04) 25%,transparent 25%),
    linear-gradient(-45deg,rgba(255,255,255,.04) 25%,transparent 25%),
    linear-gradient(45deg,transparent 75%,rgba(255,255,255,.04) 75%),
    linear-gradient(-45deg,transparent 75%,rgba(255,255,255,.04) 75%),
    #101018;
  background-size:22px 22px;
  background-position:0 0,0 11px,11px -11px,-11px 0;
}
.gwt-preview-wrap img,.gwt-canvas-wrap canvas{
  max-width:100%;
  max-height:520px;
  display:block;
  border-radius:10px;
}
.gwt-canvas-wrap canvas{
  cursor:move;
}
.gwt-empty-preview{
  position:absolute;
  inset:14px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  color:#9ea0b2;
  text-align:center;
  pointer-events:none;
}
.gwt-empty-preview i{
  font-size:42px;
  color:rgba(255,255,255,.28);
}
.gwt-help{
  margin:10px 2px 0;
  color:#aeb0c2;
  font-size:13px;
  line-height:1.45;
}
.gwt-controls{
  position:sticky;
  top:16px;
}
.gwt-check{
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:#c9c9d6;
  font-size:13px;
  user-select:none;
}
.gwt-check input{
  accent-color:var(--link);
}
.gwt-mode-tabs{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-bottom:12px;
  padding:4px;
  border-radius:14px;
  background:rgba(0,0,0,.18);
  border:1px solid rgba(255,255,255,.07);
}
.gwt-mode-tabs button{
  border:0;
  border-radius:11px;
  padding:10px 12px;
  color:#cfd0dc;
  background:transparent;
  font-weight:800;
  cursor:pointer;
  transition:.18s ease;
}
.gwt-mode-tabs button:hover{
  background:rgba(255,255,255,.07);
}
.gwt-mode-tabs button.active{
  color:#fff;
  background:linear-gradient(135deg,var(--link),#8f6cff);
  box-shadow:0 8px 20px rgba(120,90,255,.22);
}
.gwt-control-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.gwt-field{
  display:flex;
  flex-direction:column;
  gap:7px;
  min-width:0;
  padding:10px;
  border-radius:14px;
  background:rgba(255,255,255,.045);
  border:1px solid rgba(255,255,255,.07);
}
.gwt-wide{
  grid-column:1/-1;
}
.gwt-field span{
  color:#cfd0dc;
  font-size:13px;
  font-weight:800;
}
.gwt-field b{
  color:#fff;
  font-size:12px;
  font-weight:800;
}
.gwt-field input[type="text"],
.gwt-field input[type="number"],
.gwt-field input[type="file"],
.gwt-field select{
  width:100%;
  min-height:38px;
  border:1px solid rgba(255,255,255,.1);
  border-radius:10px;
  background:#11111b;
  color:#fff;
  padding:0 10px;
  outline:none;
}
.gwt-field input[type="color"]{
  width:100%;
  height:38px;
  border:1px solid rgba(255,255,255,.1);
  border-radius:10px;
  background:#11111b;
  padding:4px;
  cursor:pointer;
}
.gwt-field input[type="range"]{
  width:100%;
  accent-color:var(--link);
}
.gwt-field select:focus,
.gwt-field input:focus{
  border-color:rgba(140,110,255,.65);
  box-shadow:0 0 0 3px rgba(140,110,255,.16);
}
.gif-watermark-page select option{
  background:#11111b;
  color:#fff;
}
.gwt-image-only{
  display:none;
}
.gif-watermark-page.gwt-image-mode .gwt-text-only{
  display:none;
}
.gif-watermark-page.gwt-image-mode .gwt-image-only{
  display:flex;
  grid-column:1/-1;
}
.gwt-presets{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:8px;
  margin-top:12px;
}
.gwt-presets button{
  min-height:36px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:11px;
  background:rgba(255,255,255,.055);
  color:#d7d7e4;
  font-weight:800;
  cursor:pointer;
  transition:.18s ease;
}
.gwt-presets button:hover{
  color:#fff;
  border-color:rgba(140,110,255,.5);
  background:rgba(140,110,255,.16);
}
.gwt-progress{
  height:10px;
  margin-top:12px;
  overflow:hidden;
  border-radius:999px;
  background:rgba(255,255,255,.075);
}
.gwt-progress div{
  width:0%;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,var(--link),#37d4ff);
  transition:width .18s ease;
}
.gwt-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:12px;
}
.gwt-actions button{
  min-height:42px;
  border:0;
  border-radius:12px;
  color:#fff;
  font-weight:900;
  cursor:pointer;
  transition:.18s ease;
}
.gwt-actions button:hover:not(:disabled){
  transform:translateY(-1px);
  filter:brightness(1.08);
}
.gwt-actions button:disabled{
  opacity:.48;
  cursor:not-allowed;
}
.gwt-action-primary{
  background:linear-gradient(135deg,var(--link),#8f6cff);
}
.gwt-action-download{
  background:linear-gradient(135deg,#1fa85a,#29c978);
}
.gwt-action-soft{
  background:linear-gradient(135deg,#3b415f,#25293d);
}
.gwt-action-danger{
  background:linear-gradient(135deg,#9d2f45,#d9465f);
}
.gwt-status{
  margin-top:12px;
  padding:10px 12px;
  border-radius:12px;
  background:rgba(0,0,0,.18);
  color:#c9c9d6;
  font-size:13px;
  line-height:1.45;
}
.gwt-section{
  margin-top:22px;
  padding:18px;
}
.gwt-section h2{
  margin:0 0 12px;
  color:var(--link);
}
.gwt-section ul{
  margin:0;
  padding-left:20px;
}
.gwt-section li{
  margin-bottom:8px;
  color:#c9c9d6;
  line-height:1.55;
}
.gwt-section strong{
  color:#fff;
}
.gwt-actions-simple{
  grid-template-columns:2fr 1fr;
}


.gwt-upload-image{
  cursor:pointer;
}

.gwt-upload-image input{
  display:none;
}

.gwt-upload-image-box{
  min-height:90px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:8px;
  border:2px dashed rgba(255,255,255,.12);
  border-radius:12px;
  background:
    linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.02));
  transition:.18s;
}

.gwt-upload-image:hover .gwt-upload-image-box{
  border-color:var(--link);
  background:
    linear-gradient(180deg,rgba(120,90,255,.14),rgba(120,90,255,.05));
  box-shadow:0 0 18px rgba(120,90,255,.18);
}

.gwt-upload-image-box i{
  font-size:30px;
  color:var(--link);
}

.gwt-upload-image-box b{
  color:#fff;
  font-size:15px;
}

.gwt-upload-image-box small{
  color:#9ea0b2;
  font-size:12px;
}


@media(max-width:1100px){
  .gwt-layout{
    grid-template-columns:1fr;
  }
  .gwt-controls{
    position:relative;
    top:auto;
  }
}
@media(max-width:760px){
  .gif-watermark-page{
    padding:26px 12px 38px;
  }
  .gwt-preview-wrap,.gwt-canvas-wrap{
    min-height:280px;
  }
  .gwt-control-grid{
    grid-template-columns:1fr;
  }
  .gwt-presets{
    grid-template-columns:1fr 1fr;
  }
}
@media(max-width:460px){
  .gwt-actions{
    grid-template-columns:1fr;
  }
  .gwt-panel-head{
    align-items:flex-start;
    flex-direction:column;
  }
  .gwt-presets{
    grid-template-columns:1fr;
  }
  .gwt-actions-simple{
    grid-template-columns:1fr;
  }
}
