/* The board: one bead per machine, grouped, zoomable from 9px to 38px. */
.board .toolbar { padding-top: 0; }
.toggles label { display: inline-flex; align-items: center; gap: .35rem; padding: .15rem .5rem; border-radius: 999px; cursor: pointer; }
.toggles label:hover { background: var(--wash); }
.toggles input { position: absolute; opacity: 0; pointer-events: none; }
.toggles label:has(input:not(:checked)) { opacity: .45; text-decoration: line-through; }
.toggles label:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.toggles b { color: var(--ink); font-weight: 600; }
.pick { display: flex; align-items: center; gap: .5rem; font-size: .8125rem; font-weight: 600; color: var(--soft); white-space: nowrap; }
.pick select { width: auto; border-radius: 999px; color: var(--ink); font-weight: 500; }
.zoom { display: flex; align-items: center; gap: .15rem; }
.icon-btn:disabled { opacity: .35; cursor: not-allowed; }

.surface { --cell: 38px; display: flex; flex-wrap: wrap; gap: 1.1rem 1.6rem; align-content: flex-start; max-height: 23rem; overflow: auto; margin: 0 1.15rem 1.15rem; padding: 1rem; border-radius: 10px; background: var(--board) radial-gradient(circle, var(--peg) 1.3px, transparent 1.8px) 0 0 / 15px 15px; scrollbar-width: thin; scrollbar-color: var(--peg) transparent; }
.surface section { min-width: 0; }
.surface h3 { display: flex; gap: .4rem; margin-bottom: .35rem; padding: 0 .3rem; width: fit-content; background: var(--board); border-radius: 4px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.surface h3 span { font-family: var(--mono); font-weight: 400; color: var(--soft); }
.surface section > div { display: flex; flex-wrap: wrap; gap: calc(var(--cell) * .08); max-width: calc(var(--cell) * 21.6); }
.surface button, .surface i { position: relative; flex: none; width: var(--cell); height: var(--cell); padding: 0; border: 0; background: none; }
.surface button { cursor: pointer; border-radius: 50%; }
.surface button::before { content: ""; position: absolute; inset: 0; background: var(--tone); -webkit-mask: var(--ring); mask: var(--ring); }
.surface i::before { content: ""; position: absolute; inset: 40%; border-radius: 50%; background: var(--peg); }
.surface .free i::before { background: var(--soft); opacity: .4; }
.surface button.fork::after { content: ""; position: absolute; right: 94%; top: calc(50% - 1px); width: 22%; height: 2px; background: var(--ink); }
.surface button.dim::before { opacity: .14; }
.surface button[aria-pressed="true"] { outline: 2.5px solid var(--ink); outline-offset: 1px; }
.surface button:hover::before { scale: 1.15; }
.surface button span { position: absolute; z-index: 4; left: 50%; bottom: calc(100% + .3rem); translate: -50% 0; display: none; padding: .3rem .55rem; background: var(--ink); color: var(--board); border-radius: 8px; font: 500 .75rem var(--sans); white-space: nowrap; pointer-events: none; }
.surface button:hover span, .surface button:focus-visible span { display: block; }
.surface[data-zoom="0"] h3, .surface[data-zoom="1"] h3 { font-size: .72rem; }
.surface button.waking::before { animation: pulse 1.2s steps(2, start) infinite; }
@keyframes pulse { to { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .surface button.waking::before { animation: none; } }

.inspector { display: grid; grid-template-columns: minmax(0, 1fr); gap: .8rem; padding: 1rem 1.15rem; border-top: 1.5px solid var(--ink); }
.inspector .who { display: flex; align-items: center; gap: .6rem; }
.inspector .who .bead { width: 1.4rem; height: 1.4rem; }
.inspector .who span { display: block; font-size: .78rem; }
.inspector dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: .6rem 1rem; }
.inspector dt { font-size: .78rem; color: var(--soft); }
.inspector .acts { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.inspector [data-close] { margin-left: auto; }
.filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; flex: 1; min-width: 0; }
.pager { display: flex; align-items: center; gap: .5rem; }
.pager .spacer { flex: 1; }
@media (max-width: 56rem) { .surface { max-height: 18rem; margin-inline: .75rem; } }
