/* ──────── Route lanes ──────── */

.lane-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.lane {
  background: var(--bfc-surface);
  border: 1px solid var(--bfc-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 118px;
  cursor: pointer;
  transition: border-color 120ms ease, transform 120ms ease;
}
.lane:hover { border-color: var(--bfc-indigo); transform: translateY(-1px); }
.lane.active {
  border-color: var(--bfc-indigo);
  box-shadow: 0 0 0 2px rgba(63, 83, 216, 0.18), var(--shadow-card);
}
.lane.active .lane-count { color: var(--bfc-indigo); }
.lane-sub {
  flex: 1;
  font-size: 12px;
  color: var(--bfc-muted);
}
.lane-listing-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14.5px;
  color: var(--bfc-navy);
  margin-right: 4px;
}


/* ──────── Route bottleneck analyzer (lifecycle gantt) ──────── */

.lc-insight {
  margin: 0 0 16px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: var(--bfc-soft-2);
  border: 1px solid var(--bfc-line);
  color: var(--bfc-copy);
  font-size: 13.5px;
  line-height: 1.5;
}
.lc-insight strong { color: var(--bfc-navy); }

.lc-gantt { padding: 6px 0 14px; }
.lc-ruler, .lc-row { display: flex; align-items: center; }
.lc-ruler { position: sticky; top: 60px; background: var(--bfc-surface); z-index: 2; }
.lc-label {
  flex: 0 0 150px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px 0 22px;
  overflow: hidden;
  white-space: nowrap;
}
.lc-truck { color: var(--bfc-muted); font-size: 11.5px; }
.lc-track {
  position: relative;
  flex: 1 1 auto;
  height: 22px;
  margin-right: 22px;
  border-left: 1px solid var(--bfc-line);
}
.lc-ruler .lc-track { height: 20px; border-left: 0; }
.lc-tick {
  position: absolute;
  top: 2px;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--bfc-muted);
}
.lc-day {
  padding: 12px 22px 4px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--bfc-muted);
}
.lc-row { cursor: pointer; border-radius: 8px; }
.lc-row:hover { background: var(--bfc-soft); }
.lc-row .lc-track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px dashed var(--bfc-line);
}
.lc-bar {
  position: absolute;
  top: 5px;
  height: 12px;
  border-radius: 4px;
  min-width: 3px;
}
.lc-bar.lc-a, .chart-legend-swatch.lc-a { background: var(--bfc-indigo); }
.lc-bar.lc-b, .chart-legend-swatch.lc-b { background: var(--bfc-teal); }
.lc-bar.lc-c, .chart-legend-swatch.lc-c { background: var(--bfc-yellow); }
.lc-dot {
  position: absolute;
  top: 8px;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--bfc-navy);
  opacity: 0.55;
}

@media (max-width: 900px) {
  .topbar-search-label, .topbar-search-kbd { display: none; }
  .home-hero { padding: 20px; }
  .home-search { min-width: 100%; }
  .lc-label { flex-basis: 96px; padding-left: 12px; }
  .lc-truck { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .palette, .palette-scrim, .home-card, .home-card-go, .home-alert, .hm-cell { transition: none; }
}
