.svg-settings .setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.svg-settings .setting-row label {
  font-size: 13px;
  color: #4e5969;
  flex-shrink: 0;
  width: 70px;
}

.svg-settings .slider-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.svg-settings .quality-slider {
  flex: 1;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: #e5e6eb;
  border-radius: 2px;
  outline: none;
}

.svg-settings .quality-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #165DFF;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.svg-settings .quality-value {
  font-size: 13px;
  color: #165DFF;
  font-weight: 600;
  min-width: 28px;
  text-align: right;
}

.preset-group {
  display: flex;
  gap: 6px;
  flex: 1;
}

.preset-btn {
  padding: 4px 12px;
  font-size: 12px;
  border: 1px solid #e5e6eb;
  border-radius: 6px;
  background: #fff;
  color: #4e5969;
  cursor: pointer;
  transition: all 0.2s ease;
}

.preset-btn:hover {
  border-color: #165DFF;
  color: #165DFF;
}

.preset-btn.active {
  border-color: #165DFF;
  background: #f0f5ff;
  color: #165DFF;
  font-weight: 500;
}

.tip-panel {
  background: #fffbe8;
  border: 1px solid #ffe58f;
}

.tip-title {
  font-size: 14px;
  font-weight: 600;
  color: #ad6800;
  margin-bottom: 8px;
}

.tip-content p {
  font-size: 12px;
  color: #874d00;
  line-height: 1.6;
  margin-bottom: 4px;
}

.tip-content strong {
  color: #ad6800;
}

.svg-output-list {
  max-height: 600px;
  overflow-y: auto;
}

.svg-item {
  border: 1px solid #e5e6eb;
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}

.svg-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #f7f8fa;
  border-bottom: 1px solid #e5e6eb;
}

.svg-item-name {
  font-size: 13px;
  font-weight: 500;
  color: #1d2129;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 200px;
}

.svg-item-sizes {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #86909c;
}

.svg-item-sizes .size-saved {
  color: #00B42A;
  font-weight: 500;
}

.svg-item-actions {
  display: flex;
  gap: 6px;
}

.svg-item-actions .btn-tiny {
  padding: 3px 10px;
  font-size: 12px;
  border: 1px solid #e5e6eb;
  border-radius: 4px;
  background: #fff;
  color: #4e5969;
  cursor: pointer;
  transition: all 0.2s ease;
}

.svg-item-actions .btn-tiny:hover {
  border-color: #165DFF;
  color: #165DFF;
  background: #f0f5ff;
}

.svg-item-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.svg-preview-col {
  padding: 12px;
  text-align: center;
}

.svg-preview-col:first-child {
  border-right: 1px solid #e5e6eb;
}

.svg-preview-label {
  font-size: 11px;
  color: #86909c;
  margin-bottom: 8px;
}

.svg-preview-col img,
.svg-preview-col .svg-render {
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
  border: 1px solid #f2f3f5;
  border-radius: 4px;
  background: repeating-conic-gradient(#f2f3f5 0% 25%, #fff 0% 50%) 50% / 16px 16px;
}

.svg-code-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.svg-code-modal-inner {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.svg-code-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.svg-code-modal-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1d2129;
}

.svg-code-modal-body {
  flex: 1;
  overflow-y: auto;
}

.svg-code-modal-body pre {
  background: #f7f8fa;
  border: 1px solid #e5e6eb;
  border-radius: 8px;
  padding: 16px;
  font-size: 12px;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-all;
  color: #1d2129;
  margin: 0;
  max-height: 60vh;
  overflow-y: auto;
}

.svg-code-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  justify-content: flex-end;
}

@media (max-width: 600px) {
  .svg-settings .setting-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .svg-settings .slider-wrap {
    width: 100%;
  }
  .preset-group {
    flex-wrap: wrap;
  }
  .svg-item-preview {
    grid-template-columns: 1fr;
  }
  .svg-preview-col:first-child {
    border-right: none;
    border-bottom: 1px solid #e5e6eb;
  }
}