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

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

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

.preview-wrap {
  background: #f5f5f5;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 50px;
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.preview-box {
  width: 160px;
  height: 160px;
  background: white;
  border-radius: 10px;
}

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

.layer-row {
  background: white;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 14px;
}

.layer-row-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.layer-row-top span {
  font-size: 13px;
  font-weight: 600;
  color: #555;
}

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

.layer-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 12px;
}

.control {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  color: #666;
}

.control input[type="range"] {
  margin-top: 4px;
}

.control input[type="color"] {
  margin-top: 4px;
  width: 100%;
  height: 28px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.control.checkbox {
  flex-direction: row;
  align-items: center;
  gap: 6px;
}

.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;
}