body { background: #2b2620; color: #eadfc8; font: 14px/1.4 Georgia, serif; margin: 0; display: flex; flex-wrap: wrap; gap: 16px; padding: 16px; }
  canvas { background: #6b8f4e; cursor: pointer; image-rendering: pixelated; border: 2px solid #1a1612;
           width: auto; height: auto; max-width: calc(100vw - 36px); max-height: calc(100vh - 36px); }
  #side { width: 300px; }
  h1 { font-size: 20px; margin: 0 0 6px; }
  .row { margin: 4px 0; }
  button { background: #c4782a; color: #1a1612; border: 0; padding: 4px 10px; margin-right: 4px; font: inherit; cursor: pointer; }
  button.on { background: #f0b060; }
  #queue { font-size: 12px; max-height: 140px; overflow: auto; background: #1a1612; padding: 4px; }
  #log { font-size: 12px; max-height: 160px; overflow: auto; color: #bfb39a; }
  #warn { color: #ff9a6a; font-weight: bold; min-height: 1.4em; }
  .key { font-size: 12px; color: #bfb39a; }
