#traffic-road, #traffic-history {
  display: block;
  width: 100%;
  max-width: 800px;
  height: auto;
  background: var(--bg);
  outline: 1px solid var(--line);
  image-rendering: pixelated;
}
.traffic-actions { display: flex; flex-wrap: wrap; }
.traffic-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: .25rem 1.25rem;
  margin-bottom: 1rem;
}
.tool .traffic-controls input[type="range"] { padding: 0; accent-color: var(--fg); }
#traffic-status { color: var(--mute); font-family: var(--mono); font-size: .85rem; }
#traffic-share-result { margin-bottom: 1rem; }
#traffic-share-result input { width: 100%; }
.traffic-legend { display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
.traffic-legend .slow { color: #ff9d80; }
.traffic-legend .fast { color: #9bdcca; }
