.builder { padding: 40px 44px; border: 1px solid var(--line); border-radius: 24px; background: #fff; }
.sentence { font-family: var(--font-heading); font-size: 34px; font-weight: 800; line-height: 1.5; letter-spacing: -0.015em; }
.slot { display: inline-flex; align-items: center; gap: 10px; padding: 2px 14px 2px 16px; border: 1.5px solid #F7C6D6; border-radius: 14px; background: var(--blush); color: var(--magenta-deep); line-height: 1.35; white-space: nowrap; }
.slot .icon { width: 16px; height: 16px; }
.slot-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.slot-label { margin-bottom: 10px; font-family: var(--font-heading); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.slot-options ul { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.slot-options button { border: 0; border-radius: 999px; padding: 6px 13px; background: var(--soft); color: var(--ink); font: 600 14.5px/1.4 var(--font-body); text-align: left; cursor: pointer; transition: background .2s, color .2s; }
.slot-options button:hover { background: var(--line); }
.slot-options button[aria-pressed="true"] { background: var(--aubergine); color: #fff; }
.first-question { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; margin-top: 24px; padding: 24px 26px; border-radius: 20px; background: var(--aubergine); }
.first-question .slot-label { color: var(--muted-on-dark); }
.first-question .bubble { max-width: 100%; font-size: 16px; }

/* Between phone and desktop the longest objective no longer fits on one line, so the slots wrap */
@media (max-width: 1023px) {
  .sentence { font-size: 28px; }
  .slot { white-space: normal; }
}
@media (max-width: 720px) {
  .builder { padding: 24px 18px; border-radius: 20px; }
  .sentence { font-size: 22px; line-height: 1.7; }
  .slot { gap: 6px; padding: 1px 10px 1px 12px; border-radius: 11px; white-space: normal; }
  .slot-options { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .first-question { grid-template-columns: minmax(0, 1fr); padding: 18px 14px; }
  .first-question .example-tag { justify-self: start; }
}

/* The demo: customise.js empties the slots, opens each group in turn and fills the sentence, until someone picks for themselves */
.builder.is-demo .slot { transition: background-color .25s, border-color .25s, color .25s; }
.builder.is-reserved .sentence, .builder.is-reserved .first-question .turn { transition: min-height .4s ease; }
.slot.is-empty { border-style: dashed; border-color: #CFC6DA; background: var(--soft); color: var(--muted); }
.slot.is-active { border-style: solid; border-color: var(--magenta); background: #fff; color: var(--magenta); }
.slot-options .is-open .slot-label { color: var(--magenta); transition: color .2s; }
/* While a group is being chosen, its old choice lets go so the pointer reads as the only one */
.slot-options .is-choosing button[aria-pressed="true"] { background: var(--soft); color: var(--ink); }
.slot-options button.is-pointed { background: var(--line); }
.first-question .turn.is-waiting .bubble { opacity: 0; }
.first-question .turn:not(.is-waiting, .is-typing) .bubble { transition: opacity .4s; }
