/* Script prompt builder, styled as the role-play planner. Phone first; the article frame is 311 px on a phone and 700 px
   on a computer, so the wider layout starts at 600 px. */

.pair { display: grid; gap: 0 16px; }
select, input[type='text'], textarea:not(.request) {
  width: 100%;
  height: 44px;
  padding: 0 10px;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  min-width: 0;
}
.inline-choices { display: flex; gap: 10px; }
.inline-choices .choice { margin-top: 0; min-width: 72px; }

.out { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.out h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 1.125rem; }
.out h3 { margin: 16px 0 6px; font-size: 1rem; }
.out h3:first-child { margin-top: 4px; }
.step {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 0.875rem; font-weight: 700;
}
.request {
  display: block; width: 100%; padding: 12px;
  font: inherit; font-size: 0.9375rem; line-height: 1.5;
  color: var(--text); background: var(--accent-soft);
  border: 1px solid var(--line); border-radius: 8px; resize: none; overflow: hidden;
}
.copy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 12px; }
.copy-row .button { border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.copied { font-size: 0.875rem; color: var(--muted); }
.length { margin: 12px 0 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 0.9375rem; }

.lead { margin: 0 0 10px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 0.9375rem; }
.cast { margin: 0; padding-left: 20px; }
.cast li { margin: 0 0 10px; }
.cast-line { margin: 0; overflow-wrap: anywhere; }
.cast-note { margin: 4px 0 0; font-size: 0.875rem; color: #8a4b00; }

.tips, .steps { margin: 0; padding-left: 20px; }
.tips li, .steps li { margin: 0 0 8px; }

.fold summary { cursor: pointer; list-style: none; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary h2 { margin: 0; }
.fold summary h2::after { content: '+'; margin-left: auto; color: var(--accent); font-weight: 700; }
.fold[open] summary h2::after { content: '−'; }
.fold[open] summary { margin-bottom: 8px; }

.cta { margin: 24px 0 0; }

[hidden] { display: none !important; }

@media (min-width: 600px) {
  h1 { font-size: 1.75rem; }
  .pair { grid-template-columns: 1fr 1fr; }
}

textarea:not(.request) { height: auto; padding: 8px 10px; line-height: 1.4; resize: vertical; }
.edit { margin: 0 0 4px; }
.edit > summary { cursor: pointer; font-weight: 600; color: var(--accent); margin-bottom: 12px; }
.out ol.tips { padding-left: 22px; }
.edit > summary::after { content: ' +'; }
.edit[open] > summary::after { content: ' −'; }

.optional { font-weight: 400; color: var(--muted); }
.note { margin: 10px 0 0; padding: 8px 12px; border-radius: 8px; background: #fff6d6; border: 1px solid #f0d98a; font-size: 0.9375rem; }
