@media (max-width: 650px) {
  .learning-rail-controls { display: flex; justify-content: flex-end; gap: 8px; margin: 16px 0 12px; }
  .learning-rail-controls button { display: grid; place-items: center; width: 44px; height: 44px; padding: 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); font: 400 20px/1 Inter, Arial, sans-serif; cursor: pointer; }
  .learning-rail-controls button:disabled { opacity: .35; cursor: default; }
  .learning-rail { display: flex; align-items: flex-start; gap: 16px; height: auto; max-height: none; overflow-x: auto; overflow-y: visible; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; min-width: 0; padding-bottom: 4px; }
  .learning-rail::-webkit-scrollbar { display: none; }
  .learning-rail > * { flex: 0 0 76%; min-width: 0; height: auto; max-height: none; scroll-snap-align: start; }
  .learning-rail.is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
  .learning-rail.is-dragging * { cursor: grabbing; }
  .learning-rail-progress { height: 3px; margin: 12px 0 0; background: var(--border); border-radius: 3px; overflow: hidden; }
  .learning-rail-progress > span { display: block; height: 100%; background: #2F5BEA; border-radius: inherit; }

}
