/* ═══════════════════════════════════════
   WORKBENCH UNIVERSE MAP — the placed worlds on one canvas
   (WorkbenchUniverseMapTemplates.js)
   ═══════════════════════════════════════ */

/* The canvas and the Add world card side by side. */
.wbum-surface {
  gap: 16px;
}

/* The canvas is transparent: this element is the map's background. */
.wbum-map {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-primary);
}

.wbum-map canvas {
  display: block;
}

/* Said over the empty canvas; clicks go through to it. */
.wbum-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.wbum-pick-slot:empty {
  display: none;
}

.wbum-pick {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 300px;
  height: 100%;
  min-height: 0;
}

.wbum-pick-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.wbum-pick .wb-list li {
  padding: 0;
}

/* A world to place: the whole row is one button. */
.wbum-row {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px 6px;
  border: 0;
  border-radius: 4px;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.wbum-row:hover,
.wbum-row:focus-visible {
  background: var(--bg-hover);
}

.wbum-row-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wbum-pick-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
