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

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

.fx-work > * {
  min-width: 0;
}

.fx-stage {
  display: flex;
  justify-content: center;
  padding: 10px;
  border-radius: 12px;
  background: #eef2f5;
}

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

.fx-top,
.fx-row,
.fx-save,
.fx-frames {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: flex-end;
}

.fx-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

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

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

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

.fx-panel[hidden],
.st-photofx [hidden] {
  display: none;
}

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

.fx-thumb {
  display: grid;
  gap: 5px;
  justify-items: center;
  width: auto;
  padding: 6px;
  border: 1px solid #d6e0e7;
  border-radius: 10px;
  background: #fff;
  color: #3d4d5c;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.fx-thumb canvas {
  width: 100%;
  max-width: 96px;
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  background: #eef2f5;
}

.fx-thumb[aria-pressed="true"],
.fx-frames .st-chip[aria-pressed="true"] {
  border-color: #52b5b2;
  background: #f1faf9;
  box-shadow: 0 0 0 1px #52b5b2 inset;
  color: #1f6f6c;
}

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

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

.fx-short {
  min-width: 180px;
}

.fx-slider span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.fx-slider output {
  color: #66778a;
}

.fx-slider input {
  accent-color: #52b5b2;
}

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

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

.fx-color select {
  padding: 8px 10px;
  border: 1px solid #c9d5de;
  border-radius: 9px;
  background: #fff;
  font: inherit;
}

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

@media (max-width: 767px) {
  .fx-top .st-chip,
  .fx-frames .st-chip {
    width: auto;
  }

  .fx-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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