/* ============================================================
   Question builder
   Editor on the left, live preview on the right. Each question
   is a card: number, prompt input, delete, then its options.
   ============================================================ */

.q-split {
  display: flex;
  gap: var(--space-20);
  align-items: flex-start;
}

.q-main {
  flex: 1;
  min-width: 0;
}

/* ---------- Bar ---------- */

.q-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
}

.q-bar__title {
  font-size: var(--fs-md);
  font-weight: var(--fw-medium);
  color: var(--text-2);
}

.q-bar__count {
  color: var(--text-5);
  font-weight: var(--fw-regular);
  font-feature-settings: 'tnum';
}

/* ---------- Card ---------- */

.q-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.q-card {
  background: var(--field);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  padding: var(--space-7);
}

.q-card__head {
  display: flex;
  gap: var(--space-5);
  align-items: center;
}

.q-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 3px;
  background: var(--border);
  color: var(--text-4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-sm);
  font-weight: var(--fw-regular);
  font-feature-settings: 'tnum';
}

/* Denser than the standalone field — these stack many to a screen */
.q-card .input {
  font-size: var(--fs-md);
  padding: var(--space-4) var(--space-6);
  border-radius: 4px;
}

/* ---------- Options ---------- */

/* Indented to line up under the prompt, clear of the number */
.q-options {
  margin-top: var(--space-5);
  padding-left: var(--space-16);
}

.q-followup {
  margin-top: var(--space-5);
  padding-left: var(--space-16);
}
