/* ═══════════════════════════════════════
   WORKBENCH WORLDS — the world page's Layout sub-tab (WorkbenchWorldLayout.js)
   ═══════════════════════════════════════ */

.wbw-layout {
  flex: 1 1 auto;
  min-width: 0;
  overflow: auto;
}

/* One square per region, as many columns as the world is wide. */
.wbw-grid {
  display: grid;
  grid-template-columns: repeat(var(--wbw-cols, 1), minmax(96px, 160px));
  gap: 8px;
  max-width: 100%;
  overflow-x: auto;
}

.wbw-cell {
  aspect-ratio: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-tertiary);
}

.wbw-cell-name {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.wbw-empty {
  border-style: dashed;
  background: none;
  color: var(--text-muted);
}
