.st-photoedit .st-drop em {
  min-height: 120px;
}

.pe-work {
  display: grid;
  gap: 12px;
  padding-top: 4px;
  border-top: 1px dashed #d3dce4;
}

.pe-top,
.pe-row,
.pe-save {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
}

.pe-size {
  margin-left: auto;
  color: #66778a;
  font-size: 13px;
  font-weight: 600;
}

.pe-stage {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 10px;
  border-radius: 12px;
  background-color: #eef2f5;
  background-image: linear-gradient(45deg, #dde4ea 25%, transparent 25%), linear-gradient(-45deg, #dde4ea 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #dde4ea 75%), linear-gradient(-45deg, transparent 75%, #dde4ea 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
}

.pe-canvas {
  display: block;
  max-width: 100%;
  max-height: 560px;
  height: auto;
  border-radius: 6px;
}

.pe-stage .pe-over {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 20px);
  touch-action: none;
  user-select: none;
}

.pe-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pe-tabs button {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid #d6e0e7;
  border-radius: 10px;
  background: #fff;
  color: #3d4d5c;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.pe-tabs button[aria-selected="true"] {
  border-color: #52b5b2;
  background: #e9f7f6;
  color: #1f6f6c;
  box-shadow: 0 0 0 1px #52b5b2 inset;
}

.pe-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #e1e6eb;
  border-radius: 12px;
  background: #fbfcfd;
}

.pe-panel[hidden] {
  display: none;
}

.pe-sliders {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px 18px;
}

.pe-slider {
  display: grid;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
}

.pe-slider span {
  display: flex;
  justify-content: space-between;
}

.pe-slider output {
  color: #66778a;
  font-weight: 700;
}

.pe-slider input,
.pe-num input[type="range"] {
  accent-color: #52b5b2;
}

.pe-filters {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 10px;
}

.pe-filter {
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 6px;
  border: 1px solid #d6e0e7;
  border-radius: 10px;
  background: #fff;
  color: #3d4d5c;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.pe-filter canvas {
  width: 96px;
  height: 72px;
  border-radius: 6px;
  background: #eef2f5;
}

.pe-filter[aria-pressed="true"] {
  border-color: #52b5b2;
  background: #f1faf9;
  box-shadow: 0 0 0 1px #52b5b2 inset;
}

.pe-num {
  display: grid;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #3d4d5c;
}

.pe-num input[type="number"],
.pe-num input[type="text"],
.pe-num select {
  min-width: 0;
  width: 120px;
  padding: 8px 10px;
  border: 1px solid #c9d5de;
  border-radius: 9px;
  background: #fff;
  font: inherit;
  font-weight: 600;
}

.pe-wide input[type="text"] {
  width: 220px;
}

.pe-num input[type="color"] {
  width: 44px;
  height: 36px;
  padding: 0;
  border: 1px solid #c9d5de;
  border-radius: 8px;
  background: none;
}

.pe-check {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
}

.pe-check input {
  accent-color: #52b5b2;
}

.st-chip[aria-pressed="true"] {
  border-color: #52b5b2;
  background: #e9f7f6;
  color: #1f6f6c;
}

.pe-save {
  padding-top: 10px;
  border-top: 1px dashed #d3dce4;
}

@media (max-width: 767px) {
  .pe-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pe-tabs button {
    justify-content: center;
    width: auto;
  }

  .pe-top .st-chip,
  .pe-row .st-chip {
    width: auto;
  }
}

@media (max-width: 480px) {
  .pe-tabs button {
    padding: 8px 4px;
    font-size: 13px;
  }

  .pe-wide input[type="text"] {
    width: 100%;
  }

  .pe-wide {
    flex: 1 1 100%;
  }

  .pe-canvas {
    max-height: 420px;
  }
}
