.recorded-course-switch {
  position: relative;
  display: flex;
  width: min(300px, 100%);
  gap: 5px;
  margin: 0 auto 24px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #e8e7e4;
  background: color-mix(in srgb, var(--bg) 64%, #fff);
  isolation: isolate;
}
.recorded-switch-indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 13px) / 2);
  border-radius: 999px;
  background: var(--text);
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
  transition: transform .22s cubic-bezier(.2,.8,.2,1);
}
.recorded-course-switch button {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 9px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  -webkit-text-fill-color: #fff;
  mix-blend-mode: difference;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
  cursor: pointer;
  touch-action: pan-y pinch-zoom;
}
.recorded-course-switch button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
[data-recorded-view][hidden] { display: none !important; }
#recorded-summary-panels { display: flow-root; }
#recorded-summary-panels.is-course-switching,
#recorded-content-panels.is-course-switching { overflow: hidden; overflow-anchor: none; }
