.jelly-grid { max-width: 700px; }
.jelly-grid .cell { background: var(--surface-2); }
.jelly-grid .cell.open, .jelly-grid .cell.taken { background: var(--surface); }
.jelly-grid .cell.obstruction { background: color-mix(in srgb, var(--err) 14%, var(--surface)); border-color: transparent; }
.jelly-grid .cell.planned { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.jelly-grid .cell.organelle::after, .jelly-grid .cell.infected::before {
  content: "";
  position: absolute;
  top: 1px;
  width: 3px;
  height: 3px;
  z-index: 2;
}
.jelly-grid .cell.organelle::after { left: 1px; background: var(--accent); }
.jelly-grid .cell.infected::before { right: 1px; background: var(--flag); }
.jelly-unit { width: 100%; height: 100%; z-index: 1; image-rendering: pixelated; pointer-events: none; }
.swatch.open { background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule-strong); }
.swatch.organelle { background: var(--accent); }
.swatch.infected { background: var(--flag); }
.jelly-target { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.jelly-target select {
  padding: 6px 10px;
  max-width: 360px;
  color: var(--text);
  background: var(--field);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 12px;
}
@media (max-width: 820px) {
  .jelly-grid .cell.organelle::after, .jelly-grid .cell.infected::before { width: 2px; height: 2px; }
}