.learningModeSwitch {
  display: inline-flex;
  align-items: center;
  margin-right: 20px;
  border: 0;
  border-radius: 24px;
  background: var(--base-secondary, #f5f5f5);
  box-shadow: var(--shadow-xs-offset-x, 0) var(--shadow-xs-offset-y, 1px)
    var(--shadow-xs-blur-radius, 2px) var(--shadow-xs-spread-radius, 0)
    var(--shadow-xs-color, rgba(0, 0, 0, 0.05));
  cursor: pointer;
  appearance: none;

  &:focus-visible {
    outline: 2px solid var(--primary, #0f63ee);
    outline-offset: 2px;
  }
}

.learningModeSwitchDesktop {
  .betaBadge {
    right: -6px;
  }
}

.segment {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  padding: 3px 10px;
  gap: 4px;
  border: 0.8px solid transparent;
  border-radius: 32px;
  background: transparent;
  color: var(--base-muted-foreground, #737373);
  font-size: var(--text-xs-font-size, 12px);
  font-weight: var(--font-weight-normal, 400);
  line-height: 14px;
  white-space: nowrap;
  pointer-events: none;
}

.listenSegment {
  position: relative;
  overflow: visible;
}

.segmentDesktop {
  height: 32px;
  padding: 4px 14px;
  gap: 6px;
  font-size: 16px;
  line-height: 16px;
}

.segmentActive {
  border-color: var(--base-border, #e5e5e5);
  background: var(--custom-background-dark-input-30, #fff);
  color: var(--base-foreground, #0a0a0a);
  box-shadow: var(--shadow-xs-offset-x, 0) var(--shadow-xs-offset-y, 1px)
    var(--shadow-xs-blur-radius, 2px) var(--shadow-xs-spread-radius, 0)
    var(--shadow-xs-color, rgba(0, 0, 0, 0.05));
}

.segmentLabel {
  line-height: inherit;
}

.betaBadge {
  position: absolute;
  top: 0;
  right: -11px;
  margin-left: 0;
  transform: translate(40%, -45%);
  z-index: 1;
}
