.route-logos {
  position: fixed;
  z-index: 999;
  inset: auto 0 0;
  box-sizing: border-box;
  padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
  background: var(--rl-bar, #202b32);
  color: var(--rl-ink, #fff);
  font-family: inherit;
  box-shadow: 0 -1px 0 #80808038, 0 -4px 16px #0001;
	backdrop-filter: blur(2px);
}
.route-logos .rl-scrollport {
  overflow: auto hidden;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, currentColor 36%, transparent) transparent;
  outline-offset: -2px;
  user-select: none;
}
.route-logos .rl-scrollport[data-draggable],
.route-logos .rl-scrollport[data-draggable] .rl-card { cursor: grab; }
.route-logos .rl-scrollport[data-dragging],
.route-logos .rl-scrollport[data-dragging] .rl-card { cursor: grabbing; }
.route-logos .rl-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max(88px, calc((100% + 4px) / var(--rl-tiles, 10) - 4px));
  justify-content: safe center;
  width: 100%;
  box-sizing: border-box;
  gap: 4px;
  padding: 3px 6px;
  margin: 0;
  list-style: none;
}
.route-logos .rl-item { margin: 0; padding: 0; min-width: 0; list-style: none; }
.route-logos .rl-item::before, .route-logos .rl-item::marker { content: none; }
.route-logos .rl-card {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 3px;
  width: 100%;
  height: 69px;
  margin: 0;
  padding: 4px;
  border: 0;
  border-radius: 10px;
  appearance: none;
  background: transparent;
  box-shadow: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: center;
  letter-spacing: normal;
  text-transform: none;
}
.route-logos .rl-card[aria-expanded=true] { background: color-mix(in srgb, currentColor 10%, transparent); }
.route-logos .rl-card:focus-visible, .route-logos .rl-website:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; }
.route-logos .rl-art { display: grid; width: 100%; place-items: center; pointer-events: none; }
.route-logos .rl-art > img {
  grid-area: 1 / 1;
  display: block;
  width: min(100%, 102px);
  height: 34px;
  object-fit: contain;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
}
.route-logos .rl-card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  max-width: 100%;
  overflow: hidden;
  overflow-wrap: anywhere;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.15;
}
.route-logos .rl-details[hidden] { display: none !important; }
.route-logos .rl-details {
  position: absolute;
  bottom: 100%;
  left: var(--rl-popup-left, 0px);
  box-sizing: border-box;
  width: min(252px, calc(100% - 16px));
  max-height: min(70vh, 340px);
  overflow: auto;
  padding: 14px 16px 12px;
  border: 1px solid color-mix(in srgb, currentColor 17%, transparent);
  border-radius: 15px 15px 10px 10px;
  background: var(--rl-hover, #10171c);
  color: var(--rl-hover-ink, #fff);
  box-shadow: 0 -8px 20px #0002;
  text-align: center;
  overflow-wrap: anywhere;
  animation: rl-open .18s ease-out both;
	z-index: 999;
}
.route-logos .rl-details .rl-art { margin-bottom: 5px; }
.route-logos .rl-details .rl-art > img { width: min(100%, 156px); height: 55px; }
.route-logos .rl-title { display: block; font-size: 14px; line-height: 1.2; }
.route-logos .rl-desc { margin: 6px 0 0; font-size: 13px; line-height: 1.4; }
.route-logos .rl-website {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 5px;
  color: inherit;
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
@keyframes rl-open { from { opacity: 0; transform: translateY(4px) scale(.97); } }
@media (prefers-reduced-motion: reduce) {
  .route-logos .rl-details { animation: none; }
}
