.config-generator {
  border: 1px solid var(--rp-c-divider-light);
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  background: var(--rp-c-bg-soft);
}

.config-generator__title {
  margin: 0 0 20px 0;
}

.config-generator__field {
  margin-bottom: 16px;
}

.config-generator__label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.config-generator__input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--rp-c-divider-light);
  background: var(--rp-c-bg);
  color: var(--rp-c-text-1);
  font-size: 14px;
  margin-bottom: 8px;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.config-generator__input:focus {
  outline: 2px solid var(--rp-c-brand);
  outline-offset: 1px;
}

.config-generator__link {
  font-size: 12px;
  color: var(--rp-c-brand);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.config-generator__link:hover {
  text-decoration: underline;
}

.config-generator__help {
  margin-top: 12px;
  padding: 16px;
  background: var(--rp-c-bg);
  border-radius: 8px;
  font-size: 13px;
}

.config-generator__help-title {
  margin: 0 0 0 0;
}

.config-generator__help-list {
  padding-left: 20px;
  margin: 0 0 0 0;
}

.config-generator__help-sublist {
  margin-top: 4px;
}

.config-generator__result {
  margin-top: 16px;
}

.config-generator__info {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 14px;
}

.config-generator__code-block {
  position: relative;
  background: var(--rp-c-bg-mute);
  border-radius: 8px;
  padding: 16px;
  font-family: monospace;
  font-size: 13px;
  overflow: auto;
}

.config-generator__code {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-all;
}

.config-generator__copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--rp-c-divider-light);
  background: var(--rp-c-bg);
  color: var(--rp-c-text-1);
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s;
}

.config-generator__copy-btn:hover {
  background: var(--rp-c-bg-soft);
}

.config-generator__copy-btn:active {
  transform: scale(0.98);
}

.config-generator__copy-btn--copied {
  background: #22c55e;
  color: white;
}

.config-generator__copy-btn--copied:hover {
  background: #16a34a;
}

.config-generator__hint {
  display: block;
  font-size: 12px;
  color: var(--rp-c-text-2);
  line-height: 1.4;
}
