#app-right-sidebar {
  display: none;
}

@media (min-width: 1280px) {
  body {
    padding-right: 270px;
  }

  #app-right-sidebar {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: 270px;
    height: 100vh;
    overflow-y: auto;
    background: #ffffff;
    border-left: 1px solid #E1E1E1;
    padding: 40px 32px;
    box-sizing: border-box;
    z-index: 5;
  }

  /* keep the floating chat button clear of the new sidebar */
  body > div#root .fixed.bottom-10.right-10 {
    right: 310px !important;
  }

  body.sb-right-closed .sb-toggle-right {
    right: 14px;
  }

  body.sb-right-closed #app-right-sidebar {
    display: none !important;
  }

  body.sb-right-closed {
    padding-right: 0 !important;
  }

  body.sb-right-closed div#root .fixed.bottom-10.right-10 {
    right: 40px !important;
  }
}

/* toggle buttons (desktop only) */
.sb-toggle {
  display: none;
  position: fixed;
  top: 20px;
  z-index: 60;
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  border: 1px solid #E1E1E1;
  background: #ffffff;
  color: #111111;
  font-size: 14px;
  line-height: 1;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
  transition: left .2s, right .2s, background .15s;
}

.sb-toggle:hover {
  background: #F7F8F8;
}

@media (min-width: 1024px) {
  .sb-toggle-left {
    display: flex;
    left: 256px;
  }

  body.sb-left-closed .sb-toggle-left {
    left: 14px;
  }

  body.sb-left-closed aside[class*="sticky"][class*="border-r"] {
    display: none !important;
  }
}

@media (min-width: 1280px) {
  .sb-toggle-right {
    display: flex;
    right: 256px;
  }
}

#app-right-sidebar * {
  box-sizing: border-box;
}

#app-right-sidebar .rs-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 28px;
  border-bottom: 1px solid #E1E1E1;
  margin-bottom: 28px;
}

#app-right-sidebar .rs-avatar {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background: #F7E1F3;
  color: #8a2a86;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

#app-right-sidebar .rs-name {
  font-size: 14px;
  font-weight: 600;
  color: #111111;
  line-height: 1.3;
}

#app-right-sidebar .rs-link {
  font-size: 12px;
  color: #727885;
  text-decoration: none;
}

#app-right-sidebar .rs-section {
  margin-bottom: 28px;
}

#app-right-sidebar .rs-section:last-child {
  margin-bottom: 0;
}

#app-right-sidebar .rs-heading {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #A4AAB7;
  margin: 0 0 16px;
}

#app-right-sidebar .rs-course {
  margin-bottom: 16px;
}

#app-right-sidebar .rs-course:last-child {
  margin-bottom: 0;
}

#app-right-sidebar .rs-course-title {
  font-size: 13px;
  font-weight: 500;
  color: #111111;
  line-height: 1.35;
  margin: 0 0 8px;
}

#app-right-sidebar .rs-progress-track {
  width: 100%;
  height: 6px;
  border-radius: 9999px;
  background: #F1F3F3;
  overflow: hidden;
}

#app-right-sidebar .rs-progress-fill {
  height: 100%;
  border-radius: 9999px;
}

#app-right-sidebar .rs-progress-pct {
  font-size: 11px;
  color: #727885;
  margin: 6px 0 0;
}

#app-right-sidebar .rs-event {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}

#app-right-sidebar .rs-event:last-child {
  margin-bottom: 0;
}

#app-right-sidebar .rs-event-date {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: .5rem;
  background: #FFF6E9;
  color: #844F00;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.1;
}

#app-right-sidebar .rs-event-info-title {
  font-size: 13px;
  font-weight: 500;
  color: #111111;
  margin: 0 0 2px;
  line-height: 1.3;
}

#app-right-sidebar .rs-event-info-time {
  font-size: 11px;
  color: #727885;
  margin: 0;
}
