.ts-upload-error {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-align: center;
}

.ts-workspace { margin-top: 4px; display: flex; flex-direction: column; gap: 18px; }

.ts-stage-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; }

.ts-stage {
  position: relative;
  max-width: 100%;
  touch-action: none;
  user-select: none;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background:
    repeating-conic-gradient(var(--bg-alt) 0% 25%, var(--surface) 0% 50%) 0 0 / 22px 22px;
}
.ts-stage img {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  -webkit-user-drag: none;
}
.ts-stage.is-empty-select { cursor: default; }

.ts-summary { font-size: 13px; font-weight: 600; color: var(--text-secondary); }

.ts-el {
  position: absolute;
  width: max-content;
  height: max-content;
  cursor: move;
  touch-action: none;
}
.ts-el-inner {
  white-space: nowrap;
  line-height: 1;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  user-select: none;
  -webkit-user-drag: none;
}
.ts-el-inner svg { display: block; }

.ts-el-handle {
  position: absolute;
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.ts-el-handle svg { width: 14px; height: 14px; }
.ts-el.is-selected .ts-el-handle { display: flex; }

.ts-el-delete { top: 0; left: 0; transform: translate(-50%, -50%); background: var(--text); cursor: pointer; }
.ts-el-rotate { top: 0; right: 0; transform: translate(50%, -50%); cursor: grab; }
.ts-el-resize { bottom: 0; right: 0; transform: translate(50%, 50%); cursor: nwse-resize; }

.ts-el.is-selected .ts-el-inner { outline: 1.5px dashed rgba(255, 255, 255, 0.85); outline-offset: 6px; }

.convert-settings.ts-toolbar { justify-content: flex-start; }
.ts-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ts-sticker-group { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ts-sticker-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  cursor: pointer;
}
.ts-sticker-btn:hover { border-color: var(--accent); }

.ts-prop-panel { flex-direction: column; align-items: stretch; gap: 14px; }
.ts-prop-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ts-prop-row input[type="text"] {
  flex: 1;
  min-width: 160px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-size: 13.5px;
  color: var(--text);
}
.ts-prop-row input[type="range"] { flex: 1; min-width: 140px; accent-color: var(--accent); }

.ts-prop-empty-hint {
  margin: 0;
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-secondary);
  text-align: center;
  background: var(--bg-alt);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
}
.ts-prop-empty-hint[hidden] { display: none; }

.ts-actions-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

@media (max-width: 640px) {
  .ts-toolbar, .ts-actions-row { justify-content: center; }
  .ts-el-handle { width: 34px; height: 34px; }
}
