/* ═══════════════════════════════════════
   WORKBENCH GAME SETTINGS — staged knobs, a card per category
   (WorkbenchGameSettingsTemplates.js, WorkbenchGameSettingsPanels.js)
   ═══════════════════════════════════════ */

/* A category heading carries its Reset beside the name. */
.wbgs-cat-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* The input and its Reset sit on one line; the input takes what is left. */
.wbgs-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wbgs-control .wb-in {
  flex: 1;
  min-width: 0;
}

/* A colour swatch is a swatch, not a stretched box. */
.wbgs-control input[type="color"] {
  flex: 0 0 auto;
  width: 56px;
  padding: 2px;
}

.wbgs-reset {
  flex: 0 0 auto;
}

/* Active · Pending · Default, under the control. */
.wbgs-meta {
  margin-top: 4px;
  font-size: 12px;
}

/* One row's own line of feedback, so a save never repaints under a caret. */
.wbgs-status {
  min-height: 16px;
  font-size: 12px;
  color: var(--text-muted);
}

.wbgs-status.ok {
  color: var(--green);
}

.wbgs-status.err {
  color: var(--red);
}

/* The picked background, under its dropdown. */
.wbgs-bg-preview {
  margin-top: 8px;
  max-width: 320px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-hover);
}

.wbgs-bg-preview img {
  display: block;
  width: 100%;
  height: auto;
}

.wbgs-bg-preview.none {
  padding: 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
}
