/* ==========================================================================
   Course Detail — Accordion Sidebar & Right Tabs
   Collapsible modules with circular progress indicators
   ========================================================================== */

/* ==========================================================================
   PLAYLIST THEME VARIABLES
   Change --sw-playlist-theme to "light" or "dark" on .sw-immersive-playlist-col
   OR simply toggle the class: sw-playlist--light / sw-playlist--dark
   ========================================================================== */

/* Dark theme (default) — uses brand color for accents */
.sw-immersive-playlist-col,
.sw-playlist--dark {
  --pl-bg: var(--iq-primary-bg, #0F1C3F);
  --pl-text: #e2e8f0;
  --pl-text-primary: #f1f5f9;
  /* WCAG 1.4.3 (AA): muted/subtle text must still reach 4.5:1 on the darkest
     lesson surfaces (active lesson bg can be near-black on dark brands). These
     were 0.45 / 0.35 and failed (duration 4.47, subtle < 3). Raised so small
     text clears 4.5:1. */
  --pl-text-muted: rgba(255, 255, 255, 0.62);
  --pl-text-subtle: rgba(255, 255, 255, 0.55);
  --pl-border: rgba(255, 255, 255, 0.06);
  --pl-hover: rgba(255, 255, 255, 0.04);
  --pl-active-bg: color-mix(in srgb, var(--iq-brand-color-1, #003399) 20%, transparent);
  --pl-active-border: var(--iq-brand-color-1, #003399);
  --pl-scrollbar: rgba(255, 255, 255, 0.15);
  --pl-progress-bg: color-mix(in srgb, var(--iq-brand-color-1, #003399) 60%, #1e293b);
  --pl-progress-bar: var(--iq-brand-color-1, #003399);
  --pl-complete-accent: #22c55e;
  --pl-complete-bg: rgba(34, 197, 94, 0.08);
  /* Locked lessons: don't dim the whole row so far that the TITLE text drops
     below 4.5:1 (was 0.35 → title 2.31). The lock icon already signals state;
     0.72 keeps a clearly "muted" look while text stays legible (AA). */
  --pl-locked-opacity: 0.72;
  --pl-timeline: rgba(255, 255, 255, 0.06);
}

/* Dark theme for center + right columns */
.sw-immersive-layout,
.sw-layout--dark {
  --ly-player-bg: #1a1a2e;
  --ly-lesson-title: #f1f5f9;
  --ly-lesson-text: #cbd5e1;
  --ly-lesson-muted: #94a3b8;
  --ly-info-bg: #141428;
  --ly-info-border: rgba(255, 255, 255, 0.06);
  --ly-info-text: #e2e8f0;
  --ly-info-muted: rgba(255, 255, 255, 0.5);
  --ly-tabs-bg: #141428;
  --ly-tabs-text: #e2e8f0;
  --ly-tabs-border: rgba(255, 255, 255, 0.08);
}

/* Light theme — playlist */
.sw-playlist--light {
  --pl-bg: #f0f4f8;
  --pl-text: #1e293b;
  --pl-text-primary: #0f172a;
  --pl-text-muted: #475569;
  --pl-text-subtle: #64748b;
  --pl-border: rgba(0, 0, 0, 0.06);
  --pl-hover: color-mix(in srgb, var(--iq-brand-color-1, #003399) 4%, transparent);
  --pl-active-bg: color-mix(in srgb, var(--iq-brand-color-1, #003399) 6%, transparent);
  --pl-active-border: var(--iq-brand-color-1, #003399);
  --pl-scrollbar: rgba(0, 0, 0, 0.1);
  --pl-progress-bg: color-mix(in srgb, var(--iq-brand-color-1, #003399) 10%, transparent);
  --pl-progress-bar: var(--iq-brand-color-1, #003399);
  --pl-complete-accent: #16a34a;
  --pl-complete-bg: rgba(22, 163, 74, 0.06);
  --pl-locked-opacity: 0.45;
  --pl-timeline: rgba(0, 0, 0, 0.05);
}

/* Light theme for center + right columns */
.sw-layout--light {
  --ly-player-bg: #f8f9fb;
  --ly-lesson-title: #1e293b;
  --ly-lesson-text: #475569;
  --ly-lesson-muted: #64748b;
  --ly-info-bg: #fff;
  --ly-info-border: rgba(0, 0, 0, 0.08);
  --ly-info-text: #1e293b;
  --ly-info-muted: #64748b;
  --ly-tabs-bg: #fff;
  --ly-tabs-text: #1e293b;
  --ly-tabs-border: rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   IMMERSIVE PAGE SHELL — kill the white sliver between the player and the
   footer (and any area below it) by painting the page shell with the BRAND
   surface. Brand-derived (no fixed color); adapts to the academy palette and
   to the light/dark theme (the immersive layout sets --pl-bg / player bg).
   ========================================================================== */
body:has(.sw-immersive-page),
html:has(.sw-immersive-page) {
  background: var(--iq-primary-bg, #0F1C3F);
}
/* When the player is switched to LIGHT theme, the shell follows the light
   player surface so the seam stays coherent. */
body:has(.sw-immersive-page .sw-layout--light),
html:has(.sw-immersive-page .sw-layout--light) {
  background: var(--iq-body-bg, #f8f9fb);
}
.main-content.sw-immersive-page { background: var(--iq-primary-bg, #0F1C3F); }
.main-content.sw-immersive-page:has(.sw-layout--light) { background: var(--iq-body-bg, #f8f9fb); }

/* ==========================================================================
   0. SLIM COURSE TOP BAR (inside player column)
   ========================================================================== */

.sw-course-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 16px;
  background: var(--iq-primary-bg, #0F1C3F);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  height: 40px;
}

.sw-course-topbar__title {
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--iq-brand-color-2, #fff);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sw-campus-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 4px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
}

.sw-course-topbar__progress {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.sw-course-topbar__pct {
  font-family: 'Poppins', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
}

.sw-course-topbar__bar {
  width: 100px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
}

.sw-course-topbar__bar-fill {
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 2px;
  transition: width 300ms ease;
}

.sw-course-topbar__views {
  font-family: 'Poppins', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.sw-course-topbar__views i {
  font-size: 0.6rem;
  opacity: 0.75;
}

.sw-course-topbar__actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.sw-course-topbar__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 150ms;
}

.sw-course-topbar__btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

@media (max-width: 991.98px) {
  .sw-course-topbar {
    flex-wrap: wrap;
    height: auto;
    padding: 8px 12px;
    gap: 6px;
  }
  .sw-course-topbar__title {
    font-size: 0.78rem;
    width: 100%;
    order: 1;
  }
  .sw-course-topbar__progress {
    order: 2;
    flex: 1;
  }
  .sw-course-topbar__bar {
    width: 60px;
  }
  .sw-course-topbar__actions {
    order: 3;
    gap: 6px;
  }
  .sw-course-topbar__btn {
    width: 32px;
    height: 32px;
    font-size: 0.82rem;
  }
  .sw-course-topbar__views {
    display: none;
  }
}

/* Topbar & playlist header in light mode */
.sw-layout--light .sw-course-topbar {
  background: #f8fafc;
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.sw-layout--light .sw-course-topbar__title {
  color: var(--iq-primary-bg, #0F1C3F);
}

.sw-layout--light .sw-course-topbar__pct {
  color: #475569;
}

.sw-layout--light .sw-course-topbar__bar {
  background: rgba(0, 0, 0, 0.08);
}

.sw-layout--light .sw-course-topbar__bar-fill {
  background: var(--iq-brand-color-1, #003399);
}

.sw-layout--light .sw-course-topbar__btn {
  color: #475569;
  background: rgba(0, 0, 0, 0.04);
}

.sw-layout--light .sw-course-topbar__btn:hover {
  color: var(--iq-primary-bg, #0F1C3F);
  background: rgba(0, 0, 0, 0.08);
}

.sw-layout--light .sw-course-topbar__views {
  color: #475569;
}

.sw-playlist--light .sw-playlist-header {
  background: #f0f4f8;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.sw-playlist--light .sw-playlist-header__title {
  color: var(--iq-primary-bg, #0F1C3F);
}

.sw-playlist--light .sw-playlist-header__count {
  background: color-mix(in srgb, var(--iq-brand-color-1, #003399) 12%, transparent);
  color: var(--iq-brand-color-1, #003399);
}

/* Toggle switch component */
.sw-theme-toggle {
  width: auto !important;
  height: auto !important;
  padding: 2px !important;
  background: transparent !important;
  border-radius: 20px !important;
}

.sw-theme-toggle__track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 52px;
  height: 24px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  position: relative;
  transition: background 0.3s;
  cursor: pointer;
  padding: 0 6px;
}

.sw-theme-toggle__track--light {
  background: rgba(0, 0, 0, 0.1);
}

.sw-theme-toggle__icon {
  font-size: 0.6rem;
  position: relative;
  z-index: 3;
  transition: opacity 0.3s, color 0.3s, transform 0.3s;
  line-height: 1;
}

/* Dark mode (default): moon is the active icon */
.sw-theme-toggle__icon--moon {
  color: #fbbf24 !important;
  opacity: 1;
}

.sw-theme-toggle__icon--sun {
  color: rgba(255, 255, 255, 0.7) !important;
  opacity: 0.7;
}

/* Light mode: sun becomes the active icon */
.sw-theme-toggle--light .sw-theme-toggle__icon--moon {
  opacity: 0.6;
  color: #64748b !important;
}

.sw-theme-toggle--light .sw-theme-toggle__icon--sun {
  opacity: 1;
  color: #f59e0b !important;
}

.sw-theme-toggle__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.3s;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  z-index: 2;
}

.sw-theme-toggle__track--light .sw-theme-toggle__thumb {
  left: 31px;
}

/* ==========================================================================
   0b. LESSON DETAIL AREA (below player)
   ========================================================================== */

.sw-lesson-detail {
  padding: 16px 32px;
  background: var(--ly-player-bg, #f8f9fb);
}

.sw-lesson-detail__header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.sw-lesson-detail__left {
  flex: 1;
  min-width: 0;
}

.sw-lesson-detail__number {
  font-family: 'Poppins', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--ly-lesson-muted, #64748b);
  display: block;
  margin-bottom: 2px;
}

.sw-lesson-detail__title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ly-lesson-title, #1e293b);
  margin: 0;
  line-height: 1.3;
}

.sw-lesson-detail__desc {
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--ly-lesson-text, #475569);
  margin: 0;
}

.sw-lesson-detail__guest {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  color: var(--ly-lesson-text, #475569);
}

.sw-lesson-detail__guest i {
  color: var(--iq-brand-color-1, #6366f1);
}

.sw-lesson-detail__guest-label {
  font-weight: 600;
}

.sw-lesson-detail__quiz {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
}

.sw-lesson-detail__quiz--pending {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: #92400e;
}

.sw-lesson-detail__quiz--pending i {
  color: #f59e0b;
}

.sw-lesson-detail__quiz--done {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: #166534;
}

.sw-lesson-detail__quiz--done i {
  color: #22c55e;
}

/* ==========================================================================
   1. PLAYLIST HEADER (aligns with topbar)
   ========================================================================== */

.sw-playlist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  padding: 0 14px;
  background: var(--iq-primary-bg, #0F1C3F);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.sw-playlist-header__title {
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--iq-brand-color-2, #fff);
  letter-spacing: 0.02em;
}

.sw-playlist-header__count {
  font-family: 'Poppins', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--iq-brand-color-2, #fff);
  background: rgba(255, 255, 255, 0.15);
  padding: 2px 8px;
  border-radius: 10px;
}

/* ==========================================================================
   1a. FORCE VIEWED BADGE
   ========================================================================== */

.sw-force-viewed-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.12), rgba(234, 88, 12, 0.06));
  border: 1px solid rgba(234, 88, 12, 0.25);
  border-radius: 6px;
  margin: 0 10px;
  flex-shrink: 0;
}

.sw-force-viewed-badge i {
  font-size: 0.72rem;
  color: #ea580c;
}

.sw-force-viewed-badge span {
  font-family: 'Poppins', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  color: #ea580c;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.sw-playlist--light .sw-force-viewed-badge {
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.08), rgba(234, 88, 12, 0.03));
  border-color: rgba(234, 88, 12, 0.2);
}

/* ==========================================================================
   1b. PLAYLIST BACK LINK
   ========================================================================== */

.sw-playlist-back {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 150ms;
}

.sw-playlist-back:hover {
  color: #fff;
}

.sw-playlist-back i {
  font-size: 0.6rem;
}

/* ==========================================================================
   2. MODULE ACCORDION
   ========================================================================== */

.sw-module-accordion {
  border-bottom: 1px solid var(--pl-border, rgba(255, 255, 255, 0.06));
}

.sw-module-accordion:last-child {
  border-bottom: none;
}

/* Module completed state */
.sw-module-accordion--complete {
  border-left: 3px solid var(--pl-complete-accent, #22c55e);
}

.sw-module-accordion--complete .sw-module-accordion__header {
  background: var(--pl-complete-bg, rgba(34, 197, 94, 0.08));
}

.sw-module-accordion__complete-icon {
  color: var(--pl-complete-accent, #22c55e);
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-right: 4px;
}

/* Module locked state (inter-module sequential lock) */
.sw-module-accordion--locked {
  border-left: 3px solid var(--pl-lock-accent, rgba(251, 191, 36, 0.6));
  opacity: 0.7;
  transition: opacity 0.4s ease, border-color 0.4s ease;
}

.sw-module-accordion--locked .sw-module-accordion__header {
  background: var(--pl-lock-bg, rgba(251, 191, 36, 0.05));
}

.sw-module-accordion__lock-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.55rem;
  font-weight: 500;
  color: var(--pl-lock-accent, #fbbf24);
  background: rgba(251, 191, 36, 0.1);
  border-radius: 4px;
  padding: 2px 6px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: 4px;
}

/* Accordion header (clickable) */
.sw-module-accordion__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 14px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: background 150ms ease;
  text-align: left;
  color: var(--pl-text, #e2e8f0);
}

.sw-module-accordion__header:hover {
  background: var(--pl-hover, rgba(255, 255, 255, 0.04));
}

.sw-module-accordion__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.sw-module-accordion__label {
  font-family: 'Poppins', sans-serif;
  font-size: 0.58rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--pl-text-muted, rgba(255, 255, 255, 0.45));
}

.sw-module-accordion__title {
  font-family: 'Poppins', sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--pl-text-primary, #f1f5f9);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sw-module-accordion__meta {
  font-family: 'Poppins', sans-serif;
  font-size: 0.58rem;
  color: var(--pl-text-muted, rgba(255, 255, 255, 0.45));
  display: flex;
  align-items: center;
  gap: 4px;
}

.sw-module-accordion__chevron {
  font-size: 0.6rem;
  color: var(--pl-text-subtle, rgba(255, 255, 255, 0.4));
  transition: transform 250ms ease;
  flex-shrink: 0;
}

.sw-module-accordion__header--open .sw-module-accordion__chevron {
  transform: rotate(180deg);
}

/* Accordion body (collapsible) */
.sw-module-accordion__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease;
}

.sw-module-accordion__body--open {
  max-height: 2000px;
}

/* ==========================================================================
   3. ACCORDION LESSON ITEM
   ========================================================================== */

.sw-accordion-lesson {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 20px;
  cursor: pointer;
  transition: background 150ms ease;
  position: relative;
  border-left: 3px solid transparent;
}

.sw-accordion-lesson:hover {
  background: var(--pl-hover, rgba(255, 255, 255, 0.04));
}

.sw-accordion-lesson--active {
  background: var(--pl-active-bg, rgba(255, 255, 255, 0.08));
  border-left-color: var(--pl-active-border, #fff);
}

.sw-accordion-lesson--active .sw-accordion-lesson__title {
  font-weight: 600;
  color: var(--pl-text-primary, #fff);
}

/* WCAG 1.4.3 (AA): do NOT dim locked rows with a low row-level opacity — it
   drops the title/duration text below the 4.5:1 minimum (was 0.35 / 0.45 →
   ~2.3:1). The locked state is conveyed by the lock icon + a muted (but still
   AA-legible) text color and a dimmed thumbnail, not by fading the text. */
.sw-accordion-lesson--locked {
  opacity: 1;
  cursor: not-allowed;
}
.sw-accordion-lesson--locked .sw-accordion-lesson__thumb,
.sw-accordion-lesson--seq-locked .sw-accordion-lesson__thumb {
  opacity: 0.5;
}

.sw-accordion-lesson--seq-locked {
  opacity: 1;
  cursor: not-allowed;
  pointer-events: none;
}

/* Locked title/duration use the THEME's own text tokens (which already meet AA
   against --pl-bg in both light and dark), so the color stays brand/theme-aware
   — no fixed hardcoded colors. */
.sw-accordion-lesson--locked .sw-accordion-lesson__title,
.sw-accordion-lesson--seq-locked .sw-accordion-lesson__title {
  color: var(--pl-text-muted);
}
.sw-accordion-lesson--locked .sw-accordion-lesson__duration,
.sw-accordion-lesson--seq-locked .sw-accordion-lesson__duration {
  color: var(--pl-text-muted);
}

.sw-accordion-lesson__seq-lock {
  font-size: 0.7rem;
  color: #94a3b8;
  margin-left: auto;
  flex-shrink: 0;
}

@keyframes sw-lesson-unlock {
  0% { opacity: 0.45; transform: scale(0.97); box-shadow: none; }
  40% { opacity: 1; transform: scale(1.02); box-shadow: 0 0 12px rgba(34, 197, 94, 0.4); }
  100% { opacity: 1; transform: scale(1); box-shadow: none; }
}

.sw-accordion-lesson--unlocking {
  animation: sw-lesson-unlock 800ms ease-out forwards;
  pointer-events: auto;
  cursor: pointer;
}

/* Timeline connector line between lessons */
.sw-accordion-lesson::before {
  content: '';
  position: absolute;
  left: 34px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--pl-timeline, rgba(255, 255, 255, 0.06));
}

.sw-accordion-lesson:first-child::before {
  top: 50%;
}

.sw-accordion-lesson:last-child::before {
  bottom: 50%;
}

/* ==========================================================================
   4. CIRCULAR PROGRESS RING
   ========================================================================== */

.sw-accordion-lesson__progress-ring {
  position: relative;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  z-index: 1;
}

.sw-progress-circle {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.sw-progress-circle__bg {
  fill: none;
  stroke: var(--pl-progress-bg, rgba(255, 255, 255, 0.12));
  stroke-width: 3;
}

/* Dark theme: force visible ring background */
.sw-playlist--dark .sw-progress-circle__bg,
.sw-immersive-playlist-col:not(.sw-playlist--light) .sw-progress-circle__bg {
  stroke: rgba(99, 130, 191, 0.5);
}

.sw-progress-circle__bar {
  fill: none;
  stroke: var(--pl-progress-bar, #60a5fa);
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dashoffset 400ms ease;
}

/* Complete state: green ring and green bar */
.sw-progress-circle--complete .sw-progress-circle__bar {
  stroke: var(--pl-complete-accent, #22c55e);
}

.sw-progress-circle--complete .sw-progress-circle__bg {
  stroke: color-mix(in srgb, var(--pl-complete-accent, #22c55e) 20%, transparent);
}

/* Check icon for completed lessons */
.sw-progress-circle__check {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.55rem;
  color: var(--pl-complete-accent, #22c55e);
}

/* Active lesson (playing): brand ring indicator */
.sw-accordion-lesson--active .sw-progress-circle__bg {
  stroke: color-mix(in srgb, var(--pl-progress-bar, #003399) 20%, transparent);
}

.sw-accordion-lesson--active .sw-progress-circle__bar {
  stroke: var(--pl-progress-bar, #003399);
}

/* Active playing dot: show a centered play icon when active and not complete */
.sw-accordion-lesson--active:not(.sw-accordion-lesson--complete) .sw-accordion-lesson__progress-ring::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: var(--pl-progress-bar, #003399);
  border-radius: 50%;
  animation: sw-pulse-dot 1.5s ease-in-out infinite;
}

@keyframes sw-pulse-dot {
  0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.6; transform: translate(-50%, -50%) scale(0.75); }
}

/* Dark theme: brighter progress bar and pulse dot */
.sw-playlist--dark .sw-progress-circle:not(.sw-progress-circle--complete) .sw-progress-circle__bar,
.sw-immersive-playlist-col:not(.sw-playlist--light) .sw-progress-circle:not(.sw-progress-circle--complete) .sw-progress-circle__bar {
  stroke: #60a5fa;
}

.sw-playlist--dark .sw-accordion-lesson--active .sw-accordion-lesson__progress-ring::after,
.sw-immersive-playlist-col:not(.sw-playlist--light) .sw-accordion-lesson--active .sw-accordion-lesson__progress-ring::after {
  background: #60a5fa;
}

/* Lesson info */
.sw-accordion-lesson__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.sw-accordion-lesson__title {
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--pl-text, rgba(255, 255, 255, 0.85));
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sw-accordion-lesson__duration {
  font-family: 'Poppins', sans-serif;
  font-size: 0.58rem;
  color: var(--pl-text-muted, rgba(255, 255, 255, 0.4));
}

.sw-accordion-lesson__lock {
  font-size: 0.55rem;
  color: var(--pl-text-subtle, rgba(255, 255, 255, 0.35));
  flex-shrink: 0;
}

/* Quiz icon in lesson list */
.sw-lesson-quiz-icon {
  font-size: 0.6rem;
  margin-left: 4px;
}

.sw-lesson-quiz-icon--done {
  color: #22c55e;
}

.sw-lesson-quiz-icon--pending {
  color: #f59e0b;
}

/* ==========================================================================
   5. RIGHT SIDEBAR TABS
   ========================================================================== */

.sw-info-tabs {
  display: flex;
  border-bottom: none;
  padding: 6px 8px;
  gap: 6px;
  position: sticky;
  top: 0;
  background: var(--ly-tabs-bg, #fff);
  z-index: 2;
  height: 48px;
  align-items: center;
}

.sw-info-tabs__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border: none;
  background: transparent;
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ly-tabs-text, #1e293b);
  opacity: 0.7;
  cursor: pointer;
  transition: all 180ms ease;
  border-radius: 8px;
  border-bottom: none;
}

.sw-info-tabs__btn:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 8px;
}

.sw-info-tabs__btn--active {
  opacity: 1;
  font-weight: 600;
  border-bottom-color: transparent;
  color: var(--iq-brand-color-1, #003399);
  background: color-mix(in srgb, var(--iq-brand-color-1, #003399) 10%, transparent);
  border-radius: 8px;
}

.sw-info-tabs__btn i {
  font-size: 0.75rem;
}

/* Tab content */
.sw-info-tab-content {
  display: none;
  padding: 12px;
  flex-direction: column;
  gap: 8px;
}

.sw-info-tab-content--active {
  display: flex !important;
}

/* ==========================================================================
   6. INFO CARDS (inside tabs)
   ========================================================================== */

.sw-info-card {
  margin-bottom: 8px;
}

.sw-info-card__purchase {
  padding: 14px 12px;
  border-radius: 8px;
  border: 1px solid var(--iq-brand-color-1, #003399);
  background: color-mix(in srgb, var(--iq-brand-color-1, #003399) 5%, transparent);
  text-align: center;
}

.sw-info-card__price {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--iq-body-text, #1d1d1f);
  margin-bottom: 4px;
}

.sw-info-card__price-label {
  font-family: 'Poppins', sans-serif;
  font-size: 0.65rem;
  opacity: 0.5;
  margin-bottom: 10px;
}

.sw-info-card__free-label {
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--iq-body-text, #1d1d1f);
  margin-bottom: 8px;
}

.sw-info-card__cta {
  display: block;
  width: 100%;
  padding: 8px 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  background: var(--iq-brand-color-1, #003399);
  border: none;
  border-radius: 6px;
  text-decoration: none;
  text-align: center;
}

.sw-info-card__cta--green {
  background: #22c55e;
}

/* Quiz buttons in info tab */
.sw-info-card__quiz-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--iq-body-text, #1d1d1f);
  border: 1px solid transparent;
  background: transparent;
  transition: all 150ms;
}

.sw-info-card__quiz-btn--amber {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
}

.sw-info-card__quiz-btn--amber i:first-child {
  color: #f59e0b;
  font-size: 1rem;
}

.sw-info-card__quiz-btn--brand {
  border-color: var(--iq-brand-color-1, #003399);
  background: color-mix(in srgb, var(--iq-brand-color-1, #003399) 8%, transparent);
}

.sw-info-card__quiz-btn--brand i:first-child {
  color: var(--iq-brand-color-1, #003399);
  font-size: 1rem;
}

.sw-info-card__quiz-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.sw-info-card__quiz-text {
  flex: 1;
  text-align: left;
}

.sw-info-card__quiz-text small {
  display: block;
  font-size: 0.6rem;
  font-weight: 400;
  opacity: 0.6;
  margin-top: 1px;
}

.sw-info-card__quiz-arrow {
  font-size: 0.65rem;
  opacity: 0.4;
}

.sw-info-card__quiz-done {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--iq-body-text, #1d1d1f);
}

.sw-info-card__quiz-done i:first-child {
  color: #22c55e;
  font-size: 1rem;
}

.sw-info-card__quiz-done .sw-info-card__quiz-arrow {
  margin-left: auto;
}

/* Badge (certificate) */
.sw-info-card__badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(251, 191, 36, 0.06);
  border: 1px solid rgba(251, 191, 36, 0.15);
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--iq-body-text, #1d1d1f);
}

.sw-info-card__badge i {
  color: #fbbf24;
  font-size: 1rem;
}

/* Instructor card */
.sw-info-card__instructor {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  text-decoration: none;
  color: var(--iq-body-text, #1d1d1f);
  border-radius: 8px;
  border: 1px solid rgba(128, 128, 128, 0.08);
  transition: background 150ms;
}

.sw-info-card__instructor:hover {
  background: rgba(128, 128, 128, 0.04);
  color: var(--iq-body-text, #1d1d1f);
}

.sw-info-card__instructor-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.sw-info-card__instructor-info {
  display: flex;
  flex-direction: column;
}

.sw-info-card__instructor-label {
  font-family: 'Poppins', sans-serif;
  font-size: 0.6rem;
  text-transform: uppercase;
  opacity: 0.5;
}

.sw-info-card__instructor-name {
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
}

/* ==========================================================================
   7. MATERIALS TAB
   ========================================================================== */

.sw-material-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(128, 128, 128, 0.08);
  text-decoration: none;
  color: var(--iq-body-text, #1d1d1f);
  transition: all 150ms;
}

.sw-material-item:hover {
  background: rgba(128, 128, 128, 0.04);
  border-color: rgba(128, 128, 128, 0.15);
  color: var(--iq-body-text, #1d1d1f);
}

.sw-material-item__icon {
  font-size: 1.2rem;
  color: #ef4444;
  flex-shrink: 0;
}

.sw-material-item__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sw-material-item__name {
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sw-material-item__size {
  font-family: 'Poppins', sans-serif;
  font-size: 0.6rem;
  opacity: 0.5;
}

.sw-material-item__download {
  font-size: 0.75rem;
  opacity: 0.4;
  flex-shrink: 0;
}

/* ==========================================================================
   6b. INFO SECTIONS (unified cards in right tab)
   ========================================================================== */
.sw-info-section { padding: 12px 14px; border-bottom: 1px solid rgba(0,0,0,0.05); }
.sw-info-section:last-child { border-bottom: none; }
.sw-info-section__title { font-family: 'Poppins', sans-serif; font-size: 0.65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; color: #64748b; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.sw-info-section__title i { font-size: 0.7rem; }
.sw-info-section__item { margin-bottom: 6px; }
.sw-info-section__item:last-child { margin-bottom: 0; }

/* Course rules */
.sw-info-section__rule { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; }
.sw-info-section__rule + .sw-info-section__rule { border-top: 1px solid rgba(0,0,0,0.04); }
.sw-info-section__rule-icon { font-size: 0.8rem; margin-top: 2px; flex-shrink: 0; }
.sw-info-section__rule-icon--orange { color: #ea580c; }
.sw-info-section__rule-icon--blue { color: #2563eb; }
.sw-info-section__rule-icon--purple { color: #7c3aed; }
.sw-info-section__rule-icon--green { color: #16a34a; }
.sw-info-section__rule-icon--amber { color: #d97706; }
.sw-info-section__rule-text { display: flex; flex-direction: column; gap: 2px; }
.sw-info-section__rule-text strong { font-family: 'Poppins', sans-serif; font-size: 0.72rem; font-weight: 600; color: #1e293b; }
.sw-info-section__rule-text span { font-family: 'Poppins', sans-serif; font-size: 0.65rem; color: #64748b; line-height: 1.4; }
.sw-info-section__action { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid rgba(0,0,0,0.06); background: #fff; cursor: pointer; transition: all 150ms; text-align: left; font-family: 'Poppins', sans-serif; font-size: 0.75rem; color: #1e293b; }
.sw-info-section__action:hover:not(:disabled) { border-color: rgba(0,0,0,0.12); box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.sw-info-section__action:disabled { opacity: 0.5; cursor: not-allowed; }
.sw-info-section__action--amber { border-color: rgba(245,158,11,0.2); background: rgba(245,158,11,0.04); }
.sw-info-section__action--amber .sw-info-section__action-icon { color: #f59e0b; }
.sw-info-section__action--brand { border-color: rgba(0,51,153,0.15); background: rgba(0,51,153,0.03); }
.sw-info-section__action--brand .sw-info-section__action-icon { color: var(--iq-brand-color-1, #003399); }
.sw-info-section__action--green { border-color: rgba(34,197,94,0.2); background: rgba(34,197,94,0.04); }
.sw-info-section__action--green .sw-info-section__action-icon { color: #22c55e; }
.sw-info-section__action--gold { border-color: rgba(251,191,36,0.2); background: rgba(251,191,36,0.04); }
.sw-info-section__action--gold .sw-info-section__action-icon { color: #f59e0b; }
.sw-info-section__action-icon { font-size: 1.1rem; flex-shrink: 0; width: 28px; text-align: center; }
.sw-info-section__action-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sw-info-section__action-body strong { font-size: 0.75rem; font-weight: 600; }
.sw-info-section__hint { font-size: 0.65rem; color: #64748b; display: flex; align-items: center; gap: 4px; }
.sw-info-section__progress { font-size: 0.65rem; color: #475569; font-weight: 500; }
.sw-info-section__action-go { font-size: 0.6rem; color: #94a3b8; flex-shrink: 0; }
.sw-info-section__instructor { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; border: 1px solid rgba(0,0,0,0.06); text-decoration: none; color: #1e293b; transition: all 150ms; }
.sw-info-section__instructor:hover { border-color: rgba(0,0,0,0.12); box-shadow: 0 2px 8px rgba(0,0,0,0.04); color: #1e293b; }
.sw-info-section__instructor-img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.sw-info-section__instructor-info { flex: 1; display: flex; flex-direction: column; }
.sw-info-section__instructor-name { font-family: 'Poppins', sans-serif; font-size: 0.8rem; font-weight: 600; }
.sw-info-section__instructor-role { font-family: 'Poppins', sans-serif; font-size: 0.65rem; color: #64748b; }
/* Guest lesson teacher (per-lesson), shown under the main course teacher */
.sw-info-section__guest { display: flex; align-items: center; gap: 10px; padding: 8px 12px; margin-top: 8px; border-radius: 8px; background: rgba(0,0,0,0.03); border: 1px solid rgba(0,0,0,0.06); }
.sw-info-section__guest-icon { font-size: 0.9rem; color: #64748b; flex-shrink: 0; }
.sw-info-section__guest-info { flex: 1; display: flex; flex-direction: column; }
.sw-info-section__guest-label { font-family: 'Poppins', sans-serif; font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.03em; color: #94a3b8; }
.sw-info-section__guest-name { font-family: 'Poppins', sans-serif; font-size: 0.8rem; font-weight: 600; color: #1e293b; }

/* Empty state */
.sw-info-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 16px;
  text-align: center;
  opacity: 0.5;
}

.sw-info-empty i {
  font-size: 1.5rem;
}

.sw-info-empty span {
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem;
}

/* ==========================================================================
   8. MOBILE RESPONSIVE
   ========================================================================== */

@media (max-width: 991.98px) {
  .sw-module-accordion__header {
    padding: 10px 12px;
  }

  .sw-accordion-lesson {
    padding: 8px 12px 8px 18px;
  }

  .sw-accordion-lesson::before {
    left: 30px;
  }

  .sw-info-tabs {
    position: static;
  }
}

/* ==========================================================================
   DARK MODE OVERRIDES — Info sidebar (right column)
   Applied when .sw-layout--dark is on the layout
   ========================================================================== */

.sw-layout--dark .sw-immersive-info-col {
  background: linear-gradient(rgba(255,255,255,0.10), rgba(255,255,255,0.10)), var(--iq-primary-bg, #0F1C3F);
  border-left-color: rgba(255, 255, 255, 0.06);
}

.sw-layout--dark .sw-info-tabs {
  background: linear-gradient(rgba(255,255,255,0.10), rgba(255,255,255,0.10)), var(--iq-primary-bg, #0F1C3F);
}

.sw-layout--dark .sw-info-tabs__btn {
  color: rgba(255, 255, 255, 0.6);
  opacity: 1;
  background: rgba(255, 255, 255, 0.04);
}

.sw-layout--dark .sw-info-tabs__btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.sw-layout--dark .sw-info-tabs__btn--active {
  color: #fff;
  font-weight: 600;
  background: rgba(96, 165, 250, 0.15);
  border-bottom-color: transparent;
}

.sw-layout--dark .sw-info-section {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.sw-layout--dark .sw-info-section__title {
  color: rgba(255, 255, 255, 0.5);
}

.sw-layout--dark .sw-info-section__rule-text strong { color: #e2e8f0; }
.sw-layout--dark .sw-info-section__rule-text span { color: rgba(255, 255, 255, 0.5); }
.sw-layout--dark .sw-info-section__rule + .sw-info-section__rule { border-top-color: rgba(255, 255, 255, 0.06); }

.sw-layout--dark .sw-info-section__action {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--ly-info-text, #e2e8f0);
}

.sw-layout--dark .sw-info-section__action:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.sw-layout--dark .sw-info-section__hint {
  color: rgba(255, 255, 255, 0.45);
}

.sw-layout--dark .sw-info-section__progress {
  color: rgba(255, 255, 255, 0.6);
}

.sw-layout--dark .sw-info-section__action-go {
  color: rgba(255, 255, 255, 0.35);
}

.sw-layout--dark .sw-info-section__instructor {
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--ly-info-text, #e2e8f0);
}

.sw-layout--dark .sw-info-section__instructor:hover {
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--ly-info-text, #e2e8f0);
}

.sw-layout--dark .sw-info-section__instructor-role {
  color: rgba(255, 255, 255, 0.5);
}

.sw-layout--dark .sw-info-section__guest {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}
.sw-layout--dark .sw-info-section__guest-name {
  color: var(--ly-info-text, #e2e8f0);
}
.sw-layout--dark .sw-info-section__guest-label {
  color: rgba(255, 255, 255, 0.5);
}

.sw-layout--dark .sw-info-card__purchase {
  color: var(--ly-info-text, #e2e8f0);
}

.sw-layout--dark .sw-info-card__price {
  color: #fff;
}

.sw-layout--dark .sw-info-card__price-label {
  color: rgba(255, 255, 255, 0.5);
}

.sw-layout--dark .sw-info-card__instructor {
  color: var(--ly-info-text, #e2e8f0);
}

.sw-layout--dark .sw-info-card__instructor:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ly-info-text, #e2e8f0);
}

.sw-layout--dark .sw-info-card__instructor-label {
  color: rgba(255, 255, 255, 0.45);
}

/* Materials tab in dark mode */
.sw-layout--dark .sw-material-item {
  color: var(--ly-info-text, #e2e8f0);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.sw-layout--dark .sw-material-item__icon {
  color: rgba(255, 255, 255, 0.5);
}

.sw-layout--dark .sw-material-item__size {
  color: rgba(255, 255, 255, 0.4);
}

.sw-layout--dark .sw-info-empty {
  color: rgba(255, 255, 255, 0.4);
}

/* Lesson detail area (below player) in dark mode */
.sw-layout--dark .sw-lesson-detail {
  background: linear-gradient(rgba(255,255,255,0.10), rgba(255,255,255,0.10)), var(--iq-primary-bg, #0F1C3F);
}

.sw-layout--dark .sw-lesson-detail__title {
  color: var(--ly-lesson-title, #f1f5f9);
}

.sw-layout--dark .sw-lesson-detail__desc {
  color: var(--ly-lesson-text, #cbd5e1);
}

.sw-layout--dark .sw-lesson-detail__number {
  color: var(--ly-lesson-muted, #94a3b8);
}

/* Player column background in dark */
.sw-layout--dark .sw-immersive-player-col {
  background: linear-gradient(rgba(255,255,255,0.10), rgba(255,255,255,0.10)), var(--iq-primary-bg, #0F1C3F);
}

/* ==========================================================================
   LIGHT MODE OVERRIDES — Center + Right Columns
   Applied when .sw-layout--light is on the layout
   ========================================================================== */

.sw-layout--light .sw-info-tabs {
  background: #fff;
}

.sw-layout--light .sw-info-tabs__btn {
  color: #475569;   /* WCAG 1.4.3: >=4.5:1 on the light tab surface (was #64748b = 4.44) */
  opacity: 1;
  background: rgba(0, 0, 0, 0.03);
}

.sw-layout--light .sw-info-tabs__btn:hover {
  color: #1e293b;
  background: rgba(0, 0, 0, 0.06);
}

.sw-layout--light .sw-info-tabs__btn--active {
  color: var(--iq-brand-color-1, #003399);
  font-weight: 600;
  background: color-mix(in srgb, var(--iq-brand-color-1, #003399) 10%, transparent);
  border-bottom-color: transparent;
}

.sw-layout--light .sw-immersive-info-col {
  background: #fff;
  border-left-color: rgba(0, 0, 0, 0.06);
}

.sw-layout--light .sw-lesson-detail {
  background: #fff;
}

.sw-layout--light .sw-lesson-detail__title {
  color: #1e293b;
}

.sw-layout--light .sw-lesson-detail__desc {
  color: #475569;
}

.sw-layout--light .sw-lesson-detail__number {
  color: #64748b;
}

.sw-layout--light .sw-immersive-player-col {
  background: #fff;
}

/* ─── COURSE-WIDE GUEST / PARTICIPANT ROSTER (info sidebar) ────────────────── */
.sw-guest-roster { margin-top: 10px; border-radius: 10px; background: rgba(0,0,0,0.03); border: 1px solid rgba(0,0,0,0.06); overflow: hidden; }
.sw-guest-roster__head { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid rgba(0,0,0,0.06); }
.sw-guest-roster__head-icon { font-size: 0.85rem; color: #64748b; flex-shrink: 0; }
.sw-guest-roster__head-label { font-family: 'Poppins', sans-serif; font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.03em; color: #94a3b8; font-weight: 600; }
.sw-guest-roster__list { list-style: none; margin: 0; padding: 4px 0; }
.sw-guest-roster__item { display: flex; flex-direction: column; gap: 2px; padding: 6px 12px; }
.sw-guest-roster__item + .sw-guest-roster__item { border-top: 1px solid rgba(0,0,0,0.04); }
.sw-guest-roster__names { font-family: 'Poppins', sans-serif; font-size: 0.8rem; font-weight: 600; color: #1e293b; }
a.sw-guest-roster__names { color: #1e293b; text-decoration: none; }
a.sw-guest-roster__names:hover, a.sw-guest-roster__names:focus { color: #4f46e5; text-decoration: underline; }
.sw-layout--dark .sw-guest-roster { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); }
.sw-layout--dark .sw-guest-roster__head { border-bottom-color: rgba(255,255,255,0.08); }
.sw-layout--dark .sw-guest-roster__item + .sw-guest-roster__item { border-top-color: rgba(255,255,255,0.06); }
.sw-layout--dark .sw-guest-roster__names { color: var(--ly-info-text, #e2e8f0); }
.sw-layout--dark a.sw-guest-roster__names { color: var(--ly-info-text, #e2e8f0); }
.sw-layout--dark a.sw-guest-roster__names:hover { color: #fff; }
.sw-layout--dark .sw-guest-roster__lesson { color: rgba(255,255,255,0.5); }
.sw-guest-roster__lesson { font-family: 'Poppins', sans-serif; font-size: 0.68rem; color: #94a3b8; display: flex; align-items: center; gap: 5px; }
.sw-guest-roster__lesson i { font-size: 0.55rem; }
