main { max-width: 680px; }
.couriers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.courier { display: flex; align-items: center; gap: 8px; text-align: left; padding: 6px 10px; min-width: 0; }
.courier[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); background: #fff; }
.courier small { display: block; color: var(--soft); font-size: .78rem; }
.courier .mark { width: 20px; height: 20px; flex: none; border: 4px solid; background: transparent; }
.courier.coral .mark { border-color: #c95f49; border-radius: 50%; }
.courier.blue .mark { border-color: #3573a6; border-radius: 3px; }

.map { position: relative; width: 100%; aspect-ratio: 416 / 186; background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#dots button {
  position: absolute;
  width: 12.5%;
  aspect-ratio: 1;
  min-height: 0;
  padding: 0;
  transform: translate(-50%, -50%);
  background: transparent;
  border: 0;
  border-radius: 50%;
}
#dots button:hover { background: #2f5d5014; }
.node { fill: #fff; stroke: #8fa397; stroke-width: 2; }
.node.bay { stroke-dasharray: 4 3; }
.node.next { fill: #e3efe7; stroke: var(--accent); stroke-width: 2.5; }
.node.hot { fill: #f6dd8a; }
.road { stroke: #b9c7bd; stroke-width: 7; stroke-linecap: round; }
.road.hot { stroke: #e0b93f; }
.road.bad { stroke: var(--bad); }
.node-label { font: 600 16px ui-sans-serif, system-ui, sans-serif; text-anchor: middle; dominant-baseline: central; fill: var(--ink); pointer-events: none; }
.home-label { font: 600 12.5px ui-sans-serif, system-ui, sans-serif; text-anchor: middle; }
.home-label.coral, .token-name.coral { fill: #a8432e; }
.home-label.blue, .token-name.blue { fill: #235c8a; }
.token { transition: transform .35s ease, opacity .2s; }
.token-name { font: 700 12px ui-sans-serif, system-ui, sans-serif; text-anchor: middle; }

.playback { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0; }
.playback input { flex: 1; min-width: 120px; min-height: 44px; }
.tick { font: 700 1.25rem ui-monospace, monospace; min-width: 5.5ch; }

.timeline-wrap { overflow-x: auto; }
.timeline { border-collapse: collapse; width: 100%; table-layout: fixed; font: 600 .9rem ui-monospace, monospace; background: var(--card); }
.timeline th, .timeline td { border: 1px solid var(--line); text-align: center; height: 34px; padding: 0; }
.timeline th:first-child { width: 3.6em; font: 600 .78rem ui-sans-serif, system-ui, sans-serif; }
.timeline thead th { color: var(--soft); font-weight: 500; font-size: .78rem; }
.timeline .now { background: #f6e9c0; }
.timeline .wait { color: var(--soft); }
.timeline .wait i { font-style: normal; font-size: .7em; }
.timeline .bay span { border: 1.5px solid var(--ink); border-radius: 3px; padding: 0 3px; }
.timeline .gone { color: #a9a08d; }
.timeline td.deadline { border-right: 3px solid var(--ink); }
.legend { color: var(--soft); font-size: .78rem; margin-top: 6px; }

.walk-maps { display: grid; gap: 10px; margin: 10px 0; }
.walk-maps figure { margin: 0; }
.walk-maps .map { position: relative; }
.walk-maps figcaption { font-size: .85rem; color: var(--soft); margin-top: 3px; }
@media (max-width: 480px) {
  .controls button { padding: 0 10px; }
  .timeline { font-size: .8rem; }
  .timeline th:first-child { width: 3.2em; }
}
