.pdf-watermark-preview #pdf-watermark-overlay{
  left:0;
  top:auto;
  bottom:0;
  max-width:92%;
  transform-origin:left bottom;
  font-family:"Microsoft YaHei","PingFang SC","Noto Sans CJK SC",Arial,sans-serif;
}

.pdf-watermark-control{
  display:flex;
  align-items:center;
  gap:12px;
  min-height:44px;
}
.pdf-watermark-control input[type="range"]{
  flex:1;
  padding:0;
}
.pdf-watermark-control span{
  min-width:64px;
  color:#536782;
  font-size:12px;
  font-weight:700;
  text-align:right;
}
.pdf-watermark-control .pdf-watermark-direct-number{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:3px;
  min-width:82px;
  padding:0 8px;
  border:1px solid #d8e0ea;
  border-radius:9px;
  background:#fff;
  text-align:left;
}
.pdf-watermark-direct-number input{
  width:48px !important;
  min-width:0;
  padding:8px 2px !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  color:#26384f;
  font-weight:700;
  text-align:right;
}
.pdf-watermark-direct-number input:focus{
  outline:none;
}
.pdf-watermark-direct-number b{
  color:#536782;
  font-weight:700;
}
.pdf-watermark-color-control input[type="color"]{
  width:54px;
  flex:0 0 54px;
  height:44px;
  padding:4px;
  cursor:pointer;
}
.pdf-watermark-direct-color{
  width:105px !important;
  min-width:0;
  padding:10px !important;
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;
  text-align:center;
  text-transform:uppercase;
}

.pdf-editor[data-pdf-action="watermark"] .pdf-workspace{
  grid-template-columns:minmax(0,1fr) 360px;
  align-items:start;
}
.pdf-editor[data-pdf-action="watermark"] .pdf-side{
  max-height:calc(100vh - 112px);
  overflow:auto;
}
.pdf-watermark-side-form{
  margin:20px 0 18px;
  padding-top:20px;
  border-top:1px solid #e8edf5;
}
.pdf-watermark-side-form .pdf-operation-heading{
  margin:0 0 16px;
  padding:0;
  border:0;
}
.pdf-watermark-side-form .pdf-fields{
  gap:13px;
}
.pdf-watermark-side-form .pdf-submit{
  margin-top:17px;
}
.pdf-watermark-preview-main{
  margin-top:22px;
  padding:20px;
}
.pdf-watermark-preview-main #pdf-watermark-stage{
  width:fit-content;
  max-width:100%;
}
.pdf-editor[data-pdf-action="watermark"] .pdf-side>a{
  display:inline-flex;
  margin-top:2px;
}
@media(max-width:960px){
  .pdf-editor[data-pdf-action="watermark"] .pdf-workspace{
    grid-template-columns:1fr;
  }
  .pdf-editor[data-pdf-action="watermark"] .pdf-side{
    max-height:none;
    overflow:visible;
  }
}

