:root {
  --ink: #202b3e;
  --muted: #606776;
  --line: #dcdfe5;
  --accent: #2455d6;
  --accent-soft: #becdea;
  --paper: #f5f5f3;
  --white: #fff;
  --orange: #d67c34;
  --sidebar: #172033;
  --map-height: clamp(450px, 39vw, 620px);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
button,
input,
select {
  font: inherit;
}
button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  border: 0;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #d58a39;
  outline-offset: 3px;
}
button,
select,
a {
  touch-action: manipulation;
}
.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.rail {
  width: 76px;
  background: var(--sidebar);
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 13px;
  z-index: 20;
  padding: 25px 12px;
}
.brand-symbol {
  font-weight: 750;
  color: #c7d3ec;
  font-size: 30px;
  letter-spacing: -6px;
  margin-bottom: 40px;
  padding-right: 4px;
}
.brand-symbol span {
  font-size: 25px;
  position: relative;
  top: -5px;
}
.rail-button {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: transparent;
  display: grid;
  place-items: center;
  color: #aab2c1;
  transition: 0.15s;
}
.rail-button:hover,
.rail-button.active {
  background: #ffffff12;
  color: #c7d3ec;
}
.rail-button.active {
  position: relative;
}
.rail-button.active:before {
  content: "";
  position: absolute;
  left: -13px;
  height: 25px;
  width: 3px;
  background: #a5b9e1;
}
.rail-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #c7d2e7;
  color: #18243d;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 12px;
  border: 3px solid #424d64;
}
.shell {
  margin-left: 76px;
}
.topbar {
  min-height: 82px;
  padding: 18px 32px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  gap: 20px;
}
.wordmark {
  font-size: 26px;
  letter-spacing: -1px;
  font-weight: 750;
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.wordmark span {
  font-weight: 450;
  color: #4b5b7a;
}
.wordmark small {
  font-size: 12px;
  letter-spacing: 0;
  border-left: 1px solid var(--line);
  padding-left: 16px;
  margin-left: 16px;
  font-weight: 450;
  color: var(--muted);
}
.top-center {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}
.status-dot,
.tiny-dot {
  width: 7px;
  height: 7px;
  background: #2a4780;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.ghost,
.primary {
  border: 1px solid #cbd0d9;
  background: #fff;
  border-radius: 7px;
  padding: 11px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  min-height: 44px;
  transition: 0.15s;
}
.ghost:hover {
  border-color: #7e8daa;
  background: #f5f7fa;
}
.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.primary:hover,
.optimize-button:hover,
.play-button:hover {
  background: #192a4c;
}
.compact {
  border: 0;
  background: transparent;
  font-size: 13px;
  padding: 8px;
}
.compact .icon {
  width: 18px;
}
.text-link {
  background: transparent;
  color: #203661;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 4px 0;
  font-weight: 550;
}
main {
  padding: 28px 32px 0;
  max-width: 1720px;
  margin: auto;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.eyebrow {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 7px;
}
h1 {
  font-size: clamp(27px, 2.6vw, 36px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -1.1px;
  margin: 0 0 10px;
}
.heading p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  max-width: 700px;
}
.heading-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.quick-guide {
  border-top: 1px solid #c8ced9;
  border-bottom: 1px solid #c8ced9;
  padding: 14px 0 18px;
  margin-bottom: 24px;
}
.guide-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.guide-heading > strong {
  font-size: 14px;
  font-weight: 650;
}
.quick-guide ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.quick-guide li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.guide-number {
  border: 1px solid #97a1b6;
  color: #283d66;
  border-radius: 50%;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 650;
  margin-top: 1px;
}
.quick-guide li strong {
  font-size: 13px;
  font-weight: 650;
}
.quick-guide p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.metric {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 18px 20px;
}
.metric-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: #4f586a;
  margin-bottom: 12px;
  font-weight: 550;
}
.metric-info {
  color: #646c7d;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid #cbcfd8;
  border-radius: 50%;
  background: white;
  font-size: 12px;
  flex-shrink: 0;
}
.metric-info:hover {
  background: #e9edf4;
  color: #203662;
}
.metric-value {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-weight: 650;
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}
.metric-value small {
  color: #747b8a;
  font-size: 15px;
  letter-spacing: 0;
  font-weight: 400;
}
.metric-tag {
  font-size: 11px;
  font-weight: 550;
  letter-spacing: 0;
  color: #5b6373;
  background: #eef0f4;
  padding: 4px 7px;
  border-radius: 4px;
  margin-left: auto;
  align-self: center;
}
.metric-tag.success {
  color: #233b6a;
  background: #e5eaf3;
}
.metric-caption {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 6px;
  align-items: center;
  min-height: 18px;
}
.tiny-dot {
  width: 5px;
  height: 5px;
}
.workspace {
  display: grid;
  grid-template-columns: 324px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.control-panel {
  height: calc(var(--map-height) + 194px);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #bac0cd transparent;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.panel-section {
  padding: 20px;
  border-bottom: 1px solid #e2e5ea;
}
.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 15px;
}
.section-label h2 {
  font-size: 15px;
  margin: 0;
  font-weight: 650;
}
.section-label > span {
  font-size: 11px;
  color: var(--muted);
}
.step-tag {
  display: none;
}
.scenario-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: #ebedf2;
  border-radius: 7px;
}
.scenario-tabs button {
  flex: 1;
  border-radius: 4px;
  background: transparent;
  padding: 9px 3px;
  color: #535c6f;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}
.scenario-tabs button small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  margin-top: 5px;
  color: #6e7584;
}
.scenario-tabs button.selected {
  background: #fff;
  color: #1b2d52;
  box-shadow: 0 1px 4px #1e2a4310;
}
.scenario-foot {
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 12px;
  display: flex;
  gap: 6px;
  align-items: flex-start;
}
.scenario-foot .icon {
  width: 15px;
  height: 15px;
  color: #9d793e;
  margin-top: 2px;
}
.planning label {
  display: block;
  font-size: 12px;
  color: #5e6779;
  margin-bottom: 8px;
}
select {
  color: #2d3b57;
  border: 1px solid #cdd1da;
  border-radius: 6px;
  padding: 10px 26px 10px 11px;
  background: #fff;
  max-width: 100%;
  font-size: 13px;
  cursor: pointer;
  min-height: 42px;
}
.planning select {
  width: 100%;
}
.small-copy {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  margin: 11px 0 16px;
}
.optimize-button {
  background: var(--accent);
  color: #fff;
  width: 100%;
  border-radius: 6px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 600;
  min-height: 46px;
  transition: 0.15s;
}
.optimize-button .icon {
  width: 18px;
  height: 18px;
}
.arrow {
  margin-left: auto;
  font-size: 19px;
  font-weight: 400;
}
.engine-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #666e7f;
  margin-top: 11px;
}
.engine-label .status-dot {
  height: 5px;
  width: 5px;
}
.section-label .subtle {
  font-size: 11px;
  font-weight: 400;
}
.fleet-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.vehicle-card {
  text-align: left;
  width: 100%;
  border: 1px solid #d8dce5;
  border-radius: 7px;
  background: #fff;
  padding: 12px;
  transition: 0.15s;
  position: relative;
}
.vehicle-card:hover {
  border-color: #9ca6bb;
}
.vehicle-card.selected {
  border-color: var(--vehicle-color);
  background: color-mix(in srgb, var(--vehicle-color) 4%, white);
}
.vehicle-card.broken {
  background: #fff6eb;
}
.vehicle-top {
  display: flex;
  align-items: center;
  gap: 9px;
}
.vehicle-symbol {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  background: color-mix(in srgb, var(--vehicle-color) 10%, white);
  border-radius: 6px;
  color: var(--vehicle-color);
  flex-shrink: 0;
}
.vehicle-symbol .icon {
  width: 21px;
  height: 21px;
}
.vehicle-name {
  font-size: 13px;
  font-weight: 650;
}
.vehicle-name small {
  font-size: 11px;
  color: #606877;
  display: block;
  margin-top: 4px;
  font-weight: 400;
}
.vehicle-count {
  margin-left: auto;
  font-size: 11px;
  color: var(--vehicle-color);
  padding: 4px 0;
  white-space: nowrap;
}
.vehicle-data {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: #626a7a;
  margin-top: 10px;
}
.capacity-track {
  height: 5px;
  flex: 1;
  background: #dfe3ec;
  border-radius: 3px;
}
.capacity-track span {
  display: block;
  height: 100%;
  background: var(--vehicle-color);
  border-radius: 3px;
  max-width: 100%;
}
.route-sequence {
  padding: 13px 0 3px;
  margin-top: 7px;
}
.sequence-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #37445d;
  font-weight: 600;
  margin-bottom: 10px;
}
.sequence-label span {
  font-weight: 400;
  color: var(--muted);
}
.sequence-stops {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  line-height: 1.6;
}
.sequence-end {
  font-size: 11px;
  color: #606878;
}
.sequence-order {
  font-size: 11px;
  color: var(--vehicle-color);
  font-weight: 650;
  background: color-mix(in srgb, var(--vehicle-color) 7%, white);
  padding: 2px 5px;
  border-radius: 3px;
}
.sequence-arrow {
  font-size: 11px;
  color: #828ca1;
}
.selection-detail {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  background: #eff1f6;
  border: 1px solid #dfe3eb;
  border-radius: 6px;
  padding: 12px;
  font-size: 12px;
  line-height: 1.7;
  color: #545f76;
  margin-top: 14px;
}
.selection-detail .icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 2px;
}
.selection-detail strong {
  color: #31405f;
  font-weight: 650;
}
.selection-detail button {
  background: #d5dceb;
  border-radius: 4px;
  font-size: 12px;
  color: #2a3d63;
  padding: 7px 9px;
  margin-top: 8px;
}
.compare-link {
  background: #f5f7fa;
  color: #37496d;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 17px 20px;
  width: 100%;
  text-align: left;
  font-weight: 550;
}
.compare-link .icon {
  width: 18px;
  height: 18px;
}
.compare-link > span:last-child {
  margin-left: auto;
}
.map-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  min-width: 0;
  min-height: calc(var(--map-height) + 194px);
  display: flex;
  flex-direction: column;
}
.map-top {
  padding: 21px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #fff;
  min-height: 92px;
}
.map-city {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.2px;
}
.map-city > span {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding-left: 12px;
  letter-spacing: 0;
}
.map-subtitle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #616a7b;
  margin-top: 6px;
}
.map-subtitle .status-dot {
  width: 5px;
  height: 5px;
}
.map-clock {
  display: grid;
  grid-template-columns: 19px 1fr;
  column-gap: 7px;
  align-items: center;
  text-align: right;
  flex-shrink: 0;
}
.map-clock .icon {
  width: 17px;
  color: #5b667d;
  grid-row: 1/3;
}
.map-clock strong {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.7px;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.map-clock small {
  font-size: 11px;
  color: #636d82;
  margin-top: 4px;
}
.map-canvas {
  background: #e8ebf0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  height: var(--map-height);
  flex: 1;
  min-height: 400px;
}
#city-map {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  touch-action: none;
  user-select: none;
}
.map-note {
  position: absolute;
  left: 15px;
  top: 14px;
  background: #fffffff0;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 11px;
  color: #5b6578;
  border: 1px solid #d7dce5;
  display: flex;
  align-items: center;
  gap: 6px;
}
.map-note-dot {
  width: 5px;
  height: 5px;
  background: #657491;
  border-radius: 50%;
}
.map-controls {
  position: absolute;
  right: 15px;
  top: 14px;
  display: flex;
  flex-direction: column;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #c2c9d7;
  box-shadow: 0 2px 7px #37405209;
}
.map-controls button {
  width: 36px;
  height: 36px;
  background: #fff;
  color: #485775;
  border-bottom: 1px solid #d6dbe5;
  display: grid;
  place-items: center;
  font-size: 23px;
}
.map-controls button:hover {
  background: #e5eaf3;
}
.map-controls button:last-child {
  border-bottom: 0;
}
.map-controls .icon {
  width: 17px;
  height: 17px;
}
.map-legend {
  position: absolute;
  bottom: 14px;
  left: 15px;
  display: flex;
  gap: 14px;
  align-items: center;
  background: #fffffff0;
  border-radius: 5px;
  padding: 8px 12px;
  font-size: 11px;
  color: #515d74;
}
.map-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.map-legend i {
  width: 9px;
  height: 9px;
  display: inline-block;
  border-radius: 50%;
}
.legend-depot {
  background: var(--accent);
  border-radius: 2px !important;
}
.legend-delivery {
  background: white;
  border: 2px solid #586785;
}
.legend-done {
  background: #5b709a;
}
.map-onboarding {
  position: absolute;
  left: 50%;
  bottom: 55px;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  align-items: center;
  background: #fff;
  border: 1px solid #c5cddc;
  padding: 13px 15px;
  border-radius: 7px;
  box-shadow: 0 6px 20px #15213a12;
  width: max-content;
  max-width: 88%;
}
.map-onboarding.hidden {
  display: none;
}
.tip-icon {
  display: grid;
  place-items: center;
  background: #e3e8f2;
  color: #425780;
  border-radius: 5px;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}
.tip-icon .icon {
  width: 20px;
}
.map-onboarding strong {
  font-size: 13px;
  font-weight: 650;
}
.map-onboarding p {
  font-size: 12px;
  color: #58647b;
  line-height: 1.5;
  margin: 4px 0 0;
}
.map-onboarding button {
  background: transparent;
  color: #6b7891;
  margin-left: 8px;
  font-size: 23px;
}
.playback {
  display: flex;
  align-items: center;
  padding: 22px;
  gap: 15px;
  background: #fff;
  border-top: 1px solid #d9dee8;
  min-height: 100px;
}
.play-button {
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 108px;
  height: 43px;
  font-size: 13px;
  font-weight: 600;
  padding: 0 13px;
}
.play-button .icon {
  width: 16px;
  height: 16px;
}
.reset-button {
  background: transparent;
  color: #53607b;
  display: grid;
  place-items: center;
  width: 32px;
  height: 40px;
  padding: 0;
  flex-shrink: 0;
}
.reset-button .icon {
  width: 19px;
  height: 19px;
}
.timeline {
  flex: 1;
  min-width: 50px;
}
.timeline-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 11px;
  color: #5c6881;
  gap: 5px;
}
.timeline-label strong {
  font-weight: 550;
  color: #3a4a6b;
}
.timeline-track {
  height: 5px;
  border-radius: 4px;
  background: #e1e5ee;
  overflow: hidden;
}
.timeline-track > span {
  display: block;
  background: #3a558b;
  height: 100%;
  width: 0;
  transition: width 0.25s;
}
.timeline-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #5e6a83;
  margin-top: 5px;
}
.speed {
  border-left: 1px solid #d3d9e6;
  padding-left: 14px;
}
.speed > span {
  display: block;
  font-size: 10px;
  color: #556380;
  margin-bottom: 5px;
}
.speed > div {
  display: flex;
  gap: 1px;
}
.speed button {
  background: white;
  color: #48597a;
  font-size: 12px;
  border-radius: 4px;
  padding: 5px 7px;
}
.speed button.selected {
  background: #dae1ef;
  color: #26395f;
  font-weight: 650;
}
.bottom-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 20px;
  margin-top: 22px;
}
.deliveries-panel,
.events-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  min-width: 0;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 21px 22px 17px;
}
.panel-heading h2 {
  font-size: 16px;
  font-weight: 650;
  margin: 0 0 6px;
  letter-spacing: -0.2px;
}
.panel-heading h2 span {
  font-size: 12px;
  padding: 3px 6px;
  background: #e6eaf2;
  border-radius: 4px;
  color: #455576;
  margin-left: 5px;
}
.panel-heading p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}
.panel-heading select {
  font-size: 12px;
  padding: 8px 25px 8px 9px;
  max-width: 180px;
}
.table-wrap {
  height: 330px;
  overflow: auto;
  scrollbar-width: thin;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
  white-space: nowrap;
}
th {
  font-size: 11px;
  color: #4b576f;
  background: #f3f5f9;
  font-weight: 600;
  padding: 12px 15px;
  position: sticky;
  top: 0;
  z-index: 1;
  border-top: 1px solid #dfe4ee;
  border-bottom: 1px solid #d7dce7;
  text-transform: none;
}
td {
  padding: 13px 15px;
  border-bottom: 1px solid #e1e5ee;
  color: #485774;
}
tr.order-row {
  cursor: pointer;
  transition: 0.15s;
}
tr.order-row:hover,
tr.order-row.selected {
  background: #e8edf7;
}
td:first-child {
  font-weight: 550;
  color: #293855;
}
td:first-child small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: #586785;
  margin-top: 5px;
}
.vehicle-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--vehicle-color);
  font-size: 12px;
  font-weight: 550;
}
.vehicle-pill i {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--vehicle-color);
}
.status-pill {
  display: inline-block;
  padding: 5px 7px;
  border-radius: 4px;
  font-size: 11px;
  background: #edf1f8;
  color: #506b92;
}
.status-pill.done {
  color: #314670;
  background: #e2e7f0;
}
.status-pill.late {
  color: #936021;
  background: #fff0d6;
}
.status-pill.cancelled {
  background: #efefeb;
  color: #626873;
}
.status-pill.unassigned {
  background: #fff0e5;
  color: #a16032;
}
.live-pill {
  font-size: 11px;
  color: #4d5c7b;
  display: flex;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
}
.live-pill i {
  width: 6px;
  height: 6px;
  background: #556c99;
  border-radius: 50%;
}
.event-actions {
  display: flex;
  gap: 7px;
  padding: 0 22px 18px;
  border-bottom: 1px solid #d9dfeb;
}
.event-actions button {
  flex: 1;
  border: 1px solid #d1d8e5;
  border-radius: 5px;
  background: #fff;
  padding: 10px 7px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #455677;
  line-height: 1.4;
  transition: 0.15s;
}
.event-actions button:hover {
  background: #fff4df;
  border-color: #dbb67b;
  color: #8f622a;
}
.event-actions .icon {
  width: 17px;
  height: 17px;
}
.event-log {
  height: 254px;
  overflow: auto;
  padding: 0 22px;
  scrollbar-width: thin;
}
.log-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid #dee4ef;
}
.log-time {
  font-size: 11px;
  color: #4e5f80;
  padding-top: 3px;
  font-variant-numeric: tabular-nums;
}
.log-icon {
  width: 28px;
  height: 28px;
  background: #e0e6f2;
  color: #495d85;
  display: grid;
  place-items: center;
  border-radius: 50%;
  flex-shrink: 0;
}
.log-icon .icon {
  width: 15px;
  height: 15px;
}
.log-item.warning .log-icon {
  background: #fff0d9;
  color: #a16f2c;
}
.log-copy strong {
  display: block;
  font-size: 13px;
  color: #34476e;
  font-weight: 600;
}
.log-copy p {
  font-size: 12px;
  color: #526282;
  line-height: 1.6;
  margin: 4px 0 0;
}
.model-note {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 0;
  margin-top: 5px;
  border-bottom: 1px solid #cad2e3;
  color: #536485;
}
.model-note > .icon {
  width: 23px;
  height: 23px;
  flex-shrink: 0;
}
.model-note p {
  font-size: 12px;
  line-height: 1.7;
  margin: 0;
  flex: 1;
  color: #505e7a;
}
.model-note strong {
  font-weight: 600;
  color: #2f4164;
}
.model-note button {
  flex-shrink: 0;
}
footer {
  padding: 23px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  font-size: 11px;
  color: #4f5e7c;
  flex-wrap: wrap;
}
footer strong {
  color: #314263;
  font-weight: 650;
}
footer button {
  background: transparent;
  font-size: 11px;
  padding: 0;
  color: #36496e;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: #1c2a45;
  color: #f4f7fc;
  box-shadow: 0 5px 25px #102d3329;
  border-radius: 7px;
  padding: 14px 20px;
  font-size: 13px;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  max-width: min(560px, 90vw);
  line-height: 1.6;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
dialog {
  border: 1px solid #c1cadc;
  border-radius: 13px;
  box-shadow: 0 25px 100px #102e3440;
  padding: 34px;
  max-width: 760px;
  width: calc(100% - 30px);
  max-height: 90vh;
  color: var(--ink);
  overflow: auto;
}
dialog::backdrop {
  background: #19243b6b;
  backdrop-filter: blur(3px);
}
.modal-close {
  position: absolute;
  right: 16px;
  top: 12px;
  background: transparent;
  font-size: 29px;
  color: #57688a;
  min-width: 32px;
  min-height: 32px;
}
.modal-eyebrow {
  font-size: 12px;
  color: #374e7b;
  font-weight: 550;
  margin-bottom: 10px;
}
dialog h2 {
  letter-spacing: -0.7px;
  font-size: 29px;
  margin: 0 24px 15px 0;
  line-height: 1.25;
  font-weight: 650;
}
dialog h3 {
  font-size: 16px;
  margin: 25px 0 10px;
  font-weight: 650;
}
dialog p,
dialog li {
  color: #4a5873;
  font-size: 14px;
  line-height: 1.8;
}
dialog ul,
dialog ol {
  padding-left: 22px;
}
dialog li {
  margin: 8px 0;
}
.comparison-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin: 24px 0;
}
.comparison-card {
  border: 1px solid #cad2e2;
  border-radius: 7px;
  padding: 21px;
}
.comparison-card.featured {
  background: #e9eef7;
  border-color: #8c9ec1;
}
.comparison-card h3 {
  margin: 0 0 20px;
  font-size: 15px;
}
.comparison-card dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 15px 12px;
  font-size: 13px;
  margin: 0;
}
.comparison-card dt {
  color: #4e5f80;
}
.comparison-card dd {
  margin: 0;
  font-weight: 650;
  color: #1e3157;
}
.comparison-summary {
  background: #1d2b46;
  color: #c4d1ec;
  padding: 18px 21px;
  border-radius: 7px;
  font-size: 14px;
  line-height: 1.8;
}
.comparison-summary strong {
  color: white;
}
.modal-note {
  font-size: 12px !important;
  border-top: 1px solid #c5cfe2;
  padding-top: 16px;
}
.delivery-marker {
  cursor: pointer;
  transition: opacity 0.15s;
}
.delivery-marker:hover circle.marker-core,
.delivery-marker:focus circle.marker-core {
  stroke-width: 3;
}
.delivery-marker text {
  pointer-events: none;
  font-family: "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 700;
}
.delivery-marker .marker-core {
  r: 14px;
}
.map-vehicle {
  filter: url(#pin-shadow);
}
.road-label {
  font-family: "Segoe UI", sans-serif;
  font-size: 9px;
  letter-spacing: 0.8px;
  fill: #707c94;
}
.district-label {
  font-family: "Segoe UI", sans-serif;
  font-size: 12px;
  letter-spacing: 1.8px;
  fill: #6a7791;
  font-weight: 600;
}
.map-route {
  fill: none;
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.7;
}
.map-route.selected {
  stroke-width: 4.2;
  opacity: 1;
}
.route-ghost {
  fill: none;
  stroke: white;
  stroke-width: 7;
  stroke-linejoin: round;
  opacity: 0.65;
}
.map-depot {
  filter: url(#pin-shadow);
}
.map-depot text {
  font-family: "Segoe UI", sans-serif;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.3px;
  fill: #fff;
}
.late-time {
  color: #a56b28;
}
.empty-row {
  text-align: center;
  padding: 35px;
  color: #586887;
}
@media (max-width: 1450px) {
  .workspace {
    grid-template-columns: 310px minmax(0, 1fr);
  }
  main {
    padding: 26px 25px 0;
  }
  .topbar {
    padding: 18px 25px;
  }
  .metric {
    padding: 17px;
  }
  .metric-title {
    font-size: 12px;
  }
  .metric-value {
    font-size: 32px;
  }
  .metric-value small {
    font-size: 13px;
  }
  .metric-tag {
    font-size: 10px;
    padding: 4px 5px;
  }
  .panel-section {
    padding: 18px;
  }
  .vehicle-count {
    font-size: 10px;
  }
  .vehicle-name {
    font-size: 12px;
  }
  .section-label .subtle {
    display: none;
  }
  .playback {
    padding: 20px 16px;
    gap: 10px;
  }
  .timeline-label > span {
    display: none;
  }
  .play-button {
    min-width: 100px;
  }
  .speed {
    padding-left: 10px;
  }
  .bottom-grid {
    grid-template-columns: 1.4fr 1fr;
  }
  .panel-heading {
    padding: 19px 18px 15px;
  }
  .event-actions {
    padding: 0 18px 16px;
  }
  .event-actions button {
    font-size: 11px;
  }
  .event-log {
    padding: 0 18px;
  }
}
@media (max-width: 1230px) {
  .workspace {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  .map-panel {
    order: 0;
    align-self: stretch;
    width: 100%;
    min-height: 0;
  }
  .map-canvas {
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    aspect-ratio: 900/610;
    min-height: 0;
  }
  .control-panel {
    order: 1;
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    height: auto;
    max-height: none;
    overflow: visible;
  }
  .panel-section {
    border-right: 1px solid var(--line);
    border-bottom: 0;
    padding: 19px;
  }
  .fleet-section {
    border-right: 0;
  }
  .compare-link {
    grid-column: 1/-1;
    border-top: 1px solid var(--line);
    justify-content: center;
  }
  .compare-link > span:last-child {
    margin-left: 12px;
  }
  .map-top {
    padding: 20px 22px;
  }
  .map-city > span {
    display: inline;
  }
  .top-center {
    display: none;
  }
  .heading h1 {
    font-size: 30px;
  }
  .heading p {
    font-size: 13px;
  }
  .heading-actions button {
    font-size: 12px;
    padding: 10px 12px;
  }
  .quick-guide ol {
    gap: 20px;
  }
  .metric-tag {
    display: none;
  }
  .metric-value {
    font-size: 34px;
  }
  .map-onboarding {
    display: none;
  }
  .bottom-grid {
    grid-template-columns: 1fr;
  }
  .event-actions button {
    font-size: 13px;
  }
  .event-log {
    height: 230px;
  }
  .events-panel .panel-heading {
    padding: 20px 22px;
  }
  .event-actions {
    padding: 0 22px 18px;
  }
  .event-log {
    padding: 0 22px;
  }
  .event-actions .icon {
    width: 19px;
    height: 19px;
  }
  .table-wrap {
    height: 340px;
  }
  .section-label > span {
    font-size: 11px;
  }
  .scenario-tabs button {
    font-size: 11px;
  }
  .scenario-tabs button small {
    font-size: 10px;
  }
  .vehicle-data {
    font-size: 10px;
  }
  .vehicle-count {
    display: none;
  }
  .vehicle-name {
    font-size: 12px;
  }
  .vehicle-name small {
    font-size: 11px;
  }
  .small-copy {
    font-size: 12px;
  }
  .metric-title {
    font-size: 13px;
  }
  .metric-caption {
    font-size: 11px;
  }
  .metric-value small {
    font-size: 14px;
  }
  .playback {
    padding: 20px 22px;
  }
  .timeline-label > span {
    display: inline;
  }
  .play-button {
    min-width: 112px;
  }
}
@media (max-width: 950px) {
  .rail {
    width: 58px;
    padding: 23px 7px;
  }
  .shell {
    margin-left: 58px;
  }
  .rail-button {
    width: 38px;
    height: 42px;
  }
  .rail-button.active:before {
    left: -9px;
  }
  .heading {
    display: block;
  }
  .heading-actions {
    margin-top: 17px;
  }
  .heading h1 {
    font-size: 31px;
  }
  .quick-guide ol {
    gap: 15px;
  }
  .quick-guide p {
    font-size: 12px;
  }
  .guide-number {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
    font-size: 11px;
  }
  .quick-guide li {
    gap: 9px;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 14px;
  }
  .metric-title {
    font-size: 12px;
  }
  .metric-value {
    font-size: 29px;
  }
  .metric-value small {
    font-size: 12px;
  }
  .metric-caption {
    font-size: 11px;
  }
  .control-panel {
    grid-template-columns: 1fr 1fr;
  }
  .fleet-section {
    grid-column: 1/-1;
    border-top: 1px solid var(--line);
  }
  .fleet-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .fleet-section > .section-label .subtle {
    display: inline;
  }
  .vehicle-card {
    padding: 11px;
  }
  .vehicle-symbol {
    width: 28px;
    height: 28px;
  }
  .vehicle-name {
    font-size: 12px;
  }
  .vehicle-name small {
    font-size: 11px;
  }
  .vehicle-data {
    font-size: 10px;
  }
  .selection-detail {
    font-size: 13px;
  }
  .route-sequence {
    padding: 16px 0 6px;
  }
  .sequence-stops {
    gap: 8px;
  }
  .sequence-end,
  .sequence-order,
  .sequence-arrow {
    font-size: 12px;
  }
  .metric-info {
    width: 22px;
    height: 22px;
    font-size: 11px;
  }
  .model-note {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .model-note p {
    font-size: 12px;
  }
  .map-top {
    min-height: 88px;
  }
  .map-panel {
    min-height: 0;
  }
  .map-clock small {
    font-size: 11px;
  }
  .topbar {
    padding: 16px 22px;
  }
  .map-note {
    font-size: 11px;
  }
  .map-legend {
    font-size: 11px;
  }
}
@media (max-width: 650px) {
  .rail {
    display: none;
  }
  .shell {
    margin: 0;
  }
  .topbar {
    min-height: 73px;
    padding: 14px 17px;
  }
  .wordmark {
    font-size: 25px;
  }
  .wordmark small {
    display: none;
  }
  .compact {
    font-size: 12px;
    gap: 6px;
  }
  .compact .icon {
    width: 17px;
  }
  main {
    padding: 23px 15px 0;
  }
  .heading {
    margin-bottom: 22px;
  }
  .heading h1 {
    font-size: 29px;
    letter-spacing: -0.8px;
  }
  .heading p {
    font-size: 14px;
    line-height: 1.65;
  }
  .eyebrow {
    font-size: 12px;
  }
  .heading-actions {
    gap: 8px;
    margin-top: 18px;
  }
  .heading-actions button {
    font-size: 12px;
    padding: 10px 12px;
    flex: 1;
  }
  .heading-actions .icon {
    width: 17px;
  }
  .quick-guide {
    padding: 16px 0 18px;
    margin-bottom: 20px;
  }
  .guide-heading {
    gap: 12px;
    margin-bottom: 17px;
  }
  .guide-heading > strong {
    font-size: 14px;
  }
  .guide-heading button {
    font-size: 11px;
    text-align: right;
  }
  .quick-guide ol {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .quick-guide li {
    gap: 11px;
  }
  .guide-number {
    width: 27px;
    height: 27px;
    flex-basis: 27px;
    font-size: 12px;
  }
  .quick-guide li strong {
    font-size: 14px;
  }
  .quick-guide p {
    font-size: 13px;
    line-height: 1.6;
    margin-top: 3px;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 18px;
  }
  .metric {
    padding: 15px 13px;
  }
  .metric-title {
    font-size: 12px;
    gap: 5px;
    margin-bottom: 10px;
    font-weight: 550;
  }
  .metric-value {
    font-size: 33px;
    gap: 5px;
    flex-wrap: wrap;
  }
  .metric-value small {
    font-size: 13px;
  }
  .metric-caption {
    font-size: 11px;
    line-height: 1.5;
    margin-top: 10px;
    align-items: flex-start;
  }
  .tiny-dot {
    margin-top: 5px;
  }
  .map-top {
    padding: 16px 14px;
    min-height: 89px;
    gap: 10px;
  }
  .map-city {
    font-size: 16px;
  }
  .map-city > span {
    display: none;
  }
  .map-subtitle {
    font-size: 11px;
    line-height: 1.5;
  }
  .map-clock {
    grid-template-columns: 1fr;
  }
  .map-clock .icon {
    display: none;
  }
  .map-clock strong {
    font-size: 22px;
  }
  .map-clock small {
    font-size: 10px;
    max-width: 80px;
    line-height: 1.4;
  }
  .map-canvas {
    aspect-ratio: 900/740;
  }
  .map-note {
    top: 8px;
    left: 8px;
    font-size: 10px;
    padding: 5px 7px;
    max-width: calc(100% - 62px);
    line-height: 1.4;
  }
  .map-controls {
    right: 8px;
    top: 8px;
  }
  .map-controls button {
    width: 32px;
    height: 32px;
  }
  .map-legend {
    bottom: 8px;
    left: 8px;
    font-size: 10px;
    gap: 9px;
    padding: 6px 8px;
  }
  .map-legend i {
    width: 7px;
    height: 7px;
  }
  .map-legend span {
    gap: 4px;
  }
  .playback {
    display: grid;
    grid-template-columns: auto 36px 1fr;
    padding: 15px 14px;
    gap: 12px;
    min-height: 120px;
  }
  .play-button {
    min-width: 110px;
    grid-column: 1;
    grid-row: 1;
    font-size: 13px;
  }
  .reset-button {
    grid-row: 1;
    grid-column: 2;
  }
  .speed {
    grid-row: 1;
    grid-column: 3;
    margin-left: auto;
    border-left: 0;
    padding: 0;
  }
  .speed > span {
    display: none;
  }
  .speed button {
    font-size: 12px;
    padding: 7px;
  }
  .timeline {
    grid-row: 2;
    grid-column: 1/-1;
  }
  .timeline-label {
    font-size: 11px;
    margin-bottom: 8px;
  }
  .timeline-label > span {
    display: inline;
  }
  .timeline-ticks {
    font-size: 10px;
    margin-top: 6px;
  }
  .control-panel {
    grid-template-columns: 1fr;
  }
  .panel-section {
    padding: 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .fleet-section {
    grid-column: auto;
    border-top: 0;
  }
  .section-label h2 {
    font-size: 16px;
  }
  .section-label > span {
    font-size: 12px;
  }
  .scenario-tabs button {
    font-size: 13px;
    padding: 11px 5px;
  }
  .scenario-tabs button small {
    font-size: 12px;
  }
  .scenario-foot {
    font-size: 12px;
    margin-top: 13px;
  }
  .planning label {
    font-size: 13px;
  }
  .planning select {
    font-size: 14px;
    padding: 12px;
  }
  .small-copy {
    font-size: 13px;
    line-height: 1.7;
  }
  .optimize-button {
    font-size: 14px;
    padding: 13px 15px;
  }
  .engine-label {
    font-size: 12px;
  }
  .fleet-list {
    display: flex;
    gap: 10px;
  }
  .vehicle-card {
    padding: 14px;
  }
  .vehicle-symbol {
    width: 35px;
    height: 35px;
  }
  .vehicle-name {
    font-size: 14px;
  }
  .vehicle-name small {
    font-size: 12px;
  }
  .vehicle-count {
    display: inline;
    font-size: 12px;
  }
  .vehicle-data {
    font-size: 12px;
    margin-top: 12px;
  }
  .selection-detail {
    font-size: 13px;
    padding: 13px;
  }
  .sequence-label {
    font-size: 13px;
  }
  .sequence-end,
  .sequence-order {
    font-size: 12px;
  }
  .compare-link {
    font-size: 14px;
    padding: 17px 20px;
    border-top: 0;
  }
  .bottom-grid {
    gap: 18px;
    margin-top: 18px;
  }
  .panel-heading {
    padding: 20px 16px 15px;
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .panel-heading h2 {
    font-size: 16px;
  }
  .panel-heading p {
    font-size: 13px;
  }
  .panel-heading select {
    font-size: 12px;
    width: 100%;
    max-width: none;
    min-height: 40px;
  }
  .table-wrap {
    height: 355px;
  }
  table {
    font-size: 13px;
  }
  th {
    font-size: 11px;
    padding: 12px 13px;
  }
  td {
    padding: 13px;
  }
  td:first-child small {
    font-size: 12px;
  }
  .status-pill {
    font-size: 12px;
  }
  .vehicle-pill {
    font-size: 12px;
  }
  .events-panel .panel-heading {
    padding: 20px 16px 15px;
  }
  .live-pill {
    font-size: 11px;
  }
  .event-actions {
    padding: 0 16px 16px;
    gap: 6px;
  }
  .event-actions button {
    font-size: 12px;
    flex-direction: column;
    gap: 6px;
    padding: 11px 4px;
  }
  .event-log {
    padding: 0 16px;
    height: 270px;
  }
  .log-copy strong {
    font-size: 13px;
  }
  .log-copy p {
    font-size: 12px;
  }
  .log-time {
    font-size: 11px;
  }
  .model-note {
    gap: 10px;
    padding: 20px 0;
  }
  .model-note p {
    font-size: 12px;
    flex-basis: calc(100% - 40px);
  }
  .model-note button {
    margin-left: 33px;
    font-size: 12px;
  }
  footer {
    font-size: 11px;
    gap: 12px;
    padding: 20px 0;
  }
  footer button {
    font-size: 11px;
  }
  .comparison-cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  dialog {
    padding: 27px 21px;
    width: calc(100% - 24px);
    border-radius: 10px;
  }
  dialog h2 {
    font-size: 26px;
  }
  dialog p,
  dialog li {
    font-size: 14px;
    line-height: 1.8;
  }
  .modal-eyebrow {
    font-size: 12px;
  }
  .comparison-card {
    padding: 19px;
  }
  .comparison-card dl {
    font-size: 13px;
  }
  .comparison-summary {
    font-size: 13px;
    padding: 17px;
  }
  .toast {
    font-size: 13px;
    padding: 13px 17px;
    bottom: 18px;
  }
  .delivery-marker .marker-core {
    r: 17px;
  }
  .delivery-marker text {
    font-size: 13px;
  }
  .district-label {
    font-size: 13px;
  }
  .map-route {
    stroke-width: 4;
  }
  .map-route.selected {
    stroke-width: 5;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
  .map-vehicle {
    filter: none;
  }
}
/* Shared readable labels and explicit placement for the simulation clock. */
.quick-guide p {
  font-size: 13px;
}
.metric-title {
  font-size: 14px;
}
.metric-caption,
.metric-tag,
.engine-label,
.vehicle-name small,
.vehicle-data,
.selection-detail,
.scenario-foot,
.section-label > span,
.sequence-label,
.sequence-stops > span,
.timeline-label,
.timeline-ticks,
.speed > span,
.map-subtitle,
.map-clock small,
.model-note p,
footer,
footer button {
  font-size: 12px;
}
.map-clock > span {
  grid-column: 1;
  grid-row: 1/3;
  align-self: center;
}
.map-clock strong {
  grid-column: 2;
  grid-row: 1;
}
.map-clock small {
  grid-column: 2;
  grid-row: 2;
  white-space: nowrap;
}
.map-plan-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 13px;
  border: 1px solid #b3bdd0;
  border-radius: 6px;
  background: #edf0f6;
  color: #223762;
  font-size: 13px;
  font-weight: 600;
  margin-left: auto;
  white-space: nowrap;
}
.map-plan-button:hover {
  background: #dee3ee;
  border-color: #8695b2;
}
.map-plan-button .icon {
  width: 17px;
  height: 17px;
}
.quick-guide li .text-link {
  font-size: 12px;
  margin-top: 3px;
}
@media (max-width: 950px) {
  .metric-title {
    font-size: 12px;
  }
  .metric-caption {
    font-size: 12px;
  }
  .map-clock small {
    font-size: 11px;
  }
  .map-city > span {
    display: none;
  }
}
@media (max-width: 650px) {
  .map-top {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 16px;
  }
  .map-top > div:first-child {
    grid-column: 1;
    grid-row: 1;
  }
  .map-clock {
    grid-column: 2;
    grid-row: 1;
  }
  .map-clock > span {
    display: none;
  }
  .map-clock strong,
  .map-clock small {
    grid-column: 1;
  }
  .map-clock small {
    white-space: normal;
    max-width: 90px;
  }
  .map-plan-button {
    grid-column: 1/-1;
    grid-row: 2;
    margin: 0;
    font-size: 14px;
  }
  .metric-tag {
    font-size: 12px;
  }
  .metric-caption {
    font-size: 12px;
  }
  .guide-heading button {
    font-size: 12px;
  }
  .quick-guide p {
    font-size: 13px;
  }
  .sequence-label,
  .sequence-stops > span,
  .timeline-label,
  .timeline-ticks {
    font-size: 12px;
  }
  footer,
  footer button {
    font-size: 12px;
  }
}
.is-running .map-route {
  stroke-dasharray: 12 4;
  animation: route-direction 1.4s linear infinite;
}
@keyframes route-direction {
  to {
    stroke-dashoffset: -32;
  }
}
@media (prefers-reduced-motion: reduce) {
  .is-running .map-route {
    animation: none;
    stroke-dasharray: none;
  }
}
