/* One card pattern for all song choices, including the existing mood/purpose radios. */
.choice-card-source { display: none !important; }
.choice-card-field { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
.choice-card-field > legend { padding: 0; margin: 0 0 12px; font-size: 13px; font-weight: 600; line-height: 1.5; }
.studio-card .planner-audience { margin: 0 0 24px; width: 100%; max-width: none; }
.studio-card .planner-audience > legend,
.studio-card .voice-preferences > legend { padding: 0; font-size: 13px; font-weight: 600; line-height: 1.5; }
.studio-card .planner-audience label { flex: 1; min-width: 0; }
.studio-card .planner-audience label > span { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: center; }
.studio-card .planner-audience input:checked + span { background: var(--brand-forest, #174b38); color: var(--brand-cream, #fffcf5); box-shadow: inset 0 -3px 0 var(--brand-coral, #d99b80); }
.studio-card .planner-audience input:focus-visible + span { outline: 3px solid var(--brand-focus, #b85a2b); outline-offset: 4px; }
.song-brief-field textarea { min-height: 160px; }
.song-brief-field > .field-help { display: block; margin-top: 8px; line-height: 1.6; }
.studio-card #purpose-hint { padding: 12px 14px; margin: 12px 0 18px; border-left: 3px solid var(--brand-coral, #d99b80); background: #edf1e5; border-radius: 0 8px 8px 0; font-size: 12px; font-weight: 600; line-height: 1.6; color: var(--brand-forest, #174b38); }
.choice-options,
.studio-card .mood-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.choice-card,
.studio-card .mood-options label,
.studio-card .purpose-options label { position: relative; display: block; cursor: pointer; min-width: 0; }
.choice-card > input,
.studio-card .mood-options input,
.studio-card .purpose-options input {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: 0;
  opacity: 0; overflow: hidden; clip-path: inset(50%);
}
.choice-card > span,
.studio-card .mood-options label > span,
.studio-card .purpose-options label > span {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; height: 100%; padding: 12px 10px; border: 1px solid #7f917b;
  border-radius: 10px; background: #fffef9; color: var(--brand-forest, #174b38);
  font-size: 12px; font-weight: 500; line-height: 1.5; text-align: center; overflow-wrap: anywhere;
}
.choice-card input:checked + span,
.studio-card .mood-options input:checked + span,
.studio-card .purpose-options input:checked + span {
  background: var(--brand-forest, #174b38); border-color: var(--brand-forest, #174b38);
  color: var(--brand-cream, #fffcf5); box-shadow: inset 0 -3px 0 var(--brand-coral, #d99b80);
}
.choice-card input:checked + span::before,
.studio-card .mood-options input:checked + span::before,
.studio-card .purpose-options input:checked + span::before { content: '✓'; flex: 0 0 auto; font-weight: 700; }
.choice-card input:focus-visible + span,
.studio-card .mood-options input:focus-visible + span,
.studio-card .purpose-options input:focus-visible + span { outline: 3px solid var(--brand-focus, #b85a2b); outline-offset: 4px; }
.choice-card input:disabled + span,
.choice-card-field:disabled .choice-card > span { opacity: .55; cursor: not-allowed; }
.studio-card .voice-options { grid-template-columns: 1fr; gap: 0; }
.choice-card-field[data-choice-for="vocalGender"] .choice-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice-card-field[hidden], .choice-card[hidden] { display: none; }
.choice-card-item { min-width: 0; }
.choice-card-item[hidden], .genre-preview-button[hidden],
.genre-preview-intro[hidden], .genre-preview-note[hidden] { display: none; }
.choice-card-field[data-choice-for="style"] .choice-options { gap: 14px 10px; }
.choice-card-no-preference { grid-column: 1 / -1; margin-bottom: 2px; }
.choice-card-no-preference > .choice-card { width: fit-content; min-width: 120px; }
.choice-card-no-preference > .choice-card > span { min-height: 44px; }
.genre-preview-intro { margin: 0 0 18px; color: var(--brand-forest, #174b38); font-size: 13px; line-height: 1.6; }
.genre-preview-note { margin: 18px 0 0; padding: 12px 14px; border-left: 3px solid var(--brand-coral, #d99b80); background: #edf1e5; color: var(--brand-forest, #174b38); font-size: 12px; line-height: 1.6; }
.genre-preview-status { margin: 8px 0 0; color: var(--brand-forest, #174b38); font-size: 12px; line-height: 1.5; }
.genre-preview-status:empty { display: none; }
button.genre-preview-button {
  display: block; width: 100%; min-height: 44px; padding: 8px 3px 3px;
  border: 0; border-radius: 6px; box-shadow: none; background: transparent;
  color: var(--brand-forest, #174b38); font-family: inherit; font-size: 12px;
  font-weight: 400; line-height: 1.4; text-align: center; cursor: pointer;
  text-transform: none; letter-spacing: normal;
}
button.genre-preview-button:hover { background: #edf1e5; text-decoration: underline; text-underline-offset: 3px; }
button.genre-preview-button[aria-pressed="true"] { background: #edf1e5; text-decoration: underline; text-underline-offset: 3px; }
button.genre-preview-button:focus-visible { outline: 3px solid var(--brand-focus, #b85a2b); outline-offset: 2px; }
button.genre-preview-button:disabled { opacity: .55; cursor: not-allowed; }
@media (max-width: 600px) {
  .choice-options, .studio-card .mood-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: no-preference) {
  .choice-card > span, .studio-card .mood-options label > span, .studio-card .purpose-options label > span {
    transition: background-color .18s, border-color .18s, box-shadow .18s, transform .18s;
  }
  @media (hover: hover) {
    .choice-card:hover > input:not(:disabled) + span,
    .studio-card .mood-options label:hover > span,
    .studio-card .purpose-options label:hover > span { transform: translateY(-2px); box-shadow: 0 4px 12px #174b381a; }
  }
}
@media (forced-colors: active) {
  .choice-card input:checked + span,
  .studio-card .mood-options input:checked + span,
  .studio-card .purpose-options input:checked + span { outline: 2px solid Highlight; outline-offset: -4px; }
}
