#epidemic-world {
  display: block;
  width: 100%;
  max-width: 800px;
  height: auto;
  background: var(--bg);
  outline: 1px solid var(--line);
  image-rendering: pixelated;
  cursor: crosshair;
  touch-action: manipulation;
}
.epidemic-actions { display: flex; flex-wrap: wrap; }
.epidemic-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: .25rem 1.25rem;
  margin-bottom: 1rem;
}
.tool .epidemic-controls input[type="range"] { padding: 0; accent-color: var(--fg); }
#epidemic-status { color: var(--mute); font-family: var(--mono); font-size: .85rem; }
#epidemic-share-result { margin-bottom: 1rem; }
#epidemic-share-result input { width: 100%; }
#epidemic-chart { display: block; width: 100%; max-width: 600px; height: auto; background: var(--bg); outline: 1px solid var(--line); }
.epidemic-legend { display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
.epidemic-legend .susceptible { color: #a8c7db; }
.epidemic-legend .infected { color: #ffbe8e; }
.epidemic-legend .recovered { color: #a8dbac; }
