#elementary-ca-world {
  display: block;
  width: 100%;
  max-width: 600px;
  height: auto;
  aspect-ratio: 161 / 160;
  image-rendering: pixelated;
  background: var(--bg);
  outline: 1px solid var(--line);
}
.ca-actions { display: flex; flex-wrap: wrap; }
.ca-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: .25rem 1.25rem; }
.ca-controls > div { min-width: 0; }
#elementary-ca-status { color: var(--mute); font-family: var(--mono); font-size: .9rem; }
.ca-error { color: #ffa78e; }
.markdown .ca-error:empty { display: none; }
#elementary-ca-share-result { margin-bottom: 1rem; }
.ca-rules { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: .3rem; max-width: 600px; }
.tool .ca-rules button { min-width: 0; margin: 0; padding: .4rem .15rem; }
.ca-neighbors { display: flex; justify-content: center; gap: 2px; }
.ca-cell { display: inline-block; width: .65rem; height: .65rem; border: 1px solid var(--mute); background: var(--bg); }
.ca-cell.on { background: #a5ddd8; }
.ca-arrow { display: block; line-height: 1.2; }
@media (max-width: 480px) { .ca-rules { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
