/* Quick access: two fixed rows, native horizontal touch scrolling. */
#bf-tiles .bf-tiles__grid {
  display: grid;
  grid-template-rows: repeat(2, 132px);
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: 132px;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 2px;
  -webkit-overflow-scrolling: touch;
  padding: 3px 2px 12px;
  scrollbar-width: thin;
}
#bf-tiles .bf-tile,
#bf-tiles .bf-tile.bf-tile--fill {
  box-sizing: border-box;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  height: 132px;
  min-height: 0;
  aspect-ratio: auto;
  padding: 10px 6px 8px;
  gap: 6px;
  overflow: hidden;
  scroll-snap-align: start;
  background: #fff;
  color: #0f172a;
}
#bf-tiles .bf-tile .bf-tile__img {
  position: static;
  inset: auto;
  width: 64px;
  height: 64px;
  min-height: 64px;
  flex: 0 0 64px;
  object-fit: contain;
  border-radius: 8px;
  filter: none;
}
#bf-tiles .bf-tile .bf-tile__label {
  position: static;
  width: 100%;
  margin: 0;
  padding: 0;
  background: none;
  color: #0f172a;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  overflow-wrap: anywhere;
  text-align: center;
}
.dark #bf-tiles .bf-tile,
[data-theme="dark"] #bf-tiles .bf-tile {
  background: #1e293b;
  border-color: #475569;
}
.dark #bf-tiles .bf-tile .bf-tile__label,
[data-theme="dark"] #bf-tiles .bf-tile .bf-tile__label { color: #f8fafc; }
#bf-tiles .bf-tiles__head {
  background: rgba(255,255,255,.96);
  padding: 8px 12px;
  border-radius: 12px;
}
.dark #bf-tiles .bf-tiles__head,
[data-theme="dark"] #bf-tiles .bf-tiles__head { background: #1e293b; }
@media(max-width:600px) {
  #bf-tiles .bf-tiles__grid { grid-auto-columns: calc((100% - 24px) / 3); }
}
