/* ═══════════════════════════════════════
   WORKBENCH QUESTS — a quest's Encounters and Worlds sub-tabs
   (WorkbenchQuestEncounters.js, WorkbenchQuestWorlds.js)
   ═══════════════════════════════════════ */

/* ── A quest surface fills its slot and scrolls inside it ── */
.wb-quest-surface {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  min-height: 0;
  overflow: auto;
}

/* ── The encounter editor's title, with Save and Cancel beside it ── */
.wb-quest-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* ── A list row's buttons, side by side ── */
.wb-quest-acts {
  white-space: nowrap;
  text-align: right;
}

.wb-quest-acts .wb-btn + .wb-btn {
  margin-left: 6px;
}

/* ── The encounter editor's body: a fieldset only so a read-only tier, or a
   save in flight, disables every input at once — it draws nothing itself ── */
.wb-quest-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
