.nesto-cpg * { box-sizing: border-box; }
.nesto-cpg {
  --deep: #1F3A5F;
  --terra: #C96A4A;
  --warm: #D9A441;
  --soft: #F7F1E8;
  --sage: #A7B0A3;
  --white: #ffffff;
  font-family: Arial, sans-serif;
  background: var(--soft);
  max-width: 760px;
  margin: 0 auto;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(31, 58, 95, 0.12);
}
.nesto-cpg__hero { background: var(--deep); padding: 2rem 2rem 1.75rem; position: relative; overflow: hidden; }
.nesto-cpg__hero::after { content: ''; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; background: rgba(217,164,65,0.12); }
.nesto-cpg__hero::before { content: ''; position: absolute; right: 60px; bottom: -60px; width: 120px; height: 120px; border-radius: 50%; background: rgba(201,106,74,0.1); }
.nesto-cpg__badge { display: inline-block; background: var(--terra); color: var(--white); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 12px; border-radius: 20px; margin-bottom: 12px; }
.nesto-cpg__title { font-size: 28px; font-weight: 800; color: var(--white); line-height: 1.25; margin: 0 0 6px; position: relative; z-index: 1; }
.nesto-cpg__title span { color: var(--warm); }
.nesto-cpg__subtitle { font-size: 14px; color: #d1d8d0; line-height: 1.5; margin: 0; max-width: 560px; position: relative; z-index: 1; }
.nesto-cpg__body { padding: 1.75rem 2rem 2rem; }
.nesto-cpg__section-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--terra); margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.nesto-cpg__section-label::after { content: ''; flex: 1; height: 1px; background: rgba(201,106,74,0.2); }
.nesto-cpg__field-wrap { margin-bottom: 1.2rem; }
.nesto-cpg__field-label { font-size: 13px; font-weight: 700; color: var(--deep); margin-bottom: 6px; display: block; }
.nesto-cpg__field-hint { font-size: 12px; color: #76806f; margin-bottom: 6px; display: block; }
.nesto-cpg input[type="text"], .nesto-cpg select, .nesto-cpg textarea {
  width: 100%;
  font-size: 14px;
  color: var(--deep);
  background: var(--white);
  border: 1.5px solid rgba(167,176,163,0.5);
  border-radius: 10px;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.nesto-cpg input[type="text"]:focus, .nesto-cpg select:focus, .nesto-cpg textarea:focus { border-color: var(--deep); box-shadow: 0 0 0 3px rgba(31,58,95,0.1); }
.nesto-cpg textarea { resize: vertical; min-height: 88px; }
.nesto-cpg__toggle-row { display: flex; gap: 8px; }
.nesto-cpg__toggle {
  flex: 1; padding: 11px 12px;
  border: 1.5px solid rgba(167,176,163,0.5);
  border-radius: 10px;
  background: var(--white);
  color: #76806f;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}
.nesto-cpg__toggle.is-active { background: var(--deep); border-color: var(--deep); color: var(--white); }
.nesto-cpg__divider { border: none; border-top: 1px dashed rgba(167,176,163,0.5); margin: 1.5rem 0; }
.nesto-cpg__generate {
  width: 100%; padding: 15px;
  background: var(--terra);
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 800;
  color: var(--white);
  cursor: pointer;
  margin-top: 1.5rem;
  letter-spacing: 0.02em;
}
.nesto-cpg__generate:hover { background: #b85c3e; }
.nesto-cpg__generate:disabled { opacity: 0.7; cursor: not-allowed; }
.nesto-cpg__message { margin-top: 1rem; }
.nesto-cpg__alert { border-radius: 10px; padding: 12px 16px; font-size: 14px; line-height: 1.5; }
.nesto-cpg__alert--error { background: #fff0ed; border: 1.5px solid #f0b8aa; color: #a33d22; }
.nesto-cpg__alert--info { background: #eef3f8; border: 1.5px solid #b8ccde; color: var(--deep); }
.nesto-cpg__result { margin-top: 1.5rem; background: var(--white); border: 1px solid rgba(167,176,163,0.35); border-radius: 16px; overflow: hidden; }
.nesto-cpg__result-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 14px 16px; border-bottom: 1px solid rgba(167,176,163,0.25); }
.nesto-cpg__result h3 { font-size: 16px; color: var(--deep); margin: 0; }
.nesto-cpg__copy { border: 1px solid var(--deep); color: var(--deep); background: var(--white); border-radius: 999px; padding: 8px 12px; cursor: pointer; font-weight: 700; }
.nesto-cpg__output { white-space: pre-wrap; word-wrap: break-word; margin: 0; padding: 16px; color: #24364a; font-size: 14px; line-height: 1.6; font-family: inherit; background: #fff; }
.nesto-cpg__tip { background: var(--white); border-left: 3px solid var(--warm); border-radius: 0 10px 10px 0; padding: 10px 14px; margin-top: 1.5rem; font-size: 13px; color: #5a4a2f; line-height: 1.6; }
.nesto-cpg__tip strong { font-weight: 800; color: var(--deep); }
@media (max-width: 640px) {
  .nesto-cpg { border-radius: 0; }
  .nesto-cpg__hero, .nesto-cpg__body { padding-left: 1.1rem; padding-right: 1.1rem; }
  .nesto-cpg__title { font-size: 24px; }
  .nesto-cpg__toggle-row { flex-direction: column; }
}
.nesto-cpg__language-wrap { background: rgba(255,255,255,0.65); border: 1px solid rgba(167,176,163,0.25); border-radius: 14px; padding: 14px; }
.nesto-cpg__language-note { background: #fff8e8; border: 1px solid rgba(217,164,65,0.35); border-radius: 12px; padding: 11px 14px; margin: 0 0 1.4rem; font-size: 13px; color: #5a4a2f; line-height: 1.55; }
.nesto-cpg__language-note strong { color: var(--deep); }


.nesto-cpg__prompt-list { padding: 16px; display: grid; gap: 14px; }
.nesto-cpg__prompt-card { border: 1px solid rgba(167,176,163,0.3); border-radius: 14px; background: #fffdfb; overflow: hidden; }
.nesto-cpg__prompt-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid rgba(167,176,163,0.22); background: #fff; }
.nesto-cpg__prompt-title { margin: 0; font-size: 14px; color: var(--deep); }
.nesto-cpg__prompt-text { padding: 14px; color: #24364a; font-size: 14px; line-height: 1.65; }
.nesto-cpg__copy-one { border: 1px solid rgba(31,58,95,0.25); color: var(--deep); background: #fff; border-radius: 999px; padding: 7px 11px; cursor: pointer; font-weight: 700; font-size: 12px; white-space: nowrap; }
.nesto-cpg__output { display: none; }
@media (max-width: 640px) {
  .nesto-cpg__result-head, .nesto-cpg__prompt-head { flex-direction: column; align-items: stretch; }
  .nesto-cpg__copy, .nesto-cpg__copy-one { width: 100%; text-align: center; }
}
