.text-prompt-hero {
  padding-top: 18px;
}
.text-prompt-hero .hero-copy {
  max-width: 820px;
}
.text-prompt-tool {
  border-color: rgba(167, 139, 250, .34);
  background:
    radial-gradient(circle at 93% 8%, rgba(167, 139, 250, .11), transparent 31%),
    radial-gradient(circle at 5% 100%, rgba(45, 212, 191, .07), transparent 34%),
    var(--surface);
}
.text-prompt-result {
  margin-top: 22px;
  padding: 22px;
  border: 1px solid rgba(167, 139, 250, .38);
  border-radius: 16px;
  background: rgba(76, 29, 149, .08);
}
.text-prompt-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  margin: 18px 0 0;
}
.text-prompt-fields div {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #080c15;
}
.text-prompt-fields dt,
.prompt-version h4,
.variable-panel h4,
.visible-text-note strong {
  color: #c4b5fd;
  font-size: 11.5px;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.text-prompt-fields dd {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}
.prompt-version-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 13px;
}
.prompt-version,
.variable-panel,
.visible-text-note {
  min-width: 0;
  padding: 15px 16px;
  border: 1px solid rgba(167, 139, 250, .3);
  border-radius: 12px;
  background: rgba(124, 90, 255, .06);
}
.prompt-version p {
  min-height: 122px;
  margin: 9px 0 14px;
  color: #e8edf7;
  line-height: 1.68;
}
.variable-panel {
  margin-top: 12px;
}
.visible-text-note {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}
.text-prompt-example-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}
.text-prompt-example-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}
.text-prompt-example-card .example-image {
  overflow: hidden;
  aspect-ratio: 3 / 2;
  margin: 0;
  border-bottom: 1px solid var(--border);
}
.text-prompt-example-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.text-prompt-example-card .example-body {
  padding: 18px;
}
.text-prompt-example-card h3 {
  margin: 0 0 9px;
  font-size: 18px;
}
.text-prompt-example-card .example-prompt {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.try-text-sample {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: #a5d8ff;
  font: inherit;
  font-size: 13.5px;
  font-weight: 750;
  cursor: pointer;
}
.try-text-sample:hover {
  text-decoration: underline;
}
.boundary-card {
  padding: 23px;
  border: 1px solid rgba(45, 212, 191, .3);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(45, 212, 191, .07), rgba(124, 90, 255, .07));
}
.boundary-card h3 {
  margin: 7px 0 12px;
  font-size: 21px;
}
.boundary-card p {
  color: var(--muted);
}
.text-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}
.text-choice-grid article {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}
.text-choice-grid h3 {
  margin: 8px 0 10px;
  font-size: 19px;
}
.text-choice-grid article > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.66;
}
@media (max-width: 900px) {
  .text-prompt-example-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .text-choice-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .text-prompt-fields,
  .prompt-version-grid,
  .text-prompt-example-grid { grid-template-columns: 1fr; }
  .prompt-version p { min-height: 0; }
}
@media (max-width: 560px) {
  .text-prompt-result { padding: 17px; }
  .visible-text-note { align-items: flex-start; flex-direction: column; }
}
