/* ============================================================
   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: 36px;
  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: 12px;
}

.q-bar__title {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-2);
}

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

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

.q-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.q-card__head {
  display: flex;
  gap: 9px;
  align-items: center;
}

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

/* Denser than the standalone field — these stack many to a screen */
.q-card .input {
  font-size: 14px;
  padding: 9px 11px;
  border-radius: 8px;
}

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

/* Indented to line up under the prompt, clear of the number */
.q-options {
  margin-top: 10px;
  padding-left: 31px;
}

.q-followup {
  margin-top: 9px;
  padding-left: 31px;
}
