.tool-container {
  max-width: 650px;
  margin: 40px auto;
  padding: 0 20px;
}

.tool-container h1 {
  font-size: 24px;
  margin-bottom: 8px;
}

.tool-container p {
  color: #666;
  margin-bottom: 20px;
}

.preview-box {
  width: 100%;
  height: 220px;
  border-radius: 10px;
  border: 1px solid #eee;
  margin-bottom: 20px;
}

.options-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.option {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  color: #555;
}

.option select {
  margin-top: 4px;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-size: 13px;
}

.option input[type="range"] {
  margin-top: 6px;
  width: 180px;
}

.stops-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.stop-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 10px 12px;
}

.stop-row input[type="color"] {
  width: 36px;
  height: 30px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.stop-row input[type="range"] {
  flex: 1;
}

.stop-row .stop-percent {
  font-size: 12px;
  color: #666;
  width: 36px;
}

.stop-row .remove-btn {
  background: none;
  border: none;
  color: #a71a1a;
  cursor: pointer;
  font-size: 13px;
}

.link-btn {
  background: none;
  border: none;
  color: #185fa5;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  margin-bottom: 20px;
}

.link-btn:hover {
  text-decoration: underline;
}

.action-row {
  margin-bottom: 12px;
}

.action-row button {
  padding: 10px 22px;
  background: #185fa5;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}

.action-row button:hover {
  background: #0c447c;
}

.css-output {
  padding: 12px;
  background: white;
  border: 1px solid #eee;
  border-radius: 8px;
  font-family: monospace;
  font-size: 13px;
  white-space: pre-wrap;
  word-break: break-word;
}

.status-msg {
  margin-top: 8px;
  font-size: 13px;
  color: #2f8a2f;
}