.warehouse-replay {
  --wr-line: #c7d2cc;
  --wr-tile: #f5f7f1;
  --wr-path: #0c6b62;
  --wr-slow: #f6c99b;
  --wr-ink: #163f41;
  --wr-visited: #d8ece3;
  box-sizing: border-box;
  border: 1px solid var(--wr-line);
  border-radius: .6rem;
  padding: clamp(.8rem, 3vw, 1.4rem);
  margin: 1.25rem 0;
  font-variant-numeric: tabular-nums;
}
html[data-theme="dark"] .warehouse-replay {
  --wr-line: #60716e;
  --wr-tile: #30403f;
  --wr-path: #8fdbcc;
  --wr-ink: #f0f3e9;
  --wr-slow: #795231;
  --wr-visited: #33594f;
}
.warehouse-replay label { display: block; font-weight: 700; }
.warehouse-replay output { color: var(--wr-path); margin-left: .4em; }
.warehouse-replay input[type="range"] {
  width: 100%; height: 1.7rem; padding: 0; margin: .3rem 0;
  accent-color: var(--wr-path); cursor: pointer; box-shadow: none;
}
.warehouse-replay__jumps { display: flex; flex-wrap: wrap; gap: .35rem; }
.warehouse-replay__jumps button {
  border: 1px solid var(--wr-line); border-radius: .3rem; background: transparent;
  color: inherit; font: inherit; font-size: .78rem; padding: .25rem .55rem; cursor: pointer;
}
.warehouse-replay__jumps button[aria-pressed="true"] {
  border-color: var(--wr-path); background: var(--wr-visited); color: var(--wr-ink);
}
.warehouse-replay :focus-visible { outline: 2px solid var(--wr-path); outline-offset: 2px; }
.warehouse-replay__panels { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1.25rem; margin-top: 1.2rem; }
.warehouse-replay__panels[hidden] { display: none; }
.warehouse-replay__grid { display: grid; gap: 3px; }
.warehouse-replay__cell {
  position: relative; display: grid; place-items: center; aspect-ratio: 1.15;
  background: var(--wr-tile); border: 1px solid var(--wr-line); border-radius: .2rem;
  color: var(--wr-ink); line-height: 1; font-size: clamp(1.15rem, 4vw, 1.85rem);
}
.warehouse-replay__cell.is-visited { background: var(--wr-visited); }
.warehouse-replay__cell.is-slow { background: var(--wr-slow); }
.warehouse-replay__cell.is-wall { background: #405157; }
.warehouse-replay__cell.is-repeat { border: 4px double var(--wr-ink); }
.warehouse-replay__cell small { position: absolute; left: 3px; top: 2px; font-size: .65rem; font-weight: 600; }
.warehouse-replay .warehouse-replay__legend { font-size: .78rem; margin: .45rem 0 0; line-height: 1.55; }
.warehouse-replay__values p { margin: 0 0 .65rem; }
.warehouse-replay__values strong { display: block; color: var(--wr-path); }
.warehouse-replay__q { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin: -.35rem 0 0; }
.warehouse-replay__q dt, .warehouse-replay__q dd { margin: 0; padding: 0; font-size: .85rem; font-weight: 400; }
.warehouse-replay__q dt { color: var(--wr-path); font-weight: 650; }
.warehouse-replay__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 37rem) {
  .warehouse-replay__panels { grid-template-columns: 1fr; gap: .9rem; }
  .warehouse-replay__values p { margin-bottom: .45rem; }
  .warehouse-replay__values strong { display: inline; margin-left: .35em; }
}
