.layui-layer-content li {
  list-style: inherit;
}
#tool-body {
  --primary: #3a7bfd;
  --card: #fff;
  --line: #e6ebf4;
  --text: #2a3344;
  --muted: #7a8799;
  --soft: #eef4ff;
  --panel: #f4f6fa;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.theme-dark-mode #tool-body {
  --card: #2b2b2b;
  --line: #444;
  --text: #e6e6e6;
  --muted: #9a9a9a;
  --soft: #333;
  --panel: #242424;
}

#tool-body .id-drop {
  display: block;
  text-align: center;
  padding: 36px 20px;
  border: 2px dashed var(--line);
  border-radius: 12px;
  cursor: pointer;
  background: var(--card);
}
#tool-body .id-drop:hover { border-color: var(--primary); }
#tool-body .id-drop.is-compact { padding: 10px 14px; font-size: 14px; font-weight: 600; }
#tool-body .id-drop.is-compact .id-drop-full { display: none; }
#tool-body .id-drop-more { display: none; align-items: center; justify-content: center; gap: 8px; }
#tool-body .id-drop.is-compact .id-drop-more { display: flex; }
#tool-body .id-drop-more i { color: var(--primary); font-size: 16px; }
#tool-body .id-drop-icon { font-size: 42px; color: var(--primary); margin-bottom: 8px; }
#tool-body .id-drop p { margin: 0; color: var(--muted); font-size: 13px; }
#tool-body .id-file { display: none; }

#tool-body .id-work { display: none; margin-top: 16px; }
#tool-body .id-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: start;
}
@media screen and (max-width: 760px) {
  #tool-body .id-grid { grid-template-columns: 1fr; }
}

#tool-body .id-stage-card,
#tool-body .id-side {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}
#tool-body .id-stage-wrap {
  display: flex;
  justify-content: center;
  background: var(--panel);
  border-radius: 10px;
  padding: 16px;
}
#tool-body .id-stage {
  position: relative;
  width: min(100%, 280px);
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
}
#tool-body .id-stage:active { cursor: grabbing; }
#tool-body .id-stage canvas { display: block; width: 100%; height: auto; }
#tool-body .id-meta {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

#tool-body .id-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 8px;
}
#tool-body .id-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
#tool-body .id-chip {
  border: 1px solid var(--line);
  background: transparent;
  color: inherit;
  border-radius: 16px;
  padding: 5px 12px;
  font-size: 13px;
  cursor: pointer;
}
#tool-body .id-chip:hover { border-color: var(--primary); color: var(--primary); }
#tool-body .id-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
#tool-body .id-custom { display: none; gap: 8px; margin-bottom: 14px; align-items: center; }
#tool-body .id-custom.show { display: flex; flex-wrap: wrap; }
#tool-body .id-custom .layui-input { width: 88px; }
#tool-body .id-custom .layui-form-select { width: 88px; }
#tool-body .id-hint { font-size: 12px; color: var(--muted); margin: -6px 0 14px; }
#tool-body .id-colors { display: flex; gap: 10px; margin-bottom: 14px; }
#tool-body .id-color {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--line);
  cursor: pointer;
  padding: 0;
}
#tool-body .id-color.active {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
#tool-body .id-zoom { margin: 0 8px 16px; }
#tool-body .id-manual { display: none; margin-bottom: 14px; }
#tool-body .id-manual.show { display: block; }
#tool-body .id-pick-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
#tool-body .id-pick-swatch {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--line);
}
#tool-body .id-cancel-pick { display: none; margin: 0;}
#tool-body .id-stage.is-pick { cursor: crosshair; }
#tool-body .id-guide {
  margin-top: 16px;
  background: var(--card);
  border: 1px dashed #c5d8ff;
  border-radius: 12px;
  overflow: hidden;
}
.theme-dark-mode #tool-body .id-guide { border-color: #3d4a63; }
#tool-body .id-guide-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
#tool-body .id-guide-tag {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  border-radius: 4px;
  padding: 1px 6px;
}
#tool-body .id-guide-body {
  display: flex;
  gap: 16px;
  padding: 16px;
  align-items: center;
}
#tool-body .id-guide-photo {
  width: 88px;
  height: 100px;
  border-radius: 4px;
  background: #fff;
  border: 1px solid var(--line);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 10px;
}
#tool-body .id-guide-headshape {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #d7deea;
}
#tool-body .id-guide-bodyshape {
  width: 58px;
  height: 40px;
  border-radius: 28px 28px 0 0;
  background: #c5d0e0;
}
#tool-body .id-guide-list { font-size: 13px; color: var(--text); line-height: 1.8; margin: 0; padding-left: 18px; }
#tool-body #idDownload {
  width: 100%;
  background: var(--primary);
  border: none;
}
#tool-body .id-help-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  margin-top: 10px;
  padding: 0;
  border: none;
  background: none;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  opacity: 0.75;
}
#tool-body .id-help-link .layui-icon { font-size: 13px; }
#tool-body .id-help-link:hover { color: var(--primary); opacity: 1; }