.tab-btn {
  background: none;
  border: none;
  color: rgba(226, 232, 240, 0.3);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 1.4px;
  padding: 12px 0;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: 0.2s;
}
.tab-btn.active {
  color: var(--accent-blue);
  border-bottom-color: var(--accent-blue);
}

.syllabus-item {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: 0.15s;
  margin-bottom: 2px;
}
.syllabus-item:hover {
  background: rgba(15, 23, 42, 0.03);
  color: var(--primary);
}
.syllabus-item.active {
  background: #fff;
  color: var(--bg-deep);
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* ── Cohort Progress Bar ─────────────────────────── */
#cohort-bar-wrap {
  margin: 0 40px 28px;
  background: rgba(15, 23, 42, 0.96);
  border-radius: 18px;
  padding: 18px 24px 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}
#cohort-bar-wrap .cb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
#cohort-bar-wrap .cb-title {
  font-size: 0.6rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(226, 232, 240, 0.35);
}
#cohort-bar-wrap .cb-cohort-label {
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(56, 189, 248, 0.7);
}
/* The track */
#cohort-track {
  position: relative;
  height: 100px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: visible;
}
/* Cohort avatars container with scrollbar */
#cohort-avatars {
  max-height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.3) transparent;
}
#cohort-avatars::-webkit-scrollbar {
  width: 6px;
}
#cohort-avatars::-webkit-scrollbar-track {
  background: transparent;
}
#cohort-avatars::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.3);
  border-radius: 3px;
}
#cohort-avatars::-webkit-scrollbar-thumb:hover {
  background: rgba(56, 189, 248, 0.5);
}
/* Not-started staging zone (left of Day 1) */
#cohort-waiting-zone {
  position: absolute !important;
  left: 0 !important;
  bottom: 0 !important;
  /* width: 36px !important; */
  border-radius: 17px 0 0 17px !important;
  background: #38bdf8 !important;
  border-right: 1px solid rgba(148, 163, 184, 0.3) !important;
  pointer-events: none !important;
  z-index: 2 !important;
  transition: height 0.7s ease !important;
}
#cohort-waiting-label {
  position: absolute;
  left: 0;
  width: 36px;
  text-align: center;
  font-size: 0.52rem;
  font-weight: 900;
  color: rgba(148, 163, 184, 0.7);
  pointer-events: none;
  z-index: 3;
  letter-spacing: 0.04em;
}
/* Safe zone — the moving window */
#cohort-safe-zone {
  position: absolute;
  top: 0;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(56, 189, 248, 0.08) 0%,
    rgba(56, 189, 248, 0.18) 50%,
    rgba(56, 189, 248, 0.08) 100%
  );
  border-radius: 17px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  transition:
    left 1s ease,
    width 0.5s ease;
  z-index: 1;
}
/* Safe zone label */
#cohort-safe-label {
  position: absolute;
  top: 4px;
  font-size: 0.52rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(56, 189, 248, 0.6);
  white-space: nowrap;
  transition: left 1s ease;
  z-index: 4;
}
/* Day tick marks */
.cb-tick {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.04);
  z-index: 0;
}
.cb-week-tick {
  background: rgba(255, 255, 255, 0.1);
}
.cb-week-label {
  position: absolute;
  bottom: -16px;
  font-size: 0.5rem;
  font-weight: 800;
  color: rgba(226, 232, 240, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transform: translateX(-50%);
}
/* Avatar on track */
.cb-avatar {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 10;
  cursor: pointer;
  transform-origin: 50% 50%;
  transition:
    left 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
    top 0.4s ease,
    opacity 0.35s ease,
    transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cb-avatar .av-circle {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.15);
}
/* Size is set dynamically via --av-size CSS var, defaulting here */
.cb-avatar.av-initials .av-circle {
  width: var(--av-size, 16px);
  height: var(--av-size, 16px);
  font-size: calc(var(--av-size, 16px) * 0.38);
  color: rgba(226, 232, 240, 0.9);
}
.cb-avatar.av-reilink .av-circle {
  width: var(--av-size, 18px);
  height: var(--av-size, 18px);
  font-size: calc(var(--av-size, 18px) * 0.38);
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border: 2px solid rgba(56, 189, 248, 0.6) !important;
  box-shadow:
    0 0 0 3px rgba(56, 189, 248, 0.15),
    0 3px 12px rgba(56, 189, 248, 0.2) !important;
}
.cb-avatar.av-reilink .av-circle img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
/* Not-started state */
.cb-avatar.av-waiting .av-circle {
  background: rgba(71, 85, 105, 0.5) !important;
  border-color: rgba(148, 163, 184, 0.25) !important;
  box-shadow: none !important;
  animation: none !important;
}
.cb-avatar.av-waiting {
  opacity: 0.6;
}
/* Zone states */
.cb-avatar.av-safe .av-circle {
  border-color: rgba(52, 211, 153, 0.7) !important;
}
.cb-avatar.av-warn .av-circle {
  border-color: rgba(251, 191, 36, 0.8) !important;
  animation: cb-pulse-warn 2s ease infinite;
}
.cb-avatar.av-danger .av-circle {
  border-color: rgba(239, 68, 68, 0.8) !important;
  animation: cb-pulse-danger 1.5s ease infinite;
}
.cb-avatar.av-ahead .av-circle {
  border-color: rgba(251, 191, 36, 0.9) !important;
  box-shadow:
    0 0 0 3px rgba(251, 191, 36, 0.15),
    0 3px 16px rgba(251, 191, 36, 0.25) !important;
}
@keyframes cb-pulse-warn {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.4);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(251, 191, 36, 0);
  }
}
@keyframes cb-pulse-danger {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(239, 68, 68, 0);
  }
}
/* Highlight: scale up the whole avatar with smooth spring animation */
.cb-avatar.av-highlighted {
  transform: translate(-50%, -50%) scale(2.8) !important;
  z-index: 50 !important;
  opacity: 1 !important;
}
.cb-avatar.av-highlighted .av-circle {
  box-shadow:
    0 0 0 2px #fff,
    0 0 18px rgba(56, 189, 248, 0.9) !important;
}
.cb-avatar.av-highlighted .av-name-label {
  display: block !important;
}
/* Name label — hidden by default, shown when highlighted */
.av-name-label {
  display: none;
  position: absolute;
  top: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(56, 189, 248, 0.5);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 6px;
  font-weight: 800;
  color: #f1f5f9;
  white-space: nowrap;
  pointer-events: none;
  z-index: 60;
  letter-spacing: 0.03em;
}
/* Dimmed: reduce opacity but keep fully visible and interactive */
.cb-avatar.av-dimmed {
  opacity: 0.3;
}
/* YOU label */
.cb-avatar.av-self .av-you {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #38bdf8;
  white-space: nowrap;
}
.cb-avatar.av-self .av-circle {
  box-shadow:
    0 0 0 3px rgba(56, 189, 248, 0.4),
    0 3px 16px rgba(56, 189, 248, 0.3) !important;
}
/* Locate pulse — fired by locateMyAvatar() */
@keyframes dnrFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
#dnr-grid > div:hover {
  background: #e0f2fe !important;
  border-color: #7dd3fc !important;
}
#dnr-grid > div.dnr-active {
  background: #e0f2fe !important;
  border-color: #0ea5e9 !important;
}
#dnr-examples .dnr-good {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: 10px;
  padding: 10px 12px;
}
#dnr-examples .dnr-bad {
  background: #fff1f2;
  border: 1.5px solid #fca5a5;
  border-radius: 10px;
  padding: 10px 12px;
}
#dnr-input:focus {
  border-color: #0ea5e9 !important;
}
@keyframes cb-locate-pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
  }
  20% {
    transform: translate(-50%, -50%) scale(3.2);
  }
  50% {
    transform: translate(-50%, -50%) scale(2.4);
  }
  70% {
    transform: translate(-50%, -50%) scale(2.8);
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
}
.cb-avatar.av-locating {
  animation: cb-locate-pulse 1.1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
  z-index: 60 !important;
}
.cb-avatar.av-locating .av-circle {
  box-shadow:
    0 0 0 3px #fff,
    0 0 24px rgba(56, 189, 248, 1) !important;
}
.cb-avatar.av-locating .av-name-label {
  display: block !important;
}
/* Tooltip on hover */
.cb-avatar .av-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px 12px;
  white-space: nowrap;
  font-size: 0.7rem;
  color: #e2e8f0;
  z-index: 200;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}
.cb-avatar:hover .av-tooltip {
  display: block;
}
.cb-avatar:hover {
  z-index: 30;
}
/* Search box in cohort header */
#cohort-search:focus {
  border-color: rgba(56, 189, 248, 0.5) !important;
  background: rgba(56, 189, 248, 0.06) !important;
}
#cohort-search::placeholder {
  color: rgba(226, 232, 240, 0.3);
}
/* Progress beneath track */
.cb-legend {
  display: flex;
  gap: 16px;
  margin-top: 22px;
  align-items: center;
  flex-wrap: wrap;
}
.cb-leg-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.58rem;
  font-weight: 700;
  color: rgba(226, 232, 240, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.cb-leg-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

#cohort-time-sweep {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 28px 0 0 28px;
  pointer-events: none;
  z-index: 0;
  transition: width 1s ease;
}
.cb-cluster-band {
  position: absolute;
  top: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
}

/* Bolt page — dark header + workcenter */
.header-sys.dash-mode {
  background: #0f172a !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
}
/* Util pages: collapse header height when no strips are visible */
.header-sys.dash-mode.util-header {
  height: 0px !important;
  padding: 0 !important;
  border-bottom: none !important;
  overflow: hidden !important;
}
.workcenter.dash-mode {
  background: #0f172a !important;
  padding: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}
